:root { color-scheme: light; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.gate { max-width: 540px; margin: 0 auto; padding-inline: 16px; padding-block: 12vh 32px; display: flex; flex-direction: column; gap: 14px; }
#gate-msg { color: var(--bad); min-height: 1.4em; }
.foot { max-width: 1240px; margin: 0 auto; padding-inline: 16px; padding-block: 0 28px; font-size: 12.5px; color: var(--ink-2); }
/* Layout: a working board. Check-in list on the left, trio cards on the right, history below.
   Each trio carries a small triangle whose edges show which pairings are new. */
:root {
  --bg: #F1F4F1;
  --surface: #FFFFFF;
  --surface-2: #E6EBE6;
  --ink: #14261F;
  --ink-2: #51635B;
  --line: #D2DAD4;
  --accent: #0B6B5E;
  --accent-ink: #FFFFFF;
  --accent-soft: #DBEDE8;
  --warn: #9A5208;
  --warn-soft: #FAEAD2;
  --bad: #A32B2B;
  --bad-soft: #F7DEDC;
  --good: #1C7447;
  --good-soft: #DCF0E4;
  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1613; --surface: #162019; --surface-2: #1E2A24; --ink: #E5EEE9; --ink-2: #9BAFA5;
    --line: #2B3A33; --accent: #52C5B0; --accent-ink: #05221D; --accent-soft: #14352E;
    --warn: #F0B45C; --warn-soft: #39290F; --bad: #F08D87; --bad-soft: #3A1A19;
    --good: #72D29D; --good-soft: #143222; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1613; --surface: #162019; --surface-2: #1E2A24; --ink: #E5EEE9; --ink-2: #9BAFA5;
  --line: #2B3A33; --accent: #52C5B0; --accent-ink: #05221D; --accent-soft: #14352E;
  --warn: #F0B45C; --warn-soft: #39290F; --bad: #F08D87; --bad-soft: #3A1A19;
  --good: #72D29D; --good-soft: #143222; color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 16px; padding-block: 20px 56px; display: flex; flex-direction: column; gap: 20px; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 4vw, 36px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
h3 { font-size: 13px; font-weight: 600; }
.eyebrow { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* controls */
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 7px 12px; font-weight: 500; font-size: 14px; }
.btn:hover:not(:disabled) { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink-2); padding-inline: 6px; }
.btn.quiet:hover:not(:disabled) { color: var(--ink); border-color: var(--line); }
.btn.danger { color: var(--bad); }
.btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 12px; color: var(--ink-2); }
input[type="text"], input[type="date"], input[type="password"], select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; min-width: 0; width: 100%; }
textarea { resize: vertical; min-height: 84px; line-height: 1.4; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.end { align-items: flex-end; }
.grow { flex: 1 1 160px; min-width: 0; }

/* header */
.top { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-end; justify-content: space-between; }
.top .id { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.top .round { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.top .round .field { width: 150px; }
.top .round .field.wide { width: 220px; }
.stats { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-block: 12px; border-block: 1px solid var(--line); }
.stat { display: flex; gap: 7px; align-items: baseline; }
.stat b { font-family: var(--f-mono); font-weight: 500; font-size: 17px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--ink-2); }
.stat.warn b { color: var(--warn); }
.stat.ok b { color: var(--good); }

/* tabs (phone) */

.panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.panel-head .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sub { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }

/* roster */
.roster { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.roster li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--line); min-width: 0; }
.roster li:first-child { border-top: 0; }
.roster li.out .who { opacity: 0.55; }
.roster label { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; cursor: pointer; }
.who { min-width: 0; display: flex; flex-direction: column; }
.who b { font-weight: 600; overflow-wrap: anywhere; }
.who span { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; color: var(--ink-2); white-space: nowrap; }
.mini { border: 1px solid var(--line); background: transparent; border-radius: 4px; font-size: 12px; padding: 3px 7px; color: var(--ink-2); white-space: nowrap; }
.mini[aria-pressed="true"] { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.mini.danger { color: var(--bad); }
.edit-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; border-radius: 4px; padding: 3px 4px 3px 8px; background: var(--surface-2); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip button { border: 0; background: transparent; padding: 0 4px; font-size: 14px; line-height: 1; color: inherit; }
.empty { border: 1px dashed var(--line); border-radius: 8px; padding: 18px; color: var(--ink-2); }

/* board */
.note { border-radius: 6px; padding: 9px 12px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; background: var(--surface-2); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note.pick { background: var(--accent-soft); }
.note .row { color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.trio { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.trio.locked { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.trio header { display: flex; gap: 10px; align-items: center; }
.trio .tn { font-family: var(--f-display); font-weight: 700; font-size: 17px; flex: 1; min-width: 0; }
.trio .size { font-family: var(--f-mono); font-size: 11px; color: var(--ink-2); }
.trio ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.person { width: 100%; text-align: left; border: 1px solid transparent; background: var(--bg); border-radius: 6px; padding: 7px 9px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.person:hover:not(:disabled) { border-color: var(--ink-2); }
.person.sel { border-color: var(--accent); background: var(--accent-soft); }
.person .pn { font-weight: 600; overflow-wrap: anywhere; }
.person .pm { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.why { font-size: 13.5px; }
.why .by { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-right: 6px; }
.flags { display: flex; flex-wrap: wrap; gap: 5px; }
.pill { font-size: 12px; border-radius: 4px; padding: 2px 7px; background: var(--surface-2); color: var(--ink-2); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.good { background: var(--good-soft); color: var(--good); }
.glyph { flex: none; }
.glyph line { stroke-width: 2; stroke-linecap: round; }
.glyph .e-new { stroke: var(--accent); }
.glyph .e-met { stroke: var(--ink-2); stroke-dasharray: 2 4; }
.glyph .e-rep { stroke: var(--warn); stroke-dasharray: 4 3; }
.glyph .e-bad { stroke: var(--bad); stroke-dasharray: 4 3; }
.glyph circle { fill: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-2); align-items: center; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.publish { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
details > summary { cursor: pointer; font-weight: 600; }
details .body { padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
#ann-text { min-height: 220px; font-family: var(--f-mono); font-size: 12.5px; }

/* history */
.history { border-top: 1px solid var(--line); padding-top: 20px; }
.hist-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.round-list { display: flex; flex-direction: column; gap: 8px; }
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.rcard ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 7px 10px; border-top: 1px solid var(--line); white-space: nowrap; }
thead th { border-top: 0; font-size: 12px; font-weight: 500; color: var(--ink-2); }
td.n, th.n { text-align: right; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

@media (max-width: 899px) {
  .hist-cols { grid-template-columns: minmax(0, 1fr); }
  .history { border-top: 0; padding-top: 0; }
  .top .round .field, .top .round .field.wide { width: auto; flex: 1 1 140px; }
}
@media (prefers-reduced-motion: no-preference) {
  .person, .btn { transition: border-color 120ms ease, background-color 120ms ease; }
}
.update { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; padding: 10px 16px; background: var(--accent-soft); color: var(--ink); border-bottom: 1px solid var(--accent); font-size: 14px; }
#imp-result { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 72px; }
#imp-result:empty { display: none; }
#p-roster { scroll-margin-top: 64px; }
.note.good { background: var(--good-soft); color: var(--good); }
.note.good .btn { color: var(--ink); }

/* group tabs */
.gtabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.gtab { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 12px; max-width: 240px; }
.gtab .gname { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.gtab .gkind { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.gtab[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gtab[aria-current="page"] .gkind { color: var(--bg); opacity: 0.75; }
.gtab.add { border-style: dashed; background: transparent; }
.gtab:hover:not([aria-current="page"]) { border-color: var(--ink-2); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* import + requests strip */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; }
.card .tablewrap, .card .drop { background: var(--bg); }
#c-import, #c-req { scroll-margin-top: 16px; }
.drop { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; border: 1.5px dashed var(--line); border-radius: 8px; padding: 14px; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.req-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.req-list li { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 14px; }
.req-who { white-space: nowrap; }
.req-form { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.picker { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.picker-panel { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.picker-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; }
.picker-list label { display: flex; gap: 10px; align-items: center; padding: 6px 4px; border-radius: 4px; cursor: pointer; }
.picker-list label:hover { background: var(--surface-2); }
.err { color: var(--bad); }
.past-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.past-list li { display: flex; flex-direction: column; gap: 1px; }
#past-result { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 72px; }
#past-result:empty { display: none; }

/* onboarding */
.ob { max-width: 680px; margin: 0 auto; padding-inline: 16px; padding-block: 6vh 40px; }
.ob-inner { display: flex; flex-direction: column; gap: 16px; }
.ob .lead { font-size: 16px; color: var(--ink-2); max-width: 62ch; }
.ob h1 .muted { font-size: 0.55em; font-family: var(--f-body); font-weight: 500; letter-spacing: 0; }
.ob-progress { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.ob-progress li { display: flex; gap: 7px; align-items: center; }
.ob-progress li span { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 11.5px; }
.ob-progress li.now { color: var(--ink); font-weight: 600; }
.ob-progress li.now span { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.ob-progress li.done span { border-color: var(--good); color: var(--good); }
.how { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; max-width: 62ch; }
.how li::marker { font-family: var(--f-mono); color: var(--accent); }
.ob-form { display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.kinds { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds legend { font-size: 12px; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.kind { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.kind:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.kind input { accent-color: var(--accent); margin: 0; }
.summary { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.summary b { font-family: var(--f-mono); font-size: 22px; font-weight: 500; margin-right: 6px; }



/* step tabs (v9) */
.steps { display: flex; gap: 6px; overflow-x: auto; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); padding-block: 8px; scrollbar-width: thin; scroll-margin-top: 0; }
.step { flex: 1 1 0; min-width: max-content; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 9px 12px; font-weight: 600; font-size: 14px; text-align: left; }
.step:hover:not([aria-selected="true"]) { border-color: var(--ink-2); }
.step .num { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; font-weight: 500; }
.step.done .num { background: var(--good); border-color: var(--good); color: var(--surface); }
.step .badge { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; background: var(--surface-2); color: var(--ink-2); border-radius: 10px; padding: 1px 7px; }
.step[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.step[aria-selected="true"] .num { border-color: var(--bg); }
.step[aria-selected="true"].done .num { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.step[aria-selected="true"] .badge { background: var(--bg); color: var(--ink); }
.step-panel { display: none; padding-top: 6px; }
body[data-tab="who"] #p-who, body[data-tab="req"] #p-req, body[data-tab="build"] #p-build, body[data-tab="send"] #p-send, body[data-tab="history"] #p-history { display: flex; }
#p-history.history { border-top: 0; padding-top: 6px; }
.who-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
#p-roster { gap: 14px; }
.req-wrap { max-width: 720px; }
.send-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.sub-h { font-size: 15px; margin-top: 6px; }
.nextbar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 14px; }
.btn.big { font-size: 16px; padding: 11px 22px; border-radius: 8px; box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent); }
.build-hero { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; background: var(--surface); border: 1.5px dashed var(--accent); border-radius: 10px; padding: 24px; }
.build-hero > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.build-hero h3 { font-family: var(--f-display); font-size: 21px; margin: 0; }
.build-hero p { margin: 0; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ico { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; }
.ico rect { fill: currentColor; stroke: none; }
.tips { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: 8px; padding: 12px 14px; }
.tip { flex: 1 1 260px; display: flex; gap: 10px; align-items: flex-start; }
.tip p { margin: 0; font-size: 14px; }
.tip-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.lockbtn { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 5px 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lockbtn:hover { border-color: var(--accent); color: var(--accent); }
.lockbtn .ico rect { fill: none; stroke: currentColor; stroke-width: 1.6; }
.lockbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.lockbtn[aria-pressed="true"] .ico rect { fill: currentColor; }
.person { position: relative; }
.grid.swapping .person.target { border: 1px dashed var(--accent); }
.grid.swapping .person.target:hover { background: var(--accent-soft); }
.swapcue { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: var(--accent); opacity: 0; }
.person.target:hover .swapcue, .person.target:focus-visible .swapcue { opacity: 1; }
.note.pick .ico { color: var(--accent); }

/* onboarding fine-tune demo */
.finetune { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.finetune h2 { font-size: 18px; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ft { display: flex; flex-direction: column; gap: 10px; }
.ft p { margin: 0; font-size: 14px; }
.ft-demo { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 8px; padding: 12px; min-height: 120px; }
.mini-trio { flex: 1; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px; min-width: 0; }
.mini-trio.locked { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.mini-p { font-size: 12.5px; font-weight: 600; background: var(--bg); border: 1px solid transparent; border-radius: 4px; padding: 4px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-p.sel { border-color: var(--accent); background: var(--accent-soft); }
.mini-p.target { border: 1px dashed var(--accent); }
.mini-arrow { color: var(--accent); flex: none; }
.mini-lock { align-self: flex-start; display: inline-flex; gap: 4px; align-items: center; font-size: 11.5px; font-weight: 600; background: var(--accent); color: var(--accent-ink); border-radius: 4px; padding: 2px 7px; }

@media (max-width: 899px) {
  .who-cols, .send-cols, .ft-grid { grid-template-columns: minmax(0, 1fr); }
  .step { flex: none; padding: 8px 10px; font-size: 13.5px; }
  .build-hero { padding: 18px; }
  .build-hero .btn.big { width: 100%; }
  .nextbar .btn { flex: 1 1 auto; }
}

/* past troikas: names not on the roster */
.add-people { border-color: var(--accent); gap: 10px; }
.add-people h3 { font-size: 15px; margin: 0; }
.add-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; max-height: 260px; overflow-y: auto; }
.add-list label { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 3px 0; }

/* past troikas: examples and name review (v13) */
.examples > summary { font-weight: 600; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 10px 0; }
.ex-grid figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ex-grid figcaption { font-size: 13px; color: var(--ink-2); }
.ex-grid figcaption b { color: var(--ink); }
table.ex { border-collapse: collapse; font-size: 12px; background: var(--surface); width: 100%; table-layout: fixed; }
table.ex td { border: 1px solid var(--line); padding: 3px 5px; height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.ex td.d { font-weight: 600; color: var(--accent); }
table.ex.head tr:first-child td { font-weight: 600; background: var(--surface-2); }
.ex-text { margin: 0; font-family: var(--f-mono); font-size: 11.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 8px; white-space: pre-wrap; }
.review-card { border-color: var(--accent); }
.review-card h3 { font-size: 17px; margin: 0; }
.review-card h4 { font-size: 15px; margin: 6px 0 0; }
.review-card > details > summary { font-weight: 600; padding: 4px 0; }
.tally { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tally li { background: var(--surface-2); border-radius: 6px; padding: 4px 10px; font-size: 13px; }
.tally li b { font-family: var(--f-mono); margin-right: 3px; }
.tally li.warn { background: var(--warn-soft); color: var(--warn); }
table.review { width: 100%; border-collapse: collapse; }
table.review th { font-size: 12px; font-weight: 500; color: var(--ink-2); text-align: left; padding: 4px 6px; }
table.review td { border-top: 1px solid var(--line); padding: 7px 6px; vertical-align: top; white-space: normal; }
table.review td:first-child { width: 38%; }
table.review td:last-child { display: flex; flex-direction: column; gap: 6px; }
table.review .how { display: block; font-size: 11.5px; color: var(--ink-2); }
table.review select { max-width: 100%; }
.save-row { align-items: center; }
@media (max-width: 899px) {
  table.review td:first-child { width: 42%; }
}

.beta { display: inline-block; margin-left: 8px; vertical-align: 1px; font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn); border-radius: 4px; padding: 1px 6px; }
.top .id .linkbtn { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
#group-settings { scroll-margin-top: 72px; }
