/* The four tabs of v5 (/v5). The colours, fonts and radii are the door's own tokens
   (tokens.css): the same paper, ink and warm light. This page adds what the first page does
   not have: a dark paper for a device set to dark, and sizes for a phone held in the hand
   (the first page's sizes are for a tablet seen from across a table).
   Contrast, measured: light ink-2 on paper 9.6:1, muted 5.7:1; dark text-2 on bg 10.9:1,
   text-3 6.6:1; the primary button 13:1 (light) and 12:1 (dark). */

html[data-v5] {
  color-scheme: light dark;
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --surface: var(--porcelain-flat);
  --text: var(--ink);
  --text-2: var(--ink-2);
  --text-3: var(--muted);
  --line: var(--hair);
  --wash: var(--ink-wash-2);
  --accent: var(--amber);
  --accent-soft: var(--cream);
  --accent-ink: #7a4a08;
  --primary-bg: #1f1a16;
  --primary-fg: #fffdf9;
  --danger: var(--attention);
  --done: var(--forest);
  --shadow: 0 1px 2px rgba(92, 66, 40, .06), 0 8px 24px -12px rgba(92, 66, 40, .18);
  --rail-w: 232px;
  --tabs-h: 64px;
  --r: 18px;
}
@media (prefers-color-scheme: dark) {
  html[data-v5] {
    --bg: #171411;
    --bg-2: #1e1a16;
    --surface: #26211c;
    --text: #f5eee4;
    --text-2: #d6ccbf;
    --text-3: #a89e91;
    --line: rgba(255, 238, 214, .14);
    --wash: rgba(255, 238, 214, .08);
    --accent: #f2a541;
    --accent-soft: #3a2c16;
    --accent-ink: #ffd89a;
    --primary-bg: #ffd15c;
    --primary-fg: #1b1714;
    --danger: #f3a27c;
    --done: #a5d3bd;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
  }
}

html[data-v5] *, html[data-v5] *::before, html[data-v5] *::after { box-sizing: border-box; }
html[data-v5] { background: var(--bg); -webkit-text-size-adjust: 100%; }
html[data-v5] body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font-family: var(--font-person); font-size: 16px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
:where(html[data-v5]) :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
:where(html[data-v5]) ul { list-style: none; }
:where(html[data-v5]) a { color: inherit; text-decoration: none; }
:where(html[data-v5]) :where(button, input, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
:where(html[data-v5]) button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
html[data-v5] [hidden] { display: none !important; }
html[data-v5] :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sprite { position: absolute; }
.ic { width: 22px; height: 22px; flex: none; }
.grow { flex: 1; }

/* ---- the frame: one column and a bar of four tabs below; wide, a rail, a list and a detail */
.shell { min-height: 100dvh; }
.pane { max-width: 640px; margin: 0 auto; padding: 20px 20px calc(var(--tabs-h) + 40px + env(safe-area-inset-bottom)); }
.rail { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.rail__mark { display: none; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); height: var(--tabs-h); max-width: 640px; margin: 0 auto; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 12px; font-weight: 600; }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] .ic { color: var(--accent); }
html[data-detail="1"] .rail { display: none; }
html[data-detail="1"] .pane { padding-bottom: 40px; }

@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: var(--rail-w) minmax(380px, 520px) minmax(0, 1fr); }
  .rail { position: sticky; top: 0; height: 100dvh; border-top: 0; border-right: 1px solid var(--line); padding: 28px 16px; background: var(--bg-2); }
  .rail__mark { display: block; font-family: var(--font-hodu); font-size: 22px; font-weight: 600; padding: 0 12px 24px; }
  .tabs { display: flex; flex-direction: column; gap: 4px; height: auto; }
  .tab { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px; border-radius: 12px; font-size: 16px; }
  .tab[aria-current="page"] { background: var(--wash); }
  .pane { margin: 0; max-width: none; padding: 32px 28px 56px; border-right: 1px solid var(--line); min-height: 100dvh; }
  .side { padding: 32px 40px 56px; max-width: 760px; }
  .side__empty { color: var(--text-3); padding-top: 96px; text-align: center; }
  html[data-detail="1"] .rail { display: block; }
  /* Today keeps three columns too: what a card opens stands beside it (PC3, round 2). */
  .detail__back { display: none !important; }
}

/* ---- heads, sections */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; min-height: 48px; }
.head__over { color: var(--text-3); font-size: 14px; font-weight: 600; }
.head__title { font-size: 28px; line-height: 1.25; font-weight: 700; letter-spacing: -0.03em; }
.section { font-size: 15px; font-weight: 700; color: var(--text-2); margin: 28px 0 12px; }
.side-block .section { margin: 24px 0 6px; }
.lead { color: var(--text-2); margin-bottom: 4px; }
.quiet { color: var(--text-3); padding: 6px 0; }
.loading { color: var(--text-3); padding: 96px 0; text-align: center; }
.kept-note { font-size: 13px; color: var(--accent-ink); background: var(--accent-soft); border-radius: 10px; padding: 8px 12px; margin-bottom: 16px; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; color: var(--text-3); }
.note { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-top: 12px; }
.note .ic { width: 15px; height: 15px; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
html[data-v5] .btn.primary { background: var(--primary-bg); color: var(--primary-fg); box-shadow: none; }
html[data-v5] .btn.quiet { background: none; box-shadow: none; color: var(--text-2); padding: 0 10px; }
html[data-v5] .btn.danger { background: var(--danger); color: var(--bg); box-shadow: none; }
html[data-v5] .btn.danger-text { color: var(--danger); }
.btn:active, .row:active, .item:active { opacity: .7; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text-2); }
html[data-v5] .icon-btn--solid { background: var(--primary-bg); color: var(--primary-fg); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.actions--end { margin-top: 28px; }

/* ---- cards (Today, People) */
.stack { display: grid; gap: 12px; }
.card { background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.card__title { font-size: 18px; line-height: 1.35; font-weight: 700; margin-top: 4px; }
.card__text { color: var(--text-2); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__link { display: block; margin-top: 8px; font-size: 14px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.card__state { margin-top: 12px; color: var(--text-2); display: flex; gap: 6px; align-items: flex-start; }
.card__state.is-done { color: var(--done); font-weight: 600; }
.card__state + .btn { margin-top: 4px; margin-left: -10px; }
.card__foot { font-size: 13px; color: var(--text-3); margin-top: 10px; }
.card[data-today="done"], .card[data-today="later"], .card[data-today="rest"] { box-shadow: inset 0 0 0 1px var(--line); background: none; }
.empty { text-align: center; padding: 72px 12px; color: var(--text-2); display: grid; gap: 6px; justify-items: center; }
.empty__title { font-size: 20px; color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 20px; }

/* ---- the line of Milestones */
.segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--wash); padding: 4px; border-radius: 14px; flex: 1; }
.segment { min-height: 40px; border-radius: 10px; text-align: center; font-weight: 600; font-size: 14px; color: var(--text-2); }
.segment b { margin-left: 6px; color: var(--text-3); font-weight: 600; }
.segment:hover { background: var(--surface); }
.side-block { scroll-margin-top: 72px; }
.line { position: relative; display: grid; }
.line::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.year { position: relative; padding: 14px 0 4px 32px; font-family: var(--font-hodu); font-size: 18px; font-weight: 600; color: var(--text-2); }
.item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 0; border-radius: 12px; width: 100%; }
.item .ic { color: var(--text-3); width: 18px; height: 18px; }
.item__dot { flex: none; width: 20px; height: 20px; display: grid; place-items: center; }
.item__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 2px var(--text-3); }
.item[data-kind="past"] .item__dot::after { background: var(--text-3); }
.item[data-done="1"] .item__dot::after { background: var(--done); box-shadow: 0 0 0 2px var(--done); }
.item--practice .item__dot::after { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.item__body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.item__title { font-size: 17px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.item__status { font-size: 13px; color: var(--accent-ink); }
.item[aria-current="true"] { background: var(--wash); }
/* the Today card whose page stands to the right on a wide screen (PC3, round 2) */
#pane .card:has(a[aria-current="true"]) { box-shadow: inset 0 0 0 2px var(--text-3); }

/* ---- one Milestone */
.detail__bar { display: flex; align-items: center; gap: 4px; margin: -8px -8px 12px; }
.detail__title { font-family: var(--font-hodu); font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; overflow-wrap: anywhere; }
.status { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); }
.block { margin-top: 28px; }
.block__title { font-size: 14px; font-weight: 700; color: var(--text-3); margin-bottom: 10px; }
.block .section { margin-top: 0; }
.prose { font-size: 17px; line-height: 1.7; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.prose + .prose { margin-top: 14px; }
.steps { display: grid; gap: 2px; margin-bottom: 10px; }
.step { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.step input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.step[data-done="1"] span { color: var(--text-3); text-decoration: line-through; }
.logs { display: grid; gap: 10px; }
.logs li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.logs time { font-size: 12px; color: var(--text-3); }
.logs__remove { justify-self: start; min-height: 32px; padding: 0; font-size: 13px; }
.detail__foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---- rows, chips, faces */
.rows { display: grid; gap: 8px; }
.row { display: grid; gap: 2px; width: 100%; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.row span { font-size: 13px; color: var(--text-3); }
.row + .row, .rows + .rows, .rows + .adder { margin-top: 8px; }
.row--danger strong { color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; }
html[data-v5] .chip[aria-checked="true"] { background: var(--primary-bg); color: var(--primary-fg); box-shadow: none; }
.faces { display: flex; flex-wrap: wrap; gap: 12px; }
.face { display: grid; justify-items: center; gap: 2px; min-width: 96px; padding: 14px 10px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.face__mark { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; margin-bottom: 6px; }
.face span:last-child { font-size: 12px; color: var(--text-3); }

/* ---- fields */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; font-weight: 700; color: var(--text-2); }
.field__hint { font-size: 13px; color: var(--text-3); }
html[data-v5] input[type="text"], html[data-v5] input[type="date"], html[data-v5] textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px; border: 0; background: var(--bg-2); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; resize: vertical;
}
html[data-v5] input::placeholder, html[data-v5] textarea::placeholder { color: var(--text-3); }
.when__extra { display: grid; gap: 8px; }
.when__extra:empty { display: none; }
.adder { display: flex; gap: 8px; margin-top: 8px; }
.adder input { flex: 1; min-width: 0; }

/* ---- the sheet: from below on a phone, in the middle on a wide screen */
.veil { position: fixed; inset: 0; z-index: 20; background: rgba(20, 14, 8, .45); }
.sheet { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; background: var(--bg); color: var(--text); border-radius: 22px 22px 0 0; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 40px rgba(0, 0, 0, .25); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: -8px; background: var(--bg); padding: 12px 0 8px; margin-right: -8px; z-index: 1; }
.sheet__title { font-size: 20px; font-weight: 700; }
.sheet__lead { color: var(--text-2); margin-bottom: 14px; }
@media (min-width: 1024px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(560px, 92vw); max-height: 86dvh; border-radius: 22px; padding: 12px 28px 28px; }
}

.gate { text-align: center; padding: 96px 12px; display: grid; gap: 10px; justify-items: center; color: var(--text-2); }
.gate__title { font-size: 22px; color: var(--text); }
.gate .btn { margin-top: 16px; }
html[data-v5] .toast { position: fixed; z-index: 30; left: 50%; bottom: calc(var(--tabs-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(92vw, 420px); padding: 12px 18px; border-radius: 14px; background: var(--primary-bg); color: var(--primary-fg); font-size: 15px; font-weight: 600; box-shadow: var(--shadow); text-align: center; }
/* ---- apps and settings (Me): a list of apps with a state word, a notice that asks, devices */
.apps { display: grid; margin-top: 10px; }
.app { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.app:last-child { border-bottom: 0; }
.app__mark { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.app__body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.app__body strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.app__body span { font-size: 13px; color: var(--text-3); overflow-wrap: anywhere; }
.app--soon .app__mark { background: var(--wash); color: var(--text-3); }
.app--soon .app__body strong { color: var(--text-2); }
.pill { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.pill--on { color: var(--done); box-shadow: inset 0 0 0 1px currentColor; }
.app[data-state="waiting"] .pill, .app[data-state="read-only"] .pill { white-space: normal; text-align: right; max-width: 46%; }
/* the other apps (v5 round 2, X3): a row whose words open the app and whose end is a press */
a.app__body { color: inherit; text-decoration: none; }
.app > .btn { flex: none; min-height: 36px; padding: 0 14px; font-size: 14px; }
.block__title small { font-weight: 500; }
.section--row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section--row .link { font-size: 13px; font-weight: 600; color: var(--text-3); }
.chip em { font-style: normal; font-size: 12px; margin-left: 6px; color: var(--accent-ink); }
.chip small { font-size: 12px; font-weight: 500; margin-left: 6px; color: var(--text-3); }
.chip--add { gap: 4px; color: var(--text-3); }
.chip--add .ic { width: 15px; height: 15px; }
.pieces { display: grid; gap: 4px; max-height: 46vh; overflow-y: auto; margin: 4px 0 8px; }
.piece { align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.piece span { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
[data-block="recommended"] .field__label { margin: 14px 0 8px; }
.ask { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); display: grid; gap: 4px; }
.ask p { font-size: 14px; }
.row--soon strong { color: var(--text-2); font-weight: 600; }
.row--soon { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row[data-due="soon"] span, .row[data-due="past"] span { color: var(--accent-ink); }
.device .actions { margin-top: 8px; }
button.row { text-align: left; }
.screen[data-screen="apps"] .card + .section { margin-top: 32px; }

@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: v5-rise 220ms var(--ease-out); }
  @keyframes v5-rise { from { opacity: 0; translate: 0 16px; } }
}

/* People: groups, a group's roster, a person (v5 track H) */
a.face { color: inherit; text-decoration: none; }
.members { display: grid; }
.member { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.member .face__mark { flex: none; width: 40px; height: 40px; font-size: 14px; }
.member__who { flex: 1; min-width: 0; display: grid; gap: 1px; color: inherit; text-decoration: none; }
.member__who strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.member__who span { font-size: 13px; color: var(--text-3); }
.person__head { display: flex; align-items: center; gap: 14px; }
.person__head .detail__title { margin: 0; }
.person__head .face__mark { flex: none; }

/* 나누기 (v5 track I): picking people and parts, and how it looks to them */
.pick { align-items: flex-start; padding: 8px 0; }
.pick input { margin-top: 2px; }
.pick__body { display: grid; gap: 2px; min-width: 0; }
.pick__body > span { font-size: 13px; color: var(--text-3); }
.pick__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: var(--text-2); }
.share-for + .share-for, .share-view + .share-view { border-top: 1px solid var(--line); padding-top: 20px; }
.share-for .field { margin-top: 10px; }
.share-for input[type="text"] { width: 100%; }
.share-view__more { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.card[data-kind="share-view"] .prose, .card[data-kind="shared-moment"] .prose { font-size: 16px; margin-top: 8px; }
.member .btn { flex: none; }

/* Things done together (v5 track J): a wish is somebody's own words, an opinion sits beside a name. */
.quote { margin: 8px 0 0; padding-left: 12px; border-left: 3px solid var(--accent-soft); color: var(--text); font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.opinion { flex: none; max-width: 55%; font-size: 14px; font-weight: 600; color: var(--text-2); text-align: right; overflow-wrap: anywhere; }
.row[role="radio"][aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.stack + .stack, .rows + .stack { margin-top: 12px; }
/* A page a group makes together (v5 track K): a piece is its writer's words, line breaks kept. */
.piece__body { margin-top: 8px; color: var(--text); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.paper .piece { box-shadow: inset 0 0 0 1px var(--line); }
.btn[aria-pressed="true"] { color: var(--accent-ink); }
@media print {
  #rail, #toast, #sheet, #veil, #micbar, .detail__bar, .actions, .kept-note { display: none !important; }
  .paper .piece { box-shadow: none; border-bottom: 1px solid var(--line); border-radius: 0; break-inside: avoid; }
}
[data-screen="sheet"] .detail__title { margin-bottom: 8px; }
.note + .stack, .quiet + .stack { margin-top: 12px; }
/* The bell of Today and its switches (v5 track N). */
.bell { position: relative; flex: none; }
.bell__dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.bell__row[data-new="1"] { box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--accent); }
.bell__row[data-new="0"] strong { color: var(--text-2); font-weight: 600; }
/* 호두에게 찾기 (v5 track Q). */
.find__safety { display: grid; gap: 10px; justify-items: start; padding: 14px; margin-bottom: 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--accent); }
.find__safety[hidden] { display: none; }
.find__safety-text { margin: 0; font-weight: 600; color: var(--text); }
.find__list { display: grid; gap: 20px; margin-top: 20px; }
.find { display: grid; gap: 8px; }
.find__ask { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.find__state { margin: 0; color: var(--text-2); font-size: .9rem; }
.find__cand { display: grid; gap: 6px; justify-items: start; overflow-wrap: anywhere; }
.find__cand[data-chosen="1"] { box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--accent); }
.find__link { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.find__chosen { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.empty--small { padding: 28px 12px; }
.switch { position: relative; padding-right: 72px; }
.switch__knob { position: absolute; right: 16px; top: 50%; width: 44px; height: 26px; margin-top: -13px; border-radius: 13px; background: var(--line); transition: background .15s; }
.switch__knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch[aria-checked="true"] .switch__knob { background: var(--accent); }
.switch[aria-checked="true"] .switch__knob::after { transform: translateX(18px); }
@media (prefers-reduced-motion: reduce) { .switch__knob, .switch__knob::after { transition: none; } }

/* v5 round 2 (X1): the first steps after joining, and an invitation's number */
.card--begin { border-color: var(--accent, currentColor); }
/* the last screens of joining (ScreenRules 2): a step of its own in Today's place */
.flow__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 8px; }
.flow__over { margin: 0; font-weight: 600; color: var(--text); }
.flow__count { margin: 0; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.flow__steps { list-style: none; display: flex; gap: 4px; margin: 0 0 24px; padding: 0; }
.flow__steps li { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.flow__steps li.done { background: var(--accent); }
.flow .card--begin { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.flow .card--begin .card__title { font-size: 24px; }
.flow .card--begin .note + .rows { margin-top: 12px; }
.card--begin .adder { margin: 8px 0; }
.points { margin: 4px 0 8px; padding-left: 18px; }
.points li { margin: 2px 0; }
.code { margin: 8px 0; padding: 12px 14px; font-size: 22px; font-weight: 600; letter-spacing: 0.08em; text-align: center; border: 1px solid currentColor; border-radius: 12px; overflow-wrap: anywhere; user-select: all; }
.code--link { font-size: 14px; font-weight: 400; letter-spacing: 0; text-align: left; }

/* v5 round 2 (X2): the settings. A value sits at the right end of its row; a tag marks the
   default messenger; large letters (X3) zoom the whole page. */
.row--value { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; }
.row--value .row__value { color: var(--text-2); font-size: 15px; text-align: right; overflow-wrap: anywhere; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1.5px solid var(--accent); border-radius: 999px; color: var(--accent-ink); font-size: 12px; font-weight: 700; vertical-align: 1px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--line); display: block; }
.avatar--row { width: 32px; height: 32px; }
.row--apart { margin-top: 40px; }
.dot { display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }
.shared-person { margin: 20px 0 8px; }
.shared-person h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
html[data-large="1"] .shell, html[data-large="1"] .sheet, html[data-large="1"] .toast { zoom: 1.18; }
@media print { .rail, .veil, .sheet, .toast, .icon-btn { display: none !important; } .pane { max-width: none; } }
.row__words { display: grid; gap: 2px; min-width: 0; }
.row__words span { color: var(--text-2); font-size: 14px; }
[data-block="bell"] .note { margin-bottom: 12px; }
/* Me and its screens one level in (round 2, track Y1; js/v5/me.js, js/v5/mine.js). */
.head--sub { justify-content: flex-start; align-items: center; gap: 4px; margin-left: -10px; }
.head--sub .head__title { flex: 1; min-width: 0; font-size: 24px; overflow-wrap: anywhere; }
.sentence { font-family: var(--font-hodu); font-size: 22px; line-height: 1.5; font-weight: 600; letter-spacing: -0.02em; color: var(--text); overflow-wrap: anywhere; }
.sentence__key { font: inherit; color: var(--accent-ink); background: var(--accent-soft); border-radius: 8px; padding: 0 6px; min-height: 34px; text-align: left; }
.chip b { margin-left: 6px; font-weight: 600; color: var(--text-3); }
html[data-v5] .chip[aria-checked="true"] b { color: inherit; opacity: .8; }
.chip--static { gap: 2px; background: var(--wash); box-shadow: none; }
.chip__x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: -10px; border-radius: 50%; color: var(--text-3); }
.chip__x .ic { width: 14px; height: 14px; }
.lens { margin-bottom: 14px; }
.row__more { display: block; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row strong { overflow-wrap: anywhere; }
.row .actions { margin-top: 8px; }
a.quote { display: block; margin-bottom: 10px; }
.person__head[data-block="me-head"] { margin-bottom: 16px; }
.block[data-block="sentence"] { margin-bottom: 14px; }
.block[data-block="sentence"] + .chips { margin-bottom: 4px; }
.card[data-kind="persona-ask"], .card[data-kind="guess"] { margin-top: 10px; }
.card[data-kind="guess"] .actions, .card[data-kind="persona-ask"] .actions { flex-wrap: wrap; }
html[data-v5] select { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); border: 0; font: inherit; }
.screen > .adder, .screen > .field, .screen > .chips { margin-bottom: 12px; }
.switch-row[aria-checked="true"] span { color: var(--accent-ink); font-weight: 600; }
[data-block="lines"] .eyebrow, [data-block="path"] .eyebrow { margin: 14px 0 6px; }

/* People, round 2 (track Y2): a person's page and a group's four tabs. */
.detail__bar--stuck, .head--stuck { position: sticky; top: 0; z-index: 3; background: var(--bg); }
.head--stuck { padding-top: 8px; }
.head__icons { display: flex; align-items: center; gap: 2px; margin-right: -10px; }
.segments--four { grid-template-columns: repeat(4, 1fr); top: 52px; margin: 16px 0 4px; }
.segment[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.row__now { display: block; color: var(--accent-ink); font-weight: 600; }
.row .row__now { color: var(--accent-ink); }
.row--hodu { margin-top: 12px; background: var(--accent-soft); box-shadow: none; text-align: left; }
.row--hodu span { color: var(--accent-ink); font-weight: 600; }
.faces--four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.faces--four .face { min-width: 0; padding: 12px 4px; }
.faces--four .face strong { font-size: 14px; overflow-wrap: anywhere; }
.face--waiting { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.face--waiting .face__mark { background: var(--wash); }
.face--waiting strong { color: var(--text-3); font-weight: 600; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 12px 0 0; }
.facts dt { font-size: 13px; color: var(--text-3); padding-top: 2px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.quote--btn { display: block; width: 100%; text-align: left; }
.field__pair { display: flex; gap: 10px; }
.field--small { flex: 1; min-width: 0; }
.field select { min-height: 48px; padding: 0 12px; border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); border: 0; font: inherit; width: 100%; }
[data-part="rest"][hidden] { display: none; }
[data-screen="person"] .rows + .eyebrow { margin-top: 14px; }
[data-screen="person"] .eyebrow + .rows { margin-top: 6px; }
[data-screen="person"] .section, [data-screen="group"] .section { color: var(--accent-ink); }

/* Me in three parts (ScreenRules 6; round 2, Y2): one line on top that stays, the sentence as
   the face of the screen, and section titles in the dark orange. */
.me__head { align-items: center; justify-content: flex-start; gap: 12px; margin-bottom: 12px; min-height: 48px; }
.me__head .face__mark { flex: none; width: 40px; height: 40px; margin: 0; font-size: 14px; }
.me__name { flex: 1; min-width: 0; font-size: 20px; overflow-wrap: anywhere; }
/* NAME1: my name opens the one field it is, and still reads as the heading it was */
button.me__name { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 20px; font-weight: 700; text-align: left; cursor: pointer; }
.me__head .icon-btn { margin-right: -10px; }
[data-screen="me"] .sentence { text-align: left; }
[data-screen="me"] .section, [data-screen="persona"] .section, [data-screen="settings"] .section { color: var(--accent-ink); }
.section a { color: inherit; }
.row--quiet { background: transparent; box-shadow: none; padding-left: 0; }

/* Round 2, track Y3: who sees a card (only on a shared one), each person's story, a moment
   somebody shared with me. */
.item__seen { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); }
.item__seen .ic { width: 14px; height: 14px; }
.side { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--wash); }
.side .prose + .actions { margin-top: 12px; }
.block[data-block="sides"] .chip b { margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--accent-ink); }
[data-screen="received"] .note[data-note="borrowed"] { margin-top: 12px; }
.row--pick[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.row--pick[aria-checked="true"] span { color: var(--accent-ink); font-weight: 600; }
.card[data-kind="relay-draft"] .prose { font-size: 16px; margin-top: 8px; }
/* Today: the chips that filter by kind and "더 보기" (v5 T2). */
.today__chips { margin: 4px 0 14px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.today__chips::-webkit-scrollbar { display: none; }
.today__chips .chip { flex: none; gap: 4px; }
html[data-v5] .chip[aria-pressed="true"] { background: var(--primary-bg); color: var(--primary-fg); box-shadow: none; }
/* One colour a kind (screen rules 3): on a card's top line and on that kind's chip, nowhere else.
   The title and the buttons stay as they are. A chip that is on is filled with its colour. */
html[data-v5] { --k-on: #fffdf9; --k-rest: #6a6159; }
[data-k="practice"], [data-chip="practice"] { --k: #2c7a4d; }
[data-k="ask"], [data-chip="ask"], [data-k="reply"], [data-chip="reply"] { --k: #b4530e; }
[data-k="decide"], [data-chip="decide"] { --k: #2460a6; }
[data-k="prep"], [data-chip="prep"] { --k: #856400; }
[data-k="upcoming"], [data-chip="upcoming"] { --k: #6b48b0; }
[data-k="wish"], [data-chip="wish"] { --k: #b5346b; }
[data-k="story"], [data-chip="story"], [data-k="news"], [data-chip="news"] { --k: #0d736b; }
[data-k="question"], [data-chip="question"] { --k: var(--k-rest); }
@media (prefers-color-scheme: dark) {
  html[data-v5] { --k-on: #1b1714; --k-rest: #b5aba0; }
  [data-k="practice"], [data-chip="practice"] { --k: #8fd3a8; }
  [data-k="ask"], [data-chip="ask"], [data-k="reply"], [data-chip="reply"] { --k: #f2a541; }
  [data-k="decide"], [data-chip="decide"] { --k: #8fbdf0; }
  [data-k="prep"], [data-chip="prep"] { --k: #dfc04f; }
  [data-k="upcoming"], [data-chip="upcoming"] { --k: #c3acf0; }
  [data-k="wish"], [data-chip="wish"] { --k: #f29cc0; }
  [data-k="story"], [data-chip="story"], [data-k="news"], [data-chip="news"] { --k: #6fd3c8; }
}
/* every practice done or put off: its chip goes grey */
.today__chips .chip[data-done="1"] { --k: var(--k-rest); }
.today__chips .chip[data-chip]:not([data-chip="all"]) { color: var(--k); }
.today__chips .chip .ic { width: 15px; height: 15px; }
html[data-v5] .today__chips .chip[aria-pressed="true"]:not([data-chip="all"]) { background: var(--k); color: var(--k-on); }
.tc:not([data-k=""]) .card > .eyebrow { display: flex; align-items: center; gap: 6px; color: var(--k); }
.tc .card > .eyebrow .ic { width: 16px; height: 16px; }
.today__more { display: flex; margin: 12px auto 0; }
.btn[aria-pressed="true"] { color: var(--done); font-weight: 600; }
.tc { display: block; }

/* ---- Round 2, Z2: the Milestone tab's two views, search, keywords, pictures, candidates;
   a page bound and printed; beside a decision; the wide layout and the writing screens. */
/* The tab's title and what is on it stay while the screen scrolls; so does a detail's way back
   on a phone (screen rules 2). The right side of a wide screen has its own way to close. */
.head--stay { position: sticky; top: 0; z-index: 4; background: var(--bg); margin: -8px 0 8px; padding: 8px 0; align-items: center; }
.segments-row { display: flex; align-items: center; gap: 4px; position: sticky; top: 64px; z-index: 3; background: var(--bg); padding-bottom: 6px; }
.side-block { scroll-margin-top: 132px; }
.pane > .detail > .detail__bar, .pane > .screen > .detail__bar { position: sticky; top: 0; z-index: 4; background: var(--bg); padding: 4px 0; }
.icon-btn[aria-pressed="true"] { color: var(--accent-ink); }
.list { display: grid; }
.item__kind { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--wash); }
.item .item__kind .ic { width: 18px; height: 18px; color: var(--text-2); }
.item[data-done="1"] .item__kind .ic { color: var(--done); }
.item__photo { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--wash); }
.year--list { padding-left: 0; }
.side__bar { display: flex; margin: -16px -16px 4px; }
.side__empty { display: grid; gap: 6px; justify-items: center; }
.side__empty-title { font-size: 18px; font-weight: 600; color: var(--text-2); }
.side .detail__bar > a.icon-btn[data-act="back"], .side .detail__back { display: none; }
.side > .detail > .detail__bar:empty { display: none; }
@media (min-width: 1024px) {
  .side { position: sticky; top: 0; align-self: start; max-height: 100dvh; overflow-y: auto; }
  .pane { max-height: 100dvh; overflow-y: auto; position: sticky; top: 0; }
}

/* A writing screen (PC4): the page's one column. The menu and the right side are put away. */
html[data-solo="1"] .rail, html[data-solo="1"] .side, html[data-one] .rail, html[data-one] .side { display: none !important; }
html[data-solo="1"] .veil { background: var(--bg); }
html[data-v5] .sheet[data-solo="1"] { top: 0; bottom: 0; left: 50%; right: auto; transform: translateX(-50%); width: min(640px, 100vw); max-height: none; height: 100dvh; border-radius: 0; box-shadow: none; animation: none; padding: 8px 20px calc(32px + env(safe-area-inset-bottom)); }
html[data-one] .shell { display: block; }
html[data-one] .pane { max-width: 640px; margin: 0 auto; border-right: 0; padding-bottom: 56px; max-height: none; overflow: visible; position: static; }
.find__title { font-size: 18px; font-weight: 700; }
[data-screen="find"] .chips { margin: 12px 0 4px; }

/* Pictures: low on a card, whole on the moment (screen rules 4). */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--wash); color: var(--text-3); font-size: 12px; }
.photo--line { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--wash); margin-bottom: 6px; }
.photos--big { grid-template-columns: 1fr; margin-top: 16px; }
.photos--big[data-photos]:not([data-photos="1"]) { grid-template-columns: repeat(2, 1fr); }
.photos--big[data-photos="1"] .photo { aspect-ratio: auto; max-height: 440px; }
/* a moment's picture in a share: low on a card, small while picking (v5 S3; screen rules 4) */
.photo--card { aspect-ratio: 16 / 9; margin: 8px 0; }
.photo--pick { width: 96px; aspect-ratio: 1; margin-top: 6px; }
.photos--pick:empty { display: none; }
.photos__one { position: relative; }
.photos__off { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-bg); color: var(--primary-fg); text-align: center; font-size: 18px; line-height: 30px; }
[data-field="photos"][data-busy="1"] .actions { opacity: .5; }

/* Keywords: a word that gathers, and a small way to take it off. */
.kw { display: inline-flex; align-items: center; min-height: 38px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.kw__word { padding: 0 4px 0 14px; font-size: 14px; font-weight: 600; color: var(--text-2); line-height: 38px; }
.kw__off { width: 36px; height: 38px; text-align: center; color: var(--text-3); font-size: 18px; border-radius: 0 999px 999px 0; }
.chip--still { cursor: default; }
html[data-v5] .chip[data-mine="1"] { box-shadow: inset 0 0 0 2px var(--accent); color: var(--text); }
.tag { margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-ink); }
.sub { margin-top: 16px; }
.sub .card__foot { margin-top: 0; margin-bottom: 6px; font-weight: 600; }
.sub .logs li { padding-bottom: 8px; }
.cand__from .quote { font-size: 15px; color: var(--text-2); }
.row:disabled { opacity: .5; }

/* A bound page: a sheet of paper on the screen, and the only thing on the paper when printed. */
.sheetpage { margin-top: 12px; padding: 28px 24px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.sheetpage__head { font-size: 13px; font-weight: 600; color: var(--text-3); }
.sheetpage__title { font-family: var(--font-hodu); font-size: 24px; line-height: 1.3; font-weight: 600; margin: 4px 0 16px; overflow-wrap: anywhere; }
.sheetpage__piece { padding: 12px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.sheetpage__piece h3 { font-size: 15px; font-weight: 700; color: var(--text-2); margin-bottom: 4px; }
.sheetpage__piece p { font-size: 17px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.sheetpage__piece .sheetpage__by { font-size: 13px; color: var(--text-3); margin-top: 2px; }
@media print {
  html[data-v5] { --bg: #fff; --bg-2: #fff; --surface: #fff; --text: #111; --text-2: #222; --text-3: #444; --line: #bbb; --shadow: none; }
  .shell { display: block !important; }
  .pane, .side { max-height: none !important; overflow: visible !important; position: static !important; padding: 0 !important; border: 0 !important; max-width: none !important; }
  .side__bar, .head, .segments-row { display: none !important; }
  html[data-where="side"] .pane { display: none !important; }
  /* a page that holds a bound sheet prints the sheet and nothing around it */
  .screen:has(.sheetpage) > :not(.block), .screen:has(.sheetpage) > .block:not(:has(.sheetpage)), .screen:has(.sheetpage) .block > :not(.sheetpage) { display: none !important; }
  .sheetpage { box-shadow: none; padding: 0; margin: 0; border-radius: 0; }
}

/* ---------- Round 2, Z3: 호두 on the tabs, the microphone, a group's news, a request ---------- */
/* Orange is 호두, or what matters now (screen rules 1): the strip's dot and the recording dot. */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.hodu { margin: 4px 0 20px; }
.hodu__chips { margin-bottom: 10px; flex-wrap: nowrap; overflow-x: auto; }
.hodu__chip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.hodu__card { display: block; width: 100%; min-height: 92px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); color: var(--text); font: inherit; cursor: pointer; }
.hodu__over { display: block; font-size: 13px; font-weight: 600; color: var(--accent-ink, var(--accent)); margin-bottom: 6px; }
.hodu__line { margin: 0; font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
/* The conversation sheet keeps one height whatever is in it (screen rules 2). */
html[data-v5] .sheet[data-name="hodu"] { height: min(680px, 88dvh); display: flex; flex-direction: column; overflow: hidden; }
.sheet[data-name="hodu"] .sheet__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.says { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.say { max-width: 86%; padding: 10px 14px; border-radius: 16px; background: var(--bg-2); color: var(--text); align-self: flex-start; }
.say--me { align-self: flex-end; background: var(--wash); }
.say__who { display: block; font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 2px; }
.say__text { margin: 0; white-space: pre-line; line-height: 1.5; overflow-wrap: anywhere; }
.says__wait { margin: 0; font-size: 14px; color: var(--text-3); }
.says__form { margin: 0; }
.keep { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--bg); }
.keep__ask { margin: 0 0 8px; font-weight: 600; }
.suggest__title { margin: 0 0 6px; font-size: 13px; color: var(--text-3); }
.suggest .chips { flex-wrap: wrap; }
.sheet[data-name="keep-send"] .quote { margin: 0 0 12px; padding: 12px 14px; font-size: 16px; border-left: 3px solid var(--line); background: var(--bg-2); border-radius: 0 12px 12px 0; white-space: pre-line; max-height: 40dvh; overflow-y: auto; overflow-wrap: anywhere; }
.notice p { margin: 0 0 8px; line-height: 1.5; }
.news__text { margin: 2px 0; white-space: pre-line; overflow-wrap: anywhere; }
/* The microphone: a round button of its own, to the right of the menu. */
.mic { position: absolute; right: max(12px, calc(50% - 320px)); top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.mic[data-on="1"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.rail:has(.mic) .tabs { margin-right: 72px; }
.micbar { position: fixed; z-index: 6; left: 12px; right: 12px; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 10px); max-width: 616px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: var(--text); color: var(--bg); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.micbar[hidden] { display: none; }
.micbar__text { flex: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.micbar__dot { margin: 0; width: 9px; height: 9px; }
.micbar .icon-btn, .micbar .btn { color: var(--bg); background: transparent; border-color: transparent; }
html[data-solo="1"] .micbar, html[data-one] .micbar { bottom: 16px; }
.voice__go { display: inline-flex; align-items: center; gap: 8px; }
.voice__go[data-state="on"] { border-color: var(--accent); color: var(--accent-ink, var(--accent)); }
.voice[data-first="1"] .voice__go { width: 100%; justify-content: center; min-height: 56px; }
.logs__memo { display: inline-flex; align-items: baseline; gap: 6px; flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.logs__memo .ic { width: 15px; height: 15px; flex: none; color: var(--text-3); align-self: center; }
.logs__memo em { font-style: normal; font-size: 12px; color: var(--text-3); flex: none; }
.cand[aria-checked="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.cand__links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.request__mark { margin: 4px 0 0; }
@media (min-width: 1024px) {
  .mic { position: static; transform: none; margin: 16px 12px 0; }
  .rail:has(.mic) .tabs { margin-right: 0; }
  .micbar { left: 24px; right: auto; bottom: 24px; width: 320px; margin: 0; }
}
.note--practice { color: var(--accent-ink); font-weight: 600; }

/* round 2, gaps 3: the one link under 호두's bubble (H7), the wide menu's 호두 and account (PC2) */
.hodu__out { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--text-2, var(--text)); text-decoration: underline; text-underline-offset: 3px; }
.rail__talk, .rail__me { display: none; }
@media (min-width: 1024px) {
  .rail { display: flex; flex-direction: column; }
  .rail .tabs { margin: 0; width: 100%; max-width: none; }
  .rail .mic { align-self: flex-start; }
  html[data-detail="1"] .rail { display: flex; }
  .rail__talk { display: grid; gap: 2px; margin: 16px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
  .rail__talk strong { font-size: 15px; font-weight: 600; }
  .rail__talk span { font-size: 13px; color: var(--text-2, var(--text)); }
  .rail__me { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 12px; border-radius: 14px; color: var(--text); text-decoration: none; }
  .rail__me[aria-current="page"] { background: var(--bg); }
  .rail__face { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface, var(--bg)); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; object-fit: cover; }
  .rail__name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.help { display: grid; gap: 8px; }
.help__topic { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--bg); }
.help__topic summary { font-weight: 600; cursor: pointer; }
.help__topic .prose { margin: 8px 0 0; }

/* The door's ways in (JW 2026-11-20, OO): a pairing, the consent, a messenger link, the approval
   and a view session's view are one column of the tabs' page, with no menu and no microphone
   (screen rules 2: a step-by-step flow hides both). A card stands to the right of Today. */
.door { display: grid; gap: 12px; padding: 48px 4px 24px; }
.door__mark { color: var(--accent-ink); }
.door__title { font-size: 26px; line-height: 1.3; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.door__lead { color: var(--text-2); font-size: 16px; line-height: 1.55; }
.door__lead--past { color: var(--text-3); }
.door__code { display: flex; align-items: baseline; gap: 12px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.door__code span { font-size: 14px; color: var(--text-3); font-weight: 600; }
.door__code b { font-size: 26px; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.door__field input { min-height: 52px; font-size: 20px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.door__notice { padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; overflow-wrap: anywhere; }
.door__actions { margin-top: 8px; }
.door__actions .btn { min-height: 52px; padding: 0 22px; font-size: 16px; }
.door__prose { display: grid; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.door__text { font-size: 17px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.door__lines { display: grid; gap: 6px; padding-left: 20px; list-style: disc; color: var(--text); font-size: 16px; line-height: 1.55; }
html[data-one="door"] .pane { padding-top: 8px; }

/* the approval (4.8): the number as tiles, the two steps, the time left on a thin line */
.approval__number { display: flex; gap: 10px; justify-content: center; margin: 4px 0 16px; }
.approval__digit { display: grid; place-items: center; width: 64px; height: 76px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.approval__steps { display: grid; gap: 8px; padding-left: 0; list-style: none; color: var(--text); font-size: 16px; line-height: 1.5; }
.approval__time { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.approval__track { flex: 1; height: 4px; border-radius: 2px; background: var(--wash); overflow: hidden; }
.approval__fill { display: block; height: 100%; width: calc(var(--left, 1) * 100%); background: var(--accent); }
.approval__left { font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* a view session's view: read-only */
.view__chips { margin: 4px 0 0; }
.view__chips .chip[aria-selected="true"] { background: var(--primary-bg); color: var(--primary-fg); box-shadow: none; }
.view { display: grid; gap: 14px; margin-top: 8px; }
.view__head { display: grid; gap: 4px; }
.view__title { font-size: 22px; font-weight: 700; color: var(--text); }
.view__list { display: grid; gap: 12px; }
.view__card { border-left: 4px solid var(--tint, var(--line)); }
.view__told { margin-top: 10px; }
.view__told .prose { font-size: 16px; }
.view__told--their { padding-left: 12px; border-left: 3px solid var(--accent-soft); }
.view__empty { padding: 24px 0; text-align: center; }

/* a confirmation card */
.confirm { display: grid; gap: 12px; }
.confirm__card { display: grid; gap: 10px; }
.confirm__title { margin-top: 0; overflow-wrap: anywhere; }
.confirm__line { color: var(--text-2); line-height: 1.55; overflow-wrap: anywhere; }
.confirm__rows { display: grid; gap: 6px; margin: 0; }
.confirm__row { display: flex; gap: 12px; justify-content: space-between; font-size: 15px; }
.confirm__row dt { color: var(--text-3); }
.confirm__row dd { margin: 0; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.confirm__reply { font-size: 16px; }
.confirm .detail__back { margin-left: -10px; }

/* the chat in the tabs: the buttons of 호두's newest question, a line's links */
.say__choices { margin-top: 8px; }
.say__choices .chip { background: var(--surface); }
.say__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.say[data-safety="1"] { box-shadow: inset 0 0 0 2px var(--accent); }
.story__beta { margin-left: 8px; min-height: 22px; padding: 0 8px; font-size: 12px; vertical-align: middle; }
