/* Voter pages, "Show night" style: Maven Pro (self-hosted) then system fonts, headings at most weight 600, square navigation, targets of 44 px or more.
   Night navy page with white sheets for forms and entries. One file for every voter screen (see docs/app/architecture.md). */
/* Maven Pro (SIL Open Font License, wwwroot/fonts/OFL.txt), self-hosted: weights 400 to 600, Latin and Latin Extended. */
@font-face { font-family: "Maven Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/maven-pro-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Maven Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/maven-pro-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Maven Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/maven-pro-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Maven Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/maven-pro-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Maven Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/maven-pro-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Maven Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/maven-pro-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --night: #0e1736;
  --night-deep: #0a1129;
  --panel: #19265a;
  --edge: #34447f;
  --sun: #fdb813;
  --ink: #0e1736;
  --white: #fff;
  --soft: #c6cdea;
  --sky: #7cc4ff;
  --muted: #4a5375;
  --line: #d5d9e8;
  --line-strong: #7f88ab;
  --link: #1b3fa8;
  --focus: #1b4fd6;
  --ok: #17693f;
  --ok-bg: #e3f4ea;
  --bad: #a3211a;
  --bad-bg: #fbe9e7;
  --warn-bg: #fff4d1;
  --warn-edge: #b98600;
  --star: #9a6500;
  /* The organizer's accent, set per event by the layout (VoterStyle): --event is always their color, --event-on the text on
     it (white or the ink, their choice), --event-line the color or a darkened shade that reaches 3:1 against white, for
     outlines and rings on white. */
  --event: var(--ink);
  --event-on: #fff;
  --event-line: var(--event);
  --event-dash: rgba(255, 255, 255, .75);
  --event-ring: rgba(255, 255, 255, .1);
  --tap: 3rem;
  --sans: "Maven Pro", "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font: 400 1.0625rem/1.5 var(--sans); background: var(--night); color: var(--soft); }
h1, h2, h3, p, ul, ol, fieldset, legend, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 60; background: var(--white); color: var(--ink); padding: .75rem 1rem; }
.skip:focus { top: .5rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Surfaces: components read these local tokens, so the same markup works on night and on a white sheet. */
.sheet { --fg: var(--ink); --fg-soft: var(--muted); --border: var(--line); --ring: var(--focus); --a: var(--link); --field: var(--white); --field-border: var(--line-strong); background: var(--white); color: var(--muted); }
body { --fg: var(--white); --fg-soft: var(--soft); --border: var(--edge); --ring: var(--sky); --a: var(--sun); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
a { color: var(--a); text-underline-offset: .15em; }
h1, h2, h3, strong, b, legend { color: var(--fg); font-weight: 600; }
h1 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: 1.35rem; line-height: 1.2; text-wrap: balance; }
h3 { font-size: 1.0625rem; line-height: 1.3; }
.small { font-size: .9375rem; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); }
.break { overflow-wrap: anywhere; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.spread { justify-content: space-between; }

/* Page frame */
.vhead { background: var(--night); border-bottom: 1px solid var(--edge); }
.vhead-in { width: min(100% - 1.5rem, 44rem); margin-inline: auto; padding: .7rem 0; display: flex; align-items: center; gap: .75rem; min-height: 3.5rem; }
.vlogo { height: 2.25rem; width: auto; max-width: 9rem; object-fit: contain; flex: none; background: var(--white); border-radius: 4px; padding: 2px; }
.vname { flex: 1 1 auto; min-width: 0; font-size: 1.0625rem; font-weight: 600; color: var(--white); overflow-wrap: anywhere; line-height: 1.25; }
.vmain { flex: 1 1 auto; width: min(100% - 1.5rem, 44rem); margin-inline: auto; padding: 1.25rem 0 1.5rem; }
.vfoot { width: min(100% - 1.5rem, 44rem); margin-inline: auto; padding: 1rem 0 1.5rem; text-align: center; display: grid; gap: .25rem; font-size: .8125rem; }
.vfoot a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .35rem; }
.vfoot .legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .75rem; }

/* Cards and notices */
.card { border-radius: 10px; padding: 1.1rem 1rem; }
.card > h1, .card > h2 { margin-bottom: .4rem; }
.alert { display: grid; gap: .15rem; border-radius: 8px; padding: .75rem 1rem; border: 1.5px solid; font-size: .9375rem; }
.alert b { color: inherit; }
.alert-ok { background: var(--ok-bg); border-color: var(--ok); color: #0f4a2c; }
.alert-bad { background: var(--bad-bg); border-color: var(--bad); color: #7a1711; }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-edge); color: #4d3600; }
.empty { text-align: center; padding: 2rem 1rem; display: grid; gap: .5rem; justify-items: center; }

/* Buttons: pill shape stays, targets are 48 px. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-align: center; min-height: var(--tap); padding: .55rem 1.25rem; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.15; text-decoration: none; cursor: pointer; }
.btn-event { background: var(--event); color: var(--event-on); border-color: var(--event-line); }
.btn-sun { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--field-border, var(--edge)); }
.btn-ghost:hover { border-color: var(--fg); }
/* The quiet third action of a dialog ("Keep scoring"). */
.btn-quiet { background: none; border-color: transparent; color: var(--a); text-decoration: underline; font-weight: 500; }
.btn-sm { min-height: 2.75rem; padding: .35rem 1rem; font-size: .9375rem; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0 .25rem; min-height: 2.75rem; color: var(--a); text-decoration: underline; cursor: pointer; display: inline-flex; align-items: center; }

/* Forms */
.field { display: grid; gap: .35rem; }
.field > label, .label { font-weight: 500; font-size: .9375rem; color: var(--fg); }
.hint { font-size: .8125rem; color: var(--fg-soft); }
.input, .textarea { width: 100%; min-height: var(--tap); padding: .55rem .8rem; border: 1.5px solid var(--field-border); border-radius: 8px; background: var(--field); color: var(--ink); }
.textarea { min-height: 5.5rem; resize: vertical; }
.input:hover, .textarea:hover { border-color: var(--ink); }
.input:focus-visible, .textarea:focus-visible { outline-offset: 1px; border-color: var(--focus); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); border-width: 2px; }
.error { font-size: .9375rem; font-weight: 500; color: var(--bad); }
.check { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; align-items: start; padding: .5rem 0; min-height: var(--tap); cursor: pointer; color: var(--fg); }
.check input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; accent-color: var(--ink); }

/* Entry list: search, filters, rows */
.listhead { display: grid; gap: .75rem; }
.filters { display: flex; flex-wrap: wrap; border: 1px solid var(--line-strong); }
.filters button { flex: 1 1 auto; min-height: 2.75rem; padding: 0 .5rem; border: 0; border-radius: 0; background: var(--white); color: var(--muted); font-size: .875rem; cursor: pointer; }
.filters button + button { border-left: 1px solid var(--line-strong); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); font-weight: 500; }
.filters :focus-visible { outline-offset: -3px; }
.rows > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; border-top: 1px solid var(--line); }
.rows > li.pickitem { grid-template-columns: minmax(0, 1fr); }
.rowlink { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .25rem .5rem; align-items: start; padding: .7rem 0 .7rem 1rem; min-height: 3.5rem; color: var(--ink); text-decoration: none; }
.rowlink:hover, .pickrow:hover { background: #f1f3fa; }
.rowlink:focus-visible, .pickrow:focus-visible { outline-offset: -3px; }
.rowlink .n { color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; padding-top: .1rem; }
.rowlink .name { display: block; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rowlink .desc { display: block; font-size: .8125rem; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rowlink .vals { display: flex; flex-wrap: wrap; gap: .1rem .9rem; margin-top: .25rem; font-size: .8125rem; color: var(--muted); }
.rowlink .vals b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rowlink .state { color: var(--muted); }
.rowlink .state.ok { color: var(--ok); font-weight: 600; }
.bm { width: 3rem; min-height: 3rem; align-self: center; display: grid; place-items: center; border: 0; background: none; border-radius: 4px; color: var(--muted); cursor: pointer; }
.bm svg { fill: none; }
.bm[aria-pressed="true"] { color: var(--ink); }
.bm[aria-pressed="true"] svg { fill: var(--sun); }
.bm:focus-visible { outline-offset: -3px; }
.none { padding: 1.5rem 1rem; font-size: .9375rem; }
.bmbar { padding: .9rem 1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; justify-items: start; }
.after { display: flex; flex-wrap: wrap; gap: 0 1.25rem; align-items: center; justify-content: space-between; padding-top: .75rem; font-size: .9375rem; }
.after a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--white); }

/* Single choice: real radios, the label is the row */
.pickrow { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 2rem; gap: .5rem; align-items: start; padding: .8rem 1rem; min-height: 3.5rem; cursor: pointer; color: var(--ink); }
.pickrow .name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pickrow .desc { display: block; font-size: .9375rem; color: var(--muted); overflow-wrap: anywhere; }
.pickrow .mark { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--white); margin-top: .1rem; }
.pickitem input:checked + .pickrow { background: #fff8e0; box-shadow: inset 4px 0 0 var(--sun); }
.pickitem input:checked + .pickrow .mark { border-color: var(--ink); background: radial-gradient(var(--ink) 42%, var(--sun) 46%); }
.pickitem input:focus-visible + .pickrow { outline: 3px solid var(--focus); outline-offset: -3px; }
.pickextra { padding: 0 1rem .8rem 3.5rem; display: grid; gap: .5rem; font-size: .9375rem; }
.pickextra iframe, .pickextra video { max-width: 100%; border: 0; }
.pickbar { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .6rem .75rem; background: var(--night-deep); border-top: 1px solid var(--edge); }
.pickbar p { color: var(--soft); font-size: .8125rem; line-height: 1.3; min-width: 0; }
.pickbar p b { display: block; font-size: 1rem; color: var(--white); overflow-wrap: anywhere; }

/* Progress */
.progress { height: .6rem; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--w, 0%); border-radius: 99px; background: var(--sun); }

/* Vote page */
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pcard h1 { font-size: 1.5rem; margin-top: .1rem; overflow-wrap: anywhere; }
.pcard .desc { font-size: .9375rem; margin-top: .3rem; overflow-wrap: anywhere; }
.pcard .links { display: flex; flex-wrap: wrap; gap: 0 1rem; font-size: .9375rem; }
.pcard .links a { display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; }
.pcard .video { margin-top: .5rem; }
.pcard .video iframe, .pcard .video video { max-width: 100%; border: 0; }
.pcard .bm { margin: -.4rem -.4rem -.4rem 0; }
.dim { padding: .8rem 0; border-top: 1px solid var(--line); }
.dim legend { float: left; width: 100%; padding: 0 0 .5rem; }
.dim legend + * { clear: both; }
.dim-top { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.dim .hint { margin: .1rem 0 .55rem; }
.readout { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: .9375rem; }
.readout.unscored { color: var(--muted); }
.pcard .field { padding: .8rem 0; border-top: 1px solid var(--line); }
.saveline { display: grid; gap: .6rem; margin-top: .75rem; }
.saveline .row { gap: .6rem; }
.saveline .btn { flex: 1 1 12rem; }

/* Scale: real radios, one cell per value, wrapped into rows so every cell stays 44 px or wider */
.scale { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: .3rem; }
.scale label { min-height: var(--tap); min-width: 2.75rem; display: grid; place-items: center; align-content: center; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--white); color: var(--ink); font-weight: 500; font-size: 1.15rem; line-height: 1; cursor: pointer; user-select: none; }
.scale label:hover { border-color: var(--ink); }
.scale input:checked + label { background: var(--event); border-color: var(--event-line); color: var(--event-on); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--event-line); }
.scale input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 4px; }
.scale .g-star, .scale .g-smile { display: none; }
.scale .g-smile svg { width: 1.7rem; height: 1.7rem; }
.scale .g-smile small { display: block; font-size: .7rem; margin-top: .1rem; text-align: center; }
.scale.stars .g-n { display: none; }
.scale.stars .g-star { display: block; font-size: 1.7rem; }
.scale.stars .zero .g-star { display: none; }
.scale.stars .zero .g-n { display: block; font-size: .8rem; }
.scale.stars label { border-color: transparent; background: transparent; color: var(--star); }
.scale.stars .zero { border-color: var(--line-strong); color: var(--muted); }
.scale.stars input:checked + label { background: transparent; color: var(--star); box-shadow: none; border-color: var(--ink); }
.scale.stars input:checked + .zero { background: var(--ink); color: var(--white); }
.scale.stars .on { display: none; }
.scale.stars .off { color: var(--line-strong); }
.scale.stars:has(input:checked) label .on { display: inline; }
.scale.stars:has(input:checked) label .off { display: none; }
.scale.stars input:checked ~ input ~ label .on { display: none; }
.scale.stars input:checked ~ input ~ label .off { display: inline; }
.scale.smileys .g-n { display: none; }
.scale.smileys .g-smile { display: block; }

/* Bottom dock (scorecard list and vote page): a slim status row with the event (logo and name), "Score saved" after a save
   and "n of m scored" with its bar, so the event stays visible while scrolling; on the vote page Previous, All entries and
   Next below it. As wide as the card on desktop. */
.vdock { position: sticky; bottom: 0; z-index: 5; background: var(--night-deep); border-top: 1px solid var(--edge); }
.vdock-status { width: min(100% - 1.5rem, 44rem); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .3rem .75rem; min-height: 2.5rem; padding: .3rem 0; font-size: .8125rem; line-height: 1.25; color: var(--soft); }
.vdock-status .vlogo { height: 1.6rem; padding: 1px; border-radius: 3px; }
.vdock-status .nm { flex: 1 1 9rem; min-width: 0; color: var(--white); font-weight: 600; font-size: .875rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vdock-status .ct { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vdock .progress { width: min(100% - 1.5rem, 44rem); margin-inline: auto; height: .35rem; }
.vdock-nav { width: min(100%, 44rem); margin: .45rem auto 0; display: grid; grid-template-columns: 1fr 1.5fr 1fr; border-top: 1px solid var(--edge); }
.vdock-nav > * { min-height: 3.25rem; border: 0; border-radius: 0; background: none; color: var(--white); font-size: .9375rem; font-weight: 500; cursor: pointer; text-decoration: none; display: grid; place-items: center; text-align: center; }
.vdock-nav > * + * { border-left: 1px solid var(--edge); }
.vdock-nav .all { background: var(--panel); }
.vdock-nav [aria-disabled="true"] { color: #8f9bd0; cursor: default; }
.vdock-nav :focus-visible { outline-offset: -3px; }
@media (min-width: 46rem) { .vdock-nav { border-inline: 1px solid var(--edge); } }
.vdock:not(:has(.vdock-nav)) .progress { margin-bottom: .6rem; }
/* "Score saved": a chip in the status row, in the dock's own space, so it covers nothing. voter.js hides it after 5 s. */
.savedchip { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 99px; background: var(--ok-bg); color: #0f4a2c; font-weight: 600; white-space: nowrap; }
.savedchip .tick { flex: none; }
.savedchip.gone { display: none; }

/* Dialogs: native <dialog>, modal, focus trapped by the browser */
dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; color: var(--muted); }
dialog::backdrop { background: rgba(6, 10, 26, .72); }
dialog.dlg { width: min(100% - 1.5rem, 26rem); margin: auto; border-radius: 10px; }
dialog.dlg .dlg-in { padding: 1.25rem; display: grid; gap: .9rem; }
dialog.dlg .actions { display: grid; gap: .5rem; }

/* Sign-in lockout */
.lockout { display: grid; gap: .25rem; }

/* Narrow phones: nothing may force a horizontal scroll */
@media (max-width: 26rem) {
  .card { padding: 1rem .9rem; }
  .vhead-in, .vmain, .vfoot { width: calc(100% - 1.5rem); }
}

/* Footer lines: Innovote (logo and tagline, a link home) on every plan, then "Powered by Innoscout" on free accounts only. */
.vfoot .byline { display: grid; justify-items: center; margin-top: .9rem; }
.vfoot .byline p { margin: 0; line-height: 1.6; }
.vfoot .byline .l1 { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem; font-weight: 500; color: inherit; text-decoration: none; }
.vfoot .byline a.l1:hover span { text-decoration: underline; }
.vfoot .byline .l1 img { height: 18px; width: auto; }
.vfoot .byline .l2 { font-size: .875rem; opacity: .75; }
.vfoot .byline .l2 a { color: inherit; display: inline; min-height: 0; padding: 0; text-decoration: underline; }

/* ---- Sign-in looks (docs/mockups/voter-sign-in, approved 2026-11-17) ----
   Every sign-in screen (username and PIN, email registration, check your email, invalid link, link confirmation, signed in
   elsewhere, not active, not found) renders in the event's look: <body class="lk lk-ticket|lk-split|lk-stage">, set by
   _LayoutVoter from VoterLook. All rules below are scoped to .lk, so the list and vote pages are untouched. Each look sets
   the surface tokens (--fg, --fg-soft, --a, --ring, --field-border) on the container that holds the screen. */
.lk .btn { display: flex; width: 100%; min-height: 3.25rem; padding: .7rem 1.25rem; border-radius: 0; font-size: 1.0625rem; line-height: 1.2; }
.lk .btn-primary { background: var(--event); color: var(--event-on); border-color: var(--event-line); }
.lk .btn-primary:hover { filter: brightness(.88); }
.lk .back { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 500; text-underline-offset: .15em; }
.lk .warn { background: var(--warn-bg); border-left: 6px solid var(--warn-edge); color: #4d3600; padding: .8rem 1rem; font-size: .9375rem; display: grid; gap: .2rem; }
.lk .warn b { color: #4d3600; }
.lk .screen { display: grid; gap: 1.25rem; min-width: 0; }
.lk .s-head { display: grid; gap: .6rem; min-width: 0; }
.lk .s-act { display: grid; gap: 1rem; min-width: 0; }
.lk .screen h1 { color: var(--fg); font-weight: 600; font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.25rem); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.lk .screen p { color: var(--fg-soft); }
.lk .screen p b { color: var(--fg); }
.lk .screen a:not(.btn) { color: var(--a); text-underline-offset: .15em; }
.lk .screen :focus-visible { outline-color: var(--ring); }
.lk .screen form, .lk .screen .form { display: grid; gap: 1rem; }
.lk .field label { font-weight: 500; font-size: .9375rem; color: var(--fg); }
.lk .input { min-height: 3.25rem; padding: .6rem .85rem; border: 2px solid var(--field-border); border-radius: 0; background: var(--white); color: var(--ink); }
.lk .input::placeholder { color: #6a7294; }
.lk .input:hover { border-color: var(--ink); }
.lk .input[aria-invalid="true"] { border-color: var(--bad); }
.lk .check { padding: .6rem 0; font-size: .9375rem; color: var(--fg); }
.lk .check input { margin: 0; }
/* Messages sit on their own light background, so they stay readable on white, on a dark panel and on the event color. */
.lk .alert-bad { background: var(--bad-bg); border-left: 6px solid var(--bad); color: #7a1711; padding: .8rem 1rem; font-weight: 500; font-size: .9375rem; }
.lk .error { background: var(--bad-bg); border-left: 4px solid var(--bad); color: #7a1711; padding: .35rem .6rem; }
.lk .screen p.error { color: #7a1711; }
.lk .lockout { background: var(--warn-bg); border-left: 6px solid var(--warn-edge); padding: .8rem 1rem; display: grid; gap: .15rem; }
.lk .screen .lockout p { color: #4d3600; }
.lk .lock-time { font-weight: 600; font-variant-numeric: tabular-nums; }
.lk .lock-time:empty { display: none; }
.lk .who dt { font-size: .9375rem; color: var(--fg-soft); }
.lk .who dd { color: var(--fg); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.lk .screen .note { font-size: .9375rem; }
.lk .screen .back { color: var(--a); }
/* The organizer's logo: natural size, never enlarged, at most --logoshare percent (Auto: 80) of the width of the brand area,
   under the height cap of the look. On a white plate, so any logo reads on the event color. */
.lk .evlogo { width: auto; height: auto; max-width: calc(var(--logoshare, 80) * 1%); background: var(--white); padding: .35rem .55rem; }
.lk .ivmark { height: 1.75rem; width: auto; }
.lk .evname { overflow-wrap: anywhere; }

/* Ticket (default): one voting pass in the middle of the night; the stub carries the event, the body the screen. */
.lk-ticket { --page: var(--night); background: var(--page); }
.lk-ticket .v1 { flex: 1 1 auto; display: grid; place-items: center; padding: 1.75rem .75rem 1rem; }
.lk-ticket .ticket { width: min(100%, 27rem); background: var(--white); border-top: 6px solid var(--sun); outline: 1px solid var(--edge); overflow: hidden; display: grid; }
.lk-ticket .stub { position: relative; background: var(--event); color: var(--event-on); padding: 1.25rem 1.25rem 1.5rem; display: grid; gap: 1rem; align-content: start; border-bottom: 2px dashed var(--event-dash); }
.lk-ticket .stub::before, .lk-ticket .stub::after { content: ""; position: absolute; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--page); border: 1px solid var(--edge); bottom: calc(-.75rem - 1px); }
.lk-ticket .stub::before { left: -.75rem; }
.lk-ticket .stub::after { right: -.75rem; }
.lk-ticket .evlogo { justify-self: start; max-height: 9rem; }
.lk-ticket .evname { font-size: clamp(1.6rem, 1.3rem + 1.6vw, 2.1rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
.lk-ticket .tbody { --fg: var(--ink); --fg-soft: var(--muted); --a: var(--link); --ring: var(--focus); --field-border: #7f88ab; padding: 1.5rem 1.25rem; display: grid; align-content: center; }
.lk-ticket .tbody .note { border-top: 1px solid var(--line); padding-top: .9rem; }
@media (min-width: 60rem) {
  .lk-ticket .v1 { padding-block: 3rem 1.5rem; }
  .lk-ticket .ticket { width: min(100%, 58rem); grid-template-columns: 22rem minmax(0, 1fr); min-height: 26rem; }
  .lk-ticket .stub { padding: 2rem 2rem 1.75rem; border-bottom: 0; border-right: 2px dashed var(--event-dash); grid-template-rows: auto 1fr; }
  .lk-ticket .stub.single { grid-template-rows: 1fr; }
  .lk-ticket .evname { align-self: center; }
  .lk-ticket .ivmark { align-self: start; }
  .lk-ticket .stub::before, .lk-ticket .stub::after { left: auto; right: calc(-.75rem - 1px); }
  .lk-ticket .stub::before { top: -.75rem; bottom: auto; }
  .lk-ticket .stub::after { bottom: -.75rem; }
  .lk-ticket .tbody { padding: 2.25rem 2.75rem; }
  .lk-ticket .who dd { font-size: 1.4rem; }
}
/* Default branding (no organizer color, or not a valid one): the ink stub sits on a slate page, and the notches show that page.
   On slate the footer's Innoscout line needs more than the usual .75 opacity to reach 4.5:1 (5.3:1 at .85). */
.lk-ticket[data-accent="default"] { --page: #343f5c; }
.lk-ticket[data-accent="default"] .ticket { outline: 0; }
.lk-ticket[data-accent="default"] .stub::before, .lk-ticket[data-accent="default"] .stub::after { border: 0; }
.lk-ticket[data-accent="default"] .vfoot .byline .l2 { opacity: .85; }

/* Split: the event owns one side in its own color, the voter acts on the other. Stacks on a phone. */
.lk-split { background: var(--night-deep); }
.lk-split .split { flex: 1 1 auto; display: grid; grid-template-rows: auto 1fr; }
.lk-split .brand { position: relative; overflow: hidden; background: var(--event); color: var(--event-on); padding: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; border-bottom: 6px solid var(--sun); min-height: 4.75rem; }
.lk-split .brand::after { content: ""; position: absolute; width: 34rem; height: 34rem; right: -14rem; top: -12rem; border: 3.5rem solid var(--event-ring); border-radius: 50%; display: none; }
.lk-split .evlogo { position: relative; z-index: 1; flex: 0 0 auto; max-height: 12rem; }
.lk-split .ivmark { position: relative; z-index: 1; }
.lk-split .evname { position: relative; z-index: 1; flex: 1 1 9rem; font-weight: 600; font-size: 1.3rem; line-height: 1.15; letter-spacing: -.01em; min-width: 0; }
.lk-split .action { display: flex; flex-direction: column; min-width: 0; }
.lk-split .action-in { --fg: var(--white); --fg-soft: var(--soft); --a: var(--sun); --ring: var(--sky); --field-border: var(--white); flex: 1 1 auto; width: min(100% - 2rem, 27rem); margin-inline: auto; padding: 2rem 0 1.5rem; display: grid; align-content: center; }
.lk-split .action-in .screen { gap: 1.5rem; }
.lk-split .action-in .screen h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3rem); line-height: 1.05; letter-spacing: -.025em; }
.lk-split .btn-primary { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.lk-split .btn-primary:hover { background: #ffd04f; border-color: #ffd04f; filter: none; }
.lk-split .who { border-left: 6px solid var(--sun); padding: .15rem 0 .25rem 1rem; }
.lk-split .check input { accent-color: var(--sun); }
@media (min-width: 56rem) {
  .lk-split .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
  .lk-split .brand { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; padding: 3rem clamp(2rem, 4vw, 4rem); border-bottom: 0; border-right: 6px solid var(--sun); }
  .lk-split .brand::after { display: block; }
  .lk-split .evname { flex: 0 0 auto; margin-top: auto; font-size: clamp(2.6rem, 4.4vw, 4.5rem); line-height: 1; letter-spacing: -.03em; text-wrap: balance; max-width: 12ch; }
  .lk-split .action-in { padding: 3rem 0 2rem; }
}

/* Stage: two spotlights on the event name, and a full-width desk in the event color where the voter acts. */
.lk-stage { background: var(--night-deep); }
.lk-stage .stage { flex: 1 1 auto; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: 2rem; }
.lk-stage .beam { position: absolute; top: -2rem; width: max(18rem, 30vw); height: 34rem; background: linear-gradient(180deg, rgba(253, 184, 19, .26), rgba(253, 184, 19, 0) 80%); clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); transform-origin: 50% 0; animation: lk-beam 1.1s ease-out backwards; pointer-events: none; }
.lk-stage .beam-l { left: -4%; transform: rotate(-26deg); }
.lk-stage .beam-r { right: -4%; transform: rotate(26deg); animation-delay: .15s; }
@keyframes lk-beam { from { opacity: 0; } to { opacity: 1; } }
.lk-stage .bill { position: relative; width: min(100% - 2rem, 62rem); margin-inline: auto; display: grid; justify-items: center; gap: 1.25rem; text-align: center; }
.lk-stage .evlogo { max-height: 12rem; }
.lk-stage .ivmark { height: 2rem; margin-block: 1rem; }
.lk-stage .evname { color: var(--white); font-weight: 600; font-size: clamp(2.1rem, 1rem + 5.6vw, 4.75rem); line-height: 1; letter-spacing: -.035em; text-wrap: balance; max-width: 20ch; }
.lk-stage .desk { --fg: var(--event-on); --fg-soft: var(--event-on); --a: var(--event-on); --ring: var(--event-on); --field-border: var(--ink); position: relative; margin-top: clamp(1.75rem, 5vw, 3rem); background: var(--event); color: var(--event-on); border-top: 6px solid var(--sun); border-bottom: 1px solid var(--edge); }
.lk-stage .desk-in { width: min(100% - 2rem, 30rem); margin-inline: auto; padding: 1.5rem 0 1.75rem; }
.lk-stage .btn-primary { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.lk-stage .btn-primary:hover { background: #ffd04f; border-color: #ffd04f; filter: none; }
.lk-stage .who dd { font-size: 1.3rem; }
.lk-stage .check input { accent-color: var(--ink); }
@media (max-width: 51.99rem) { .lk-stage .beam { width: 13rem; height: 24rem; opacity: .7; } .lk-stage .beam-l { left: -3rem; } .lk-stage .beam-r { right: -3rem; } }
@media (min-width: 52rem) {
  .lk-stage .stage { padding-top: 3.5rem; }
  .lk-stage .desk-in { width: min(100% - 4rem, 62rem); padding-block: 2.25rem 2.5rem; }
  .lk-stage .desk .screen { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); column-gap: 4rem; align-items: center; }
  .lk-stage .desk .screen:not(:has(.s-act)) { grid-template-columns: minmax(0, 40rem); }
  .lk-stage .who dd { font-size: 1.5rem; }
}
