/*
  „Протокол“ – visual language of the Student Council voting app.

  Restraint rules (keep them when adding UI):
  1. One accent colour: --purple. It marks the chosen option, the primary action, the winning bar and a passed decision. Nothing decorative.
  2. Separation comes from 1px rules (--rule) and a 1px ink rule above lists. No shadows, no gradients, no pills, no emoji.
  3. Serif (--serif) only for questions, decisions and big numbers. Everything else is --sans; codes and timers are --mono.
  4. Colour is never the only signal: For / Against / Abstain carry a tick / cross / dash, winners carry a tick and a word, states carry text.
  5. Sentence case everywhere; no letter-spaced uppercase labels.
  6. Tap targets ≥ 48px on the phone; projector text ≥ 24px at 1600×900 (scales with the viewport).

  Fonts: Literata, Golos Text, IBM Plex Mono (SIL OFL, see *-OFL.txt). With lang="bg" none of these subsets switch to the
  Bulgarian (locl) letterforms, so the institutional Russian-style forms are used on purpose; "locl" is also disabled explicitly.
*/

@font-face { font-family: "Literata"; font-weight: 200 900; font-display: swap; src: url(/assets/literata-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-weight: 200 900; font-display: swap; src: url(/assets/literata-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap; src: url(/assets/golos-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap; src: url(/assets/golos-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url(/assets/plexmono-latin.woff2) format("woff2"); }

:root {
  --paper: #F5F2EA;
  --paper-2: #ECE7DB;
  --card: #FFFDF8;
  --ink: #1C1923;
  --ink-2: #575260;
  --rule: #D6CFBF;
  --track: #E3DDD0;
  --bar: #6E6878;
  --purple: #300162;
  --purple-2: #4A1A85;
  --purple-tint: #ECE5F2;
  --focus: var(--purple-2);
  --green: #1D6B3A;
  --red: #A1281E;
  --amber: #8A5A00;

  --serif: "Literata", Georgia, serif;
  --sans: "Golos Text", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s12: 48px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.45 var(--sans); -webkit-font-smoothing: antialiased;
  font-feature-settings: "locl" 0; font-variant-numeric: lining-nums;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; }
.muted { color: var(--ink-2); }
kbd { font: 500 .85em var(--mono); border: 1px solid var(--rule); border-radius: 3px; padding: 0 5px; background: var(--card); }
svg.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 56px; padding: 0 var(--s5); border: 0; border-radius: 6px;
  font-weight: 600; font-size: 17px; line-height: 1.1; text-decoration: none; white-space: nowrap;
}
.btn:disabled { cursor: not-allowed; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--purple-2); }
.btn-primary:disabled { background: #CFC7DA; color: #5E566B; }
.btn-line { background: var(--card); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-line:hover:not(:disabled) { background: var(--paper-2); }
.btn-line:disabled { border-color: var(--rule); color: var(--ink-2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); min-height: 48px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.btn-quiet:hover:not(:disabled) { text-decoration-color: var(--ink); }
.btn-quiet.is-danger { color: var(--red); }
.btn-small { min-height: 36px; padding: 0 var(--s3); font-size: 14px; border-radius: var(--radius); }
.btn-on-dark { background: transparent; color: #fff; border: 1.5px solid #fff; min-height: 36px; padding: 0 var(--s4); font-size: 14px; border-radius: var(--radius); }
.btn-on-dark:hover { background: #ffffff1f; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; min-height: 48px; }
.link-btn:hover { text-decoration-color: var(--ink); }

.form { display: grid; gap: 0; }
.field-label { display: block; font-weight: 600; font-size: 17px; margin-top: var(--s5); }
.field-label:first-child { margin-top: 0; }
.field-label .opt { font-weight: 400; color: var(--ink-2); }
.field-hint { color: var(--ink-2); font-size: 15px; margin: 2px 0 var(--s2); }
.field-label + input, .field-label + select, .field-label + textarea { margin-top: var(--s2); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=date], input[type=time], input:not([type]), select, textarea {
  width: 100%; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card);
  padding: 0 var(--s3); min-height: 52px; font-size: 18px;
}
textarea { padding: var(--s3); min-height: 0; resize: vertical; line-height: 1.4; }
select, input.combo { appearance: none; padding-right: 40px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C1923' stroke-width='2.25'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
input:focus-visible, select:focus-visible, textarea:focus-visible, select.is-open { outline: 3px solid var(--focus); outline-offset: 0; }
.dd-list { position: fixed; z-index: 30; width: max-content; overflow-y: auto; overscroll-behavior: contain; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius); padding: 4px 0; line-height: 1.3; }
.dd-option { display: flex; gap: 10px; align-items: flex-start; padding: 9px 16px 9px 12px; cursor: pointer; }
.dd-option svg { width: 18px; height: 18px; margin-top: 1px; color: var(--purple); visibility: hidden; }
.dd-list:not(.dd-combo) .dd-option[aria-selected=true] { font-weight: 600; }
.dd-option[aria-selected=true] svg { visibility: visible; }
.dd-list:focus, .dd-option:focus { outline: none; }
.dd-option:focus, .dd-option.is-active { background: var(--paper-2); }
.dd-name, .dd-note { display: block; }
.dd-name b { font-weight: 700; }
.dd-note { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.dd-empty { padding: 9px 16px; color: var(--ink-2); }
.dd-option[aria-disabled=true] { color: var(--ink-2); cursor: not-allowed; }
.dd-group { padding: 10px 16px 4px 40px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.dd-list > * + [role=group] { border-top: 1px solid var(--rule); margin-top: 4px; }
.code-input { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 22px; }
.form .btn-primary { margin-top: var(--s5); width: 100%; }
.form-note { color: var(--ink-2); font-size: 15px; margin-top: var(--s3); }
.field-error { display: flex; gap: var(--s2); align-items: flex-start; margin-top: var(--s2); color: var(--red); font-size: 15px; font-weight: 500; line-height: 1.4; }
.field-error svg { width: 18px; height: 18px; margin-top: 1px; }
input[aria-invalid=true] { border-color: var(--red); }
fieldset { border: 0; padding: 0; margin: var(--s5) 0 0; min-width: 0; }
legend { padding: 0; font-weight: 600; font-size: 17px; margin-bottom: var(--s2); }
.choice { display: flex; align-items: center; gap: var(--s3); min-height: 40px; font-size: 16px; cursor: pointer; }
.choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--purple); flex: none; }

/* ---------- Shared pieces ---------- */
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--ink-2); }
.kicker .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.live { color: var(--purple-2); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live::before, .pulse { animation: none !important; } }
.q { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.18; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; }
.q-small { font-size: 23px; }

.notice { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--ink-2); border-radius: 3px; font-size: 15px; line-height: 1.45; }
.notice svg { width: 22px; height: 22px; margin-top: 1px; }
.notice strong { display: block; font-weight: 600; font-size: 16px; }
.notice p + p, .notice strong + p { margin-top: 2px; }
.notice.is-good { border-left-color: var(--green); }
.notice.is-good svg { color: var(--green); }
.notice.is-warn { border-left-color: var(--amber); }
.notice.is-warn svg { color: var(--amber); }
.notice.is-bad { border-left-color: var(--red); }
.notice.is-bad svg { color: var(--red); }
#import-warnings .notice + .notice { margin-top: var(--s2); }

.round-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.round-mark svg { width: 22px; height: 22px; stroke-width: 3; }
.round-mark.tone-good { background: var(--green); }

.ticket {
  font-family: var(--mono); font-weight: 500; font-size: 56px; letter-spacing: .16em; line-height: 1; text-align: center;
  padding: var(--s6) var(--s4) var(--s6) calc(var(--s4) + .16em); margin: var(--s5) 0; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink);
}
.ticket-code { font-size: 34px; letter-spacing: .08em; padding-left: calc(var(--s4) + .08em); }

/* option marks: tick / cross / dash / number */
.opt-mark { width: 1.5em; height: 1.5em; flex: none; display: inline-grid; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: .8em; color: var(--ink-2); }
.opt-mark svg { width: 1em; height: 1em; stroke-width: 2.75; }
.opt-n { font-family: var(--serif); font-weight: 600; border-color: var(--rule); color: var(--ink-2); font-variant-numeric: lining-nums; }

/* decision */
.decision { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px var(--s3); padding: var(--s4) var(--s4); border-radius: var(--radius); background: var(--ink); color: #fff; }
.decision-mark { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; }
.decision-mark svg { width: 22px; height: 22px; stroke-width: 3; }
.decision-text { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
.decision-detail { font-size: 14px; color: #E2DCEB; }
.decision-due { grid-column: 2; font-size: 14px; font-weight: 500; }
.decision.tone-good { background: var(--purple); }
.decision.tone-good .decision-mark { color: var(--purple); }
.decision.tone-warn { background: var(--amber); }
.decision.tone-warn .decision-mark { color: var(--amber); }
.decision.tone-warn .decision-detail { color: #FBEFD9; }

/* tally */
.tally { --k: 1; position: relative; }
.tally-need { position: relative; height: 22px; margin-bottom: 2px; }
.tally-need-label {
  position: absolute; left: clamp(0px, var(--at), 100%); bottom: 2px; transform: translateX(-50%); white-space: nowrap;
  font-size: 13px; font-weight: 600; background: var(--paper); padding: 0 6px; line-height: 18px;
}
.tally-need-label.at-end { transform: translateX(calc(-100% + .5em)); }
.tally-need-label.at-start { transform: translateX(-.5em); }
.tally-row + .tally-row { margin-top: 12px; }
.tally-head { display: flex; align-items: center; gap: var(--s2); font-size: 16px; }
.tally-head .opt-mark { font-size: 14px; }
.tally-name { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.tally-won { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; color: var(--purple-2); white-space: nowrap; }
.tally-won svg { stroke-width: 3; }
.tally-tag { font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tally-count { margin-left: auto; font-weight: 700; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.tally-count small { font-weight: 400; font-size: 14px; color: var(--ink-2); margin-left: var(--s2); display: inline-block; min-width: 2.6em; text-align: right; }
.tally-track { position: relative; height: 10px; background: var(--track); margin-top: 6px; }
.tally-track i { position: absolute; inset: 0 auto 0 0; background: var(--bar); }
.tally-row.is-winner .tally-track i { background: var(--purple); }
.tally-row.is-winner .tally-name { font-weight: 700; }
.tally-row.opt-abstain .tally-track i { background: repeating-linear-gradient(135deg, var(--bar) 0 2px, transparent 2px 5px); }
.tally-row.opt-abstain .tally-name { color: var(--ink-2); }
.tally-line { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }
.voters { font-size: 14px; border-top: 1px solid var(--rule); padding-top: var(--s2); }
.voters summary { cursor: pointer; font-weight: 500; min-height: 48px; display: flex; align-items: center; gap: var(--s2); }
.voters summary::before { content: "▸" / ""; width: 1em; color: var(--ink-2); }
.voters[open] summary::before { content: "▾" / ""; }
.voters dl { display: grid; gap: var(--s2); padding-bottom: var(--s2); }
.voters dt { font-weight: 600; }
.voters dd { color: var(--ink-2); line-height: 1.5; }

/* quorum (shared markup, styled per surface) */
.quorum { display: flex; align-items: center; gap: var(--s4); }
.quorum-fig { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink-2); }
.quorum-fig b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.quorum-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.quorum.is-ok .quorum-state { color: var(--green); }
.quorum.is-no .quorum-state { color: var(--red); }
.quorum-state svg { stroke-width: 2.75; }
.quorum-split { color: var(--ink-2); white-space: nowrap; }
.quorum-split::before { content: "("; }
.quorum-split::after { content: ")"; }
.quorum-split span + span::before { content: ", "; }
@media (max-width: 520px) { .a-strip .quorum-split { display: none; } }

#toast { position: fixed; left: 50%; bottom: calc(var(--s5) + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: var(--s2); z-index: 50; width: min(92vw, 420px); }
.toast { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); background: var(--ink); color: #fff; border-radius: var(--radius); font-size: 15px; border-left: 4px solid var(--red); }
.toast svg { width: 20px; height: 20px; margin-top: 1px; }
.toast-good { border-left-color: #7FD19E; }

/* ---------- Phone (member) ---------- */
.member #app { min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.m-head { display: flex; align-items: center; gap: 10px; padding: 10px var(--s5) 10px; border-bottom: 1px solid var(--rule); padding-top: max(10px, env(safe-area-inset-top)); }
.m-head .brand-logo { width: 34px; height: 34px; flex: none; }
.m-who { min-width: 0; line-height: 1.25; font-size: 14px; }
.m-who b { display: block; font-weight: 600; font-size: 15px; }
.m-who span { display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-logout { margin-left: auto; font-size: 15px; padding: 0 2px; flex: none; }
.m-offline { display: flex; gap: var(--s2); align-items: center; padding: var(--s2) var(--s5); background: var(--ink); color: #fff; font-size: 14px; }
.m-quorum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s3); padding: 10px var(--s5); background: var(--paper-2); border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.m-quorum > span { white-space: nowrap; }
.m-quorum b { color: var(--ink); font-weight: 600; }
.m-quorum-state { margin-left: auto; display: inline-flex; gap: 5px; align-items: center; font-weight: 600; align-self: center; }
.m-quorum.is-ok .m-quorum-state { color: var(--green); }
.m-quorum.is-no .m-quorum-state { color: var(--red); }
.m-quorum-state svg { stroke-width: 2.75; }
.m-page { flex: 1; display: flex; flex-direction: column; gap: var(--s6); padding: var(--s6) var(--s5) 0; }
.m-page > :last-child:not(.m-poll) { margin-bottom: var(--s8); }
.m-idle { color: var(--ink-2); font-size: 16px; padding: var(--s6) var(--s5); }
.m-page .m-idle { padding: 0; border-bottom: 1px solid var(--rule); padding-bottom: var(--s6); }

.m-poll { flex: 1; display: flex; flex-direction: column; }
.m-poll > .q { margin: var(--s2) 0 var(--s3); }
.m-poll > .subject { font-size: 18px; margin: -4px 0 var(--s3); overflow-wrap: anywhere; }
.subject b { font-weight: 600; }
.slip-subject { display: block; color: var(--ink); font-size: 15px; margin-top: 2px; }
.desc { font-size: 16px; margin-bottom: var(--s2); }
.rule-need { font-size: 16px; font-weight: 500; }
.rule-note { font-size: 14px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }

.ballot { margin: var(--s5) 0 0; }
.ballot legend { font-size: 16px; margin-bottom: var(--s3); }
.ballot-list { margin: 0 calc(-1 * var(--s5)); border-top: 1px solid var(--ink); }
.ballot-row { display: grid; grid-template-columns: 28px 1fr 32px; align-items: center; gap: var(--s3); min-height: 64px; padding: var(--s2) var(--s5); border-bottom: 1px solid var(--rule); cursor: pointer; position: relative; }
.ballot-row.no-n { grid-template-columns: 1fr 32px; }
.ballot-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ballot-n { font-family: var(--serif); color: var(--ink-2); font-size: 17px; }
.ballot-name { font-size: 19px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.box { width: 32px; height: 32px; border: 2px solid var(--ink); border-radius: 3px; display: grid; place-items: center; background: var(--card); flex: none; }
.box svg { width: 22px; height: 22px; stroke-width: 3; opacity: 0; }
.ballot-row .box { border-radius: 50%; }
.ballot-row .box svg { display: none; }
.ballot-row .box::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--purple); transform: scale(0); transition: transform .12s; }
.ballot-row:hover { background: #EFEBE1; }
.ballot-row.is-on, .ballot-row:has(input:checked) { background: var(--purple-tint); box-shadow: inset 4px 0 0 var(--purple); }
.ballot-row.is-on .ballot-name, .ballot-row:has(input:checked) .ballot-name { font-weight: 600; }
.ballot-row.is-on .box, .ballot-row:has(input:checked) .box, .box.is-on { background: var(--purple); border-color: var(--purple); color: #fff; }
.ballot-row.is-on .box svg, .ballot-row:has(input:checked) .box svg, .box.is-on svg { opacity: 1; }
.ballot-row.is-on .box, .ballot-row:has(input:checked) .box { background: var(--card); border: 3px solid var(--purple); }
.ballot-row.is-on .box::after, .ballot-row:has(input:checked) .box::after { transform: scale(1); }
.ballot-row:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }
.ballot-row.is-multi .box { border-radius: 3px; }
.ballot-row.is-multi .box svg { display: block; }
.ballot-row.is-multi .box::after { content: none; }
.ballot-row.is-multi.is-on .box, .ballot-row.is-multi:has(input:checked) .box { background: var(--purple); border: 2px solid var(--purple); }
.ballot-or { padding: var(--s3) var(--s5) var(--s2); font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--ink); }

.actionbar {
  position: sticky; bottom: 0; margin: auto calc(-1 * var(--s5)) 0; padding: var(--s3) var(--s5) calc(var(--s4) + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--rule); display: grid; gap: var(--s2); z-index: 5;
}
.m-poll > .ballot, .m-poll > .slip, .m-poll > .slip-note { margin-bottom: var(--s6); }
.m-poll > .slip-note { margin-top: 0; }
.actionbar.is-idle { position: static; }
.actionbar .btn { width: 100%; }
.actionbar .picked { font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actionbar-ask { font-size: 16px; line-height: 1.4; }
.actionbar-ask b { font-weight: 600; }
.actionbar .picked b { color: var(--ink); font-weight: 600; }
.actionbar .meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.actionbar .meta b { color: var(--ink); font-weight: 600; }
.auth .actionbar { margin: var(--s6) calc(-1 * var(--s6)) 0; padding-left: var(--s6); padding-right: var(--s6); }

.slip { margin-top: var(--s5); background: var(--card); border: 1px solid var(--rule); border-top: 1px solid var(--ink); border-radius: 0 0 var(--radius) var(--radius); }
.slip-head { padding: var(--s4) var(--s4) var(--s3); border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.slip-head b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; margin-top: 2px; }
.slip-body { padding: var(--s3) var(--s4) var(--s5); }
.slip-label { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-2); }
.slip-label .link-btn { font-size: 15px; }
.slip-choice { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s1); }
.slip-choice .box { width: 44px; height: 44px; }
.slip-choice .box svg { width: 28px; height: 28px; }
.slip-choice strong { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.15; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.slip-choice + .slip-choice { margin-top: var(--s3); }
.slip-choices.is-many .slip-choice .box { width: 36px; height: 36px; }
.slip-choices.is-many .slip-choice .box svg { width: 24px; height: 24px; }
.slip-choices.is-many .slip-choice strong { font-size: 22px; }
.slip-note { margin-top: var(--s4); }
.warn-line { display: flex; gap: 10px; margin-top: var(--s2); font-size: 15px; line-height: 1.45; }
.warn-line svg { margin-top: 2px; width: 18px; height: 18px; color: var(--ink); }
.warn-line b { font-weight: 600; }
.warn-line + .slip { margin-top: var(--s4); }

.alarm { padding: var(--s4); background: var(--card); border: 1px solid var(--red); border-top-width: 3px; border-radius: 3px; display: grid; gap: var(--s2); font-size: 15px; line-height: 1.45; }
.alarm.is-warn { border-color: var(--amber); }
.alarm-head { display: flex; gap: var(--s2); align-items: flex-start; font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--red); }
.alarm.is-warn .alarm-head { color: var(--amber); }
.alarm-head svg { width: 22px; height: 22px; stroke-width: 2.75; flex: none; }
.alarm-poll { font-weight: 600; overflow-wrap: anywhere; }
.alarm .receipt-claim { margin-top: 0; }
.alarm-dismiss { justify-self: start; font-size: 15px; color: var(--ink-2); }

.verdict { display: grid; grid-template-columns: 40px 1fr; gap: var(--s3); padding: var(--s4) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); margin-top: var(--s4); align-items: start; }
.verdict-text { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.2; }
.verdict-why { font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.verdict-why b { color: var(--ink); }

.receipt { margin-top: var(--s4); padding: var(--s3) var(--s4); background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--ink-2); border-radius: 3px; font-size: 15px; line-height: 1.45; display: grid; gap: 4px; }
.receipt.is-good { border-left-color: var(--green); }
.receipt.is-bad { border-left-color: var(--red); }
.receipt-state { display: flex; gap: var(--s2); align-items: center; font-weight: 600; }
.receipt.is-good .receipt-state { color: var(--green); }
.receipt.is-bad .receipt-state { color: var(--red); }
.receipt-state svg { stroke-width: 2.75; }
.receipt-code { font-size: 17px; letter-spacing: .06em; }
.receipt-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s3); }
.receipt-choice .link-btn { margin-left: auto; font-size: 15px; }
.receipt.is-warn { border-left-color: var(--amber); }
.receipt.is-warn .receipt-state { color: var(--amber); }
.receipt-claim { margin-top: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--rule); display: grid; gap: var(--s2); }
.receipt-claim dl { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3); align-items: baseline; }
.receipt-claim dt { color: var(--ink-2); }
.receipt-claim dd { margin: 0; overflow-wrap: break-word; }
@media (max-width: 380px) {
  .receipt-claim dl { grid-template-columns: 1fr; }
  .receipt-claim dd + dt { margin-top: var(--s2); }
}
.alarm-more > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; gap: var(--s2); font-weight: 600; }
.alarm-more > summary::before { content: "▸" / ""; width: 1em; color: var(--ink-2); }
.alarm-more[open] > summary::before { content: "▾" / ""; }
.receipt-claim dd.mono { font-size: 17px; letter-spacing: .06em; }
.receipt-claim .link-btn { margin-left: auto; }
.my-votes .receipt-claim { grid-column: 1 / -1; }
.my-votes .my-votes-sig { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }

.my-votes { border-top: 1px solid var(--rule); padding-top: var(--s5); }
.my-votes h2 { font-size: 16px; font-weight: 600; margin-bottom: var(--s2); }
.my-votes ul { border-top: 1px solid var(--ink); }
.my-votes li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.my-votes-title { grid-column: 1 / -1; overflow-wrap: anywhere; }
.my-votes .mono { color: var(--ink-2); font-size: 15px; }
.my-votes-state { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.my-votes-state svg { stroke-width: 2.75; }
.my-votes .is-ok .my-votes-state { color: var(--green); }
.my-votes .is-bad .my-votes-state { color: var(--red); }
.my-votes .is-lost .my-votes-state { color: var(--amber); }
.my-votes .is-cancelled .my-votes-state { grid-column: 1 / -1; align-items: flex-start; font-weight: 500; overflow-wrap: anywhere; }
.my-votes .is-cancelled .my-votes-state svg { flex: none; margin-top: 2px; }

.m-result { border-top: 1px solid var(--rule); padding-top: var(--s5); display: grid; gap: var(--s4); }
.m-page > .m-result:first-child, .m-idle + .m-result { border-top: 0; padding-top: 0; }
.m-result .q { margin-top: -4px; }
.m-result .tally { margin-top: var(--s2); }
.summary { font-size: 14px; color: var(--ink-2); }

.rollcall { padding: var(--s5); background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius); display: grid; gap: var(--s3); }
.rollcall .q { font-size: 24px; }
.btn-tall { min-height: 64px; font-size: 20px; }
.suspended { border-left: 3px solid var(--red); padding: var(--s1) 0 var(--s1) var(--s4); display: grid; gap: var(--s2); }
.m-leave { border-top: 1px solid var(--rule); padding-top: var(--s3); font-size: 14px; color: var(--ink-2); }
.m-leave .link-btn { color: var(--ink-2); font-size: 15px; }
.suspended .q { color: var(--red); font-size: 26px; }

/* auth */
.auth { padding: max(var(--s8), env(safe-area-inset-top)) var(--s6) var(--s8); max-width: 480px; margin: 0 auto; width: 100%; }
.auth-top .brand-logo { width: 88px; height: 88px; display: block; margin-bottom: var(--s4); }
.auth-org { font-size: 15px; color: var(--ink-2); line-height: 1.35; }
.auth-title { font-weight: 700; font-size: 30px; line-height: 1.15; letter-spacing: -0.015em; margin-top: var(--s2); text-wrap: balance; }
.auth-sub { color: var(--ink-2); font-size: 16px; margin-top: var(--s1); }
.tabs-u { display: flex; gap: var(--s6); margin: var(--s6) 0 var(--s5); border-bottom: 1px solid var(--rule); }
.tabs-u button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 0; min-height: 48px; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.tabs-u button.on { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.tabs-u + .notice { margin-bottom: var(--s5); }
.next-steps { margin-top: var(--s8); padding-top: var(--s4); border-top: 1px solid var(--rule); }
.next-steps h2 { font-size: 15px; font-weight: 600; margin-bottom: var(--s2); }
.next-steps ol { counter-reset: s; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 22px 1fr; font-size: 15px; color: var(--ink-2); padding: 3px 0; }
.next-steps li::before { content: counter(s) "."; font-family: var(--serif); color: var(--ink); }
.lead { font-size: 17px; margin-top: var(--s3); }
.how { border-top: 1px solid var(--rule); }
.how li { padding: var(--s2) 0; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.how b { color: var(--ink); font-weight: 600; }
.waiting { display: flex; align-items: center; gap: 10px; margin: var(--s5) 0 var(--s2); font-weight: 500; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--purple-2); animation: breathe 1.4s ease-in-out infinite; }
.auth > .btn-quiet { padding: 0; }
.approved { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s2); }
.approved .auth-title { margin: 0; font-size: 28px; }
.body-note { font-size: 15px; color: var(--ink-2); margin-top: var(--s2); }
.body-note b { color: var(--ink); }

/* On short screens the sticky bar would cover the ballot or the code note. */
@media (max-height: 700px) {
  .actionbar { position: static; }
  .auth { padding-top: max(var(--s5), env(safe-area-inset-top)); }
  .auth-top .brand-logo { width: 56px; height: 56px; margin-bottom: var(--s3); }
}

/* ---------- Projector ---------- */
html.screen { font-size: min(1vw, 1.7778vh); }
body.screen {
  --paper: #FAF9F6; --paper-2: #EFEBE3; --ink-2: #3E3A45; --rule: #C9C2B4; --track: #D9D3C6; --bar: #5B5566;
  font-size: 1.5rem; height: 100vh; overflow: hidden; background: var(--paper);
}
.stage { height: 100vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 0 4rem; position: relative; }
.s-connecting { margin: auto; font-size: 2rem; color: var(--ink-2); }
.s-head { display: flex; align-items: center; gap: 1.25rem; padding: 1.75rem 0 1.5rem; border-bottom: 2px solid var(--ink); min-width: 0; }
.s-head .brand-logo { width: 4.5rem; height: 4.5rem; flex: none; }
.s-org { min-width: 0; line-height: 1.3; }
.s-org b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 1.625rem; text-wrap: balance; }
.s-org span { color: var(--ink-2); font-size: 1.5rem; }
.screen .quorum { margin-left: auto; gap: 2rem; flex: none; font-size: 1.5rem; }
.screen .quorum-fig { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; column-gap: .4rem; row-gap: .3rem; }
.screen .quorum-k { grid-column: 1 / -1; }
.screen .quorum-fig b { font-family: var(--serif); font-size: 2.75rem; line-height: 1; font-weight: 600; }
.screen .quorum-of { font-size: 1.5rem; }
.screen .quorum-split { grid-column: 3; grid-row: 1 / span 2; align-self: end; display: grid; margin-left: .5rem; padding-left: .8rem; border-left: 1px solid var(--rule); font-size: 1.5rem; line-height: 1.2; }
.screen .quorum-split::before, .screen .quorum-split::after, .screen .quorum-split span + span::before { content: none; }
.screen .quorum-state { font-size: 1.625rem; padding: .75rem 1.25rem; border: 2px solid currentColor; border-radius: var(--radius); }
.screen .quorum-state svg { width: 1.75rem; height: 1.75rem; stroke-width: 3; }
.screen .quorum.is-no .quorum-state { background: var(--red); border-color: var(--red); color: #fff; }

.s-main { display: grid; grid-template-columns: minmax(0, 1fr) 27rem; gap: 4.5rem; padding: 2.25rem 0 1.75rem; min-height: 0; }
.s-main > section { min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.s-main > section > .s-kicker, .s-main > section > .s-title, .s-main > section > .s-desc, .s-main > section > .s-subject, .s-main > section > .s-note { flex-shrink: 0; }
.s-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .9rem; font-size: 1.5rem; color: var(--ink-2); white-space: nowrap; }
.s-kicker .sep { width: .35rem; height: .35rem; border-radius: 50%; background: currentColor; opacity: .7; }
.s-kicker .live::before { width: .8rem; height: .8rem; }
.s-title {
  font-family: var(--serif); font-weight: 600; font-size: 3.5rem; line-height: 1.1; letter-spacing: -0.02em; margin: .75rem 0 1.75rem; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.s-desc { font-size: 1.5rem; color: var(--ink-2); margin: -.75rem 0 1.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-subject { font-size: 2.25rem; line-height: 1.2; margin: -.75rem 0 1.25rem; color: var(--ink-2); overflow-wrap: anywhere; }
.s-subject b { color: var(--ink); font-weight: 600; }
.s-note { font-size: 1.5rem; line-height: 1.3; color: var(--ink-2); margin: -.5rem 0 1rem; }
.s-side .s-note { margin: .75rem 0 0; }
.s-opts { --fs: 2.5; border-top: 2px solid var(--ink); }
.s-opts li {
  display: flex; align-items: center; gap: .5em; border-bottom: 1px solid var(--rule); font-weight: 500; line-height: 1.15;
  font-size: calc(var(--fs) * 1rem); padding: calc(var(--fs) * var(--pad, .36) * 1rem) 0;
}
.s-opts li > span:last-child { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.s-opts .opt-mark { font-size: max(.7em, 1.5rem); border-width: .14rem; border-color: var(--ink-2); color: var(--ink-2); }
.s-opts.is-cols { display: grid; grid-template-rows: repeat(var(--half), auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 3rem; align-content: start; }
.s-opts .is-abstain { color: var(--ink-2); }
.s-foot { display: flex; justify-content: space-between; align-items: center; gap: 3rem; padding: 1.25rem 0 1.75rem; border-top: 1px solid var(--rule); font-size: 1.8rem; color: var(--ink-2); }
.s-foot b { color: var(--ink); font-weight: 600; }
.s-foot > span:first-child { flex: none; }
/* One line, so a long basis cannot push the side column into the rule; the full basis is in the protocol. */
.s-foot > span:last-child { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-offline { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; gap: .6rem; align-items: center; background: var(--red); color: #fff; font-size: 1.5rem; font-weight: 600; padding: .5rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius); }

.s-side { border-left: 1px solid var(--rule); padding-left: 3rem; display: flex; flex-direction: column; min-height: 0; }
.s-side > * { flex-shrink: 0; }
.s-need { font-size: 2.25rem; line-height: 1.25; font-weight: 600; margin-top: .75rem; text-wrap: balance; }
.s-cut { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1.25rem; padding: .75rem 1rem; border: 2px solid var(--amber); color: var(--amber); font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
.s-cut svg { width: 1.5rem; height: 1.5rem; margin-top: .1rem; }
.s-label { font-size: 1.8rem; color: var(--ink-2); }
.big-count { font-family: var(--serif); font-weight: 600; line-height: .9; letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; margin-top: .5rem; white-space: nowrap; }
.big-count b { font-size: 12rem; font-weight: 600; }
.big-count span { font-size: 4.5rem; color: var(--ink-2); font-weight: 400; }
.meter { height: 1rem; background: var(--track); margin-top: 1.5rem; position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.big-count-cap { font-size: 1.8rem; margin-top: .75rem; }
.big-count-cap b { font-weight: 700; }
.s-timer { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.s-timer .mono { font-size: 5rem; line-height: 1.05; letter-spacing: .02em; margin-top: .25rem; }
.s-hidden { margin-top: auto; font-size: 1.8rem; line-height: 1.3; font-weight: 600; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

/* annulled */
.s-void { display: flex; align-items: center; gap: 1.25rem; padding-top: 1.75rem; border-top: 2px solid var(--ink); font-family: var(--serif); font-weight: 600; font-size: 4rem; line-height: 1.1; letter-spacing: -0.02em; }
.s-void svg { width: 4rem; height: 4rem; flex: none; padding: .6rem; border: .2rem solid currentColor; border-radius: 50%; stroke-width: 3; }
.s-void-reason { margin-top: 1.25rem; font-size: 2.25rem; line-height: 1.3; color: var(--ink-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* join */
.s-join { grid-template-columns: 27rem minmax(0, 1fr); gap: 6rem; align-items: center; }
.qr-frame { background: #fff; padding: 2rem; border: 1px solid var(--rule); }
.qr-frame .qr { display: block; width: 100%; image-rendering: pixelated; }
.qr-url { margin-top: 1.25rem; font-weight: 600; font-size: 2.75rem; line-height: 1.15; text-align: center; letter-spacing: -0.01em; overflow-wrap: normal; word-break: keep-all; text-wrap: balance; }
.s-join .s-title { font-size: 3.75rem; }
.j-steps { counter-reset: s; border-top: 2px solid var(--ink); }
.j-steps li { counter-increment: s; display: grid; grid-template-columns: 3.5rem 1fr; padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: 2rem; line-height: 1.3; }
.j-steps li::before { content: counter(s); font-family: var(--serif); font-weight: 600; color: var(--ink); }
.j-counts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.25rem; }
.j-counts div { padding-right: 2rem; }
.j-counts div + div { border-left: 1px solid var(--rule); padding-left: 2rem; }
.j-counts b { display: block; font-family: var(--serif); font-size: 4rem; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.j-counts small { font-size: 2rem; color: var(--ink-2); font-weight: 400; }
.j-counts span { display: block; font-size: 1.625rem; color: var(--ink-2); margin-top: .5rem; }
.j-roster { display: flex; align-items: center; gap: .6rem; margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 1.625rem; color: var(--ink-2); }
.j-roster svg { width: 1.5rem; height: 1.5rem; }

/* roll call */
.s-rollcall { align-items: center; }
.s-rollcall .s-title { font-size: 4.5rem; -webkit-line-clamp: 3; }
.s-lead { font-size: 2rem; line-height: 1.35; color: var(--ink-2); max-width: 40rem; }
.s-rollcall .s-side { justify-content: center; align-self: stretch; }

/* results */
.s-result { grid-template-columns: minmax(0, 1fr) 22rem; gap: 4rem; padding-top: 1.75rem; padding-bottom: 1.5rem; }
.s-result > section { overflow: hidden; }
.s-result .s-title { font-size: 2.75rem; margin-bottom: 1rem; padding-bottom: .12em; }
.screen .tally { --k: min(1, calc(4.3 / var(--rows))); flex: 1; min-height: 0; display: flex; flex-direction: column; }
.screen .tally-need { height: 3rem; margin-bottom: .2rem; }
.screen .tally-need-label { font-size: 2.1rem; line-height: 1.2; padding: 0 .6rem; bottom: .3rem; }
.s-result.is-dense { padding-top: 1.25rem; padding-bottom: 1rem; }
.s-result.is-dense .s-title { -webkit-line-clamp: 2; margin-bottom: .4rem; padding-bottom: .1em; }
.s-result.is-dense .tally-need { height: 2.7rem; }
.s-title.is-long { font-size: 2.75rem; }
.s-open .s-title.is-long, .s-draft .s-title.is-long { -webkit-line-clamp: 3; padding-bottom: .12em; }
.s-result .s-title.is-long { font-size: 2.375rem; }
.screen .tally > * { flex-shrink: 0; }
.screen .tally-head { line-height: 1.1; }
.screen .tally-row + .tally-row { margin-top: max(.45rem, calc(1.1rem * var(--k))); }
.screen .tally-head { gap: .9rem; font-size: max(1.5rem, calc(2.25rem * var(--k))); }
.screen .tally-head .opt-mark { font-size: max(1.5rem, calc(1.6rem * var(--k))); width: 1.35em; height: 1.35em; border-width: .14rem; }
.screen .tally-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.screen .tally.is-compact .tally-track { display: none; }
.screen .tally.is-compact .tally-need { display: none; }
.screen .tally.is-cols { display: grid; grid-template-rows: repeat(var(--half), auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 3rem; align-content: start; border-top: 2px solid var(--ink); }
.screen .tally.is-cols .tally-row { margin-top: 0; padding: .35rem 0; border-bottom: 1px solid var(--rule); }
.screen .tally.is-cols .tally-head { flex-wrap: wrap; row-gap: .2rem; }
.screen .tally.is-cols .tally-name { flex: 1 1 0; white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.screen .tally.is-tight .tally-name { -webkit-line-clamp: 2; }
.screen .tally-won { font-size: 1.5rem; gap: .3rem; color: var(--purple); }
.screen .tally-won svg { width: 1.2em; height: 1.2em; }
.screen .tally-tag { font-size: 1.5rem; }
.screen .tally-count { font-family: var(--serif); font-weight: 600; font-size: max(1.75rem, calc(3rem * var(--k))); line-height: 1; }
.screen .tally-count small { font-family: var(--sans); font-size: 1.5rem; min-width: 3.2em; margin-left: .8rem; }
.screen .tally-track { height: max(.6rem, calc(1.25rem * var(--k))); margin-top: calc(.5rem * var(--k)); }
.screen .tally-line { width: .25rem; margin-left: -.125rem; top: -.4rem; bottom: -.4rem; box-shadow: 0 0 0 .15rem var(--paper); }
.r-stats { display: grid; grid-template-columns: 1fr auto; }
.r-stats dt, .r-stats dd { padding: .85rem 0; border-bottom: 1px solid var(--rule); font-size: 1.625rem; }
.r-stats dt { color: var(--ink-2); }
.r-stats dd { font-family: var(--serif); font-weight: 600; font-size: 2.25rem; line-height: 1.1; text-align: right; font-variant-numeric: lining-nums tabular-nums; display: flex; align-items: center; justify-content: flex-end; gap: .4rem; }
.r-stats dd small { font-size: 1.5rem; color: var(--ink-2); font-weight: 400; }
.r-stats dd.is-no { color: var(--red); }
.r-stats dd svg { width: 1.6rem; height: 1.6rem; stroke-width: 3; }
.s-basis { margin-top: 1.25rem; font-size: 1.5rem; line-height: 1.35; color: var(--ink-2); }
.s-side .s-note { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.s-result.is-wide { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; row-gap: .75rem; }
.s-result.is-wide .s-side { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .25rem 2.5rem; border-left: 0; padding: .6rem 0 0; border-top: 1px solid var(--rule); }
.s-result.is-wide .r-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; }
.s-result.is-wide .r-stats dt, .s-result.is-wide .r-stats dd { padding: 0; border: 0; }
.s-result.is-wide .r-stats dd { font-size: 1.75rem; margin-right: 1.75rem; }
.s-result.is-wide .s-basis, .s-result.is-wide .s-side .s-note, .s-result.is-wide .s-cut { margin: 0; }
.screen .decision { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 1.75rem; padding: 1.4rem 2rem; margin-bottom: 1.75rem; border-radius: var(--radius); }
.screen .decision-mark { grid-row: auto; width: 4rem; height: 4rem; }
.screen .decision-mark svg { width: 2.4rem; height: 2.4rem; }
.screen .decision-text { font-size: 3rem; line-height: 1.08; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.screen .decision-detail { font-size: 1.625rem; text-align: right; max-width: 30rem; line-height: 1.3; color: #F1ECF7; text-wrap: balance; }
.screen .decision-due { grid-column: 2 / -1; font-size: 1.625rem; margin-top: .5rem; }
.s-names { grid-template-columns: minmax(0, 1fr); padding-top: 1.75rem; padding-bottom: 1.5rem; }
.s-names .s-title { font-size: 2.75rem; -webkit-line-clamp: 1; margin-bottom: 1rem; padding-bottom: .1em; }
.s-roll {
  --k: 1; flex: 1; min-height: 0; overflow: hidden; border-top: 2px solid var(--ink); padding-top: .75rem;
  column-width: calc(17rem * var(--k)); column-gap: calc(2.5rem * var(--k)); column-fill: auto; column-rule: 1px solid var(--rule);
  font-size: calc(1.75rem * var(--k)); line-height: 1.22;
}
.s-pages { flex-shrink: 0; margin-top: .6rem; font-size: 1.5rem; color: var(--ink-2); }
.s-roll-head, .s-roll-cand { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5em; break-inside: avoid; }
.s-roll-head { font-weight: 600; padding-bottom: .25em; margin-bottom: .25em; border-bottom: 1px solid var(--rule); break-after: avoid; }
.s-roll-head .opt-mark, .s-roll-cand .opt-mark { font-size: .75em; }
.s-roll-head > span:not([class]), .s-roll-cand > span:not([class]) { flex: 1; min-width: 0; }
.s-roll-head b, .s-roll-cand b { font-family: var(--serif); }
.s-roll .tally-won { flex-basis: 100%; font-size: max(.75em, 1.5rem); }
.s-roll-cont { padding: 0; }
.s-roll-cont .s-roll-head { color: var(--ink-2); }
.s-roll-fill { break-before: column; height: 1px; }
.s-roll-group + .s-roll-group { margin-top: .8em; }
.s-roll li { break-inside: avoid; padding: .05em 0; }
.s-roll .is-abstain, .s-roll .is-none { color: var(--ink-2); }

/* ---------- Admin ---------- */
body.admin { font-size: 15px; }
.admin .auth { padding-top: 10vh; }
.a-top { display: flex; align-items: center; gap: 14px; padding: 0 32px; min-height: 68px; border-bottom: 1px solid var(--rule); }
.a-top .brand-logo { width: 40px; height: 40px; }
.a-title { min-width: 0; line-height: 1.25; }
.a-title b { display: block; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-title > span { color: var(--ink-2); font-size: 13px; }
.conn { display: inline-flex; align-items: center; gap: 5px; }
.conn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); }
.conn.on { color: var(--green); }
.conn.on::before { background: var(--green); }
.conn.off { color: var(--red); font-weight: 600; }
.conn.off::before { background: var(--red); }
.a-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 14px; flex: none; }
.a-nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.a-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.a-nav a svg { width: 14px; height: 14px; color: var(--ink-2); }
.a-nav .link-btn { font-size: 14px; min-height: 36px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0 22px 0 0; border-right: 1px solid var(--rule); min-height: 36px; font-weight: 500; }
.switch { width: 40px; height: 24px; border-radius: 12px; background: #77707F; position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle[aria-checked=true] .switch { background: var(--green); }
.toggle[aria-checked=true] .switch::after { left: 19px; }

.live-bar { display: flex; align-items: center; gap: 20px; padding: 0 32px; min-height: 56px; background: var(--purple); color: #fff; white-space: nowrap; }
.live-bar :focus-visible { outline-color: #fff; }
.live-bar + .live-bar { border-top: 1px solid #ffffff33; }
.live-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; flex: none; }
.live-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #E9D6FF; animation: breathe 2s ease-in-out infinite; }
.live-title { font-family: var(--serif); font-size: 17px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.live-meta { color: #DCCFEE; flex: none; font-variant-numeric: tabular-nums; }
.live-meta b { color: #fff; font-weight: 600; }
.live-meter { width: 110px; height: 6px; background: #ffffff38; position: relative; flex: none; }
.live-meter i { position: absolute; inset: 0 auto 0 0; background: #fff; }
.live-bar .btn-on-dark { margin-left: auto; flex: none; }
.live-bar .btn-on-dark + .btn-on-dark { margin-left: 0; }
.btn-on-dark-quiet { border-color: transparent; text-decoration: underline; text-decoration-color: #ffffff66; text-underline-offset: 4px; }

.a-strip { display: flex; align-items: center; gap: 24px; padding: 0 32px; min-height: 48px; background: var(--paper-2); border-bottom: 1px solid var(--rule); font-size: 14px; }
.a-strip .quorum { gap: 18px; }
.screen-mode { margin-left: auto; display: flex; align-items: center; gap: 4px; color: var(--ink-2); }
.screen-mode > span { margin-right: 8px; }
.seg { background: transparent; border: 1px solid transparent; border-radius: var(--radius); padding: 0 10px; min-height: 30px; font-size: 14px; color: var(--ink-2); }
.seg:hover { border-color: var(--rule); }
.seg[aria-pressed=true] { background: var(--ink); color: var(--paper); }

.a-body { padding: 0 32px 48px; }
.a-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--rule); margin-bottom: 4px; }
.a-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 16px 0 13px; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.a-tabs button.active { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.a-tabs .count { color: var(--ink-2); font-weight: 400; margin-left: 3px; font-variant-numeric: tabular-nums; }
.a-tabs [data-tab=requests] .count:not(:empty) { color: var(--paper); background: var(--ink); border-radius: 2px; padding: 0 5px; font-weight: 600; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 22px 0 14px; }
.sec-head h2, .panel h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.sec-head p { font-size: 14px; color: var(--ink-2); }
.summary + .members, .tab .summary { margin: 4px 0 8px; }
.empty { padding: 32px 0; border-top: 1px solid var(--ink); }
.empty-title { font-size: 17px; font-weight: 600; }
.empty p + p { color: var(--ink-2); margin-top: 4px; }

.req-list { border-top: 1px solid var(--ink); }
.req-bulk { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 12px; font-size: 14px; color: var(--ink-2); }
.req { display: grid; grid-template-columns: 112px minmax(180px, 1.3fr) minmax(160px, 1fr) auto; align-items: center; gap: 4px 20px; min-height: 72px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.req:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; background: var(--card); }
.req:hover { background: #EFEBE1; }
.req-ticket { font-size: 30px; letter-spacing: .12em; color: var(--ink); line-height: 1; }
.req-who b { display: block; font-weight: 600; font-size: 15px; }
.req-who span, .req-meta { font-size: 13px; color: var(--ink-2); }
.req-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.req-actions { display: flex; gap: 8px; }
.req-actions .btn-primary { min-width: 92px; }
.btn-reject { color: var(--red); border-color: var(--rule); border-width: 1px; }
.req-warn { grid-column: 2 / -1; display: flex; gap: 6px; align-items: flex-start; font-size: 13px; color: var(--amber); font-weight: 500; }
.req-warn svg { width: 16px; height: 16px; margin-top: 1px; }

.roster-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.roster-bar b { font-weight: 600; }
.roster-bar svg { width: 16px; height: 16px; }
.roster-hint { color: var(--ink-2); }
.roster-bar .btn { margin-left: auto; }
.import-locked { color: var(--amber); font-weight: 500; }
.toolbar { display: flex; gap: 12px; align-items: center; padding: 20px 0 6px; }
.search { position: relative; flex: 0 1 340px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.search input { padding-left: 38px; min-height: 40px; font-size: 15px; border-width: 1px; border-color: var(--ink-2); }
.toolbar select { width: auto; min-height: 40px; font-size: 15px; border-width: 1px; border-color: var(--ink-2); }
.toolbar .btn { margin-left: auto; min-height: 40px; }
table { border-collapse: collapse; width: 100%; }
.members { font-size: 14px; }
.members th { text-align: left; font-weight: 500; color: var(--ink-2); font-size: 13px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.members td { padding: 0 12px 0 0; height: 46px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.members tbody tr:hover { background: #EFEBE1; }
.members td.name { font-weight: 600; font-size: 15px; }
.members td.email { color: var(--ink-2); white-space: normal; overflow-wrap: anywhere; min-width: 14ch; }
.members td.mode { white-space: normal; }
.members .act { text-align: right; padding-right: 0; width: 1%; }
.members td.act > * { vertical-align: middle; }
.members td.act > * + * { margin-left: 6px; }
.seen { color: var(--ink-2); }
.code-note { color: var(--ink-2); font-size: 13px; }
.seen .on { color: var(--green); font-weight: 500; }
.yes { display: inline-flex; gap: 4px; align-items: center; color: var(--green); font-weight: 500; }
.st { display: inline-flex; align-items: center; gap: 8px; }
.st::before { content: ""; width: 8px; height: 8px; flex: none; }
.st-active::before { background: var(--green); }
.st-pending::before { width: 6px; height: 6px; border: 2px solid var(--purple-2); border-radius: 50%; }
.st-pending { color: var(--purple-2); font-weight: 500; }
.st-inactive { color: var(--red); font-weight: 500; }
.st-inactive::before { background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 10px; height: 9px; }
.st-absent { color: var(--ink-2); }
.st-absent::before { width: 7px; height: 7px; border: 1px solid var(--ink-2); }
.row-menu { position: relative; display: inline-block; }
.row-menu summary { list-style: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius); cursor: pointer; color: var(--ink-2); }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu summary:hover, .row-menu[open] summary { background: var(--paper-2); color: var(--ink); }
.row-menu summary svg { width: 20px; height: 20px; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 200px; background: var(--card); border: 1px solid var(--ink); border-radius: var(--radius); padding: 4px 0; display: grid; text-align: left; }
.menu-list button { background: none; border: 0; text-align: left; padding: 9px 14px; font-size: 14px; }
.menu-list button:hover, .menu-list button:focus-visible { background: var(--paper-2); outline: none; }
.menu-list .is-danger { color: var(--red); }
.import { margin-top: 24px; border-top: 1px solid var(--rule); padding-top: 12px; }
.import summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.import textarea { margin: 8px 0; font-size: 15px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.import-confirm .choice { align-items: flex-start; font-size: 15px; overflow-wrap: anywhere; }
.import-confirm .choice input { margin-top: 1px; }
.import-guess { color: var(--ink-2); }
.import-examples { margin-top: var(--s2); }

.panel { padding: 22px 0 0; }
.panel h2 { margin-bottom: 6px; }
.panel h3 { font-size: 16px; font-weight: 600; margin: 22px 0 4px; }
.panel > p { color: var(--ink-2); max-width: 70ch; }
.panel > .btn { margin-top: 16px; }
.panel .names { color: var(--ink); font-size: 14px; line-height: 1.6; }
.rc-list { margin-top: 10px; border-top: 1px solid var(--ink); max-width: 760px; font-size: 14px; }
.rc-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; min-height: 48px; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.rc-name { font-weight: 600; font-size: 15px; }
.rc-note { color: var(--ink-2); font-size: 13px; }
.rc-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 24px; margin-top: 16px; }
.rc-modes .field-hint { margin-top: 8px; }
.panel > .rc-search { display: block; width: 100%; max-width: 760px; margin-top: 20px; }
.rc-marks { display: flex; gap: 8px; }
.rc-names li.is-away .rc-name { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--rule); }
@media (max-width: 720px) { .rc-modes { grid-template-columns: 1fr; } }
.polls-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 40px; align-items: start; }
.polls-layout #poll-form { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding-right: 4px; padding-bottom: 16px; }
#poll-form input, #poll-form select, #poll-form textarea { font-size: 16px; min-height: 44px; border-width: 1.5px; }
#poll-form textarea { min-height: 0; }
#poll-form .multi-choice { margin-top: var(--s3); line-height: 1.3; }
#poll-form .choice:has(input:disabled) { color: var(--ink-2); cursor: not-allowed; }
#poll-form input:read-only:not([type=radio], [type=checkbox]), #poll-form textarea:read-only, #poll-form select:disabled { background: var(--paper-2); color: var(--ink-2); cursor: not-allowed; }
#poll-form #poll-basis { margin: 6px 0 0; font-size: 14px; }
#poll-form div > .field-label:first-child { margin-top: var(--s5); }
.add-row { display: flex; gap: 8px; margin-bottom: 8px; }
.add-row .btn { flex: none; min-height: 44px; }
.field-warn { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 14px; line-height: 1.4; color: var(--amber); font-weight: 500; }
.field-warn svg { width: 16px; height: 16px; margin-top: 2px; }
#poll-form .field-warn + .field-label { margin-top: 12px; }
#poll-form #poll-seats, #poll-form #poll-signers { width: 120px; }
#poll-form .btn-primary { margin-top: 22px; width: 100%; min-height: 48px; }
#polls { padding-top: 22px; display: grid; gap: 0; }
.receipt-check { margin-top: 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px 0; }
.receipt-check summary { cursor: pointer; font-weight: 600; min-height: 36px; display: flex; align-items: center; }
.receipt-check form { max-width: 420px; padding-bottom: 12px; }
.receipt-check input, .receipt-check select { font-size: 16px; min-height: 44px; border-width: 1.5px; }
.receipt-check .btn { margin-top: 16px; }
#receipt-check-result:not(:empty) { margin-bottom: 12px; }
.check-claim { margin-top: 2px; }
.check-fault { padding: 14px 16px; border: 1px solid var(--red); border-top-width: 3px; border-radius: 3px; background: var(--card); display: grid; gap: 6px; }
.check-fault-head { display: flex; gap: 8px; align-items: center; color: var(--red); font-size: 19px; font-weight: 700; line-height: 1.25; }
.check-fault-head svg { width: 22px; height: 22px; stroke-width: 2.75; }
.poll-card { padding: 20px 0 24px; border-top: 1px solid var(--ink); display: grid; gap: 10px; }
.poll-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.2; }
.poll-card .meta, .poll-card .desc { font-size: 14px; color: var(--ink-2); }
.poll-card .open-line { font-size: 14px; }
.poll-st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.poll-st::before { content: ""; width: 8px; height: 8px; }
.poll-st-draft::before { border: 1.5px solid var(--ink-2); border-radius: 50%; width: 6px; height: 6px; }
.poll-st-open { color: var(--purple-2); }
.poll-st-open::before { background: currentColor; border-radius: 50%; animation: breathe 2s ease-in-out infinite; }
.poll-st-closed::before { background: var(--ink); }
.poll-st-cancelled { color: var(--ink-2); }
.poll-st-cancelled::before { height: 2px; width: 10px; background: currentColor; }
.poll-card .notice strong { font-size: 15px; overflow-wrap: anywhere; }
.on-screen { color: var(--purple-2); font-weight: 500; }
.poll-card .decision { padding: 12px 14px; }
.poll-card .decision-mark { width: 32px; height: 32px; }
.poll-card .decision-mark svg { width: 18px; height: 18px; }
.poll-card .decision-text { font-size: 18px; }
.poll-card .row { margin-top: 4px; }
.poll-card .names-toggle { min-height: 36px; font-size: 14px; gap: var(--s2); }
.poll-card .names-toggle input { width: 18px; height: 18px; }
#poll-form #round-hint { margin: 2px 0 6px; color: var(--ink); }
#stale-warn .link-btn { min-height: 0; font-size: inherit; color: inherit; font-weight: 600; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 520px); gap: 48px; }
.settings-layout .btn-primary, .settings-layout .btn-danger { margin-top: 20px; }
.meeting-panel { grid-column: 1 / -1; padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.meeting-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 520px); gap: 0 48px; }
.meeting-grid .field-label:first-child { margin-top: var(--s5); }
.meeting-panel input, .meeting-panel select, .meeting-panel textarea { font-size: 16px; min-height: 44px; border-width: 1.5px; }
.meeting-panel textarea { min-height: 0; }
.field-pair { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; }
.choice-row { display: flex; gap: 28px; }
.field-warns:not(:empty) { margin-top: 8px; display: grid; gap: 4px; }
.field-warn { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--amber); font-weight: 500; line-height: 1.4; }
.field-warn svg { width: 16px; height: 16px; margin-top: 2px; }
.danger-zone { border-top: 3px solid var(--red); margin-top: 22px; padding-top: 18px; }
.danger-zone h2 { color: var(--red); }
.danger-zone .choice { margin-top: 12px; }
#archive { margin-top: 36px; border-top: 1px solid var(--ink); padding-top: 18px; }
#vacancies { margin-top: 22px; border-top: 3px solid var(--amber); padding-top: 18px; }
.vacancy-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--ink); font-size: 14px; }
.vacancy-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.vacancy-list b { font-weight: 600; }
.vacancy-list .btn { margin-left: auto; }
.archive-list { margin-top: 12px; border-top: 1px solid var(--ink); font-size: 14px; }
.archive-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.archive-when { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 150px; }
.archive-list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.archive-list a:hover { text-decoration-color: var(--ink); }
.archive-list small { color: var(--ink-2); margin-left: 6px; }
.archive-empty { color: var(--ink-2); font-size: 14px; margin-top: 12px; }
.audit { font-size: 14px; border-top: 1px solid var(--ink); }
.audit td { padding: 8px 14px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.audit .time { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; width: 1%; }
.audit .who { font-weight: 500; white-space: nowrap; }
.audit .details { color: var(--ink-2); }
@media (max-width: 900px) {
  .audit .who { white-space: normal; }
  .audit .details { overflow-wrap: anywhere; }
}
.audit tr.is-danger td { color: var(--red); font-weight: 600; }
.audit .id { color: var(--ink-2); font-size: 12px; width: 1%; white-space: nowrap; }
.audit-more { margin-top: 12px; }
.toolbar-end { margin-left: auto; display: flex; gap: 8px; }
.toolbar .toolbar-end .btn { margin-left: 0; }
.chain-head { flex-basis: 100%; font-size: 12px; color: var(--ink-2); letter-spacing: 0; overflow-wrap: anywhere; }
.chain-broken { display: inline-flex; gap: 6px; align-items: center; color: var(--red); font-weight: 600; }

dialog { border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); padding: 28px 32px; width: min(92vw, 460px); }
dialog::backdrop { background: rgba(28, 25, 35, .55); }
dialog h2 { font-size: 23px; font-weight: 700; line-height: 1.2; margin-top: 4px; }
dialog p { color: var(--ink-2); font-size: 15px; }
dialog .btn { width: 100%; margin-top: 16px; }
#unlock-dialog form, #cancel-dialog form { margin-top: 16px; }
dialog .dialog-subject { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 6px; overflow-wrap: anywhere; }
.dialog-points { margin-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.dialog-points li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.dialog-points b { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .a-top { flex-wrap: wrap; padding: 10px 16px; }
  .a-nav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 14px; }
  .live-bar, .a-strip, .a-body { padding-left: 16px; padding-right: 16px; }
  .live-bar { flex-wrap: wrap; white-space: normal; padding-top: 8px; padding-bottom: 8px; }
  .a-strip { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .a-strip .quorum { flex-wrap: wrap; gap: 4px 18px; min-width: 0; }
  .a-tabs { overflow-x: auto; gap: 20px; }
  .req { grid-template-columns: 90px 1fr; }
  .req-meta, .req-actions, .req-warn { grid-column: 2; }
  .polls-layout, .settings-layout, .meeting-grid { grid-template-columns: 1fr; }
  .polls-layout #poll-form { position: static; max-height: none; overflow: visible; }
  .members { display: block; overflow-x: auto; position: relative; }
  #audit-filter { max-width: 100%; }
  .live-bar .live-meta { flex: 1 1 100%; white-space: normal; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .search { flex: 1 1 100%; }
  .toolbar-end { margin-left: 0; }
}
