:root { --bg: #fbfaf7; --fg: #1d1d1b; --muted: #6b6a66; --line: #e3e0d8; --accent: #2f5d50; --warn: #a3401f; --chip: #efece4; }
@media (prefers-color-scheme: dark) { :root { --bg: #161615; --fg: #ecebe6; --muted: #9b9a94; --line: #2e2d2a; --accent: #7fb8a6; --warn: #e48a68; --chip: #24231f; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.45 system-ui, sans-serif; }
a { color: var(--accent); }
.bar { display: flex; gap: 16px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bar nav { display: flex; gap: 12px; flex-wrap: wrap; }
.bar nav a { text-decoration: none; padding: 2px 6px; border-radius: 6px; }
.bar nav a.on, .filters a.on { background: var(--chip); color: var(--fg); }
.mode { margin-left: auto; font-size: 13px; padding: 2px 8px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); }
.banner { padding: 8px 16px; background: var(--chip); font-size: 14px; }
main { padding: 8px 16px 32px; max-width: 1100px; margin: 0 auto; }
h1 { font-size: 22px; margin: 16px 0 8px; } h2 { font-size: 17px; margin: 20px 0 6px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .warn { color: var(--warn); }
.scroll { overflow-x: auto; }
.grid { border-collapse: collapse; width: 100%; min-width: 640px; }
.grid th, .grid td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.grid th { font-size: 13px; color: var(--muted); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.stage, .badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--chip); white-space: nowrap; }
.s-won { color: var(--accent); } .s-parked { color: var(--muted); }
.d-draft { color: var(--warn); } .d-sent { color: var(--accent); }
.filters a { text-decoration: none; padding: 1px 6px; border-radius: 6px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; }
.facts dt { color: var(--muted); }
.list { padding-left: 18px; } .list li { margin: 4px 0; }
.foot { padding: 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
a.badge { text-decoration: none; }
.mode-vault { border-color: var(--warn); color: var(--warn); }
.open { display: grid; gap: 12px; max-width: 560px; margin: 16px 0; }
.open label { display: grid; gap: 4px; }
.open label.check { display: flex; gap: 8px; align-items: center; }
.open input[type=password] { font: 14px ui-monospace, monospace; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); width: 100%; }
button { font: inherit; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--bg); cursor: pointer; justify-self: start; }
button.quiet { background: transparent; color: var(--accent); }
.pending { border: 1px solid var(--warn); border-radius: 8px; padding: 4px 16px 8px; margin: 16px 0; }
.pending pre { background: var(--chip); padding: 8px; border-radius: 6px; overflow-x: auto; font-size: 13px; }
.pending label { display: grid; gap: 4px; max-width: 420px; }
button.small { font-size: 12px; padding: 1px 8px; }
button:disabled { opacity: .5; cursor: not-allowed; }
select { font: inherit; font-size: 13px; }
.add { margin: 8px 0 12px; } .add summary { cursor: pointer; color: var(--accent); }
.add .open { margin: 8px 0; } .open input:not([type=checkbox]), .open select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
input.key { font: 13px ui-monospace, monospace; width: min(100%, 640px); padding: 6px; }
.thumbs img { max-height: 80px; margin: 4px; border-radius: 4px; }
.open textarea { font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); width: 100%; }
.status.bad { color: var(--warn); } .status.ok { color: var(--accent); }
.reply { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 8px 0; } .reply .when { color: var(--muted); font-size: 13px; margin: 0; }
html.dropping body { outline: 3px dashed var(--accent); outline-offset: -6px; }
.timeline .when { font-variant-numeric: tabular-nums; color: var(--muted); }
.open.inline { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-width: none; align-items: end; }
.open.inline .wide { grid-column: 1 / -1; }
#me { margin-left: auto; } #me + .mode { margin-left: 0; }
img.qr { width: min(100%, 320px); image-rendering: pixelated; background: #fff; padding: 8px; border-radius: 6px; }
#mykey { width: min(100%, 640px); font: 12px ui-monospace, monospace; }

/* Design review round 1 (design.b.rounds, 24 Nov 2026): the band fixed, the open vault always shown, The Day, phone. */
.bar { position: sticky; top: 0; z-index: 3; background: var(--bg); }
.banner { position: sticky; top: var(--bar-h, 52px); z-index: 2; }
button.mode { background: transparent; cursor: pointer; font: inherit; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stages { display: flex; flex-wrap: wrap; gap: 6px; } .stages .stage { text-decoration: none; color: var(--fg); padding: 4px 10px; min-height: 24px; }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.card h2 { font-size: 18px; margin: 4px 0; } .card p { margin: 4px 0; }
.card.why-overdue { border-left: 4px solid var(--warn); } .card.why-follow-up { border-left: 4px solid var(--accent); }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px !important; }
a.button { display: inline-block; text-decoration: none; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--accent); color: var(--accent); min-height: 24px; }
a.button.small { padding: 2px 8px; font-size: 13px; }
button, .filters a, a.badge { min-height: 24px; }
.menu-toggle { display: none; }
@media (max-width: 640px) {
  .menu-toggle { display: inline-block; min-height: 44px; }
  .bar nav { display: none; width: 100%; flex-direction: column; }
  body.menu-open .bar nav { display: flex; }
  .bar nav a { padding: 10px 6px; }
  button, a.button, .filters a, select, input { min-height: 44px; }
  button.small { min-height: 44px; }
  .banner { top: 64px; font-size: 13px; }
}

.handover { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; margin: 12px 0 24px; }
.handover section { border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px 16px; }
.handover h2 { margin-top: 8px; } .handover textarea { width: 100%; font: 11px ui-monospace, monospace; }
.drop { border: 2px dashed var(--accent); border-radius: 10px; min-height: 220px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--accent); cursor: pointer; padding: 16px; }
.drop.over { background: var(--chip); }
@media (max-width: 760px) { .handover { grid-template-columns: 1fr; } .drop { min-height: 120px; } }
.added { border: 2px solid var(--accent); border-radius: 10px; padding: 8px 16px 12px; margin: 12px 0; } button.big { font-size: 18px; padding: 10px 20px; min-height: 44px; }
/* Verified keys on people */
.badge.key-ok { background: var(--accent); color: var(--bg); }
.badge.key-bad { background: var(--warn); color: var(--bg); }
.badge.key-other { outline: 1px solid var(--warn); }
.badge.key-none { background: transparent; color: var(--muted); outline: 1px dashed var(--line); }
details.add.inline { display: inline-block; vertical-align: top; }
details.add.inline[open] { display: block; margin: 6px 0 10px; }

/* For you: decisions sealed to this browser */
.decision { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 16px 0; }
.decision fieldset { border: 0; padding: 0; margin: 12px 0; }
.decision legend { font-weight: 600; margin-bottom: 6px; }
.decision .option { display: block; padding: 8px 0; min-height: 44px; }

/* The Day and the SovereignWeb.site CRM brand, for the live app's own markup.
   For crm.dev.a: append to crm/site/style.css (after everything else), and copy brand/ (mark.svg, favicon.svg,
   favicon-32.png) next to index.html. It only restyles the classes the app already has; no markup must change for it
   to work. Optional markup changes are in NOTES.md beside this file. a.crm.design, 24 Nov 2026. */

/* 1. The brand, through the app's seven variables, plus the status colours. */
:root { --bg: #fbfaf7; --fg: #1b1c1a; --muted: #5b6460; --line: #dcd9d0; --accent: #1f5446; --warn: #a63a17; --chip: #f1efe8;
  --raise: #ffffff; --accent-soft: #e3eee9; --warn-soft: #fbe9e2; --brass: #7d5300; --brass-soft: #fbf0d6; --sky: #24537a; --sky-soft: #e4eef6;
  --band: #f3d36b; --band-ink: #1b1c1a; --focus: #1a73c8;
  --serif: ui-serif, Charter, "Bitstream Charter", "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
@media (prefers-color-scheme: dark) { :root { --bg: #121513; --fg: #e9ece6; --muted: #a3aca7; --line: #303733; --accent: #7cc4ab; --warn: #f39a78; --chip: #0d0f0e;
  --raise: #1a1e1c; --accent-soft: #1b2e28; --warn-soft: #3a1e14; --brass: #e7b84a; --brass-soft: #33280f; --sky: #93c1ea; --sky-soft: #15283a;
  --band: #e7b84a; --band-ink: #141210; --focus: #8ec5ff; } }
body { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2 { font-family: var(--serif); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 2. The header: the mark before "CRM", the vault switcher as a pill. */
.bar strong:first-child { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 21px; min-height: 44px; }
.bar strong:first-child::before { content: ""; width: 32px; height: 32px; background: url(brand/mark.svg) center / contain no-repeat; }
.bar nav a { min-height: 40px; display: inline-flex; align-items: center; color: var(--fg); font-weight: 600; }
.bar nav a.on { background: var(--accent-soft); box-shadow: inset 0 -3px 0 var(--accent); }
button.mode, #mode { min-height: 44px; padding: 6px 14px; font-size: 15px; font-weight: 600; color: var(--fg); background: var(--accent-soft); border: 2px solid var(--accent); border-radius: 999px; }

/* 3. The demo band: hazard stripes at its edge, words in bold; it stays sticky as round 1 asked. */
.banner { background: var(--band); color: var(--band-ink); font-weight: 600; padding: 6px 16px 6px 22px; border-bottom: 2px solid var(--band-ink);
  background-image: repeating-linear-gradient(135deg, var(--band-ink) 0 6px, transparent 6px 12px); background-size: 10px 100%; background-repeat: no-repeat; }
.banner a { color: var(--band-ink); }

/* 4. Today as a diary: one ruled line per company, why on the left, the action on the right. */
main h1 { font-size: clamp(28px, 5vw, 40px); }
.stages { margin: 4px 0 16px; padding-bottom: 12px; border-bottom: 3px double var(--fg); }
.stages .stage { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 8px; background: transparent; }
.cards { display: block; margin: 0; }
.card { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; column-gap: 18px; align-items: center; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
.card.why-overdue, .card.why-follow-up { border-left: 0; }
.card > .card-why { grid-column: 1; grid-row: 1 / span 4; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding-right: 12px; border-right: 2px solid var(--line); margin: 0; }
.card > h2 { grid-column: 2; font-size: 20px; margin: 0; }
.card > h2 a { color: var(--fg); text-underline-offset: 3px; }
.card > p:not(.card-why):not(.card-actions) { grid-column: 2; }
.card > .card-actions { grid-column: 3; grid-row: 1 / span 4; margin: 0 !important; justify-content: flex-end; }
.card .card-actions a.button { background: var(--accent); color: var(--bg); border: 2px solid var(--accent); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 8px; }

/* Status by words and shape: the badge in each line's left column takes a shape from the line's kind. */
.card-why .badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; font-weight: 700; padding: 2px 9px 2px 7px; border-radius: 6px; border: 1.5px solid currentColor; background: var(--chip); }
.card-why .badge::before { content: ""; width: 9px; height: 9px; background: currentColor; flex: none; }
.why-overdue .card-why .badge { color: var(--warn); background: var(--warn-soft); }
.why-overdue .card-why .badge::before { width: 10px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.why-overdue .card-why { border-right-color: var(--warn); }
.why-draft .card-why .badge { color: var(--brass); background: var(--brass-soft); }
.why-draft .card-why .badge::before { clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%); }
.why-follow-up .card-why .badge { color: var(--sky); background: var(--sky-soft); }
.why-follow-up .card-why .badge::before { background: none; border: 2px solid currentColor; border-radius: 50%; width: 8px; height: 8px; }
.why-soon .card-why .badge { color: var(--accent); background: var(--accent-soft); }
.why-soon .card-why .badge::before { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.d-draft { color: var(--brass); font-weight: 700; } .d-sent { color: var(--accent); }

/* 5. Buttons and the You page's two halves in the brand. */
button { border-radius: 8px; min-height: 36px; font-weight: 600; }
button.quiet { border: 2px solid var(--accent); }
.handover section { background: var(--raise); }
.drop { background: var(--accent-soft); font-weight: 700; color: var(--fg); }

/* 6. Phone: each line stacks, the action full width; 44 px targets. */
@media (max-width: 640px) {
  .card { grid-template-columns: 1fr; row-gap: 4px; }
  .card > .card-why, .card > h2, .card > p:not(.card-why):not(.card-actions), .card > .card-actions { grid-column: 1; grid-row: auto; }
  .card > .card-why { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; padding: 0; }
  .card > .card-actions { justify-content: stretch; margin-top: 6px !important; }
  .card .card-actions a.button { flex: 1; justify-content: center; }
  .stages .stage { min-height: 44px; }
  button, a.button, a.badge, details.add > summary { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---- Round 1 on the live app (a.crm.design, 24 Nov 2026): fixes for crm.dev.a's four points. ---- */

/* 1. The header fits one row down to 1280 px; below that the pages move to their own row, the vault pill stays top right. */
.bar { gap: 10px; }
.bar nav { gap: 2px; }
.bar nav a { padding: 6px 9px; font-size: 15px; white-space: nowrap; }
#me { white-space: nowrap; }
@media (min-width: 641px) and (max-width: 1279px) {
  .bar nav { order: 5; flex-basis: 100%; }
}
/* Ten pages (with Outbox): a tighter step between 1280 and 1400 px keeps one row, even with the long labels. */
@media (min-width: 1280px) and (max-width: 1400px) {
  .bar { gap: 8px; }
  .bar nav a { padding: 6px 6px; font-size: 14px; }
  #me { font-size: 12px; padding-inline: 8px; }
  button.mode, #mode { padding-inline: 10px; font-size: 14px; }
}

/* On a phone the vault pill stays on the first row, top right; the name button moves below it. */
@media (max-width: 640px) { .bar { row-gap: 6px; } .bar #mode, .bar #me + #mode { order: 2; margin-left: auto; } .bar #me { order: 6; margin-left: 0; } .bar nav { order: 7; } }

/* 2. On a phone the why label sits at the start of the line, not centred. */
@media (max-width: 640px) { .card > .card-why { justify-content: flex-start; } }

/* 3. Keys on people: words and a shape, like every other status. */
.badge.key, .badge.key-ok, .badge.key-none, .badge.key-other, .badge.key-bad { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 1px 8px 1px 6px; border-radius: 6px; vertical-align: middle; white-space: nowrap; }
.badge.key::before, .badge.key-ok::before, .badge.key-none::before, .badge.key-other::before, .badge.key-bad::before { content: ""; width: 9px; height: 11px; flex: none; background: currentColor; clip-path: polygon(50% 0, 100% 18%, 100% 58%, 50% 100%, 0 58%, 0 18%); }
.badge.key { color: var(--muted); background: var(--chip); border: 1.5px dotted var(--muted); }              /* checking: dotted */
.badge.key-ok { color: var(--accent); background: var(--accent-soft); border: 1.5px solid var(--accent); }   /* verified: solid shield */
.badge.key-none { color: var(--muted); background: transparent; border: 1.5px dashed var(--muted); }         /* none yet: hollow, dashed */
.badge.key-none::before { background: none; border: 1.5px solid currentColor; clip-path: none; border-radius: 2px 2px 5px 5px; width: 8px; height: 10px; }
.badge.key-other { color: var(--brass); background: var(--brass-soft); border: 1.5px solid var(--brass); }   /* signed by someone unknown: half shield */
.badge.key-other::before { clip-path: polygon(50% 0, 50% 100%, 0 58%, 0 18%); }
.badge.key-bad { color: var(--warn); background: var(--warn-soft); border: 1.5px solid var(--warn); }       /* does not check: a cross */
.badge.key-bad::before { clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); height: 9px; }
details.add.inline { display: inline-block; margin: 0 0 0 4px; vertical-align: middle; }
details.add.inline > summary { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1.5px dashed var(--accent); border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--accent); list-style: none; }
details.add.inline > summary::-webkit-details-marker { display: none; }
details.add.inline > summary::before { content: "+"; margin-right: 5px; }
details.add.inline[open] { display: block; margin: 8px 0 12px; padding: 10px 12px; border: 1.5px solid var(--accent); border-radius: 10px; background: var(--raise); }
details.add.inline[open] > summary::before { content: "\2212"; }
form.add-key { margin: 8px 0 0; }

/* Buttons keep their label on one line. */
button, a.button { white-space: nowrap; }

/* 4. Phone: "Draft waiting" links and the folded forms at 44 px; tables without sideways scrolling. */
@media (max-width: 640px) {
  a.badge, details.add.inline > summary { min-height: 44px; }
  .scroll { overflow-x: visible; }
  .grid { min-width: 0; font-size: 14px; }
  .grid thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .grid, .grid tbody, .grid tr, .grid td, .grid th { display: block; }
  .grid tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .grid td, .grid th { padding: 2px 0; border: 0; }
  .grid td:empty { display: none; }
  .grid td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
  .grid td:first-child { font-weight: 700; }
  .grid .num { text-align: left; }
  .grid td a, .grid th a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Round 4: the Outbox (a.crm.design, 24 Nov 2026). Its state chip takes a shape like every other status: waiting for
   sign-off is a folded page (as a draft); signed off is a solid shield; sent is a solid circle. Until the chip carries
   d-<state> (markup ask), every unresolved chip shows as waiting; key-ok / key-bad from the signature check still win. */
.badge[data-apcheck], .badge.d-approved, .badge.d-sent { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 1px 8px 1px 6px; border-radius: 6px; white-space: nowrap; }
.badge[data-apcheck]::before, .badge.d-approved::before, .badge.d-sent::before { content: ""; width: 9px; height: 9px; flex: none; background: currentColor; }
.badge[data-apcheck], .badge[data-apcheck].d-draft { color: var(--brass); background: var(--brass-soft); border: 1.5px solid var(--brass); }
.badge[data-apcheck]::before, .badge[data-apcheck].d-draft::before { clip-path: polygon(0 0, 100% 0, 100% 60%, 60% 100%, 0 100%); }
.badge[data-apcheck].d-approved { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.badge[data-apcheck].d-approved::before { height: 11px; clip-path: polygon(50% 0, 100% 18%, 100% 58%, 50% 100%, 0 58%, 0 18%); }
.badge[data-apcheck].d-sent { color: var(--sky); background: var(--sky-soft); border-color: var(--sky); }
.badge[data-apcheck].d-sent::before { border-radius: 50%; clip-path: none; }
tr.sub details > summary { min-height: 44px; padding: .6rem 0; cursor: pointer; }
tr.sub pre { white-space: pre-wrap; }

/* From design.b.rounds' round 2: the grey line on each card darker and larger. */
.card > p.small.muted { font-size: 14px; color: color-mix(in srgb, var(--fg) 78%, var(--bg)); }

/* The signature check wins over the state: a chip with d-approved and key-bad must read as "does not check". */
.badge[data-apcheck].key-ok { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.badge[data-apcheck].key-other { color: var(--brass); background: var(--brass-soft); border-color: var(--brass); }
.badge[data-apcheck].key-other::before { height: 11px; border-radius: 0; clip-path: polygon(50% 0, 50% 100%, 0 58%, 0 18%); }
.badge[data-apcheck].key-bad { color: var(--warn); background: var(--warn-soft); border-color: var(--warn); }
.badge[data-apcheck].key-bad::before { height: 9px; border-radius: 0; clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }

/* Round 5 (a.crm.design, 24 Nov 2026): the second button on a card is quiet; a waiting draft's button in brass;
   Everyone / Mine as a switch; the count line as the page's headline. */
.card .card-actions a.button.quiet { background: transparent; color: var(--accent); }
.card-actions a.button:not(.quiet):has(~ a.button.quiet) { background: var(--brass); border-color: var(--brass); color: var(--bg); }
.today-count { font-size: 18px; font-weight: 600; margin: 4px 0 10px; }
p.filters[role=group] { display: inline-flex; border: 2px solid var(--accent); border-radius: 999px; overflow: hidden; padding: 0; margin: 0 0 12px; }
p.filters[role=group] a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 16px; border-radius: 0; text-decoration: none; color: var(--accent); font-weight: 600; background: transparent; }
p.filters[role=group] a.on, p.filters[role=group] a[aria-current] { background: var(--accent); color: var(--bg); }
@media (max-width: 640px) { p.filters[role=group] a { min-height: 44px; } .today-count { font-size: 17px; } }

/* Round 6 (a.crm.design, 24 Nov 2026): "For you", a question waiting for your answer. A card with a brass edge (it
   waits on you, like a draft); each option a large tile with its letter in a circle, lit when chosen; the call-out on
   Today above the count line. */
#for-you-note { margin: 4px 0 8px; }
#for-you-note a.button { background: var(--brass); border-color: var(--brass); color: var(--bg); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; border-width: 2px; border-style: solid; }
#for-you-note a.button::before { content: "?"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--brass); font: 800 14px/1 var(--serif); }
.decision { position: relative; background: var(--raise); border: 1.5px solid var(--line); border-left: 6px solid var(--brass); border-radius: 12px; padding: 18px 22px; }
.decision:has(.added-note) { border-left-color: var(--accent); }
.decision h2 { font-size: 22px; margin: 0 0 4px; }
.decision .added-note { padding: 8px 12px; border-radius: 8px; background: var(--accent-soft); border-left: 4px solid var(--accent); }
.decision fieldset { margin: 16px 0; }
.decision legend { font-family: var(--serif); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.decision .option { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; margin: 6px 0; min-height: 48px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer; line-height: 1.4; }
.decision .option:hover { border-color: var(--accent); }
.decision .option input[type=radio] { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.decision .option strong { display: inline-grid; place-items: center; flex: none; min-width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--fg); font-size: 13px; }
.decision .option:has(input:checked) { border: 2px solid var(--accent); background: var(--accent-soft); }
.decision .option:has(input:checked) strong { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.decision .option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.decision details { margin: 8px 0; }
.decision details > summary { min-height: 44px; padding: .6rem 0; cursor: pointer; font-weight: 600; color: var(--accent); }
.decision details a { overflow-wrap: anywhere; }
.decision form.decide > label { margin-top: 10px; }
.decision form.decide > button[type=submit] { background: var(--accent); color: var(--bg); border: 2px solid var(--accent); min-height: 44px; padding: 8px 18px; font-size: 16px; }
/* Round 6b, from the live stills: tighter rhythm between the groups (the form's grid gap already spaces them). */
.decision form.decide { gap: 8px; }
.decision fieldset { margin: 4px 0; }
.decision details { margin: 0; }

/* Round 7 (a.crm.design, 25 Nov 2026): the You page's "Drop what you get back", for touch screens. The drop area
   stacks its two lines (a <br> is ignored in a flex box); "choose the pictures" becomes a real button, the native file
   control hidden inside its label (the label still opens the picker: Photos, Files or the camera on an iPad). */
.take .drop { flex-direction: column; gap: 4px; min-height: 140px; text-align: center; font-size: 17px; }
.take .drop .small { font-weight: 500; }
.take label:has(> #qrfile) { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2px solid var(--accent); border-radius: 8px; color: var(--accent); font-weight: 600; font-size: 15px; cursor: pointer; }
.take label:has(> #qrfile) > #qrfile { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.take label:has(> #qrfile:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.take #pasteqr { min-height: 44px; }
.take p:has(> #pasteqr) { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.take #rc-text { min-height: 64px; }
@media (max-width: 640px) { .take #pasteqr, .take label:has(> #qrfile) { width: 100%; justify-content: center; margin: 4px 0; } }
