/* =========================================================
   见面聊 · 好友聊天待办
   A warm little talk book for two friends.
   ========================================================= */

:root {
  --paper: #f5efe4;
  --paper-deep: #ede5d7;
  --paper-soft: #fbf7ef;
  --card: #fffcf6;
  --ink: #25372e;
  --ink-soft: #435249;
  --muted: #7d7e72;
  --muted-light: #9a8e7c;
  --line: #e5dccb;
  --line-soft: #eee7db;
  --line-strong: #d5c7b2;

  --pine: #20352b;
  --pine-deep: #172a21;
  --pine-soft: #314b3e;

  --coral: #d96a4a;
  --coral-deep: #b95438;
  --coral-soft: #f3d8ce;
  --coral-wash: #f9eae3;

  --sage: #95a88f;
  --sage-soft: #e1e8dc;
  --sage-deep: #597054;

  --teal: #4c7a72;
  --teal-deep: #35635c;
  --teal-soft: #dce9e4;
  --teal-wash: #eef5f1;

  --butter: #f0c45f;
  --butter-deep: #a97d24;
  --butter-soft: #f8e9c5;

  --blue: #678899;
  --blue-soft: #e2ebef;

  --shadow-card: 0 14px 38px rgba(66, 52, 32, 0.065), 0 2px 5px rgba(66, 52, 32, 0.025);
  --shadow-float: 0 24px 55px rgba(66, 52, 32, 0.12);

  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-serif: "Songti SC", "STSong", "STZhongsong", "Noto Serif SC", "SimSun", serif;

  --sidebar-width: 278px;
  --radius-card: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(ellipse 860px 520px at 92% -8%, rgba(240, 196, 95, 0.15), transparent 62%),
    radial-gradient(ellipse 800px 500px at 10% 110%, rgba(149, 168, 143, 0.16), transparent 64%),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a {
  color: inherit;
}

svg {
  display: block;
}

p,
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--butter);
  color: var(--pine);
}

:focus-visible {
  outline: 2px solid rgba(185, 84, 56, 0.65);
  outline-offset: 3px;
}

button:focus:not(:focus-visible) {
  outline: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Shared atoms ---------- */

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  user-select: none;
}

.avatar-a {
  color: var(--coral-deep);
  background: var(--coral-soft);
  box-shadow: inset 0 0 0 1px rgba(185, 84, 56, 0.1);
}

.avatar-b {
  color: var(--teal-deep);
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px rgba(53, 99, 92, 0.1);
}

.avatar-xxs {
  width: 21px;
  height: 21px;
  font-size: 9px;
}

.avatar-xs {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.avatar-md {
  width: 40px;
  height: 40px;
  font-size: 15px;
}

.avatar-lg {
  width: 50px;
  height: 50px;
  font-size: 19px;
}

.avatar-xl {
  width: 56px;
  height: 56px;
  font-size: 21px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid rgba(129, 57, 37, 0.24);
  border-radius: 12px;
  background: var(--coral);
  box-shadow: 0 8px 18px rgba(177, 77, 49, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fffaf3;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.18s var(--ease-out), background 0.18s, box-shadow 0.18s;
}

.primary-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--coral-deep);
  box-shadow: 0 11px 23px rgba(177, 77, 49, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(177, 77, 49, 0.18);
}

.primary-btn:disabled {
  border-color: transparent;
  background: #e7dfd1;
  box-shadow: none;
  color: #a99e8c;
  cursor: not-allowed;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.secondary-btn:hover {
  border-color: var(--line-strong);
  background: #fbf6ed;
}

.secondary-btn svg {
  width: 13px;
  height: 13px;
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(133, 59, 40, 0.16);
  border-radius: 10px;
  background: #b95b40;
  color: #fff9f2;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 5px 12px rgba(156, 65, 42, 0.16);
  transition: background 0.18s, transform 0.18s;
}

.danger-btn:hover {
  background: #a34930;
  transform: translateY(-1px);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #dacdb9;
  border-radius: 10px;
  background: rgba(255, 252, 246, 0.48);
  color: #6c6254;
  font-size: 11px;
  font-weight: 600;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.ghost-btn:hover {
  border-color: #c4b49d;
  background: #fffdf8;
  color: var(--ink);
}

.ghost-btn svg {
  width: 13px;
  height: 13px;
}

/* =========================================================
   Sidebar
   ========================================================= */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 31px 21px 23px;
  overflow: hidden;
  color: #f8f2e5;
  background: var(--pine);
}

.sidebar::before {
  content: "";
  position: absolute;
  top: -190px;
  right: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 106, 74, 0.2), transparent 68%);
  pointer-events: none;
}

.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image: radial-gradient(rgba(255, 248, 233, 0.16) 0.6px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, transparent 4%, #000 30%, #000 72%, transparent 98%);
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px;
}

.brand-mark {
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-copy strong {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #faf5e9;
}

.brand-copy small {
  margin-top: 6px;
  color: rgba(248, 242, 229, 0.5);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
}

.sidebar-rule {
  height: 1px;
  margin: 27px 7px 21px;
  background: linear-gradient(90deg, rgba(248, 242, 229, 0.17), rgba(248, 242, 229, 0.02) 86%, transparent);
}

.nav-caption {
  margin: 0 11px 12px;
  color: rgba(248, 242, 229, 0.33);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: rgba(248, 242, 229, 0.63);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: none;
}

.nav-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  flex: 1;
}

.nav-link:hover {
  background: rgba(255, 251, 239, 0.06);
  color: rgba(250, 245, 234, 0.92);
}

.nav-link.is-active {
  border-color: rgba(255, 255, 255, 0.2);
  background: #f3ebdc;
  box-shadow: 0 9px 22px rgba(5, 16, 10, 0.18);
  color: var(--pine);
}

.nav-link.is-active .nav-icon svg {
  stroke-width: 1.8;
}

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 250, 238, 0.12);
  color: rgba(250, 245, 234, 0.7);
  font-size: 9px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.nav-link.is-active .nav-badge {
  background: var(--coral);
  color: #fffaf3;
}

.sidebar-spacer {
  flex: 1;
  min-height: 20px;
}

.sidebar-note {
  position: relative;
  margin: 0 6px 20px;
  padding: 20px 18px 15px;
  border-radius: 5px 18px 18px 18px;
  background: #eee2cd;
  box-shadow: 0 15px 28px rgba(4, 13, 8, 0.2);
  color: #35443b;
  transform: rotate(-1.1deg);
  transform-origin: 50% 100%;
}

.note-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 66px;
  height: 17px;
  background: rgba(240, 196, 95, 0.55);
  transform: translateX(-50%) rotate(1.5deg);
  clip-path: polygon(2% 4%, 98% 0, 96% 92%, 4% 100%);
}

.note-spark {
  position: absolute;
  top: 14px;
  right: 15px;
  width: 14px;
  height: 14px;
  color: #bc9438;
  transform: rotate(8deg);
}

.sidebar-note p {
  margin: 0 0 15px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: 0.05em;
}

.note-friends {
  display: flex;
  align-items: center;
  min-width: 0;
}

.note-friends .avatar {
  border: 2px solid #eee2cd;
}

.note-friends .avatar + .avatar {
  margin-left: -7px;
}

.note-heart {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: -2px;
  color: var(--coral-deep);
}

.note-heart svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.note-names {
  margin-left: 7px;
  overflow: hidden;
  color: #807764;
  font-size: 9.5px;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 9px 11px;
  border: 1px solid rgba(248, 242, 229, 0.12);
  border-radius: 16px;
  background: rgba(255, 252, 242, 0.055);
  color: #f8f2e5;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.sidebar-identity:hover {
  border-color: rgba(248, 242, 229, 0.22);
  background: rgba(255, 252, 242, 0.09);
}

.sidebar-identity-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sidebar-identity-copy small {
  color: rgba(248, 242, 229, 0.44);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.sidebar-identity-copy strong {
  overflow: hidden;
  color: #fbf6ea;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-switch {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: rgba(255, 252, 242, 0.08);
  color: rgba(248, 242, 229, 0.68);
}

.sidebar-switch svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Main frame & topbar
   ========================================================= */

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.main-shell {
  position: relative;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  min-height: 100dvh;
}

.main-shell::before {
  content: "";
  position: absolute;
  top: 130px;
  right: 3%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 196, 95, 0.08), transparent 70%);
  pointer-events: none;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 47px;
}

.topbar-context {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #918574;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.topbar-spark {
  width: 12px;
  height: 12px;
  color: #c8a34d;
}

.mobile-brand {
  display: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sync-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid #e0d5c4;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.6);
  color: #8a7f6f;
  font-size: 8.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.sync-indicator i {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #b9ad9b;
}

.sync-indicator.is-online {
  border-color: #d7e2d2;
  background: rgba(238, 244, 234, 0.82);
  color: #5d7657;
}

.sync-indicator.is-online i {
  background: #769b6f;
  box-shadow: 0 0 0 3px rgba(118, 155, 111, 0.1);
}

.sync-indicator.is-syncing {
  border-color: #eadaba;
  background: rgba(250, 242, 222, 0.92);
  color: #8d6d2f;
}

.sync-indicator.is-syncing i {
  background: var(--butter-deep);
  animation: syncPulse 1.1s ease-in-out infinite;
}

.sync-indicator.is-offline {
  border-color: #ecd2c8;
  background: rgba(249, 235, 228, 0.9);
  color: #a15f49;
}

.sync-indicator.is-offline i {
  background: #c9775b;
}

.identity-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 5px 9px 5px 5px;
  border: 1px solid rgba(213, 199, 178, 0.78);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.68);
  box-shadow: 0 3px 12px rgba(68, 54, 34, 0.035);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.identity-pill:hover {
  border-color: #c8b9a2;
  background: var(--card);
  box-shadow: 0 5px 16px rgba(68, 54, 34, 0.07);
}

.identity-pill-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: flex-start;
  padding-right: 5px;
  line-height: 1.1;
}

.identity-pill-copy span {
  color: #9b8e7d;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.identity-pill-copy strong {
  max-width: 100px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.identity-chevron {
  width: 14px;
  height: 14px;
  margin-right: 2px;
  fill: none;
  stroke: #a29684;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 14px 47px 84px;
}

.view {
  animation: viewIn 0.42s var(--ease-out) both;
}

/* =========================================================
   Page headings
   ========================================================= */

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 33px;
}

.page-heading-copy {
  max-width: 700px;
}

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  color: #8d8171;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(217, 106, 74, 0.09);
}

.eyebrow-dot-sage {
  background: var(--sage-deep);
  box-shadow: 0 0 0 4px rgba(149, 168, 143, 0.13);
}

.eyebrow-dot-coral {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(217, 106, 74, 0.09);
}

.eyebrow-sep {
  color: #c2b6a6;
  font-weight: 400;
}

.page-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(35px, 3.45vw, 47px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.24;
}

.greeting-name {
  position: relative;
  padding: 0 2px;
  color: var(--coral-deep);
  background: linear-gradient(transparent 69%, rgba(240, 196, 95, 0.38) 69%, rgba(240, 196, 95, 0.38) 92%, transparent 92%);
}

.greeting-name-sage {
  color: var(--teal);
}

.page-sub {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.015em;
  line-height: 1.75;
}

.date-ticket {
  position: relative;
  display: flex;
  flex: 0 0 95px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 95px;
  min-height: 126px;
  margin-top: 4px;
  border: 1px solid rgba(129, 91, 28, 0.13);
  border-radius: 5px 5px 22px 5px;
  background: var(--butter);
  box-shadow: 0 14px 28px rgba(108, 82, 38, 0.14), inset 0 0 0 1px rgba(255, 251, 232, 0.22);
  color: #3f3a28;
  transform: rotate(2.7deg);
}

.date-ticket::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(102, 77, 22, 0.18);
  border-radius: 3px 3px 16px 3px;
  pointer-events: none;
}

.date-ticket-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 47px;
  height: 16px;
  background: rgba(253, 249, 235, 0.62);
  transform: translateX(-50%) rotate(-4deg);
  clip-path: polygon(3% 4%, 97% 0, 95% 94%, 0 100%);
  box-shadow: 0 1px 2px rgba(76, 57, 24, 0.08);
}

.date-ticket-month {
  color: #6f5d2b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.date-ticket strong {
  margin: 7px 0 6px;
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.86;
}

.date-ticket-weekday {
  color: #6d5c2c;
  font-size: 9.5px;
  font-weight: 500;
}

/* =========================================================
   Composer
   ========================================================= */

.composer-card {
  position: relative;
  margin-bottom: 42px;
  padding: 23px 25px 19px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.composer-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--coral) 0 24%, var(--butter) 24% 48%, var(--sage) 48% 73%, var(--teal) 73% 100%);
  opacity: 0.82;
}

.composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: #a69780;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.composer-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.35;
}

.composer-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 2px;
  color: #938775;
  font-size: 10.5px;
  white-space: nowrap;
}

.composer-identity strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.composer-identity .avatar {
  margin: 0 1px;
}

.text-link {
  margin-left: 2px;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(185, 84, 56, 0.3);
  color: var(--coral-deep);
  font-size: 10.5px;
  font-weight: 500;
  transition: border-color 0.18s, color 0.18s;
}

.text-link:hover {
  border-color: var(--coral-deep);
  color: #9e432b;
}

.composer-input-wrap {
  position: relative;
  border: 1px solid #e9dfcf;
  border-radius: 17px;
  background: #faf6ed;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.composer-input-wrap:focus-within {
  border-color: #cdbca4;
  background: #fcf9f2;
  box-shadow: 0 0 0 4px rgba(213, 199, 178, 0.2);
}

#composerInput {
  display: block;
  width: 100%;
  min-height: 101px;
  max-height: 200px;
  padding: 17px 18px 31px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--coral);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.72;
}

#composerInput::placeholder {
  color: #aea18e;
  opacity: 1;
}

.char-count {
  position: absolute;
  right: 13px;
  bottom: 9px;
  color: #b2a591;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 13px;
}

.composer-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-prompt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 2px;
  color: #a0917d;
  font-size: 9.5px;
}

.tag-prompt svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f2ece1;
  color: #837868;
  font-size: 11px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s;
}

.tag-chip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.68;
}

.tag-chip:hover {
  background: #ece4d7;
  color: #4e4a41;
  transform: translateY(-1px);
}

.tag-chip.tag-life.is-active {
  border-color: #cbd8c5;
  background: #e5ecdf;
  color: #536d4e;
}

.tag-chip.tag-work.is-active {
  border-color: #c9d8df;
  background: #e6eef2;
  color: #4e6c7d;
}

.tag-chip.tag-rant.is-active {
  border-color: #e9c9bd;
  background: #f7e3db;
  color: #a15038;
}

.tag-chip.tag-idea.is-active {
  border-color: #e9d395;
  background: #f8eccb;
  color: #8b6725;
}

.composer-submit {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.shortcut-hint {
  color: #b2a591;
  font-size: 8.5px;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.add-task-btn {
  min-height: 41px;
  padding: 0 16px;
}

/* =========================================================
   Task list & cards
   ========================================================= */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}

.section-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.count-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border: 1px solid #e4dacb;
  border-radius: 999px;
  background: #efe9dd;
  color: #887a67;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

.section-meta {
  margin: 0;
  color: #9b8e7c;
  font-size: 10.5px;
  white-space: nowrap;
}

.talk-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.task-card {
  --author-color: var(--coral);
  --author-wash: var(--coral-wash);
  position: relative;
  padding: 16px 19px 13px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 2px 5px rgba(66, 52, 32, 0.022);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.task-card::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--author-color);
  opacity: 0.6;
}

.task-card.author-a {
  --author-color: var(--coral);
  --author-wash: var(--coral-wash);
}

.task-card.author-b {
  --author-color: var(--teal);
  --author-wash: var(--teal-wash);
}

.task-card:hover {
  border-color: #d8ccb9;
  box-shadow: 0 10px 26px rgba(66, 52, 32, 0.055);
  transform: translateY(-1px);
}

.task-card.status-done {
  background: rgba(249, 250, 244, 0.88);
}

.task-card.status-skipped {
  background: rgba(248, 245, 238, 0.78);
}

.task-card.is-new {
  animation: cardArrive 0.52s var(--ease-out) both;
}

.card-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.card-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.card-time {
  color: #a79a88;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.card-dot {
  color: #c9bdaa;
  font-size: 8px;
  line-height: 1;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  height: 19px;
  margin-left: 1px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.card-tag.tag-life {
  background: #eaf0e5;
  color: #597052;
}

.card-tag.tag-work {
  background: #e7eef1;
  color: #597686;
}

.card-tag.tag-rant {
  background: #f8e7e0;
  color: #a1553d;
}

.card-tag.tag-idea {
  background: #f8edcf;
  color: #8c6827;
}

.card-tag.tag-other {
  background: #f1ece3;
  color: #867a68;
}

.task-text {
  margin: 0;
  color: #2c3a32;
  font-size: 15.5px;
  letter-spacing: 0.008em;
  line-height: 1.68;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.task-card.status-done .task-text {
  color: #5b6960;
}

.task-card.status-skipped .task-text {
  color: #918b80;
}

.task-note {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 11px;
  padding: 9px 11px;
  border-left: 2px solid #d8cab4;
  border-radius: 2px 9px 9px 2px;
  background: #f7f2e7;
  color: #776c5b;
  font-size: 11.5px;
}

.note-copy {
  min-width: 0;
  flex: 1;
}

.note-label {
  display: block;
  margin-bottom: 2px;
  color: #a3947d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.task-note p {
  margin: 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.note-edit {
  display: grid;
  place-items: center;
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: #aa9b84;
  transition: background 0.18s, color 0.18s;
}

.note-edit:hover {
  background: #eee6d9;
  color: var(--ink);
}

.note-edit svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px dashed #ece3d4;
}

.status-group {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #ebe2d4;
  border-radius: 10px;
  background: #f3eee4;
}

.status-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  color: #938775;
  font-size: 10.5px;
  font-weight: 500;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}

.status-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-btn:hover {
  color: var(--ink-soft);
}

.status-btn[aria-pressed="true"][data-status="pending"] {
  background: #f8e7bc;
  box-shadow: 0 1px 2px rgba(102, 73, 21, 0.09);
  color: #765a1e;
}

.status-btn[aria-pressed="true"][data-status="done"] {
  background: #dcebdc;
  box-shadow: 0 1px 2px rgba(47, 92, 56, 0.08);
  color: #3f6c48;
}

.status-btn[aria-pressed="true"][data-status="skipped"] {
  background: #e8e3d8;
  box-shadow: 0 1px 2px rgba(64, 61, 54, 0.06);
  color: #716b60;
}

.card-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}

.subtle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 29px;
  padding: 0 6px;
  border-radius: 7px;
  color: #a19380;
  font-size: 10px;
  transition: background 0.18s, color 0.18s;
}

.subtle-btn:hover {
  background: #f3eee4;
  color: var(--ink-soft);
}

.subtle-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-action {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  color: #b0a28e;
  transition: background 0.18s, color 0.18s;
}

.icon-action:hover {
  background: #f8e8e1;
  color: #b45c43;
}

.icon-action svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note-slot:empty {
  display: none;
}

.note-editor {
  margin-top: 11px;
  padding: 11px 12px 9px;
  border: 1px solid #e7dccb;
  border-radius: 11px;
  background: #faf6ed;
  animation: revealDown 0.24s var(--ease-out) both;
}

.note-editor textarea {
  display: block;
  width: 100%;
  min-height: 62px;
  padding: 0;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

.note-editor textarea::placeholder {
  color: #b0a38f;
}

.note-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 6px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #958875;
  font-size: 10px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.mini-btn:hover {
  background: #efe7da;
  color: var(--ink);
}

.mini-btn-primary {
  border-color: rgba(45, 74, 60, 0.12);
  background: var(--pine);
  color: #fbf5e8;
}

.mini-btn-primary:hover {
  background: var(--pine-deep);
  color: #fbf5e8;
}

/* Empty states */

.empty-state {
  padding: 24px 20px 22px;
  border: 1px dashed #dfd3c0;
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.44);
  text-align: center;
}

.empty-art {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}

.empty-art svg {
  width: 210px;
  max-width: 72%;
  height: auto;
}

.empty-state h3 {
  margin: 6px 0 6px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.empty-state p {
  margin: 0 0 15px;
  color: #938673;
  font-size: 11.5px;
  line-height: 1.7;
}

.earlier-nudge {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px dashed #d8cbb8;
  border-radius: 15px;
  background: rgba(250, 246, 237, 0.56);
  color: #847866;
  font-size: 11px;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.earlier-nudge:hover {
  border-color: #c8b79f;
  background: rgba(255, 252, 246, 0.82);
  transform: translateY(-1px);
}

.earlier-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #efe7d9;
  color: #958671;
}

.earlier-icon svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.earlier-copy {
  flex: 1;
}

.earlier-copy strong {
  color: var(--coral-deep);
  font-weight: 700;
}

.earlier-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  color: #897b67;
  font-weight: 600;
}

.earlier-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.earlier-nudge:hover .earlier-link svg {
  transform: translateX(2px);
}

/* =========================================================
   History
   ========================================================= */

.history-heading {
  margin-bottom: 26px;
}

.history-heading-mark {
  display: flex;
  flex: 0 0 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-top: 7px;
  border: 1px dashed #b9c5b1;
  border-radius: 50%;
  background: #e8ede2;
  color: #5a735a;
  transform: rotate(4deg);
}

.history-heading-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-heading-mark span {
  margin-top: 3px;
  font-family: var(--font-serif);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.review-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 25px;
  padding: 23px 26px;
  overflow: hidden;
  border-radius: 23px;
  background: var(--pine);
  box-shadow: 0 16px 34px rgba(24, 42, 32, 0.16);
  color: #f8f2e4;
}

.review-banner::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -95px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(240, 196, 95, 0.12);
  border-radius: 50%;
}

.review-banner::after {
  content: "";
  position: absolute;
  right: 13%;
  bottom: -175px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 106, 74, 0.17), transparent 68%);
}

.review-banner > * {
  position: relative;
  z-index: 1;
}

.banner-main {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  flex: 1;
}

.banner-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(240, 196, 95, 0.23);
  border-radius: 50%;
  background: rgba(240, 196, 95, 0.12);
  color: var(--butter);
}

.banner-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.banner-kicker {
  margin: 0 0 3px;
  color: rgba(248, 242, 228, 0.44);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.review-banner h2 {
  margin: 0;
  color: #f9f3e5;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.review-banner h2 em {
  padding: 0 2px;
  color: var(--butter);
  font-size: 1.14em;
  font-style: normal;
}

.review-banner.is-complete .banner-icon {
  border-color: rgba(154, 190, 153, 0.24);
  background: rgba(154, 190, 153, 0.14);
  color: #b3cfad;
}

.banner-side {
  display: flex;
  align-items: center;
  gap: 21px;
  flex: none;
}

.banner-progress {
  min-width: 135px;
}

.banner-progress-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: rgba(248, 242, 228, 0.5);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.banner-progress-label strong {
  color: #f8f2e4;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
}

.banner-track {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(248, 242, 226, 0.13);
}

.banner-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--butter), #e7b85d);
  transition: width 0.5s var(--ease-out);
}

.banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--butter);
  color: #383a2a;
  font-size: 10.5px;
  font-weight: 600;
  transition: background 0.18s, transform 0.18s;
}

.banner-btn:hover {
  background: #f5d27d;
  transform: translateY(-1px);
}

.banner-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.filter-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid #e5dccb;
  border-radius: 12px;
  background: #ede7dc;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 33px;
  padding: 0 12px;
  border-radius: 8px;
  color: #8d806e;
  font-size: 11px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}

.filter-tab span {
  color: #a59884;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.filter-tab:hover {
  color: var(--ink);
}

.filter-tab.is-active {
  background: var(--card);
  box-shadow: 0 1px 4px rgba(61, 47, 27, 0.09);
  color: var(--ink);
  font-weight: 600;
}

.filter-tab.is-active span {
  color: #8d806d;
}

.history-summary {
  margin: 0;
  color: #998c79;
  font-size: 10px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.date-filter {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  margin-bottom: 25px;
}

.date-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  color: #988b77;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.date-filter-label svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.date-strip {
  display: flex;
  gap: 5px;
  min-width: 0;
  padding: 2px 3px 5px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.date-strip::-webkit-scrollbar {
  display: none;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #8e816f;
  font-size: 11px;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.date-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 16px;
  padding: 0 4px;
  border-radius: 5px;
  background: #eee7db;
  color: #978a76;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.date-chip:hover {
  background: #f0e9de;
  color: var(--ink);
}

.date-chip.is-active {
  border-color: var(--pine);
  background: var(--pine);
  box-shadow: 0 4px 11px rgba(32, 53, 43, 0.13);
  color: #faf4e7;
}

.date-chip.is-active span {
  background: rgba(255, 255, 255, 0.13);
  color: rgba(250, 244, 231, 0.82);
}

.history-content {
  display: flex;
  flex-direction: column;
  gap: 31px;
}

.day-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.day-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.day-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: none;
}

.day-title strong {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.day-title span {
  color: #9f927f;
  font-size: 9.5px;
}

.day-today {
  display: inline-flex;
  align-items: center;
  height: 17px;
  margin-left: 1px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--coral-wash);
  color: var(--coral-deep);
  font-size: 8px;
  font-weight: 600;
}

.day-line {
  flex: 1;
  height: 1px;
  margin: 0 2px;
  background: linear-gradient(90deg, #e2d8c8, rgba(226, 216, 200, 0.15));
}

.day-count {
  flex: none;
  color: #a19480;
  font-size: 8.5px;
}

.day-group .talk-list {
  gap: 9px;
}

.history-content .empty-state {
  margin-top: 2px;
}

.end-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
  color: #ab9e8a;
  font-family: var(--font-serif);
  font-size: 9.5px;
  letter-spacing: 0.13em;
}

.end-note::before,
.end-note::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d8cbb8);
}

.end-note::after {
  background: linear-gradient(90deg, #d8cbb8, transparent);
}

.end-note svg {
  width: 10px;
  height: 10px;
  color: #c6a551;
}

/* =========================================================
   Me
   ========================================================= */

.me-heading {
  margin-bottom: 26px;
}

.me-hero {
  --hero-accent: #ec9d80;
  --hero-accent-soft: rgba(236, 157, 128, 0.16);
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 20px;
  min-height: 244px;
  margin-bottom: 32px;
  padding: 29px 32px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--pine);
  box-shadow: 0 18px 42px rgba(25, 43, 33, 0.17);
  color: #f9f3e6;
}

.me-hero.identity-b {
  --hero-accent: #9fcbbd;
  --hero-accent-soft: rgba(159, 203, 189, 0.14);
}

.me-hero::before {
  content: "";
  position: absolute;
  top: -175px;
  right: -125px;
  width: 375px;
  height: 375px;
  border: 1px solid rgba(240, 196, 95, 0.12);
  border-radius: 50%;
}

.me-hero::after {
  content: "";
  position: absolute;
  left: 32%;
  bottom: -180px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-accent-soft), transparent 68%);
}

.me-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(249, 243, 230, 0.4);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.hero-eyebrow::before {
  content: "";
  width: 15px;
  height: 1px;
  background: var(--hero-accent);
}

.me-name-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 17px 0 18px;
}

.me-hero .avatar {
  width: 66px;
  height: 66px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--hero-accent-soft);
  box-shadow: none;
  color: var(--hero-accent);
  font-size: 26px;
}

.me-name-row h2 {
  margin: 0 0 3px;
  color: #fbf6e9;
  font-family: var(--font-serif);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.me-name-row p {
  margin: 0;
  color: rgba(249, 243, 230, 0.48);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1px;
}

.hero-stat {
  padding: 0 20px;
  border-left: 1px solid rgba(248, 242, 228, 0.12);
}

.hero-stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stat strong {
  display: block;
  color: #fbf6e9;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
}

.hero-stat span {
  display: block;
  margin-top: 5px;
  color: rgba(249, 243, 230, 0.42);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

.me-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(248, 242, 228, 0.16);
  border-radius: 8px;
  background: rgba(250, 246, 236, 0.055);
  color: rgba(250, 245, 233, 0.8);
  font-size: 9.5px;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}

.hero-btn:hover {
  border-color: rgba(248, 242, 228, 0.28);
  background: rgba(250, 246, 236, 0.09);
  color: #fbf6e9;
}

.hero-btn svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-btn-accent {
  border-color: transparent;
  background: var(--butter);
  color: #343a2b;
  font-weight: 600;
}

.hero-btn-accent:hover {
  border-color: transparent;
  background: #f4d078;
  color: #252d23;
}

.me-hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-note {
  position: relative;
  width: min(230px, 100%);
  padding: 20px 19px 17px;
  border: 1px solid rgba(248, 242, 228, 0.12);
  border-radius: 17px 17px 17px 5px;
  background: rgba(250, 246, 236, 0.06);
  box-shadow: 0 18px 28px rgba(8, 18, 12, 0.1);
  transform: rotate(-2.1deg);
}

.hero-note::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 26px;
  width: 38px;
  height: 14px;
  background: rgba(240, 196, 95, 0.27);
  transform: rotate(5deg);
  clip-path: polygon(1% 5%, 99% 0, 96% 92%, 3% 100%);
}

.hero-note-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(249, 243, 230, 0.35);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.hero-note-label svg {
  width: 10px;
  height: 10px;
  color: var(--hero-accent);
}

.hero-note p {
  margin: 13px 0 14px;
  color: #f8f2e5;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.hero-note-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(248, 242, 228, 0.12);
  color: rgba(249, 243, 230, 0.38);
  font-size: 8px;
}

.hero-note-foot strong {
  color: var(--hero-accent);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
}

.hero-star {
  position: absolute;
  top: -9px;
  right: 6px;
  width: 25px;
  height: 25px;
  color: var(--butter);
  transform: rotate(9deg);
}

.hero-star svg {
  width: 100%;
  height: 100%;
}

.me-section {
  margin-bottom: 29px;
}

.me-section .section-heading {
  margin-bottom: 13px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.person-card {
  --author-color: var(--coral);
  --author-soft: var(--coral-soft);
  --author-ink: var(--coral-deep);
  --author-ring: rgba(217, 106, 74, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 73px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.person-card.author-b {
  --author-color: var(--teal);
  --author-soft: var(--teal-soft);
  --author-ink: var(--teal-deep);
  --author-ring: rgba(76, 122, 114, 0.11);
}

.person-card:hover {
  border-color: #cfc0a9;
  box-shadow: 0 8px 20px rgba(66, 52, 32, 0.055);
  transform: translateY(-1px);
}

.person-card.is-current {
  border-color: var(--author-color);
  box-shadow: 0 0 0 2px var(--author-ring);
}

.person-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.person-name {
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-meta {
  overflow: hidden;
  color: #968976;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  align-self: flex-start;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: var(--author-soft);
  color: var(--author-ink);
  font-size: 7.5px;
  font-weight: 600;
}

.person-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  color: #a49783;
  font-size: 8.5px;
}

.person-switch svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--card);
  box-shadow: 0 3px 10px rgba(66, 52, 32, 0.025);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-box {
  position: relative;
  min-height: 111px;
  padding: 15px 15px 13px;
  overflow: hidden;
  border: 1px solid #eee6d9;
  border-radius: 14px;
  background: #f8f3e9;
}

.stat-box::after {
  content: "";
  position: absolute;
  top: -23px;
  right: -23px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(162, 141, 106, 0.12);
  border-radius: 50%;
}

.stat-box.stat-pending {
  background: #faf2dd;
  border-color: #f0e3c6;
}

.stat-box.stat-done {
  background: #eff4ea;
  border-color: #e1eadc;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #948571;
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.stat-label svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 10px 0 3px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.stat-value small {
  color: #958773;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
}

.stat-foot {
  color: #a09480;
  font-size: 8px;
}

.completion-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #e9dfd0;
}

.completion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8f826e;
  font-size: 9px;
}

.completion-head strong {
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
}

.progress-track {
  height: 7px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee6d8;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), #e5ac64 55%, var(--sage));
  transition: width 0.6s var(--ease-out);
}

.settings-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--card);
}

.setting-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 62px;
  padding: 11px 16px;
  border-bottom: 1px solid #f0e8dc;
  text-align: left;
  transition: background 0.18s;
}

.setting-row:last-child {
  border-bottom: 0;
}

.setting-row:hover {
  background: #fbf7ef;
}

.setting-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: #f2ece1;
  color: #80735f;
}

.setting-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.setting-row-danger .setting-icon {
  background: #f9e8e1;
  color: #b65d44;
}

.setting-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.setting-copy strong {
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.setting-copy small {
  overflow: hidden;
  color: #a09380;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.setting-arrow {
  flex: none;
  width: 14px;
  height: 14px;
  color: #b8ab98;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.data-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 11px 0 0;
  color: #a29684;
  font-size: 8.5px;
  letter-spacing: 0.015em;
}

.data-note svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.me-signature {
  margin: 42px 0 0;
  color: #b1a38e;
  font-family: var(--font-serif);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-align: center;
}

.me-signature span {
  padding-left: 4px;
  color: #c7a749;
  font-size: 8px;
}

/* =========================================================
   Mobile navigation
   ========================================================= */

.mobile-nav {
  display: none;
}

/* =========================================================
   Modal
   ========================================================= */

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-layer[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 26, 0.48);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: fadeIn 0.22s ease both;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 24px 24px 20px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  background: var(--paper-soft);
  box-shadow: 0 30px 80px rgba(15, 27, 20, 0.3);
  animation: modalIn 0.3s var(--ease-out) both;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  color: #978a77;
  transition: background 0.18s, color 0.18s;
}

.modal-close:hover {
  background: #eee6d9;
  color: var(--ink);
}

.modal-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-eyebrow {
  margin: 0 0 7px;
  color: #a0927d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.modal-title {
  margin: 0;
  padding-right: 30px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.modal-desc {
  margin: 7px 0 18px;
  color: #8d806e;
  font-size: 10.5px;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 21px;
}

.modal-choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 64px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.modal-identity:hover {
  border-color: #cbbca5;
  background: #fffdf8;
}

.modal-identity.is-current {
  border-color: var(--pine);
  box-shadow: 0 0 0 2px rgba(32, 53, 43, 0.055);
}

.modal-identity-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.modal-identity-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-identity-copy span {
  color: #9c8f7b;
  font-size: 8.5px;
}

.modal-current-label {
  flex: none;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: 7.5px;
  font-weight: 600;
}

.modal-identity .modal-chevron {
  width: 13px;
  height: 13px;
  color: #b3a692;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-subtle-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  color: #907f6a;
  font-size: 9.5px;
  text-decoration: underline;
  text-decoration-color: #d7c8b3;
  text-underline-offset: 3px;
}

.modal-subtle-link:hover {
  color: var(--coral-deep);
}

.modal-subtle-link svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  color: #968974;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.form-field input {
  width: 100%;
  height: 43px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.form-field input:focus {
  border-color: #bfae95;
  box-shadow: 0 0 0 3px rgba(199, 181, 154, 0.2);
}

.form-error {
  min-height: 14px;
  margin: 7px 0 0;
  color: #b3543b;
  font-size: 9.5px;
}

.modal-preview {
  margin: 3px 0 0;
  padding: 11px 12px;
  border: 1px solid #e9dfd0;
  border-radius: 10px;
  background: #f4eee3;
  color: #746858;
  font-size: 11px;
  line-height: 1.65;
}

.modal-warning {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f9e8e1;
  color: #9d4f39;
  font-size: 9.5px;
  line-height: 1.65;
}

.modal-warning svg {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Toast
   ========================================================= */

.toast-region {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(255, 252, 240, 0.13);
  border-radius: 999px;
  background: var(--pine);
  box-shadow: 0 15px 32px rgba(15, 28, 20, 0.24);
  color: #faf4e7;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  animation: toastIn 0.32s var(--ease-out) both;
}

.toast svg {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--butter);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast.is-leaving {
  animation: toastOut 0.2s ease both;
}

/* =========================================================
   Welcome / onboarding
   ========================================================= */

.welcome {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #182b22;
}

.welcome[hidden] {
  display: none;
}

.welcome::before {
  content: "";
  position: fixed;
  top: -18%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 106, 74, 0.12), transparent 64%);
  pointer-events: none;
}

.welcome::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image: radial-gradient(rgba(250, 245, 233, 0.2) 0.7px, transparent 0.8px);
  background-size: 23px 23px;
  mask-image: linear-gradient(135deg, #000, transparent 62%);
}

.welcome-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  outline: none;
  width: min(1150px, 100%);
  min-height: min(750px, calc(100dvh - 48px));
  overflow: hidden;
  border-radius: 31px;
  background: var(--paper);
  box-shadow: 0 42px 105px rgba(3, 12, 7, 0.4);
  animation: welcomeIn 0.58s var(--ease-out) both;
}

.welcome-art {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 35px 44px 24px;
  background: var(--pine);
  color: #f8f1e2;
}

.welcome-art::before {
  content: "";
  position: absolute;
  top: -265px;
  left: -140px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(240, 196, 95, 0.11);
  border-radius: 50%;
  pointer-events: none;
}

.welcome-art::after {
  content: "";
  position: absolute;
  right: -235px;
  bottom: -235px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 106, 74, 0.18), transparent 66%);
  pointer-events: none;
}

.welcome-art > * {
  position: relative;
  z-index: 1;
}

.welcome-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark-welcome {
  flex-basis: 41px;
  width: 41px;
  height: 41px;
}

.welcome-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.welcome-brand strong {
  color: #fbf5e8;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.welcome-brand small {
  margin-top: 5px;
  color: rgba(248, 241, 226, 0.42);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.welcome-stamp {
  position: absolute;
  top: 37px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 69px;
  height: 69px;
  border: 1px dashed rgba(240, 196, 95, 0.39);
  border-radius: 50%;
  color: rgba(240, 196, 95, 0.78);
  font-family: var(--font-serif);
  font-size: 7px;
  letter-spacing: 0.13em;
  transform: rotate(9deg);
}

.welcome-stamp svg {
  width: 12px;
  height: 12px;
  margin: 3px 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.welcome-hero-copy {
  max-width: 440px;
  margin-top: clamp(30px, 5.6vh, 62px);
}

.welcome-kicker {
  margin: 0 0 17px;
  color: rgba(248, 241, 226, 0.37);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.25em;
}

.welcome-hero-copy h1 {
  margin: 0;
  color: #fbf5e8;
  font-family: var(--font-serif);
  font-size: clamp(43px, 4.55vw, 61px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.23;
}

.welcome-hero-copy h1 em {
  position: relative;
  color: var(--butter);
  font-style: normal;
  white-space: nowrap;
}

.welcome-hero-copy h1 em::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  left: 2px;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c31-5 67-6 98-2 31 4 63 1 98-2' fill='none' stroke='%23f0c45f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: 0.55;
}

.welcome-desc {
  max-width: 365px;
  margin: 20px 0 0;
  color: rgba(248, 241, 226, 0.58);
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.9;
}

.welcome-mobile-break {
  display: none;
}

.welcome-notes {
  position: relative;
  flex: 1;
  min-height: 212px;
  margin-top: 12px;
}

.welcome-note {
  position: absolute;
  padding: 15px 15px 12px;
  border-radius: 10px;
  background: #f2e7d4;
  box-shadow: 0 20px 32px rgba(5, 15, 9, 0.1);
  color: #3f493f;
}

.welcome-note::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(94, 76, 49, 0.07);
  border-radius: inherit;
  pointer-events: none;
}

.welcome-note-1 {
  bottom: 36px;
  left: 0;
  z-index: 3;
  width: min(220px, 42%);
  transform: rotate(-4.1deg);
  animation: noteFloat 8s ease-in-out infinite;
}

.welcome-note-2 {
  right: 0;
  bottom: 8px;
  z-index: 2;
  width: min(238px, 46%);
  background: #dde7dc;
  transform: rotate(2.8deg);
  animation: noteFloatAlt 9s ease-in-out infinite;
}

.welcome-note-3 {
  right: 12px;
  bottom: 128px;
  z-index: 1;
  width: min(188px, 37%);
  background: #f3dfd6;
  transform: rotate(5.2deg);
}

.mini-tape {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 50px;
  height: 13px;
  background: rgba(245, 236, 218, 0.55);
  transform: translateX(-50%) rotate(2deg);
  clip-path: polygon(2% 6%, 98% 0, 95% 94%, 3% 100%);
}

.mini-note-author {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #8b7c67;
  font-size: 8px;
  font-weight: 600;
}

.mini-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.dot-a {
  background: var(--coral);
}

.dot-b {
  background: var(--teal);
}

.welcome-note p {
  margin: 5px 0 7px;
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.7;
}

.mini-note-time {
  display: block;
  color: #a49682;
  font-size: 7.5px;
  text-align: right;
}

.welcome-note-3 p {
  margin: 9px 0 3px;
  color: #806a5e;
  font-size: 11.5px;
}

.mini-check {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #d8e6d7;
  color: #5e7e5c;
  font-size: 10px;
  font-weight: 700;
}

.welcome-doodle {
  display: none;
}

.welcome-art-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(248, 241, 226, 0.1);
  color: rgba(248, 241, 226, 0.34);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.welcome-art-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.welcome-art-foot svg {
  width: 9px;
  height: 9px;
  color: rgba(240, 196, 95, 0.7);
}

.welcome-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 46px clamp(34px, 4vw, 56px);
  background: var(--paper);
}

.welcome-choice::before {
  content: "";
  position: absolute;
  top: 28px;
  right: 31px;
  width: 44px;
  height: 44px;
  border-top: 1px solid #ded2c0;
  border-right: 1px solid #ded2c0;
  border-radius: 0 8px 0 0;
  pointer-events: none;
  opacity: 0.8;
}

.welcome-choice-inner {
  width: 100%;
  max-width: 408px;
  margin: 0 auto;
}

.welcome-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #9c8f7b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.welcome-step span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid #ebd9a8;
  border-radius: 50%;
  background: var(--butter-soft);
  color: #8a6c27;
  font-size: 8px;
  letter-spacing: 0;
}

.welcome-choice h2 {
  margin: 0 0 9px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.4vw, 43px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.welcome-choice-desc {
  max-width: 350px;
  margin: 0 0 23px;
  color: #817765;
  font-size: 12px;
  line-height: 1.8;
}

.identity-choice {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.choice-card:hover {
  border-color: #cdbda7;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(64, 51, 32, 0.05);
}

.choice-card.is-selected {
  border-color: var(--pine);
  background: #fffdf8;
  box-shadow: 0 0 0 3px rgba(32, 53, 43, 0.065), 0 10px 23px rgba(64, 51, 32, 0.06);
}

.choice-avatar {
  width: 51px;
  height: 51px;
  font-size: 19px;
}

.choice-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.choice-label {
  color: #a89b87;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.choice-name {
  width: 100%;
  padding: 1px 0;
  border: 0;
  border-bottom: 1px dashed transparent;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  transition: border-color 0.18s;
}

.choice-name:hover,
.choice-name:focus {
  border-bottom-color: #cdbca4;
}

.choice-role {
  color: #918472;
  font-size: 9.5px;
  line-height: 1.4;
}

.choice-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 21px;
  height: 21px;
  border: 1.5px solid #d6cab7;
  border-radius: 50%;
  color: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.choice-check svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choice-card.is-selected .choice-check {
  border-color: var(--pine);
  background: var(--pine);
  color: #f9f3e5;
}

.welcome-tip {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin: 11px 2px 17px;
  color: #998c78;
  font-size: 9.5px;
  line-height: 1.6;
}

.welcome-tip svg {
  flex: none;
  width: 11px;
  height: 11px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 0 17px 0 19px;
  border: 1px solid rgba(133, 59, 39, 0.22);
  border-radius: 13px;
  background: var(--coral);
  box-shadow: 0 10px 23px rgba(180, 78, 50, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff9f2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.welcome-start:hover {
  background: var(--coral-deep);
  box-shadow: 0 13px 28px rgba(180, 78, 50, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.welcome-start svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.welcome-start:hover svg {
  transform: translateX(3px);
}

.welcome-private {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 13px 0 0;
  color: #aa9d89;
  font-size: 8px;
}

.welcome-private svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.welcome-endnote {
  display: none;
}

.welcome.is-leaving {
  animation: welcomeOut 0.36s var(--ease-out) both;
  pointer-events: none;
}

/* =========================================================
   Animations
   ========================================================= */

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardArrive {
  from {
    opacity: 0;
    transform: translateY(-7px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes revealDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(7px) scale(0.98);
  }
}

@keyframes welcomeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes welcomeOut {
  to {
    opacity: 0;
    transform: scale(0.988);
  }
}

@keyframes noteFloat {
  0%,
  100% {
    transform: rotate(-4.4deg) translateY(0);
  }
  50% {
    transform: rotate(-4.9deg) translateY(-5px);
  }
}

@keyframes noteFloatAlt {
  0%,
  100% {
    transform: rotate(3.1deg) translateY(0);
  }
  50% {
    transform: rotate(3.8deg) translateY(4px);
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1220px) {
  :root {
    --sidebar-width: 250px;
  }

  .sidebar {
    padding-right: 17px;
    padding-left: 17px;
  }

  .topbar {
    padding: 0 36px;
  }

  .main-content {
    max-width: 950px;
    padding-right: 36px;
    padding-left: 36px;
  }

  .welcome-art {
    padding-right: 36px;
    padding-left: 36px;
  }

  .welcome-choice {
    padding-right: 39px;
    padding-left: 39px;
  }
}

@media (max-width: 1080px) and (min-width: 961px) {
  .brand-copy small {
    letter-spacing: 0.15em;
  }

  .sidebar-note {
    margin-right: 3px;
    margin-left: 3px;
  }

  .welcome-shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
  }

  .welcome-hero-copy h1 {
    font-size: 46px;
  }

  .welcome-note-3 {
    display: none;
  }
}

@media (max-height: 790px) and (min-width: 961px) {
  .sidebar-note {
    display: none;
  }

  .sidebar-spacer {
    min-height: 28px;
  }

  .welcome {
    padding: 16px;
  }

  .welcome-shell {
    min-height: calc(100dvh - 32px);
  }

  .welcome-hero-copy {
    margin-top: 32px;
  }

  .welcome-desc {
    margin-top: 13px;
  }

  .welcome-notes {
    min-height: 164px;
  }

  .welcome-note-3 {
    display: none;
  }

  .welcome-note-1 {
    bottom: 20px;
  }

  .welcome-note-2 {
    bottom: -3px;
  }

  .welcome-art-foot {
    margin-top: 11px;
  }
}

@media (max-width: 960px) {
  .sidebar {
    display: none;
  }

  .main-shell {
    margin-left: 0;
  }

  .topbar {
    position: sticky;
    top: 0;
    height: 68px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(225, 215, 200, 0.7);
    background: rgba(245, 239, 228, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .topbar-context {
    display: none;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
  }

  .brand-mark-small {
    flex-basis: 33px;
    width: 33px;
    height: 33px;
  }

  .topbar-right {
    gap: 6px;
  }

  .sync-indicator {
    min-height: 23px;
    padding: 0 7px;
    font-size: 8px;
  }

  .identity-pill {
    min-height: 40px;
    padding: 3px 8px 3px 3px;
    gap: 7px;
  }

  .identity-pill .avatar {
    width: 31px;
    height: 31px;
    font-size: 12px;
  }

  .identity-pill-copy span {
    display: none;
  }

  .identity-pill-copy strong {
    font-size: 11px;
  }

  .identity-pill-copy {
    padding-right: 2px;
  }

  .sync-indicator span {
    max-width: 38px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .identity-chevron {
    width: 12px;
    height: 12px;
    margin-right: 2px;
  }

  .main-content {
    max-width: 820px;
    padding: 16px 24px 110px;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    padding: 7px 16px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(219, 208, 192, 0.75);
    background: rgba(250, 246, 237, 0.94);
    box-shadow: 0 -10px 30px rgba(55, 43, 27, 0.055);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-height: 47px;
    border-radius: 12px;
    color: #968a78;
    font-size: 8.5px;
    letter-spacing: 0.02em;
    transition: color 0.18s, background 0.18s;
  }

  .mobile-nav-item.is-active {
    color: var(--coral-deep);
    font-weight: 600;
  }

  .mobile-nav-item.is-active::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--coral);
    transform: translateX(-50%);
  }

  .mobile-nav-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
  }

  .mobile-nav-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-badge {
    position: absolute;
    top: -5px;
    right: -9px;
    display: grid;
    place-items: center;
    min-width: 14px;
    height: 14px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--coral);
    color: #fffaf3;
    font-size: 7px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
  }

  .toast-region {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .welcome {
    display: block;
    padding: 0;
    overflow-y: auto;
    background: var(--pine);
  }

  .welcome::before,
  .welcome::after {
    display: none;
  }

  .welcome-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100dvh;
    overflow: visible;
    border-radius: 0;
    background: var(--paper);
    box-shadow: none;
    animation: fadeIn 0.35s ease both;
  }

  .welcome-art {
    flex: 0 0 auto;
    min-height: 230px;
    padding: 23px 22px 26px;
    overflow: hidden;
    border-radius: 0;
  }

  .welcome-art::before {
    top: -290px;
    left: auto;
    right: -160px;
  }

  .welcome-art::after {
    right: -160px;
    bottom: -280px;
  }

  .welcome-brand {
    gap: 9px;
  }

  .brand-mark-welcome {
    flex-basis: 35px;
    width: 35px;
    height: 35px;
  }

  .welcome-brand strong {
    font-size: 19px;
  }

  .welcome-brand small {
    margin-top: 4px;
    font-size: 7px;
    letter-spacing: 0.19em;
  }

  .welcome-stamp {
    display: none;
  }

  .welcome-hero-copy {
    margin-top: 27px;
  }

  .welcome-kicker {
    margin-bottom: 8px;
    font-size: 7px;
  }

  .welcome-hero-copy h1 {
    font-size: clamp(33px, 9vw, 43px);
    line-height: 1.22;
  }

  .welcome-desc {
    max-width: 315px;
    margin-top: 12px;
    font-size: 10px;
    line-height: 1.75;
  }

  .welcome-notes,
  .welcome-art-foot {
    display: none;
  }

  .welcome-choice {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: -17px;
    padding: 26px 20px calc(25px + env(safe-area-inset-bottom));
    border-radius: 23px 23px 0 0;
    background: var(--paper);
    box-shadow: 0 -12px 30px rgba(17, 33, 24, 0.12);
  }

  .welcome-choice::before {
    display: none;
  }

  .welcome-choice-inner {
    max-width: 500px;
  }

  .welcome-step {
    margin-bottom: 13px;
  }

  .welcome-choice h2 {
    font-size: 30px;
    margin-bottom: 7px;
  }

  .welcome-choice-desc {
    max-width: none;
    margin-bottom: 17px;
    font-size: 10px;
  }

  .identity-choice {
    gap: 8px;
  }

  .choice-card {
    padding: 10px 12px;
    border-radius: 15px;
  }

  .choice-avatar {
    width: 45px;
    height: 45px;
    font-size: 17px;
  }

  .choice-name {
    font-size: 18.5px;
  }

  .choice-role {
    font-size: 8px;
  }

  .welcome-tip {
    margin-top: 9px;
    margin-bottom: 14px;
  }

  .welcome-start {
    min-height: 49px;
  }

  .welcome-private {
    margin-top: 11px;
  }

  .welcome-endnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: auto 0 0;
    padding-top: 30px;
    color: #b2a38d;
    font-family: var(--font-serif);
    font-size: 8.5px;
    letter-spacing: 0.1em;
    text-align: center;
  }

  .welcome-endnote span {
    color: #c5a64f;
    font-size: 7px;
  }

  .modal-layer {
    padding: 14px;
  }

  .modal-panel {
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .main-content {
    padding: 10px 16px 105px;
  }

  .topbar {
    height: 63px;
    padding: 0 16px;
  }

  .mobile-brand {
    font-size: 17px;
  }

  .brand-mark-small {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .identity-pill-copy strong {
    max-width: 68px;
  }

  .page-heading {
    gap: 13px;
    margin-bottom: 25px;
  }

  .eyebrow {
    gap: 6px;
    margin-bottom: 11px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .page-title {
    font-size: clamp(28px, 7.8vw, 35px);
    line-height: 1.27;
  }

  .page-sub {
    max-width: 92%;
    margin-top: 9px;
    font-size: 11.5px;
    line-height: 1.65;
  }

  .date-ticket {
    flex-basis: 75px;
    width: 75px;
    min-height: 102px;
    margin-top: 5px;
    border-radius: 4px 4px 17px 4px;
  }

  .date-ticket::after {
    inset: 6px;
  }

  .date-ticket-tape {
    width: 38px;
    height: 13px;
    top: -7px;
  }

  .date-ticket-month {
    font-size: 7px;
  }

  .date-ticket strong {
    margin: 6px 0 5px;
    font-size: 37px;
  }

  .date-ticket-weekday {
    font-size: 8.5px;
  }

  .composer-card {
    margin-bottom: 32px;
    padding: 17px 15px 14px;
    border-radius: 21px;
  }

  .composer-head {
    display: block;
    margin-bottom: 13px;
  }

  .section-kicker {
    font-size: 7.5px;
    margin-bottom: 4px;
  }

  .composer-head h2 {
    font-size: 19px;
  }

  .composer-identity {
    margin-top: 7px;
    font-size: 9.5px;
  }

  .composer-identity .avatar {
    width: 19px;
    height: 19px;
    font-size: 8px;
  }

  .text-link {
    font-size: 9.5px;
  }

  #composerInput {
    min-height: 91px;
    padding: 13px 13px 29px;
    font-size: 15px;
    line-height: 1.65;
  }

  .char-count {
    right: 11px;
    bottom: 8px;
    font-size: 8px;
  }

  .composer-foot {
    display: flex;
    gap: 11px;
    align-items: stretch;
    flex-direction: column;
    margin-top: 11px;
  }

  .composer-tags {
    gap: 5px;
  }

  .tag-prompt {
    width: 100%;
    margin-bottom: 1px;
    font-size: 9px;
  }

  .tag-chip {
    flex: 1;
    justify-content: center;
    min-height: 31px;
    padding: 0 8px;
    font-size: 9.5px;
  }

  .composer-submit {
    justify-content: space-between;
    width: 100%;
    margin-top: 1px;
  }

  .shortcut-hint {
    font-size: 8px;
  }

  .add-task-btn {
    flex: none;
    min-width: 112px;
    min-height: 42px;
    font-size: 11.5px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .section-meta {
    font-size: 9px;
    white-space: normal;
  }

  .count-chip {
    height: 19px;
    font-size: 8.5px;
  }

  .talk-list {
    gap: 9px;
  }

  .task-card {
    padding: 14px 13px 12px 18px;
    border-radius: 16px;
  }

  .task-card::before {
    top: 14px;
    bottom: 14px;
    width: 2.5px;
  }

  .card-topline {
    gap: 5px;
    margin-bottom: 7px;
  }

  .card-author {
    gap: 5px;
    font-size: 9.5px;
  }

  .card-author .avatar {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }

  .card-time {
    font-size: 8.5px;
  }

  .card-tag {
    height: 18px;
    padding: 0 6px;
    font-size: 8px;
  }

  .task-text {
    font-size: 14.5px;
    line-height: 1.68;
  }

  .card-foot {
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
    padding-top: 9px;
  }

  .status-group {
    flex: 1;
    justify-content: space-between;
    max-width: 224px;
  }

  .status-btn {
    flex: 1;
    min-height: 28px;
    padding: 0 5px;
    font-size: 9.5px;
  }

  .status-btn svg {
    width: 11px;
    height: 11px;
  }

  .card-tools {
    margin-left: auto;
  }

  .subtle-btn {
    padding: 0 5px;
    font-size: 9px;
  }

  .task-note {
    margin-top: 9px;
    padding: 8px 9px;
    font-size: 10.5px;
  }

  .earlier-nudge {
    gap: 8px;
    padding: 10px 11px;
    font-size: 10px;
  }

  .earlier-icon {
    width: 23px;
    height: 23px;
  }

  .earlier-link {
    font-size: 9.5px;
  }

  .empty-state {
    padding: 18px 14px 17px;
    border-radius: 18px;
  }

  .empty-art svg {
    width: 185px;
    max-width: 76%;
  }

  .empty-state h3 {
    font-size: 17px;
  }

  .empty-state p {
    margin-bottom: 13px;
    font-size: 10.5px;
  }

  .review-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 19px 18px;
    border-radius: 20px;
  }

  .banner-main {
    gap: 11px;
  }

  .banner-icon {
    width: 37px;
    height: 37px;
  }

  .banner-icon svg {
    width: 17px;
    height: 17px;
  }

  .review-banner h2 {
    font-size: 18px;
    line-height: 1.5;
  }

  .banner-side {
    align-items: center;
    gap: 14px;
    width: 100%;
  }

  .banner-progress {
    min-width: 0;
    flex: 1;
  }

  .banner-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 9.5px;
  }

  .history-heading-mark {
    display: none;
  }

  .history-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 13px;
  }

  .filter-tabs {
    width: 100%;
  }

  .filter-tab {
    flex: 1;
    justify-content: center;
    min-height: 30px;
    padding: 0 5px;
    font-size: 9.5px;
  }

  .filter-tab span {
    font-size: 7.5px;
  }

  .history-summary {
    padding-left: 3px;
    font-size: 8.5px;
  }

  .date-filter {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
  }

  .date-filter-label {
    font-size: 8px;
  }

  .date-strip {
    width: calc(100vw - 32px);
    margin-right: -16px;
    padding-right: 16px;
    gap: 4px;
  }

  .date-chip {
    height: 30px;
    padding: 0 10px;
    font-size: 9.5px;
  }

  .history-content {
    gap: 26px;
  }

  .day-head {
    gap: 8px;
  }

  .day-title {
    gap: 6px;
  }

  .day-title strong {
    font-size: 16px;
  }

  .day-title span {
    font-size: 8.5px;
  }

  .day-today {
    height: 16px;
    padding: 0 5px;
    font-size: 7.5px;
  }

  .day-count {
    font-size: 8px;
  }

  .day-group {
    gap: 8px;
  }

  .day-group .talk-list {
    gap: 8px;
  }

  .end-note {
    font-size: 8.5px;
    gap: 8px;
  }

  .end-note::before,
  .end-note::after {
    width: 24px;
  }

  .me-heading {
    margin-bottom: 21px;
  }

  .me-hero {
    display: block;
    min-height: 0;
    margin-bottom: 26px;
    padding: 22px 20px;
    border-radius: 22px;
  }

  .me-name-row {
    gap: 12px;
    margin: 13px 0 16px;
  }

  .me-hero .avatar {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }

  .me-name-row h2 {
    font-size: 26px;
  }

  .me-name-row p {
    font-size: 9px;
  }

  .hero-stat {
    padding: 0 16px;
  }

  .hero-stat strong {
    font-size: 22px;
  }

  .hero-stat span {
    font-size: 8px;
  }

  .me-hero-actions {
    margin-top: 18px;
  }

  .me-hero-art {
    display: none;
  }

  .me-section {
    margin-bottom: 24px;
  }

  .people-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .person-card {
    min-height: 67px;
    padding: 10px 12px;
  }

  .stats-card {
    padding: 12px;
    border-radius: 18px;
  }

  .stats-grid {
    gap: 7px;
  }

  .stat-box {
    min-height: 102px;
    padding: 12px 10px 11px;
    border-radius: 12px;
  }

  .stat-label {
    font-size: 7.5px;
    line-height: 1.35;
  }

  .stat-label svg {
    display: none;
  }

  .stat-value {
    margin: 10px 0 4px;
    font-size: 29px;
  }

  .stat-value small {
    font-size: 8px;
  }

  .stat-foot {
    font-size: 7.5px;
    line-height: 1.4;
  }

  .completion-head {
    font-size: 8.5px;
  }

  .setting-row {
    min-height: 59px;
    padding: 10px 13px;
  }

  .setting-copy strong {
    font-size: 10.5px;
  }

  .setting-copy small {
    font-size: 8.5px;
  }

  .setting-icon {
    width: 30px;
    height: 30px;
  }

  .data-note {
    align-items: flex-start;
    padding: 0 8px;
    font-size: 8px;
    line-height: 1.6;
    text-align: center;
  }

  .data-note svg {
    margin-top: 1px;
  }

  .me-signature {
    margin-top: 30px;
    font-size: 8.5px;
  }

  .welcome {
    padding: 0;
  }

  .welcome-art {
    min-height: 216px;
    padding: 21px 19px 24px;
  }

  .welcome-hero-copy {
    margin-top: 23px;
  }

  .welcome-hero-copy h1 {
    font-size: clamp(31px, 8.8vw, 39px);
  }

  .welcome-desc {
    max-width: 280px;
    margin-top: 10px;
    font-size: 9.5px;
  }

  .welcome-choice {
    padding: 23px 18px calc(22px + env(safe-area-inset-bottom));
  }

  .welcome-choice h2 {
    font-size: 28px;
  }

  .welcome-choice-desc {
    margin-bottom: 15px;
    font-size: 9.5px;
    line-height: 1.7;
  }

  .welcome-step {
    margin-bottom: 11px;
  }

  .choice-card {
    padding: 10px;
    gap: 10px;
  }

  .choice-avatar {
    width: 43px;
    height: 43px;
    font-size: 16px;
  }

  .choice-name {
    font-size: 18px;
  }

  .choice-role {
    font-size: 7.5px;
  }

  .welcome-tip {
    font-size: 8px;
    margin-bottom: 13px;
  }

  .welcome-start {
    min-height: 47px;
    font-size: 11px;
  }

  .welcome-private {
    font-size: 7.5px;
  }

  .modal-layer {
    align-items: end;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 92dvh;
    padding: 22px 18px calc(17px + env(safe-area-inset-bottom));
    border-radius: 21px 21px 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    animation: sheetIn 0.3s var(--ease-out) both;
  }

  .modal-title {
    font-size: 21px;
  }

  .toast {
    font-size: 10px;
    padding: 9px 12px 9px 11px;
  }

  .toast-region {
    bottom: calc(69px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .main-content {
    padding-right: 13px;
    padding-left: 13px;
  }

  .date-strip {
    width: calc(100vw - 26px);
    margin-right: -13px;
    padding-right: 13px;
  }

  .page-title {
    font-size: 27px;
  }

  .page-sub {
    max-width: 100%;
    font-size: 10.5px;
  }

  .date-ticket {
    flex-basis: 68px;
    width: 68px;
    min-height: 94px;
  }

  .date-ticket strong {
    font-size: 33px;
  }

  .status-btn {
    gap: 2px;
    font-size: 9px;
  }

  .status-btn svg {
    width: 10px;
    height: 10px;
  }

  .subtle-btn {
    padding: 0 4px;
  }

  .hero-stat {
    padding: 0 13px;
  }

  .stat-box {
    padding-right: 8px;
    padding-left: 8px;
  }

  .stat-value {
    font-size: 27px;
  }

  .welcome-choice {
    padding-right: 14px;
    padding-left: 14px;
  }

  .option-name,
  .choice-name {
    font-size: 17px;
  }

  .welcome-start {
    font-size: 10.5px;
  }
}

@keyframes sheetIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes syncPulse {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* Keep the smallest important labels and touch controls readable on phones. */
@media (max-width: 960px) {
  .welcome-desc {
    font-size: 11px;
  }

  .welcome-choice-desc {
    font-size: 11px;
  }

  .choice-role {
    font-size: 9px;
  }
}

@media (max-width: 640px) {
  .welcome-desc {
    font-size: 10.5px;
  }

  .welcome-mobile-break {
    display: inline;
  }

  .welcome-choice-desc {
    font-size: 11px;
    line-height: 1.75;
  }

  .choice-role,
  .welcome-tip {
    font-size: 9px;
  }

  .welcome-private,
  .data-note {
    font-size: 8.5px;
  }

  .tag-chip {
    min-height: 32px;
    font-size: 10px;
  }

  .card-author {
    font-size: 10.5px;
  }

  .card-time {
    font-size: 9.5px;
  }

  .card-tag {
    font-size: 8.5px;
  }

  .status-btn {
    min-height: 32px;
    padding: 0 6px;
    font-size: 10.5px;
  }

  .status-btn svg {
    width: 12px;
    height: 12px;
  }

  .subtle-btn {
    font-size: 9.5px;
  }

  .filter-tab {
    min-height: 33px;
    font-size: 10.5px;
  }

  .filter-tab span {
    font-size: 8px;
  }

  .date-chip {
    height: 32px;
    font-size: 10.5px;
  }

  .history-summary,
  .date-filter-label {
    font-size: 9.5px;
  }

  .section-meta {
    font-size: 10px;
  }

  .day-title span {
    font-size: 9px;
  }

  .day-count {
    font-size: 8.5px;
  }

  .person-meta {
    font-size: 9.5px;
  }

  .stat-label,
  .stat-foot {
    font-size: 8.5px;
  }

  .setting-copy strong {
    font-size: 11px;
  }

  .setting-copy small {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
