/* Two aesthetic directions as token sets on the same screens. A, Editorial, is the default. */
:root, :root[data-dir="a"] {
  --bg: #F6F2EA; --surface: #FFFDF8; --ink: #1B1A17; --muted: #6B655B; --line: #E4DDD0;
  --accent: #7A1F2B; --accent-ink: #FFFFFF; --soft: #F1E7E8; --ok: #2F6B3A; --okbg: #EAF3EC;
  --bad: #9B1C1C; --badbg: #FBECEC;
  --display: "Fraunces", Georgia, serif; --ui: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --num: "Inter", sans-serif; --radius: 16px; --chip: 999px; --shadow: 0 10px 30px rgba(27,26,23,.08);
}
:root[data-dir="b"] {
  --bg: #EEF0F3; --surface: #FFFFFF; --ink: #111417; --muted: #5A6572; --line: #D7DCE3;
  --accent: #0F5BD7; --accent-ink: #FFFFFF; --soft: #E7EEFB; --ok: #1C7C4A; --okbg: #E6F5EC;
  --bad: #B42318; --badbg: #FCEBEA;
  --display: "Space Grotesk", "Inter", sans-serif; --ui: "Space Grotesk", "Inter", sans-serif;
  --num: "JetBrains Mono", ui-monospace, monospace; --radius: 10px; --chip: 6px;
  --shadow: 0 1px 0 rgba(17,20,23,.06), 0 8px 24px rgba(17,20,23,.06);
}
/* C, Studio: the register of Highscale's product, kept light and phone-first (plan rev 11). */
:root[data-dir="c"] {
  --bg: #FAFAFC; --surface: #FFFFFF; --ink: #121214; --muted: #5F6370; --line: #E2E3E8;
  --accent: #5B3FD6; --accent-ink: #FFFFFF; --soft: #EFEBFB; --ok: #1E7F4F; --okbg: #E7F5EC;
  --bad: #B3261E; --badbg: #FBEAE8;
  --display: "Plus Jakarta Sans", "Inter", sans-serif; --ui: "Plus Jakarta Sans", "Inter", sans-serif;
  --num: "Plus Jakarta Sans", sans-serif; --radius: 12px; --chip: 8px; --shadow: none;
}
:root[data-dir="c"] h1.greet, :root[data-dir="c"] .wordmark { text-transform: uppercase; letter-spacing: -.02em; font-weight: 800; }
:root[data-dir="c"] h1.greet { font-size: 1.6rem; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--ui); line-height: 1.45; -webkit-font-smoothing: antialiased; min-height: 100vh; }
.screen { max-width: 560px; margin: 0 auto; padding: 1.2rem 1rem 6rem; }
.wordmark { font: 700 2rem/1 var(--display); letter-spacing: -.02em; margin-top: 1rem; }
.wordmark small { display: block; font: 500 .85rem var(--ui); color: var(--muted); margin-top: .35rem; letter-spacing: 0; }
h1 { font: 700 1.75rem/1.15 var(--display); letter-spacing: -.015em; margin: 1.6rem 0 .4rem; }
h1.greet { margin: .2rem 0 .6rem; }
h2 { font: 700 1.05rem/1.2 var(--display); margin: 0; }
.hello, .muted { color: var(--muted); font-size: .9rem; }
p.lead { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }
.back { display: inline-block; color: var(--accent); text-decoration: none; font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
label { display: block; font-size: .85rem; font-weight: 600; margin: .9rem 0 .35rem; }
input, select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: calc(var(--radius) - 4px); padding: 0 .9rem; font: 500 1rem var(--ui); background: var(--surface); color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border-radius: calc(var(--radius) - 4px); font: 600 1rem var(--ui); cursor: pointer; border: 1px solid transparent; text-decoration: none; margin-top: .8rem; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--accent); border-color: var(--line); }
.btn.danger { color: var(--bad); }
.btn.small { width: auto; min-height: 40px; padding: 0 .9rem; font-size: .9rem; margin: 0; }
button.link { background: none; border: 0; color: var(--muted); font: 600 .85rem var(--ui); cursor: pointer; text-decoration: underline; }
.fine { font-size: .8rem; color: var(--muted); margin-top: .9rem; line-height: 1.5; }
.fine.center { text-align: center; margin-top: .6rem; }
.eyebrow { font: 600 .75rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }

/* The brief screen: two ways in, a drop zone, a grouped form. */
.paths { display: grid; gap: .6rem; margin-top: 1rem; }
.path { display: grid; gap: .25rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .95rem 1.05rem; background: var(--surface); color: inherit; text-decoration: none; font-size: .88rem; line-height: 1.4; }
.path .k { font: 600 .72rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.path b { font: 700 1rem var(--display); color: var(--ink); }
.path span:last-child { color: var(--muted); }
.count { font: 600 .8rem var(--num); color: var(--muted); background: var(--soft); border-radius: var(--chip); padding: .1rem .55rem; }
.card.doc { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .8rem 1.05rem; }
.card.doc .text { flex: 1; margin: 0; font-weight: 600; font-size: .95rem; }
.card.doc .text .fine { display: block; margin-top: .1rem; font-weight: 500; }
.card.doc .chip { margin: 0; }
.card.upload { padding-top: .9rem; }
.drop { display: grid; gap: .3rem; justify-items: center; text-align: center; margin: 0; padding: 1.4rem 1rem 1.2rem; border: 1.5px dashed var(--line); border-radius: calc(var(--radius) - 4px); background: var(--bg); cursor: pointer; font-weight: 500; }
.drop:focus-within, .drop:hover { border-color: var(--accent); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop b { font: 700 1rem var(--display); color: var(--ink); }
.drop .fine { margin-top: .1rem; }
.drop .picked { font-size: .85rem; color: var(--accent); font-weight: 600; min-height: 1.2em; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: .8rem; border: 1px solid var(--line); border-radius: calc(var(--radius) - 4px); overflow: hidden; }
.seg label { margin: 0; }
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; font: 600 .9rem var(--ui); color: var(--muted); background: var(--surface); cursor: pointer; }
.seg input:checked + span { background: var(--soft); color: var(--accent); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: -3px; }
.note { background: var(--soft); color: var(--ink); border-radius: calc(var(--radius) - 6px); padding: .7rem .9rem; font-size: .9rem; line-height: 1.5; margin-bottom: .6rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.form fieldset + fieldset { border-top: 1px solid var(--line); padding-top: 1rem; }
.form legend { float: left; width: 100%; font: 600 .75rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: .2rem; }
.form label { margin: .9rem 0 .4rem; }
label small { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); margin-top: .15rem; line-height: 1.4; }
textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: calc(var(--radius) - 4px); padding: .75rem .9rem; font: 500 1rem/1.45 var(--ui); background: var(--surface); color: var(--ink); resize: vertical; }
textarea::placeholder, input::placeholder { color: var(--muted); opacity: .65; font-weight: 400; }

/* The direction screen: a propose card, theme cards, the voice pair, rhythm. */
.card.propose { display: grid; gap: .6rem; }
.card.propose b { font: 700 1.05rem var(--display); }
.card.propose .muted { margin-top: .2rem; }
.card.propose .btn { margin-top: .2rem; }
.themes { list-style: none; display: grid; gap: .6rem; margin-top: .7rem; }
.card.theme { display: flex; gap: .8rem; padding: .9rem 1rem; }
.card.theme .n { width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--accent); font: 700 .8rem var(--num); display: flex; align-items: center; justify-content: center; flex: none; margin-top: .55rem; }
.card.theme .f { flex: 1; display: grid; gap: .45rem; }
.card.theme input { min-height: 44px; font-weight: 700; }
.card.theme textarea { font-size: .92rem; padding: .55rem .8rem; }
.card.theme .src { font-size: .78rem; color: var(--muted); text-decoration: none; word-break: break-all; }
.card.theme .ctl { display: flex; flex-direction: column; gap: .3rem; flex: none; margin-top: .35rem; }
.card.theme .ctl button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font: 600 1rem/1 var(--ui); cursor: pointer; }
.card.theme .ctl button:disabled { opacity: .25; cursor: default; }
.card.theme .ctl .rm:not(:disabled) { color: var(--bad); }
.card.theme.empty { border-style: dashed; background: transparent; }
.card.theme.empty .ctl { visibility: hidden; }
.card.theme[hidden] { display: none; }
.pair { display: grid; gap: .6rem; margin-top: .7rem; }
.card.sample { display: grid; gap: .4rem; margin: 0; padding: .85rem 1rem; }
.card.sample .k { font: 600 .72rem var(--ui); letter-spacing: .08em; text-transform: uppercase; }
.card.sample.yes { border-color: var(--ok); } .card.sample.yes .k { color: var(--ok); }
.card.sample.no .k { color: var(--bad); }
.card.sample textarea { font-size: .95rem; }
label.plain { margin: .2rem 0 .4rem; }
.fine + label.plain { margin-top: 1.1rem; }
label.plain + .seg { margin-top: 0; }
.seg.four { grid-template-columns: repeat(4, 1fr); }
.seg.three { grid-template-columns: repeat(3, 1fr); }
.seg a { display: flex; align-items: center; justify-content: center; min-height: 44px; font: 600 .9rem var(--ui); color: var(--muted); background: var(--surface); text-decoration: none; }
.seg a.on { background: var(--soft); color: var(--accent); }
.setting { font-weight: 600; font-size: .95rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: calc(var(--radius) - 4px); background: var(--bg); }
.direction > .btn { margin-top: 1.4rem; }

/* Proposals: the list, the drafting row, the decide screen. */
.k-row { display: flex; align-items: center; gap: .5rem; font: 600 .75rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .9rem 0 .5rem; }
.k-row form { margin-left: auto; } .k-row button.link { font-size: .8rem; letter-spacing: 0; text-transform: none; }
.card.another .topics { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.card.working { display: flex; align-items: center; gap: .8rem; font-size: .9rem; color: var(--muted); background: var(--soft); border-color: transparent; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.card.prop .meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.card.prop .theme { font: 600 .78rem var(--ui); color: var(--muted); }
.chip.slot { background: var(--okbg); color: var(--ok); }
.card.prop .text { font-size: 1rem; line-height: 1.45; margin-top: .5rem; white-space: pre-wrap; }
.card.prop .go { display: block; margin-top: .6rem; font: 600 .85rem var(--ui); color: var(--accent); }
.card.prop.rejected .text, .card.prop.blocked .text { color: var(--muted); }
.status-row { display: flex; align-items: center; gap: .7rem; margin: .3rem 0 .6rem; } .status-row .fine { margin: 0; }
.card.preview { padding: 1rem 1.05rem .8rem; }
.card.preview .who { display: flex; align-items: center; gap: .7rem; }
.card.preview .names { display: grid; line-height: 1.2; } .card.preview .names .fine { margin: 0; }
.card.preview .body { font-size: 1.12rem; line-height: 1.45; margin: .8rem 0 .6rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.card.preview .foot { display: flex; justify-content: space-between; align-items: center; } .card.preview .foot .fine { margin: 0; }
.card.preview .foot .link { color: var(--accent); }
.card.editor { padding-top: .9rem; }
.card.editor textarea { font: 500 1.05rem/1.45 var(--ui); padding: .8rem .95rem; }
.counter { text-align: right; margin-top: .4rem; font-variant-numeric: tabular-nums; }
.why { font-size: .95rem; line-height: 1.5; }
.source.card { display: flex; gap: .7rem; align-items: center; padding: .75rem .95rem; margin-bottom: .5rem; font-weight: 500; }
.source.card input { width: 22px; min-height: 22px; height: 22px; flex: none; }
.source.card a { color: var(--accent); text-decoration: none; display: grid; line-height: 1.25; min-width: 0; }
.source.card a b { font-size: .95rem; } .source.card a .fine { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.reject { margin-top: 1.6rem; }
details.reject summary { cursor: pointer; font: 600 .9rem var(--ui); color: var(--muted); text-align: center; list-style: none; padding: .6rem; }
details.reject summary::-webkit-details-marker { display: none; }
details.reject summary::after { content: " \25BE"; }
details.reject[open] summary::after { content: " \25B4"; }
details.reject .card { margin-top: .4rem; }
.seg.stack { grid-template-columns: 1fr; margin-top: .5rem; }
.seg.stack span { justify-content: flex-start; padding: 0 .9rem; border-top: 1px solid var(--line); }
.seg.stack label:first-child span { border-top: 0; }
.card.propose label { margin-top: 0; }
.take .text { font-size: 1rem; line-height: 1.5; }
.take .row { display: flex; justify-content: flex-end; margin-top: .7rem; }
.take + .take { margin-top: .6rem; }
form.none { text-align: center; margin-top: 1rem; }
.card.strip { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: var(--soft); border-color: transparent; padding: .7rem .9rem; font-size: .9rem; margin-bottom: .7rem; }
.card.strip .pair { display: flex; gap: .4rem; flex: none; }
details.fold > summary { cursor: pointer; list-style: none; }
details.fold > summary.h, details.fold > summary.k-row { justify-content: flex-start; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "\25BE"; color: var(--muted); font-size: .9rem; }
details.fold[open] > summary::after { content: "\25B4"; }
button[disabled] { opacity: .55; cursor: default; }
.btn.working { opacity: 1; gap: .6rem; cursor: wait; color: var(--accent); background: var(--soft); border-color: var(--line); font-size: .9rem; padding: 0 .9rem; text-align: left; }
.btn.working .spin { border-color: var(--line); border-top-color: var(--accent); }
.btn.working .msg { flex: 1; line-height: 1.25; }
.btn.working .secs { font: 600 .8rem var(--num); color: var(--muted); font-variant-numeric: tabular-nums; }
.card.slot .when { width: 100%; display: grid; gap: .15rem; margin-bottom: .5rem; }
.card.slot .when b { font: 700 1.05rem var(--display); }
.card.slot .when .fine { margin: 0; }

/* The watchlist. */
.handles { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.handle { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: var(--chip); background: var(--surface); padding: .3rem .4rem .3rem .8rem; font: 600 .88rem var(--ui); }
.handle a { color: var(--accent); text-decoration: none; }
.handle .x { border: 0; background: var(--soft); color: var(--accent); width: 24px; height: 24px; border-radius: 50%; font-size: 1rem; line-height: 1; cursor: pointer; }
.add-handle .row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; }
.add-handle .row .btn { margin: 0; width: auto; padding: 0 1.1rem; }
.handles-line { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font: 600 .9rem var(--ui); color: var(--accent); }
.card.prop .counts { margin-left: auto; font: 600 .78rem var(--num); color: var(--muted); font-variant-numeric: tabular-nums; }
.error { color: var(--bad); background: var(--badbg); border-radius: calc(var(--radius) - 6px); padding: .6rem .8rem; font-size: .9rem; margin: .8rem 0; }
.ok-note { color: var(--ok); background: var(--okbg); border-radius: calc(var(--radius) - 6px); padding: .6rem .8rem; font-size: .9rem; margin: .8rem 0; }
.section { margin-top: 1.4rem; }
.section .h { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.card a:not(.btn):not(.chip) { color: var(--accent); }
.card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.05rem; background: var(--surface); color: inherit; text-decoration: none; margin-bottom: .6rem; }
.card.actions form { display: inline-block; width: calc(50% - .3rem); }
.card.actions .btn { margin-top: .3rem; }
.acct { display: flex; align-items: center; gap: .9rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; font: 700 1rem var(--display); color: var(--accent); flex: none; }
.acct .n { font-weight: 700; }
.acct .s { font-size: .82rem; color: var(--muted); }
.acct .go { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 1.3rem; }
.chip { display: inline-block; font: 600 .72rem var(--ui); letter-spacing: .04em; text-transform: uppercase; padding: .2rem .55rem; border-radius: var(--chip); background: var(--soft); color: var(--accent); margin-top: .3rem; }
.chip.ok { background: var(--okbg); color: var(--ok); }
.chip.bad { background: var(--badbg); color: var(--bad); }
.name-form label { margin-top: 0; }
.name-form .row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; }
.name-form .row .btn { margin: 0; width: auto; padding: 0 1.1rem; }
details.add-account { margin-top: .7rem; }
details.add-account summary { list-style: none; margin-top: 0; }
details.add-account summary::-webkit-details-marker { display: none; }
.add { display: grid; grid-template-columns: 1fr; gap: .5rem; margin-top: .5rem; }
.empty { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.05rem; background: var(--surface); }
.empty .k { font: 600 .75rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.empty p { font-size: .92rem; color: var(--muted); }
.steps { list-style: none; margin-top: .8rem; display: grid; gap: .45rem; }
.steps li { display: flex; gap: .6rem; align-items: center; font-size: .9rem; }
.steps .dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font: 600 .72rem var(--num); color: var(--muted); flex: none; }
.steps .dot.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.brief p { font-size: .9rem; margin: .2rem 0; }
.prop .text, .log .text { font-size: 1rem; margin-top: .4rem; white-space: pre-wrap; }
ul.plain { list-style: none; } ul.plain a { color: var(--accent); word-break: break-all; }
.signout { margin-top: 2rem; text-align: center; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding: .45rem .6rem calc(.45rem + env(safe-area-inset-bottom)); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: .15rem; min-height: 46px; justify-content: center; font: 600 .72rem var(--ui); color: var(--muted); text-decoration: none; }
.nav a.on { color: var(--accent); }
.nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav .brand { display: none; }  /* the phone's bottom bar has no room for the name; the sidebar shows it */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; } .title-row h1 { margin: .2rem 0 .4rem; }
.card.need { display: grid; gap: .2rem; border-color: var(--accent); }
.card.need b { font: 700 1.05rem var(--display); } .card.need .fine { margin: 0; } .card.need .go { margin-top: .4rem; font: 600 .85rem var(--ui); color: var(--accent); }
.card.need.quiet { border-color: var(--line); }
.card.settings-link { margin-top: .4rem; }
.card .k { font: 600 .75rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.card.actions .wide { width: 100%; margin: .3rem 0 .6rem; }
.card.actions form:has(.link) { width: 100%; text-align: center; }
button.link.danger { color: var(--bad); }
.card.log .meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; } .card.log .theme { font: 600 .78rem var(--ui); color: var(--muted); }
@media (min-width: 720px) { .add { grid-template-columns: 1fr auto auto; } .add .btn { margin-top: 0; } .paths { grid-template-columns: 1fr 1fr; } .pair { grid-template-columns: 1fr 1fr; } .card.propose { grid-template-columns: 1fr auto; align-items: center; } }

/* Replies and notifications. */
.card.reply .context { font-size: .88rem; color: var(--muted); margin-bottom: .6rem; line-height: 1.45; }
.card.reply .context .k { display: block; margin-bottom: .1rem; }
.card.reply .said { font-size: 1rem; line-height: 1.45; } .card.reply .said b { color: var(--accent); margin-right: .3rem; }
.card.reply .answered { margin-top: .5rem; font-size: .95rem; }
.card.reply.quiet { color: var(--muted); }
.pair-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; } .pair-actions .btn { margin-top: .6rem; }
.notices { list-style: none; display: grid; gap: .3rem; }
.notices a { display: grid; grid-template-columns: 10px 1fr; gap: .2rem .6rem; padding: .55rem .2rem; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.notices .dotm { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: .45rem; }
.notices .unread .dotm { background: var(--accent); }
.notices .t { font-size: .92rem; line-height: 1.35; } .notices .fine { grid-column: 2; margin: 0; }
/* The interview and the notes. */
.chat { display: grid; gap: .5rem; }
.bubble { max-width: 88%; padding: .7rem .95rem; border-radius: var(--radius); line-height: 1.45; font-size: .98rem; white-space: pre-wrap; }
.bubble.interviewer { background: var(--surface); border: 1px solid var(--line); justify-self: start; border-bottom-left-radius: 6px; }
.bubble.client { background: var(--soft); color: var(--ink); justify-self: end; border-bottom-right-radius: 6px; }
.card.say { margin-top: 1rem; }
.card.note { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .5rem; }
.card.note input { width: 22px; min-height: 22px; height: 22px; flex: none; margin-top: .2rem; }
.card.note .t { display: block; margin-top: .3rem; line-height: 1.45; }
.card.note.kept { justify-content: space-between; }
.from-notes { margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.from-notes .k { width: 100%; }
.chip.pick { border: 1px solid var(--line); cursor: pointer; text-transform: none; letter-spacing: 0; font-size: .82rem; padding: .35rem .6rem; }
.from-notes .fine { width: 100%; margin-top: .2rem; }
.hidden { display: none; }

/* Dark mode: the same tokens, re-pointed. */
/* Desktop: the same screens as a web app, a sidebar instead of the bottom bar, a wider column. */
@media (min-width: 960px) {
  body:has(> .nav) { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; }
  .nav { position: sticky; top: 0; bottom: auto; left: auto; right: auto; grid-column: 1; grid-row: 1; height: 100vh; display: flex; flex-direction: column; gap: .25rem; border-top: 0; border-right: 1px solid var(--line); padding: 1.6rem 1rem; }
  .nav .brand { display: block; font: 700 1.5rem/1 var(--display); letter-spacing: -.02em; color: var(--ink); margin: .1rem .7rem 1.5rem; padding: 0; min-height: 0; border-radius: 0; }
  .nav a { flex-direction: row; justify-content: flex-start; gap: .7rem; min-height: 44px; padding: 0 .75rem; border-radius: calc(var(--radius) - 6px); font-size: .95rem; }
  .nav a.on { background: var(--soft); }
  .nav svg { width: 20px; height: 20px; }
  .screen { grid-column: 2; grid-row: 1; width: 100%; max-width: 1040px; margin: 0; padding: 2.4rem 3.2rem 4rem; }
  .screen.narrow { max-width: 780px; }
  body:has(> .nav) { background: linear-gradient(90deg, var(--surface) 236px, var(--bg) 236px); }
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 2.6rem; align-items: start; }
  .side .add { grid-template-columns: 1fr; }
  .side .settings-link { display: none; }  /* the title row already has Settings */
  .btn:not(.small) { max-width: 460px; margin-left: auto; margin-right: auto; }
  .pair-actions .btn, .card.propose .btn, .add .btn { margin-left: 0; margin-right: 0; }
  html { font-size: 17px; }
}
@media (prefers-color-scheme: dark) {
  :root, :root[data-dir="a"] {
    --bg: #1B1A17; --surface: #24221E; --ink: #F3EEE4; --muted: #A79F92; --line: #3A362F;
    --accent: #E08A95; --accent-ink: #1B1A17; --soft: #3A2A2D; --ok: #7FC48F; --okbg: #223328;
    --bad: #F08A8A; --badbg: #3A2424; --shadow: 0 10px 30px rgba(0,0,0,.4);
  }
  :root[data-dir="b"] {
    --bg: #111417; --surface: #1A1F24; --ink: #EEF1F4; --muted: #94A0AD; --line: #2B333B;
    --accent: #7FB0FF; --accent-ink: #0B1220; --soft: #1F2A3A; --ok: #6FD39A; --okbg: #163024;
    --bad: #FF8B80; --badbg: #3A1E1B; --shadow: 0 1px 0 rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.4);
  }
  :root[data-dir="c"] {
    --bg: #0E0E11; --surface: #17171C; --ink: #F2F2F5; --muted: #9A9AA6; --line: #2A2A33;
    --accent: #A08BFF; --accent-ink: #0E0E11; --soft: #26213A; --ok: #6FD39A; --okbg: #163024;
    --bad: #FF8B80; --badbg: #3A1E1B; --shadow: none;
  }
  .steps .dot.done { color: var(--bg); }
  .drop { background: var(--surface); }
  .setting { background: var(--surface); }
}
#remove form { text-align: center; margin-top: .4rem; }

/* The landing page: the product explained to someone who has never seen it. */
.screen.landing { max-width: 1120px; padding: 1rem 1rem 3rem; }
body:has(> .screen.landing) { background: radial-gradient(70% 38% at 20% 0%, var(--soft) 0%, transparent 100%) no-repeat, var(--bg); }
.landing > * { animation: rise .6s ease both; }
.landing > :nth-child(2) { animation-delay: .08s; } .landing > :nth-child(3) { animation-delay: .18s; } .landing > :nth-child(n+4) { animation-delay: .26s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .landing > * { animation: none; } }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: .4rem 0; }
.brand { font: 800 1.4rem/1 var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.btn.inline { display: inline-flex; width: auto; padding: 0 1.25rem; margin: 0; }
.hero { display: grid; gap: 2.5rem; padding: 3rem 0 2rem; }
.hero .eyebrow { color: var(--accent); margin: 0 0 1rem; }
.hero h1 { font: 800 clamp(2.1rem, 6vw, 3.6rem)/1.05 var(--display); letter-spacing: -.03em; margin: 0; max-width: 17ch; }
.hero .sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); line-height: 1.5; margin-top: 1.2rem; max-width: 38ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.phone { width: min(100%, 340px); margin: 0 auto; border: 1px solid var(--line); border-radius: 28px; background: var(--bg); padding: 1.2rem 1rem 1.3rem; box-shadow: 0 30px 60px -30px rgba(18,18,20,.35); }
.phone .eyebrow { margin: 0; }
.phone .title { font: 800 1.15rem/1.1 var(--display); letter-spacing: -.02em; margin: .3rem 0 .3rem; }
:root[data-dir="c"] .phone .title { text-transform: uppercase; }
.phone .muted { margin-bottom: .7rem; font-size: .85rem; }
.phone .take { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: .8rem .9rem; font-size: .9rem; line-height: 1.45; margin-bottom: .5rem; }
.phone .take .row { display: flex; justify-content: flex-end; margin-top: .5rem; }
.phone .pill { font: 600 .78rem var(--ui); color: var(--accent); background: var(--soft); border-radius: calc(var(--radius) - 4px); padding: .35rem .7rem; }
.phone .take.chosen { border-color: var(--accent); } .phone .take.chosen .pill { background: var(--accent); color: var(--accent-ink); }
.phone .none { text-align: center; font: 600 .82rem var(--ui); color: var(--muted); margin-top: .6rem; }
.landing h2 { font: 800 clamp(1.5rem, 3vw, 2.1rem)/1.15 var(--display); letter-spacing: -.02em; }
.shot-copy { text-align: center; max-width: 52ch; margin: 1.5rem auto 0; }
.shot-copy p, .close p { color: var(--muted); font-size: 1.05rem; line-height: 1.55; margin: .7rem auto 0; max-width: 46ch; }
.how { padding: 2.5rem 0 1rem; }
.flow { list-style: none; display: grid; gap: .8rem; margin-top: 1.2rem; }
.flow li { display: grid; grid-template-columns: 34px 1fr; gap: .2rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1rem 1.05rem; }
.flow .n { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 800 .95rem var(--num); display: flex; align-items: center; justify-content: center; }
.flow b { font: 700 1.05rem var(--display); }
.flow span:last-child { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.why { padding: 2rem 0 1rem; }
.grid { display: grid; gap: .8rem; margin-top: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card.feat { display: grid; gap: .3rem; align-content: start; margin: 0; padding: 1.1rem 1.1rem 1.2rem; }
.card.feat .k { color: var(--accent); margin: 0; }
.card.feat b { font: 700 1.08rem/1.25 var(--display); letter-spacing: -.01em; }
.card.feat p { color: var(--muted); font-size: .93rem; line-height: 1.5; margin-top: .2rem; }
.close { margin-top: 2.5rem; padding: 2.2rem 1.4rem; border-radius: calc(var(--radius) + 8px); background: var(--ink); color: var(--bg); text-align: center; }
.close p { color: inherit; opacity: .8; margin: .7rem auto 1.4rem; }
.close .btn.primary { background: var(--bg); color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: 1.6rem 0 0; font-size: .85rem; color: var(--muted); }
.foot a { color: var(--accent); text-decoration: none; font-weight: 600; }
@media (min-width: 720px) { .topbar { padding: .8rem 0; } }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 3rem; padding: 2.5rem 0 1.5rem; } .phone { margin: 0; justify-self: center; transform: rotate(-2deg); } }
.dossier .claims { margin: .2rem 0 0 1.1rem; padding: 0; } .dossier .claims li { margin: .2rem 0; }
