/* Same tokens as the ZY Agency Desk: the panel is its sibling.
   Layout: one column of project cards on a phone, a grid on a computer; every action opens one sheet that says exactly what will happen. */
:root {
  --bg: #f3f4f7;
  --surface: #ffffff;
  --sunk: #eaecf1;
  --ink: #161a26;
  --muted: #586073;
  --faint: #868da0;
  --line: #dde1ea;
  --accent: #3451d1;
  --accent-ink: #ffffff;
  --accent-soft: #e5e9fb;
  --ok: #26824f;
  --ok-soft: #dff2e6;
  --warn: #9a6a00;
  --warn-soft: #f7edd2;
  --bad: #c42f2f;
  --bad-soft: #fbe4e4;
  --you: #7442c4;
  --you-soft: #eee6fa;
  --claude: #b4561f;
  --claude-soft: #f7e8dd;
  --shadow: 0 1px 2px rgba(20, 26, 40, .05), 0 6px 18px rgba(20, 26, 40, .06);
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 12px;
  --r-sm: 8px;
  color-scheme: light;
}
/* Light by default; dark only when chosen (owner rule). */
:root[data-theme="dark"] {
  --bg: #0f121a; --surface: #171b26; --sunk: #1f2431; --ink: #eceef4; --muted: #a6adbf; --faint: #7d8497;
  --line: #2a3040; --accent: #7d93ff; --accent-ink: #0f121a; --accent-soft: #232b4d;
  --ok: #5fc58c; --ok-soft: #173525; --warn: #e0b54a; --warn-soft: #3a2f12; --bad: #ff7a7a; --bad-soft: #3d1c1c;
  --you: #b693f0; --you-soft: #2d2342; --claude: #f0a06c; --claude-soft: #3a2618;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-text-size-adjust: 100%; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-size: 12.5px; }

/* frame */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .top-in .modes { order: 3; width: 100%; } .top-in .modes button { flex: 1; } }
.brand { font-family: var(--f-display); font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand i { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-block; position: relative; }
.brand i::after { content: ""; position: absolute; inset: 6px; border-radius: 2px; background: var(--accent-ink); }
.spacer { flex: 1; }
.stopall { border: 1.5px solid var(--bad); background: var(--surface); color: var(--bad); border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.stopall:hover { background: var(--bad-soft); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 16px 16px 40px; display: grid; gap: 16px; }

/* summary strip */
.summary { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.you { background: var(--you-soft); color: var(--you); }
.chip.run { background: var(--accent-soft); color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.modes { display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 3px; gap: 2px; }
.modes button { border: 0; background: transparent; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.modes button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; align-content: start; }
.needs { border-left: 4px solid var(--you); }
.needs ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.needs li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.needs li small { grid-column: 1; color: var(--muted); }
.grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.proj-h { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.proj-h h2 { margin-right: auto; }
.site { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.site span + span::before { content: "·"; margin-right: 6px; color: var(--faint); }
.lines { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; padding-top: 2px; }
.line .what { font-weight: 500; }
.line .state { grid-column: 1; font-size: 13px; color: var(--muted); }
.line .state b { color: var(--ink); font-weight: 600; }
.line .act { grid-row: 1 / span 2; grid-column: 2; }
.need { font-size: 12.5px; display: inline-flex; gap: 4px; align-items: baseline; }
.need .who { font-weight: 600; }
.need.you .who { color: var(--you); }
.need.claude .who { color: var(--claude); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 14px; cursor: pointer; border: 1.5px solid var(--accent); background: var(--surface); color: var(--accent); text-decoration: none; white-space: nowrap; min-height: 36px; }
.btn:hover { background: var(--accent-soft); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); background: var(--accent); }
.btn.quiet { border-color: var(--line); color: var(--ink); }
.btn.quiet:hover { background: var(--sunk); }
.btn.danger { border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.locked { border-style: dashed; border-color: var(--faint); color: var(--muted); }
.btn.locked:hover { background: var(--sunk); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.bar { height: 6px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.queue { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.queue li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.queue .bar { min-width: 40px; }
.queue .q-n { color: var(--muted); white-space: nowrap; }

/* letters screen */
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.letters-h { display: grid; gap: 4px; }
.cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .cols { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 640px) { .totals { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.totals div { background: var(--surface); padding: 10px 12px; display: grid; }
.totals b { font-family: var(--f-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.totals span { font-size: 12px; color: var(--muted); }
.ramp { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.ramp span { padding: 3px 9px; border-radius: 999px; background: var(--sunk); color: var(--muted); font-variant-numeric: tabular-nums; }
.ramp span.now { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; counter-increment: s; }
.steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--sunk); color: var(--muted); }
.steps li.done::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.steps li small { grid-column: 2; color: var(--muted); }
.steps li .btn { grid-column: 3; grid-row: 1 / span 2; }
.places { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.place { border-top: 1px solid var(--line); }
.place:first-child { border-top: 0; }
.place > .row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 0; }
.cc { font-family: var(--f-mono); font-size: 12.5px; background: var(--sunk); color: var(--muted); border-radius: 6px; padding: 3px 0; text-align: center; grid-row: 1 / span 2; }
.place .nm { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.place .sub { grid-column: 2; font-size: 13px; color: var(--muted); }
.place .btns { grid-row: 1 / span 2; grid-column: 3; display: flex; gap: 6px; }
.place details { margin: 0 0 10px 54px; }
.place summary { cursor: pointer; font-size: 13px; color: var(--accent); list-style: none; }
.place summary::-webkit-details-marker { display: none; }
.place summary::before { content: "▸ "; }
.place details[open] summary::before { content: "▾ "; }
.airports { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13.5px; }
.airports li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.airports .mono { color: var(--muted); }
.airports .rd { color: var(--muted); font-variant-numeric: tabular-nums; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.log { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 13.5px; }
.log li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
.log time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; padding-top: 1px; }
.log .by { font-weight: 600; }
.example-tag { font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 2px 8px; }
.note { font-size: 13px; color: var(--muted); }

/* sheet */
.scrim { position: fixed; inset: 0; background: rgba(12, 16, 26, .45); display: none; z-index: 20; }
.scrim.on { display: block; }
.sheet { position: fixed; z-index: 21; left: 0; right: 0; bottom: 0; max-height: 92%; overflow: auto; background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.2); padding: 8px 16px 20px; display: none; }
.sheet.on { display: block; animation: up .22s ease-out; }
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 4px auto 10px; }
.sheet-in { display: grid; gap: 14px; max-width: 620px; margin: 0 auto; }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(640px, calc(100% - 32px)); border-radius: 18px; padding: 20px 22px; }
  .sheet.on { animation: none; }
  .sheet .grab { display: none; }
}
@keyframes up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet.on { animation: none; } }
.happen { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.happen li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; }
.happen li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; }
.pace { display: flex; gap: 6px; flex-wrap: wrap; }
.pace button { border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 14px; min-width: 64px; display: grid; justify-items: center; cursor: pointer; }
.pace button b { font-family: var(--f-display); font-size: 18px; }
.pace button small { font-size: 11.5px; color: var(--muted); }
.pace button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.pace button[disabled] { opacity: .45; cursor: not-allowed; }
.letter { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); padding: 12px 14px; font-size: 14px; display: grid; gap: 8px; }
.letter p { margin: 0; }
.letter .fill { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 4px; }
.letter .foot { font-size: 12px; color: var(--muted); }
.meta { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 4px 10px; font-size: 13.5px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.sheet-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sheet-btns .btn { flex: 1 1 auto; }
@media (min-width: 760px) { .sheet-btns .btn { flex: 0 0 auto; } }
.blocked { background: var(--you-soft); border-radius: var(--r-sm); padding: 10px 12px; display: grid; gap: 6px; font-size: 14px; }
.blocked b { color: var(--you); }

/* how and inventory */
.prose { max-width: 70ch; display: grid; gap: 10px; }
.prose p, .prose li { margin: 0; }
.prose ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 13.5px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-top: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: 12.5px; border-top: 0; background: var(--sunk); }
td:first-child { font-weight: 600; white-space: nowrap; }
.shots { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .shots { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } }
.shots figure { margin: 0; display: grid; gap: 6px; }
.shots img { max-width: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.shots figcaption { font-size: 13px; color: var(--muted); }
.foot-line { font-size: 12.5px; color: var(--faint); text-align: center; }
[hidden] { display: none !important; }

/* panel app additions */
.form { display: grid; gap: 8px; max-width: 420px; }
.form label { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.form input { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: 16px; }
.form input:focus { border-color: var(--accent); outline: none; }
.form .btn { margin-top: 10px; justify-self: start; }
.narrow { max-width: 440px; margin: 24px auto; }
.pace-b, .pace-off { border: 1.5px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 14px; min-width: 64px; display: inline-grid; justify-items: center; text-decoration: none; color: var(--ink); }
.pace-b b, .pace-off b { font-family: var(--f-display); font-size: 18px; }
.pace-b small, .pace-off small { font-size: 11.5px; color: var(--muted); }
.pace-b.on { border-color: var(--accent); background: var(--accent-soft); }
.pace-off { opacity: .45; }
.pre { white-space: pre-line; }
.inline { display: inline; }
.linkish { border: 0; background: none; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; font-size: inherit; }
.airports-line { margin: -4px 0 10px 54px; }
a.stopall { text-decoration: none; }
details.card summary { cursor: pointer; font-weight: 600; }
#qr { background: #fff; padding: 10px; width: max-content; border-radius: 8px; }

/* ── Desk and hub (11 November 2026) ───────────────────────────── */
.tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--surface); box-shadow: none; }
.cnt { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--sunk); color: var(--muted); font-size: 13px; text-align: center; vertical-align: 2px; }
.tl { list-style: none; margin: 0; padding: 0; }
.trow + .trow, .post + .post { border-top: 1px solid var(--line); }
.trow > a, .trow { display: block; padding: 11px 0; color: inherit; text-decoration: none; }
.trow > a { padding: 0; }
.trow.st-done .t-title { color: var(--faint); text-decoration: line-through; }
.t-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; color: var(--muted); }
.t-title { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.t-h1 { margin: 10px 0 8px; font-size: 22px; line-height: 1.25; }
.t-p { color: var(--ink); font-weight: 600; }
a.t-p { color: var(--accent); }
.prio { padding: 1px 6px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--sunk); color: var(--muted); }
.prio.p1 { background: var(--bad-soft); color: var(--bad); }
.prio.p2 { background: var(--warn-soft); color: var(--warn); }
.who-c { color: var(--claude, #b8642c); font-weight: 600; }
.who-y { color: var(--you, #7a4fc4); font-weight: 600; }
.when { color: var(--muted); }
.when.today { color: var(--accent); font-weight: 600; }
.when.late { color: var(--bad); font-weight: 600; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.fchip { padding: 7px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.fchip.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.fchip small { opacity: .75; }
.pfilter select, .form select, .card textarea, .form input[type="date"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.pfilter { margin: 0 0 12px; }
.card textarea { margin: 6px 0 10px; resize: vertical; }
.lbl { display: block; margin-top: 12px; font-weight: 600; font-size: 14px; }
.said { margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.decide { margin: 14px 0; padding: 14px; border-radius: var(--r); background: var(--you-soft, #efe7fb); }
.decide h2 { margin: 0 0 10px; font-size: 17px; }
.decide .btn.opt { display: block; width: 100%; margin: 0 0 8px; text-align: left; white-space: normal; }
.decide .ans { font-weight: 700; }
.tsteps { list-style: none; padding: 0; margin: 6px 0 12px; }
.tsteps li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.tsteps form { margin: 0; }
.tick { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; padding: 0; }
.tick.on { background: var(--ok); border-color: var(--ok); }
.tick.on::after { content: "✓"; color: #fff; font-weight: 800; }
.s-done { color: var(--faint); text-decoration: line-through; }
.t-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.t-acts form { margin: 0; }
.thread { list-style: none; margin: 0 0 12px; padding: 0; }
.thread li { padding: 10px 12px; border-radius: var(--r-sm); margin-bottom: 8px; background: var(--sunk); }
.thread li.from-y { background: var(--you-soft, #efe7fb); }
.th-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.brief ul { padding-left: 18px; }
.proj-a { color: inherit; text-decoration: none; display: block; }
.goal { margin: 6px 0 10px; color: var(--ink); }
.road { list-style: none; margin: 0; padding: 0; }
.ms { padding: 12px 0; border-top: 1px solid var(--line); }
.ms:first-child { border-top: 0; }
.ms-h { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ms-done .ms-h b { color: var(--ok); }
.ms .tl { margin-top: 6px; padding-left: 10px; border-left: 3px solid var(--line); }
.day h2 { font-size: 16px; }
.st-routine .t-title { font-weight: 500; }
.ideas { list-style: none; margin: 0; padding: 0; }
.idea { padding: 10px 0; border-top: 1px solid var(--line); }
.idea:first-child { border-top: 0; }
.posts { list-style: none; margin: 0; padding: 0; }
.post > a { display: flex; gap: 12px; padding: 10px 0; color: inherit; text-decoration: none; align-items: center; }
.post-th { flex: 0 0 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--sunk); }
.post-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-b { min-width: 0; }
.media { margin: 12px 0; }
.media img, .media video { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--r); background: #000; }
.media figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; color: var(--muted); font-size: 14px; }
.sounds { padding-left: 20px; }
.cap { margin: 12px 0; padding: 12px; border-radius: var(--r-sm); background: var(--sunk); }
.cap-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cap .pre { margin: 0; white-space: pre-wrap; }
.post-acts { margin-top: 14px; }
.post-acts .btn { margin: 0 6px 8px 0; }
.how { margin: 10px 0; }
@media (min-width: 900px) { .tabs { margin: 0 0 16px; padding: 2px 0 6px; } }

/* A grid without its column sizes to the longest word: one long link made every card wider than the phone. */
.wrap, .card, .grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
.card, .prose, .thread li, .t-title, .t-h1, .note, .cap .pre, .log li, .goal, .meta dd { overflow-wrap: anywhere; min-width: 0; }
