/* =====================================================================
   DaisBoard — styles following the IBM Carbon Design System, like ResoBoard,
   with DaisBoard's plum in place of ResoBoard's UN blue. One file for every page.
   ===================================================================== */
:root {
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --accent: #a56eff;
  --interactive: #6929c4;
  --interactive-hover: #5c24ac;
  --interactive-active: #4a1d89;
  --interactive-tint: #ede5f8;
  --focus: #6929c4;
  --link: #6929c4;

  --header: #1c0f30;
  --header-hover: #2e2241;
  --header-border: #453a55;
  --header-text: #f4f4f4;
  --header-text-2: #bfbcc5;
  --header-text-strong: #ffffff;
  /* the accent's lighter shade (banner graphics, the banner's eyebrow) and the mark's colors; a conference's
     own colors replace all of these (lib/theme.js writes them into each page) */
  --accent-light: #ceafff;
  --hero-eyebrow: #ceafff;
  --mark-ring: #a56eff;
  --mark-dais: #c5a1ff;
  --mark-arc: #e0ccff;

  --bg: #ffffff;
  --layer: #f4f4f4;
  --layer-hover: #e8e8e8;
  --layer-2: #ffffff;
  --layer-accent: #e0e0e0;
  --field: #f4f4f4;
  --border-subtle: #e0e0e0;
  --border-strong: #8d8d8d;
  --text: #161616;
  --text-2: #525252;
  --text-helper: #6f6f6f;
  --text-placeholder: #a8a8a8;
  --error: #da1e28;
  --error-text: #a2191f;
  --error-tint: #fff1f1;
  --success: #24a148;
  --success-text: #0e6027;
  --success-tint: #defbe6;
  --warning: #f1c21b;
  --warning-tint: #fcf4d6;
  --info-tint: #edf5ff;
  --secondary: #393939;
  --secondary-hover: #4c4c4c;
  --danger: #da1e28;
  --danger-hover: #b81921;
  --overlay: rgba(22, 22, 22, 0.5);
  --shadow: rgba(0, 0, 0, 0.2);
  /* confidential things (awards, deliberations) and amendments on the floor: teal, apart from the plum */
  --confidential: #007d79;
  --confidential-tint: #e3f6f5;
  color-scheme: light;
}
:root[data-mode="dark"] {
  color-scheme: dark;
  --interactive: #ad89df;
  --interactive-hover: #c2a7e7;
  --interactive-active: #d6c4ef;
  --interactive-tint: #271a39;
  --focus: #ad89df;
  --link: #bfa3e6;
  --bg: #161616;
  --layer: #262626;
  --layer-hover: #333333;
  --layer-2: #393939;
  --layer-accent: #393939;
  --field: #262626;
  --border-subtle: #393939;
  --border-strong: #6f6f6f;
  --text: #f4f4f4;
  --text-2: #c6c6c6;
  --text-helper: #a8a8a8;
  --text-placeholder: #6f6f6f;
  --error: #fa4d56;
  --error-text: #ff8389;
  --error-tint: #2d1214;
  --success: #42be65;
  --success-text: #6fdc8c;
  --success-tint: #0e2617;
  --warning-tint: #2e2810;
  --info-tint: #0b1e33;
  --secondary: #6f6f6f;
  --secondary-hover: #606060;
  --overlay: rgba(0, 0, 0, 0.65);
  --shadow: rgba(0, 0, 0, 0.6);
  --confidential: #3ddbd9;
  --confidential-tint: #04282a;
}
/* dark mode: filled buttons are light, so their text is dark (every size; not the outlined, ghost, grey or red ones) */
:root[data-mode="dark"] .btn:not(.btn--secondary):not(.btn--tertiary):not(.btn--ghost):not(.btn--danger):not(.btn--danger-ghost):not(.btn--danger-tertiary):not(.btn--on-dark),
:root[data-mode="dark"] .btn--tertiary:hover, :root[data-mode="dark"] .chip[aria-pressed="true"], :root[data-mode="dark"] .seg button[aria-pressed="true"],
:root[data-mode="dark"] .projector__mode, :root[data-mode="dark"] .score button[aria-pressed="true"] { color: #161616; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; font-family: var(--font); font-size: 0.875rem; line-height: 1.43; letter-spacing: 0.16px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.muted { color: var(--text-helper); }
.mono { font-family: var(--mono); }
.heading-01 { font-size: 0.875rem; font-weight: 600; }
.heading-02 { font-size: 1rem; font-weight: 600; line-height: 1.375; }
.heading-03 { font-size: 1.25rem; font-weight: 400; line-height: 1.4; }
.heading-04 { font-size: 1.75rem; font-weight: 400; line-height: 1.29; }
.heading-05 { font-size: 2rem; font-weight: 300; line-height: 1.25; }
.body-02 { font-size: 1rem; line-height: 1.5; }
.label { font-size: 0.75rem; color: var(--text-2); letter-spacing: 0.32px; }
.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: 0.5rem; }
.row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.db-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: stretch; height: 48px; background: var(--header); color: var(--header-text); border-bottom: 1px solid var(--header-border); }
.db-header__brand { display: flex; align-items: center; gap: 10px; padding: 0 32px 0 16px; color: var(--header-text); text-decoration: none; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1px; white-space: nowrap; flex: none; }
.db-header__brand:hover { color: var(--header-text-strong); text-decoration: none; }
.db-header__brand .prefix { font-weight: 400; color: var(--header-text-2); max-width: 22vw; overflow: hidden; text-overflow: ellipsis; }
.db-header__mark { width: 22px; height: 22px; flex: none; }
.db-header__mark svg { width: 22px; height: 22px; display: block; }
.db-header__brand .wordmark { height: 13px; }
.db-header__brand .wordmark__dais { fill: var(--header-text-2); }
.db-header__brand .wordmark__board { fill: var(--header-text-strong); }
.db-header__nav { display: flex; align-items: stretch; border-left: 1px solid var(--header-border); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.db-header__nav::-webkit-scrollbar { display: none; }
.db-header__link { display: flex; align-items: center; white-space: nowrap; padding: 0 16px; color: var(--header-text-2); font-size: 0.875rem; text-decoration: none; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.db-header__link:hover { background: var(--header-hover); color: var(--header-text-strong); text-decoration: none; }
.db-header__link[aria-current="page"] { color: var(--header-text-strong); border-bottom-color: var(--accent); font-weight: 600; }
.db-header__slot { display: flex; align-items: stretch; }
.db-header__global { margin-left: auto; display: flex; align-items: stretch; }
.db-header__user { display: flex; flex-direction: column; justify-content: center; padding: 0 16px; text-align: right; line-height: 1.2; white-space: nowrap; }
.db-header__user strong { font-weight: 600; font-size: 0.8125rem; color: var(--header-text); }
.db-header__user span { font-size: 0.75rem; color: var(--header-text-2); }
.db-header__action { display: flex; align-items: center; gap: 8px; padding: 0 16px; background: transparent; border: 0; border-left: 1px solid var(--header-border); color: var(--header-text); font: inherit; font-size: 0.875rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.db-header__action:hover { background: var(--header-hover); color: var(--header-text-strong); text-decoration: none; }
.db-header__icon { padding: 0; width: 48px; justify-content: center; border-left: 0; }
.db-header__action .label { font-size: inherit; color: inherit; letter-spacing: inherit; }
/* the wordmark and mark (web/assets/js/brand.js): "Dais" light in the secondary text color, "Board" bold in the strong one */
.wordmark { display: block; height: 0.95em; width: auto; flex: none; }
.wordmark__dais { fill: var(--text-2); }
.wordmark__board { fill: var(--text); }
.wordmark-text { font-weight: 600; }
/* the mark: the delegate in the accent's light shade, the placard in its lightest, the line on it in the top bar's color */
.mark__person { fill: var(--mark-dais); }
.mark__arm { stroke: var(--mark-dais); }
.mark__placard { fill: var(--mark-arc); }
.mark__line { fill: var(--header); }
.db-header__logo { display: block; height: 28px; width: auto; max-width: 140px; object-fit: contain; }
.db-header__brand--logo { gap: 12px; }
.db-header__sep { width: 1px; height: 22px; background: var(--header-border); }
.db-header__app { display: inline-flex; align-items: center; gap: 8px; }
.db-header__app .db-header__mark, .db-header__app .db-header__mark svg { width: 18px; height: 18px; }
#mode-toggle .icon-sun { display: none; }
:root[data-mode="dark"] #mode-toggle .icon-sun { display: inline; }
:root[data-mode="dark"] #mode-toggle .icon-moon { display: none; }
@media (max-width: 672px) {
  /* as on ResoBoard: the mark alone, the links scroll sideways, sign out as an icon */
  .db-header__brand { padding: 0 12px; }
  .db-header__brand .wordmark, .db-header__brand .wordmark-text { display: none; }
  .db-header__link { padding: 0 10px; }
  .db-header__user { display: none; }
  .db-header__action .label { display: none; }
}

/* ---------- page layout ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.page--narrow { max-width: 640px; }
.page--wide { max-width: 1600px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.page-head__eyebrow { font-size: 0.75rem; color: var(--text-2); margin-bottom: 0.25rem; }
.message-page { padding-top: 4rem; }
.message-page > * + * { margin-top: 1rem; }
.section { margin-top: 2rem; }
.section__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.footer { padding: 2rem 1rem; color: var(--text-helper); font-size: 0.75rem; text-align: center; }
.footer a { color: inherit; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.5rem; padding: 0.5rem 1rem; border: 1px solid transparent; border-radius: 0;
  background: var(--interactive); color: #fff; cursor: pointer; text-decoration: none; font-size: 0.875rem; line-height: 1.2; white-space: nowrap; transition: background 70ms; }
.btn:hover { background: var(--interactive-hover); }
.btn:active { background: var(--interactive-active); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn--secondary { background: var(--secondary); color: #fff; }
.btn--secondary:hover { background: var(--secondary-hover); }
.btn--tertiary { background: transparent; color: var(--interactive); border-color: var(--interactive); }
.btn--tertiary:hover { background: var(--interactive); color: #fff; }
:root[data-mode="dark"] .btn--tertiary:hover { color: #161616; }
.btn--ghost { background: transparent; color: var(--interactive); }
.btn--ghost:hover { background: var(--layer-hover); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: var(--danger-hover); }
.btn--danger-ghost { background: transparent; color: var(--error); }
.btn--danger-ghost:hover { background: var(--danger); color: #fff; }
.btn--sm { min-height: 2rem; padding: 0.25rem 0.75rem; }
.btn--xs { min-height: 1.5rem; padding: 0.125rem 0.5rem; font-size: 0.75rem; }
.btn--lg { min-height: 3rem; padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--icon { padding: 0.5rem; min-width: 2.5rem; }
.btn kbd { font-family: var(--mono); font-size: 0.6875rem; opacity: 0.75; padding: 0 0.25rem; border: 1px solid currentColor; border-radius: 2px; }
.btn-set { display: flex; flex-wrap: wrap; gap: 1px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; text-decoration: underline; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.25rem; }
.field > label, .field__label { font-size: 0.75rem; color: var(--text-2); letter-spacing: 0.32px; }
.helper { font-size: 0.75rem; color: var(--text-helper); }
.input, .select, .textarea { width: 100%; min-height: 2.5rem; padding: 0.5rem 1rem; background: var(--field); color: var(--text); border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; }
.select { appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.textarea { min-height: 5rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--focus); outline-offset: -2px; }
.input--sm, .select--sm { min-height: 2rem; padding: 0.25rem 0.75rem; }
.select--sm { padding-right: 2rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.check { display: inline-flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; }
.check input { width: 1rem; height: 1rem; margin: 0.125rem 0 0; accent-color: var(--interactive); }
.check-list { display: grid; gap: 0.5rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem 1rem; }

/* ---------- tiles, tags, tables ---------- */
.tile { background: var(--layer); padding: 1rem; }
.tile--link { display: block; color: inherit; text-decoration: none; border: 1px solid transparent; }
.tile--link:hover { background: var(--layer-hover); border-color: var(--border-strong); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.tag { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 1.5rem; padding: 0 0.5rem; border-radius: 1rem; font-size: 0.75rem; background: var(--layer-accent); color: var(--text); white-space: nowrap; }
.tag--teal { background: var(--interactive-tint); color: var(--interactive); }
.tag--green { background: var(--success-tint); color: var(--success-text); }
.tag--red { background: var(--error-tint); color: var(--error-text); }
.tag--yellow { background: var(--warning-tint); color: var(--text); }
.tag--purple { background: var(--confidential-tint); color: var(--confidential); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { text-align: left; font-weight: 600; background: var(--layer-accent); padding: 0.625rem 0.75rem; white-space: nowrap; position: sticky; top: 0; }
.table th.num, .table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-subtle); vertical-align: middle; }
.table tbody tr:hover { background: var(--layer-hover); }
.table th button.sort { background: none; border: 0; padding: 0; font-weight: 600; cursor: pointer; }
.table th button.sort[aria-sort="ascending"]::after { content: ' ▲'; font-size: 0.6rem; }
.table th button.sort[aria-sort="descending"]::after { content: ' ▼'; font-size: 0.6rem; }
.table tr.is-off td { color: var(--text-helper); text-decoration: line-through; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--text-helper); background: var(--layer); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }

/* ---------- notifications, modal, toast ---------- */
.notice { display: flex; gap: 0.75rem; padding: 0.75rem 1rem; border-left: 3px solid var(--interactive); background: var(--info-tint); }
.notice--error { border-color: var(--error); background: var(--error-tint); }
.notice--warning { border-color: var(--warning); background: var(--warning-tint); }
.notice--success { border-color: var(--success); background: var(--success-tint); }
.notice--confidential { border-color: var(--confidential); background: var(--confidential-tint); }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; background: var(--overlay); }
.modal__box { width: 100%; max-width: 560px; max-height: calc(100vh - 2rem); display: flex; flex-direction: column; background: var(--layer); box-shadow: 0 2px 6px var(--shadow); }
.modal__box--lg { max-width: 860px; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 1rem 0.5rem; }
.modal__body { padding: 0.5rem 1rem 1.5rem; overflow-y: auto; }
.modal__body > * + * { margin-top: 1rem; }
.modal__foot { display: flex; }
.modal__foot .btn { flex: 1; min-height: 4rem; align-items: flex-start; justify-content: flex-start; padding: 1rem; }
.modal__close { background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0.25rem 0.5rem; color: var(--text); }
.modal__error:empty { display: none; }
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 300; display: flex; flex-direction: column; gap: 0.5rem; max-width: min(420px, calc(100vw - 2rem)); }
.toast { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem 1rem; background: #393939; color: #f4f4f4; border-left: 3px solid var(--accent); box-shadow: 0 2px 6px var(--shadow); }
.toast--error { border-color: #fa4d56; }
.toast--success { border-color: #42be65; }
.toast button { background: none; border: 0; color: #78a9ff; cursor: pointer; padding: 0; text-decoration: underline; }
.offline-bar { position: sticky; top: 3rem; z-index: 40; padding: 0.5rem 1rem; background: var(--warning); color: #161616; font-size: 0.875rem; text-align: center; }

/* ---------- tabs ---------- */
.tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border-subtle); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 0.75rem 1rem; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-2); cursor: pointer; white-space: nowrap; text-decoration: none; }
.tab:hover { color: var(--text); background: var(--layer-hover); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--interactive); font-weight: 600; }
.tab .tag { margin-left: 0.25rem; }

/* ---------- sign-in ---------- */
.login { max-width: 960px; margin: 0 auto; padding: 3rem 1rem; display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 3rem; }
.login__demo { background: var(--layer); padding: 1.5rem; }
.demo-accounts { display: grid; gap: 1px; margin-top: 1rem; }
.demo-account { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: 0.75rem 1rem; background: var(--layer-2); border: 0; text-align: left; cursor: pointer; }
.demo-account:hover { background: var(--interactive-tint); }
@media (max-width: 800px) { .login { grid-template-columns: 1fr; } }

/* ================================================================
   The chairing desk
   ================================================================ */
.desk { display: flex; flex-direction: column; min-height: calc(100vh - 3rem); }
.desk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding: 0.75rem 1rem; background: var(--layer); border-bottom: 1px solid var(--border-subtle); }
.desk-bar__title { font-size: 1.25rem; }
.desk-bar__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; color: var(--text-2); }
.desk-bar .select { width: auto; max-width: 340px; }
.stat__v--text { font-size: 1rem; font-weight: 400; padding-top: 0.5rem; }
.desk-tabs { background: var(--layer); padding: 0 0.5rem; position: sticky; top: 3rem; z-index: 30; }
.desk-main { flex: 1; padding: 1rem; max-width: 1600px; width: 100%; margin: 0 auto; }
.floor { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); gap: 1rem; align-items: start; }
@media (max-width: 960px) { .floor { grid-template-columns: 1fr; } }
.panel { background: var(--layer); padding: 1rem; }
.panel + .panel { margin-top: 1rem; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.panel__title { font-size: 1rem; font-weight: 600; }

/* the current speaker and the big timer */
.stage { background: var(--layer); padding: 1.5rem; display: grid; gap: 1rem; }
.stage__who { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.stage__label { font-size: 0.75rem; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.08em; }
.stage__speaker { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 300; line-height: 1.15; }
.stage__speaker--none { color: var(--text-helper); }
.stage__next { color: var(--text-2); }
.timer { font-family: var(--mono); font-size: clamp(3.5rem, 9vw, 7rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.timer--warn { color: #b28600; }
:root[data-mode="dark"] .timer--warn { color: var(--warning); }
.timer--over { color: var(--error); }
.timer--small { font-size: 2rem; }
.timer-bar { height: 6px; background: var(--layer-accent); overflow: hidden; }
.timer-bar > span { display: block; height: 100%; background: var(--interactive); transition: width 0.25s linear; }
.timer-bar--warn > span { background: var(--warning); }
.timer-bar--over > span { background: var(--error); }
.estimate { font-size: 0.75rem; color: var(--text-helper); }
.controls { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quick { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--border-subtle); }

/* delegations as quick-pick chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.chip { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2rem; padding: 0.25rem 0.75rem; background: var(--layer-2); border: 1px solid var(--border-subtle); cursor: pointer; font-size: 0.8125rem; }
.chip:hover { border-color: var(--interactive); background: var(--interactive-tint); }
.chip[aria-pressed="true"] { background: var(--interactive); color: #fff; border-color: var(--interactive); }
.chip--absent { opacity: 0.5; }
.chip__count { font-size: 0.6875rem; color: var(--text-helper); }
.picker-search { margin-bottom: 0.5rem; }

/* speakers' list */
.speakers { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.speaker { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.5rem 0.5rem 0.75rem; background: var(--layer-2); }
.speaker__n { width: 1.5rem; color: var(--text-helper); font-variant-numeric: tabular-nums; }
.speaker__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.speaker--next { box-shadow: inset 3px 0 0 var(--interactive); }
.speaker--speaking { background: var(--interactive-tint); font-weight: 600; }
.speaker--done { color: var(--text-helper); }
.speaker[draggable="true"] { cursor: grab; }
.speaker.is-drag-over { box-shadow: inset 0 2px 0 var(--interactive); }
.speaker .btn--icon { min-width: 2rem; min-height: 2rem; padding: 0.25rem; }

/* activity feed */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; max-height: 360px; overflow-y: auto; }
.feed li { display: flex; gap: 0.75rem; align-items: baseline; padding: 0.5rem 0.75rem; background: var(--layer-2); font-size: 0.8125rem; }
.feed time { color: var(--text-helper); font-size: 0.75rem; white-space: nowrap; }
.feed .grow { min-width: 0; }

/* roll call */
.rollcall { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; }
.rc-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: var(--layer-2); }
.rc-row__name { flex: 1; min-width: 0; }
.rc-row__name small { display: block; color: var(--text-helper); font-size: 0.75rem; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); }
.seg button { padding: 0.25rem 0.5rem; background: transparent; border: 0; border-left: 1px solid var(--border-subtle); cursor: pointer; font-size: 0.75rem; min-width: 2rem; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--interactive); color: #fff; }
.seg button[data-v="absent"][aria-pressed="true"] { background: var(--error); }
.stats { display: flex; flex-wrap: wrap; gap: 1px; }
.stat { flex: 1 1 140px; padding: 0.75rem 1rem; background: var(--layer-2); }
.stat__v { font-size: 1.5rem; font-weight: 300; font-variant-numeric: tabular-nums; }
.stat__l { font-size: 0.75rem; color: var(--text-2); }

/* voting */
.ballot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; }
.ballot { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.75rem; background: var(--layer-2); }
.ballot .seg button[data-v="yes"][aria-pressed="true"] { background: var(--success); }
.ballot .seg button[data-v="no"][aria-pressed="true"] { background: var(--error); }
.ballot .seg button[data-v="abstain"][aria-pressed="true"] { background: var(--secondary); }
.result { font-size: 1.5rem; font-weight: 300; }
.result--passed { color: var(--success-text); }
.result--failed, .result--vetoed { color: var(--error-text); }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.counts input { font-size: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }

/* confidential sections */
.confidential { border-top: 3px solid var(--confidential); }
.confidential-label { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--confidential); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.score { display: inline-flex; gap: 2px; }
.score button { width: 2rem; height: 2rem; border: 1px solid var(--border-subtle); background: var(--layer-2); cursor: pointer; font-variant-numeric: tabular-nums; }
.score button[aria-pressed="true"] { background: var(--confidential); color: #fff; border-color: var(--confidential); }
.criterion { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--border-subtle); }
.bar { display: inline-block; height: 0.5rem; background: var(--interactive); vertical-align: middle; }
.bars { display: flex; align-items: center; gap: 0.5rem; }

/* keyboard help */
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 0.375rem 1rem; }
.keys kbd { font-family: var(--mono); padding: 0.125rem 0.375rem; background: var(--layer-accent); border-radius: 2px; }

/* ================================================================ projector */
.projector { min-height: 100vh; display: flex; flex-direction: column; padding: 3vh 4vw; gap: 3vh; background: var(--bg); color: var(--text); cursor: default; }
.projector__top { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; }
.projector__committee { font-size: clamp(1.25rem, 2.6vw, 2.5rem); font-weight: 600; }
.projector__topic { font-size: clamp(1rem, 2vw, 1.75rem); color: var(--text-2); }
.projector__mode { font-size: clamp(1rem, 1.8vw, 1.5rem); padding: 0.25em 0.75em; background: var(--interactive); color: #fff; white-space: nowrap; }
.projector__main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4vw; align-items: center; }
.projector__label { font-size: clamp(0.9rem, 1.5vw, 1.4rem); color: var(--text-2); text-transform: uppercase; letter-spacing: 0.1em; }
.projector__speaker { font-size: clamp(2.5rem, 7vw, 7rem); font-weight: 300; line-height: 1.05; }
.projector__timer { font-family: var(--mono); font-size: clamp(4rem, 15vw, 16rem); line-height: 1; font-variant-numeric: tabular-nums; }
.projector__next { list-style: none; margin: 0; padding: 0; font-size: clamp(1.25rem, 2.6vw, 2.5rem); }
.projector__next li { padding: 0.25em 0; border-bottom: 1px solid var(--border-subtle); }
.projector__bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2vw; font-size: clamp(1rem, 1.8vw, 1.75rem); }
.projector__box { background: var(--layer); padding: 1em; }
.projector__message { font-size: clamp(1.5rem, 3.5vw, 3.5rem); text-align: center; padding: 0.5em; background: var(--interactive-tint); }
.projector .timer-bar { height: 1.2vh; }
.projector-tools { position: fixed; right: 1rem; bottom: 1rem; display: flex; gap: 0.5rem; opacity: 0; transition: opacity 0.2s; }
.projector:hover .projector-tools, .projector-tools:focus-within { opacity: 1; }
@media (max-width: 800px) { .projector__main { grid-template-columns: 1fr; } }

/* ================================================================ landing page
   Its own look, apart from ResoBoard's: a centred plum hero with the room of
   delegates along its foot, the desk itself as the picture, and sans type only. */
.lp-hero { position: relative; overflow: hidden; color: #fff; padding: 5rem 1.5rem 0; text-align: center;
  background: linear-gradient(to bottom, var(--header) 0, var(--header) calc(100% - 10rem), var(--bg) calc(100% - 10rem)); }
.lp-hero::before { content: ''; position: absolute; inset: 0 0 10rem; pointer-events: none;
  background: radial-gradient(60rem 28rem at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.lp-hero__inner { position: relative; max-width: 54rem; margin: 0 auto; }
.lp-hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); font-weight: 300; line-height: 1.04; letter-spacing: -0.02em; margin-top: 1.5rem; }
.lp-lede { font-size: 1.1875rem; line-height: 1.55; color: var(--header-text-2); max-width: 40rem; margin: 1.5rem auto 0; }
.lp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.25rem; }
.lp-hero .lp-btn { background: #fff; color: var(--header); }
.lp-hero .lp-btn:hover { background: var(--accent-light); color: var(--header); }
.lp-hero .lp-btn--ghost { color: #fff; border: 1px solid color-mix(in srgb, #fff 55%, transparent); }
.lp-hero .lp-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.lp-pill { display: inline-block; padding: 0.3rem 0.875rem; border-radius: 1rem; font-size: 0.8125rem; letter-spacing: 0.02em;
  color: var(--accent-light); border: 1px solid color-mix(in srgb, var(--accent-light) 45%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.lp-room { position: absolute; left: 0; right: 0; bottom: 10rem; width: 100%; height: 4.5rem; color: var(--mark-dais); fill: currentColor; opacity: 0.32; }
.lp-room__card { fill: var(--mark-arc); }

/* the desk, drawn in the page's own styles */
.lp-window { position: relative; z-index: 1; max-width: 62rem; margin: 3.5rem auto 0; text-align: left; color: var(--text); background: var(--bg);
  border: 1px solid var(--border-subtle); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(15, 5, 30, 0.55), 0 2px 6px rgba(0, 0, 0, 0.12); }
.lp-window__bar { display: flex; align-items: center; gap: 1rem; padding: 0.625rem 1rem; background: var(--layer); border-bottom: 1px solid var(--border-subtle); font-size: 0.8125rem; }
.lp-window__dots { display: flex; gap: 0.375rem; }
.lp-window__dots i { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--border-strong); opacity: 0.45; }
.lp-window__title { flex: 1; color: var(--text-2); }
.lp-status { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.125rem 0.625rem; border-radius: 0; background: var(--layer-2); border: 1px solid var(--border-subtle); }
.lp-status i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--success); }
.lp-window__body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.lp-desk { padding: 1.5rem; display: grid; gap: 0.625rem; align-content: start; }
.lp-side { padding: 1.5rem; border-left: 1px solid var(--border-subtle); background: var(--layer); display: grid; gap: 0.75rem; align-content: start; }
.lp-floor { border-left: 4px solid var(--interactive); background: var(--interactive-tint); padding: 0.75rem 1rem; margin-bottom: 0.5rem; }
.lp-floor__label, .lp-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.lp-floor__label { color: var(--interactive); }
.lp-floor__title { font-size: 1.0625rem; margin-top: 0.25rem; }
.lp-floor__meta { font-size: 0.8125rem; color: var(--text-2); margin-top: 0.125rem; }
.lp-speaker { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.lp-speaker__name { font-size: 2.25rem; font-weight: 300; }
.lp-speaker__time { font-family: var(--mono); font-size: 3.25rem; line-height: 1; font-variant-numeric: tabular-nums; }
.lp-desk .timer-bar { margin-bottom: 0.75rem; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.lp-chips span { padding: 0.3rem 0.75rem; border-radius: 0; background: var(--layer-2); border: 1px solid var(--border-subtle); font-size: 0.8125rem; }
.lp-chips .lp-chips__add { color: var(--interactive); border-style: dashed; border-color: var(--interactive); background: transparent; }
.lp-list { margin: 0; padding: 0; list-style: none; counter-reset: lp; }
.lp-list li { counter-increment: lp; display: flex; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border-subtle); font-size: 0.9375rem; }
.lp-list li::before { content: counter(lp); width: 1.25rem; color: var(--text-2); font-family: var(--mono); font-size: 0.8125rem; }
.lp-motion { background: var(--bg); border: 1px solid var(--border-subtle); padding: 0.75rem; font-size: 0.875rem; }
.lp-motion p + p { margin-top: 0.125rem; }
.lp-motion__meta { color: var(--text-2); font-size: 0.8125rem; }

/* sections */
.lp-section { max-width: 72rem; margin: 0 auto; padding: 5rem 1.5rem; }
.lp-section--tint { max-width: none; background: var(--layer); }
.lp-section--tint > * { max-width: 69rem; margin-left: auto; margin-right: auto; }
.lp-kicker { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--interactive); text-align: center; }
.lp-h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 300; letter-spacing: -0.01em; text-align: center; margin: 0.5rem auto 3rem; }

/* a session at the dais: one line through five stops */
.lp-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.lp-track::before { content: ''; position: absolute; top: 1.25rem; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(to right, var(--interactive), var(--accent)); }
.lp-track li { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lp-track__dot { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
  background: var(--bg); color: var(--interactive); border: 2px solid var(--interactive); box-shadow: 0 0 0 6px var(--bg); }
.lp-track h3 { font-size: 1.0625rem; font-weight: 600; margin-top: 1.25rem; }
.lp-track p { font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); margin-top: 0.375rem; flex: 1; }
.lp-ui { margin-top: 1rem; display: inline-block; padding: 0.375rem 0.75rem; border-radius: 0; font-size: 0.8125rem; background: var(--layer); border: 1px solid var(--border-subtle); white-space: nowrap; }
.lp-ui--conf { color: var(--confidential); background: var(--confidential-tint); border-color: color-mix(in srgb, var(--confidential) 35%, transparent); font-weight: 600; }

/* everything a chair needs */
.lp-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.lp-tile { background: var(--bg); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 1.5rem; }
.lp-tile--wide { grid-column: span 2; }
.lp-tile h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.5rem; }
.lp-tile p { line-height: 1.55; color: var(--text-2); }
.lp-tile--conf { border-top: 3px solid var(--confidential); }
.lp-toggles { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.875rem; }
.lp-toggles li { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-2); }
.lp-toggles li::before { content: ''; width: 1.75rem; height: 1rem; border-radius: 0.5rem; background: var(--border-strong); opacity: 0.5;
  box-shadow: inset 0.125rem 0 0 0.125rem transparent; background-image: radial-gradient(circle at 0.5rem 50%, #fff 0.3rem, transparent 0.32rem); }
.lp-toggles li.on { color: var(--text); }
.lp-toggles li.on::before { background-color: var(--interactive); opacity: 1; background-image: radial-gradient(circle at 1.25rem 50%, #fff 0.3rem, transparent 0.32rem); }
.lp-seg { display: inline-flex; margin-top: 1rem; border: 1px solid var(--border-strong); border-radius: 0; overflow: hidden; font-size: 0.8125rem; }
.lp-seg span { padding: 0.3rem 0.75rem; }
.lp-seg .on { background: var(--interactive); color: var(--bg); }
.lp-bars { display: grid; gap: 0.375rem; margin-top: 1rem; font-size: 0.75rem; }
.lp-bars span { display: block; padding: 0.2rem 0.5rem; width: var(--w); color: var(--text); border-radius: 3px;
  background: linear-gradient(to right, color-mix(in srgb, var(--interactive) 28%, transparent), color-mix(in srgb, var(--interactive) 12%, transparent)); }

/* register */
.lp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; color: var(--header-text-2); }
.lp-checks li { display: flex; gap: 0.625rem; }
.lp-checks li::before { content: '✓'; color: var(--accent-light); font-weight: 600; }

@media (max-width: 960px) {
  .lp-track { grid-template-columns: 1fr; gap: 0; }
  .lp-track::before { top: 1rem; bottom: 1rem; left: 1.25rem; right: auto; width: 2px; height: auto; background: linear-gradient(var(--interactive), var(--accent)); }
  .lp-track li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1.25rem; text-align: left; align-items: start; padding-bottom: 1.75rem; }
  .lp-track__dot { grid-row: span 3; }
  .lp-track h3 { margin-top: 0.5rem; }
  .lp-ui { justify-self: start; margin-top: 0.75rem; }
  .lp-bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .lp-window__body { grid-template-columns: 1fr; }
  .lp-side, .lp-room { display: none; }
  .lp-bento { grid-template-columns: 1fr; }
  .lp-tile--wide { grid-column: auto; }
  .lp-hero { padding-top: 3.5rem; }
  .lp-cta { padding: 1.5rem; }
}
.lite .lp-room, .lite .lp-hero::before { display: none; }
.legal h2 { font-size: 1.25rem; font-weight: 600; margin-top: 2rem; }
.legal p, .legal li { font-size: 1rem; line-height: 1.6; }
.legal p + p, .legal ul { margin-top: 0.75rem; }

@media (hover: none) { .btn kbd { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  .db-header, .desk-tabs, .no-print, .toasts { display: none !important; }
  body { background: #fff; color: #000; }
  .page { padding: 0; max-width: none; }
}

/* ================================================================ simpler desk */
.narrow { max-width: 760px; }
.status-btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2rem; padding: 0.25rem 0.75rem; background: var(--layer-2); border: 1px solid var(--border-subtle); border-radius: 0; cursor: pointer; font-size: 0.875rem; max-width: 520px; }
button.status-btn:hover { border-color: var(--interactive); }
.status-btn__topic { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-btn__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--border-strong); flex: none; }
.status-btn__dot--formal, .status-btn__dot--moderated, .status-btn__dot--statements { background: var(--success); }
.status-btn__dot--unmoderated { background: var(--accent); }
.status-btn__dot--voting { background: var(--warning); }
.status-btn__dot--suspended { background: var(--error); }
.tag--btn { border: 0; border-radius: 0; cursor: pointer; font: inherit; font-size: 0.75rem; }
.getting-started { background: var(--interactive-tint); border-left: 3px solid var(--interactive); padding: 1rem 1.25rem; margin-bottom: 1rem; }
.gs-steps { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.gs-step { display: flex; align-items: center; gap: 0.75rem; color: var(--text-2); }
.gs-step__mark { width: 1.5rem; height: 1.5rem; flex: none; border-radius: 50%; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.gs-step--done { color: var(--text-helper); }
.gs-step--done .gs-step__mark { background: var(--success); border-color: var(--success); color: #fff; }
.gs-step--next { color: var(--text); }
.gs-step--next .gs-step__mark { border: 2px solid var(--interactive); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.5rem; }
.radio-card { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem; background: var(--layer-2); border: 1px solid var(--border-subtle); cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--interactive); box-shadow: inset 0 0 0 1px var(--interactive); }
.radio-card input { margin-top: 0.2rem; accent-color: var(--interactive); }
.menu-list { display: grid; gap: 1px; }
.menu-item { display: flex; flex-direction: column; align-items: flex-start; gap: 0.125rem; padding: 0.75rem 1rem; background: var(--layer-2); border: 0; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--interactive-tint); }
details.advanced > summary { cursor: pointer; color: var(--interactive); padding: 0.25rem 0; list-style: none; }
details.advanced > summary::-webkit-details-marker { display: none; }
details.advanced > summary::before { content: '▸ '; }
details.advanced[open] > summary::before { content: '▾ '; }
details.advanced[open] > summary { margin-bottom: 0.75rem; }
.help-list { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.625rem; font-size: 0.9375rem; line-height: 1.5; }
.help-list kbd, .helper kbd { font-family: var(--mono); padding: 0 0.25rem; background: var(--layer-accent); border-radius: 2px; }
.list-switch { width: auto; max-width: 100%; font-weight: 600; }
.seg button { min-width: 3rem; }
@media (max-width: 700px) { .status-btn__topic { display: none; } .status-btn { max-width: 100%; } }

/* ---------- Resolutions & votes ---------- */
.flow-line { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.25rem; font-size: 0.75rem; color: var(--text-secondary); }
.flow-line span + span::before { content: '→'; margin-right: 0.25rem; color: var(--text-placeholder, var(--text-secondary)); }
.group-title { font-size: 0.875rem; font-weight: 600; margin: 1.75rem 0 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.group-title .count { font-weight: 400; color: var(--text-secondary); }
.panel--floor { border-left: 3px solid var(--interactive); }
.panel--vote { border-left: 3px solid var(--support-warning, #f1c21b); margin-bottom: 0.5rem; }
.res-list { border: 1px solid var(--border-subtle); background: var(--layer-1); }
.res-row { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; padding: 0.75rem 1rem; }
.res-row + .res-row { border-top: 1px solid var(--border-subtle); }
.res-row__main { min-width: 0; flex: 1; }
.res-row__main details { margin-top: 0.25rem; }
.res-row__side { flex-shrink: 0; align-items: center; }
.vote-history { margin-top: 2rem; }
@media (max-width: 640px) { .res-row { flex-direction: column; } }

/* ---------- "How this works" boxes ---------- */
.howto { background: var(--layer-1); border: 1px solid var(--border-subtle); border-left: 3px solid var(--interactive); padding: 1rem 1.25rem; margin-bottom: 1.5rem; position: relative; }
.howto h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; padding-right: 2rem; }
.howto ol, .howto ul { margin: 0.25rem 0 0 1.25rem; }
.howto li { margin: 0.25rem 0; line-height: 1.45; }
.howto p { line-height: 1.45; }
.howto p + p, .howto p + ol, .howto ol + p, .howto ul + p { margin-top: 0.5rem; }
.howto .howto__close { position: absolute; top: 0.5rem; right: 0.5rem; }
.howto-open { margin-bottom: 1rem; }

/* ---------- On the floor: resolution (the brand color) or amendment (teal) ---------- */
.onfloor { background: var(--layer); border-left: 4px solid var(--interactive); padding: 0.875rem 1.25rem; margin-bottom: 1rem; display: grid; gap: 0.625rem; }
.onfloor--amendment { border-left-color: var(--confidential); background: var(--confidential-tint); }
.onfloor__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--interactive); }
.onfloor--amendment .onfloor__label { color: var(--confidential); }
.onfloor__title { font-size: 1.125rem; line-height: 1.35; margin: 0.125rem 0; }
.onfloor__debate { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
.onfloor__debate .seg button { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.seg--sides button[data-v="for"][aria-pressed="true"] { background: var(--success); }
.seg--sides button[data-v="against"][aria-pressed="true"] { background: var(--error); }
.notice--amendment { background: var(--confidential-tint); border-left: 3px solid var(--confidential); padding: 0.625rem 1rem; }
.table tr.is-onfloor td { background: var(--confidential-tint); }
.table tr.is-onfloor td:first-child { box-shadow: inset 3px 0 0 var(--confidential); }
.caucus-pick .chips { max-height: 360px; overflow: auto; }
.caucus-pick .chip { min-height: 2.5rem; font-size: 0.875rem; }
.caucus-pick .chip[hidden] { display: none; }
.projector__box--amendment { box-shadow: inset 4px 0 0 var(--confidential); }
.projector__speaker--none { opacity: 0.55; }
.chip[aria-pressed="true"] .chip__count { color: inherit; opacity: 0.85; }
.radio-cards--row { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.radio-cards--row .radio-card { padding: 0.625rem 0.75rem; }
.onfloor__over { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; background: var(--layer-2, var(--layer)); border-left: 3px solid var(--warning); padding: 0.5rem 0.75rem; }

/* ================================================================ a conference's look (Setup → Appearance) */
/* banner graphics (web/assets/js/hero.js), colored by the theme */
.art .s-a { stroke: var(--accent); }
.art .s-l { stroke: var(--accent-light); }
.art .f-a { fill: var(--accent); }
.art .f-l { fill: var(--accent-light); }
.art { display: block; width: 100%; height: 100%; }
/* the public page's banner */
.conf-hero { position: relative; overflow: hidden; background: var(--header); color: var(--header-text-strong); }
.conf-hero__inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 56px 1rem 64px; }
.conf-hero__eyebrow { color: var(--hero-eyebrow); font-size: 0.875rem; letter-spacing: 0.16px; margin-bottom: 12px; }
.conf-hero h1 { font-size: 2.625rem; line-height: 1.19; font-weight: 400; max-width: 640px; }
.conf-hero p#pub-intro { color: var(--header-text-2); margin-top: 16px; max-width: 520px; line-height: 1.5; }
.conf-hero__art { position: absolute; right: 4%; top: 50%; width: 360px; height: 360px; transform: translateY(-50%); opacity: 0.9; pointer-events: none; }
.conf-hero__logo { display: block; max-height: 72px; max-width: 240px; width: auto; object-fit: contain; margin-bottom: 24px; }
.btn--on-dark { background: var(--header-text-strong); color: var(--header); }
.btn--on-dark:hover { background: var(--header-text); color: var(--header); }
@media (max-width: 900px) { .conf-hero__art { opacity: 0.25; right: -120px; } .conf-hero h1 { font-size: 2rem; } }
/* the sign-in page */
.login__art { position: relative; background: var(--header); overflow: hidden; min-height: 420px; }
.login__art .art-wrap { position: absolute; inset: 0; margin: auto; width: 80%; max-width: 480px; height: 80%; max-height: 480px; }
.login__logo { display: block; max-height: 56px; max-width: 200px; object-fit: contain; margin-bottom: 1rem; }
@media (max-width: 800px) { .login__art { display: none; } }
/* the footer */
.site-footer { border-top: 1px solid var(--border-subtle); margin-top: 3rem; }
.site-footer__inner { max-width: 1312px; margin: 0 auto; padding: 16px 1rem 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: flex-end; color: var(--text-helper); font-size: 0.75rem; letter-spacing: 0.32px; }
.site-footer a { color: var(--text-2); }
.site-footer__who { display: flex; flex-direction: column; gap: 6px; }
.site-footer__brand { display: inline-flex; margin-bottom: 2px; }
.site-footer .site-footer__brand .wordmark { height: 16px; }
.site-footer .site-footer__brand .wordmark__dais { fill: var(--text-2); }
.site-footer .site-footer__brand .wordmark__board { fill: var(--text); }
.site-footer__by { display: flex; align-items: center; gap: 5px; }
.site-footer__by a { display: inline-flex; }
.site-footer .wordmark { height: 10px; }
.site-footer .wordmark__dais { fill: var(--text-helper); }
.site-footer .wordmark__board { fill: var(--text-2); }
.site-footer__by a:hover .wordmark__board { fill: var(--text); }
.site-footer__conf { color: var(--text); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.16px; }
.site-footer .site-footer__conf a { color: inherit; }
/* Setup → Appearance */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.swatch { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--layer); border: 1px solid var(--border-subtle); cursor: pointer; text-align: left; font: inherit; color: var(--text); }
.swatch:hover { border-color: var(--border-strong); }
.swatch.is-selected { border-color: var(--interactive); box-shadow: inset 0 0 0 1px var(--interactive); }
.swatch__bar { display: flex; height: 24px; }
.swatch__bar span { flex: 1; }
.swatch__bar span:first-child { flex: 2; }
.swatch__name { font-size: 0.8125rem; }
.color-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.color-field { display: flex; gap: 6px; align-items: stretch; }
.color-field input[type=color] { width: 44px; height: 40px; padding: 0; border: 1px solid var(--border-subtle); background: none; cursor: pointer; }
.color-field .input { font-family: var(--mono); }
.hero-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.hero-option { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 6px; background: var(--layer); border: 1px solid var(--border-subtle); cursor: pointer; font: inherit; color: var(--text); }
.hero-option.is-selected { border-color: var(--interactive); box-shadow: inset 0 0 0 1px var(--interactive); }
.hero-option__art { display: block; aspect-ratio: 1; background: var(--header); padding: 6px; }
.hero-option__name { font-size: 0.8125rem; }
.logo-field { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-field__preview { width: 160px; height: 72px; display: flex; align-items: center; justify-content: center; background: var(--header); padding: 8px; }
.logo-field__preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-field__preview .muted { color: var(--header-text-2); font-size: 0.75rem; }
.appearance { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
.appearance__preview { position: sticky; top: 64px; }
.theme-preview { border: 1px solid var(--border-subtle); background: var(--bg); overflow: hidden; }
.theme-preview__header { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--header); color: var(--header-text-strong); font-size: 0.8125rem; font-weight: 600; }
.theme-preview__header .wordmark { height: 10px; }
.theme-preview__header .wordmark__dais { fill: var(--header-text-2); }
.theme-preview__header .wordmark__board { fill: var(--header-text-strong); }
.theme-preview__header svg.mark, .theme-preview__header img { width: 18px; height: 18px; object-fit: contain; }
.theme-preview__header img { width: auto; max-width: 80px; }
.theme-preview__hero { position: relative; overflow: hidden; background: var(--header); padding: 20px 12px 28px; border-top: 1px solid var(--header-border); }
.theme-preview__hero .art-wrap { position: absolute; right: -40px; top: -10px; width: 170px; height: 170px; opacity: 0.9; }
.theme-preview__hero .eyebrow { position: relative; color: var(--hero-eyebrow); font-size: 0.75rem; }
.theme-preview__hero h3 { position: relative; color: var(--header-text-strong); font-size: 1.25rem; font-weight: 400; margin-top: 4px; max-width: 70%; }
.theme-preview__body { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 12px; color: var(--text); }
.theme-preview__body a { color: var(--link); }
@media (max-width: 1000px) { .appearance { grid-template-columns: 1fr; } .appearance__preview { position: static; } }
/* Lite mode: no web fonts, banner graphics or animations */
.lite .conf-hero__art, .lite .login__art { display: none !important; }
.lite *, .lite *::before, .lite *::after { transition: none !important; animation: none !important; }

/* Setup → Who chairs a committee */
.chair-list { display: grid; gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); }
.chair-list--add { max-height: 320px; overflow: auto; }
.chair-row { background: var(--layer); padding: 0.5rem 0.75rem; }
.chair-row__main { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.chair-row__name { flex: 1; min-width: 10rem; }
.chair-row__name small { display: block; color: var(--text-helper); font-size: 0.75rem; }
.chair-row .seg button { padding: 0.25rem 0.75rem; font-size: 0.8125rem; }
.chair-row__rights { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; padding: 0.5rem 0 0.25rem; }
/* small labels under a person's name: their committees and roles */
.pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.pills .tag { font-size: 0.6875rem; line-height: 1.1; padding: 2px 8px; min-height: 0; }
.tag--outline { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.tag--free { color: var(--text-helper); box-shadow: inset 0 0 0 1px var(--border-subtle); }

/* ================================================================ settings (laid out as on ResoBoard) */
.page-head__sub { color: var(--text-2); margin-top: 0.5rem; max-width: 40rem; }
.settings { max-width: 640px; }
.settings .section { margin: 0 0 3rem; }
.settings .section__head { display: block; margin-bottom: 1rem; }
.settings .section__head p { color: var(--text-2); margin-top: 0.25rem; max-width: 640px; }
.settings .narrow-form { max-width: 400px; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { flex: 1; min-width: 0; }
.switch-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 10px 0; cursor: pointer; }
.switch-row + .switch-row { border-top: 1px solid var(--border-subtle); }
.switch-row strong { display: block; font-size: 0.875rem; }
.switch-row__hint { display: block; font-size: 0.75rem; color: var(--text-2); line-height: 1.35; margin-top: 2px; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; margin-top: 1px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch__track { position: absolute; inset: 0; background: var(--border-strong); border-radius: 11px; transition: background 110ms; }
.switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 110ms; }
.switch input:checked + .switch__track { background: var(--interactive); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch input:disabled + .switch__track { opacity: 0.4; }
.btn--danger-tertiary { background: transparent; color: var(--error); border-color: var(--error); }
.btn--danger-tertiary:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.danger-zone { border: 1px solid var(--error); padding: 20px 24px; max-width: 880px; }
.danger-zone h2 { color: var(--error); margin: 0; }
.danger-zone__intro { color: var(--text-2); font-size: 0.875rem; margin: 4px 0 8px; }
.danger-list { list-style: none; margin: 0; padding: 0; }
.danger-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 14px 0; border-top: 1px solid var(--border-subtle); }
.danger-list li > div { flex: 1 1 320px; }
.danger-list strong { display: block; font-size: 0.875rem; }
.danger-list span { display: block; font-size: 0.8125rem; color: var(--text-2); margin-top: 2px; line-height: 1.4; }

/* ================================================================ the public page: DaisBoard's own layout
   (ResoBoard's is left-aligned with the graphic on the right; here the banner is centred, the graphic sits
   behind it as a seal, the room of delegates runs along its foot, and below is a live board) */
.conf-hero--dais { text-align: center; padding-bottom: 4.5rem; }
.conf-hero--dais .conf-hero__inner { max-width: 760px; padding: 64px 1rem 40px; }
.conf-hero--dais h1 { max-width: none; font-size: clamp(2.25rem, 5vw, 3.25rem); font-weight: 300; letter-spacing: -0.01em; }
.conf-hero--dais p#pub-intro { margin: 16px auto 0; }
.conf-hero--dais .conf-hero__logo { margin: 0 auto 24px; }
.conf-hero--dais .conf-hero__art { right: auto; left: 50%; top: 44%; width: 640px; height: 640px; transform: translate(-50%, -50%); opacity: 0.09; }
.conf-hero__actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }
.conf-room { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 3.5rem; color: var(--mark-dais); fill: currentColor; opacity: 0.3; pointer-events: none; }
.conf-room__card { fill: var(--mark-arc); }
.board__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.board__live { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-2); }
.board__live i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 var(--success); animation: db-pulse 2s infinite; }
@keyframes db-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.board__card { background: var(--layer); border: 1px solid var(--border-subtle); border-left: 4px solid var(--border-strong); border-radius: var(--radius); padding: 1rem 1.25rem 1.25rem; }
.board__card--live { border-left-color: var(--success); }
.board__card--caucus { border-left-color: var(--accent); }
.board__card--voting { border-left-color: var(--warning); }
.board__card--off { border-left-color: var(--error); }
.board__top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.board__code { font-family: var(--mono); font-size: 0.8125rem; padding: 0.125rem 0.5rem; border-radius: 1rem; background: var(--layer-accent); }
.board__state { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--text-2); }
.board__state i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--border-strong); }
.board__card--live .board__state i { background: var(--success); }
.board__card--caucus .board__state i { background: var(--accent); }
.board__card--voting .board__state i { background: var(--warning); }
.board__card--off .board__state i { background: var(--error); }
.board__name { font-size: 1.125rem; font-weight: 600; margin-top: 0.75rem; line-height: 1.3; }
.board__topic { color: var(--text-2); margin-top: 0.25rem; line-height: 1.45; }
.board__lines { margin-top: 0.875rem; padding-top: 0.75rem; border-top: 1px solid var(--border-subtle); display: grid; gap: 0.375rem; }
.board__line { display: flex; gap: 0.75rem; font-size: 0.875rem; }
.board__key { flex: none; width: 6.5rem; color: var(--text-2); font-size: 0.75rem; letter-spacing: 0.02em; text-transform: uppercase; padding-top: 0.125rem; }
.board__val { min-width: 0; }
.lite .conf-room { display: none; }
@media (max-width: 600px) { .board { grid-template-columns: 1fr; } .conf-hero--dais .conf-hero__art { width: 340px; height: 340px; } }

/* ================================================================ DaisBoard's shape: softened corners
   ResoBoard keeps Carbon's square corners; DaisBoard rounds its surfaces a little, so the two apps differ at a
   glance even when a conference gives them the same colors. */
:root { --radius: 8px; }
/* buttons and fields stay square, as on ResoBoard: only surfaces are rounded */
.modal__box { border-radius: var(--radius); overflow: hidden; }
.tile, .panel, .empty, .notice, .howto, .getting-started, .onfloor, .notice--amendment, .res-list, .login__demo,
.theme-preview, .swatch, .hero-option, .radio-card, .danger-zone, .speaker { border-radius: var(--radius); }
.notice, .howto, .getting-started, .onfloor { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tabs .tab, .desk-tabs .tab { border-radius: 0; }

/* ================================================================ platform pages: the go-box at the top, the call to action, registration */
.lp-hero .lp-go { max-width: 34rem; margin: 2.25rem auto 0; text-align: left; }
.lp-go label { display: block; font-size: 0.8125rem; color: var(--header-text-2); margin-bottom: 0.5rem; text-align: center; }
.lp-go__row { display: flex; align-items: stretch; background: var(--header-hover); border: 1px solid var(--header-border); overflow: hidden; }
.lp-go__row > span { display: flex; align-items: center; padding: 0 0.625rem; font-size: 0.8125rem; color: var(--header-text-2); white-space: nowrap; }
.lp-go__row .input { flex: 1; min-width: 0; border: 0; border-radius: 0; background: color-mix(in srgb, #000 22%, var(--header)); color: #fff; caret-color: #fff; }
.lp-go__row .input::placeholder { color: var(--header-text-2); opacity: 0.8; }
.lp-go__row .input:focus { outline: 2px solid var(--accent-light); outline-offset: -2px; }
.lp-go__row > span:empty, .lp-go__row > span[hidden] { display: none; }
.lp-go__row .btn { border-radius: 0; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; background: var(--header); color: #fff; border-radius: 12px; padding: 2.5rem; }
.lp-cta h2 { font-size: 2rem; font-weight: 300; letter-spacing: -0.01em; margin: 1rem 0 1.25rem; }
.lp-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.lp-cta .lp-btn { background: #fff; color: var(--header); }
.lp-cta .lp-btn:hover { background: var(--accent-light); }
.lp-cta .lp-btn--ghost { color: #fff; border: 1px solid color-mix(in srgb, #fff 55%, transparent); }
.lp-cta .lp-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.page--narrow { max-width: 720px; }
.reg-form { display: grid; gap: 2.5rem; }
.reg-form .field { max-width: 560px; }
.slug-field { display: flex; align-items: stretch; }
.slug-field .input { flex: 1; min-width: 0; border-radius: 0; }
.slug-field .affix { display: flex; align-items: center; padding: 0 0.625rem; background: var(--layer-accent); color: var(--text-2); font-size: 0.8125rem; border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.slug-status.ok { color: var(--success-text, var(--success)); }
.slug-status.bad { color: var(--error-text, var(--error)); }
.message-page { padding: 2rem 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }

/* Setup → Chairs & staff: the secretariat, the organizing team and the chairs, one under the other */
.radio-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.radio-cards--3 .radio-card { padding: 0.625rem 0.75rem; align-items: center; }
@media (max-width: 560px) { .radio-cards--3 { grid-template-columns: 1fr; } }
.people-group { margin-top: 2rem; }
.people-group__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--interactive); }
.people-group__head .count { font-weight: 400; color: var(--text-2); margin-left: 0.25rem; }
.people-group__head .helper { margin-top: 0.125rem; }

/* Setup → Awards: rows edited in place */
.edit-rows { display: grid; gap: 0.5rem; }
.edit-row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1.6fr) auto auto; gap: 0.5rem; align-items: center; }
.edit-row--crit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto auto; }
.edit-row__num { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--text-2); white-space: nowrap; }
.edit-row__num .input { width: 4.25rem; }
.edit-rows:not(.is-weighted) .edit-row__weight { display: none; }
.edit-row.is-off .input { opacity: 0.55; }
@media (max-width: 700px) { .edit-row, .edit-row--crit { grid-template-columns: 1fr auto; } .edit-row > .input:not(:first-child) { grid-column: 1 / -1; } }
