/* Organizer app and account screens, "Quiet paper" style: Maven Pro (self-hosted) then system fonts, weights 400 to 600 only, square navigation and rules,
   targets of 44 px or more. One file for every organizer 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;
  --night-glow: #24347a;
  --edge: #34447f;
  --sun: #fdb813;
  --ink: #0e1736;
  --paper: #f6f7fb;
  --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: #b98600;
  --warn-bg: #fff4d1;
  --tap: 3rem;
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: 1.6rem;
  --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%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; font: 400 var(--t-md)/1.5 var(--sans); background: var(--white); color: var(--muted); }
h1, h2, h3, h4, 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%; }
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) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Surfaces: components read these local tokens. Paper is the page; night is the top bar. */
body, .paper { --fg: var(--ink); --fg-soft: var(--muted); --border: var(--line); --ring: var(--focus); --a: var(--link); --field: var(--white); --field-border: var(--line-strong); }
.night { --fg: var(--white); --fg-soft: var(--soft); --border: var(--edge); --ring: var(--sky); --a: var(--sun); background: var(--night); color: var(--soft); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
a { color: var(--a); text-underline-offset: .15em; }
h1, h2, h3, h4, strong, b, legend { color: var(--fg); font-weight: 600; }
h1 { font-size: var(--t-xl); font-weight: 500; line-height: 1.15; letter-spacing: -.012em; text-wrap: balance; overflow-wrap: anywhere; }
h2 { font-size: var(--t-lg); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-size: var(--t-md); line-height: 1.3; }
.eyebrow { font-size: var(--t-xs); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-soft); overflow-wrap: anywhere; }
.small { font-size: var(--t-sm); }
.tiny { font-size: var(--t-xs); }
.num { font-variant-numeric: tabular-nums; }
.break { overflow-wrap: anywhere; }
.wrap { width: min(100% - 2rem, 84rem); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 30rem); margin-inline: auto; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.row { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; }
.spread { justify-content: space-between; }
.grow { flex: 1 1 0; min-width: 0; }

/* Top bar and event navigation: always night, flat square items, never pills */
.topbar { background: var(--night); color: var(--soft); border-bottom: 1px solid var(--edge); --fg: var(--white); --a: var(--white); --ring: var(--sky); }
.topbar-row { display: flex; align-items: center; gap: .25rem 1.25rem; min-height: 3.75rem; flex-wrap: wrap; padding-block: .25rem; }
.topbar .logo { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--white); }
.topbar .logo svg { height: 1.5rem; width: auto; display: block; }
.topbar .who { margin-left: auto; display: flex; gap: 0 .5rem; flex-wrap: wrap; align-items: center; font-size: var(--t-sm); }
.topbar .who > a, .topbar summary { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .6rem; color: var(--white); text-decoration: none; cursor: pointer; }
.topbar .who > a:hover, .topbar summary:hover { background: var(--panel); }
.topbar .badge { display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 .6rem; border: 1px solid var(--sun); color: var(--sun); font-size: var(--t-xs); font-weight: 500; overflow-wrap: anywhere; }
.menu { position: relative; }
.menu summary { list-style: none; gap: .4rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.menu-list { position: absolute; right: 0; top: 100%; z-index: 30; min-width: 15rem; background: var(--white); border: 1px solid var(--line-strong); box-shadow: 0 12px 24px -12px rgba(6, 10, 26, .5); --a: var(--link); }
.menu-list p { padding: .6rem .9rem; font-size: var(--t-xs); color: var(--muted); overflow-wrap: anywhere; border-bottom: 1px solid var(--line); }
.menu-list a, .menu-list button { display: flex; align-items: center; width: 100%; min-height: 2.75rem; padding: 0 .9rem; background: none; border: 0; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; font-size: var(--t-sm); }
.menu-list a:hover, .menu-list button:hover { background: var(--paper); }
.evnav { background: var(--night); border-bottom: 1px solid var(--edge); }
.evnav .wrap { display: flex; align-items: center; gap: .75rem; }
.evnav ul { position: relative; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: thin; padding: .25rem 0; flex: 1 1 auto; min-width: 0; }
.evnav .wrap > .pill { flex: none; margin-left: auto; }
.evnav .pill-off { color: var(--soft); }
.evnav li { flex: none; }
.evnav a { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: .3rem .9rem; border-radius: 0; border-bottom: 3px solid transparent; color: var(--soft); font-weight: 500; font-size: var(--t-sm); text-decoration: none; white-space: nowrap; }
.evnav a:hover { color: var(--white); background: var(--panel); }
.evnav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--sun); }
.evnav a i { font-style: normal; font-size: var(--t-xs); font-weight: 600; padding: 0 .4rem; background: var(--panel); color: var(--white); }
.evnav :focus-visible, .topbar :focus-visible { outline-offset: -3px; }

/* Page frame */
main { flex: 1 0 auto; }
.shell { width: min(100% - 2rem, 84rem); margin-inline: auto; padding: 2rem 0 3rem; }
/* The kicker (event name) keeps clear of the h1 on every organizer page and never squeezes it. */
.head { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: flex-start; justify-content: space-between; padding-bottom: 1.5rem; }
.head > div { min-width: 0; }
.head > div:first-child { flex: 1 1 22rem; }
.head .eyebrow { margin-bottom: .4rem; line-height: 1.45; text-wrap: balance; }
.head .actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.foot { padding: 1.5rem 0 2rem; font-size: var(--t-xs); border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: center; justify-content: space-between; }
.foot a { display: inline-flex; align-items: center; min-height: 2.75rem; }
/* Footer links: right-aligned, close together, a small dot between them (inside the link, so the 44 px target stays). */
.foot-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin-left: auto; }
.foot-links a + a::before, .foot-links .foot-version::before { content: ""; width: .25rem; height: .25rem; margin: 0 .6rem; border-radius: 50%; background: var(--line-strong); }
/* The release version (AppVersion), last in the row; the commit is its tooltip. */
.foot-version { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 40rem) { .foot .wrap, .foot-links { justify-content: center; text-align: center; } .foot-links { margin-left: 0; } }

/* 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; background: none; }
.btn-ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ink:hover { background: #1c2a63; border-color: #1c2a63; }
.btn-sun { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.btn-ghost { color: var(--fg); border-color: var(--field-border); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-danger { color: var(--bad); border-color: var(--bad); background: var(--white); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-danger-solid { background: var(--bad); border-color: var(--bad); color: var(--white); }
.btn-sm { min-height: 2.75rem; padding: .35rem 1rem; font-size: var(--t-sm); }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .hero .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; font-size: inherit; }

/* Alerts: rectangular with a left edge; success is a status, errors are alerts */
.alert { display: grid; gap: .15rem; padding: .8rem 1rem; border: 0 solid; border-left-width: 3px; font-size: var(--t-sm); margin-bottom: 1.5rem; }
.alert b { display: block; color: inherit; }
.alert a { 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); color: #4d3600; }

/* Pills and badges: status only */
.pill { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .15rem .7rem; font-size: var(--t-xs); font-weight: 600; line-height: 1.5; white-space: nowrap; border: 1.5px solid transparent; }
.pill-live { background: var(--sun); color: var(--ink); }
.pill-live i { width: .5rem; height: .5rem; border-radius: 50%; background: #c0261b; animation: pulse 1.6s ease-in-out infinite; }
.pill-off { border-color: currentColor; color: var(--fg-soft); }
.pill-todo { background: var(--warn-bg); color: #6b4a00; }
@keyframes pulse { 50% { opacity: .25; } }

/* Form fields: the label above, the hint and the error under the control, both linked with aria-describedby */
.field { display: grid; gap: .35rem; }
.field > label, .label { font-weight: 500; font-size: var(--t-sm); color: var(--fg); }
.hint { font-size: var(--t-xs); color: var(--fg-soft); }
.input, .textarea, .select { 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; }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 55%, calc(100% - .8rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--fg); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { outline-offset: 1px; border-color: var(--ring); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--bad); border-width: 2px; }
.input[readonly] { background: var(--paper); }
.error { font-size: var(--t-sm); font-weight: 500; color: var(--bad); }
.affix { display: flex; align-items: stretch; border: 1.5px solid var(--field-border); border-radius: 8px; background: var(--field); overflow: hidden; }
.affix > span { display: flex; align-items: center; padding: 0 .7rem; background: var(--paper); color: var(--fg-soft); font-size: var(--t-sm); white-space: nowrap; flex: none; }
.affix > .input { border: 0; border-radius: 0; min-width: 0; }
.affix:focus-within { outline: 3px solid var(--ring); outline-offset: 1px; }
.affix > .input:focus-visible { outline: 0; }
.affix:has([aria-invalid="true"]) { border-color: var(--bad); border-width: 2px; }
.copy { display: flex; gap: .5rem; align-items: stretch; flex-wrap: wrap; }
.copy .input { flex: 1 1 12rem; min-width: 0; font-size: var(--t-sm); }
.fields { display: grid; gap: 1.4rem; }
.two { display: grid; gap: 1.4rem; }
@media (min-width: 40rem) { .two { grid-template-columns: 1fr 1fr; } }
.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); }
.check small { display: block; color: var(--fg-soft); font-size: var(--t-xs); }
.pw { position: relative; }
.pw .input { padding-right: 5.5rem; }
.pw button { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); min-height: 2.75rem; padding: 0 .75rem; background: none; border: 0; color: var(--link); text-decoration: underline; cursor: pointer; font-size: var(--t-sm); }

/* Switch: a checkbox with role="switch" */
.switch { display: flex; align-items: center; gap: .9rem; justify-content: space-between; min-height: var(--tap); padding: .45rem 0; cursor: pointer; color: var(--fg); }
.switch small { display: block; color: var(--fg-soft); font-size: var(--t-xs); }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 3.25rem; height: 1.9rem; border-radius: 99px; background: var(--field); border: 2px solid var(--field-border); position: relative; margin: 0; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 50%; left: .2rem; width: 1.2rem; height: 1.2rem; margin-top: -.6rem; border-radius: 50%; background: var(--field-border); transition: transform .15s; }
.switch input:checked { background: var(--ink); border-color: var(--ink); }
.switch input:checked::after { background: var(--sun); transform: translateX(1.35rem); }
.switch-list > * + * { border-top: 1px solid var(--border); }

/* Segmented radio cards */
/* Radio group (o-seg): legend above with its own space (a legend is not a grid or flex item of its fieldset, so the .field gap
   never reaches it), group hint, option cards in one column per option once the group is 34rem wide, then the one error position. */
.choice { display: flex; flex-direction: column; container-type: inline-size; min-width: 0; }
.choice > legend { font-weight: 500; font-size: var(--t-sm); color: var(--fg); padding: 0; }
.choice > .hint { margin-top: .15rem; }
.choice > .opts { margin-top: .6rem; }
.choice > .error, .choice > .note { margin-top: .5rem; }
.opts { display: grid; gap: .6rem; }
/* Each option is its own box: the real radio sits invisibly on the drawn dot, so a click there (or on the label) picks its own card. */
.opts > .o { position: relative; display: grid; min-width: 0; }
.opts > .o > input { position: absolute; left: calc(.9rem + 1.5px); top: calc(1rem + 1.5px); width: 1.15rem; height: 1.15rem; margin: 0; opacity: 0; clip-path: none; z-index: 1; cursor: pointer; }
.opts > .o:has(.has-media) > input { top: 50%; margin-top: -.575rem; }
.opts > .o > input:disabled { cursor: not-allowed; }
@container (min-width: 34rem) { .opts { grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); } }
.opt { position: relative; display: grid; grid-template-columns: 1.15rem minmax(0, 1fr); gap: .75rem; align-items: start; min-height: var(--tap); padding: .8rem .9rem; border: 1.5px solid var(--field-border); border-radius: 8px; background: var(--field); cursor: pointer; color: var(--fg); font-weight: 500; }
.opt.has-media { grid-template-columns: 1.15rem 7.5rem minmax(0, 1fr); align-items: center; }
.opt::before { content: ""; width: 1.15rem; height: 1.15rem; margin-top: .2rem; border-radius: 50%; border: 2px solid var(--field-border); background: var(--white); }
.opt.has-media::before { margin-top: 0; }
.opt:hover { border-color: var(--ink); }
.opt .t { display: block; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.opt .t i { font-style: normal; font-weight: 400; font-size: var(--t-xs); color: var(--muted); margin-left: .35rem; }
.opt small { display: block; font-weight: 400; color: var(--fg-soft); font-size: var(--t-xs); line-height: 1.4; margin-top: .15rem; }
.opt .media { display: block; width: 7.5rem; border: 1px solid var(--line-strong); background: var(--night); }
input:checked + .opt { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff8e0; }
input:checked + .opt::before { border-color: var(--ink); background: radial-gradient(var(--ink) 42%, var(--sun) 46%); }
input:focus-visible + .opt { outline: 3px solid var(--ring); outline-offset: 2px; }
.choice.is-invalid .opt { border-color: var(--bad); }
.choice.is-invalid input:checked + .opt { box-shadow: inset 0 0 0 1.5px var(--bad); }
input:disabled + .opt, input:disabled:checked + .opt { cursor: not-allowed; color: var(--muted); background: var(--paper); border-color: var(--line); box-shadow: none; }
input:disabled + .opt::before { border-color: var(--line-strong); background: var(--paper); }
input:disabled:checked + .opt { border-color: var(--line-strong); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
input:disabled:checked + .opt::before { border-color: var(--muted); background: radial-gradient(var(--muted) 42%, var(--white) 46%); }
input:disabled + .opt .media { opacity: .6; }

/* Cards: hairline rules, no fill */
.card { border-top: 1px solid var(--ink); padding: 1.1rem 0 .5rem; }
.card > h2, .card > h3 { margin-bottom: .25rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 0; }
.stat { border-left: 1px solid var(--line); padding: .1rem .8rem; }
.stat b { display: block; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.02em; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat > span { font-size: var(--t-xs); }
.progress { height: .6rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--w, 0%); border-radius: 99px; background: var(--ink); }
.qr { width: 8.5rem; height: 8.5rem; flex: none; border: 6px solid var(--white); outline: 1px solid var(--line); background: var(--white); }
.qr svg { width: 100%; height: 100%; display: block; }

/* Data table */
.data { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.data caption { text-align: left; padding-bottom: .5rem; }
.data th, .data td { text-align: left; padding: .6rem .75rem; border-top: 1px solid var(--line); vertical-align: top; }
.data th { font-weight: 600; color: var(--fg); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .05em; border-top: 0; border-bottom: 1px solid var(--ink); }
.data td.n, .data th.n { text-align: right; font-variant-numeric: tabular-nums; }
.data-wrap { overflow-x: auto; }

/* Dialog: native <dialog>, the title names the object and the count */
dialog.dlg { width: min(100% - 2rem, 28rem); border: 0; border-radius: 12px; padding: 1.4rem; background: var(--white); color: var(--muted); box-shadow: 0 30px 60px -20px #000; }
dialog.dlg::backdrop { background: rgba(6, 10, 26, .72); }
dialog.dlg h2 { margin-bottom: .5rem; font-size: var(--t-lg); }
dialog.dlg .actions { display: grid; gap: .5rem; margin-top: 1.2rem; }
dialog.dlg form { margin: 0; }

/* Create and Clone event dialogs over the events list (docs/mockups/create-event/create-4-dialog, clone-event/clone-2-dialog).
   Without script the create page renders <dialog open> (not modal): it is drawn fixed over the inert list with the veil as a
   shadow; org.js turns it into a modal dialog. */
dialog.dlg-form { max-height: calc(100dvh - 2rem); overflow: auto; }
dialog.dlg-form[open]:not(:modal) { position: fixed; inset: 0; margin: auto; z-index: 40; box-shadow: 0 0 0 100vmax rgba(6, 10, 26, .72), 0 30px 60px -20px #000; }
dialog.dlg-form h2 { margin-bottom: 1rem; overflow-wrap: anywhere; }
dialog.dlg-form form { display: grid; gap: 1rem; }
dialog.dlg-form .alert { margin-bottom: 0; }
.dlg-acts { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: flex-end; margin-top: .4rem; }
.dlg-acts > .starts { margin-right: auto; display: inline-flex; }
@media (max-width: 26rem) { dialog.dlg-form { width: calc(100% - 1.5rem); } .dlg-acts > .starts { flex: 1 1 100%; } .dlg-acts > .btn { flex: 1 1 auto; } }
.field.title .input { font-size: var(--t-lg); min-height: 3.25rem; padding: .5rem .85rem; }
.field.title .input::placeholder { color: var(--muted); opacity: 1; }
.pair { display: grid; gap: .9rem; }
.tiles > legend { font-weight: 500; font-size: var(--t-sm); color: var(--fg); padding: 0; }
.tilerow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-top: .35rem; }
.tilerow > .o { position: relative; display: grid; min-width: 0; }
.tile { cursor: pointer; display: grid; grid-template-rows: auto 1fr; border: 1.5px solid var(--field-border); border-radius: 8px; background: var(--white); color: var(--fg); font-weight: 500; font-size: var(--t-sm); overflow: hidden; }
.tile svg { display: block; width: 100%; height: 3.25rem; padding: .3rem 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.tile .t { display: flex; align-items: center; min-height: 2.5rem; padding: .35rem .65rem; line-height: 1.25; overflow-wrap: anywhere; }
.tile .ln path { stroke: var(--line-strong); stroke-width: 4; stroke-linecap: round; fill: none; }
.tile .dot circle { fill: var(--white); stroke: var(--line-strong); stroke-width: 1.5; }
.tile .dot circle.on { fill: var(--sun); stroke: var(--ink); }
.tile .box { fill: var(--white); stroke: var(--line-strong); stroke-width: 1.5; }
.tile .go, .tile .pin circle { fill: var(--ink); }
.tile text { font: 500 9px var(--sans); fill: var(--muted); }
.tilerow > .o:hover .tile { border-color: var(--ink); }
.tilerow input:checked + .tile { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.tilerow input:checked + .tile .t { background: #fff8e0; }
.tilerow input:checked + .tile .t::before { content: ""; flex: none; width: .45rem; height: .75rem; margin: 0 .55rem .15rem .1rem; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tilerow input:focus-visible + .tile { outline: 3px solid var(--ring); outline-offset: 2px; }
.rubric, .rubric-tpl { display: grid; gap: .7rem; }
.rubric-head { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--sun); }
.rubric-head h3 { font-size: var(--t-md); font-weight: 600; color: var(--ink); }
.rubric-head a { font-size: var(--t-sm); display: inline-flex; align-items: center; min-height: 2.75rem; }
.weights { display: grid; gap: .3rem; list-style: none; }
.weights li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(2rem, 1fr) 2.5rem; gap: .6rem; align-items: center; font-size: var(--t-sm); color: var(--ink); }
.weights i { height: .5rem; width: var(--w); background: var(--ink); }
.weights b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 26rem) { .weights li { grid-template-columns: minmax(0, 1fr) 2.5rem; gap: .05rem .6rem; } .weights span { grid-column: 1; } .weights b { grid-column: 2; grid-row: 1; } .weights i { grid-column: 1 / -1; } }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; }
.tags li { border: 1px solid var(--line-strong); padding: .1rem .55rem; font-size: var(--t-sm); color: var(--ink); }
.listed { display: flex; gap: .45rem; align-items: flex-start; margin: 0; }
.listed svg { flex: none; margin-top: .15rem; }
.marks { list-style: none; display: grid; gap: .45rem; font-size: var(--t-sm); color: var(--fg); }
.marks li { display: flex; gap: .6rem; align-items: flex-start; }
.marks .no { color: var(--fg-soft); }
.mk { display: inline-grid; place-items: center; flex: none; width: 1.25rem; height: 1.25rem; margin-top: .1rem; border-radius: 50%; }
.mk svg { width: .75rem; height: .75rem; }
.mk-yes { background: var(--ok-bg); color: var(--ok); }
.mk-no { background: var(--paper); color: var(--line-strong); box-shadow: inset 0 0 0 1.5px var(--line); }

/* Section navigation, status rail and save bar of the settings page */
.settings { display: grid; gap: 1.5rem; align-items: start; }
.side ul { display: grid; border-left: 1px solid var(--line); }
.side a { display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .2rem .9rem .2rem 1.1rem; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; font-size: var(--t-sm); color: var(--muted); }
.side a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.side a.cur { color: var(--ink); border-left-color: var(--ink); font-weight: 500; }
.side a:focus-visible, .side summary:focus-visible { outline-offset: -3px; }
.side summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; padding: 0 .9rem; border: 1px solid var(--line-strong); color: var(--ink); font-weight: 500; }
.side details[open] summary { margin-bottom: .6rem; }
.side .badge { margin-left: auto; font-size: var(--t-xs); white-space: nowrap; color: var(--bad); font-weight: 500; }
.sec { scroll-margin-top: 1rem; padding: 2.5rem 0; border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: 0; padding-top: 1rem; }
.sec > header { margin-bottom: 1.5rem; }
.sec > header p { font-size: var(--t-sm); margin-top: .2rem; }
/* The settings status rail (scoped: the grid rows also have a .status cell, which these rules used to move into another column):
   one tinted panel with the Live switch, the QR code above the voting link, the link actions and the counts in a 2 x 2 grid. */
.settings > .status { display: grid; gap: 1rem; align-content: start; }
.panel { background: var(--paper); border-top: 2px solid var(--ink); padding: 1.25rem; display: grid; gap: 1.25rem; }
.panel .btn-ghost { background: var(--white); }
.panel .share { display: grid; gap: .3rem; justify-items: center; text-align: center; }
.panel .share > .qr { width: 9rem; height: 9rem; margin-bottom: .6rem; }
.panel .share > .acts { width: 100%; margin-top: .75rem; }
.panel .now { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.panel .now .stats { margin-top: .75rem; }
.panel .stat { border-left-color: var(--line-strong); }
/* The Live switch: one control that names its state ("Live" or "Switched off"), its hint on the left. */
.live { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); margin: 0; }
.live p { font-size: var(--t-sm); min-width: 0; }
.livetog { appearance: none; -webkit-appearance: none; flex: none; display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; margin: 0; padding: .25rem .4rem .25rem 1.1rem; border-radius: 99px; border: 2px solid var(--ink); background: var(--sun); color: var(--ink); font-weight: 600; font-size: var(--t-sm); line-height: 1.15; white-space: nowrap; cursor: pointer; }
.livetog .knob { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); }
.livetog[aria-checked="false"] { flex-direction: row-reverse; padding: .25rem 1.1rem .25rem .4rem; background: var(--white); border-color: var(--line-strong); }
.livetog[aria-checked="false"] .knob { background: var(--line-strong); }
.livetog[aria-busy="true"] { opacity: .6; cursor: progress; }
.panel [data-live-error] a { color: inherit; }
/* Voting link: breaks only after the host, and inside the slug only when the slug alone is wider than its box. */
.vlink { font-size: var(--t-md); line-height: 1.35; }
.vlink a { text-decoration: none; }
.vlink a span, .vlink a b { display: inline-block; max-width: 100%; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: .15em; vertical-align: top; }
.vlink a b { font-weight: 500; color: inherit; }
/* Buttons and links of the panel stay on one line each. */
.acts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.acts form { margin: 0; display: flex; }
.acts .btn { white-space: nowrap; flex: 1 1 auto; }
.acts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acts-grid form { display: grid; grid-column: 1 / -1; }
.golinks { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.golinks a { display: inline-flex; align-items: center; min-height: 2.75rem; white-space: nowrap; }
.crits { display: grid; gap: 1.4rem; }
/* align-items: start keeps the inputs of a row on one line whatever the hints below them; the Max points and Weight tracks are wide enough for their hints on one line */
.crit { display: grid; gap: .7rem; grid-template-columns: 1fr 1fr; align-items: start; padding: .2rem 0 .2rem 1.1rem; border-left: 2px solid var(--line); }
.crit > h3, .crit > .full { grid-column: 1 / -1; }
.crit > .name { grid-column: 1 / -1; }
@media (min-width: 40rem) { .crit { grid-template-columns: minmax(0, 1fr) 7rem 9.5rem; } .crit > .name { grid-column: 1; } .crit > h3 { grid-column: 1 / -1; } .crit > .lim .hint { white-space: nowrap; } }
.upload { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: center; }
.upload .prev { width: 6.5rem; height: 3.5rem; grid-template: minmax(0, 1fr) / minmax(0, 1fr); border: 1.5px dashed var(--line-strong); display: grid; place-items: center; font-size: var(--t-xs); text-align: center; line-height: 1.2; background: var(--paper); overflow: hidden; }
.upload .prev.sq { width: 3.5rem; }
.upload .prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.swatch { display: flex; gap: .6rem; align-items: stretch; }
.swatch i { flex: none; width: 3rem; border-radius: 8px; border: 1.5px solid var(--line-strong); }
.danger { display: flex; flex-wrap: wrap; gap: .6rem; }
.savebar { position: sticky; bottom: 0; z-index: 5; background: var(--white); border-top: 1px solid var(--line-strong); padding: .6rem 0 calc(.6rem + env(safe-area-inset-bottom)); }
/* The bar sits inside the page column, so its content uses the full column width and lines up with the rows above it */
.savebar .wrap { width: 100%; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.savebar p { font-size: var(--t-sm); }
.savebar a { color: var(--link); }
.savebar .row { gap: .5rem; }
@media (max-width: 39.99rem) { .panel { padding: 1rem .5rem; } }
@media (max-width: 59.99rem) { .settings > .status { order: -1; } }
/* The form and its wrapper take no box: the two groups inside the form are grid items of .settings. Group one (Basics to Legal)
   sits beside the status rail, group two (Voting page, Manage) spans from the second column to the end, so the previews get the width. */
.formcol, #primaryForm { display: contents; }
.grp { min-width: 0; }
.grp-design > .sec:first-of-type { border-top: 1px solid var(--line); padding-top: 2.5rem; }
@media (min-width: 60rem) {
  .settings { grid-template-columns: 12rem minmax(0, 1fr); column-gap: 3.5rem; }
  .side { position: sticky; top: 1rem; grid-column: 1; grid-row: 1 / span 3; }
  .side summary { display: none; }
  .settings > .status { grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .grp-main { grid-column: 2; grid-row: 2; }
  .grp-design { grid-column: 2; grid-row: 3; }
}
@media (min-width: 60rem) and (max-width: 75.99rem) {
  .panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2.5rem; }
  .panel > .live, .panel > [data-live-error], .panel > .next { grid-column: 1 / -1; }
  .panel .now { border-top: 0; padding-top: 0; }
}
@media (min-width: 76rem) {
  .settings { grid-template-columns: 11rem minmax(0, 1fr) 23rem; column-gap: 2.5rem; }
  .side { grid-row: 1 / span 2; }
  /* The rail stretches over row one only; its panel sticks inside it, so it scrolls away with Basics to Legal (a sticky grid item
     itself would stay in view over the full-width Voting page row). */
  .settings > .status { grid-column: 3; grid-row: 1; display: block; align-self: stretch; }
  .settings > .status > .panel { position: sticky; top: 1rem; }
  .grp-main { grid-column: 2; grid-row: 1; }
  .grp-design { grid-column: 2 / -1; grid-row: 2; }
}

/* Event list */
.empty { display: grid; gap: .75rem; justify-items: start; padding: 2rem 0; max-width: 34rem; }

/* Account screens and account page */
/* Signed-out account screens (_LayoutAccount), the split design: a night panel with product proof on the left (a logo bar
   below 960 px), the page on white on the right. docs/mockups/organizer-sign-in/auth-4-split-notes. */
.auth-split { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; position: relative; }
.auth-panel { background: radial-gradient(50rem 26rem at 90% 0%, var(--night-glow) 0%, transparent 65%), var(--night); color: var(--soft); padding: .5rem 1rem; --fg: var(--white); --a: var(--white); --ring: var(--sky); }
.auth-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .7rem; padding-right: 7.5rem; min-height: 2.75rem; }
.auth-panel .logo { display: inline-flex; align-items: center; min-height: 2.75rem; }
.auth-panel .logo img { display: block; height: 1.6rem; width: auto; }
.auth-lockup { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding-left: .7rem; font-size: var(--t-xs); color: var(--soft); text-decoration: none; background: linear-gradient(var(--edge), var(--edge)) left center / 1px 1.1rem no-repeat; }
.auth-lockup img { display: block; height: 1rem; width: auto; }
.auth-proof { display: none; }
.auth-side { display: flex; flex-direction: column; min-width: 0; }
.auth-who { position: absolute; top: .5rem; right: .4rem; display: flex; gap: 0 .25rem; align-items: center; font-size: var(--t-sm); --a: var(--white); --ring: var(--sky); }
.auth-who a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .6rem; color: var(--a); text-decoration: none; font-weight: 500; border-radius: 0; }
.auth-who a:hover { background: var(--panel); }
.auth { flex: 1 0 auto; display: grid; align-content: start; width: min(100% - 2rem, 26rem); margin-inline: auto; padding: 2rem 0 2.5rem; }
.auth > * { min-width: 0; }
.auth-head { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.auth h1 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.auth h1::after { content: ""; display: block; width: 3rem; height: 4px; background: var(--sun); margin-top: .8rem; }
.auth .lead { font-size: var(--t-sm); }
.auth .tnote { background: var(--paper); border-left: 3px solid var(--ink); padding: .6rem .8rem; color: var(--ink); }
.auth-card, .auth-form { display: grid; gap: 1.1rem; }
.auth-form.tight { gap: .75rem; }
.auth-card > *, .auth-form > * { min-width: 0; }
.auth .alert { margin-bottom: 0; }
.auth-next { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.auth-next h2 { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.auth-notes { display: grid; gap: .9rem; }
.auth-notes div { border-left: 3px solid var(--sun); padding-left: .9rem; }
.auth-notes dt { color: var(--ink); font-weight: 600; font-size: var(--t-sm); }
.auth-notes dd { font-size: var(--t-sm); }
.auth-body .foot { border-top: 1px solid var(--line); padding: .75rem 1rem 1.25rem; }
.foot-in { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: center; justify-content: space-between; }
@media (max-width: 40rem) { .foot-in { justify-content: center; text-align: center; } }
@media (max-width: 22.5rem) { .auth-lockup { display: none; } }
@media (min-width: 60rem) {
  .auth-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto; }
  .auth-panel { padding: 1.5rem clamp(1.5rem, 4vw, 3.5rem) 2.5rem; display: flex; flex-direction: column; }
  .auth-top { padding-right: 0; }
  .auth-panel .logo img { height: 1.75rem; }
  .auth-proof { display: grid; gap: 1.75rem; margin-block: auto; padding-top: 2rem; max-width: 36rem; }
  .auth-tagline { font-size: clamp(1.9rem, 1rem + 2vw, 2.75rem); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; color: var(--white); text-wrap: balance; max-width: 16ch; }
  .auth-shot img { display: block; height: auto; border: 1px solid var(--edge); border-radius: 10px; box-shadow: 0 0 0 6px rgba(253, 184, 19, .1), 0 40px 80px -40px #000; }
  .auth-shot figcaption { margin-top: .9rem; font-size: var(--t-xs); }
  .auth-facts { display: grid; gap: .6rem; font-size: var(--t-sm); }
  .auth-facts li { padding-left: 1.6rem; position: relative; }
  .auth-facts li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7rem; height: .7rem; background: var(--sun); }
  .auth-facts b { color: var(--white); }
  .auth-who { position: static; align-self: flex-end; padding: 1.25rem 1.5rem 0; --a: var(--ink); --ring: var(--focus); }
  .auth-who a:hover { background: var(--paper); }
  .auth { align-content: center; padding: 2rem 0 3rem; }
  .auth-body .foot { padding-inline: 1.5rem; }
}
/* The Altcha widget (vendored, a custom element): restyled only through its CSS variables. */
.altcha-box { min-height: 3.25rem; }
altcha-widget { --altcha-max-width: 100%; --altcha-border-radius: 8px; --altcha-color-border: var(--line-strong); --altcha-color-text: var(--ink); --altcha-color-base: var(--white); --altcha-color-border-focus: var(--focus); --altcha-color-error-text: var(--bad); display: block; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; font-size: var(--t-sm); }
dl.facts dt { color: var(--fg-soft); }
dl.facts dd { color: var(--fg); overflow-wrap: anywhere; }
.noscript { padding: .5rem 1rem; background: var(--warn-bg); color: #4d3600; font-size: var(--t-sm); }

/* Save bar states: idle, unsaved, error, saved, pending (data-state on .savebar) */
.savebar [data-when] { display: none; }
.savebar[data-state="idle"] [data-when~="idle"], .savebar[data-state="unsaved"] [data-when~="unsaved"], .savebar[data-state="error"] [data-when~="error"],
.savebar[data-state="upload-error"] [data-when~="upload-error"], .savebar[data-state="saved"] [data-when~="saved"], .savebar[data-state="pending"] [data-when~="pending"] { display: block; }
.savebar[data-state="idle"] [data-when~="actions-idle"], .savebar[data-state="saved"] [data-when~="actions-idle"] { display: flex; }

/* Grids (entries, voters, co-organizers): rows that stack at 360 px, a delete that is marked until Save, an import panel and a toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.toolbar .row { gap: .5rem; }
.toolbar .search { flex: 1 1 14rem; max-width: 24rem; }
.rows { border-top: 1px solid var(--ink); }
.rows > li { border-bottom: 1px solid var(--line); padding: 1rem 0; display: grid; gap: .75rem; }
.rows .rowhead { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; justify-content: space-between; }
.rows .rowhead h3 { overflow-wrap: anywhere; }
.rows .rowhead .meta { font-size: var(--t-xs); color: var(--fg-soft); }
.rows .rowfields { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .rows .rowfields.two-up { grid-template-columns: 1fr 1fr; } .rows .rowfields .wide { grid-column: 1 / -1; } }
.rows .rowact { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; }
.rows .removed-note { display: none; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; padding: .5rem .75rem; background: var(--warn-bg); border-left: 3px solid var(--warn); color: #4d3600; font-size: var(--t-sm); }
.rows li.is-removed .removed-note { display: flex; }
.rows li.is-removed .rowfields, .rows li.is-removed .rowact .btn { display: none; }
.rows li.is-removed .rowhead h3 { text-decoration: line-through; color: var(--fg-soft); }
.rows li[hidden] { display: none; }
/* Entries: a compact summary per row and a native <dialog> sheet with the fields (the sheet is inside the grid form) */
.rows .rowsum { flex: 1 1 14rem; min-width: 0; display: grid; gap: .15rem; }
.rows .rowsub { font-size: var(--t-sm); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .rowsub:empty { display: none; }
.rows .rowfix { font-size: var(--t-xs); font-weight: 600; color: var(--bad); }
.rows li.is-removed .rowsub, .rows li.is-removed .rowfix { display: none; }
dialog.sheet { width: min(100% - 1rem, 40rem); max-height: calc(100dvh - 1rem); overflow: auto; border: 0; border-radius: 12px; padding: 1.25rem; background: var(--white); color: var(--ink); box-shadow: 0 30px 60px -20px #000; }
dialog.sheet::backdrop { background: rgba(6, 10, 26, .72); }
dialog.sheet h2 { font-size: var(--t-lg); margin-bottom: 1rem; }
dialog.sheet .actions { display: flex; justify-content: flex-end; margin-top: 1.25rem; }
dialog.sheet .rowfields { display: grid; gap: 1rem; }
/* One row pattern for the voters and co-organizers grids: every row is its own grid with the same fixed tracks (two fields,
   status, actions), so the columns line up across rows whatever the text length. The fields keep their label above the
   input, so status and actions start one label line down and sit on the input line. Phones and tablets stack. */
.voter { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) {
  .voter { --row-status: 14rem; --row-act: 10rem; --label-line: calc(var(--t-sm) * 1.5 + .35rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--row-status) var(--row-act); align-items: start; column-gap: 1rem; }
  .voter > .status, .voter > .rowact { margin-top: var(--label-line); }
  .voter.email { grid-template-columns: minmax(0, 1fr) var(--row-status) var(--row-act); align-items: center; }
  .voter.email > .status, .voter.email > .rowact { margin-top: 0; }
  .voter > .rowact { justify-content: flex-end; min-height: var(--tap); }
  .voter .removed-note { grid-column: 1 / -1; }
}
.voter .status { display: grid; gap: .1rem; font-size: var(--t-sm); color: var(--fg); align-content: center; min-height: var(--tap); }
.voter .status small { color: var(--fg-soft); font-size: var(--t-xs); }
.voter .status .lock { color: var(--bad); font-weight: 500; }
.voter .who { overflow-wrap: anywhere; color: var(--fg); font-weight: 500; }
.hintline { font-size: var(--t-xs); color: var(--fg-soft); }
.panel { border: 1px solid var(--line); padding: 1rem; display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.panel h2 { font-size: var(--t-md); }
.panel input[type="file"] { padding: .45rem .6rem; }
.preview ul { display: grid; gap: .25rem; font-size: var(--t-sm); }
.preview li b { font-weight: 600; }
.preview li span { color: var(--fg-soft); overflow-wrap: anywhere; }
/* Spreadsheet import (docs/mockups/entry-import/b-inline): "Import entries" in the page head with its help, the inline band
   (file, upload progress, reading, preview, error) and the whole-page drop target. The band shows one data-when block per state. */
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.imp { position: relative; display: inline-flex; align-items: center; gap: .35rem; }
.tipbtn { flex: none; display: none; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; border: 2px solid var(--field-border); background: var(--white); color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1; cursor: pointer; }
.tipbtn[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (hover: none) { .tipbtn { display: inline-grid; } }
.tip { position: absolute; z-index: 40; top: calc(100% + .7rem); right: 0; width: min(23rem, 100vw - 2rem); padding: .9rem 1rem; background: var(--white); color: var(--muted); border: 1px solid var(--line-strong); border-top: 3px solid var(--ink); font-size: var(--t-sm); line-height: 1.45; text-align: left; box-shadow: 0 16px 32px -14px rgba(6, 10, 26, .6); display: grid; gap: .5rem; --fg: var(--ink); --a: var(--link); }
.tip::after { content: ""; position: absolute; left: 0; right: 0; top: -.85rem; height: .75rem; }
.tip h3 { font-size: var(--t-sm); color: var(--ink); font-weight: 600; }
.tip ul { display: grid; gap: .3rem; }
.tip li { padding-left: .9rem; position: relative; }
.tip li::before { content: ""; position: absolute; left: 0; top: .6em; width: .35rem; height: .35rem; background: var(--ink); }
.tip a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 500; }
.tip p.keys { font-size: var(--t-xs); border-top: 1px solid var(--line); padding-top: .5rem; }
@media (max-width: 40rem) { .tip { position: fixed; top: auto; left: 1rem; right: 1rem; width: auto; margin-top: .7rem; } }
.drop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; align-content: start; padding: 1.5rem; padding-top: 6rem; text-align: center; pointer-events: none; background: rgba(246, 247, 251, .88); color: var(--muted); }
.drop .frame { position: absolute; inset: .5rem; border: 3px dashed var(--ink); }
.drop .msg { position: relative; display: grid; gap: .5rem; justify-items: center; max-width: 30rem; background: var(--ink); color: var(--soft); padding: 1.25rem 1.5rem; border-bottom: 4px solid var(--sun); }
.drop h2 { font-size: var(--t-lg); font-weight: 600; color: var(--white); }
.band { border: 1px solid var(--line-strong); border-top: 3px solid var(--ink); padding: 1rem; margin-bottom: 1.5rem; display: grid; gap: 1rem; background: var(--white); }
.band > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.band > header h2 { font-size: var(--t-md); }
.band [data-when] { display: none; }
.band[data-state="uploading"] [data-when="uploading"], .band[data-state="reading"] [data-when="reading"], .band[data-state="error"] [data-when="error"] { display: grid; }
.band[data-state="preview"] .pv[data-when="preview"] { display: grid; }
.band[data-state="preview"] .row[data-when="preview"] { display: flex; }
.fileline { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .75rem; align-items: center; }
.fileicon { display: grid; place-items: center; width: 2.75rem; height: 3.25rem; border: 1.5px solid currentColor; color: var(--fg); font-size: .6875rem; font-weight: 600; letter-spacing: .04em; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); background: linear-gradient(225deg, currentColor 0 .62rem, transparent .62rem); }
.fileline .name { color: var(--fg); font-weight: 500; overflow-wrap: anywhere; }
.fileline .meta { font-size: var(--t-xs); color: var(--fg-soft); }
.upl { gap: .5rem; }
.upl .progress { height: .5rem; }
.upl .state { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; font-size: var(--t-sm); color: var(--fg); font-variant-numeric: tabular-nums; }
.upl .state small { color: var(--fg-soft); font-size: var(--t-xs); }
.progress.busy i { width: 35%; animation: imp-slide 1.3s ease-in-out infinite alternate; }
@keyframes imp-slide { from { margin-left: 0; } to { margin-left: 65%; } }
@media (prefers-reduced-motion: reduce) { .progress.busy i { animation: none; width: 100%; opacity: .5; } }
.pv { gap: .75rem; }
.pv .alert, .errbox .alert { margin-bottom: 0; }
.errbox { gap: .75rem; }
.errbox .row a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: var(--t-sm); }
.xbtn { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--fg); cursor: pointer; }
.xbtn:hover { background: var(--paper); }
.xbtn svg { width: 1.1rem; height: 1.1rem; }
/* Events list (docs/mockups/events-list/events-1-stage): the night stage under the top bar with the title, the plan slots and
   Create event; live events as cards with counts, a turnout bar and the next step; switched-off events as compact rows. */
.lk { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .35rem; font-size: var(--t-sm); font-weight: 500; }
button.lk { background: none; border: 0; color: var(--a); text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.stage { background: radial-gradient(52rem 22rem at 88% -30%, var(--night-glow) 0, transparent 62%), radial-gradient(40rem 18rem at 0% 130%, var(--panel) 0, transparent 60%), var(--night); border-bottom: 4px solid var(--sun); }
.stage-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem 2rem; align-items: end; padding: 2.25rem 0 2rem; }
.stage h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); letter-spacing: -.02em; color: var(--white); }
.stage-sum { margin-top: .35rem; color: var(--soft); }
.slots { margin-top: 1.25rem; display: grid; gap: .5rem; font-size: var(--t-sm); max-width: 44rem; }
.slots b { color: var(--white); }
.slotrow { display: grid; grid-template-columns: repeat(10, minmax(0, 2.5rem)); gap: .3rem; }
.slotrow i { height: .6rem; border: 1.5px solid var(--edge); }
.slotrow i.on { background: var(--sun); border-color: var(--sun); }
.slotbar { max-width: 27.7rem; height: .6rem; background: var(--edge); border-radius: 0; margin-top: 0; }
.bar.slotbar i { background: var(--sun); }
@media (max-width: 40rem) { .stage-in { grid-template-columns: 1fr; padding: 1.5rem 0; } .stage-in > .btn { justify-self: start; } }
.firstrun { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; padding: .5rem 0 2.75rem; }
.firstrun h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); font-weight: 500; color: var(--white); }
.firstrun > div > p { margin: .75rem 0 1.25rem; max-width: 36rem; }
.evsteps { display: grid; gap: .6rem; counter-reset: s; }
.evsteps li { counter-increment: s; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .9rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--edge); background: rgba(25, 38, 90, .55); color: var(--white); }
.evsteps li::before { content: counter(s); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1.5px solid var(--sun); color: var(--sun); font-weight: 600; font-size: var(--t-lg); }
.evsteps small { display: block; color: var(--soft); font-size: var(--t-xs); }
@media (max-width: 52rem) { .firstrun { grid-template-columns: 1fr; } }
.evsec { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 .9rem; font-size: var(--t-lg); }
.evsec + * { margin-bottom: 2.25rem; }
.evsec span { font-size: var(--t-sm); color: var(--muted); font-weight: 400; }
.evcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: 1rem; }
.evcard { position: relative; display: grid; gap: .9rem; align-content: start; border: 1px solid var(--line); border-top: 4px solid var(--ink); background: var(--white); padding: 1.1rem 1.25rem 1rem; box-shadow: 0 10px 24px -18px rgba(14, 23, 54, .45); }
.evcard:hover { border-color: var(--line-strong); border-top-color: var(--ink); }
.evcard header { display: flex; gap: .75rem; justify-content: space-between; align-items: start; }
.evcard h3 { font-size: var(--t-lg); overflow-wrap: anywhere; }
.evcard h3 a { color: var(--ink); text-decoration: none; display: inline-block; min-height: 2.75rem; }
.evcard h3 a:hover { text-decoration: underline; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figs > div { display: flex; flex-direction: column-reverse; padding: .6rem .75rem .6rem 0; }
.figs > div + div { padding-left: .75rem; border-left: 1px solid var(--line); }
.figs dd { font-size: 2rem; font-weight: 500; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.figs dt { font-size: var(--t-xs); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.evprog { font-size: var(--t-sm); color: var(--ink); }
.evprog .bar { height: .6rem; margin-top: .4rem; }
.evprog .bar i { background: var(--ok); }
.evprog small { display: block; color: var(--muted); font-size: var(--t-xs); margin-top: .3rem; }
.evlinks { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; }
.evlinks .btn { margin-right: .4rem; }
.solo { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; padding: 1.5rem; margin-bottom: 2.25rem; }
.solo > .solo-main { display: grid; gap: 1rem; align-content: start; }
.solo h3 { font-size: var(--t-xl); font-weight: 500; }
.solo .figs dd { font-size: clamp(2.2rem, 1.5rem + 2.5vw, 3.25rem); }
.nextbox { background: var(--paper); border-left: 4px solid var(--sun); padding: 1.1rem 1.25rem; display: grid; gap: .75rem; align-content: start; }
.nextbox h4 { font-size: var(--t-lg); }
.nextbox .btn { justify-self: start; }
.evvlink { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; justify-content: space-between; border: 1px solid var(--line); background: var(--white); padding: .25rem .25rem .25rem .8rem; font-size: var(--t-sm); color: var(--ink); overflow-wrap: anywhere; }
.evvlink b { font-weight: 600; }
.nextbox ul { display: flex; flex-wrap: wrap; gap: 0 .75rem; }
@media (max-width: 56rem) { .solo { grid-template-columns: 1fr; padding: 1.1rem; } }
.offs > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1rem; align-items: center; padding: .6rem 0; border-top: 1px solid var(--line); }
.offs > li:last-child { border-bottom: 1px solid var(--line); }
.offs .nm { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; }
.offs .nm a { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; }
.offs .nm a:hover { text-decoration: underline; }
.offs .meta { font-size: var(--t-sm); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 1rem; }
.offs .olinks { grid-row: span 2; display: flex; flex-wrap: wrap; gap: 0 .5rem; }
@media (max-width: 40rem) { .offs > li { grid-template-columns: 1fr; } .offs .olinks { grid-row: auto; } }
.tpls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.tpl { border: 1px solid var(--line); padding: 1.1rem 1.25rem; display: grid; gap: .7rem; align-content: start; }
.tpl h3 { font-size: var(--t-lg); }
.tpl p { font-size: var(--t-sm); }
.wbar { display: flex; height: .6rem; gap: 2px; }
.wbar i { flex: var(--w) 0 0; background: var(--ink); }
.wbar i:nth-child(even) { background: var(--line-strong); }
.tcrit { display: flex; flex-wrap: wrap; gap: .15rem .9rem; font-size: var(--t-sm); color: var(--ink); }
.tcrit b { font-weight: 500; color: var(--muted); }
.tpl .btn { justify-self: start; }
.copyrow { display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.copyrow .input { font-size: var(--t-sm); }
.facts-list { display: grid; gap: .35rem; padding-left: 1.1rem; list-style: disc; font-size: var(--t-sm); }
.facts-list li::marker { color: var(--fg-soft); }
.sharegrid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 52rem) { .sharegrid { grid-template-columns: 17rem minmax(0, 1fr); } }
.qr-big { width: min(100%, 17rem); height: auto; aspect-ratio: 1; border: 8px solid var(--white); outline: 1px solid var(--line); background: var(--white); }
.qr-big svg { width: 100%; height: 100%; display: block; }
.savebar .row .btn { min-width: 6rem; }
.rows li.is-removed .field, .rows li.is-removed .status { display: none; }
.rows li.is-removed .removed-note b { font-weight: 600; color: inherit; }

/* Results: the status hero (state, progress, Present the winners), underline tabs (Ranking, Votes, Voters) and the tables below;
   comments share the ranking table (first column fixed, cards on phones) and the simple bars */
.updswitch { min-height: 2.75rem; padding: 0; gap: .75rem; }
.updshort { font-size: var(--t-sm); }
.upderr { margin: -.75rem 0 1.25rem; }
.tipwrap { position: relative; }
.swtip { position: absolute; left: 0; right: 0; top: calc(100% + .25rem); z-index: 20; background: var(--ink); color: var(--white); font-size: var(--t-xs); font-weight: 400; line-height: 1.4; padding: .45rem .7rem; visibility: hidden; opacity: 0; pointer-events: none; }
.tipwrap:hover .swtip, .tipwrap:focus-within .swtip { visibility: visible; opacity: 1; }
.hero { background: var(--paper); border-left: 3px solid var(--sun); padding: 1.25rem 1rem 1rem; margin-bottom: 2.5rem; display: grid; gap: 1.5rem 2.5rem; }
.hero > * { min-width: 0; }
.bigline { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); font-weight: 500; color: var(--ink); line-height: 1.15; letter-spacing: -.012em; text-wrap: balance; }
.hero .eyebrow { margin-bottom: .5rem; }
.hero .progress { margin: .7rem 0 .4rem; max-width: 34rem; background: var(--white); outline: 1px solid var(--line); }
.hero .lead { color: var(--ink); max-width: 44rem; }
.hero .waiting { margin: .5rem 0 0; }
.herorest { display: grid; gap: .5rem; }
.herorest form { display: grid; margin: 0; }
.hero .btn-ghost { background: var(--white); }
@media (min-width: 40rem) { .hero { padding: 1.75rem 2rem 1.25rem; } .herorest { display: flex; flex-wrap: wrap; align-items: center; } .herorest > *, .herorest form .btn { min-width: 12rem; } }
.hero > .tiny { max-width: 60rem; }
/* The event in three steps (docs/mockups/results-live-explained/results-hero-b): a numbered line, a check on finished steps, the
   current one in the sun with the "Now" tag and the dark button. Stacked with a line on the left, three columns from 62rem. */
.hsteps { display: grid; gap: 0; counter-reset: hs; }
.hstep { position: relative; display: grid; gap: .75rem; align-content: start; padding: 0 0 1.5rem 2.75rem; min-width: 0; }
.hstep::before { counter-increment: hs; content: counter(hs); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; background: var(--white); border: 2px solid var(--line-strong); color: var(--ink); font-weight: 600; font-size: var(--t-sm); z-index: 1; }
.hstep::after { content: ""; position: absolute; left: calc(.95rem - 1px); top: 1.9rem; bottom: 0; width: 2px; background: var(--line-strong); }
.hstep:last-child::after { display: none; }
.hstep:last-child { padding-bottom: 0; }
.hstep.cur::before { background: var(--sun); border-color: var(--ink); }
.hstep.done::before { content: "\2713"; background: var(--ink); border-color: var(--ink); color: var(--white); }
.hstep-when { font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); min-height: 1.9rem; display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; }
.hstep.cur .hstep-when { color: var(--ink); }
.hstep h3 { font-size: var(--t-lg); }
.hstep p { font-size: var(--t-sm); }
.hstep b { font-weight: 600; color: var(--ink); }
.hstep .btn { justify-self: start; min-width: 12rem; }
.hstep-tag { display: inline-flex; align-items: center; padding: .1rem .5rem; font-size: var(--t-xs); font-weight: 600; line-height: 1.5; border: 1.5px solid var(--line-strong); color: var(--ink); background: var(--white); white-space: nowrap; }
.hstep-tag.now { background: var(--sun); border-color: var(--sun); }
.hstep-link { background: var(--white); border: 1px solid var(--line); padding: .6rem .75rem; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .75rem; align-items: center; max-width: 20rem; font-size: var(--t-sm); color: var(--ink); overflow-wrap: anywhere; }
.hstep-link .qr { width: 3.5rem; height: 3.5rem; border: 0; outline: 0; }
@media (max-width: 26rem) { .hstep .btn { justify-self: stretch; } }
@media (min-width: 62rem) {
  .hsteps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
  .hstep { padding: 2.75rem 0 0; grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
  .hstep::after { left: 1.9rem; right: -2rem; top: calc(.95rem - 1px); bottom: auto; width: auto; height: 2px; }
  .hstep:last-child::after { display: none; }
  .hstep-link { max-width: none; align-self: end; }
  /* Step 1 has the link box as a fourth row, steps 2 and 3 have none: the button always takes row 5, so the three line up. */
  .hstep > .btn { grid-row: 5; }
}
.rtabs { margin: -1rem 0 1.75rem; border-bottom: 1px solid var(--line-strong); }
.rtabs ul { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: thin; }
.rtabs li { flex: none; }
.rtabs a { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: var(--tap); padding: 0 1rem; border-bottom: 3px solid transparent; color: var(--muted); font-weight: 500; font-size: var(--t-sm); text-decoration: none; white-space: nowrap; }
.rtabs a i { font-style: normal; font-size: var(--t-xs); font-weight: 600; padding: 0 .4rem; background: var(--paper); color: var(--ink); font-variant-numeric: tabular-nums; }
.rtabs a:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.rtabs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.rtabs :focus-visible { outline-offset: -3px; }
@media (max-width: 26rem) { .rtabs li { flex: 1 1 0; } .rtabs a { width: 100%; padding: 0 .4rem; } }
.tabview { padding-bottom: 2.5rem; }
.rtools { display: flex; justify-content: flex-end; margin: -.75rem 0 .25rem; }
.rtools .switch { min-height: 2.75rem; padding: 0; gap: .75rem; }
.cv { display: grid; grid-template-columns: minmax(4rem, 1fr) 9.5rem 6.5rem; gap: 1rem; align-items: center; }
.cv .bar { margin: 0; }
.cv .tx { font-variant-numeric: tabular-nums; white-space: nowrap; }
.flag { justify-self: start; color: #6b4a00; background: var(--warn-bg); padding: 0 .4rem; font-weight: 500; font-size: var(--t-xs); white-space: nowrap; }
.data th.cvh { width: 62%; }
.tfoot { margin: -.25rem 0 2.5rem; text-align: right; }
.g-danger { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.g-danger h2 { font-size: var(--t-md); margin-bottom: .5rem; color: var(--bad); }
.dz { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; border: 1.5px solid var(--bad); padding: 1rem; }
.dz p { max-width: 40rem; }
.stat b small { font-size: var(--t-sm); font-weight: 400; color: var(--fg-soft); }
.waiting { margin-bottom: 1.5rem; }
.waiting summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; color: var(--fg); font-weight: 500; }
.plain { display: grid; gap: .15rem; font-size: var(--t-sm); padding: .25rem 0 .5rem; columns: 14rem; }
.bar { display: block; height: .5rem; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: .25rem; }
.bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--ink); }
td .bar { min-width: 4rem; }
.data th.first { min-width: 9rem; }
.data-wrap .data th.first { position: sticky; left: 0; z-index: 1; background: var(--white); }
.data tbody th { text-transform: none; letter-spacing: 0; font-size: var(--t-sm); border-top: 1px solid var(--line); border-bottom: 0; font-weight: 600; overflow-wrap: anywhere; }
.data thead th a { color: var(--fg); text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.data thead th a:hover { text-decoration: underline; }
.data thead th[aria-sort="descending"] a::after { content: "\2193"; margin-left: .3rem; }
.data thead th[aria-sort="ascending"] a::after { content: "\2191"; margin-left: .3rem; }
.rk { color: var(--fg-soft); font-weight: 500; font-variant-numeric: tabular-nums; margin-right: .4rem; }
.data td small { color: var(--fg-soft); }
.score { display: inline-block; margin: 0 1rem .15rem 0; white-space: nowrap; }
.score span { color: var(--fg-soft); }
.muted { color: var(--fg-soft); }
.wrapcell { overflow-wrap: anywhere; white-space: pre-wrap; max-width: 36rem; }
.phone-sort { display: none; max-width: 16rem; margin-bottom: 1rem; }
@media (max-width: 40rem) {
  .phone-sort { display: grid; }
  .data.stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data.stacked, .data.stacked tbody, .data.stacked tr, .data.stacked th, .data.stacked td, .data.stacked caption { display: block; width: 100%; }
  .data.stacked tr { border-top: 1px solid var(--ink); padding: .6rem 0; }
  .data.stacked th, .data.stacked td { border: 0; padding: .25rem 0; }
  .data.stacked th.first, .data-wrap .data.stacked th.first { position: static; font-size: var(--t-md); }
  .data.stacked td { display: flex; justify-content: space-between; gap: 1rem; text-align: right; }
  .data.stacked td::before { content: attr(data-label); color: var(--fg-soft); text-align: left; flex: none; }
  .data.stacked td .bar { display: none; }
  .data.stacked td .v { text-align: right; }
  .data.stacked td .cv { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem .5rem; }
  .wrapcell { max-width: none; }
}

/* Events list: the dismissible Innoscout card for the most recent ended event (free accounts only). */
.xsell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: center; border: 1px solid #c9d9ee; background: #f3f8fd; padding: 1.25rem; margin: 0 0 1.5rem; }
.xsell[hidden] { display: none; }
.xsell .mark { width: 36px; height: 36px; display: block; margin-bottom: .6rem; }
.xsell h2 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .4rem; }
.xsell p { margin: 0 0 .5rem; }
.xsell .xsell-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.xsell .shot { display: block; border: 1px solid #c9d9ee; box-shadow: 0 6px 20px rgba(14, 23, 54, .15); overflow: hidden; aspect-ratio: 16 / 9; background: #fff; }
.xsell .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
@media (max-width: 760px) { .xsell { grid-template-columns: 1fr; } }

/* Settings, "Voting page" (docs/mockups/voter-sign-in/settings-sign-in-look): logo size, color picker, the look cards with
   thumbnails and the live preview. The thumbnails and the preview are the real voter page (LookPreview) in scaled iframes. */
.upload .row { display: flex; flex-wrap: wrap; gap: .5rem; }
.upload .row .progress { flex-basis: 100%; height: .4rem; }
.logosize { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 .8rem; align-items: center; margin-top: .9rem; }
.logosize > .label, .logosize > .hint, .logosize > .error { grid-column: 1 / -1; }
.logosize .auto { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; color: var(--ink); font-size: var(--t-sm); cursor: pointer; }
.logosize .auto input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--ink); }
.logosize input[type="range"] { width: 100%; height: 2.75rem; margin: 0; accent-color: var(--ink); cursor: pointer; }
.logosize input[type="range"]:disabled { opacity: .45; cursor: not-allowed; }
.logosize output { min-width: 5.5rem; text-align: right; font-size: var(--t-sm); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.swatch:has(input[type="color"]) { align-items: center; align-self: start; }
.swatch input[type="color"] { flex: none; width: 3rem; height: var(--tap); padding: 0; border: 1.5px solid var(--line-strong); border-radius: 0; background: none; cursor: pointer; }
.swatch input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input[type="color"]::-webkit-color-swatch { border: 0; }
.swatch .input { max-width: 9rem; }
.hint.warn { color: #6b4b00; background: var(--warn-bg); border-left: 4px solid var(--warn); padding: .4rem .6rem; }
.lookrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.lookctl { display: grid; gap: 1.6rem; align-content: start; min-width: 0; }
.rest { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.scaled { position: relative; overflow: hidden; background: var(--night); display: block; }
.scaled iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.scaled.thumb { width: 7.5rem; height: 4.6875rem; }
.lookpreview { min-width: 0; border-top: 1px solid var(--ink); padding-top: .8rem; display: grid; gap: .8rem; align-content: start; }
.lookpreview-bar { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; justify-content: space-between; }
.device { flex-wrap: wrap; }
.device button { white-space: nowrap; }
.lookpreview-bar h3 { font-size: var(--t-sm); font-weight: 500; }
.device { display: inline-flex; border: 1.5px solid var(--line-strong); }
.device button { min-height: 2.75rem; padding: 0 .9rem; border: 0; border-radius: 0; background: var(--white); color: var(--ink); font-size: var(--t-sm); font-weight: 500; cursor: pointer; }
.device button + button { border-left: 1.5px solid var(--line-strong); }
.device button[aria-pressed="true"], .device button[aria-checked="true"] { background: var(--ink); color: var(--white); }
.stagebox { background: var(--paper); border: 1px solid var(--line); padding: 1rem; display: grid; justify-items: center; }
.stagebox .scaled { box-shadow: 0 0 0 1px var(--line-strong); }
.lookpreview-foot { display: flex; flex-wrap: wrap; gap: 0 1rem; align-items: center; justify-content: space-between; }
.lookpreview-foot .linkbtn { color: var(--link); font-weight: 500; }
dialog.big { width: min(100% - 1.5rem, 82rem); height: min(100dvh - 1.5rem, 56rem); max-width: none; max-height: none; padding: 0; border: 1.5px solid var(--ink); background: var(--white); color: var(--muted); }
dialog.big[open] { display: flex; flex-direction: column; }
dialog.big::backdrop { background: rgba(14, 23, 54, .7); }
dialog.big header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .5rem .5rem 1rem; border-bottom: 1px solid var(--line-strong); }
dialog.big header h2 { font-size: var(--t-md); font-weight: 500; }
dialog.big iframe { flex: 1 1 auto; width: 100%; border: 0; display: block; }
@media (min-width: 64rem) {
  .lookrow { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); }
  .lookpreview { grid-column: 2; }
}
@media (min-width: 64rem) and (min-height: 46rem) { .lookpreview { position: sticky; top: 1rem; } }
.stagebox { gap: .8rem; }
/* The fake browser top above the preview: the tab with the favicon and the page title, the address bar with the voting link. */
.bchrome { justify-self: center; width: 100%; min-width: 0; background: #dfe3ee; border: 1px solid var(--line-strong); font-size: var(--t-xs); color: var(--ink); }
.btabs { display: flex; align-items: flex-end; gap: .4rem; padding: .35rem .5rem 0; min-width: 0; }
.btab { display: flex; align-items: center; gap: .5rem; min-width: 0; flex: 0 1 22rem; height: 2rem; padding: 0 .6rem; background: var(--white); border-radius: 8px 8px 0 0; }
.btab img { width: 16px; height: 16px; flex: none; object-fit: contain; }
.btab .noicon { flex: none; width: 12px; height: 15px; border: 1.5px solid var(--line-strong); border-radius: 2px; background: linear-gradient(var(--line-strong), var(--line-strong)) 2px 4px / 5px 1.5px no-repeat, linear-gradient(var(--line-strong), var(--line-strong)) 2px 7.5px / 5px 1.5px no-repeat; }
.btab .ttl { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.btab .x, .btabs .plus { flex: none; color: var(--muted); font-size: 1rem; line-height: 1; }
.btabs .plus { padding: 0 .3rem .45rem; }
.baddr { display: flex; align-items: center; gap: .6rem; padding: .35rem .6rem; background: var(--white); min-width: 0; }
.baddr .nav { flex: none; color: var(--line-strong); letter-spacing: .35em; font-size: 1rem; line-height: 1; }
.baddr .url { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .4rem; height: 1.75rem; padding: 0 .7rem; background: var(--paper); border-radius: 99px; white-space: nowrap; overflow: hidden; }
.baddr .url span { overflow: hidden; text-overflow: ellipsis; }
.baddr .url svg { flex: none; width: .75rem; height: .75rem; color: var(--muted); }
/* The calm note about the text color: a swatch of the color with "Aa" in the chosen text color, and the note beside it. */
.colornote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: center; background: var(--paper); border-left: 4px solid var(--ink); padding: .55rem .7rem; margin-top: .6rem; font-size: var(--t-xs); color: var(--ink); line-height: 1.4; }
.colornote[hidden] { display: none; }
.colornote .aa { display: grid; place-items: center; width: 2.75rem; height: 2.25rem; font-weight: 600; font-size: 1rem; background: var(--c, var(--ink)); color: var(--c-on, #fff); box-shadow: 0 0 0 1.5px var(--c-line, transparent); }

/* Account area (docs/mockups/account-page/account-4-section-pages): every section is its own page. One navigation list: a scrolling
   tab row on small screens, a side navigation from 56rem; the current page is marked with aria-current only. */
.acct { display: grid; gap: 1.5rem; align-items: start; }
.acct > * { min-width: 0; }
.anav { display: grid; gap: .35rem; }
.anav ul { display: flex; gap: 0 .25rem; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line-strong); }
.anav li { flex: none; }
.anav a { display: flex; align-items: center; min-height: var(--tap); padding: 0 .9rem; border-radius: 0; border-bottom: 3px solid transparent; text-decoration: none; white-space: nowrap; font-size: var(--t-sm); font-weight: 500; color: var(--muted); }
.anav a:hover { color: var(--ink); }
.anav a[aria-current="page"] { color: var(--ink); border-color: var(--sun); }
.anav a.bad, .anav a.bad[aria-current="page"] { color: var(--bad); }
.anav a:focus-visible { outline-offset: -3px; }
.apage { display: grid; gap: 1.5rem; }
.apage > header { display: grid; gap: .35rem; }
.apage > header p { font-size: var(--t-sm); }
.apage.del h1 { color: var(--bad); }
.apage > .alert { margin-bottom: 0; max-width: 44rem; }
.apage dl.facts dd { color: var(--ink); }
.acct-form { display: grid; gap: 1.1rem; max-width: 30rem; }
.acct-form > div > .btn { min-width: 9rem; }
.acct-sub { border-top: 1px solid var(--line); padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; align-items: center; max-width: 30rem; }
.acct-sub p { font-size: var(--t-sm); flex: 1 1 12rem; }
.acct-tickets { display: grid; gap: 1rem; max-width: 44rem; align-items: start; }
.acct-ticket { border: 1px solid var(--line-strong); padding: 1.1rem 1.1rem 1.25rem; display: grid; gap: .8rem; align-content: start; background: var(--white); }
.acct-ticket.add { border-top: 3px solid var(--sun); }
.acct-ticket h2 { font-size: var(--t-lg); }
.acct-ticket b { overflow-wrap: anywhere; }
.acct-meter { display: grid; gap: .4rem; max-width: 20rem; }
.acct-meter span { color: var(--ink); }
.acct-meter .progress { height: .5rem; }
.acct-meter.full .progress i { background: var(--warn); }
.acct-perks { display: grid; gap: .35rem; font-size: var(--t-sm); color: var(--ink); }
.acct-perks li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .5rem; align-items: baseline; }
.acct-perks li::before { content: ""; width: .55rem; height: .55rem; background: var(--sun); align-self: center; }
.acct-price { font-size: var(--t-lg); font-weight: 600; color: var(--ink); }
.acct-price small { font-size: var(--t-sm); font-weight: 400; color: var(--muted); }
.acct-dlbox { max-width: 30rem; }
.acct-dlbox > summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; color: var(--link); text-decoration: underline; font-size: var(--t-sm); width: fit-content; white-space: nowrap; }
.acct-dl { display: grid; gap: 0; font-size: var(--t-sm); max-height: 17rem; overflow: auto; }
.acct-dl li { border-top: 1px solid var(--line); display: flex; gap: .25rem 1rem; align-items: center; justify-content: space-between; min-height: 2.75rem; }
.acct-dl li:last-child { border-bottom: 1px solid var(--line); }
.acct-dl li span { color: var(--ink); overflow-wrap: anywhere; min-width: 0; padding: .35rem 0; }
.acct-dl form { flex: none; margin: 0; }
.acct-from { font-size: var(--t-sm); }
.acct-from b { font-weight: 500; overflow-wrap: anywhere; }
dialog.acct-dlg { width: min(100% - 2rem, 34rem); }
dialog.acct-dlg .acct-form { margin-top: 1rem; }
dialog.acct-dlg .alert { margin: 0; }
@media (min-width: 40rem) { .acct-tickets.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 56rem) {
  .acct { grid-template-columns: 13rem minmax(0, 1fr); gap: 0 3.5rem; }
  .anav { position: sticky; top: 1rem; gap: .6rem; }
  .anav ul { display: grid; overflow: visible; border-bottom: 0; border-left: 1px solid var(--line); }
  .anav a { min-height: 2.75rem; padding: .2rem .9rem .2rem 1.1rem; margin-left: -1px; border-bottom: 0; border-left: 3px solid transparent; white-space: normal; font-weight: 400; }
  .anav a:hover { border-left-color: var(--line-strong); }
  .anav a[aria-current="page"] { border-left-color: var(--sun); font-weight: 500; }
}

/* Settings, "Voting page", social sharing (docs/mockups/voting-page-settings/a): the image and text fields on the left, the link cards
   (neutral sketches of how Facebook and X show the voting link: no brand marks, no external requests) on the right. */
.social { display: grid; gap: 2rem; }
.social > .fields { align-content: start; }
.social .soc-preview { min-width: 0; display: grid; gap: .8rem; align-content: start; container-type: inline-size; }
.social h3 { font-size: var(--t-sm); font-weight: 500; }
.social .scards { display: grid; gap: 1.25rem; align-items: start; }
@container (min-width: 38rem) { .social .scards { grid-template-columns: 1fr 1fr; } }
.social .scard { display: grid; gap: .4rem; min-width: 0; max-width: 30rem; }
.social .scard figcaption { font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.social .post { border: 1px solid var(--line); background: var(--white); padding: .8rem; display: grid; gap: .7rem; min-width: 0; }
.social .post .who { display: grid; grid-template-columns: 2.25rem 1fr; gap: .15rem .6rem; align-items: center; }
.social .post .who i { grid-row: span 2; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--line); }
.social .post .who b, .social .post .who u { display: block; height: .55rem; background: var(--line); border-radius: 99px; width: 7rem; text-decoration: none; }
.social .post .who u { width: 4rem; background: #e7eaf3; }
.social .post .says { font-size: var(--t-sm); color: var(--link); overflow-wrap: anywhere; }
.social .lcard { border: 1px solid var(--line-strong); overflow: hidden; min-width: 0; }
.social .lcard[hidden], .social .says[hidden], .social .scard .hint[hidden], .social .lcard img[hidden] { display: none; }
.social .lcard img { display: block; width: 100%; aspect-ratio: 1200 / 628; object-fit: cover; background: var(--paper); }
.social .lcard .meta { display: grid; gap: .1rem; padding: .6rem .75rem; background: var(--paper); min-width: 0; }
.social .lcard .dom { font-size: .75rem; color: var(--muted); }
.social .lcard .ti { font-weight: 600; color: var(--ink); font-size: var(--t-sm); line-height: 1.3; overflow-wrap: anywhere; }
.social .lcard .de { font-size: var(--t-xs); color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.social .fbcard .dom { text-transform: uppercase; letter-spacing: .04em; }
.social .xcard { border-radius: 14px; }
.social .xcard .meta { background: var(--white); border-top: 1px solid var(--line); }
@media (min-width: 64rem) { .social { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); } }

/* Share image editor (docs/mockups/voting-page-settings/a): the controls, the large canvas and the design itself. The design is real
   HTML sized in container units, so the canvas and the two link cards draw the same thing at any width; org.js draws the same
   geometry on a 1200 x 628 <canvas> for the upload (keep the two in step). */
@media (min-width: 64rem) {
  .social .soc-a { grid-column: 1; grid-row: 1; }
  /* The grid item stretches over row 1 only and its inner .soc-stick is sticky: a sticky grid item would travel through the
     whole .social grid and draw its notes over the link cards of row 2 while scrolling (reported 2026-11-22). */
  .social .soc-canvas { grid-column: 2; grid-row: 1; align-self: stretch; }
  .social .soc-stick { position: sticky; top: 1rem; }
  .social .soc-b { grid-column: 1; grid-row: 2; }
  .social .soc-c { grid-column: 2; grid-row: 2; }
}
.social .soc-canvas { min-width: 0; }
.social .soc-stick { min-width: 0; display: grid; gap: .6rem; align-content: start; }
.social .soc-canvas[hidden], .social [data-needs-script][hidden], .social [data-when-mode][hidden], .social [data-when-bg][hidden] { display: none; }
.social .soc-canvas .frame { border: 1px solid var(--line-strong); background: var(--paper); max-width: 46rem; }
.social .soc-canvas .frame > img { display: block; width: 100%; aspect-ratio: 1200 / 628; object-fit: cover; }
.social .soc-canvas .frame > img[hidden] { display: none; }
.social .soc-canvas .none { aspect-ratio: 1200 / 628; display: grid; place-items: center; border: 1.5px dashed var(--line-strong); font-size: var(--t-sm); max-width: 46rem; }
.social .soc-canvas .cap { display: flex; flex-wrap: wrap; gap: .25rem 1rem; justify-content: space-between; align-items: baseline; max-width: 46rem; }
.social .soc-canvas .hint { max-width: 46rem; }
.social .editor { display: grid; gap: 1.2rem; }
.social .editor .opts { gap: .45rem; }
.social .editor .opt { padding: .6rem .8rem; }
.social .lcard .art[hidden] { display: none; }
.art { position: relative; display: block; width: 100%; aspect-ratio: 1200 / 628; container-type: inline-size; overflow: hidden; background: linear-gradient(120deg, #0a1129 0, #19265a 70%, #24347a 100%); color: #fff; font-family: var(--sans); --art-fg: #fff; --art-2: var(--sun); }
.art * { margin: 0; }
.art .shape { position: absolute; right: -10cqw; top: -12cqw; width: 52cqw; height: 52cqw; border-radius: 0 26cqw 0 26cqw; background: var(--art-event); transform: rotate(8deg); }
.art .shape.two { display: none; }
.art .rule { border-radius: 0; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5cqw; background: var(--sun); }
.art .logo { position: absolute; left: 6.5cqw; top: 6cqw; height: 13cqw; width: auto; max-width: 40cqw; object-fit: contain; background: #fff; padding: .8cqw 1.2cqw; }
.art .txt { position: absolute; left: 6.5cqw; right: 6.5cqw; bottom: 7.5cqw; display: grid; gap: 2cqw; justify-items: start; }
.art .hl { color: var(--art-fg); font-weight: 600; font-size: 8.6cqw; line-height: 1; letter-spacing: -.03em; max-width: 62cqw; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: .12em; }
.art .hl.m { font-size: 7.2cqw; }
.art .hl.s { font-size: 5.8cqw; }
.art .l2 { color: var(--art-2); font-weight: 500; font-size: 3.4cqw; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.art.centered .logo { left: 50%; transform: translateX(-50%); }
.art.centered .txt { justify-items: center; text-align: center; }
.art.centered .hl { max-width: none; }
.art.centered .shape { width: 26cqw; height: 26cqw; border-radius: 0 13cqw 0 13cqw; right: -8cqw; top: -9cqw; }
.art.centered .shape.two { display: block; right: auto; left: -8cqw; transform: scaleX(-1) rotate(8deg); }
.art.bg-color { background: var(--art-event); --art-2: var(--art-fg); }
.art.bg-color .shape { right: -16cqw; top: -20cqw; width: 54cqw; height: 54cqw; border-radius: 50%; background: none; border: 6cqw solid var(--art-ring); transform: none; }
.art.bg-color.centered .shape { width: 34cqw; height: 34cqw; border-width: 4cqw; right: -12cqw; top: -14cqw; }
.art.bg-color.centered .shape.two { left: -12cqw; right: auto; }
.art.bg-color .rule { background: var(--art-fg); opacity: .25; }
.art.bg-spot { background: #0a1129; }
.art.bg-spot .shape { top: -4cqw; right: 2cqw; width: 34cqw; height: 62cqw; border-radius: 0; background: linear-gradient(180deg, rgba(253, 184, 19, .34), rgba(253, 184, 19, 0) 82%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); transform: rotate(24deg); transform-origin: 50% 0; }
.art.bg-spot .shape.two { display: block; right: auto; left: 2cqw; transform: rotate(-24deg); }
.art.bg-spot.centered .shape { width: 34cqw; height: 62cqw; border-radius: 0; right: 2cqw; top: -4cqw; }
.art.bg-spot.centered .shape.two { left: 2cqw; right: auto; transform: rotate(-24deg); }

/* Live screen settings page (docs/mockups/live-screen/settings): the preview beside the options, thumbnails of the screen itself,
   autosave. Built from the shared parts (.choice and .opts cards, .switch, .input, .alert, .data, .btn); only the layout is new. */
.segbtn { display: inline-flex; flex-wrap: wrap; border: 1.5px solid var(--line-strong); }
.segbtn button { min-height: 2.75rem; padding: 0 .9rem; border: 0; border-radius: 0; background: var(--white); color: var(--ink); font-size: var(--t-sm); font-weight: 500; cursor: pointer; flex: 1 1 auto; }
.segbtn button + button { border-left: 1.5px solid var(--line-strong); }
.segbtn button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.segbtn[hidden], .ls [hidden] { display: none; }
kbd { font: inherit; font-size: var(--t-xs); font-weight: 500; border: 1px solid var(--line-strong); padding: 0 .35rem; }
.ls-back a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.head .actions:has(.ls-saved) { align-items: center; gap: .5rem 1rem; }
.ls-saved { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-sm); font-weight: 500; color: var(--ink); padding: .2rem .6rem; }
.ls-saved.err { color: var(--bad); }
.ls-saved.flash { animation: ls-flash 1.6s ease-out; }
@keyframes ls-flash { from { background: #fff1c2; } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .ls-saved.flash { animation: none; } }
.ls-lede { max-width: 60rem; margin: -.5rem 0 2.25rem; }
.ls { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 64rem) { .ls { grid-template-columns: minmax(0, 1fr) 25rem; gap: 3.5rem; } .ls-prev { position: sticky; top: 1rem; } }
.ls-prev { display: grid; gap: 1.1rem; min-width: 0; }
.ls-prevhead { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; }
.ls-prevhead h2, .ls-opts h2 { font-size: var(--t-md); }
.ls-frame { aspect-ratio: 16 / 9; background: #0a1129; outline: 1px solid var(--line-strong); overflow: hidden; }
.ls-frame iframe, .ls-thumb iframe { display: block; width: 100%; height: 100%; border: 0; }
.ls-opts { display: grid; gap: 3rem; min-width: 0; }
.ls-opts section { display: grid; gap: 1.5rem; }
.ls-opts section > h2 { padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.ls-opts .alert { margin: 0; }
.ls-opts .choice > .opts { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.ls-opts .ls-4 .opt, .ls-opts .ls-3 .opt { padding: .6rem; gap: .45rem; }
.ls-opts .choice.is-disabled { opacity: .6; }
.ls-opts .switch { padding: .6rem 0; }
.ls-styles > legend { padding-bottom: .5rem; border-bottom: 1px solid var(--line); width: 100%; }
.ls-styles > .opts { gap: .8rem; }
.ls-styles .opt.has-media { grid-template-columns: 1.15rem minmax(0, 1fr) 9.5rem; padding: 1rem; column-gap: 1rem; }
.ls-styles .opt .media { order: 3; width: auto; aspect-ratio: 16 / 9; background: #0a1129; overflow: hidden; }
.ls-styles .media iframe { pointer-events: none; }
#accent_event + .opt .t::before, #accent_sun + .opt .t::before { content: ""; display: inline-block; width: .9rem; height: .9rem; margin-right: .45rem; vertical-align: -.08rem; outline: 1px solid var(--line-strong); }
#accent_event + .opt .t::before { background: var(--event); }
#accent_sun + .opt .t::before { background: var(--sun); }
.ls-foot { border-top: 1px solid var(--line); padding-top: 1.5rem; display: grid; gap: .75rem; justify-items: start; }
@media (max-width: 26rem) { .ls-opts .choice.ls-4 > .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ls-opts .choice.ls-3 > .opts { grid-template-columns: minmax(0, 1fr); } }
/* "During the event" (docs/mockups/results-live-explained/live-settings-during-event): the controls the organizer uses while the
   room watches (the ranking, the view, the QR code) and the button that opens the screen, above the design settings. */
.ls-de { background: var(--paper); border-top: 2px solid var(--ink); padding: 1.25rem 1rem; margin: 0 0 3rem; display: grid; gap: 1.25rem 2rem; grid-template-columns: minmax(0, 1fr); }
.ls-de > * { min-width: 0; }
.ls-de-head { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; justify-content: space-between; }
.ls-de-head h2, .ls-rest h2 { font-size: var(--t-lg); }
.ls-de-head p { font-size: var(--t-sm); }
.ls-de-head .ls-now { font-size: var(--t-xs); display: flex; gap: .4rem; align-items: center; color: var(--ink); min-height: 1.5rem; }
.ls-now i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); flex: none; }
.ls-now.wait i { background: var(--warn); }
.ls-de-ctl { display: grid; align-content: start; }
.ls-de-row { display: grid; gap: .5rem 1rem; padding: .9rem 0; border-top: 1px solid var(--line-strong); align-items: center; }
.ls-de-row:first-child { border-top: 0; padding-top: 0; }
.ls-de-row h3 { font-size: var(--t-sm); font-weight: 500; }
.ls-de-state { font-size: var(--t-md); font-weight: 600; color: var(--ink); }
.ls-de-row .hint { margin-top: .15rem; }
.ls-de-row .btn-ghost { background: var(--white); }
.ls-de-row .switch { padding: 0; }
.ls-de-row.is-off > div { opacity: .6; }
.ls-de-row .choice > .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ls-de-open { display: grid; gap: .5rem; align-content: start; border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.ls-de-open .btn { justify-self: start; }
.ls-rest > p { max-width: 60rem; margin: .35rem 0 2rem; }
@media (min-width: 34rem) { .ls-de-row.two { grid-template-columns: minmax(0, 1fr) auto; } }
@media (min-width: 52rem) {
  .ls-de { padding: 1.5rem 2rem; }
  .ls-de-head { grid-column: 1 / -1; }
  .ls-de-open { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .5rem 1.25rem; }
}
@media (min-width: 76rem) {
  .ls-de { grid-template-columns: minmax(0, 1fr) 17rem; }
  .ls-de-open { grid-template-columns: minmax(0, 1fr); border-top: 0; padding-top: 0; border-left: 1px solid var(--line-strong); padding-left: 2rem; }
  .ls-de-open .btn { justify-self: stretch; }
}

/* Global admin (docs/mockups/global-admin, the approved admin.css): admin-only components with an adm- prefix, square shapes,
   weights 400 to 600. Rules on shared classes are scoped under body.adm (set by _LayoutAdmin), so no other organizer page changes. */
.adm { overflow-x: hidden; }
.adm .shell > .head { padding-bottom: 1.25rem; }
.adm .shell h2 { font-size: var(--t-lg); }
.adm .shell code, .adm dialog code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; color: var(--ink); overflow-wrap: anywhere; }
.adm .alert { max-width: 60rem; }
.adm-su { flex: none; display: inline-flex; align-items: center; gap: .5rem; font-size: var(--t-xs); color: var(--soft); white-space: nowrap; padding-left: .5rem; }
.adm-su > i { width: .6rem; height: .6rem; background: var(--edge); flex: none; }
.adm-su[data-on="true"] > i { background: var(--sun); }
.adm-su form { margin: 0; display: inline-flex; }
.adm-su button, .adm-su a { display: inline-flex; align-items: center; background: none; border: 0; color: var(--sun); text-decoration: underline; cursor: pointer; min-height: 2.75rem; padding: 0 .25rem; font-size: inherit; }
@media (max-width: 56rem) { .adm .evnav .wrap { flex-wrap: wrap; gap: 0 .75rem; } .adm .evnav ul { flex: 1 1 100%; } .adm-su { padding: 0 0 .35rem; } }
.adm-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .1rem .55rem; border: 1px solid var(--line-strong); border-left-width: 4px; font-size: var(--t-xs); font-weight: 500; color: var(--ink); white-space: nowrap; background: var(--white); line-height: 1.5; }
.adm-tag.ok { border-left-color: var(--ok); }
.adm-tag.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.adm-tag.bad { border-left-color: var(--bad); background: var(--bad-bg); }
.adm-tag.sun { border-left-color: var(--sun); }
.adm-tag.ink { border-left-color: var(--ink); }
.adm-tag.off { border-left-color: var(--line-strong); color: var(--muted); }
.adm-tags { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.adm-tagrow { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; margin: -.5rem 0 1.25rem; }
.adm-sechead { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--ink); padding-top: 1rem; margin-bottom: 1rem; }
.adm-sechead p { flex: 1 1 100%; font-size: var(--t-sm); }
.adm-sec + .adm-sec { margin-top: 2.5rem; }
.adm-after { margin-top: 2.5rem; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-left: 1px solid var(--line); }
.adm-tile { display: grid; gap: .15rem; align-content: start; padding: .9rem 1rem 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: var(--t-sm); min-height: 6.5rem; }
.adm-tile b { font-size: 2rem; line-height: 1.1; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--ink); }
.adm-tile span { color: var(--ink); font-weight: 500; }
.adm-tile small { font-size: var(--t-xs); }
a.adm-tile:hover { background: var(--paper); }
.adm-tile.warn { box-shadow: inset 0 3px 0 var(--warn); }
.adm-tile.bad { box-shadow: inset 0 3px 0 var(--bad); }
.adm-tile.calm b { color: var(--muted); }
.adm-work { border-top: 1px solid var(--ink); }
.adm-work.flush { border-top: 0; }
.adm-work > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.adm-work .what { display: grid; gap: .15rem; min-width: 0; }
.adm-work .what b { font-weight: 500; overflow-wrap: anywhere; color: var(--ink); }
.adm-work .what small { font-size: var(--t-sm); }
.adm-work .do { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.adm-work .do form { margin: 0; }
@media (min-width: 48rem) { .adm-work > li { grid-template-columns: minmax(0, 1fr) auto; } .adm-work .do { justify-content: flex-end; } }
.adm-cols { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 64rem) { .adm-cols { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem; } .adm-cols.even { grid-template-columns: 1fr 1fr; } }
.adm-rail { background: var(--paper); border-top: 2px solid var(--ink); padding: 1.25rem; display: grid; gap: 1rem; }
.adm-rail h2, .adm-rail h3 { font-size: var(--t-md); }
.adm-rail dl.facts { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); }
.adm dl.facts dd { color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
dl.adm-facts { display: grid; gap: 0; font-size: var(--t-sm); }
dl.adm-facts > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .25rem 1rem; padding: .55rem 0; border-top: 1px solid var(--line); }
dl.adm-facts > div:last-child { border-bottom: 1px solid var(--line); }
dl.adm-facts dt { color: var(--fg-soft); }
dl.adm-facts dd { color: var(--ink); overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; justify-content: space-between; min-width: 0; }
dl.adm-facts dd form { margin: 0; }
@media (max-width: 30rem) { dl.adm-facts > div { grid-template-columns: 1fr; } }
.adm-logo { max-height: 3rem; max-width: 12rem; background: var(--white); }
.adm-meter { display: grid; gap: .35rem; }
.adm-meter .progress { height: .5rem; border-radius: 0; }
.adm-meter .progress i { border-radius: 0; }
.adm-meter.full .progress i { background: var(--warn); }
.adm-meter.over .progress i { background: var(--bad); }
.adm-fig { font-size: 1.7rem; line-height: 1.15; font-weight: 500; color: var(--ink); letter-spacing: -.02em; }
.adm-fig small { font-size: var(--t-sm); font-weight: 400; color: var(--muted); letter-spacing: 0; }
.adm-filters { display: grid; gap: .75rem 1rem; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); align-items: end; padding: 1rem; background: var(--paper); border-top: 2px solid var(--ink); margin-bottom: 1rem; }
.adm-filters .wide { grid-column: 1 / -1; }
@media (min-width: 48rem) { .adm-filters .wide { grid-column: span 2; } }
.adm-filters .input, .adm-filters .select { min-height: 2.75rem; padding-block: .35rem; font-size: var(--t-sm); }
.adm-listbar { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; font-size: var(--t-sm); margin-bottom: .5rem; min-height: 2.75rem; }
.adm-listbar label { display: inline-flex; gap: .5rem; align-items: center; }
.adm-listbar .select { width: auto; min-height: 2.75rem; padding-block: .3rem; font-size: var(--t-sm); }
.adm-pager { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; font-size: var(--t-sm); padding-top: 1rem; }
.adm .data td, .adm .data th { overflow-wrap: anywhere; }
.adm .data .first a { font-weight: 500; }
.adm .data .sub { display: block; font-size: var(--t-xs); color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.adm .data .acts { display: flex; flex-wrap: wrap; gap: 0 .75rem; justify-content: flex-end; }
.adm .data .acts .lk, .adm .data .acts a { min-height: 2rem; white-space: nowrap; }
.adm .data .acts form { margin: 0; }
.adm .data input[type="checkbox"], .adm-chk { width: 1.4rem; height: 1.4rem; accent-color: var(--ink); margin: 0; }
.adm-tabs { display: flex; gap: 0 .25rem; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line-strong); margin-bottom: 1.75rem; }
.adm-tabs a { flex: none; display: flex; align-items: center; gap: .4rem; min-height: var(--tap); padding: 0 .9rem; border-bottom: 3px solid transparent; text-decoration: none; white-space: nowrap; font-size: var(--t-sm); font-weight: 500; color: var(--muted); }
.adm-tabs a:hover { color: var(--ink); }
.adm-tabs a[aria-current="page"] { color: var(--ink); border-color: var(--sun); }
.adm-tabs a i { font-style: normal; font-size: var(--t-xs); padding: 0 .35rem; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.adm-tabs a:focus-visible { outline-offset: -3px; }
.adm-form { display: grid; gap: 1.25rem; max-width: 36rem; }
.adm-btnrow { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.adm-btnrow form { margin: 0; }
.adm-pick { border: 1px solid var(--line-strong); border-left: 4px solid var(--ink); padding: .75rem 1rem; display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; justify-content: space-between; font-size: var(--t-sm); color: var(--ink); }
.adm-pick b { font-weight: 500; overflow-wrap: anywhere; }
.adm-pick > span { min-width: 0; overflow-wrap: anywhere; }
.adm-picklist { display: grid; gap: 0; border-top: 1px solid var(--line); max-height: 16rem; overflow: auto; }
.adm-picklist .check { border-bottom: 1px solid var(--line); padding: .4rem 0; }
.adm-change { display: grid; gap: 0; font-size: var(--t-sm); border-top: 1px solid var(--ink); }
.adm-change li { position: relative; padding: .55rem 0 .55rem 1.6rem; border-bottom: 1px solid var(--line); color: var(--ink); }
.adm-change li::before { content: ""; position: absolute; left: .2rem; top: 1rem; width: .55rem; height: .55rem; background: var(--sun); }
.adm-change li.stays::before { background: var(--line-strong); }
.adm-change li.gone::before { background: var(--bad); }
.adm-change small { display: block; color: var(--muted); font-size: var(--t-xs); }
.adm-timeline { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: .35rem; }
.adm-timeline li { position: relative; padding: 0 0 1.25rem 1.25rem; font-size: var(--t-sm); }
.adm-timeline li::before { content: ""; position: absolute; left: -.45rem; top: .35rem; width: .7rem; height: .7rem; background: var(--ink); }
.adm-timeline li.sun::before { background: var(--sun); }
.adm-timeline li.bad::before { background: var(--bad); }
.adm-timeline li.soft::before { background: var(--white); border: 2px solid var(--line-strong); }
.adm-timeline .when { display: block; font-size: var(--t-xs); color: var(--muted); }
.adm-timeline b { font-weight: 500; color: var(--ink); }
.adm-timeline p { margin-top: .15rem; }
.adm-mail { border: 1px solid var(--line-strong); background: var(--white); font-size: var(--t-sm); }
.adm-mail header { display: grid; gap: .15rem; padding: .75rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.adm-mail header span { overflow-wrap: anywhere; }
.adm-mail header b { font-weight: 500; }
.adm-mail .body { padding: 1rem; display: grid; gap: .75rem; color: var(--ink); }
.adm-mail .cta { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; background: var(--ink); color: var(--white); font-weight: 600; width: fit-content; }
dialog.adm-dlg { width: min(100% - 2rem, 36rem); border-radius: 0; border-top: 4px solid var(--sun); }
dialog.adm-dlg.wide { width: min(100% - 2rem, 52rem); }
dialog.adm-dlg > form { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
dialog.adm-dlg > form > *, dialog.adm-dlg .field { min-width: 0; }
dialog.adm-dlg .alert { margin-bottom: 0; max-width: none; }
dialog.adm-dlg .lead { font-size: var(--t-sm); }
dialog.adm-dlg h2 { margin-bottom: 0; }
.adm-json { background: var(--paper); border: 1px solid var(--line); padding: .75rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--t-xs); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.adm-diff { display: grid; gap: .75rem; }
@media (min-width: 30rem) { .adm-diff { grid-template-columns: 1fr 1fr; } }
.adm-detail summary { cursor: pointer; color: var(--a); text-decoration: underline; min-height: 2rem; display: inline-flex; align-items: center; font-size: var(--t-sm); }
.adm-detail[open] { display: grid; gap: .5rem; }
.adm-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .35rem; align-items: end; height: 7rem; border-bottom: 1px solid var(--ink); }
.adm-bars i { display: block; background: var(--ink); height: var(--h, 0%); min-height: 2px; }
.adm-bars i.b { background: var(--sun); }
.adm-barlabels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .35rem; font-size: var(--t-xs); text-align: center; padding-top: .25rem; }
.adm-legend { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: var(--t-xs); }
.adm-legend i { display: inline-block; width: .7rem; height: .7rem; background: var(--ink); margin-right: .35rem; }
.adm-legend i.b { background: var(--sun); }
.adm-gate { border: 1px solid var(--line-strong); border-top: 4px solid var(--ink); padding: 1.5rem; max-width: 40rem; display: grid; gap: 1rem; }
.adm-banner { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; background: var(--night); color: var(--soft); padding: .6rem 1rem; font-size: var(--t-sm); margin-bottom: 1.5rem; }
.adm-banner b { color: var(--white); font-weight: 500; }
.adm-banner a { color: var(--sun); }
.adm-once { border: 2px solid var(--ink); padding: 1.25rem; display: grid; gap: 1rem; max-width: 46rem; margin-bottom: 2rem; }
.adm-note { font-size: var(--t-xs); color: var(--muted); }
.adm-intro { max-width: 46rem; margin-bottom: 1.5rem; }
.adm-search { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; max-width: 40rem; margin-bottom: 1rem; }
.adm-search .field { flex: 1 1 16rem; min-width: 0; }
.adm .adm-tagrow .adm-note, .adm-pick .sub, .adm-facts .sub { font-size: var(--t-xs); color: var(--muted); }
.adm-right { text-align: right; }
.adm-nowrap { white-space: nowrap; }
/* Licensing (phase 3): the grant wizard's steps and its account search, the term bar, the bulk bar of the renewals queue and the
   agreement record (docs/mockups/global-admin, shared/admin.css). */
.adm-steps { display: flex; gap: 0; overflow-x: auto; counter-reset: s; border-bottom: 1px solid var(--line-strong); margin-bottom: 1.75rem; scrollbar-width: thin; }
.adm-steps li { counter-increment: s; flex: 1 0 auto; display: flex; align-items: center; gap: .5rem; min-height: var(--tap); padding: 0 1rem 0 0; font-size: var(--t-sm); color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.adm-steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1.5px solid var(--line-strong); font-size: var(--t-xs); font-weight: 600; color: var(--muted); flex: none; }
.adm-steps li.cur { color: var(--ink); font-weight: 500; border-color: var(--sun); }
.adm-steps li.cur::before { background: var(--ink); border-color: var(--ink); color: var(--white); }
.adm-steps li.done::before { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.adm-btnrow.next-first { flex-direction: row-reverse; justify-content: flex-end; }
.adm-results { border: 1px solid var(--line-strong); border-top: 0; }
.adm-results button { display: grid; gap: .1rem; width: 100%; text-align: left; background: var(--white); border: 0; border-top: 1px solid var(--line); padding: .6rem .8rem; cursor: pointer; font-size: var(--t-sm); min-height: var(--tap); color: var(--ink); }
.adm-results button:hover { background: var(--paper); }
.adm-results button > * { min-width: 0; overflow-wrap: anywhere; }
.adm-results small { color: var(--muted); font-size: var(--t-xs); }
.adm-term { display: grid; gap: .4rem; font-size: var(--t-xs); }
.adm-term .track { position: relative; height: .9rem; background: var(--line); }
.adm-term .track i { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--ink); }
.adm-term .track u { position: absolute; top: -.3rem; bottom: -.3rem; left: var(--w, 0%); width: 3px; background: var(--sun); }
.adm-term .ends { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
.adm-term.lapsed .track i { background: var(--bad); }
.adm-bulk { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; background: var(--night); color: var(--white); padding: .6rem 1rem; margin-top: 1rem; border-top: 3px solid var(--sun); font-size: var(--t-sm); }
.adm-file { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; justify-content: space-between; border: 1px solid var(--line-strong); padding: .5rem .8rem; font-size: var(--t-sm); color: var(--ink); }
.adm-file > span { min-width: 0; overflow-wrap: anywhere; }
.adm-mail .body ul { list-style: disc; padding-left: 1.2rem; }
.adm-mail footer { padding: .75rem 1rem; border-top: 1px solid var(--line); font-size: var(--t-xs); }
.adm-invoice { display: grid; gap: .1rem; padding: .3rem 0; }
.adm-invoice + .adm-invoice { border-top: 1px solid var(--line); }
.adm-invoice .acts { gap: .25rem .75rem; }

/* Competition listings of an organizer (/app/listings). */
.rows > li.listing-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.listing-what { display: grid; gap: .25rem; justify-items: start; min-width: 0; overflow-wrap: anywhere; }
.listing-what .sub { font-size: var(--t-xs); color: var(--fg-soft); }
.listing-acts { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 36rem) { .rows > li.listing-row { grid-template-columns: 1fr; } }
.listing-form { max-width: 44rem; }
.listing-form > .actions { display: flex; flex-wrap: wrap; gap: .5rem; }
