/* Royal College of Fucking Good Cunts (RCFCG). Navy and gold from the crest lead; warm off-white paper and a calm green support. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --navy: #0a1a38;       /* the crest's navy; also NAVY in scripts/make-crest.py */
  --navy-deep: #060f22;
  --navy-soft: #1b2f5c;
  --gold: #e9b949;       /* the crest's gold */
  --gold-soft: #f6ecd0;
  --gold-ink: #6b4e0c;
  --green: #2b5140;      /* calm green, kept as the "saved / done" colour */
  --green-soft: #e4efe2;
  --paper: #f7f3ea;
  --card: #fffdf8;
  --ink: #1b2233;
  --muted: #5a6274;
  --line: #ddd6c5;
  --danger: #98392c;
  --warn-bg: #fbeed9;
  --radius: 14px;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; margin-top: 1.4em; }
p { margin: 0 0 0.9em; }
a { color: var(--navy); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b88a1a; outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.boot { text-align: center; margin-top: 30vh; color: var(--navy); font-weight: 600; font-size: 1.4rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: 0.6em 1em; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- top bar ---------- */
.top { background: var(--navy); color: var(--paper); padding: calc(0.7rem + env(safe-area-inset-top)) max(1.1rem, env(safe-area-inset-right)) 0 max(1.1rem, env(safe-area-inset-left)); }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--paper); text-decoration: none; padding-bottom: 0.4rem; }
.brandtext { display: flex; flex-direction: column; min-width: 0; }
/* The crest file has a black surround. On navy it is shown with "lighten", so the surround takes the navy and the gold is untouched. */
.crest { display: block; height: auto; mix-blend-mode: lighten; }
.crest.small { width: 3.4rem; flex: none; }
.crest.big { width: min(21rem, 84vw); margin: 0 auto 1rem; }
@media (min-width: 48rem) and (min-height: 46rem) { .crest.big { width: 26rem; } }
@media (max-height: 40rem) { .crest.big { width: min(13rem, 60vw); } }
.welcomecard .crest:not(.big) { width: 9rem; margin: 0 auto 1rem; }
.brandmark { font-size: 1.3rem; font-weight: 600; letter-spacing: 0.01em; }
.brandsub { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.02em; }
/* The full name is the title. Where space is tight: RCFCG, with the full name small beneath. */
.brandmark .tight, .brandsub { display: none; }
@media (max-width: 40rem) { .brandmark .wide { display: none; } .brandmark .tight { display: inline; } .brandsub { display: block; } }
.nav { display: flex; gap: 0.2rem; overflow-x: auto; scrollbar-width: none; margin: 0 -0.4rem; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: #d9dfec; text-decoration: none; padding: 0.65rem 0.75rem; white-space: nowrap; border-bottom: 3px solid transparent; font-weight: 500; font-size: 1rem; }
.nav a:hover { color: #fff; }
.nav a.on { color: #fff; border-bottom-color: var(--gold); }
.rulebar { margin: 0; background: var(--gold-soft); color: var(--gold-ink); text-align: center; padding: 0.45rem 1rem; font-size: 0.95rem; font-weight: 500; }
.offline { margin: 0; background: var(--warn-bg); padding: 0.5rem 1rem; text-align: center; font-size: 0.95rem; }

/* ---------- pages ---------- */
.page { max-width: 46rem; margin: 0 auto; padding: 1.6rem max(1.1rem, env(safe-area-inset-right)) 5rem max(1.1rem, env(safe-area-inset-left)); }
.page.narrow { max-width: 34rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 0.3rem; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.pagehead h1 { margin: 0; }
.private { color: var(--muted); font-size: 0.98rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem; margin: 1.3rem 0; scroll-margin-top: 4.5rem; }
.card.empty { text-align: center; padding: 2.4rem 1.3rem; }
.row { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grid.two { display: grid; gap: 0 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } }

/* ---------- controls ---------- */
.btn { font: inherit; font-weight: 500; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); border-radius: 999px; padding: 0.6rem 1.25rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; }
.btn.small { padding: 0.35rem 0.95rem; min-height: 2.4rem; font-size: 0.97rem; }
.btn.big { padding: 0.85rem 2.2rem; font-size: 1.15rem; }
.btn.primary { background: var(--navy); color: var(--paper); }
.btn.primary:hover { background: var(--navy-soft); }
.btn.ghost { border-color: var(--line); background: var(--card); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); font-weight: 600; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: default; }
.link { font: inherit; background: none; border: 0; padding: 0.35rem 0.2rem; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 2.2rem; }
.link.danger { color: var(--danger); }
.field { margin: 0 0 1.1rem; }
label, .label { display: block; font-weight: 500; margin-bottom: 0.3rem; }
.hint { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.5rem; }
.hint.error { color: var(--danger); }
.hint.ok { color: var(--green); font-weight: 500; }
input[type="text"], input[type="email"], input[type="date"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 0.65rem 0.8rem; min-height: 2.9rem;
}
textarea { resize: none; overflow: hidden; line-height: 1.5; display: block; }
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--gold-soft); }
.check { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 400; margin: 0 1.2rem 0.6rem 0; min-height: 2.4rem; cursor: pointer; }
.check input { width: 1.35rem; height: 1.35rem; accent-color: var(--navy); }
.btn.export { white-space: nowrap; }
.rating { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0.25rem; max-width: 30rem; }
.rating button { font: inherit; font-weight: 500; min-width: 0; height: 2.6rem; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; cursor: pointer; padding: 0; }
.rating button:hover { border-color: var(--navy); }
.rating button.on { background: var(--navy); border-color: var(--navy); color: var(--gold); font-weight: 600; }

/* ---------- my update ---------- */
.statusbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; background: var(--paper); padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.pill { font-size: 0.95rem; font-weight: 500; color: var(--muted); padding-left: 1.1rem; position: relative; }
.pill::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--line); }
.pill[data-status="saved"] { color: var(--green); }
.pill[data-status="saved"]::before { background: #3f7a5c; }
.pill[data-status="unsaved"]::before, .pill[data-status="saving"]::before { background: #d8a13a; }
.pill[data-status="error"], .pill[data-status="conflict"] { color: var(--danger); }
.pill[data-status="error"]::before, .pill[data-status="conflict"]::before, .pill[data-status="offline"]::before { background: var(--danger); }
.notice { border-radius: 10px; padding: 0.8rem 1rem; margin: 0.8rem 0; }
.notice.warn { background: var(--warn-bg); border: 1px solid #e6c98f; }
.jump { display: flex; gap: 0.4rem; overflow-x: auto; padding: 0.8rem 0 0.2rem; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.chip { font: inherit; font-size: 0.9rem; white-space: nowrap; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; min-height: 2.1rem; }
.chip:hover { border-color: var(--navy); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.3rem; background: var(--gold-soft); border-radius: 12px; padding: 0.3rem; margin: 0.6rem 0 1.3rem; }
.tab { font: inherit; font-weight: 500; border: 0; background: transparent; color: var(--gold-ink); border-radius: 9px; padding: 0.6rem 0.3rem; cursor: pointer; min-height: 2.75rem; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--paper); }
.side { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 0.2rem; }
.item { border: 0; border-left: 3px solid var(--gold); margin: 0.9rem 0 1.4rem; padding: 0 0 0 1rem; min-width: 0; }
.side.worst .item { border-left-color: #cfc6ae; }
.item legend { font-weight: 600; padding: 0; margin-bottom: 0.6rem; color: var(--navy); }
.rowcard { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1rem 0.4rem; margin-bottom: 0.9rem; background: #fff; display: flow-root; }
.rowcard .remove { display: block; margin-left: auto; color: var(--muted); }
.formfoot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- past ---------- */
.pasthead { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem 1.2rem; flex-wrap: wrap; }
.pasthead h2 { margin: 0; }
.words { display: flex; gap: 1.1rem; margin: 0; color: var(--muted); flex-wrap: wrap; }
.words strong { color: var(--ink); }
.scores { margin: 0.7rem 0; }
.tag { display: inline-block; font-size: 0.86rem; font-weight: 500; border-radius: 999px; padding: 0.12rem 0.65rem; background: #efeadb; color: var(--ink); margin: 0 0.35rem 0.3rem 0; white-space: nowrap; }
.tag.yes { background: var(--green-soft); color: var(--green); }
.tag.no { background: #f1e6dc; color: #6b4a2f; }
.review h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 1rem 0 0.3rem; }
.review ul { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.review ul.commit { list-style: none; padding: 0; }
.commit li { display: flex; justify-content: space-between; gap: 0.8rem; align-items: baseline; padding: 0.3rem 0; border-bottom: 1px dashed var(--line); }
.commit li.done > span:first-child { color: var(--muted); }
.past .row { margin-top: 1rem; }
ul.plain { list-style: none; margin: 0 0 1rem; padding: 0; }
ul.plain li { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
ul.plain li.pastdate { color: var(--muted); }
.members p { margin: 0; }
.members strong + .tag, .members .tag + .tag { margin-left: 0.5rem; }

/* ---------- reading blocks (room + print) ---------- */
.q { font-size: 0.8em; font-weight: 600; color: var(--muted); margin: 0 0 0.15em; }
.q.inline { font-weight: 500; }
.a { margin: 0 0 0.9em; white-space: pre-wrap; overflow-wrap: anywhere; }
.who { margin: 0 0 0.3em; font-weight: 500; }
.itemread { margin: 0 0 1.2em; padding-left: 0.9em; border-left: 3px solid var(--gold); }
.itemread h4 { margin: 0 0 0.4em; font-size: 0.95em; }
.readrows { list-style: none; padding: 0; margin: 0; }
.readrows li { padding: 0.6em 0; border-bottom: 1px solid var(--line); }
.score strong { font-size: 1.5em; }

/* ---------- in the room ---------- */
body[data-route="room"] { background: var(--navy-deep); color: #f3efe4; }
.room { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(1rem + env(safe-area-inset-top)) max(1.2rem, env(safe-area-inset-right)) calc(0.8rem + env(safe-area-inset-bottom)) max(1.2rem, env(safe-area-inset-left)); max-width: 72rem; margin: 0 auto; }
.roomhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.room .eyebrow { color: var(--gold); }
.roomdate { margin: 0; color: #c9d1e3; }
.roomrule { color: #a7b1c9; font-size: 0.9rem; margin: 0.5rem 0 0.8rem; }
.btn.onDark { background: transparent; color: #f3efe4; border-color: #3b4f7d; }
.roombody { flex: 1; display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-content: start; }
.stage { font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.5; outline: none; }
.stage h2 { font-size: clamp(2rem, 5.5vw, 3.2rem); color: var(--gold); margin-bottom: 0.5em; letter-spacing: -0.01em; }
.stage .q { color: #a3aecb; }
.stage .muted { color: #8e99b5; }
.stage .itemread { border-left-color: #8a6d1f; }
.stage .itemread h4 { color: #f1dfa6; }
.stage .readrows li { border-bottom-color: #1e2f55; }
.stage .tag { background: #1b2f5c; color: #e3e8f4; font-size: 0.6em; }
.stage .tag.yes { background: #2b5140; color: #e4efe2; }
.stage .score strong { color: var(--gold); font-size: 2em; }
.prompts { border: 1px solid #2a3c69; border-radius: var(--radius); padding: 1rem 1.2rem; align-self: start; background: #0d2147; }
.prompts ul { list-style: none; margin: 0; padding: 0; }
.prompts li { font-size: 1.2rem; font-weight: 500; padding: 0.35rem 0; color: #f3efe4; }
@media (min-width: 900px) {
  .roombody { grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.5rem; }
  .prompts { position: sticky; top: 1.5rem; }
  .prompts li { font-size: 1.35rem; padding: 0.55rem 0; }
}
.roomfoot { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding-top: 1rem; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--navy-deep) 30%); }
.roomnav { background: transparent; color: #f3efe4; border-color: #3b4f7d; min-width: 6.5rem; min-height: 3.2rem; font-size: 1.1rem; }
.roomnav.primary { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); font-weight: 600; }
.mid { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; min-width: 0; }
.count { color: #a7b1c9; font-size: 0.9rem; }
.dots { display: none; gap: 0.35rem; }
@media (min-width: 640px) { .dots { display: flex; } }
.dots button { width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 0; padding: 0; background: #2a3c69; cursor: pointer; }
.dots button.on { background: var(--gold); }

/* ---------- welcome ---------- */
.welcome { min-height: 100dvh; display: grid; place-items: center; background: var(--navy); padding: 1.5rem; }
.welcomecard { max-width: 30rem; text-align: center; color: var(--paper); }
.welcomecard h1 { font-size: clamp(1.6rem, 6.4vw, 2.2rem); line-height: 1.2; margin-bottom: 0.35em; text-wrap: balance; }
.lead { font-size: 1.15rem; color: #e4e8f2; margin-bottom: 1.8rem; }
.fine { color: #aab3c9; font-size: 0.95rem; margin: 1.4rem 0 0.4rem; }
.rule { color: var(--gold); font-weight: 500; font-size: 0.95rem; }
.welcomecard .notice { color: var(--ink); text-align: left; }

/* ---------- dialog ---------- */
.dialog { border: 0; border-radius: var(--radius); padding: 1.5rem; max-width: 26rem; width: calc(100% - 2rem); color: var(--ink); background: var(--card); font-family: var(--font); }
.dialog::backdrop { background: rgba(6, 15, 34, 0.6); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------- welcome extras ---------- */
.welcomecard .btn.big { width: min(100%, 20rem); }
.link.onNavy { color: #d9dfec; display: block; margin: 0.6rem auto 0; }
.fine.tight { margin: 0.6rem 0 0; }

/* ---------- the paper form ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.card > h2 { color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 0.35rem; }
.card .sub { font-weight: 600; font-size: 0.92rem; margin: -0.2rem 0 0.9rem; }
.form label, .form .label { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }
.form #sec-top label[for], .form .card > .field > label { letter-spacing: 0.02em; }
.lastmeet { font-size: 0.92rem; color: var(--muted); margin: -0.6rem 0 1rem; overflow-wrap: anywhere; }
.lastmeet strong { color: var(--ink); font-weight: 500; white-space: pre-wrap; }
.rowhead, .bwhead { display: none; }
.period { font-weight: 600; font-size: 0.85rem; margin: 0 0 0.5rem; color: var(--navy); }
.bwrow { border-left: 3px solid var(--gold); padding-left: 0.9rem; margin: 0.8rem 0 1.2rem; }
.side.worst .bwrow { border-left-color: #cfc6ae; }
.side h3 { color: var(--navy); letter-spacing: 0.04em; font-size: 0.95rem; }
.cell { min-width: 0; }
.fromvoice { border-color: var(--gold) !important; background: #fffaf0 !important; box-shadow: inset 3px 0 0 var(--gold); }
.notice.voice { background: var(--gold-soft); border: 1px solid #e3cf95; display: flex; gap: 0.8rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.notice.voice p { margin: 0; flex: 1 1 16rem; }
@media (min-width: 760px) {
  .page.form { max-width: 64rem; }
  /* Row tables look like the paper: one line of column names, then the rows. */
  .rowhead { display: grid; gap: 0.6rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; padding: 0 0.7rem 0.3rem; }
  .rowcard { display: grid; gap: 0.6rem; align-items: start; padding: 0.5rem 0.7rem; margin-bottom: 0.4rem; border-radius: 10px; }
  .rowhead.c-member.c-text.c-rating, .rowcard.c-member.c-text.c-rating { grid-template-columns: 11rem minmax(0, 1fr) 19rem 4.2rem; }
  .rowhead.c-text.c-bool, .rowcard.c-text.c-bool { grid-template-columns: minmax(0, 1fr) 4.5rem 4.5rem 4.2rem; }
  .rowhead.c-member.c-text.c-bool, .rowcard.c-member.c-text.c-bool { grid-template-columns: 11rem minmax(0, 1fr) 4.5rem 4.2rem; }
  .rowhead.c-text:not(.c-bool):not(.c-member), .rowcard.c-text:not(.c-bool):not(.c-member) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 4.2rem; }
  .rowcard .field { margin: 0; }
  .rowcard .field > label, .rowcard .field > .label, .rowcard .check span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rowcard .check { margin: 0; min-height: 2.9rem; justify-content: center; width: 100%; }
  .rowcard .remove { margin: 0; align-self: center; font-size: 0.85rem; }
  .rowcard .rating button { height: 2.9rem; border-radius: 8px; }
}
@media (min-width: 900px) {
  /* Best and Worst as on the paper: Business, Personal and Family all on the page, four columns across. */
  .tabs { display: none; }
  .panels .panel[hidden] { display: block !important; }
  .panel { border-top: 2px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
  .panel:first-child { border-top: 0; margin-top: 0; }
  .bwhead, .bwrow { display: grid; grid-template-columns: 4.6rem repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
  .bwhead { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; padding-left: calc(0.9rem + 3px); }
  .bwrow { margin: 0.4rem 0 0.7rem; }
  .bwrow .field { margin: 0; }
  .bwrow .label { display: none; }
  .ratingrow { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .ratingrow .label { margin: 0; }
  .ratingrow .rating { flex: 1 1 24rem; }
}

/* ---------- next forum and the date vote ---------- */
.bigdate { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 600; margin: 0; color: var(--navy); }
.when { font-size: 1.1rem; margin: 0.1rem 0 0.9rem; }
.option { border: 1.5px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; margin: 0.8rem 0; background: #fff; }
.option.best { border-color: var(--gold); box-shadow: inset 4px 0 0 var(--gold); }
.optionhead { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.optiondate { margin: 0 0 0.6rem; font-size: 1.08rem; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; max-width: 26rem; }
.choice { font: inherit; font-weight: 500; min-height: 2.9rem; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; cursor: pointer; }
.choice:hover { border-color: var(--navy); }
.choice.on { color: #fff; font-weight: 600; }
.choice.yes.on { background: var(--green); border-color: var(--green); }
.choice.maybe.on { background: #9a7417; border-color: #9a7417; }
.choice.no.on { background: var(--danger); border-color: var(--danger); }
.tally { margin: 0.6rem 0 0.1rem; font-weight: 500; }
.whovoted { margin: 0; color: var(--muted); font-size: 0.92rem; }
.whovoted strong { color: var(--ink); font-weight: 500; }
.row.spaced { justify-content: space-between; margin: 0.4rem 0 0.6rem; }
.check.block { display: flex; margin-right: 0; }
select { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 0.5rem 0.7rem; min-height: 2.6rem; max-width: 100%; }
input[type="time"] { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 0.65rem 0.8rem; min-height: 2.9rem; }

/* ---------- voice: talk it through ---------- */
.page.voice { max-width: 44rem; }
.voicecard { background: var(--navy); color: var(--paper); border-radius: var(--radius); padding: 1.4rem 1.25rem 1.5rem; text-align: center; margin-bottom: 1rem; }
.eyebrow.onNavy { color: #aab3c9; }
.eyes { color: var(--gold); font-weight: 600; font-size: clamp(1.5rem, 6vw, 2.1rem); line-height: 1.2; margin: 0.4rem 0 1rem; }
.voicestate { color: #d9dfec; font-size: 1.15rem; margin: 0 0 0.6rem; min-height: 1.6em; }
.voicereply { font-size: clamp(1.35rem, 5vw, 1.8rem); line-height: 1.35; font-weight: 500; margin: 0 0 0.8rem; min-height: 2.7em; }
.voicesaid { color: #aab3c9; font-size: 1rem; margin: 0 0 0.8rem; overflow-wrap: anywhere; }
.voicebtns { display: flex; justify-content: center; margin: 0.6rem 0 1rem; }
.voicebtn { font: inherit; font-weight: 600; font-size: clamp(1.8rem, 8vw, 2.4rem); width: min(100%, 22rem); min-height: 7.5rem; border-radius: 1.4rem; border: 0; cursor: pointer; }
.voicebtn.start { background: var(--gold); color: var(--navy-deep); }
.voicebtn.stop { background: #b3261e; color: #fff; }
.voicebtn:disabled { opacity: 0.45; cursor: not-allowed; }
.voicebtn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.voicecount { color: var(--gold); margin: 0 0 0.8rem; }
.voicecard .notice { color: var(--ink); text-align: left; }
.voicetype { display: flex; gap: 0.5rem; margin: 0.6rem 0 0.9rem; }
.voicetype input { flex: 1; min-width: 0; font: inherit; padding: 0.7rem 0.9rem; border-radius: 999px; border: 1.5px solid #46557a; background: #13254b; color: var(--paper); }
.voicetype input::placeholder { color: #aab3c9; }
.voicefine { color: #aab3c9; font-size: 0.92rem; margin: 0.5rem 0 0; text-align: left; }
#voice-admin input[type="number"] { width: 6rem; }

/* ---------- talk it through with your own AI ---------- */
.ownai > summary { cursor: pointer; list-style-position: outside; margin-left: 1.1rem; }
.ownai > summary h2 { display: inline; border: 0; padding: 0; margin: 0; }
.ownai[open] > summary { margin-bottom: 0.8rem; }
.aisteps { margin: 0.4rem 0 1rem; padding-left: 1.3rem; }
.aisteps li { margin: 0.25rem 0; }
.aigo { align-items: center; }
.aigo .btn.big { flex: 1 1 14rem; min-height: 3.6rem; }
.aisee { margin: 0.6rem 0 1rem; }
.aisee summary { cursor: pointer; color: var(--muted); }
.aiprompt { width: 100%; font-size: 0.85rem; line-height: 1.4; background: var(--paper); }
#ai-summary { width: 100%; }
.aipreview { border: 1.5px solid var(--gold); border-radius: var(--radius); padding: 1rem; margin-top: 0.8rem; background: #fffaf0; }
.aipreview h4 { margin: 0 0 0.3rem; font-size: 1.05rem; }
ul.ailist li { display: grid; border-bottom: 0; justify-items: start; text-align: left; grid-template-columns: minmax(8rem, 14rem) 1fr auto; gap: 0.3rem 0.8rem; align-items: start; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.ailist li[data-action="same"] .aiwhat, .ailist li[data-action="keep"] .aiwhat, .ailist li[data-action="full"] .aiwhat { color: var(--muted); }
.aiwhere { font-weight: 600; font-size: 0.9rem; }
.aiwhat { white-space: pre-wrap; overflow-wrap: anywhere; }
.ailist .tag { justify-self: end; }
.tag.muted { background: var(--line); color: var(--muted); }
.aialt { margin-top: 1rem; }
@media (max-width: 40rem) { ul.ailist li { grid-template-columns: 1fr; gap: 0.15rem; } .ailist .tag { justify-self: start; } }
