/* style.css. An external stylesheet, not an inline <style> block or inline
   `style="..."` attributes, so this page's CSP (apps/api/src/adminSecurityHeaders.ts)
   can keep `style-src 'self'` and `font-src 'self'` with no `'unsafe-inline'`.

   CA-330 PR 1a: the Cosmonauts brand, applied to the existing single-page
   layout. Sources: the brand token files (colors, typography, spacing,
   effects, states) under Cosmonauts/_programme/brand/ds/tokens/, applied as
   the internal-tools shell spec describes, and the CA-330 build brief
   ("Brand as built"). Values are copied from those, not invented. The brand
   package's own font folder does not exist, so the two families are vendored
   under ./fonts/ from the npm packages (versions and licences: see below).

   The attendance row rules are pinned by attendanceLayout.computed.test.ts,
   which reads the computed style of rendered rows (CA-612), so their selectors
   and position in this file are free to change; the computed result is not. */

/* The `hidden` attribute always wins. Any `display` rule below (the card layout
   sets `display: block` on #attendees-table under 900px) would otherwise beat
   the browser's own `[hidden] { display: none }`, which has lower priority than
   an author rule. Round 2: at 390px an empty #attendees-table was showing
   although its `hidden` attribute was set. */
[hidden] {
  display: none !important;
}

/* Fonts. Both are SIL OFL 1.1; the licence texts sit beside the files
   (fonts/OFL-Geist.txt, fonts/OFL-SpaceGrotesk.txt).
   Geist: the `geist` npm package 1.7.2, dist/fonts/geist-sans/Geist-Variable.woff2.
   Space Grotesk: `@fontsource/space-grotesk` 5.3.0, files/space-grotesk-latin-500-normal.woff2
   (Latin subset, weight 500 only: the accent face is used for short uppercase
   labels at one weight). Every accent element therefore sets font-weight 500 so
   the browser never fakes a bold. */
@font-face {
  font-family: 'Geist';
  src: url('./fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('./fonts/SpaceGrotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colour. Brand primary palette plus the derived greys and feedback triple. */
  --cos-white: #fff;
  --cos-soft-white: #f1f1f1;
  --cos-light-gray: #d9d9d7;
  --cos-graphite: #26282a;
  --cos-black: #000;
  --text-primary: #000;
  --text-muted: #56585a;
  --surface-page: #fff;
  --surface-alt: #f1f1f1;
  --surface-hover: #f6f6f5;
  --surface-active: #e9e9e7;
  --surface-selected: #eaeef2;
  --border-hairline: #d9d9d7;
  --border-container: #b4b6b4;
  --border-card: #888a8c;
  --border-control: #888a8c;
  --border-strong: #000;
  --feedback-error: #8c1c1c;
  --feedback-warning: #6b4a00;
  /* CA-874 A6: the brand's derived success colour (tokens.md, derived/feedback/success,
     8.02:1 on white). Defined, not yet used as a state colour. */
  --feedback-success: #1c5c2e;

  /* Type. Geist throughout, buttons included (CA-874 A3); Space Grotesk,
     uppercase, for labels, tabs and column headers only. Both stacks end in real fallbacks. */
  --font-core: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-accent: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --size-body: 15px;
  --size-data: 14px;
  --size-label: 14px;
  --size-small: 13px;
  --leading-body: 1.5;
  --tracking-body: -0.01em;
  --tracking-accent: -0.02em;

  /* Geometry. (CA-1006: surfaces are frosted, with an edge and a soft lift; their tokens and the --radius-glass pair are in the block at the end of this file.) */
  --radius-container: 12px;
  --radius-field: 10px;
  --radius-pill: 100px;
  --radius-pill-sm: 42px;

  /* Spacing and sizing. 48px page margins (16px on a phone), rows about 44px,
     controls 36 to 40px on desktop and at least 44px at 599px and below. */
  --page-margin: 48px;
  --content-max: 1440px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --row-h: 44px;
  --control-h: 40px;
  --control-h-sm: 36px;
  --control-h-touch: 44px;

  /* CA-891 PR1, the shell chrome. Values from checkin-refresh-proposal.html v2, line in brackets. */
  --tab-h: 48px; /* (p:152) */
  --tab-pad-x: 4px; /* (p:152) */
  --tab-gap: 28px; /* between tabs (p:152) */
  --tab-underline: 3px; /* the current tab's rule (p:137) */

  /* CA-891 PR2, the control and table face. Values from checkin-refresh-proposal.html v2, line in brackets. */
  --size-button: var(--size-body); /* 15px button text (p:150) */
  --button-pad-x: 18px; /* (p:150) */
  --field-pad-x: 18px; /* (p:128) */
  --size-col-head: var(--size-small); /* 13px column heads (p:153) */
  --label-colour: var(--cos-graphite); /* CA-897: field labels (proposal .flabel) */

  /* Interaction. */
  --state-hover-opacity: 0.7;
  --state-active-opacity: 0.55;
  --state-disabled-opacity: 0.3;
  --state-duration: 120ms;
  --focus-ring-color: #000;
  --focus-ring-width: 2px;
  --focus-ring-offset: 2px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-core);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  color: var(--text-primary);
  background: var(--surface-page);
}

::selection {
  background: var(--cos-graphite);
  color: var(--cos-white);
}

/* Landmarks. The header and main share one centred column. */
/* One header row, as in the approved prototype: the wordmark (the page h1), the
   event bar when inside an event, then who is signed in on the right. It wraps
   on a narrow screen. */
#page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-24);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--space-16) var(--page-margin);
  /* CA-891 PR1: a hairline under the header, as the proposal draws it (p:769). */
  border-bottom: 1px solid var(--border-hairline);
}

#page-header h1 {
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

/* CA-1005 (owner, 13/11/2026: "remove Check-in admin"). Inside an event the page title is not drawn, at any width. It is
   clipped, not removed (the .visually-hidden pattern), so it is still the page's h1 for assistive technology. On the
   sign-in screen and the event chooser there is no event bar, and the title is drawn as before. */
#page-header:has(#event-bar:not([hidden])) > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#sponsor-signed-in-panel {
  margin-left: auto;
}

main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-margin) 64px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-core);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  line-height: 1.2;
}

h1 {
  margin: 0;
  font-size: 24px;
}

h2 {
  margin: 0 0 var(--space-16);
  font-size: 20px;
}

h3 {
  margin: var(--space-24) 0 var(--space-8);
  font-size: 18px;
}

h4 {
  margin: var(--space-16) 0 var(--space-8);
  font-size: 16px;
}

p {
  margin: var(--space-8) 0;
}

strong {
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: var(--size-data);
  background: var(--surface-alt);
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius-field);
}

/* Links are monochrome and always underlined (nothing else marks a link). */
a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  opacity: var(--state-hover-opacity);
  text-decoration-thickness: 2px;
}

a:active {
  opacity: var(--state-active-opacity);
}

a:visited {
  color: var(--cos-graphite);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Containers: each top-level section is a 1px bordered, 12px radius card.
   Nested sections are separated by a hairline instead of another box. */
main > section,
[data-view] > section {
  margin-top: var(--space-24);
  padding: var(--space-24);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
}

section section {
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid var(--border-container);
}

/* #sponsor-section is in the page from the start and holds nothing until
   sign-in reveals its panel, so it must not draw an empty card. */
#sponsor-section:not(:has(#sponsor-app-panel:not([hidden]))) {
  display: none;
}

.stopgap-note {
  background: var(--surface-alt);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
  padding: var(--space-12) var(--space-16);
}

/* The event shell (CA-330 PR 1b). The sign-in card holds only the sign-in form
   now (who is signed in, and Sign out, live in the header), so once signed in it
   has nothing left to show: its intro, form and "not configured" notice are all
   hidden by sponsorMain.ts, and the card goes with them. */
#signin-section:has(#sponsor-intro[hidden]):has(#sponsor-signin-panel[hidden]):has(#sponsor-not-configured[hidden]) {
  display: none;
}

#sponsor-signed-in-panel p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-8);
  margin: 0;
  /* CA-891 PR1: the words "Signed in as" are muted (p:776); CA-897: the name is muted too (the mock's one span). Sign out keeps its own. */
  color: var(--text-muted);
}

#sponsor-signed-in-panel button {
  margin: 0;
}

/* CA-1110 (owner, 21/11/2026): the menu icon and its menu are the way to Sign out and Change event up to 799px (a phone, and from
   CA-1018 a tablet). From 800px they are not drawn and the two original buttons stay as they were; the 799px header block below draws them (and hides the originals). The wrapper is
   hidden too: empty, it would still be a flex item of the signed-in panel and add the panel's 8px gap after Sign out (reviewer A,
   22/11/2026). */
#header-menu-wrap,
#header-menu-btn,
#header-menu {
  display: none;
}

/* The name shows; the email is visually hidden text inside the same element
   (sponsorMain.ts), so the element's text is still "Name (email)". A very long name is
   cut with an ellipsis past 24 characters so the header stays on one row at 1440px. */
#sponsor-signed-in-as {
  /* Positioned, so it is the containing block of the absolutely positioned email span
     (.visually-hidden) and `overflow: hidden` clips it. Without this the span escaped the
     clip and widened the page (scrollWidth 448 at 390px with a 42-character name). */
  position: relative;
  min-width: 0;
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* CA-897: the mock draws "Signed in as Organiser Placeholder" as one muted span, the name not bold. */
  font-weight: 400;
  color: var(--text-muted);
}

/* The chooser. Each event is a link styled as a clickable card: 1px card
   stroke, hover fill and a black border. Links are underlined by the base
   rule; a card is not, and it keeps full opacity on hover (the fill is the
   feedback). */
#event-chooser {
  max-width: 1040px;
  margin: 0 auto;
}

.chooser-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-16);
  margin: var(--space-32) 0 var(--space-24);
}

#chooser-heading {
  margin: 0 0 var(--space-8);
  font-size: 32px;
  line-height: 1.1;
}

.chooser-head p {
  margin: 0;
  color: var(--text-muted);
}

#chooser-status {
  margin: var(--space-16) 0 0;
  padding: var(--space-8) var(--space-12);
  color: var(--text-muted);
  font-weight: 500;
  border: 1px solid var(--border-card);
  background: var(--surface-alt);
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

#chooser-status[role='alert'] {
  color: var(--feedback-error);
  font-weight: 600;
  border-color: var(--feedback-error);
}

#chooser-status:empty {
  margin: 0;
  padding: 0;
  min-height: 0;
  border-width: 0;
}

.chooser-group {
  margin-top: var(--space-32);
}

.chooser-group h3 {
  margin: 0 0 var(--space-12);
  font-family: var(--font-accent);
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
}

.chooser-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chooser-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 24px;
  column-gap: var(--space-24);
  align-items: center;
  padding: var(--space-24);
  color: var(--text-primary);
  text-decoration: none;
  background: var(--cos-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-container);
  transition:
    background-color var(--state-duration) ease-out,
    border-color var(--state-duration) ease-out;
}

.chooser-card:visited {
  color: var(--text-primary);
}

.chooser-card:hover {
  opacity: 1;
  background: var(--surface-alt);
  border-color: var(--border-strong);
  text-decoration: none;
}

.chooser-card:active {
  opacity: 1;
  background: var(--surface-active);
}

.chooser-card::after {
  content: '';
  grid-column: 4;
  grid-row: 1 / span 2;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentcolor;
  border-right: 2px solid currentcolor;
  transform: rotate(45deg);
  justify-self: center;
}

.chooser-name {
  grid-column: 1;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  overflow-wrap: anywhere;
}

.chooser-meta {
  grid-column: 1;
  color: var(--text-muted);
}

.chooser-summary {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-weight: 600;
}

.chooser-setup {
  grid-column: 1 / span 3;
  grid-row: 3;
  margin-top: var(--space-8);
  font-weight: 600;
}

/* CA-1051: where to set what the Needs setup line says is missing. Its own row, under that line. */
.chooser-setup-where {
  grid-column: 1 / span 3;
  grid-row: 4;
  color: var(--text-muted);
}

/* The readiness column (CA-330 PR 2): a shape and a word, never colour alone. */
.chooser-readiness {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  min-width: 11rem;
  font-weight: 600;
}

/* CA-806: archive controls. A card's Unarchive is a separate button beside the card, never inside it. (CA-1004: Archive is no
   longer on the cards; it is "Archive this event" in the open event's Event settings.) The Archived group's cards are not
   links: no chevron, no hover fill. Tokens only. */
.chooser-item {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

.chooser-item > .chooser-card {
  flex: 1 1 auto;
  min-width: 0;
}

.chooser-unarchive-btn {
  flex: 0 0 auto;
}

.chooser-card-archived {
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--surface-alt);
}

.chooser-card-archived::after {
  content: none;
}

.chooser-archived-tag,
.picker-row-archived {
  flex: 0 0 auto;
  padding: 2px var(--space-12);
  font-family: var(--font-accent);
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
}

.chooser-archived-tag {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
}

.chooser-archived-status {
  margin: 0;
  color: var(--text-muted);
}

.show-archived-toggle,
.show-later-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  min-height: var(--control-h-touch);
  cursor: pointer;
}

/* CA-1040: "Show archived" and "Show later events" sit in one row below the groups. */
.chooser-toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-24);
  margin-top: var(--space-24);
}

/* The global label margins (`label`, `div > label:first-child`, `div + div > label:first-child`, up to 0,1,3) would put the two
   toggles at different heights inside the row. The row owns the spacing; 0,2,0 beats them. */
.chooser-toggles .show-archived-toggle,
.chooser-toggles .show-later-toggle {
  margin: 0;
}

.chooser-later {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-8);
}

.chooser-later[hidden] {
  display: none;
}

.chooser-later-count {
  margin: 0;
  color: var(--text-muted);
}

/* The event bar: which event this is, and the way back to the chooser. */
#event-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-16);
  /* QA (15/10/2026): as a flex item of the header the bar would otherwise refuse to shrink below its one-line summary,
     so the name never truncated and the page scrolled sideways. */
  min-width: 0;
}

.event-bar-summary {
  display: flex;
  /* Owner ruling (15/10/2026): one line. The name gives way first; the date, city and lifecycle word keep their size. */
  flex-wrap: nowrap;
  align-items: baseline;
  gap: var(--space-4) 10px;
  /* Review A / coordinator (15/10/2026): from 900px a zero basis, so the summary shares its row with Change event and
     the gear and the name truncates beside them, instead of the buttons dropping to a row of their own. */
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

/* QA (15/10/2026): from 600 to 899px a zero basis leaves the name 0 to 18 characters and the lifecycle word runs under
   Change event at 600, because the date and lifecycle word keep their size. There the summary keeps its content size
   and the buttons wrap below it; the phone block further down overrides this at 599px and below. */
@media (max-width: 899px) {
  .event-bar-summary {
    flex: 0 1 auto;
  }
}

#event-bar-name {
  min-width: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#event-bar-meta,
#event-bar-lifecycle {
  flex: none;
  white-space: nowrap;
}

#event-bar-meta {
  color: var(--text-muted);
}

#event-bar-lifecycle {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* The tabs (four, always, CA-1005). Links (each is a place in the URL), styled as tabs: accent
   face, uppercase, muted, and a 3px black rule under the current one, sitting on a 1px hairline under the whole row
   (CA-891 PR1, proposal p:136-138, :152). Colour is not the only marker of the current tab, the rule is. The row runs
   edge to edge inside the 1440 column. On a phone the bar sits fixed at the bottom of the screen in reach of a thumb,
   one equal cell per shown tab. */
#event-tabs {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0;
  column-gap: var(--tab-gap);
  margin: 0 calc(var(--page-margin) * -1);
  padding: 0 var(--page-margin);
  border-bottom: 1px solid var(--border-hairline);
}

#event-tabs a {
  display: flex;
  align-items: center;
  min-height: var(--tab-h);
  padding: 0 var(--tab-pad-x);
  margin-bottom: -1px;
  font-family: var(--font-accent);
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: var(--tab-underline) solid transparent;
  transition: background-color var(--state-duration) ease-out;
}

#event-tabs a:visited {
  color: var(--text-muted);
}

#event-tabs a:hover {
  opacity: 1;
  background: var(--surface-hover);
}

#event-tabs a:active {
  opacity: 1;
  background: var(--surface-active);
}

#event-tabs a[aria-current='page'] {
  color: var(--text-primary);
  border-bottom-color: var(--border-strong);
}

/* CA-1005 (owner, 13/11/2026: "move change event into the navigation bar and give it a black stroke"). Change event is the
   last control of the bar, at its right-hand end (the auto left margin; on a wrapped row it is still at the right), with a
   1px outline in the strong border token, the black the current tab's rule is drawn in. A button, not a tab: it opens the
   event list and is never the current page. The id keeps this rule above the global button's hover border. */
#event-tabs #change-event-btn {
  flex: none;
  align-self: center;
  margin: 0 0 0 auto;
  border: 1px solid var(--border-strong);
}

/* CA-1005: the Sections nav at the top of Sponsors and sessions: the view switch between its two parts, Sponsors and
   Sessions. It must read as part of the tab, below the tab row, not as a second row of tabs, so it does not use the tab
   pattern. Patterns reused: the secondary button (a 1px control border and the small pill radius, body-size words in
   sentence case, as `button` is drawn above) and, for the shown choice, the selected state the old settings icon wore
   (a selected fill and the strong edge) with a heavier word. The shown link is also aria-current="page" for assistive
   technology, so colour is never the only carrier. Tokens only. 40px tall (the control height), 44px from 899px down,
   as the attendee filter's labels are; the row wraps. */
#sponsors-sections {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-24);
}

#sponsors-sections a {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-h);
  padding: 0 var(--button-pad-x);
  font-family: var(--font-core);
  font-size: var(--size-button);
  font-weight: 500;
  letter-spacing: var(--tracking-body);
  line-height: 1.2;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--cos-white);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-pill-sm);
  transition:
    background-color var(--state-duration) ease-out,
    border-color var(--state-duration) ease-out;
}

#sponsors-sections a:visited {
  color: var(--text-primary);
}

#sponsors-sections a:hover {
  opacity: 1;
  background: var(--surface-hover);
  border-color: var(--cos-graphite);
}

#sponsors-sections a:active {
  opacity: 1;
  background: var(--surface-active);
}

#sponsors-sections a[aria-current='page'] {
  font-weight: 600;
  background: var(--surface-selected);
  border-color: var(--border-strong);
}

@media (max-width: 899px) {
  #sponsors-sections a {
    min-height: var(--control-h-touch);
  }
}

/* A view. The heading is what focus moves to when the view opens. CA-891 PR1 (owner default Q3): the proposal draws no
   view heading, because the current tab says it, so it is clipped out of sight and kept for a screen reader and as the
   focus target. The view starts 28px under the tab rule (p:779): the first block's own 24px margin plus this. */
.view-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#event-context [data-view] {
  /* 4px here plus the first block's own 24px top margin: the view starts 28px under the tab rule (p:779). */
  padding-top: var(--space-4);
}

/* Setup shows the DOM order: the checklist, then the panel (the import panel, then the
   event form section). The focus order is the DOM order, so the screen order must be too
   (WCAG 2.4.3); nothing here reorders with CSS. */
/* A new event has no id, so nothing to import into yet. */
#admin-shell[data-mode='new'] #import-panel {
  display: none;
}

/* A view whose picker could not be set to this event: the section that would act
   on the picker is not shown, and the notice says why. */
.view-blocked {
  margin: var(--space-16) 0 0;
  padding: var(--space-8) var(--space-12);
  color: var(--feedback-error);
  font-weight: 600;
  border: 1px solid var(--feedback-error);
  background: var(--surface-alt);
  border-radius: var(--radius-container);
}

[data-view='setup'][data-blocked='true'] #import-panel,
[data-view='day'][data-blocked='true'] #attendance-section,
[data-view='attendees'][data-blocked='true'] #attendees-section {
  display: none;
}

/* A create succeeded but the events list did not show it (the reload failed, or came back
   without it). The plain line says so; the Add event button and the list's own error text
   ("try again") are switched off meanwhile, so nothing invites a second Add. */
[data-view='setup'][data-saved-unlisted='true'] #events-add-btn,
[data-view='setup'][data-saved-unlisted='true'] #events-status {
  display: none;
}

/* An event with no platform link has no sponsors to show: the picker behind
   the panel is cleared and the whole section (an empty card otherwise) is not shown. */
[data-view='sponsors'][data-linked='false'] #sponsor-section {
  display: none;
}

/* CA-471: out-of-paper notices, one row per printer, in the event context on every tab. The region itself
   has no box (empty, it takes no space); each row is the same callout shape as .view-blocked, in the error
   colour, because badges cannot print at that station. The offline note is plain weight and muted. */
#printer-paper-banner .paper-out-row {
  margin: var(--space-16) 0 0;
  padding: var(--space-8) var(--space-12);
  color: var(--feedback-error);
  font-weight: 600;
  border: 1px solid var(--feedback-error);
  background: var(--surface-alt);
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

#printer-paper-banner .paper-out-stale {
  color: var(--text-muted);
  font-weight: 500;
}

#sponsors-link-status,
#setup-saved-status {
  margin: var(--space-16) 0 0;
  padding: var(--space-8) var(--space-12);
  color: var(--text-muted);
  font-weight: 500;
  border: 1px solid var(--border-card);
  background: var(--surface-alt);
  border-radius: var(--radius-container);
}

/* CA-557: these two lines are role=status and are created `hidden`, and the notice that holds one of them
   is `hidden` while the event is linked. The global [hidden] rule (display: none !important) takes all of
   them out of the accessibility tree, and some screen readers do not announce a live region that is
   created and filled in one step. `hidden` stays in the markup and in the script. Here the hidden state is
   clipped out of sight instead (the .visually-hidden pattern: no layout space, nothing painted). The
   `!important` is needed: only an !important rule of higher specificity can beat [hidden]'s. The second
   status selector is for the margin: 0 that the rule scoped to the notice sets. */
#setup-saved-status[hidden],
#sponsors-link-status[hidden],
#sponsors-link-notice #sponsors-link-status[hidden],
#sponsors-link-notice[hidden] {
  display: block !important;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The hidden notice keeps its status line mounted, nothing else: the "Link it in Setup" button must stay
   out of the tab order and the tree while the event is linked. */
#sponsors-link-notice[hidden] > :not(#sponsors-link-status) {
  display: none !important;
}

/* The events table's own "Open in sponsor controls" button would load some
   other event's sponsors under this event's name; the Sponsors tab replaces it. */
#admin-shell .open-in-sponsor-controls {
  display: none;
}

/* Labels (CA-897, owner 16/10/2026: the proposal's styling wins): the proposal's `.flabel`, Geist in sentence case,
   14px, regular weight, graphite. Choice labels (the checkbox and radio labels below) read as choices, not field names,
   and stay in the body black. Section headings keep the accent face. */
label,
legend {
  display: block;
  margin: var(--space-16) 0 var(--space-8);
  font-family: var(--font-core);
  font-size: var(--size-label);
  font-weight: 400;
  letter-spacing: var(--tracking-body);
  text-transform: none;
  color: var(--label-colour);
}

/* Choice labels read in the body black (review A M2), as the proposal's `.radio` and `.fchip` draw them. */
#import-source label[data-import-source],
.radio-row label,
#attendees-filter label {
  color: var(--text-primary);
}

label:first-child,
div > label:first-child {
  margin-top: 0;
}

div + div > label:first-child {
  margin-top: var(--space-16);
}

legend {
  padding: 0;
}

fieldset {
  margin: var(--space-16) 0 0;
  padding: 0;
  border: 0;
}

/* eventsMain.ts builds these with element.style (display, weight, margin) and
   the CSSOM is allowed by the CSP. Only the type treatment is set here. */
label[data-badge-type-code] {
  margin-top: 0;
  font-family: var(--font-core);
  font-size: var(--size-body);
  letter-spacing: var(--tracking-body);
  text-transform: none;
  color: var(--text-primary);
}

/* A hint inside a label ("(leave blank for none)") is a sentence, not a label,
   so it is the core face in sentence case (CA-897: labels are now too, so this keeps the hint at the data size). The
   label's textContent is unchanged. */
.label-hint {
  font-family: var(--font-core);
  font-size: var(--size-data);
  font-weight: 400;
  letter-spacing: var(--tracking-body);
  text-transform: none;
  color: var(--text-muted);
}

/* Fields: 40px, 10px radius, 1px control border, graphite on hover, black and
   2px on focus. */
input:not([type='checkbox']):not([type='radio']):not([type='file']),
select {
  min-height: var(--control-h);
  padding: 0 var(--field-pad-x);
  font: inherit;
  font-size: var(--size-body);
  letter-spacing: var(--tracking-body);
  color: var(--text-primary);
  background: var(--cos-white);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-field);
  transition: border-color var(--state-duration) ease-out;
}

input:not([type='checkbox']):not([type='radio']):not([type='file']) {
  width: 100%;
  max-width: 28rem;
}

input:not([type='checkbox']):not([type='radio']):not([type='file']):hover,
select:hover {
  border-color: var(--cos-graphite);
}

input:not([type='checkbox']):not([type='radio']):not([type='file']):focus,
select:focus {
  border-color: var(--cos-black);
}

input:disabled,
select:disabled {
  background: var(--surface-alt);
  opacity: var(--state-disabled-opacity);
}

input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

input[type='checkbox'],
input[type='radio'] {
  width: 20px;
  height: 20px;
  margin: 0 var(--space-4) 0 0;
  vertical-align: middle;
  accent-color: var(--cos-black);
}

input[type='file'] {
  max-width: 100%;
  font: inherit;
  font-size: var(--size-data);
}

input[type='file']::file-selector-button {
  min-height: var(--control-h-sm);
  margin-right: var(--space-12);
  padding: 0 var(--button-pad-x);
  font-family: var(--font-core);
  font-size: var(--size-button);
  font-weight: 500;
  letter-spacing: var(--tracking-body);
  text-transform: none;
  color: var(--text-primary);
  background: var(--cos-white);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-pill-sm);
  cursor: pointer;
}

/* rule 12a round 1, finding 6 follow-up (measured at 390px): a <select> sizes
   itself to its widest OPTION text with no wrap. An event's name plus its date
   range is wider than a phone once an event has a real name, and a DOM scan at
   390px found #sponsor-event-select at scrollWidth 402. `max-width: 100%`
   stops it widening the page, and the ellipsis (round 2, non-blocking) makes
   the clipping deliberate rather than a cut mid-character; a native select's
   own displayed value cannot be wrapped, only truncated gracefully. */
select {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Buttons: pill, Geist 500 in sentence case (CA-874 A3; admin IA 30/09/2026 keeps
   Space Grotesk uppercase for labels only). Secondary by default (42px pill,
   1px control border); the primary action of each area is a black 100px pill. */
button {
  min-height: var(--control-h);
  margin: var(--space-8) var(--space-8) 0 0;
  padding: 0 var(--button-pad-x);
  font-family: var(--font-core);
  font-size: var(--size-button);
  font-weight: 500;
  letter-spacing: var(--tracking-body);
  line-height: 1.2;
  text-transform: none;
  color: var(--text-primary);
  background: var(--cos-white);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-pill-sm);
  cursor: pointer;
  transition:
    background-color var(--state-duration) ease-out,
    border-color var(--state-duration) ease-out,
    opacity var(--state-duration) ease-out;
}

button:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--cos-graphite);
}

button:active:not(:disabled) {
  background: var(--surface-active);
}

button:disabled {
  opacity: var(--state-disabled-opacity);
  cursor: not-allowed;
}

#sponsor-signin-btn,
#chooser-add-btn,
#preview-btn,
#commit-btn,
#event-form-save-btn,
#attendees-walkup-btn,
#sponsor-load-event-btn,
#sponsor-add-confirm-btn,
#reprint-review-btn,
#reprint-confirm-btn {
  color: var(--cos-white);
  background: var(--cos-black);
  border-color: var(--cos-black);
  border-radius: var(--radius-pill);
}

#sponsor-signin-btn:hover:not(:disabled),
#chooser-add-btn:hover:not(:disabled),
#preview-btn:hover:not(:disabled),
#commit-btn:hover:not(:disabled),
#event-form-save-btn:hover:not(:disabled),
#attendees-walkup-btn:hover:not(:disabled),
#sponsor-load-event-btn:hover:not(:disabled),
#sponsor-add-confirm-btn:hover:not(:disabled),
#reprint-review-btn:hover:not(:disabled),
#reprint-confirm-btn:hover:not(:disabled) {
  background: var(--cos-black);
  border-color: var(--cos-black);
  opacity: var(--state-hover-opacity);
}

#sponsor-signin-btn:active:not(:disabled),
#chooser-add-btn:active:not(:disabled),
#preview-btn:active:not(:disabled),
#commit-btn:active:not(:disabled),
#event-form-save-btn:active:not(:disabled),
#attendees-walkup-btn:active:not(:disabled),
#sponsor-load-event-btn:active:not(:disabled),
#sponsor-add-confirm-btn:active:not(:disabled),
#reprint-review-btn:active:not(:disabled),
#reprint-confirm-btn:active:not(:disabled) {
  background: var(--cos-black);
  opacity: var(--state-active-opacity);
}

/* CA-891 PR2: the Event day result rows are list rows, not action labels; they keep the 14px data size, and A10a owns
   their look. */
.daycheckin-result {
  font-size: var(--size-data);
}

/* Inside a table row a button is 36px so the row stays about 44px. */
td button {
  min-height: var(--control-h-sm);
  margin: 0;
}

/* A control inside a sentence or a duplicate-group row sits on the text baseline. */
p button {
  margin-top: 0;
}

/* Phones. At 599px and below the page margin drops from 48px to 16px (a
   48px margin leaves 294px at 390px wide) and every control is at least 44px tall.
   Kept as the FIRST max-width: 599px block on purpose (brandAssets.test.ts
   reads it), and the selectors repeat the base rules' own so that source order,
   not specificity, decides. Checkbox labels get padding because eventsMain.ts
   sets their display inline-block from script. */
@media (max-width: 599px) {
  :root {
    --page-margin: 16px;
    /* CA-1109: the bottom bar's height, declared ONCE. The bar's own minimum height, the root's scroll-padding-bottom below and
       the bottom padding of main (further down) all read it, each with the bottom safe-area inset added, so the clearance cannot
       drift from the bar. CA-1110 (owner, 21/11/2026): Change event left the bar for the header menu, so the bar is the tab row
       alone. Measured in headless Chromium 22/11/2026 with the bar's minimum height removed: 61.5px at 320px and 360px wide
       ("Sponsors and sessions" on three lines, a 60.5px tab and the 1px rule) and 57px from 390px, so 64px covers the tallest (it
       was 120px with the Change event row, 113px and 117.5px measured). If the bar is ever taller than this (a label wrapping to a
       fourth line), raise it here and nowhere else. */
    --bottom-bar-h: 64px;
    /* The air kept above the bar (coordinator ruling, 21/11/2026): before CA-1109 the clearance was 136px on a 113px bar, 23px of
       air, and a control scrolled into view stopped 23px above the bar. It is a token so the air is one number, not hidden in a sum. */
    --bottom-bar-gap: 16px;
    /* The bar is fixed to the bottom edge. A control focused by Tab, or scrolled to by scrollIntoView, is brought clear of it, with
       the gap above it, not left under it (WCAG 2.4.11): the bar's height, the gap, and the bottom safe-area inset. */
    scroll-padding-bottom: calc(var(--bottom-bar-h) + var(--bottom-bar-gap) + env(safe-area-inset-bottom, 0px));
  }

  /* CA-1109 (owner ruling 22/11/2026, "Yes, hide it"): while a text field, select or textarea has focus the on-screen keyboard is up
     and the fixed bar would ride on top of it. bottomBarFocusHideCA1109.ts sets data-field-focus on the root from focusin and
     focusout (never from a viewport size), the bar goes, and its height goes to 0px in the one place the clearance reads, so
     scroll-padding-bottom and main's bottom padding fall to the gap and the inset alone: no empty band, and Register can still be
     scrolled clear with the gap above it. Inside this phone block only, so 600px and up never changes. */
  :root[data-field-focus] {
    --bottom-bar-h: 0px;
  }

  :root[data-field-focus] #event-tabs {
    display: none;
  }

  button,
  td button,
  select,
  input:not([type='checkbox']):not([type='radio']):not([type='file']) {
    min-height: var(--control-h-touch);
  }

  input[type='file']::file-selector-button {
    min-height: var(--control-h-touch);
  }

  label[data-badge-type-code] {
    padding: 12px 0;
  }

  #event-tabs {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: grid;
    /* CA-874 A9: one equal cell per shown tab, so a hidden Setup tab leaves three. */
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    /* CA-1109: the bar reserves the declared height plus the bottom safe-area inset, the root's scroll-padding-bottom and
       main's bottom padding are the same plus --bottom-bar-gap. Its rows stay at the top of that height, so what is taller than the
       content (the inset, and a few px at 390px wide, CA-1110) is empty space under the tabs, and no button sits on the home indicator. */
    min-height: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom, 0px));
    align-content: start;
    /* CA-891 PR1: white with a hairline top rule (p:878); its top rule is its edge, so no rule under it. */
    background: var(--surface-page);
    border-top: 1px solid var(--border-hairline);
    border-bottom: 0;
  }

  #event-tabs a {
    /* CA-1005: the four tabs share the first row, Change event has the second (below). */
    grid-row-start: 1;
    justify-content: center;
    min-height: 56px;
    padding: 0 var(--space-4);
    margin-bottom: 0;
    font-size: var(--size-small);
    text-align: center;
    /* CA-1005: "Sponsors and sessions" is longer than a cell, so a tab's words wrap (they stayed on one line while every label was one word). */
    white-space: normal;
    border-bottom-width: 0;
    border-top: 2px solid transparent;
  }

  #event-tabs a[aria-current='page'] {
    background: var(--cos-white);
    border-top-color: var(--border-strong);
  }

  /* CA-1110: Change event is no longer in the bar on a phone (it is behind the header menu, drawn display: none above), so the bar is
     the one row of four tabs and there is no second row to place it on. */

  /* Room for the fixed bar, so the last thing on a page is never under it (CA-1109: the bar's own reservation, not a number of its own). */
  body:has(#event-context:not([hidden]) #event-tabs:not([hidden])) main {
    padding-bottom: calc(var(--bottom-bar-h) + var(--bottom-bar-gap) + env(safe-area-inset-bottom, 0px));
  }

  .chooser-card {
    grid-template-columns: minmax(0, 1fr) 24px;
    padding: var(--space-16);
  }

  .chooser-summary {
    grid-column: 1;
    grid-row: auto;
    margin-top: var(--space-8);
  }

  .chooser-setup {
    grid-column: 1;
    grid-row: auto;
    margin-top: var(--space-8);
  }

  .chooser-setup-where {
    grid-column: 1;
    grid-row: auto;
  }

  .chooser-readiness {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
    margin-top: var(--space-8);
  }

  .chooser-card::after {
    grid-column: 2;
    grid-row: 1 / span 4;
  }

  /* CA-806: the Archive button goes under its card, full width, so nothing scrolls sideways. */
  .chooser-item {
    flex-direction: column;
    align-items: stretch;
  }

  .chooser-card-archived {
    grid-template-columns: minmax(0, 1fr);
  }

  .chooser-archived-tag {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: var(--space-8);
  }

  main > section,
  [data-view] > section {
    padding: var(--space-16);
  }
}

.recon-equation {
  font-size: 16px;
  font-weight: 600;
}

/* CA-921: the preview's row lists scroll inside one bounded box, so Commit stays a short scroll away however long the
   import is. The box keeps a visible border, so it reads as a container that scrolls rather than a clipped page. */
.preview-changes {
  max-height: 50vh;
  overflow-y: auto;
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
  padding: var(--space-8) var(--space-16);
  margin: var(--space-16) 0;
}

/* Status text. Feedback colour is never the only carrier: each of these is a
   bordered callout with a heavier weight, and the text itself says what
   happened. Empty ones take no space.
   Round 2 audit of the JS that writes each element. Error styling is only for
   elements that carry a failure or a refusal and nothing else:
   #status (main.ts: failures and "Choose a CSV file first." style refusals),
   #events-status, #event-form-status (its two notices are neutral, CA-998), #attendance-status,
   #sponsor-monitor-status, #sponsor-action-status (every write goes through
   setStatusLine: the other actions' failures and validation as errors, and the lead
   gen run's progress and results with their own state, see its neutral rule below),
   #sponsor-signin-status ("Your session ended" and
   sign-in failures) and #commit-blocked-message.
   #attendees-status ("Searching...", "More than N matches, refine your
   search."), #reprint-status ("Queuing...", "Queued a reprint of ...",
   "Cancelling...", "Cancelled ...") and #sponsor-add-status ("Added X to this
   event.") carry progress and success as well as failures. They are neutral by
   default: a success must never read as an error. CA-342: every write now sets
   data-state (progress, success or error), and the error state, and only that,
   takes the error styling in the rule after the neutral one below. */
#status,
#events-status,
#event-form-status,
#attendance-status,
#sponsor-monitor-status,
#sponsor-action-status,
#sponsor-signin-status,
#commit-blocked-message {
  padding: var(--space-8) var(--space-12);
  color: var(--feedback-error);
  font-weight: 600;
  border: 1px solid var(--feedback-error);
  background: var(--surface-alt);
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

#attendees-status,
#reprint-status,
#sponsor-add-status {
  padding: var(--space-8) var(--space-12);
  color: var(--text-muted);
  font-weight: 500;
  border: 1px solid var(--border-card);
  background: var(--surface-alt);
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

/* CA-342: the error state of the three mixed lines. Same look as the error-only lines above; progress and
   success keep the neutral rule. The attribute selector outranks the id-only base rule, so source order does
   not matter. It never hides anything, so it cannot take a live region out of the tree (CA-557). */
#attendees-status[data-state='error'],
#reprint-status[data-state='error'],
#sponsor-add-status[data-state='error'] {
  color: var(--feedback-error);
  font-weight: 600;
  border-color: var(--feedback-error);
}

/* CA-1056: "Set up lead gen for all sponsors" writes its progress and its result to #sponsor-action-status, which is an
   error-only line by default. Progress and a clean result are not errors, so they take the neutral colour and border (the
   words carry the meaning). A stop, a refusal and anything under Not done keep the error look. sponsorMain.ts writes the
   line through setStatusLine, so every write, including the other actions' failures, sets its own data-state. */
#sponsor-action-status[data-state='progress'],
#sponsor-action-status[data-state='success'] {
  color: var(--text-muted);
  border-color: var(--border-card);
}

/* CA-998: the Setup form's shared line, #event-form-status, is an error line by default, but two of the things it says are
   not failures: a save in flight and a save made since the form opened. eventsMain.ts (setFormStatus) marks those two
   data-state="notice"; they take the neutral colour and border. Validation, refusals and failed saves carry no state and
   keep the error look. The words and the alert role are unchanged. */
#event-form-status[data-state='notice'] {
  color: var(--text-muted);
  border-color: var(--border-card);
}

#status:empty,
#events-status:empty,
#event-form-status:empty,
#attendance-status:empty,
#sponsor-monitor-status:empty,
#sponsor-action-status:empty,
#sponsor-signin-status:empty {
  display: none;
}

/* CA-557: #sponsor-add-status (a live region) is not in the list above. display: none takes a live region
   out of the accessibility tree, and some screen readers do not announce a region that is created and
   filled in one step. Empty, it stays mounted and is clipped out of sight (the .visually-hidden pattern),
   so it takes no space and paints nothing. With text it is the callout from its base rule.
   CA-342: #attendees-status and #reprint-status are role=status by default now, so they get the same treatment. */
#attendees-status:empty,
#reprint-status:empty,
#sponsor-add-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Advisory notices: warning colour, same callout shape. */
#qr-token-changes-message,
#qr-token-collisions-message,
#existing-in-database-message,
#email-matched-different-person-message,
#skip-unresolved-message,
#qr-tokens-updated-message,
#email-matched-different-person-commit-message,
#event-form-non-canonical-badge-warning,
#attendance-stale-banner,
#sponsor-stale-banner,
#dayboard-badge-tokens-warning,
#dayboard-badge-tokens-unconfigured {
  padding: var(--space-8) var(--space-12);
  color: var(--feedback-warning);
  font-weight: 600;
  border: 1px solid var(--feedback-warning);
  background: var(--surface-alt);
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

#skip-unresolved-message {
  color: var(--feedback-error);
  border-color: var(--feedback-error);
}

/* CA-874 A4: a callout is a full 1px stroke in its feedback colour, never colour alone (admin IA 30/09/2026:
   "always with a word"). The fixed callouts carry their word as generated content, so the element's own text,
   which tests and screen readers read, is unchanged. The dynamic status lines are stroke only for 21/10
   (coordinator ruling 15/10/2026). So is .view-blocked: on Event day it also carries "Event saved. The event
   list does not show it yet...", which an "Error" word would contradict (review A, 15/10/2026). The word
   takes the callout's colour. */
#printer-paper-banner .paper-out-row::before,
#skip-unresolved-message::before {
  content: 'Error';
}

#attendance-stale-banner::before,
#sponsor-stale-banner::before,
#dayboard-badge-tokens-warning::before,
#dayboard-badge-tokens-unconfigured::before,
#event-form-non-canonical-badge-warning::before,
#qr-token-changes-message::before,
#qr-token-collisions-message::before,
#existing-in-database-message::before,
#email-matched-different-person-message::before,
#qr-tokens-updated-message::before,
#email-matched-different-person-commit-message::before {
  content: 'Warning';
}

#printer-paper-banner .paper-out-row::before,
#skip-unresolved-message::before,
#attendance-stale-banner::before,
#sponsor-stale-banner::before,
#dayboard-badge-tokens-warning::before,
#dayboard-badge-tokens-unconfigured::before,
#event-form-non-canonical-badge-warning::before,
#qr-token-changes-message::before,
#qr-token-collisions-message::before,
#existing-in-database-message::before,
#email-matched-different-person-message::before,
#qr-tokens-updated-message::before,
#email-matched-different-person-commit-message::before {
  margin-right: var(--space-8);
  font-family: var(--font-accent);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: currentColor;
}

/* CA-87 packet 4: duplicate-group review. */
.duplicate-group {
  margin-top: var(--space-12);
  padding: var(--space-16) var(--space-24);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
}

/* Phones: written after the base rule above so it wins (round 2: it used to sit
   in the earlier phone block and lost to the base padding). */
@media (max-width: 599px) {
  .duplicate-group {
    padding: var(--space-12);
  }
}

/* The four-column row table cannot fit a phone (measured at 390px: the page
   scrolled to 400px, "Organisation" alone is 98px). It scrolls inside its own
   card instead of widening the page. */
.duplicate-group {
  overflow-x: auto;
}

.duplicate-group table {
  width: 100%;
  margin: var(--space-8) 0;
  border-collapse: collapse;
}

.duplicate-group th,
.duplicate-group td {
  text-align: left;
  padding: var(--space-8) var(--space-12);
  /* CA-891 PR2: rows ruled in the hairline, like the other tables (p:154). */
  border-bottom: 1px solid var(--border-hairline);
  overflow-wrap: break-word;
}

.duplicate-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-8);
}

.duplicate-group-actions button {
  max-width: 100%;
  white-space: normal;
}

#skip-unresolved-btn {
  max-width: 100%;
  white-space: normal;
}

/* Sponsor controls (CA-230). The row, the table and the Sponsors view are in the CA-330 PR 5 block below. */
.sponsor-passcode-revealed {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-mono);
  font-weight: 600;
  background: var(--surface-alt);
  border: 1px solid var(--cos-graphite);
  border-radius: var(--radius-field);
}

.sponsor-qr {
  display: block;
  margin: var(--space-8) 0;
}

.sponsor-passcode-guidance {
  color: var(--text-muted);
  font-size: var(--size-data);
}

/* Post-ceiling fix: a visible "Not saved" marker next to a seats value the
   operator has typed but not yet saved. The words carry the meaning. */
.sponsor-seats-unsaved {
  margin-left: var(--space-8);
  color: var(--feedback-warning);
  font-weight: 600;
}

/* rule 12a round 1, finding 6 follow-up: the booth link is two UUIDs joined by
   hyphens with no space, about 98 characters, long enough to widen its own row
   past a narrow viewport (measured at 390px: scrollWidth 428 against 390).
   `overflow-wrap: anywhere` forces a break inside the string rather than
   relying on the hyphens being break opportunities across engines. */
.sponsor-booth-link {
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------------
   The Sponsors view (CA-330 PR 5). A header (heading, linked platform event, the
   Add a sponsor pill), the not-linked notice, and the compact table: one row per
   sponsor, Manage opening a region under it. Rows are role="row" on divs
   (sponsorRowRenderer.ts), laid out with grid. Everything for this view is in this
   one block; the sponsor controls above (.sponsor-passcode-revealed, .sponsor-qr,
   .sponsor-booth-link and the rest) are the ones the old card used and are reused as
   they were. No shadows, no `order`, no inline style. State is always a word and,
   where there is a shape, the shape is a second carrier, never colour alone.
   --------------------------------------------------------------------------- */

#sponsors-header {
  display: flex;
  /* CA-891 PR1: the h2 inside used to supply this 24px; it was hidden, so the header starts 28px under the tab rule
     like every other view's first block (p:779). CA-1005: the Sponsors h2 is drawn again, as a section heading. */
  margin-top: var(--space-24);
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-8) var(--space-16);
}

#sponsors-header-text {
  display: flex;
  flex: 1 1 16rem;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

/* CA-1005: the drawn Sponsors heading uses the page's own h2 size; its 16px bottom margin would stand between it and the
   linked-event line it names, and the column's own 4px gap spaces them instead. */
#sponsors-header-text h2 {
  margin: 0;
}

#sponsors-platform-event {
  margin: 0;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

#sponsors-platform-event strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* The primary actions of the view: black pills, like the other areas' primaries. */
#sponsors-add-toggle,
#sponsors-empty-add-btn {
  color: var(--cos-white);
  background: var(--cos-black);
  border-color: var(--cos-black);
  border-radius: var(--radius-pill);
}

#sponsors-add-toggle,
#sponsors-leadgen-btn {
  flex: none;
  margin: var(--space-24) 0 0;
}

#sponsors-add-toggle:hover:not(:disabled),
#sponsors-empty-add-btn:hover:not(:disabled) {
  background: var(--cos-black);
  border-color: var(--cos-black);
  opacity: var(--state-hover-opacity);
}

#sponsors-add-toggle:active:not(:disabled),
#sponsors-empty-add-btn:active:not(:disabled) {
  background: var(--cos-black);
  opacity: var(--state-active-opacity);
}

/* CA-1057: "All sponsor QR codes (PDF)" sits beside the Add a sponsor toggle, level with it; its status line takes a row of its own.
   The line is a live region (CA-524): it is never hidden, only margin-free. Empty, it is a zero-height row plus the header's
   8px row gap (QA measured +8px at 1280, 768 and 390). */
#sponsors-qr-sheet-btn {
  flex: none;
  margin: var(--space-24) 0 0;
}

#sponsors-qr-sheet-status {
  flex: 1 1 100%;
  margin: 0;
}

@media (max-width: 599px) {
  #sponsors-qr-sheet-btn {
    margin-top: 0;
    min-height: var(--control-h-touch);
  }
}

/* Not linked: a container stroked in the warning colour, with the word. */
#sponsors-link-notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
  max-width: 720px;
  margin-top: var(--space-24);
  padding: var(--space-24);
  background: var(--cos-white);
  border: 1px solid var(--feedback-warning);
  border-radius: var(--radius-container);
}

#sponsors-link-notice-word {
  font-family: var(--font-accent);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--feedback-warning);
}

/* The status line keeps its id and its text (shellMain.test.ts pins both); inside the notice
   it is plain text, not the left-bar callout it is elsewhere. */
#sponsors-link-notice #sponsors-link-status {
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  font-weight: 400;
  background: none;
  border: 0;
  border-radius: 0;
}

#sponsors-link-notice button {
  margin: 0;
}

/* The sponsor section is no longer a card of its own: the table is the card. */
[data-view='sponsors'] #sponsor-section {
  margin-top: var(--space-16);
  padding: 0;
  border: 0;
}

/* Add a sponsor: a Soft White panel under the header. While it is collapsed, everything in it
   but the status line is out of the layout and the tab order. The status line stays: a refusal
   from the search, or "Added X to this event.", must be seen (rule 12a round 1, finding 3). With
   nothing to say, the collapsed panel is not drawn at all: clipped, not display: none, so the alert
   inside it stays mounted (CA-557). */
#sponsor-add-section {
  margin-top: var(--space-16);
  padding: var(--space-24);
  background: var(--surface-alt);
  border: 0;
  border-radius: var(--radius-container);
}

#sponsor-add-section[data-collapsed='true'] > :not(#sponsor-add-status) {
  display: none;
}

#sponsor-add-section[data-collapsed='true']:has(#sponsor-add-status:empty) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* CA-401: the company field is a combobox. Matching databank companies drop down
   under the field while the organiser types (sponsorCompanyCombobox.ts). The
   dropdown is a 12px container with the content stroke, like every other
   container on the page. The list is empty at rest and `hidden` while closed. */
.sponsor-combobox {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 28rem;
  /* Baseline, not top: the Search button beside the field is baseline-aligned, and
     `top` left its pill about 8px below the input (round 2, 01/10/2026). */
  vertical-align: baseline;
}

#sponsor-company-results {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 5;
  max-height: 18rem;
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
  background: var(--cos-white);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
}

/* A row, not a brand pill. Focus stays in the input, so "active" is drawn here:
   a fill AND a 2px outline, never colour alone. */
#sponsor-company-results [role='option'] {
  display: block;
  width: 100%;
  min-height: var(--control-h);
  margin: 0;
  padding: var(--space-8) var(--space-16);
  font-family: var(--font-core);
  font-size: var(--size-data);
  font-weight: 400;
  letter-spacing: var(--tracking-body);
  line-height: var(--leading-body);
  text-align: left;
  text-transform: none;
  overflow-wrap: anywhere;
  background: transparent;
  border: 0;
  border-radius: 0;
}

#sponsor-company-results [role='option']:hover:not([aria-disabled='true']) {
  background: var(--surface-hover);
}

#sponsor-company-results [role='option'][aria-selected='true'] {
  background: var(--surface-selected);
  outline: 2px solid var(--focus-ring-color);
  outline-offset: -2px;
}

/* Already a sponsor of this event: shown, and not choosable. The words say so;
   the muted text is not the only carrier, and nothing is faded below contrast. */
#sponsor-company-results [role='option'][aria-disabled='true'] {
  color: var(--text-muted);
  cursor: not-allowed;
}

.sponsor-company-added {
  display: inline-block;
  margin-left: var(--space-8);
  padding: 0 var(--space-8);
  font-family: var(--font-accent);
  font-size: var(--size-small);
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
}

/* "Searching...", the match count and "No companies match." Neutral and quiet. */
#sponsor-company-live {
  margin: var(--space-8) 0 0;
  color: var(--text-muted);
  font-size: var(--size-data);
}

#sponsor-company-live:empty {
  margin: 0;
  padding: 0;
  min-height: 0;
  border-width: 0;
}

/* The view's own heading is "Sponsors". sponsorMain.ts still shows and hides "Sponsor controls"
   with the sign-in state (pinned), so here it stays for screen readers and is out of sight. */
[data-view='sponsors'] #sponsor-section-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sponsor-revealed {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
}

#sponsor-last-updated,
#sponsors-summary {
  margin: var(--space-16) 0 0;
  color: var(--text-muted);
  font-size: var(--size-small);
}

#sponsor-last-updated:empty {
  display: none;
}

#sponsors-summary {
  margin-top: var(--space-4);
}

/* CA-1056: what "Set up lead gen for all sponsors" did not do. Hidden at rest (the hidden attribute), plain lists inside. */
#sponsor-leadgen-result {
  margin: var(--space-8) 0 0;
  padding: var(--space-12) var(--space-16);
  color: var(--text-primary);
  background: var(--cos-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-container);
  overflow-wrap: anywhere;
}

#sponsor-leadgen-result p {
  margin: 0 0 var(--space-4);
}

#sponsor-leadgen-result ul {
  margin: 0 0 var(--space-8);
  padding-left: var(--space-24);
}

#sponsor-leadgen-result > :last-child {
  margin-bottom: 0;
}

/* The table: a 12px container, square rows inside it. */
#sponsor-table {
  margin-top: var(--space-16);
  overflow: hidden;
  background: var(--cos-white);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
}

.sponsor-table-head,
.sponsor-data-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 0.6fr) minmax(0, 1.1fr) 120px;
  gap: var(--space-16);
  align-items: center;
  padding: 0 var(--space-24);
}

.sponsor-table-head {
  min-height: var(--row-h);
  font-family: var(--font-accent);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-strong);
}

.sponsor-row {
  border-top: 1px solid var(--border-container);
}

#sponsor-list > .sponsor-row:first-child {
  border-top: 0;
}

.sponsor-row[data-open='true'] {
  background: var(--surface-selected);
}

.sponsor-data-row {
  min-height: var(--row-h);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.sponsor-cell {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sponsor-cell-company {
  font-weight: 600;
}

.sponsor-cell-tier {
  text-transform: capitalize;
}

.sponsor-cell-manage {
  display: flex;
  justify-content: flex-end;
}

.sponsor-data-row button,
.sponsor-manage button {
  margin: 0;
}

/* Lead capture: a pill with a state word and a shape (filled circle is On, empty is Off). */
.sponsor-row .sponsor-capture-toggle {
  display: inline-flex;
  gap: var(--space-8);
  align-items: center;
  min-height: var(--control-h-sm);
  padding: 0 14px 0 10px;
}

.sponsor-capture-shape {
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--cos-white);
  border: 1.5px solid var(--cos-black);
  border-radius: 50%;
}

.sponsor-capture-shape[data-state='on'] {
  background: var(--cos-black);
}

.sponsor-row .sponsor-manage-btn {
  min-height: var(--control-h-sm);
}

.sponsor-manage-btn[aria-expanded='true'] {
  background: var(--surface-active);
  border-color: var(--border-strong);
}

/* The Manage region (CA-897 PR-S1, the proposal's A5 Manage mock): a title, then the groups in one column, each after
   the first under a hairline, and the danger group last at full width. */
.sponsor-manage-row {
  padding: 0 var(--space-24) var(--space-24);
}

/* Two classes, so `.sponsor-manage p { margin: 0 }` below does not zero the gap (review A M1). 20px is the mock's
   panel title; no size token is that large. */
.sponsor-manage .sponsor-manage-title {
  margin: 0 0 var(--space-16);
  font-size: 20px;
  font-weight: 600;
  overflow-wrap: break-word;
}

.sponsor-capture-line {
  margin: 0 0 var(--space-16);
  color: var(--text-muted);
  font-size: var(--size-data);
}

/* CA-879: Download leads (CSV). The button and its status line sit between the capture line and the groups. The
   status line is plain muted text, not a callout: it reports progress, a count or a refusal in words. */
.sponsor-leads {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-8) var(--space-12);
  margin: 0 0 var(--space-16);
}

.sponsor-leads .sponsor-leads-btn {
  margin: 0;
}

.sponsor-leads-status {
  flex: 1 1 16rem;
  min-width: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--size-data);
  overflow-wrap: break-word;
}

.sponsor-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-16);
  align-items: start;
}

.sponsor-groups > .sponsor-group + .sponsor-group:not(.sponsor-group-remove) {
  padding-top: var(--space-16);
  border-top: 1px solid var(--border-hairline);
}

.sponsor-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  min-width: 0;
}

.sponsor-group-label {
  font-family: var(--font-accent);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
}

.sponsor-group-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: flex-start;
  min-width: 0;
}

.sponsor-group-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  align-items: center;
}

#sponsor-list .sponsor-group-controls input[type='number'] {
  width: 88px;
}

.sponsor-manage p {
  margin: 0;
}

.sponsor-group-remove {
  /* CA-874 A5: a group stroked in the error colour on every side (A4's callout shape), not a left hairline.
     CA-897 PR-S1: it spans the region, last in the one column, so the 15rem cap the auto column needed is gone.
     The word runs inline before the consequence, as the mock draws it; the buttons sit in one row under it. */
  display: block;
  max-width: none;
  padding: var(--space-16);
  border: 1px solid var(--feedback-error);
  border-radius: var(--radius-container);
}

.sponsor-group-remove .sponsor-group-label {
  display: inline;
  margin-right: var(--space-8);
  color: var(--feedback-error);
}

.sponsor-group-remove .sponsor-group-body {
  display: inline;
}

.sponsor-group-remove .sponsor-danger-consequence {
  display: inline;
}

.sponsor-group-remove .sponsor-group-controls {
  margin-top: var(--space-12);
}

/* CA-897 PR-S1: Reveal passcode is the Passcode group's primary, the black pill (as .row-action-primary). */
.sponsor-row .sponsor-reveal-btn {
  color: var(--cos-white);
  background: var(--cos-black);
  border-color: var(--cos-black);
  border-radius: var(--radius-pill);
}

.sponsor-row .sponsor-reveal-btn:hover:not(:disabled) {
  background: var(--cos-black);
  border-color: var(--cos-black);
  opacity: var(--state-hover-opacity);
}

/* Review A L1: the global `button:active:not(:disabled)` would turn the fill pale under white text while pressed. */
.sponsor-row .sponsor-reveal-btn:active:not(:disabled) {
  background: var(--cos-black);
}

.sponsor-row .sponsor-clear-btn,
.sponsor-row .sponsor-regenerate-btn {
  color: var(--feedback-error);
  border-color: var(--feedback-error);
}

.sponsor-danger-consequence {
  margin: 0 0 var(--space-12);
  font-size: var(--size-data);
  overflow-wrap: break-word;
}

/* The in-page confirm: the consequence sentence, then Yes and Cancel. Not a dialog (shellPrinterPaper.test.ts). */
.sponsor-danger-confirm {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.sponsor-danger-confirm .sponsor-danger-confirm-text {
  flex: 1 0 100%;
}

.sponsor-danger-confirm button {
  margin: 0;
}

.sponsor-danger-confirm-text {
  margin: 0;
  font-size: var(--size-data);
  font-weight: 600;
  overflow-wrap: break-word;
}

.sponsor-row .sponsor-danger-confirm-yes,
.sponsor-row .sponsor-danger-confirm-yes:hover:not(:disabled) {
  /* QA (15/10/2026): the global button:hover background would turn this near-white under white text. The hover keeps
     the error fill and darkens the edge, so the label stays readable. */
  color: var(--cos-white);
  background: var(--feedback-error);
  border-color: var(--feedback-error);
}

.sponsor-row .sponsor-danger-confirm-yes:hover:not(:disabled) {
  border-color: var(--text-primary);
}

/* The empty state. */
#sponsors-empty {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  align-items: flex-start;
  max-width: 720px;
  margin-top: var(--space-16);
  padding: var(--space-32);
  background: var(--cos-white);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
}

#sponsors-empty p,
#sponsors-empty button {
  margin: 0;
}

/* Below 800px the seven columns do not fit: each row stacks, a label beside its value. The
   header row stays for screen readers, out of sight. */
@media (max-width: 799px) {
  .sponsor-table-head {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .sponsor-data-row {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding: var(--space-16);
  }

  .sponsor-cell[data-label] {
    display: flex;
    gap: var(--space-16);
    align-items: center;
    justify-content: space-between;
    text-align: right;
  }

  .sponsor-cell[data-label]::before {
    flex: none;
    content: attr(data-label);
    font-family: var(--font-accent);
    font-size: var(--size-small);
    font-weight: 500;
    letter-spacing: var(--tracking-accent);
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
  }

  .sponsor-cell-company[data-label] {
    justify-content: flex-start;
    font-size: 16px;
    text-align: left;
  }

  .sponsor-cell-company[data-label]::before {
    display: none;
  }

  .sponsor-cell-manage {
    justify-content: stretch;
  }

  .sponsor-row .sponsor-manage-btn {
    width: 100%;
  }

  .sponsor-manage-row {
    padding: 0 var(--space-16) var(--space-16);
  }

  .sponsor-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-16);
  }

  .sponsor-group-remove {
    max-width: none;
  }

  #sponsors-link-notice,
  #sponsors-empty {
    padding: var(--space-16);
  }
}

/* A phone: every control in the view is at least 44px tall. Written after the rules it
   overrides, so source order, not specificity, decides. */
@media (max-width: 599px) {
  .sponsor-row .sponsor-capture-toggle,
  .sponsor-row .sponsor-manage-btn {
    min-height: var(--control-h-touch);
  }

  #sponsors-add-toggle,
  #sponsors-leadgen-btn {
    margin-top: 0;
  }

  #sponsor-add-section {
    padding: var(--space-16);
  }

  #sponsor-company-results [role='option'] {
    min-height: var(--control-h-touch);
  }
}

/* Tables (events, attendees). Data is 14px, header cells are the accent face
   in uppercase, rows are about 44px. */
#events-table,
#attendees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-data);
}

/* CA-236 round 4 (QA BLOCKER B1, measured at 390px and 400px): a single
   unbreakable word, a city of "Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch",
   is wider on its own than the card layout below 600px or the City column, and
   forced the table past the viewport (scrollWidth 476 against 390 and 400).
   `overflow-wrap: break-word`, not `anywhere`, only breaks a word that cannot
   fit on its own line at all; CA-236 round 3 removed `anywhere` here because it
   broke ordinary short words such as "Edit". Applied to both the wide table and
   the card layout. */
#events-table th,
#events-table td,
#attendees-table th,
#attendees-table td {
  height: var(--row-h);
  padding: var(--space-8) var(--space-12);
  text-align: left;
  vertical-align: middle;
  /* CA-891 PR2: rows are ruled in the hairline (p:154). */
  border-bottom: 1px solid var(--border-hairline);
  overflow-wrap: break-word;
}

#events-table th,
#attendees-table th,
.duplicate-group th {
  height: auto;
  font-family: var(--font-accent);
  font-size: var(--size-col-head);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
  /* CA-891 PR2 (owner default Q1): a 1px Light Gray rule under the heads, as the proposal draws it (p:153). */
  border-bottom: 1px solid var(--border-hairline);
}

#events-table tbody tr:hover,
#attendees-table tbody tr:hover {
  background: var(--surface-hover);
}

/* CA-237: attendance dashboard. */
.attendance-note {
  color: var(--text-muted);
  font-size: var(--size-data);
}

/* How this list keeps a long station id inside the page. Three layers, and the
   wrapping itself is NOT on this list rule:
   - `.attendance-row` keeps `overflow-wrap: break-word`, matching #events-table's
     CA-236 round 4 reasoning: it only breaks a word that cannot fit on its own line.
   - `.attendance-row-label` adds `min-width: 0` and `overflow-wrap: anywhere`.
     That is the layer that fixes the overflow: a flex item's `min-width` defaults
     to its longest unbreakable run, so an id with no spaces (StationIdSchema
     accepts arbitrary text typed at the venue) refused to shrink and pushed the
     count off-screen. `anywhere` is on that label ONLY, because CA-236 round 3
     found it breaks ordinary short words when applied to a whole table.
   - `.attendance-row-count` never shrinks, so a number is never what gets squeezed.
   Measured in headless Chrome at 390px, 400px and 1280px with 60- and
   90-character unbroken ids (CA-237 round 2, finding 5: scrollWidth 764 against
   a 390 or 400 viewport before the fix). */
.attendance-row-list {
  list-style: none;
  margin: var(--space-8) 0;
  padding: 0;
  font-size: var(--size-data);
}

.attendance-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-12);
  min-height: var(--row-h);
  align-items: center;
  padding: var(--space-4) var(--space-12);
  border-bottom: 1px solid var(--border-container);
  overflow-wrap: break-word;
}

.attendance-row-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.attendance-row-count {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* CA-330 PR 3: the Event day control room. The Attendance panel is a contrast panel
   (decision record 2026-09-30: Soft White fill, 12px radius, no stroke), so it is
   told apart from the page by its fill, not by a line. It holds attendance only;
   attendee search and reprints stay in Attendees. Rows lose their hairlines here
   for the same reason: the number and the bar are the structure.

   Bars are <progress> elements. The page CSP is style-src 'self', so a bar cannot
   take an inline width; its length comes from the element's own value and max,
   set from script, and only the colours live here. A set of width classes would
   have rounded every count to a step. Square ends (the decision record keeps
   progress bars square). Bars are decoration: the number is always printed beside
   them, and the main bar's wrapper is an image with a spoken label, so length and
   colour are never the only carrier. */
/* CA-891 PR3: the figures sit on white with no panel, as the proposal draws them (p:787-790). The 720px reading width
   stays. */
#attendance-section {
  max-width: 720px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

#attendance-heading {
  margin: 0 0 var(--space-4);
  font-family: var(--font-accent);
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
}

#attendance-last-updated {
  margin: 0 0 var(--space-24);
  color: var(--text-muted);
  font-size: var(--size-small);
  font-variant-numeric: tabular-nums;
}

#attendance-last-updated:empty {
  display: none;
}

/* The failure and stale callouts are Soft White by default; here they are forced white, to match the page the
   figures sit on since CA-891 PR3, and keep their 1px feedback stroke and their words (CA-874 A4). */
#attendance-section #attendance-status,
#attendance-section #attendance-stale-banner {
  margin: 0 0 var(--space-16);
  background: var(--cos-white);
}

#attendance-figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-12);
  /* CA-897: the mock sets the figures on a 100px pitch (180 at x=48, 145 at 151, 35 at 250): 88px columns and the 12px gap
     (review A L1). CA-938 (owner, 19/10/2026): Walk-ups is the fourth, so four columns, 388px. Hidden until its read, it
     leaves its column empty and the other three do not move. */
  max-width: 388px;
  margin: 0 0 var(--space-24);
}

#attendance-figures > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

#attendance-figures dt {
  color: var(--text-muted);
  font-size: var(--size-small);
}

#attendance-figures dd {
  margin: 0;
  font-size: 28px;
  /* CA-891 PR3 (p:156). */
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

#attendance-progress {
  margin: 0 0 var(--space-12);
}

#attendance-progress progress,
.attendance-row-bar {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  color: var(--cos-black);
  background: var(--cos-light-gray);
  -webkit-appearance: none;
  appearance: none;
}

/* CA-891 PR3: the main bar is 6px, as the row bars are (p:790). */
#attendance-progress progress {
  height: 6px;
}

.attendance-row-bar {
  height: 6px;
  color: var(--cos-graphite);
}

#attendance-progress progress::-webkit-progress-bar,
.attendance-row-bar::-webkit-progress-bar {
  background: var(--cos-light-gray);
}

#attendance-progress progress::-webkit-progress-value {
  background: var(--cos-black);
}

.attendance-row-bar::-webkit-progress-value {
  background: var(--cos-graphite);
}

#attendance-progress progress::-moz-progress-bar {
  background: var(--cos-black);
}

.attendance-row-bar::-moz-progress-bar {
  background: var(--cos-graphite);
}

#attendance-section h3 {
  margin: var(--space-32) 0 var(--space-8);
  font-family: var(--font-accent);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
}

/* One row: label, bar, count. The label column is fixed so the bars line up down
   the list; the label may still shrink and break (attendanceLayout.computed.test.ts), so an
   unbroken station id typed at the venue cannot push the count off the screen. The
   count column is fixed so a wider number does not move its row's bar. */
#attendance-section .attendance-row {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(48px, 1fr) 3rem;
  gap: var(--space-12);
  align-items: center;
  min-height: 32px;
  padding: var(--space-4) 0;
  border-bottom: 0;
}

#attendance-section .attendance-row-count {
  text-align: right;
}

/* CA-236 round 3 (QA, 390px screenshot): the events table's six columns leave
   about 65px each on a phone, and `overflow-wrap: anywhere` then broke words
   mid-character ("Edi/t", "Lond/on"). Overflow and word-splitting are both
   defects, and the fix is a different LAYOUT below a breakpoint: from 600px up
   the table is the ordinary browser layout, and below it the same markup
   reflows into one full-width card per row, with `content: attr(data-label)`
   standing in for the column header. Re-measured at 390px, 400px and 1280px:
   scrollWidth equals clientWidth at all three. */
@media (max-width: 599px) {
  #events-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #events-table,
  #events-table tbody,
  #events-table tr,
  #events-table td {
    display: block;
    width: 100%;
  }

  #events-table tr {
    border: 1px solid var(--border-container);
    border-radius: var(--radius-container);
    padding: var(--space-12);
    margin-bottom: var(--space-12);
  }

  #events-table td {
    height: auto;
    border-bottom: none;
    padding: var(--space-4) 0;
  }

  /* A cell with no data-label (the Actions cell, whose "Edit" button is
     self-explanatory) resolves attr() to the empty string and prints nothing. */
  #events-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-accent);
    font-size: var(--size-small);
    font-weight: 500;
    letter-spacing: var(--tracking-accent);
    text-transform: uppercase;
    color: var(--text-muted);
  }

  #events-table td:has(> button:only-child)::before {
    display: none;
  }
}

/* CA-274: text present for a screen reader and not on screen. The Reprint and
   Cancel buttons carry the person's name this way, so a column of identical
   buttons is not read out as "Reprint, Reprint, Reprint". */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CA-880: Edit details as a pencil, to the right of a person's one primary action. A square secondary button: its name is
   visually hidden text (above), the icon is aria-hidden and takes the text colour. It is the height of every other button
   in its view (40px; 36px inside a table row; 44px on a phone, and in the Attendees view from 899px down, where every
   control is the touch height: brandAssets.computed.test.ts pins that no other button is 44px at 600 to 899px). The width
   follows the height. No inline style anywhere (the page CSP). */
.icon-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--control-h);
  padding: 0;
}

.icon-action svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Inside a table row a button is 36px (`td button`), so the pencil is a 36px square there. */
td .icon-action {
  min-width: var(--control-h-sm);
}

@media (max-width: 599px) {
  .icon-action {
    min-width: var(--control-h-touch);
  }
}

/* The Attendees view's rows are cards from 899px down and every control in them is the touch height; the id outranks the
   in-row rule above. */
@media (max-width: 899px) {
  #attendees-section .icon-action {
    min-width: var(--control-h-touch);
    min-height: var(--control-h-touch);
  }
}

/* ---------------------------------------------------------------------------
   Setup (CA-330 PR 2): a checklist on the left, the selected step's panel on the
   right. One step is shown at a time (setupView.ts toggles `hidden` on the step
   wrappers and the form groups), so the DOM order is the screen order and the
   focus order follows it. No CSS `order`. No shadows. Every state has a word and
   a shape, never colour alone.
   --------------------------------------------------------------------------- */

#setup-layout {
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
  gap: var(--space-32) 48px;
  align-items: start;
  margin-top: var(--space-24);
}

#setup-checklist {
  min-width: 0;
}

#setup-checklist-heading {
  margin: 0 0 var(--space-4);
  font-size: 22px;
}

#setup-summary {
  margin: 0 0 var(--space-12);
  color: var(--text-muted);
}

#setup-progress {
  display: block;
  width: 100%;
  height: 6px;
  margin: 0 0 var(--space-16);
  border: 0;
  border-radius: 0;
  color: var(--cos-black);
  background: var(--cos-light-gray);
  -webkit-appearance: none;
  appearance: none;
}

#setup-progress::-webkit-progress-bar {
  background: var(--cos-light-gray);
}

#setup-progress::-webkit-progress-value {
  background: var(--cos-black);
}

#setup-progress::-moz-progress-bar {
  background: var(--cos-black);
}

#setup-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A step is a clickable card, the same treatment as the chooser: 1px card stroke, hover
   fill, black border. The chosen one has the selected fill AND a 2px black border. */
.setup-step {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: var(--space-8) 14px;
  align-items: start;
  width: 100%;
  min-height: var(--row-h);
  margin: 0;
  padding: 16px 18px;
  font-family: var(--font-core);
  font-size: var(--size-body);
  letter-spacing: var(--tracking-body);
  text-align: left;
  text-transform: none;
  background: var(--cos-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-container);
}

.setup-step:hover {
  background: var(--surface-alt);
  border-color: var(--border-strong);
}

.setup-step[aria-current='step'] {
  padding: 15px 17px;
  background: var(--surface-selected);
  border-width: 2px;
  border-color: var(--border-strong);
}

.step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.step-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.step-detail {
  font-size: var(--size-data);
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.step-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.step-required {
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
}

.step-state {
  font-size: var(--size-small);
  font-weight: 600;
}

/* The shapes. A filled square with a tick is Done, an empty square is To do, a dashed
   square with a question mark is Unknown, and a grey square with a bar is Not built. */
.step-shape {
  position: relative;
  display: inline-block;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: var(--cos-white);
  border: 1px solid var(--cos-black);
}

.step-shape[data-state='done'] {
  background: var(--cos-black);
}

.step-shape[data-state='done']::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid var(--cos-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.step-shape[data-state='todo'] {
  background: var(--cos-white);
}

.step-shape[data-state='unknown'] {
  border-style: dashed;
}

.step-shape[data-state='unknown']::after {
  content: '?';
  position: absolute;
  inset: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.step-shape[data-state='not-built'] {
  background: var(--cos-light-gray);
  border-color: var(--border-card);
}

.step-shape[data-state='not-built']::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 4px;
  width: 8px;
  height: 2px;
  background: var(--text-muted);
}

/* CA-819: 'not-needed' (nothing to do for this event): an empty box with a dashed border, so it is never drawn as any other state (coordinator, 14/10/2026). */
.step-shape[data-state='not-needed'] {
  background: transparent;
  border-color: var(--text-muted);
  border-style: dashed;
}

.setup-note {
  color: var(--text-muted);
  font-size: var(--size-data);
}

#setup-checklist .setup-note {
  margin: var(--space-16) 0 0;
}

/* The panel: one bordered 12px container holding the step header and that step's content. */
#setup-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  min-width: 0;
  max-width: 760px;
  padding: var(--space-32);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
}

#setup-panel > * {
  min-width: 0;
  margin: 0;
}

/* CA-891 PR4: the panel title as the proposal draws it (p:690). */
#setup-step-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

/* CA-891 PR4: settings mode names where you are under the title (p:691); the first-run note about the other tabs
   does not apply once the event is set up. */
#setup-step-context {
  margin: 2px 0 0;
  color: var(--text-muted);
  /* Review A (PR4): a long unbroken event name wraps instead of widening the panel. */
  overflow-wrap: break-word;
}

[data-view='setup'][data-setup-mode='settings'] #setup-checklist > .setup-note {
  display: none;
}

#setup-step-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-12);
  margin: var(--space-8) 0 0;
  font-weight: 600;
}

#setup-step-status .step-shape {
  margin-top: 0;
}

#setup-step-required {
  padding: 0 10px;
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill-sm);
}

#setup-step-detail {
  margin: var(--space-8) 0 0;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

/* The form's groups sit inside the panel, not in a card of their own. */
#event-form-section {
  margin: 0;
  padding: 0;
  border: 0;
}

[data-setup-group] > :first-child {
  margin-top: 0;
}

/* CA-880: this label is first in its own wrapper, where `div > label:first-child` would zero it; it keeps the label gap. */
#event-form-admin-print-station-wrap > label:first-child {
  margin-top: var(--space-16);
}

.step-line {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin: 0;
  font-weight: 600;
}

.step-line .step-shape {
  margin-top: 0;
}

#event-form-kiosk-code {
  margin: var(--space-24) 0 0;
  padding: 0 var(--space-16) var(--space-16);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
}

#event-form-kiosk-code legend {
  margin: 0;
  padding: 0 var(--space-8);
}

.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-12);
  margin-top: var(--space-24);
}

.setup-actions button {
  margin: 0;
}

/* CA-1004: the Archive this event area under the Setup view (whose own heading already says Event settings). The reason a disabled control is disabled is
   a line of words, never colour alone. Tokens only. */
#setup-event-settings {
  margin-top: var(--space-32);
  padding-top: var(--space-24);
  border-top: 1px solid var(--border-card);
}

#setup-event-settings h3,
#setup-event-settings p {
  margin: 0 0 var(--space-8);
}

#setup-archive-reason {
  font-weight: 600;
}

/* CA-374: the event logo control (Setup, Event details). Built by eventLogoMain.ts. Tokens only.
   The preview is a bounded box on the alternative surface so a white or transparent logo is still
   visible, and the image is contained, never stretched. */
#setup-logo-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-12);
  padding-top: var(--space-24);
  border-top: 1px solid var(--border-container);
}

#setup-logo-heading {
  margin: 0;
}

#setup-logo-note,
#setup-logo-state,
#setup-logo-notice,
#setup-logo-status {
  margin: 0;
  overflow-wrap: break-word;
}

#setup-logo-preview {
  display: block;
  box-sizing: border-box;
  max-width: 240px;
  max-height: 120px;
  padding: var(--space-8);
  object-fit: contain;
  background: var(--surface-alt);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-field);
}

#setup-logo-panel input[type='file'] {
  max-width: 100%;
}

/* The saved line under the form. Same callout as the other plain status lines. */
#setup-step-saved {
  padding: var(--space-8) var(--space-12);
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  background: var(--surface-alt);
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

/* Inside an event the form heading is for screen readers (it says which event is being
   edited, and takes focus after a save) and is not drawn a second time under the step
   title. The Add event screen has no step title, so it shows the heading. */
#admin-shell:not([data-mode='new']) #event-form-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The Setup tab's "N to do". */
.tab-count {
  display: inline-block;
  margin-left: var(--space-4);
  padding: 0 8px;
  font-size: 12px;
  line-height: 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill-sm);
}

@media (max-width: 899px) {
  #setup-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #setup-panel {
    max-width: none;
  }
}

@media (max-width: 599px) {
  #setup-panel {
    padding: var(--space-16);
  }

  #setup-layout {
    gap: var(--space-24);
  }

  #event-form-kiosk-code {
    padding: 0 var(--space-12) var(--space-12);
  }

  /* Four equal cells is 97px each at 390px (three of 130px once Setup is hidden, CA-874 A9): the count sits under the tab word. */
  #event-tabs a {
    flex-direction: column;
    gap: 2px;
  }

  .tab-count {
    margin: 0;
    padding: 0 6px;
    font-size: 11px;
    line-height: 16px;
  }

  .setup-actions button {
    flex: 1 1 100%;
  }

  /* The link to the Sponsors tab was 155x19 at 390px: a tap target is at least 44px tall. */
  #setup-sponsors-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--control-h-touch);
  }
}

/* CA-330 PR 3: the Event day panel on a phone. One column: the three figures stack
   as label and number rows (each at least 44px tall, as every row-like control is on
   a phone), and the panel's padding matches the other phone cards. Written after the
   base rules above so it wins by source order. */
@media (max-width: 599px) {
  #attendance-section {
    padding: 0;
  }

  #attendance-figures {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  #attendance-figures > div {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    min-height: 44px;
    padding: var(--space-8) 0;
  }

  #attendance-figures dd {
    font-size: 24px;
  }
}

/* ---------------------------------------------------------------------------
   The Attendees view (CA-330 PR 4): the prototype's "Find attendee" panel and
   "Reprint requests for this event" list. Search and reprints stay in Attendees
   (owner, 30/09/2026). Everything for this view is in this one block, and it
   replaces the CA-238 and CA-274 rules that used to sit higher up, so nothing
   here is fighting an older rule.

   The section is not a card of its own: the results table and the request cards
   are the containers (the Sponsors view does the same). The reprint panel keeps
   its place after the table in the DOM (reprintMain.ts builds it there and
   reprintMain.test.ts pins it inside #attendees-section), so it is styled as the
   prototype's open row panel but does not sit between the rows.

   Two measured defects live here.
   CA-294: a 30-character email broke in the middle of a word from 700px to 1100px,
   and 56-character emails and 80-character hyphenated organisations broke at
   1440px. The cause was `table-layout: fixed` with percentage columns: a long value
   had only its column's share to wrap in. Now the table sizes from its content with
   a floor on each column, email and organisation text carries <wbr> break
   opportunities (breakableText.ts) so a line breaks at an @, a dot or a hyphen, and
   `overflow-wrap: anywhere` is only the last resort for a run with none of those.
   Below 900px the table is stacked cards, because six columns do not fit there.
   Phones: at 599px and below each card row has its label BESIDE its value.
   --------------------------------------------------------------------------- */

[data-view='attendees'] > #attendees-section {
  /* CA-891 PR1: the same 24px as every other view's first block, so it too starts 28px under the tab rule (p:779). */
  margin-top: var(--space-24);
  padding: 0;
  border: 0;
  border-radius: 0;
}

/* CA-1007 (owner, 13/11/2026): one toolbar row. "Print to" at one end; the search, smaller, then Register walk-up at the
   other. It wraps when the row is too narrow. The list starts under it: the second heading and the paragraph are gone. */
#attendees-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-12) var(--space-24);
}

#attendees-toolbar #attendees-printto {
  margin: 0;
}

#attendees-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
}

/* The search: a field, the shortcut beside it, and a plain Search button. Found by what it holds, as
   the search row always was. Its label is visually hidden, so the field keeps its name. */
#attendees-section div:has(> #attendees-query) {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin: 0;
}

#attendees-query {
  width: 16rem;
  max-width: 100%;
}

/* Beside the field, not inside it: every text field keeps its 18px side padding (CA-891, brandAssets.computed). */
#attendees-search-shortcut {
  font-family: var(--font-core);
  font-size: var(--size-small);
  color: var(--text-muted);
  pointer-events: none;
}

#attendees-search-shortcut:empty {
  display: none;
}

#attendees-section div:has(> #attendees-query) > button,
#attendees-search-row > button {
  margin: 0;
}

#attendees-search-btn {
  border-radius: var(--radius-pill);
}

/* Results. Cells wrap at spaces and break-word, which only breaks a word that cannot
   fit on its own line. Email and organisation have no spaces to wrap at, so they may
   break anywhere as a LAST resort, after the <wbr> break opportunities above are used. */
#attendees-table td {
  overflow-wrap: break-word;
}

#attendees-table td[data-label='Email'],
#attendees-table td[data-label='Organisation'] {
  overflow-wrap: anywhere;
}

/* CA-897 MX2 a2: the name in the table's regular weight, as the Attendees mock draws it. */
#attendees-table td[data-label='Name'] {
  font-weight: 400;
}

/* CA-853 (QA D4): a row's Reprint, Check in and Edit details, spaced by the 8px token. They wrap at
   every width (QA D1, coordinator 15/10/2026): on one line they made the Action column 382px and the
   page scroll sideways from 900 to about 1074px. Wrapped, the column takes its widest button. */
.attendees-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

/* CA-880: a row's one primary action (Check in, or Print badge while a print is owed) is the black pill the brand gives a
   primary action, as the Search button is. Reprint badge keeps the default secondary face. */
.row-action-primary {
  color: var(--cos-white);
  background: var(--cos-black);
  border-color: var(--cos-black);
  border-radius: var(--radius-pill);
}

.row-action-primary:hover:not(:disabled):not([aria-disabled='true']) {
  background: var(--cos-black);
  border-color: var(--cos-black);
  opacity: var(--state-hover-opacity);
}

.row-action-primary[aria-disabled='true'] {
  opacity: 0.5;
  cursor: progress;
}

/* CA-880: the "Print to" picker above the results, as the search row is laid out: label on its own line, the field below. */
#attendees-printto {
  margin-top: var(--space-16);
}

#attendees-printto select,
#attendees-printto input {
  width: 100%;
  max-width: 28rem;
}

/* CA-853 (QA D1): the row's last outcome, mirroring #attendees-status. Visual only (aria-hidden). It breaks
   anywhere, so an unbroken name in it never widens the Action column (re-QA, 15/10/2026). */
.attendees-row-note {
  margin: var(--space-8) 0 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* CA-1081: the note is its own table row directly under its attendee, one cell across the whole header, so it is as wide as the
   table at every width (in the Action cell it was 88px wide and 273px tall at 390px, and ran under the fixed bottom bar). The
   cell takes the page's cell padding and aligns with the Name column's left edge (the first-child rule), but is left-aligned,
   not right-aligned like the last cell of a row, and is no taller than its text. The attendee's own rule above it is dropped, so
   the note reads as part of that row and the pair is ruled once, under the note. */
#attendees-table tbody td.attendees-row-note-cell {
  height: auto;
  padding-top: 0;
  padding-bottom: var(--space-8);
  text-align: left;
}

#attendees-table .attendees-row-note-cell .attendees-row-note {
  margin: 0;
}

#attendees-table tbody tr:has(+ .attendees-row-note-row) td {
  border-bottom: 0;
}

/* CA-630: the full list's Show everyone button, checked-in filter and pager.
   Plain controls in the page's own type; each is 44px tall below 900px, as the
   search row's controls are (attendeesRound2.test.ts). */
#attendees-show-all-btn,
#attendees-retry-btn,
#attendees-refresh-btn {
  margin: var(--space-12) 0 0;
}

/* Refresh is aria-disabled, not disabled, while a load is in flight, so it keeps focus. */
#attendees-refresh-btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: progress;
}

#attendees-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-16);
  margin: var(--space-16) 0 0;
  padding: 0;
  border: 0;
}

#attendees-filter legend {
  margin: 0 0 var(--space-4);
  padding: 0;
  font-weight: 600;
}

#attendees-filter label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  min-height: var(--control-h);
  margin: 0;
  cursor: pointer;
}

#attendees-filter input {
  margin: 0;
}

#attendees-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-12);
  margin-top: var(--space-16);
}

#attendees-pager button {
  margin: 0;
}

#attendees-page-label {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 899px) {
  #attendees-show-all-btn,
  #attendees-retry-btn,
  #attendees-refresh-btn,
  #attendees-filter label,
  #attendees-pager button {
    min-height: var(--control-h-touch);
  }
}

/* CA-939 (owner, 19/10/2026): one plain table at EVERY width, ruled in the hairline, with no container stroke or radius
   (CA-897: the proposal draws the table plain). There are no card rows any more: columns that do not fit a width are
   hidden (the CA-939 block at the end of this file), never turned into cards. Separate borders and `overflow: hidden`
   stay. Each column has a floor so a short word is never what gets squeezed; Checked in and Action take only the room
   they need. */
#attendees-table {
  margin-top: var(--space-16);
  border: 0;
  border-radius: 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

/* CA-891 PR2: heads 10px 14px, cells 0 14px and centred in the 44px row (p:153-154). */
#attendees-table th {
  padding: 10px 14px;
}

#attendees-table td {
  padding: 0 14px;
}

#attendees-table th:first-child,
#attendees-table td:first-child {
  padding-left: var(--space-16);
}

#attendees-table th:last-child,
#attendees-table td:last-child {
  padding-right: var(--space-16);
  text-align: right;
}

/* CA-1158: columns are named by class (`col-name` and the rest, set in index.html and attendeesMain.ts), never by position, so
   a column can come or go (the Job title and Email columns went; Days comes with a two-day event). Name, Organisation and
   Badge type: a floor each. Checked in, Days and Action: only what they need. */
#attendees-table th.col-name { min-width: 8rem; }
#attendees-table th.col-organisation { min-width: 8rem; }
#attendees-table th.col-badge { min-width: 6rem; }

#attendees-table th.col-checked,
#attendees-table th.col-days,
#attendees-table th.col-action {
  width: 1%;
  white-space: nowrap;
}

#attendees-table td.col-checked {
  white-space: nowrap;
}

#attendees-table tbody tr:last-child td {
  border-bottom: 0;
}

/* CA-939: a row is never a card, at any width. */
#attendees-table tbody tr {
  border-radius: 0;
}

/* The Reprint panel (CA-939: inside the attendee panel, drawn there as a section under a hairline; see the CA-939 block). Its confirmation is the prototype's note: a white box with a
   warning stroke. Its words say what is queued and where, so the stroke is never
   the only signal. CA-936 replaced the old "iPads do not collect reprints yet"
   sentence with when the station prints; the stroke is unchanged. */
#reprint-panel {
  margin-top: var(--space-16);
  padding: var(--space-16) var(--space-24) var(--space-24);
  background: var(--surface-selected);
  border: 0;
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

#reprint-panel h3 {
  margin: 0 0 var(--space-12);
}

#reprint-panel select,
#reprint-panel input {
  width: 100%;
  max-width: 28rem;
}

#reprint-confirm-text {
  max-width: 640px;
  margin: var(--space-12) 0;
  padding: var(--space-12) var(--space-16);
  background: var(--cos-white);
  border: 1px solid var(--feedback-warning);
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

.reprint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.reprint-actions button {
  margin: 0;
}

/* Reprint requests for this event: one white 12px card per request. Name and
   station, then the state as a small outlined pill with its word in it, then the
   detail line; Cancel sits at the top right beside the text. Every box is
   `min-width: 0` and the title may break anywhere, so a long unbroken station id
   (free text an operator typed on an iPad) breaks inside its own card rather than
   pushing the page sideways; measured at 390px with a 60-character station id. */
#attendees-section > #reprint-list-section {
  margin-top: calc(var(--space-24) * 2);
  padding-top: 0;
  border-top: 0;
}

#reprint-refresh-btn {
  margin: var(--space-8) 0 var(--space-16);
}

#reprint-list-status {
  overflow-wrap: break-word;
}

#reprint-requests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#reprint-requests-list li {
  display: grid;
  grid-template-columns: minmax(0, auto) auto minmax(0, 1fr) auto;
  gap: var(--space-4) var(--space-12);
  align-items: baseline;
  padding: var(--space-16) 20px;
  background: var(--cos-white);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
  font-size: var(--size-data);
  overflow-wrap: break-word;
}

#reprint-requests-list li > * {
  min-width: 0;
}

#reprint-requests-list li > button {
  grid-column: 4;
  grid-row: 1 / span 2;
  align-self: start;
  margin: 0;
}

.reprint-request-title {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.reprint-request-state {
  padding: 0 var(--space-8);
  font-family: var(--font-accent);
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
}

.reprint-request-state-printed {
  color: var(--cos-graphite);
  background: var(--surface-alt);
}

.reprint-request-detail {
  grid-column: 1 / 4;
  font-size: var(--size-small);
  color: var(--text-muted);
}

/* A station's latest failed attempt on a queued reprint. The text itself starts
   "Last attempt failed", and a warning triangle comes first, so colour is not the
   only signal. */
.reprint-request-error {
  color: var(--feedback-error);
}

.reprint-request-error::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 12px;
  margin-right: var(--space-8);
  background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* Phones. The search field and button keep one row; a request card is one column
   with Cancel on its own row (44px from the generic phone rule). */
@media (max-width: 599px) {
  /* CA-1007: on a phone the search takes the row's width, Search beside it. */
  #attendees-search-row,
  #attendees-section div:has(> #attendees-query) {
    flex: 1 1 100%;
  }

  #attendees-query {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  #attendees-search-shortcut {
    display: none;
  }

  #reprint-panel {
    padding: var(--space-16);
  }

  #reprint-requests-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: var(--space-16);
  }

  .reprint-request-detail {
    grid-column: 1 / -1;
  }

  #reprint-requests-list li > button {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
    margin-top: var(--space-8);
  }
}

/* Round 2 review: the card layout runs from 899px down, but the generic 44px rule
   (the first max-width: 599px block) stops at 599px, so at 600 to 899px (iPad
   portrait) Reprint was 36px high and Search, the query field, Refresh and Cancel
   40px. Every button, field and picker in the view is 44px from 899px down. */
@media (max-width: 899px) {
  #attendees-section button,
  #attendees-section input,
  #attendees-section select {
    min-height: var(--control-h-touch);
  }
}

/* CA-373: the Add event picker, and the read-only look of Platform-sourced fields.
   The picker has its own classes; it does not reuse .chooser-group or .chooser-card, so
   nothing the chooser's own tests and layout pin is touched. Tokens only. */
#add-event-picker {
  max-width: 760px;
  margin: 0 0 var(--space-24);
}

#add-event-picker-heading {
  margin: 0 0 var(--space-8);
  font-size: 22px;
}

#add-event-picker > p {
  margin: 0 0 var(--space-12);
  color: var(--text-muted);
}

#add-event-picker-status {
  padding: var(--space-8) var(--space-12);
  font-weight: 500;
  border: 1px solid var(--border-card);
  background: var(--surface-alt);
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

#add-event-picker-status:empty {
  margin: 0;
  padding: 0;
  min-height: 0;
  border-width: 0;
}

.picker-group {
  margin-top: var(--space-24);
}

.picker-group h4,
.picker-group summary {
  margin: 0 0 var(--space-12);
  font-family: var(--font-accent);
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* list-item, not flex: a flex summary loses the disclosure marker, and the marker is what says it opens. */
.picker-group summary {
  display: list-item;
  min-height: 44px;
  padding: var(--space-12) 0;
  cursor: pointer;
}

.picker-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A choice is one button: its name is the event, its meta the dates and city. */
.picker-card,
.picker-row {
  display: flex;
  min-height: 44px;
  padding: var(--space-12) var(--space-16);
  color: var(--text-primary);
  background: var(--cos-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-container);
}

.picker-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin: 0;
  font-family: inherit;
  letter-spacing: var(--tracking-body);
  text-align: left;
  text-transform: none;
}

.picker-card:hover:not(:disabled) {
  background: var(--surface-alt);
  border-color: var(--border-strong);
}

.picker-row {
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8) var(--space-16);
}

.picker-row button {
  margin: 0;
}

.picker-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.picker-name {
  font-size: 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.picker-meta {
  font-size: var(--size-data);
  color: var(--text-muted);
}

/* A field the Platform owns reads as fixed text, not an empty box waiting for typing. */
input:not([type='checkbox']):not([type='radio']):not([type='file'])[data-from-platform='true'],
input:not([type='checkbox']):not([type='radio']):not([type='file'])[data-from-platform='true']:hover,
input:not([type='checkbox']):not([type='radio']):not([type='file'])[data-from-platform='true']:focus {
  background: var(--surface-alt);
  border-color: var(--border-card);
  cursor: default;
}

#event-form-platform-note {
  margin: 0 0 var(--space-16);
  padding: var(--space-8) var(--space-12);
  border: 1px solid var(--border-card);
  background: var(--surface-alt);
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

@media (max-width: 599px) {
  #add-event-picker .setup-actions button {
    flex: 1 1 100%;
  }
}

/* ---------------------------------------------------------------------------
   Check in from the Event day view (CA-506). Soft White contrast panel under the
   Attendance one, same fill and radius. Results are a list of full-width buttons
   (Enter opens one); the details pane is the selected fill the reprint panel uses.
   Statuses are neutral callouts: they carry progress and success as well as
   failures, so none of them takes the error colour. Nothing here is colour only:
   "Checked in" is a word on the row. No inline styles (the page CSP is
   style-src 'self').
   --------------------------------------------------------------------------- */
/* CA-891 PR3: unboxed on white, like the figures above it (p:791). Below 900px the 720px reading width stays (A10a pins
   it); from 900px A10a's grid takes the column. */
#daycheckin-section {
  max-width: 720px;
  margin-top: var(--space-24);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow-wrap: break-word;
}

#daycheckin-heading {
  margin: 0 0 var(--space-16);
  font-family: var(--font-accent);
  font-size: var(--size-label);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
}

#daycheckin-query {
  width: 100%;
  max-width: 28rem;
}

#daycheckin-hint {
  margin: var(--space-8) 0 0;
}

#daycheckin-search-status,
#daycheckin-outcome,
#daycheckin-print-status {
  margin: var(--space-16) 0 0;
  padding: var(--space-8) var(--space-12);
  color: var(--text-muted);
  font-weight: 500;
  border: 1px solid var(--border-card);
  background: var(--cos-white);
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

#daycheckin-search-status:empty,
#daycheckin-outcome:empty,
#daycheckin-print-status:empty {
  margin: 0;
  padding: 0;
  min-height: 0;
  border-width: 0;
}

#daycheckin-print-hint:empty {
  display: none;
}

/* CA-860: Register walk-up. Its status is a live region, always mounted, so it is quiet while empty and takes the callout
   look (the same as the three above) only when it has text. The look sits on :not(:empty) so the exact :empty list pinned by
   liveRegionsStayInTree.test.ts is unchanged. The form reuses the .attendee-edit-* rules below. */
#daycheckin-walkup-btn {
  margin-top: var(--space-16);
}

#daycheckin-walkup-status {
  margin: 0;
  padding: 0;
}

#daycheckin-walkup-status:not(:empty) {
  margin: var(--space-16) 0 0;
  padding: var(--space-8) var(--space-12);
  color: var(--text-muted);
  font-weight: 500;
  border: 1px solid var(--border-card);
  background: var(--cos-white);
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

#daycheckin-walkup select {
  width: 100%;
  max-width: 28rem;
}

/* The line just above Register and Cancel: a plain paragraph, not a live region (the status above is the one). It also says
   "Registering...", so it takes the ordinary text colour, not the error colour. */
#daycheckin-walkup-message {
  margin: var(--space-12) 0 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

#daycheckin-walkup-message:empty {
  margin: 0;
}

#daycheckin-walkup {
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid var(--border-container);
}

#daycheckin-results {
  margin: var(--space-16) 0 0;
  padding: 0;
  list-style: none;
}

#daycheckin-results:empty {
  display: none;
}

#daycheckin-results li + li {
  margin-top: var(--space-4);
}

.daycheckin-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4) var(--space-12);
  width: 100%;
  min-height: var(--control-h-touch);
  padding: var(--space-8) var(--space-12);
  /* A row is a person's name and details, not a button label, so it is plain weight 400
     rather than the button's 500 (CA-874 A3 made every button Geist sentence case). */
  font-family: var(--font-core);
  font-weight: 400;
  letter-spacing: var(--tracking-body);
  text-transform: none;
  text-align: left;
  border-radius: var(--radius-field);
  background: var(--cos-white);
  overflow-wrap: anywhere;
}

.daycheckin-result[aria-current='true'] {
  background: var(--surface-selected);
  border-color: var(--cos-black);
}

.daycheckin-result-name {
  grid-column: 1;
  /* CA-897: the mock bolds only the open row's name. */
  font-weight: 400;
}

.daycheckin-result[aria-current='true'] .daycheckin-result-name {
  font-weight: 600;
}

.daycheckin-result-meta {
  grid-column: 1;
  min-width: 0;
  color: var(--text-muted);
  font-size: var(--size-data);
}

/* CA-897: below 1200px a row stays a card, as before: name, organisation, and the Checked in pill. The ticket, "No"
   and cue cells and the column head belong to the 1200px table. */
#daycheckin-results-head,
.daycheckin-result-ticket,
.daycheckin-result-notin,
.daycheckin-result-cue {
  display: none;
}

/* The pill reads "Checked in": the separator and the Yes are kept for a screen reader, out of sight. */
.daycheckin-result-sep,
.daycheckin-result-value {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.daycheckin-result-state {
  grid-column: 2;
  /* CA-897 (review A L1): the card is three lines, name, email and organisation, so the pill spans all three. Not
     `1 / -1`: the rows are implicit, so -1 is the first line and the pill would sit beside the name only (review B). */
  grid-row: 1 / span 3;
  padding: 0 var(--space-8);
  font-family: var(--font-accent);
  font-size: var(--size-small);
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill-sm);
}

/* CA-891 PR3: the person is one stroked white box (p:802): the container stroke, the 12px radius, 24px padding. The
   599px sheet below takes the stroke off, because it is the whole screen. */
#daycheckin-details {
  margin-top: var(--space-16);
  padding: var(--space-24);
  background: var(--surface-page);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
}

#daycheckin-details-heading {
  margin: 0 0 var(--space-12);
  font-size: 20px;
  font-weight: 600;
}

#daycheckin-details-heading:focus {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/* CA-897: the details are one muted line (the A10 pane), not a list. */
#daycheckin-details-list {
  margin: 0;
  color: var(--text-muted);
}

/* CA-897: the actions sit under the pane's one hairline rule, as drawn. */
#daycheckin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-16);
  padding-top: var(--space-16);
  border-top: 1px solid var(--border-hairline);
}

/* CA-852: the Edit details form (attendeeEditForm.ts). Class-based so the Attendees list (CA-853) can mount the
   same form. Its messages are plain text tied to each box with aria-describedby, not live regions: the pane's
   #daycheckin-outcome says what happened. */
#daycheckin-edit {
  /* CA-897: no rule above the form; the mock draws its one rule above the actions. */
  margin-top: var(--space-16);
  border-top: 0;
}

.attendee-edit-field {
  margin: 0 0 var(--space-12);
}

.attendee-edit-field label {
  display: block;
}

.attendee-edit-field input {
  width: 100%;
  max-width: 28rem;
}

/* CA-1022: an invalid box draws the error border at rest. Written (0,2,1) this lost to the base text-input rule
   `input:not():not():not()` (0,3,1), so only the sentence and aria-invalid carried the state. `div` and one more
   :not() make it (0,3,2): above the base rule whatever the source order, below the (0,4,1) hover, focus and
   data-from-platform rules, so those still win as they did. Both forms that set aria-invalid use this wrapper. */
div.attendee-edit-field input[aria-invalid='true']:not([type='file']) {
  border-color: var(--feedback-error);
}

.attendee-edit-error {
  margin: var(--space-4) 0 0;
  color: var(--feedback-error);
  overflow-wrap: anywhere;
}

.attendee-edit-error:empty {
  margin: 0;
}

.attendee-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-16);
}

.attendee-edit-actions button[aria-disabled='true'] {
  opacity: 0.5;
  cursor: progress;
}

#daycheckin-print {
  margin-top: var(--space-24);
  padding-top: var(--space-16);
  border-top: 1px solid var(--border-hairline);
}

#daycheckin-print-heading {
  margin: 0 0 var(--space-8);
}

/* CA-880: "Print to" sits after the actions (the phone sheet's Tab ring has Check in first and this select last), above the
   Badge block, which now holds only the USB note (CA-936), and is hidden when that note is. */
#daycheckin-printto {
  margin-top: var(--space-24);
  padding-top: var(--space-16);
  border-top: 1px solid var(--border-hairline);
}

#daycheckin-printto select,
#daycheckin-printto input {
  width: 100%;
  max-width: 28rem;
}

#daycheckin-printto-note {
  margin: var(--space-8) 0 0;
}

#daycheckin-print select,
#daycheckin-print input {
  width: 100%;
  max-width: 28rem;
}

#daycheckin-print-hint {
  margin: var(--space-8) 0 0;
  color: var(--text-muted);
}

#daycheckin-checkin-btn,
#daycheckin-print-btn {
  color: var(--cos-white);
  background: var(--cos-black);
  border-color: var(--cos-black);
  border-radius: var(--radius-pill);
}

#daycheckin-checkin-btn:hover:not(:disabled):not([aria-disabled='true']),
#daycheckin-print-btn:hover:not(:disabled) {
  background: var(--cos-black);
  border-color: var(--cos-black);
  opacity: var(--state-hover-opacity);
}

#daycheckin-checkin-btn:active:not(:disabled):not([aria-disabled='true']),
#daycheckin-print-btn:active:not(:disabled) {
  background: var(--cos-black);
  opacity: var(--state-active-opacity);
}

/* CA-649: Check in is aria-disabled, not disabled, while a check-in is in flight, so it keeps focus. Dimmed to
   0.5, as the in-flight Refresh button is, not to the disabled 0.3: the focus ring fades with it, and at 0.3 it
   measured 2.08:1 against the panel, at 0.5 3.86:1 (3:1 needed). */
#daycheckin-checkin-btn[aria-disabled='true'],
#daycheckin-print-btn[aria-disabled='true'] {
  opacity: 0.5;
  cursor: progress;
}

/* CA-880: one primary action per person. Print badge (a print still owed) is the black pill above; Reprint badge is the
   secondary action, so it takes the default white button face (the base `button` rule), not the black one. */
#daycheckin-print-btn[data-emphasis='secondary'] {
  color: var(--text-primary);
  background: var(--cos-white);
  border-color: var(--border-control);
  border-radius: var(--radius-pill-sm);
}

#daycheckin-print-btn[data-emphasis='secondary']:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--cos-graphite);
  opacity: 1;
}

#daycheckin-print-btn[data-emphasis='secondary']:active:not(:disabled) {
  background: var(--surface-hover);
  opacity: 1;
}

/* When the Event day view cannot show an event (the blocked notice is up), nothing on it works. */
[data-view='day'][data-blocked='true'] #daycheckin-section {
  display: none;
}

@media (max-width: 599px) {
  #daycheckin-section {
    padding: 0;
  }

  #daycheckin-details {
    padding: var(--space-16);
  }

  #daycheckin-actions button,
  #daycheckin-print-btn {
    flex: 1 1 100%;
    min-height: var(--control-h-touch);
  }

  /* CA-880: the pencil is a square icon button, not a full-width row. */
  #daycheckin-actions .icon-action {
    flex: 0 0 auto;
  }
}

/* CA-874 A7: at 599px and below the open person pane is a full-screen sheet over the page. Only this pane: the
   walk-up form stays inline, 600px and up is unchanged, and the Close button in the actions row is the way out. It
   is a separate block placed after the pane's own phone block above, which stays as it was. The four offsets are
   written out because the test DOM does not expand the shorthand. The page behind does not scroll while a sheet is
   up on a visible Day view that can show an event, so changing tab never leaves the page locked. */
@media (max-width: 599px) {
  #daycheckin-details:not([hidden]) {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html:has(#daycheckin-section:not([hidden]) #daycheckin-details:not([hidden])):has([data-view='day']:not([hidden]):not([data-blocked='true'])) {
    overflow: hidden;
  }
}

/* CA-874 A10a: the Event day attendee list. Everything here sits after A7's blocks, so it never changes A7's phone rules
   (the first max-width: 599px blocks are read by regex in brandAssets.test.ts, setupStyles.test.ts and
   attendeesStyles.test.ts), and no plain rule for #daycheckin-details follows A7's: it would beat A7's phone margin.
   Selectors are ids and classes only (the CA-704 guards fail on element words). No new breakpoint. */

/* The search row: the box takes the room, the filter chips sit to its right, and wrap under it on a narrow screen. The
   12rem basis and the 8px chip padding keep the chips on the row from a 1280px laptop up (list column 668px, measured
   in #659 QA); below that they wrap. */
#daycheckin-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-12) var(--space-16);
}

#daycheckin-search-box {
  flex: 1 1 12rem;
  min-width: 0;
}

#daycheckin-hint {
  margin-top: var(--space-8);
}

/* CA-897: the list's controls are the pager alone (no Refresh), shown only for the empty-box list. */
#daycheckin-list-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-12);
  margin-top: var(--space-16);
}

#daycheckin-list-controls[hidden] {
  display: none;
}

/* CA-897: the controls are the pager alone; with the pager hidden they draw nothing, not a 16px gap (review A L). */
#daycheckin-list-controls:has(> #daycheckin-pager[hidden]) {
  display: none;
}

#daycheckin-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-12);
}

#daycheckin-pager[hidden] {
  display: none;
}

#daycheckin-page-label {
  font-variant-numeric: tabular-nums;
}

/* The pager buttons are 44px at 599px and below only: from 600px every button is the standard height, and
   brandAssets.computed.test.ts pins that with one named exception that is not this list (the Attendees view). */
@media (max-width: 599px) {
  #daycheckin-prev-btn,
  #daycheckin-next-btn {
    min-height: var(--control-h-touch);
  }
}

/* From 900px: the list and the person pane side by side (the proposal mock: a 420px pane, a 32px gap). CA-897: the grid
   is the whole Event day view, so the pane's top is level with the figures, as drawn, and the Check in section steps
   aside (display: contents) so its heading, status, list and pane join that grid. Everything but the pane is in the
   first column or spans both. Chrome bounds a sticky grid item by the whole grid, not its area, so Platform sync and the
   downloads below the list are in the first column only: the open pane has its own column all the way down and never
   slides over them (review A M1). The pane stays in the document where it was, so the Tab order is unchanged; it is
   sticky and scrolls inside itself, so Print to stays reachable with the edit form open. The column is kept when nobody
   is open, so the rows do not jump. A row is one 44px line. 600 to 899px is unchanged: the pane below the results. */
@media (min-width: 900px) {
  [data-view='day']:not([hidden]) {
    display: grid;
    /* CA-938: Event day is a dashboard (owner, 19/10/2026). The figures, walk-ups and first arrivals by day in the first
       column, the checked-in speakers in the second, both fluid; the Check in section is not shown on Event day (below). */
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    grid-template-areas:
      "vh vh"
      "blocked blocked"
      "health health"
      "att speakers"
      "board speakers"
      "sync sync"
      "exports exports";
    grid-template-rows: auto auto auto auto 1fr auto auto;
    column-gap: clamp(24px, 3vw, 48px);
    align-items: start;
  }

  #daycheckin-section:not([hidden]) {
    display: contents;
  }

  #view-heading-day {
    grid-area: vh;
  }

  #day-blocked-status {
    grid-area: blocked;
  }

  #health-strip {
    grid-area: health;
  }

  /* Grid items do not collapse margins, so main's gaps are set here: the strip's 24px bottom margin is the gap to the
     figures, and the bar keeps its 12px bottom margin inside its own item, so the heading adds 12px to make 24. */
  #attendance-section {
    grid-area: att;
    max-width: none;
    margin-top: 0;
  }

  #daycheckin-heading {
    grid-area: ckhead;
    margin-top: var(--space-12);
  }

  #daycheckin-panel-status {
    grid-area: pstatus;
  }

  #platformsync-section {
    grid-area: sync;
  }

  #day-exports-section {
    grid-area: exports;
  }

  #daycheckin-list-col {
    grid-area: list;
    min-width: 0;
  }

  #daycheckin-query {
    max-width: none;
  }

  #daycheckin-details {
    grid-area: pane;
    align-self: start;
    position: sticky;
    top: var(--space-24);
    margin-top: 0;
    max-height: calc(100vh - 2 * var(--space-24));
    overflow-y: auto;
  }

  .daycheckin-result {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto;
    min-height: var(--row-h);
  }

  /* CA-897: the name spans the cells' two rows, so with no email line under it the row shares one centre. */
  .daycheckin-result-name {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .daycheckin-result-meta {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .daycheckin-result-state {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

/* CA-897: from 1200px the list column is at least 652px (measured), wide enough for the mock's five columns. Below it
   the row is A10a's three tracks (coordinator, 16/10/2026). */
@media (min-width: 1200px) {
  /* CA-897: the mock's table (proposal, "Event day with the settings icon, editing an attendee"): Name, Organisation,
     Ticket type, Checked in, then the cue. Every track is fixed or fractional, never auto, so each row's grid and the
     head's line up. Rows are unboxed with a hairline under each; the open row keeps the selected fill. */
  #daycheckin-results-head,
  .daycheckin-result {
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1.5fr) minmax(0, 1.5fr) 88px;
    column-gap: var(--space-12);
    padding-left: var(--space-12);
    padding-right: var(--space-12);
  }

  #daycheckin-results-head:not([hidden]) {
    display: grid;
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
    font-family: var(--font-accent);
    font-size: var(--size-small);
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-hairline);
  }

  #daycheckin-results-head:not([hidden]) + #daycheckin-results {
    margin-top: 0;
  }

  #daycheckin-results li + li {
    margin-top: 0;
  }

  .daycheckin-result {
    min-height: var(--row-h);
    border-width: 0 0 1px;
    border-style: solid;
    border-color: var(--border-hairline);
    border-radius: 0;
  }

  .daycheckin-result[aria-current='true'] {
    border-color: var(--border-hairline);
  }

  /* CA-897: the name spans the cells' two rows, so with no email line under it the row shares one centre. */
  .daycheckin-result-name {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .daycheckin-result-meta {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .daycheckin-result-ticket {
    display: block;
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .daycheckin-result-state,
  .daycheckin-result-notin {
    display: block;
    grid-column: 4;
    grid-row: 1 / span 2;
    padding: 0;
    font-family: var(--font-core);
    font-size: var(--size-data);
    text-transform: none;
    border: 0;
    border-radius: 0;
  }

  .daycheckin-result-cue {
    display: block;
    grid-column: 5;
    grid-row: 1 / span 2;
    color: var(--text-muted);
    text-decoration: underline;
  }

  .daycheckin-result[aria-current='true'] .daycheckin-result-cue {
    text-decoration: none;
  }

  /* Yes and No show; the lead-in and separator are kept for a screen reader, out of sight. */
  .daycheckin-result-lead,
  .daycheckin-result-sep {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .daycheckin-result-value {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  .daycheckin-result-meta {
    color: var(--text-primary);
  }
}

/* CA-616: the Stations panel in the Attendees view (stationsMain.ts builds it). A plain table of
   station, status, last arrival, arrivals and last print. The wrapper scrolls sideways on a narrow
   screen instead of the page, and a long unbroken station id (free text typed on an iPad) breaks
   inside its cell. "Connected" is a filled label and the words are always there, so the state is
   never carried by colour alone. */
#stations-section {
  margin-top: calc(var(--space-24) * 2);
}

#stations-status {
  overflow-wrap: break-word;
}

#stations-table-wrap {
  overflow-x: auto;
}

#stations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-data);
}

#stations-table th,
#stations-table td {
  padding: var(--space-8) var(--space-12);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-hairline);
  overflow-wrap: break-word;
}

/* CA-891 PR2: the same head face as the attendees table (p:153). */
#stations-table thead th {
  font-family: var(--font-accent);
  font-size: var(--size-col-head);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-hairline);
}

#stations-table tbody th {
  font-weight: 500;
  max-width: 24ch;
}

.station-state-connected {
  font-weight: 600;
}

.station-state-connected::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: var(--space-8);
  border-radius: 50%;
  background: var(--cos-black);
}

/* CA-331: the import panel's "CSV file" or "Platform" switch (importSourceView.ts builds it). The two choices are values, not
   field names, so they read as body text like the badge-type choices above, side by side. A disabled Platform is dimmed, and the
   words "needs the Platform link" in its label say why without relying on the dimming. */
#import-source label[data-import-source] {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  min-height: var(--control-h-touch);
  margin: 0 var(--space-16) 0 0;
  font-family: var(--font-core);
  font-size: var(--size-body);
  letter-spacing: var(--tracking-body);
  text-transform: none;
  color: var(--text-primary);
}

#import-source label[data-import-source]:has(input:disabled) {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* The shared disabled opacity (0.3) leaves a disabled radio nearly invisible. Here it is 0.6: clearly there, clearly off. The state
   is also said in words (the label reads "needs the Platform link") and by the cursor, so colour and dimming are never the only cue. */
#import-source input[type='radio']:disabled {
  opacity: 0.6;
}

#import-source-note:empty {
  display: none;
}

#platform-report > div {
  margin-top: var(--space-16);
}

/* CA-110: the Platform sync figures, one label and its number per row; the "of which" rows are indented subsets. */
/* CA-891 PR3 (Q7): Platform sync stays below the list, unboxed: a hairline above it instead of a card. */
#platformsync-section {
  margin-top: var(--space-32);
  padding: var(--space-24) 0 0;
  border: 0;
  border-top: 1px solid var(--border-hairline);
  border-radius: 0;
}

#platformsync-figures {
  margin: var(--space-12) 0;
  max-width: 32rem;
}

#platformsync-figures > div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-12);
  padding: 2px 0;
}

#platformsync-figures > div.platformsync-subset {
  padding-left: var(--space-12);
  color: var(--text-muted);
}

#platformsync-figures dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* Owner ruling (15/10/2026), measured at 390 (QA): on a phone the name keeps one line of its own, full width, so it
   still shows about 40 characters before the ellipsis; the date, city and lifecycle word sit on the line below. */
@media (max-width: 599px) {
  .event-bar-summary {
    flex: 1 0 100%;
    flex-wrap: wrap;
  }

  #event-bar-name {
    flex: 1 0 100%;
  }
}

/* CA-874 A1: the health strip at the top of the Event day view, built to the proposal's layout (owner, 15/10/2026):
   one bordered strip, equal cells divided by hairlines, each with a status dot, an uppercase label, the value and a
   muted line under it. On a phone the cells stack (the later 599px block below). */
#health-strip {
  /* QA (15/10/2026): the 24px the generic card gave above it, so the Event day heading does not sit on the border. */
  margin: var(--space-24) 0;
  /* QA (15/10/2026): one bordered strip, as the mock. The generic `[data-view] > section` card would put a second
     box around it. */
  padding: 0;
  border: 0;
  border-radius: 0;
}

#health-strip-cells {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
  overflow: hidden;
}

.health-cell {
  min-width: 0;
  padding: 14px 18px;
  border-right: 1px solid var(--border-hairline);
}

.health-cell:last-child {
  border-right: 0;
}

.health-cell dt {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

/* The dot is decoration (aria-hidden): the value says the same in words. A neutral ring until a state is known. */
.health-dot {
  flex: none;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border: 2px solid var(--border-control);
  border-radius: 50%;
}

.health-dot[data-state='ok'] {
  border-color: var(--feedback-success);
  background: var(--feedback-success);
}

.health-dot[data-state='warn'] {
  border-color: var(--feedback-warning);
  background: var(--feedback-warning);
}

.health-cell dd {
  margin: 0;
}

.health-value {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.health-sub {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

@media (max-width: 599px) {
  #health-strip-cells {
    grid-template-columns: minmax(0, 1fr);
  }

  .health-cell {
    border-right: 0;
    border-bottom: 1px solid var(--border-hairline);
  }

  .health-cell:last-child {
    border-bottom: 0;
  }
}

/* CA-876 (K1, owner 15/10/2026): the Check-in desks step follows the proposal's layout, not only its fields. Compact
   fields share a row; QR codes at the kiosk and Badge types are each a section under a hairline with a small uppercase
   muted heading (the proposal's .sec and .acc). CA-897 PR-D1: the kiosk staff code is no longer a section; it is a
   plain field beside Stations (see its rule below), and the wait ceiling follows on its own row. Placed last so these
   win over the earlier card rules for #event-form-kiosk-code at every width. */
.desks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-32);
}

.desks-field {
  min-width: 0;
}

/* QA (15/10/2026): both fields' labels sit on the same line. The second keeps the form's 16px label gap, which
   brandAssets.computed.test.ts pins (CA-880), so the first takes the same gap rather than the second losing it. */
.desks-row > .desks-field > label:first-child {
  margin-top: var(--space-16);
}

/* QA (15/10/2026): an id, so this beats the generic full-width text input rule (0,3,1), which source order alone
   does not. */
#event-form .desks-field input[type='number'] {
  width: 120px;
}

#event-form-kiosk-exit-pin {
  width: min(100%, 200px);
}

.desks-section {
  margin: var(--space-24) 0 0;
  padding: var(--space-16) 0 0;
  border: 0;
  border-top: 1px solid var(--border-hairline);
  border-radius: 0;
}

/* CA-897 PR-D1 (the K1 mock): the kiosk staff code is a plain field beside Stations, not a section. It takes the
   room left in the row, so its hint and note wrap under the input; on a narrow screen it drops under Stations. */
#event-form-kiosk-code {
  flex: 1 1 16rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

/* Its legend names the group for screen readers only (the .visually-hidden pattern, restated: the id rules above
   would otherwise win), and the label under it takes the row's 16px label gap. */
#event-form-kiosk-code legend.visually-hidden {
  position: absolute;
  float: none;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.desks-row > #event-form-kiosk-code > legend + label {
  margin-top: var(--space-16);
}

.desks-section legend {
  float: left;
  width: 100%;
  margin: 0 0 var(--space-8);
  padding: 0;
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
}

.desks-section legend + * {
  clear: left;
}

.radio-row {
  display: flex;
  gap: var(--space-12);
  align-items: flex-start;
  padding: 10px 0;
}

.radio-row input[type='radio'] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--cos-black);
}

/* The line under a radio's option name is a sentence, tied to the radio by aria-describedby. */
.radio-text {
  min-width: 0;
}

.radio-row label {
  margin: 0;
}

/* CA-897 PR-D1 (coordinator approved 16/10/2026, U2): a radio's option name is not a field label. It is the core face
   in sentence case at weight 600, as the mock's bold "On" and "Off: name search only". Field labels keep A3's face. */
#event-form .radio-option {
  font-family: var(--font-core);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.radio-note {
  margin: 2px 0 0;
  color: var(--text-muted);
}

/* CA-894: WebKit (Safari, iOS) draws a native select at its own height (23px measured at 390px in the phone sheet) and
   ignores min-height, but it honours height, and there a height beats a larger min-height. So every select's height
   repeats the min-height the rules above give it: standard from 600px up, the touch height in the Attendees view from
   899px down (its "Round 2 review" rule) and everywhere from 599px down. Chromium already drew these heights. */
select {
  height: var(--control-h);
}

@media (max-width: 899px) {
  #attendees-section select {
    height: var(--control-h-touch);
  }
}

@media (max-width: 599px) {
  select {
    height: var(--control-h-touch);
  }
}

/* CA-897 (owner, 16/10/2026: the mock exactly) hid By station, Arrivals and the "expected" note. CA-938 (owner,
   19/10/2026: the approved dashboard mock draws By station and Arrivals) shows those two again; the station note and the
   "expected" note stay hidden; attendanceMain.ts still fills them. The mock draws no last-updated line, search label or
   search hint: those stay for a screen reader (the hint is the box's description). */
#attendance-station-note,
#attendance-expected-definition {
  display: none;
}

#attendance-last-updated,
#daycheckin-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CA-1005: the mock's 1px by 24px rule between the app title and the event is gone with the title, which is not drawn
   inside an event (it would be left at the start of the row with nothing to divide). */

@media (max-width: 599px) {
  /* CA-897: on a phone the figures stack at the full width. */
  #attendance-figures {
    max-width: none;
  }
}

/* CA-897 PR-SP1 (owner 16/10/2026, "the styling that was proposed in the schema"; coordinator approved SP1 to SP9):
   the proposal's own CSS on the chooser, Setup and Event settings, Attendees and Sponsors. Values are read from its
   `.ui.adm th`, `.ui.adm td`, `.ui.adm .pill`, `.ui .sec`, `.ui .box` and `.acc` rules and from its /admin panel mocks'
   inline styles. Last in the file so it wins by source order; the width-specific parts sit in queries that leave the
   phone touch sizes alone. `:root` tokens, the global label and legend face and Event day are other PRs' (r1). */

/* SP1: column heads carry no tracking (`.ui.adm th` letter-spacing 0). */
#events-table th,
#attendees-table th,
#stations-table thead th,
.duplicate-group th,
.sponsor-table-head {
  letter-spacing: 0;
}

/* SP7: section headings are the muted `.acc`, tracked -0.01em. The danger label keeps the error colour (its own rule,
   more specific). */
.sponsor-group-label,
.desks-section legend {
  letter-spacing: -0.01em;
}

.sponsor-group-label {
  color: var(--text-muted);
}

.sponsor-group-remove .sponsor-group-label {
  color: var(--feedback-error);
}

/* SP8: button rows in Manage are spaced 12px, as the mock's. */
.sponsor-manage .sponsor-group-controls {
  gap: var(--space-12);
}

/* SP9: the danger box is padded as `.ui .box`, 16px 18px. */
.sponsor-group-remove {
  padding: var(--space-16) 18px;
}

/* SP6: a desks section is `.ui .sec`: 20px above and below its content, 16px below what precedes it. */
.desks-section {
  margin-top: var(--space-16);
  padding: 20px 0;
}

/* SP5: the step panel takes the mock panels' 28px padding. SP4: the Lead capture pill and Manage are the standard
   control, as `.ui.adm .pill` (min-height 40). Both are restated for the phone just below, so no new width bound is
   added (brandAssets.computed.test.ts, CA-688). */
#setup-panel {
  padding: 28px;
}

.sponsor-row .sponsor-capture-toggle,
.sponsor-row .sponsor-manage-btn {
  min-height: var(--control-h);
}

@media (max-width: 599px) {
  #setup-panel {
    padding: var(--space-16);
  }

  .sponsor-row .sponsor-capture-toggle,
  .sponsor-row .sponsor-manage-btn {
    min-height: var(--control-h-touch);
  }
}

@media (min-width: 900px) {
  /* SP2: the row ends take the same 14px as every other cell (`.ui.adm th/td` padding 0 14). */
  #attendees-table th:first-child,
  #attendees-table td:first-child {
    padding-left: 14px;
  }

  #attendees-table th:last-child,
  #attendees-table td:last-child {
    padding-right: 14px;
  }

  /* SP3: row buttons, the pencil square included, are the standard 40px control (`.ui.adm .rowstack .pill`). The
     group holds only the row's buttons; it is named instead of `button`, which sponsorsStyles' CA-704 guard watches. */
  #attendees-table .attendees-row-actions > * {
    min-height: var(--control-h);
  }

  #attendees-table .attendees-row-actions > .icon-action {
    min-width: var(--control-h);
  }
}

/* CA-897 PR-SP2 (owner 16/10/2026, "the styling that was proposed in the schema"; coordinator approved, Q-a): every
   callout takes the proposal's `.ui .box` face, padding 16px 18px on a white fill, with the mock's 14px text at
   weight 400. The border keeps its feedback colour (`.box.warn`, `.box.bad`). A callout with a word takes black text
   and the word keeps the feedback colour (`.word.warn`, `.word.bad`). The status lines with no word keep their
   feedback-coloured text, so the meaning never rests on the border colour alone (A4). Placed last so it wins by order;
   the error-state attribute rules outrank it on specificity and only set colour and border, which still apply.
   Event day's out-of-paper rows ("Error" word) are included (coordinator, 16/10/2026: one face for every callout). */
#status,
#events-status,
#event-form-status,
#attendance-status,
#sponsor-monitor-status,
#sponsor-action-status,
#sponsor-signin-status,
#commit-blocked-message,
#attendees-status,
#reprint-status,
#sponsor-add-status,
#qr-token-changes-message,
#qr-token-collisions-message,
#existing-in-database-message,
#email-matched-different-person-message,
#skip-unresolved-message,
#qr-tokens-updated-message,
#email-matched-different-person-commit-message,
#event-form-non-canonical-badge-warning,
#attendance-stale-banner,
#sponsor-stale-banner,
.view-blocked,
#printer-paper-banner .paper-out-row {
  padding: var(--space-16) 18px;
  font-size: var(--size-data);
  font-weight: 400;
  background: var(--cos-white);
}

#qr-token-changes-message,
#qr-token-collisions-message,
#existing-in-database-message,
#email-matched-different-person-message,
#skip-unresolved-message,
#qr-tokens-updated-message,
#email-matched-different-person-commit-message,
#event-form-non-canonical-badge-warning,
#attendance-stale-banner,
#sponsor-stale-banner,
#printer-paper-banner .paper-out-row {
  color: var(--text-primary);
}

/* Review A L: the mixed lines' error state outranks the block above on specificity; it takes the same weight. */
#attendees-status[data-state='error'],
#reprint-status[data-state='error'],
#sponsor-add-status[data-state='error'] {
  font-weight: 400;
}

#skip-unresolved-message::before,
#printer-paper-banner .paper-out-row::before {
  color: var(--feedback-error);
}

/* Review A L: the row's offline note is plain weight, as its own comment says, now that the row
   is 400. Its muted colour is its own rule's. */
#printer-paper-banner .paper-out-stale {
  font-weight: 400;
}

#qr-token-changes-message::before,
#qr-token-collisions-message::before,
#existing-in-database-message::before,
#email-matched-different-person-message::before,
#qr-tokens-updated-message::before,
#email-matched-different-person-commit-message::before,
#event-form-non-canonical-badge-warning::before,
#attendance-stale-banner::before,
#sponsor-stale-banner::before {
  color: var(--feedback-warning);
}

/* CA-897 G7, option A (owner, 16/10/2026). The proposal's "Event day on a phone" header, inside an event at 599px and
   below: row 1 is the event summary, row 2 is Sign out at the right. CA-1005 (owner, 13/11/2026): the settings icon is gone
   (Setup is a labelled tab) and Change event moved into the navigation bar, so the header holds the summary and Sign out
   only. The app title and "Signed in as {name}" are clipped (the .visually-hidden pattern), not removed, so screen
   readers still have them. The event bar lends the header its children (display: contents) so one grid can place them;
   no `order` is used, so the DOM, and with it the tab order, is unchanged. From CA-1018 this block reaches 799px (see the
   note below). From 800px up the header is as before. Grid placement is written in longhands (happy-dom reads no shorthand back). */
/* CA-1018 (owner, 24/11/2026: "Option C with a slight change, sign out can be moved into the hamburger menu"): this header block, and its
   restatement after the unbounded header rules below, reach 799px (the existing tablet bound; coordinator, 24/11/2026), so from 600 to 799px the header is the phone header: the menu icon
   holds Change event and Sign out, and the tab bar keeps one row. The bottom tab bar and every other phone rule stay at 599px. */
@media (max-width: 799px) {
  /* CA-1018 (coordinator, 24/11/2026, inside the owner's route C ruling): the Setup count sits under the tab word up to 799px, as on a
     phone (the 599px block above sets the same values), so the tab bar keeps one row with "Setup 1 to do" showing. No new bound. */
  #event-tabs a {
    flex-direction: column;
    gap: 2px;
  }

  .tab-count {
    margin: 0;
    padding: 0 6px;
    font-size: 11px;
    line-height: 16px;
  }

  #page-header:has(#event-bar:not([hidden])) {
    display: grid;
    /* CA-1110: two tracks. The name and date take what is left; the menu icon has the second, on the same row (Sign out no longer
       has a row of its own, which is the 143px header it replaces). */
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-12) var(--space-8);
    align-items: center;
  }

  #page-header:has(#event-bar:not([hidden])) h1,
  #page-header:has(#event-bar:not([hidden])) #sponsor-signed-in-as {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #page-header:has(#event-bar:not([hidden])) #event-bar {
    display: contents;
  }

  #page-header:has(#event-bar:not([hidden])) .event-bar-summary {
    grid-row-start: 1;
    grid-column-start: 1;
    grid-column-end: 2;
  }

  /* The panel holds the menu icon (and the clipped "Signed in as" words for assistive technology): row 1, the second track. */
  #page-header:has(#event-bar:not([hidden])) #sponsor-signed-in-panel {
    grid-row-start: 1;
    grid-column-start: 2;
    grid-column-end: 3;
    justify-self: end;
    margin: 0;
  }

  /* The words "Signed in as" are a text node of this <p>: a zero font size hides them; Sign out restates its size. */
  #page-header:has(#event-bar:not([hidden])) #sponsor-signed-in-panel p {
    font-size: 0;
    gap: 0;
  }

  /* Defensive: the global button rule already sets this size (review B nit); it is restated so the 0 above can never
     reach Sign out. */
  #page-header:has(#event-bar:not([hidden])) #sponsor-signout-btn {
    font-size: var(--size-button);
  }

  /* CA-1110 (owner, 21/11/2026: "Neither needs to be a call to action button"; "move sign out button and change event button behind a
     menu icon button that sits on the same row as the event name and date"). On a phone Sign out and Change event are not drawn: they
     stay in the page, with their ids and their listeners, and the menu's two items press them (headerMenuCA1110.ts). Not drawn
     means display: none, so they are also out of the tab order and the reading order, and the one menu icon is the single way to them. */
  #sponsor-signout-btn,
  #change-event-btn {
    display: none;
  }

  #header-menu-wrap {
    position: relative;
    display: inline-flex;
  }

  /* The icon: the existing square icon button (.icon-action, 44px on a phone, its glyph centred), with no outline and no fill
     (it is not a call to action), in the text colour. */
  #header-menu-btn {
    display: inline-flex;
    min-height: var(--control-h-touch);
    /* CA-1018: a 44px square from 600 to 799px too (the 599px .icon-action rule gives the width only on a phone). */
    min-width: var(--control-h-touch);
    margin: 0;
    color: var(--text-primary);
    background: transparent;
    border: 0;
    border-radius: var(--radius-pill-sm);
  }

  /* The menu: drawn over the page under the icon, right edges together, so opening it never changes the header's height. */
  #header-menu {
    position: absolute;
    top: calc(100% + var(--space-4));
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    min-width: 12rem;
    padding: var(--space-4);
    font-size: var(--size-button);
    background: var(--glass-strong);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-container);
    box-shadow: var(--lift-menu);
  }

  /* Plain items, not buttons: no outline, no pill, left aligned, one per row, a 44px target. */
  #header-menu [role='menuitem'] {
    width: 100%;
    min-height: var(--control-h-touch);
    margin: 0;
    padding: 0 var(--button-pad-x);
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: var(--radius-field);
  }
}

/* CA-897 MX1 (owner 16/10/2026: "build the mock exactly"; coordinator rulings d1, d2, d4, d5, m1, m2 and m3. The
   Event day search status is r1's, by state, since that line also carries errors: review A H, coordinator (a)). What the mocks do not draw is clipped (the .visually-hidden pattern), not removed: it stays in
   the tree for screen readers and for the aria-describedby that names it. Event settings mode only; first-run Setup
   is not the mock. */

/* d1: a hairline under the title block, as the K1 panel's first .sec. */
[data-view='setup'][data-setup-mode='settings'] #setup-step-head {
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--border-hairline);
}

/* d2, d4, d5: not drawn in the K1 panel. */
[data-view='setup'][data-setup-mode='settings'] #setup-step-status,
[data-view='setup'][data-setup-mode='settings'] #setup-step-detail,
[data-view='setup'][data-setup-mode='settings'] label[for='event-form-kiosk-exit-pin'] .label-hint,
[data-view='setup'][data-setup-mode='settings'] label[for='event-form-wait-ceiling-min'] .label-hint,
[data-view='setup'][data-setup-mode='settings'] #event-form-kiosk-exit-pin-hint,
[data-view='setup'][data-setup-mode='settings'] #event-form-kiosk-staff-code-note {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CA-1051 (reviewer A). The rule above clips the kiosk PIN hint because the owner's mock has none for an event that is set
   up. An event with NO kiosk code needs its hint seen: it says a code must be set. eventsMain.ts marks the hint for that
   event only (`data-needs-kiosk-code`), and this rule, later in the file and more specific, puts it back as it is in
   first-run mode: a plain <p>, which takes only the global `p` margin (`var(--space-8) 0`). A coded event is unmarked and
   stays clipped as the mock draws it. */
[data-view='setup'][data-setup-mode='settings'] #event-form-kiosk-exit-pin-hint[data-needs-kiosk-code='true'] {
  position: static;
  width: auto;
  height: auto;
  margin: var(--space-8) 0;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
}

/* m1: the open sponsor row is white; the A5 panel is drawn on white. */
.sponsor-row[data-open='true'] {
  background: var(--surface-page);
}

/* m2: a hairline under "Manage {company}", as the A5 panel's first .sec. */
.sponsor-manage .sponsor-manage-title {
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--border-hairline);
}

/* m3: the guidance beside Reveal, muted, as drawn. A revealed passcode takes a line of its own so it never squeezes
   between them. The Passcode group is the one whose body holds the guidance. */
.sponsor-group-body:has(> .sponsor-passcode-guidance) {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-12);
}

.sponsor-group-body:has(> .sponsor-passcode-guidance) > .sponsor-revealed {
  flex-basis: 100%;
}

.sponsor-passcode-guidance {
  /* QA (Chrome, 16/10/2026): with its natural width as basis the sentence wrapped below Reveal; it shares the row and
     wraps within its own column instead, down to 12rem, below which it drops under Reveal. */
  flex: 1 1 12rem;
  min-width: 0;
  color: var(--text-muted);
}

/* CA-939: from 900px the row's pills sit side by side, so a row is one line (CA-897 MX3 drew them stacked, 129px wide).
   Each pill keeps min-height 40 and padding 0 12. Below 900px the base rule applies (spaced by --space-8, may wrap, 44px). */
@media (min-width: 900px) {
  #attendees-table .attendees-row-actions {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: var(--space-8);
    padding: var(--space-8) 0;
  }

  #attendees-table .attendees-row-actions > * {
    width: auto;
    min-height: var(--control-h);
    padding: 0 var(--space-12);
  }
}

/* CA-897 MX3 (coordinator, review A M): the off Reprint of a row not checked in is aria-disabled, never `disabled`, so it
   stays focusable and its reason is announced; it keeps the disabled look as drawn. */
#attendees-table button[data-action='reprint'][aria-disabled='true'] {
  opacity: var(--state-disabled-opacity);
  cursor: not-allowed;
}

/* CA-897 PR3 (owner, 16/10/2026: the mock exactly). The pane: the details as one muted line, the form above the actions,
   the actions under a hairline rule, Save filled, and no Close except on the phone sheet, where it is the only way out by
   touch (coordinator, 16/10/2026). */
/* Edit details is a text button. Its visible word is generated, with empty alt text, so its accessible name stays the
   hidden "Edit details for <name>". */
/* .edit-details-action: the text button's own class (an attribute list of class, id and type is pinned). */
.edit-details-action::before {
  /* The plain declaration first: a browser without the alt-text syntax drops the second and keeps this one. */
  content: 'Edit details';
  content: 'Edit details' / '';
}

#daycheckin-edit-save {
  color: var(--cos-white);
  background: var(--cos-black);
  border-color: var(--cos-black);
}

/* The form's own heading repeats the pane title ("Edit details for <name>"); it stays as the form's label. */
#daycheckin-edit-heading,
#daycheckin-print-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#daycheckin-close-btn {
  display: none;
}

@media (max-width: 599px) {
  #daycheckin-close-btn {
    /* block, as main draws it: inline-flex top-aligned the label (review A M1). */
    display: block;
  }
}

/* CA-897 PR4: the mock draws no match count. The count and the in-progress line are clipped but still announced
   (role=status is kept); a message (no match, type more, a failure) is drawn. */
#daycheckin-search-status[data-state='count'],
#daycheckin-search-status[data-state='progress'] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------------
   CA-938: Event day dashboard and header (owner, 19/10/2026: "the event day is supposed to be a sort of dashboard" and
   "The layout should be responsive for all screen sizes. Not just at certain screen sizes."). No new breakpoint: every
   track below is fluid, and the header wraps by its content, never at a fixed width.
   --------------------------------------------------------------------------- */

/* The attendee list, search and person pane live in Attendees ("attendees should be for everything else"). The section
   stays in the page until the walk-up moves to Attendees (CA-938 PR2, coordinator 19/10/2026), but is not shown here. */
[data-view='day'] #daycheckin-section,
[data-view='day'] #daycheckin-section:not([hidden]) {
  display: none;
}

/* Unboxed on white, like the figures (CA-891 PR3): the generic view-section card does not apply. */
#dayboard-section,
#dayboard-speakers {
  margin-top: var(--space-24);
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* The same small accent label as By station and Arrivals (#attendance-section h3), as the approved mock draws it. */
#dayboard-days-heading,
#dayboard-speakers-heading {
  margin: var(--space-32) 0 var(--space-8);
  font-family: var(--font-accent);
  font-size: var(--size-small);
  font-weight: 500;
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
}

#dayboard-speakers-heading {
  margin-top: 0;
}

#dayboard-days-table,
#dayboard-speakers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-data);
}

#dayboard-days-table th,
#dayboard-days-table td,
#dayboard-speakers-table th,
#dayboard-speakers-table td {
  padding: 10px var(--space-12) 10px 0;
  text-align: left;
  font-weight: 400;
  vertical-align: top;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--border-hairline);
}

#dayboard-days-table thead th,
#dayboard-speakers-table thead th {
  color: var(--text-muted);
  font-size: var(--size-col-head);
  font-weight: 600;
}

/* The count and the time are numbers: right aligned, tabular, never wrapped. */
#dayboard-days-table th:last-child,
#dayboard-days-table td:last-child,
#dayboard-speakers-table th:last-child,
#dayboard-speakers-table td:last-child {
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#dayboard-speakers-note:empty {
  display: none;
}

#dayboard-speakers-empty {
  margin: var(--space-8) 0 0;
}

#dayboard-attendees-pointer {
  margin-top: var(--space-12);
}

@media (min-width: 900px) {
  #dayboard-section {
    grid-area: board;
  }

  #dayboard-speakers {
    grid-area: speakers;
    /* Level with the figures, as the drawn dashboard: the second column starts at the top of its row. */
    margin-top: 0;
  }
}

/* The header inside an event. One row: the event bar, then who is signed in (the page title is clipped inside an event,
   CA-1005, so it takes no room). The bar takes what is left (a zero basis), so the row does not wrap; inside it nothing
   wraps either: the name comes first and does not shrink until it is whole (up to 60%, CA-1139), and the date and city take
   the ellipsis. Below 1200px the words "Signed in as" are clipped (the name and Sign out stay). The phone header (799px and
   below from CA-1018, CA-897 G7) is its own grid and overrides these. Only the stylesheet's existing width bounds are used (brandAssets.computed.test.ts). */
#page-header:has(#event-bar:not([hidden])) > #event-bar {
  flex: 1 1 0;
  flex-wrap: nowrap;
  /* Review B M4: a floor, so a long signed-in name cannot take the event name's room. */
  min-width: min(18rem, 40%);
}

#page-header:has(#event-bar:not([hidden])) > #sponsor-signed-in-panel {
  flex: 0 0 auto;
}

/* CA-1139 (measured 24/11/2026 at 800px, "Future Lawyer USA Boston" over two days: the name was cut to 216px while the date and city kept
   288px): the event name comes first from 800px up, as it does from 600 to 799px (CA-1018, below). It does not shrink until it is whole, up
   to 60% of the summary, which already leaves out Change event, the gear and the signed-in panel; the date and city take what is left,
   with the ellipsis. This replaces the CA-938 rule that the date shrank four times faster than the name, which still let the name shrink. */
#page-header:has(#event-bar:not([hidden])) #event-bar-name {
  flex: 0 0 auto;
  max-width: 60%;
}

/* The date and city are the shrinkable part of the summary: the name above does not give way, so they go first, with an ellipsis. */
#page-header:has(#event-bar:not([hidden])) #event-bar-meta {
  flex: 0 4 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The words "Signed in as" are a text node of this <p>: a zero font size hides them; the name and Sign out restate it. */
#page-header:has(#event-bar:not([hidden])) #sponsor-signed-in-panel p {
  font-size: 0;
}

#page-header:has(#event-bar:not([hidden])) #sponsor-signed-in-as,
#page-header:has(#event-bar:not([hidden])) #sponsor-signout-btn {
  font-size: var(--size-body);
}

/* Review B M4: inside an event the signed-in name gives way before the event name (14 characters, then an ellipsis). */
#page-header:has(#event-bar:not([hidden])) #sponsor-signed-in-as {
  max-width: 14ch;
}

@media (min-width: 1200px) {
  #page-header:has(#event-bar:not([hidden])) #sponsor-signed-in-panel p {
    font-size: var(--size-body);
  }
}

/* CA-938 PR2: Register walk-up on the Attendees view, unboxed on white like the refreshed views, above Find attendee. */
/* Review A (PR2 finding 1): a blocked Attendees view shows no walk-up, as Event day hid its own. */
[data-view='attendees'][data-blocked='true'] #attendees-walkup-section {
  display: none;
}

#attendees-walkup-section {
  margin: 0 0 var(--space-24);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

/* CA-938 review A M1: the header rules above carry no width bound, so on the phone header (799px and below from CA-1018, CA-897 G7) its own
   values are restated here, after them. CA-1018 M3 (coordinator, 24/11/2026, option 2): from 600 to 799px the event name comes first.
   It does not shrink until it is whole, up to 60% of the row; the date and city take what is left and the ellipsis. Measured with
   "Future Lawyer USA Boston" over two days: the name is whole at 600, 640 and 720px. The phone's own values follow in a 599px block. */
@media (max-width: 799px) {
  #page-header:has(#event-bar:not([hidden])) #event-bar-name {
    flex: 0 0 auto;
    max-width: 60%;
  }

  #page-header:has(#event-bar:not([hidden])) #event-bar-meta {
    flex: 0 1 auto;
    min-width: 0px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #page-header:has(#event-bar:not([hidden])) #sponsor-signout-btn {
    font-size: var(--size-button);
  }
}

/* The phone (CA-897 G7, CA-938): the name has a row of its own and no cap, and the date and city keep their natural width. */
@media (max-width: 599px) {
  #page-header:has(#event-bar:not([hidden])) #event-bar-name {
    flex: 1 0 100%;
    max-width: none;
  }

  #page-header:has(#event-bar:not([hidden])) #event-bar-meta {
    flex: none;
    min-width: auto;
    overflow: visible;
    text-overflow: clip;
  }
}

/* CA-939: Attendees list and attendee panel (owner, 19/10/2026). Scoped to #attendees-*, #attendee-panel*. No new
   breakpoint: 599, 899 and 1200 are the existing set (brandAssets.computed.test.ts pins it). */

/* The name opens the panel. It reads as the name, not as a link, until it is pointed at. */
#attendees-table .attendee-open {
  color: inherit;
  text-decoration: none;
}

#attendees-table .attendee-open:hover {
  text-decoration: underline;
}

/* The row whose panel is open: Surface Active, as the Event day list draws its selected row. */
#attendees-table tr.is-open td {
  background: var(--surface-active);
}

/* Columns by width, never cards. CA-1158: Name (with the job title under it), Organisation, Badge type, Checked in, Days (a
   two-day event) and Action; the Job title and Email columns are gone (the email is in the panel). A hidden column is still in
   the row, and always in the panel. */
/* CA-1158 (owner, 25/11/2026: "Cards, as approved"; 03-ems/checkin/decisions/2026-11-25-03-admin-attendees-cards-on-phones.md): below 900px every
   column is a labelled line of the attendee's card (the CA-1158 cards block at the end of this file), so nothing is hidden by width any more. */

/* The panel: the person box of the 15/10 spec (white, 1px container stroke, radius 12, padding 24; title 20px 600;
   inner rules in the hairline). */
#attendee-panel {
  padding: var(--space-24);
  background: var(--cos-white);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

#attendee-panel-close {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  margin: 0;
}

#attendee-panel-heading {
  margin: 0 5.5rem var(--space-4) 0;
  font-size: 20px;
  font-weight: 600;
}

/* CA-1009 (owner, 13/11/2026): three sections, Contact details first. Each label sits above its value. */
.attendee-panel-section {
  padding: var(--space-16) 0 0;
  margin: var(--space-16) 0 0;
  border-top: 1px solid var(--border-hairline);
}

.attendee-panel-section h4 {
  margin: 0 0 var(--space-12);
  font-size: var(--size-body);
  font-weight: 600;
}

.attendee-panel-section dl {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  font-size: var(--size-data);
}

.attendee-panel-section dt {
  margin: var(--space-8) 0 0;
  font-family: var(--font-accent);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
}

.attendee-panel-section dt:first-child {
  margin-top: 0;
}

.attendee-panel-section dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Owner: "emails and contact details can't wrap." One line, an ellipsis when longer than the panel; pointing at it or
   focusing it (it takes focus, for a keyboard) lets it scroll sideways to show it whole, still on one line. */
.attendee-panel-section dd.attendee-panel-one-line {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.attendee-panel-section dd.attendee-panel-one-line:hover,
.attendee-panel-section dd.attendee-panel-one-line:focus {
  /* Review A: still one line (the owner: "can't wrap"); the whole value is reached by scrolling the line itself. */
  overflow-x: auto;
  text-overflow: clip;
}

/* CA-1009 with CA-1010: the line while the history loads or could not be read, and the activity list, newest first. */
#attendee-panel-checkin-note {
  margin: var(--space-8) 0 0;
  font-size: var(--size-small);
  color: var(--text-muted);
}

#attendee-panel-checkin-note:empty {
  display: none;
}

#attendee-panel-activity-list {
  display: grid;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--size-data);
  overflow-wrap: anywhere;
}

/* CA-1160 (owner, 13/11/2026: "role details"): the Speaking section, as the approved screen's ul.rec.stackd draws it. Each session is a
   two-row grid, the title (bold, 700 by the CA-1196 rule below) over a muted "Day 1, 11:15, Main stage", with a hairline between sessions. */
#attendee-panel-speaking-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--size-data);
  overflow-wrap: anywhere;
}

#attendee-panel-speaking-list li {
  display: grid;
  gap: 2px;
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border-hairline);
}

#attendee-panel-speaking-list li:first-child {
  padding-top: 0;
  border-top-width: 0;
}

#attendee-panel-speaking-list li:last-child {
  padding-bottom: 0;
}

#attendee-panel-speaking-list .muted {
  color: var(--text-muted);
}

/* CA-1196 (CA-1160 QA, 26/11/2026): the approved screen's titles are a plain <strong>, 700; the global strong is 600. */
#attendee-panel-speaking-list strong {
  font-weight: 700;
}

/* The calm line when the sessions cannot be read: the Check-in note's own look, under the heading. */
#attendee-panel-speaking-note {
  margin: 0;
  font-size: var(--size-small);
  color: var(--text-muted);
}

.attendee-panel-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  margin-top: var(--space-12);
}

.attendee-panel-section-actions button {
  margin: 0;
}

/* The Edit details and Reprint panels inside it: sections under a hairline, not boxes inside a box. */
#attendee-panel #attendees-edit-panel:not([hidden]),
#attendee-panel #reprint-panel {
  margin-top: var(--space-16);
  padding: var(--space-16) 0 0;
  background: var(--cos-white);
  border: 0;
  border-top: 1px solid var(--border-hairline);
  border-radius: 0;
}

/* CA-1009 (owner: "take up part of the dashboard space"; not a drawer, not a modal). Below 1200px, or without room beside
   the list, the panel is a block in the page above the list. The scrim is never shown. */
#attendee-panel-dock {
  display: block;
  position: static;
}

#attendee-panel {
  position: static;
  margin: var(--space-16) 0 0;
}

/* From 1200px, with room for the list (attendeePanel.ts marks the section `attendee-panel-cramped` otherwise), the panel
   docks beside the list: the list keeps the left, the dock is a 352px column on the right, and the panel sticks in it as
   the list scrolls. 352px, not CA-939's 420px, so it docks from a window of about
   1320px (CA-1009 acceptance 1). */
@media (min-width: 1200px) {
  #attendees-section {
    position: relative;
  }

  #attendees-section.has-attendee-panel:not(.attendee-panel-cramped) > :not(#attendee-panel-dock):not(#attendee-panel-scrim) {
    margin-right: calc(352px + var(--space-32));
  }

  /* A table at width 100% would grow past its margin, not narrow: it takes the column left beside the panel. */
  #attendees-section.has-attendee-panel:not(.attendee-panel-cramped) > #attendees-table {
    width: calc(100% - 352px - var(--space-32));
  }

  /* With the whole width, a pill keeps its words on one line; beside the panel, or below 1200px, they may wrap. */
  #attendees-section:not(.has-attendee-panel) #attendees-table .attendees-row-actions > * {
    white-space: nowrap;
  }

  #attendees-section.has-attendee-panel:not(.attendee-panel-cramped) > #attendee-panel-dock {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 352px;
  }

  /* No taller than its column either (QA, PR 770: on a two-day event the panel ran past the list's end, and with the page
     scrolled to the bottom its top corners were cut). Its content scrolls inside it. */
  #attendees-section.has-attendee-panel:not(.attendee-panel-cramped) #attendee-panel {
    position: sticky;
    top: var(--space-24);
    margin: 0;
    /* The column ends above the page's own bottom space, so the panel leaves that room too: measured, a panel of
       100vh - 48px still lost its top 16px with the page scrolled to the bottom. */
    max-height: min(calc(100vh - 4 * var(--space-24)), 100%);
    overflow-y: auto;
  }

}

/* Phones: the panel runs the width of the page, flat. */
@media (max-width: 599px) {
  #attendee-panel {
    padding: var(--space-16);
    border: 0;
    border-radius: 0;
  }
}

/* CA-810: "Checked in per day" on the Attendance panel, drawn as the Event day dashboard's own tables are: the same small
   rows, the day on the left, the two figures right aligned and never wrapped. */
#attendance-by-day-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-data);
}

#attendance-by-day-table th,
#attendance-by-day-table td {
  padding: 10px var(--space-12) 10px 0;
  text-align: left;
  font-weight: 400;
  vertical-align: top;
  border-bottom: 1px solid var(--border-hairline);
}

#attendance-by-day-table thead th {
  color: var(--text-muted);
  font-size: var(--size-col-head);
  font-weight: 600;
}

#attendance-by-day-table th:not(:first-child),
#attendance-by-day-table td:not(:first-child) {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#attendance-by-day-table th:last-child,
#attendance-by-day-table td:last-child {
  padding-right: 0;
}

/* CA-957: "Expected by day" beside it, drawn the same way, with the day label kept on one line. */
#attendance-expected-by-day-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-data);
}

#attendance-expected-by-day-table th,
#attendance-expected-by-day-table td {
  padding: 10px var(--space-12) 10px 0;
  text-align: left;
  font-weight: 400;
  vertical-align: top;
  border-bottom: 1px solid var(--border-hairline);
}

#attendance-expected-by-day-table thead th {
  color: var(--text-muted);
  font-size: var(--size-col-head);
  font-weight: 600;
}

#attendance-expected-by-day-table tbody th {
  white-space: nowrap;
}

#attendance-expected-by-day-table th:not(:first-child),
#attendance-expected-by-day-table td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#attendance-expected-by-day-table th:last-child,
#attendance-expected-by-day-table td:last-child {
  padding-right: 0;
}

/* CA-957: Admit anyway, under the status line it answers. The reason field takes the room; the button keeps its own. */
#attendees-override,
#daycheckin-override {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-12);
  margin: var(--space-8) 0;
}

#attendees-override[hidden],
#daycheckin-override[hidden] {
  display: none;
}

#attendees-override input,
#daycheckin-override input {
  flex: 1 1 16rem;
  min-width: 0;
}

/* CA-810: a Days column on the Attendees table, and the Day selector beside the check-in filter. Days sits before Checked in (CA-1158); both
   take only the room they need (the `col-` rules above, CA-1158). */
#attendees-table td[data-label='Day'] {
  white-space: nowrap;
}

#attendees-day-filter {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin: var(--space-16) 0 0;
}

/* ---------------------------------------------------------------------------
   CA-954: the Sessions view. The list is a real table, styled as the events and
   attendees tables are; it scrolls inside its own box, never the page, at a
   narrow width. The link panel below it reuses the step 5 classes
   (.sponsor-booth-link, .sponsor-qr, .setup-actions, .setup-note).
   --------------------------------------------------------------------------- */
.sessions-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8);
  margin: var(--space-16) 0 var(--space-8);
}

.sessions-table-scroll {
  /* QA M1 (21/10/2026): positioned, so the visually hidden "Link" header (absolute) is clipped by this box and does not
     widen the page below 540px. */
  position: relative;
  max-width: 100%;
  overflow-x: auto;
}

/* QA L1: "Get link" stays on one line. */
.sessions-get-link {
  white-space: nowrap;
}

#sessions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-data);
}

#sessions-table th,
#sessions-table td {
  height: var(--row-h);
  padding: var(--space-8) var(--space-12);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-hairline);
  overflow-wrap: break-word;
}

#sessions-table thead th {
  height: auto;
  font-family: var(--font-accent);
  font-size: var(--size-col-head);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
}

#sessions-table tbody th {
  font-weight: 600;
}

#sessions-table tbody tr:hover {
  background: var(--surface-hover);
}

#sessions-picker,
#sessions-result {
  margin-top: var(--space-24);
}

/* CA-951: Add session. Labels above their fields, in one column that fits a phone. */
.sessions-add-row {
  margin-top: var(--space-16);
}

#sessions-add-form {
  margin-top: var(--space-16);
  max-width: 32rem;
}

.sessions-add-fields {
  display: grid;
  gap: var(--space-8);
}

.sessions-add-fields input,
.sessions-add-fields select {
  /* QA Low 2: every field the same width, so the right edges line up. */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#sessions-add-house,
#sessions-bind {
  margin-top: var(--space-16);
}

/* ---------------------------------------------------------------------------
   CA-1006: frosted surfaces (owner, 13/11/2026: the flat, outlined look was "boxy and out of date"; decision
   docs/decisions/2026-11-14-ca1006-admin-frosted-surfaces.md). Values come from the proposal's `<style>` (Rev 4 and Rev 10
   to 12), mapped onto this page's own selectors. This block is last on purpose: it re-skins by selector and adds tokens, and
   changes no layout (no width, height, margin, padding, display or position of anything that already had one). The existing
   tokens keep their values (brandAssets.computed.test.ts pins them); the new ones are the --glass-*, --frost*, --lift* and
   --radius-glass* below.

   What the look is. Panels, the navigation bar, table headings, the company menu, buttons, fields and pills are translucent.
   Panels, the navigation bar, the person's panel, the company menu and the table headings that sit directly on the page blur
   what is behind them (`backdrop-filter`, with the `-webkit-` prefix, which Safari still needs). Buttons, the Sections links,
   fields, pills and the headings inside a panel are translucent with the edge and the lift but do NOT blur: a coordinator
   ruling of 14/11/2026 that narrows the decision, see the record (a blur nested in a blur is inert, and a page of 50 rows
   would carry over a hundred blur layers, unmeasured). A hard outline is replaced by a light top edge (an inset highlight)
   and a soft diffuse lift (box-shadow). Corners are larger. The page sits on a soft monochrome field, a CSS gradient and no
   image, so the blur has something to work on.

   What does not change. Geist with Space Grotesk labels, the monochrome palette, pill actions, the focus ring, every control
   height, and the strokes that CARRY A STATE or divide: the header and navigation hairlines, the current step, a hovered card,
   the error and warning callouts, the black stroke on Change event (the owner's own words on 13/11/2026), the current
   Sections link. Colour is never the only carrier.

   Text contrast. The field's darkest stop is #e5e7ea (its base, #f0f2f5, under the strongest dark layer, 6%). The bound used
   for every surface below stacks both dark layers (6% then 4%) at one point, which never happens: #dee1e4. The muted text
   colour (#56585a) is the binding case: 5.4:1 on that bound, and 5.2:1 or better on every surface below. The decision record has
   the table.

   Nesting. A backdrop blur inside another blurred element does not blur that parent's own contents (measured 13/11/2026,
   proposal line 416). So nothing that is meant to blur sits inside a blurred panel: buttons, fields, pills and the headings of
   a table inside a panel carry a fill and no blur, and the company menu, which does sit inside the Add a sponsor panel, is
   reached by making that one panel carry its frost on a layer behind its content (`::before`) instead of being a blur layer
   itself. */
:root {
  --radius-glass: 20px;
  --radius-glass-field: 12px;

  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --glass-pane: rgba(255, 255, 255, 0.96);
  --glass-menu: rgba(255, 255, 255, 0.94);
  --glass-bar: rgba(238, 240, 243, 0.62);
  --glass-bar-phone: rgba(247, 248, 250, 0.92);
  --glass-head: rgba(214, 218, 224, 0.6);
  --glass-btn: rgba(255, 255, 255, 0.7);
  --glass-field: rgba(255, 255, 255, 0.72);
  --glass-pill: rgba(255, 255, 255, 0.6);
  /* Colours of the shadows and of a button's rest edge. Not named --glass-*: those are the surface fills, and the fallbacks
     below make every one of them solid, which these are not (they are the lines a solid surface keeps). The rest edge is
     3:1 or more against the button's fill and against the panel or the field behind it (the decision record has the numbers). */
  --edge-colour: rgba(255, 255, 255, 0.85);
  --ring-colour: rgba(18, 22, 30, 0.08);
  --btn-edge: #7d7f81;
  --frost: blur(22px) saturate(1.5);
  --frost-sm: blur(12px) saturate(1.4);
  --frost-menu: blur(24px) saturate(1.6);
  --edge: inset 0 1px 0 var(--edge-colour);
  --lift: 0 0 0 1px var(--ring-colour), 0 1px 2px rgba(18, 22, 30, 0.04), 0 14px 36px -14px rgba(18, 22, 30, 0.16);
  --lift-sm: 0 1px 2px rgba(18, 22, 30, 0.06), 0 6px 14px -8px rgba(18, 22, 30, 0.18);
  --lift-menu: 0 0 0 1px var(--ring-colour), 0 18px 44px -12px rgba(18, 22, 30, 0.28);
  --lift-bar: 0 8px 24px -16px rgba(18, 22, 30, 0.18);
  --lift-bar-phone: 0 -8px 28px -12px rgba(18, 22, 30, 0.2);
  --lift-primary: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 16px -6px rgba(0, 0, 0, 0.45);
}

/* The field. The colour is on the root so the canvas carries it and the body stays clear. Fixed, so a surface moves over it as
   the page scrolls (Safari on iOS ignores `fixed` and lets it scroll, which is harmless). */
html {
  background-color: #f0f2f5;
  background-image:
    radial-gradient(700px 520px at 88% -6%, rgba(60, 64, 70, 0.06), transparent 70%),
    radial-gradient(900px 640px at 6% 4%, #fff, transparent 65%),
    radial-gradient(820px 620px at 18% 96%, rgba(60, 64, 70, 0.04), transparent 70%),
    radial-gradient(900px 700px at 96% 88%, #fff, transparent 62%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  background: transparent;
}

/* The navigation bar: frosted, with a light top edge and a soft lift under it. Its hairline stays as the divider it is, and the
   current tab keeps its 3px rule (the state). */
#event-tabs {
  background: var(--glass-bar);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  box-shadow:
    var(--edge),
    var(--lift-bar);
}

/* Panels. Each drew a 1px stroke; the stroke stays in the box model (so nothing moves) and goes transparent, and the edge and
   the lift draw the surface. */
#signin-section,
#add-event-picker,
#setup-event-settings,
#day-exports-section,
#sessions-section,
#setup-panel,
#sponsor-table,
#sponsors-empty,
#health-strip-cells,
#attendee-panel,
.duplicate-group,
.preview-changes,
#reprint-requests-list li,
.stopgap-note,
.chooser-card,
.picker-card,
.picker-row,
.setup-step {
  background: var(--glass);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  border-color: transparent;
  border-radius: var(--radius-glass);
  box-shadow:
    var(--edge),
    var(--lift);
}

/* The panels above that are themselves a control (a link or a button) keep an edge that can be found: the same rest edge as a
   button, 3:1 or more. The others are surfaces, not controls, and keep the soft ring: the archived chooser card is a div, with
   no link in it (shellMain.ts), so it is one of them. Written with the element in front and the exclusion in `:where()` so the
   rule outranks the panel rule above it and stays under the hover and current-step rules, as the plain class selectors did. */
a.chooser-card:where(:not(.chooser-card-archived)),
button.picker-card,
button.setup-step {
  border-color: var(--btn-edge);
}

/* Not linked: its warning stroke and its radius are the state's callout shape, so they stay; the surface is frosted. */
#sponsors-link-notice {
  background: var(--glass);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  box-shadow:
    var(--edge),
    var(--lift);
}

/* A person's panel sits over the list, so it is the most opaque of the surfaces (whatever is behind it can be black). Its
   corners follow how it is shown: a slide-over rounds its left corners only, docked beside the list (1200px up) it rounds all
   four, and the phone's whole-screen sheet rounds none (the 599px block below). */
#attendee-panel {
  background: var(--glass-pane);
  border-radius: var(--radius-glass) 0 0 var(--radius-glass);
}

@media (min-width: 1200px) {
  #attendees-section:not(.attendee-panel-cramped) #attendee-panel {
    border-right-color: transparent;
    border-radius: var(--radius-glass);
  }
}

/* The Add a sponsor panel holds the company menu. The menu has to blur what is behind the panel, so the panel is not a blur
   layer: its glass and frost sit on a layer behind its content. */
#sponsor-add-section {
  position: relative;
  background: transparent;
  border-radius: var(--radius-glass);
  box-shadow:
    var(--edge),
    var(--lift);
}

#sponsor-add-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--glass);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  pointer-events: none;
}

.sponsor-row[data-open='true'] {
  background: var(--glass-strong);
}

/* The company menu: a menu, so it is nearly opaque and lifted. */
#sponsor-company-results {
  background: var(--glass-menu);
  -webkit-backdrop-filter: var(--frost-menu);
  backdrop-filter: var(--frost-menu);
  border-color: transparent;
  border-radius: var(--radius-glass-field);
  box-shadow: var(--lift-menu);
}

/* Table headings: a translucent band in the same muted accent face, on ONE element per heading row (the `thead`), not on each
   cell: a fill and a blur per cell leave a 1px light seam between two cells wherever a column edge falls between pixels
   (QA, 1440px). The `thead` is clipped to the table's top corners. Only the tables that sit directly on the page (events,
   attendees, stations) blur: the heading of a table inside a panel (Sessions, the sponsor table, a duplicate group) is inside
   a blur already, where a second one is inert, so it carries the fill alone. The Sessions table's rows begin with a
   `th scope="row"` (sessionsView.ts), which is a row label and not part of the band, so every selector here is `thead`. A
   duplicate group has no `thead`: its heading row is the only row with `th` cells (main.ts, renderRowDetailTable). */
#events-table thead,
#attendees-table thead,
#sessions-table thead,
#stations-table thead {
  background: var(--glass-head);
  clip-path: inset(0 round var(--radius-glass-field) var(--radius-glass-field) 0 0);
}

#events-table thead,
#attendees-table thead,
#stations-table thead {
  -webkit-backdrop-filter: var(--frost-sm);
  backdrop-filter: var(--frost-sm);
}

.duplicate-group th,
.sponsor-table-head {
  background: var(--glass-head);
}

/* Buttons: the secondary face is a translucent pill with a rest edge (3:1 or more, so the button is found on the field and on a
   panel), a light top edge and a small lift. It does not blur (see the top of this block). Hover and pressed keep the base
   fills (the rules near the top of this file, which outrank this one), so a pressed button still shows its fill and the
   selected Sections link keeps its selected fill. A primary (black) keeps its fill and gets its own lift, each named in the
   lists near the top of this file and so here. */
button,
input[type='file']::file-selector-button,
#sponsors-sections a {
  background: var(--glass-btn);
  border-color: var(--btn-edge);
  box-shadow:
    var(--edge),
    var(--lift-sm);
}

/* The company menu's options are `button[role=option]`: rows in a menu, not buttons. No edge, no lift. */
#sponsor-company-results [role='option'] {
  box-shadow: none;
}

/* The cards that are buttons or links keep the panel look above, not the pill look. */
.setup-step,
.picker-card,
.chooser-card {
  box-shadow:
    var(--edge),
    var(--lift);
}

#sponsor-signin-btn,
#chooser-add-btn,
#preview-btn,
#commit-btn,
#event-form-save-btn,
#attendees-walkup-btn,
#sponsor-load-event-btn,
#sponsor-add-confirm-btn,
#reprint-review-btn,
#reprint-confirm-btn,
#sponsors-add-toggle,
#sponsors-empty-add-btn,
.sponsor-row .sponsor-reveal-btn,
.row-action-primary,
#daycheckin-checkin-btn,
#daycheckin-print-btn:not([data-emphasis='secondary']),
#daycheckin-edit-save,
.sponsor-row .sponsor-danger-confirm-yes {
  box-shadow: var(--lift-primary);
}

/* Fields: a translucent fill under a 1px rest border in the button edge colour (an empty field's edge is what finds it, and the
   page is no longer white: `#888a8c` read 2.87 to 2.98:1 against the page at some scroll positions, QA; `--btn-edge` is 3:1 or
   more). Same weight as the base rule, so the hover, focus and data-from-platform borders, which are heavier, still win as they
   did. No blur. A disabled field keeps the disabled fill, as a disabled select does. */
input:not([type='checkbox']):not([type='radio']):not([type='file']),
select {
  background: var(--glass-field);
  border-color: var(--btn-edge);
  border-radius: var(--radius-glass-field);
}

input:not([type='checkbox']):not([type='radio']):not([type='file']):disabled {
  background: var(--surface-alt);
}

/* Pills: a translucent fill behind the same word and shape. No blur. */
.chooser-archived-tag,
.picker-row-archived,
.sponsor-company-added,
.reprint-request-state,
.tab-count,
.daycheckin-result-state,
#setup-step-required {
  background: var(--glass-pill);
}

/* Two fills that tell one thing from another keep their own (the base rules above are the same weight as the panel and pill
   rules in this block, which come later, so these restate them). */
.reprint-request-state-printed,
.chooser-card-archived {
  background: var(--surface-alt);
}

/* On a phone the navigation bar is fixed to the bottom edge and the page scrolls under it, so it is nearly opaque (what is
   under it can be black), with a light top edge and a lift upward. The person's panel is the whole screen: no lift, no corner. */
@media (max-width: 599px) {
  #event-tabs {
    background: var(--glass-bar-phone);
    box-shadow:
      var(--edge),
      var(--lift-bar-phone);
  }

  #attendee-panel {
    border-radius: 0;
    box-shadow: none;
  }
}

/* Fallbacks. Without backdrop-filter, or when the person asks for less transparency, every surface is solid white. Only tokens
   change, so no selector above is repeated. Motion needs no block of its own: the one transition these surfaces use is the
   existing 120ms fill change, which the `prefers-reduced-motion` rule near the top of this file already reduces to none. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root {
    --glass: #fff;
    --glass-strong: #fff;
    --glass-pane: #fff;
    --glass-menu: #fff;
    --glass-bar: #fff;
    --glass-bar-phone: #fff;
    --glass-head: #fff;
    --glass-btn: #fff;
    --glass-field: #fff;
    --glass-pill: #fff;
    /* A solid white panel on the field needs an edge it does not have when it is frosted: the ring of every lift, which is a
       faint 8% hairline over the frost, becomes a visible one (2.19 to 2.21:1 against the page, measured by QA; the container stroke was 2.04:1 on white). */
    --ring-colour: rgba(18, 22, 30, 0.34);
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root {
    --glass: #fff;
    --glass-strong: #fff;
    --glass-pane: #fff;
    --glass-menu: #fff;
    --glass-bar: #fff;
    --glass-bar-phone: #fff;
    --glass-head: #fff;
    --glass-btn: #fff;
    --glass-field: #fff;
    --glass-pill: #fff;
    /* A solid white panel on the field needs an edge it does not have when it is frosted: the ring of every lift, which is a
       faint 8% hairline over the frost, becomes a visible one (2.19 to 2.21:1 against the page, measured by QA; the container stroke was 2.04:1 on white). */
    --ring-colour: rgba(18, 22, 30, 0.34);
  }
}

/* CA-1011 ---------------------------------------------------------------------------------------------------------------
   The Overview leads with four things (owner, 13/11/2026: "The number of people arrived. Which sponsors have arrived, which
   speakers have arrived, and if the sponsors are having trouble with scanners. Everything else is supplementary
   information."): people arrived as the largest element on the page, a Sponsors card, a Speakers card, then More detail,
   collapsed. Tokens only, and no inline style anywhere (the admin CSP is style-src 'self'). Appended as one block; no
   existing rule is edited. The old Event day grid (CA-938) is left as it was: the board is its one visible item, spanning
   both columns, and the blocks it superseded sit in a hidden wrapper.
   ----------------------------------------------------------------------------------------------------------------------- */
#overview-board {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
  min-width: 0;
  /* 28px from the tab rule to the first block, as every other view starts (the view's own 4px plus this 24px). */
  padding-top: var(--space-24);
}

/* From 900px the Event day grid (CA-938) is still the view's layout. Its status lines and the board each span both columns, one
   under the other, in the rows the health strip and the old columns used to take. */
@media (min-width: 900px) {
  #attendance-section {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  #overview-board {
    grid-column: 1 / -1;
    grid-row: 4 / -1;
  }
}

[data-view='day'][data-blocked='true'] #overview-board {
  display: none;
}

/* The day switch: the secondary pill the page already draws a button as, the shown day with the selected fill and the
   strong edge (as the Sections row of Sponsors and sessions wears them), and aria-pressed for assistive technology. */
#overview-days {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

#overview-days button {
  margin: 0;
}

#overview-days button[aria-pressed='true'] {
  font-weight: 600;
  background: var(--surface-selected);
  border-color: var(--border-strong);
}

@media (max-width: 899px) {
  #overview-days button {
    min-height: var(--control-h-touch);
  }
}

/* People arrived: unboxed on white, and the largest type on the page. */
#overview-arrived {
  min-width: 0;
}

#overview-arrived-heading,
#overview-speakers-notyet-heading,
#overview-more h3 {
  margin: 0 0 var(--space-8);
  font-family: var(--font-accent);
  font-size: var(--size-small);
  font-weight: 500;
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
}

#overview-arrived-line {
  margin: 0;
}

#overview-arrived-number {
  font-size: 72px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

@media (min-width: 900px) {
  #overview-arrived-number {
    font-size: 104px;
  }
}

#overview-arrived-of {
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-muted);
}

#overview-progress {
  max-width: 40rem;
  margin: var(--space-16) 0 0;
}

#overview-progress progress {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 0;
  color: var(--cos-black);
  background: var(--cos-light-gray);
  -webkit-appearance: none;
  appearance: none;
}

#overview-progress progress::-webkit-progress-bar {
  background: var(--cos-light-gray);
}

#overview-progress progress::-webkit-progress-value {
  background: var(--cos-black);
}

#overview-progress progress::-moz-progress-bar {
  background: var(--cos-black);
}

#overview-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 12rem));
  gap: var(--space-16);
  margin: var(--space-16) 0 0;
}

#overview-figures > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  padding-left: var(--space-16);
  border-left: 1px solid var(--border-hairline);
}

#overview-figures dt {
  color: var(--text-muted);
  font-size: var(--size-small);
}

#overview-figures dd {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

#overview-arrived-note {
  margin: var(--space-12) 0 0;
}

/* The two cards: side by side from 900px, stacked below, each fluid. */
#overview-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-24);
  align-items: start;
}

@media (min-width: 900px) {
  #overview-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#overview-sponsors,
#overview-speakers {
  min-width: 0;
  padding: var(--space-24);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
}

@media (max-width: 899px) {
  #overview-sponsors,
  #overview-speakers {
    padding: var(--space-16);
  }
}

#overview-sponsors-heading,
#overview-speakers-heading,
#overview-more-heading {
  margin: 0 0 var(--space-12);
}

#overview-sponsors-lead,
#overview-speakers-lead {
  margin: 0 0 var(--space-12);
}

#overview-sponsors-lead strong,
#overview-speakers-lead strong {
  margin-right: 6px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

#overview-sponsors-status,
#overview-speakers-status {
  margin: 0 0 var(--space-12);
}

#overview-sponsors-status:empty,
#overview-speakers-status:empty {
  display: none;
}

#overview-sponsors-table,
#overview-speakers-arrived table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-data);
}

#overview-sponsors-table th,
#overview-sponsors-table td,
#overview-speakers-arrived th,
#overview-speakers-arrived td {
  padding: 10px var(--space-12) 10px 0;
  text-align: left;
  font-weight: 400;
  vertical-align: top;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--border-hairline);
}

#overview-sponsors-table thead th,
#overview-speakers-arrived thead th {
  color: var(--text-muted);
  font-size: var(--size-col-head);
  font-weight: 600;
}

/* The Sponsors table: only the company name may break anywhere. The other columns keep their words whole (a header wraps at
   a space, a value does not wrap), so a phone never reads "captur / e". */
#overview-sponsors-table th,
#overview-sponsors-table td {
  overflow-wrap: normal;
}

#overview-sponsors-table th:first-child,
#overview-sponsors-table td:first-child {
  overflow-wrap: anywhere;
}

#overview-sponsors-table td:not(:first-child) {
  white-space: nowrap;
}

#overview-sponsors-table th:last-child {
  white-space: normal;
}

#overview-sponsors-table tbody tr:last-child th,
#overview-sponsors-table tbody tr:last-child td {
  border-bottom: 0;
}

/* The count and the time are numbers: right aligned, tabular, never wrapped. */
#overview-sponsors-table th:last-child,
#overview-sponsors-table td:last-child,
#overview-speakers-arrived th:last-child,
#overview-speakers-arrived td:last-child {
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#overview-speakers-notyet {
  margin: 0;
  padding: 0;
  list-style: none;
}

#overview-speakers-notyet li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4) var(--space-16);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border-hairline);
  overflow-wrap: anywhere;
}

#overview-speakers-notyet li:first-child {
  border-top: 0;
}

.overview-person-org {
  color: var(--text-muted);
}

#overview-speakers-arrived {
  margin-top: var(--space-12);
}

/* CA-1137: the not-here list now follows the arrived list, so it needs space above it. */
#overview-speakers-arrived:not([hidden]) + #overview-speakers-notyet-heading {
  margin-top: var(--space-16);
}

#overview-speakers-arrived > summary,
#overview-more details > summary {
  min-height: var(--control-h);
  cursor: pointer;
  font-weight: 600;
}

#overview-speakers-arrived[open] > summary,
#overview-more details[open] > summary {
  margin-bottom: var(--space-12);
}

/* More detail: one hairline between rows; a collapsed row still says in its summary when it has a warning. */
#overview-more {
  min-width: 0;
}

#overview-more details {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border-hairline);
}

.overview-warning {
  margin-left: var(--space-12);
  font-size: var(--size-data);
  font-weight: 400;
  color: var(--feedback-warning);
}

/* The summary already says "Downloads". */
#overview-downloads #day-exports-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The arrivals and desk rows, as #attendance-section drew them (that rule is keyed to the section the lists no longer sit in). */
#overview-more .attendance-row {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(48px, 1fr) 3rem;
  gap: var(--space-12);
  align-items: center;
  min-height: 32px;
  padding: var(--space-4) 0;
  border-bottom: 0;
}

#overview-more .attendance-row-count {
  text-align: right;
}

#overview-more .attendance-row-list {
  margin-bottom: var(--space-12);
}

/* CA-1011 review: on a phone the Sponsors table gives its three facts fixed, narrow columns and the company name the rest,
   so a long name wraps at word boundaries ("International / Law Group") and is not cut inside a word. break-word, not
   anywhere: a single word wider than the column is the only thing that may still break. */
@media (max-width: 599px) {
  #overview-sponsors-table {
    table-layout: fixed;
  }

  #overview-sponsors-table th,
  #overview-sponsors-table td {
    padding-right: var(--space-8);
  }

  #overview-sponsors-table th:first-child,
  #overview-sponsors-table td:first-child {
    overflow-wrap: break-word;
  }

  #overview-sponsors-table th:nth-child(2),
  #overview-sponsors-table td:nth-child(2) {
    width: 4rem;
  }

  #overview-sponsors-table th:nth-child(3),
  #overview-sponsors-table td:nth-child(3) {
    width: 4.5rem;
  }

  #overview-sponsors-table th:nth-child(4),
  #overview-sponsors-table td:nth-child(4) {
    width: 4rem;
  }

  /* The last header wraps at its spaces ("People / signed in"); the number under it never wraps. */
  #overview-sponsors-table thead th:last-child {
    white-space: normal;
  }
}

/* CA-1011 QA: the "(not current)" marker beside a figure is body text, not figure-sized, so it does not wrap on a phone or
   push the figure off its neighbour's line. The number stays the figure. */
#overview-walkups-note {
  font-size: var(--size-body);
  font-weight: 400;
  letter-spacing: var(--tracking-body);
  color: var(--text-muted);
  white-space: nowrap;
}

/* CA-1011 QA: the Downloads panel is a frosted panel (CA-1006) whose padding came from `[data-view] > section`. Inside the
   Downloads row it is no longer a direct child of the view, so it had none. The same padding as a top-level section: 24px, and
   16px at 599px and below. (The other blocks moved into More detail are not panels that lost theirs: the health cells and
   Platform sync pad themselves, and the Overview's own cards set their own.) */
#overview-downloads > #day-exports-section {
  padding: var(--space-24);
}

@media (max-width: 599px) {
  #overview-downloads > #day-exports-section {
    padding: var(--space-16);
  }
}

/* CA-1011: the Overview's Sponsors and Speakers cards are frosted surfaces, drawn as CA-1006 draws its panels (coordinator
   ruling, 14/11/2026): the same tokens and the same declarations, a transparent stroke that keeps the 1px in the box model.
   Both CA-1006 fallbacks arrive through the tokens: without backdrop-filter support or with reduced transparency --glass is
   solid white and --ring-colour (inside --lift) is a visible hairline. Nothing inside a card blurs (a blur nested in a blur is
   inert): the tables, lists and <details> in them are plain, and any control would keep the global 3:1 rest edge. */
#overview-sponsors,
#overview-speakers {
  background: var(--glass);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  border-color: transparent;
  border-radius: var(--radius-glass);
  box-shadow:
    var(--edge),
    var(--lift);
}

/* ---------------------------------------------------------------------------
   CA-1007: the Attendees list's filters in its column headings, a header band that stays put, and the list scrolling in
   its own box (owner, 13/11/2026; workspace decision 03-ems/checkin/decisions/2026-11-13-03-admin-attendee-list-heading-
   filters.md). Tokens only. The frosted tokens (--glass-head, --glass-menu, --frost-sm, --frost-menu, --lift-menu) are
   CA-1006's; each is read with a solid fallback so this block draws the same shapes with or without them. No shadow (the
   identity is flat: brandAssets.test.ts) and no 4px left border (no callout bar: the same file). No new breakpoint:
   599 and 899 are the existing set. Columns stay as CA-939 set them (owner, 19/10/2026: columns by width, never cards).
   --------------------------------------------------------------------------- */

/* The header band is CA-1006's fill and blur on the head row (one element, so no seams between cells); its words are in
   graphite. The rule under it stays the 1px hairline CA-891 pins. */
#attendees-table thead th {
  color: var(--cos-graphite);
}

/* A heading that opens a menu: the column's word, as the heading draws it, with a small caret. Not a pill. */
#attendees-table thead .heading-menu-button,
#attendees-filter-bar .heading-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -4px -6px;
  padding: 4px 6px;
  min-height: 0;
  height: auto;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: left;
  color: inherit;
  /* The heading's words may wrap, as the plain headings do, so a menu never makes its column wider than before
     (QA: nowrap widened the table from 843px to 881px at 900px). */
  white-space: normal;
  background: transparent;
  border: 0;
  border-radius: var(--radius-field);
  cursor: pointer;
}

#attendees-filter-bar .heading-menu-button {
  margin: 0;
  padding: 0 var(--space-12);
  min-height: var(--control-h-touch);
  font-family: var(--font-core);
  font-size: var(--size-label);
  text-transform: none;
  letter-spacing: var(--tracking-body);
  color: var(--text-primary);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-pill);
}

.heading-menu-button::after {
  content: '';
  flex: none;
  width: 8px;
  height: 5px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.heading-menu-button[aria-expanded='true']::after {
  transform: rotate(180deg);
}

/* In a heading cell the caret sits in the cell's own right padding, so a menu adds no width to its column (QA: the carets
   widened the two-day table by 14px, past 390px on a phone). */
#attendees-table thead .heading-menu-button {
  position: relative;
}

/* From 1200px there is room: a heading keeps its words on one line (QA round 2: they wrapped at 1280px). */
@media (min-width: 1200px) {
  #attendees-table thead .heading-menu-button {
    white-space: nowrap;
  }
}

#attendees-table thead .heading-menu-button::after {
  position: absolute;
  top: 50%;
  right: -8px;
  margin-top: -2px;
}

#attendees-table thead .heading-menu-button[aria-expanded='true']::after {
  transform: rotate(180deg);
}

#attendees-table thead .heading-menu-button:hover,
#attendees-table thead .heading-menu-button[aria-expanded='true'] {
  background: var(--surface-hover);
}

/* A filtered column: its word in black on the selected fill, so a filter left on is seen from the list. */
#attendees-table thead .heading-menu-button[data-filtered='true'],
#attendees-filter-bar .heading-menu-button[data-filtered='true'] {
  color: var(--text-primary);
  background: var(--surface-selected);
}

/* While a search is showing the headings cannot filter: they read as plain headings, not as faded controls. */
#attendees-table thead .heading-menu-button:disabled {
  opacity: 1;
  cursor: default;
  background: transparent;
}

#attendees-table thead .heading-menu-button:disabled::after {
  display: none;
}

/* The menus are placed by attendeeHeadingMenu.ts under their button, inside the section. */
#attendees-section {
  position: relative;
}

#attendees-heading-menus {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.heading-menu {
  position: absolute;
  z-index: 30;
  box-sizing: border-box;
  display: grid;
  gap: 2px;
  width: max-content;
  min-width: 15rem;
  max-width: min(22rem, calc(100vw - 2 * var(--page-margin)));
  max-height: min(26rem, 70vh);
  overflow-y: auto;
  padding: var(--space-8);
  font-family: var(--font-core);
  font-size: var(--size-data);
  letter-spacing: var(--tracking-body);
  text-transform: none;
  text-align: left;
  color: var(--text-primary);
  background: var(--glass-menu, var(--cos-white));
  -webkit-backdrop-filter: var(--frost-menu, none);
  backdrop-filter: var(--frost-menu, none);
  border: 1px solid var(--border-container);
  border-radius: var(--radius-container);
}

.heading-menu label,
.heading-menu #attendees-filter label {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  min-height: var(--control-h-sm);
  margin: 0;
  padding: 0 var(--space-8);
  border-radius: var(--radius-field);
  cursor: pointer;
}

.heading-menu label:hover {
  background: var(--surface-hover);
}

.heading-menu label > span {
  overflow-wrap: anywhere;
}

.heading-menu input {
  flex: none;
  margin: 0;
}

/* The check-in choices keep their fieldset and legend; in the menu they are one column, ruled off from Walk-ups only. */
.heading-menu #attendees-filter {
  display: grid;
  gap: 2px;
  margin: 0 0 var(--space-4);
  padding: 0 0 var(--space-4);
  border: 0;
  border-bottom: 1px solid var(--border-hairline);
}

.heading-menu #attendees-filter legend,
.heading-menu #attendees-day-filter label {
  padding: 0 var(--space-8) var(--space-4);
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--text-muted);
}

.heading-menu #attendees-day-filter {
  display: grid;
  gap: var(--space-4);
  margin: 0;
}

.heading-menu #attendees-day-filter label {
  min-height: 0;
  cursor: default;
}

.heading-menu #attendees-day-filter label:hover {
  background: transparent;
}

.heading-menu-note {
  /* CA-1201: the menu is width: max-content, so the note's text must not size it. Inline-size containment gives the
     note an intrinsic width of 0: the selects set the menu width and the note wraps inside it. */
  contain: inline-size;
  margin: var(--space-4) var(--space-8);
  font-size: var(--size-small);
  color: var(--text-muted);
}

/* Clear filter, and Clear all filters: text buttons, as the prototype's links are drawn. */
.heading-menu-clear,
#attendees-clear-filters {
  justify-self: start;
  min-height: var(--control-h-sm);
  margin: var(--space-4) 0 0;
  padding: 0 var(--space-8);
  font-size: var(--size-label);
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  border: 0;
}

/* The line above the table: the hidden columns' menus (below 900px), how many match, and Clear all filters. */
#attendees-result-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-16);
  margin-top: var(--space-16);
}

#attendees-result-count {
  margin: 0;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

#attendees-result-count:empty {
  display: none;
}

#attendees-clear-filters {
  margin: 0;
}

/* The buttons above the list for each column's menu. They show only while the filters match nobody (the table and its headings are
   hidden then). CA-1158: no heading is hidden by width any more (below 900px the headings are the wrapped bar above the cards). */
#attendees-filter-bar {
  display: none;
  flex-wrap: wrap;
  gap: var(--space-8);
}

/* Shown only where one of its buttons is (QA round 2: an empty bar still took a place in the row, indenting the count). */
#attendees-section.attendees-filters-unreachable #attendees-filter-bar {
  display: flex;
}

#attendees-filter-bar > .heading-menu-button {
  display: none;
}

#attendees-section.attendees-filters-unreachable #attendees-filter-bar > .heading-menu-button {
  display: inline-flex;
}

/* The table's box. Hidden with the table. */
#attendees-table-scroll:has(> #attendees-table[hidden]) {
  display: none;
}

@media (min-width: 900px) {
  /* CA-1035 (owner, 16/11/2026): the list no longer scrolls in its own box (CA-1007 acceptance 8). The page scrolls under the pinned
     event bar and tabs, and the head row sticks directly under them, so it is always fully visible: inside a box that the page
     could scroll under the bars, it was hidden from about 300px of page scroll (QA, 16/11/2026). The box stays as the containing
     block for the rows' visually hidden text (position: absolute), which the table's own `overflow: clip` clips. */
  #attendees-table-scroll {
    position: relative;
    margin-top: var(--space-16);
    border-radius: var(--radius-container);
  }

  /* `clip`, not `hidden` (P5, approved 14/11/2026): it clips the rows the same way but is not a scroll container, so the
     header can stick to the page around it. */
  #attendees-table-scroll > #attendees-table {
    margin-top: 0;
    overflow: clip;
  }

  /* The head row sticks, not its cells: CA-1006's fill, blur and rounded clip are on the head row, and its clip-path would
     cut away a cell that stuck on its own (merge delta, 14/11/2026: the header vanished once the list scrolled). A browser
     without a sticky head row lets the header scroll with the rows. CA-1035: it sticks at the bottom edge of the pinned tab row
     (the event bar's height and the tab row's, from the CA-1035 block at the end of this file), below them in the stack (the
     bars are 10 and 9) and above the rows. */
  #attendees-table thead {
    position: sticky;
    top: calc(var(--pinned-header-h) + var(--pinned-tabs-h));
    z-index: 1;
  }
}

@media (max-width: 899px) {
  .heading-menu label,
  .heading-menu #attendees-filter label,
  .heading-menu-clear,
  #attendees-clear-filters,
  #attendees-table thead .heading-menu-button {
    min-height: var(--control-h-touch);
  }
}


/* CA-1019: the Sessions table below 800px. At 390px it kept six columns, none able to shrink below its longest word, so the
   table was 628px wide inside a 324px box and scrolled sideways (measured 14/11/2026; the same before CA-1006). Below 800px,
   the width at which the sponsor table on this tab already stacks (`@media (max-width: 799px)`), each row is one stacked
   block: the session and its Get link on the first line, then Time, Type, Room and Sponsor, each a label and its value.
   Nothing is hidden (the Attendees list drops columns; every Sessions column is something an operator reads). The heading
   row is clipped out of sight, as `.visually-hidden` does, because the labels say what it said. A table turned into blocks
   may lose its table role in some browsers' accessibility trees: the labels are real text, so the content still reads in
   order. 800px and wider are unchanged. Tap targets are not touched. This block sets no fill, blur or corner on a row
   heading (frostedSurfacesCA1006.test.ts (e) reads everything from the CA-1006 marker to the end of the file). */
@media (max-width: 799px) {
  #sessions-table,
  #sessions-table tbody {
    display: block;
  }

  #sessions-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #sessions-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--space-12);
    align-items: start;
    padding: var(--space-12);
    border-bottom: 1px solid var(--border-hairline);
  }

  #sessions-table tbody th,
  #sessions-table tbody td {
    height: auto;
    min-width: 0;
    padding: 0;
    border-bottom: 0;
  }

  /* The session and its Get link: the first line. */
  #sessions-table tbody th {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding: var(--space-8) 0;
  }

  #sessions-table tbody td:nth-child(6) {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  /* Time, Type, Room, Sponsor: the full width, a label then its value. */
  #sessions-table tbody td:nth-child(n + 2):nth-child(-n + 5) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    column-gap: var(--space-8);
    padding: var(--space-4) 0;
  }

  /* No type, or no Get link: no label with nothing after it. The selector repeats the nth-child pair of the rule above plus
     `:empty`, so it outranks that rule's `display: grid` (a bare `td:empty` lost to it: review A, CA-1019). */
  #sessions-table tbody td:nth-child(n + 2):nth-child(-n + 6):empty {
    display: none;
  }

  #sessions-table tbody td:nth-child(n + 2):nth-child(-n + 5)::before {
    font-family: var(--font-accent);
    font-size: var(--size-small);
    font-weight: 500;
    letter-spacing: var(--tracking-accent);
    text-transform: uppercase;
    color: var(--text-muted);
  }

  #sessions-table tbody td:nth-child(2)::before {
    content: 'Time';
  }

  #sessions-table tbody td:nth-child(3)::before {
    content: 'Type';
  }

  #sessions-table tbody td:nth-child(4)::before {
    content: 'Room';
  }

  #sessions-table tbody td:nth-child(5)::before {
    content: 'Sponsor';
  }
}

/* CA-1009: the panel is in the page, never a slide-over, so it rounds all four corners at every width but a phone's (CA-1006
   rounded the left ones only, for the slide-over). */
#attendee-panel {
  border-radius: var(--radius-glass, var(--radius-container));
}

@media (max-width: 599px) {
  #attendee-panel {
    border-radius: 0;
  }
}


/* CA-1045: the Printers panel on the event chooser (printersMain.ts builds it, collapsed). The saved printer list is global, so it
   sits under the event list, not in an event's tabs. Tokens only; the field, label and button faces are the global ones above.
   Below 600px the table reflows into one card per printer, as the events table does, so nothing scrolls the page sideways; from
   600px the table scrolls inside its own wrapper if it must. The form's columns use the stylesheet's existing bounds (900px, 1200px). A long printer name (free text) breaks inside its cell. */
#printers-section {
  margin-top: var(--space-32);
  padding-top: var(--space-16);
  border-top: 1px solid var(--border-hairline);
}

#printers-heading {
  margin: 0;
  font-size: var(--size-body);
}

#printers-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  margin: 0;
}

#printers-toggle::after {
  content: '+';
  font-weight: 400;
}

#printers-toggle[aria-expanded='true']::after {
  content: '\2212';
}

#printers-body {
  margin-top: var(--space-16);
}

.printers-hint {
  margin: var(--space-4) 0 0;
  font-size: var(--size-data);
  color: var(--text-muted);
  overflow-wrap: break-word;
}

#printers-intro {
  margin-top: 0;
}

#printers-status,
#printers-error {
  margin: var(--space-12) 0 0;
  /* scrollIntoView({ block: 'nearest' }) leaves this much clear of the viewport edge, so a message is not flush with it. */
  scroll-margin: var(--space-16);
  overflow-wrap: break-word;
}

#printers-status {
  color: var(--text-muted);
  font-weight: 500;
}

#printers-error {
  color: var(--feedback-error);
  font-weight: 600;
}

/* An empty live region is quiet, not hidden (CA-524): it stays in the accessibility tree, as `#chooser-status:empty` does. */
#printers-status:empty,
#printers-error:empty {
  margin: 0;
  padding: 0;
  min-height: 0;
  border-width: 0;
}

#printers-empty {
  margin: var(--space-16) 0 0;
  overflow-wrap: break-word;
}

#printers-table-wrap {
  margin-top: var(--space-16);
  overflow-x: auto;
}

#printers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--size-data);
}

#printers-table th,
#printers-table td {
  padding: var(--space-8) var(--space-12);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-hairline);
}

/* Only the name is free text, so only it breaks anywhere; an address, a port and a MAC stay whole. */
#printers-table tbody th {
  /* Room for a typical name ("Reg_Desk1") on one line; a longer one wraps, and a very long unbroken one breaks anywhere. */
  min-width: 9rem;
  overflow-wrap: anywhere;
}

#printers-table td {
  white-space: nowrap;
}

/* The actions cell holds the remove confirmation sentence, which must wrap. */
#printers-table td.printers-actions {
  min-width: 12rem;
  white-space: normal;
}

#printers-table thead th {
  font-family: var(--font-accent);
  font-size: var(--size-col-head);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text-muted);
}

#printers-table tbody th {
  font-weight: 500;
}

.printers-none {
  color: var(--text-muted);
}

#printers-table .printers-actions button {
  margin: var(--space-4) var(--space-8) var(--space-4) 0;
}

.printers-confirm {
  margin: 0 0 var(--space-8);
  font-weight: 500;
}

#printers-form {
  margin-top: var(--space-16);
}

/* Kind is the one saved kind and cannot be edited: a flat face with no hover or focus change of border, and no text
   cursor. It is still `readonly` (not `disabled`), so it is read out and can be reached. */
#printers-kind {
  background: var(--surface-alt);
  cursor: default;
  caret-color: transparent;
}

#printers-kind:hover,
#printers-kind:focus {
  border-color: var(--border-control);
}

/* A button with a call out reads as unavailable but keeps focus (printersMain.ts uses aria-disabled, not disabled). */
#printers-section button[aria-disabled='true'] {
  opacity: var(--state-disabled-opacity);
  cursor: not-allowed;
}

#printers-form-heading {
  margin: 0 0 var(--space-12);
  font-size: var(--size-body);
}

.printers-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-16);
}

.printers-fields > .printers-field > label:first-child {
  margin-top: 0;
}

.printers-form-actions {
  margin-top: var(--space-16);
}

/* A tablet (up to 899px; the phone block below undoes what does not belong on a phone). The table must fit its wrapper
   with Edit and Remove in view, down to 601px, so: tighter cells, a name column sized for a typical name, a MAC address that
   may wrap, and no Kind column. Kind only ever says tcp_zpl, so it is visually hidden here, with the clip pattern, and stays
   in the table for a screen reader. 900px and up shows all six columns. Measured at 601 to 899px in a real browser. */
@media (max-width: 899px) {
  #printers-table th,
  #printers-table td {
    padding-right: var(--space-8);
    padding-left: var(--space-8);
  }

  #printers-table tbody th {
    min-width: 6rem;
  }

  #printers-table thead th:nth-child(2),
  #printers-table td:nth-child(2) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #printers-table td:nth-child(5) {
    min-width: 6rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #printers-table td.printers-actions {
    min-width: 6rem;
  }
}

@media (min-width: 900px) {
  .printers-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .printers-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  #printers-table-wrap {
    overflow-x: visible;
  }

  #printers-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #printers-table,
  #printers-table tbody,
  #printers-table tr,
  #printers-table th,
  #printers-table td {
    display: block;
    width: 100%;
  }

  #printers-table tr {
    margin-bottom: var(--space-12);
    padding: var(--space-12);
    border: 1px solid var(--border-container);
    border-radius: var(--radius-container);
  }

  #printers-table th,
  #printers-table td {
    height: auto;
    padding: var(--space-4) 0;
    border-bottom: none;
  }

  #printers-table td {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  /* The Kind cell is hidden on a tablet (above); on a phone it is a labelled row of the card again. */
  #printers-table td:nth-child(2) {
    position: static;
    width: 100%;
    height: auto;
    padding: var(--space-4) 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  #printers-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-accent);
    font-size: var(--size-small);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  #printers-table td.printers-actions::before {
    display: none;
  }
}

/* CA-1045 end: the Printers panel */

/* CA-1035 ---------------------------------------------------------------------------------------------------------------
   The event name bar and the tab row stay at the top of the window while the page scrolls under them (owner, 16/11/2026: "I
   want the event name and nav to be sticky to the top of the page, and then everything to scroll underneath it."). Appended as
   one block; no existing rule is edited. Tokens only, and no inline style (the admin CSP is style-src 'self').

   Method. `position: sticky`, not fixed, so nothing needs a layout offset. #page-header is a child of <body>, and #event-tabs is
   inside <main> > #admin-shell > #event-context, so the two cannot share a wrapper without moving the tab row in index.html
   (shellMain.ts and eleven test files read that structure). Each pins on its own and the tab row sticks at the bar's height:
   `--pinned-header-h`. A sticky element needs no ancestor with overflow other than visible; none of body, main, #admin-shell
   or #event-context sets one.

   Heights. They are DECLARED, because there is no JS measuring them. From 800px the bar is one row (16px padding, the 40px Sign out
   button, 16px, 1px rule = 73px; from 600 to 799px it is the phone header with the 44px menu icon on one row, 77px (CA-1018); the event name is one line with an ellipsis, so a long name does not make it taller, CA-906),
   and its min-height is that value so the tab row's `top` cannot sit above the bar's bottom edge. The tab row is 48px in one row
   (47px tab plus its 1px rule) from 716px up, and wraps to two rows (88px) from 600 to 715px (measured in headless Chromium
   16/11/2026). At 599px and below the bar is a grid of two rows, and its height is not fixed: measured 142.5px, and 164.5px at
   320px wide with a long signed-in name. The phone figure is used only for the scroll padding, which is safe to overstate and
   not to understate.
   ----------------------------------------------------------------------------------------------------------------------- */
:root {
  --pinned-header-h: 73px;
  /* The tab row is one row of 48px from 716px up, so from 900px (the 600 to 899px value is below). */
  --pinned-tabs-h: 48px;
  --z-pinned: 10;
  /* Under the pinned area, the root scrolls an anchor or a focused control clear of it, with a little air (WCAG 2.4.11). The
     phone block of this file already keeps scroll-padding-bottom for the bottom tab bar. */
  scroll-padding-top: calc(var(--pinned-header-h) + var(--pinned-tabs-h) + var(--space-8));
}

/* 600 to 899px: the tab row wraps to two rows below about 716px (88px, measured in headless Chromium 16/11/2026; 48px from 716px
   up). One value serves the whole band (no new breakpoint), so it over-states from 716 to 899px, which is safe for the scroll
   padding and does not touch the tab row's own pinning (that uses the bar's height only). Written as the narrow side of the 899 bound, not inside a (min-width: 900px)
   block: shellStyles.computed.test.ts (CA-704) pins that no 900px rule styles :root, which that file asserts on. */
@media (max-width: 899px) {
  :root {
    --pinned-tabs-h: 88px;
  }
}

/* CA-1018 (PR 861 review A): from 600 to 799px the bar is the phone header with the 44px menu icon on one row (16px + 44px + 16px +
   1px rule = 77px, measured in headless Chromium at 600, 700 and 799px), so the tab row pins at 77px there, not 73px. The 599px
   block that follows still sets the phone's own value. Written as the narrow side of the existing 799 bound: no new breakpoint. */
@media (max-width: 799px) {
  :root {
    --pinned-header-h: 77px;
  }
}

/* CA-1035 */
#page-header {
  position: sticky;
  top: 0;
  z-index: var(--z-pinned);
  /* The frosted blur of the navigation bar, with the near-opaque (92%) fill the phone's bottom bar uses, at every width: content
     scrolls under these two bars, and the 62% navigation fill let a black button under them take the tab labels and the date to
     3.0 to 3.4:1 (QA, 16/11/2026; 4.5:1 needed; the phone fill measured 5.99:1 or better). The token is named for the phone but is
     the near-opaque bar fill. It turns solid white in the `@supports not (backdrop-filter)` and `prefers-reduced-transparency`
     blocks above, so no fallback is repeated here. */
  background: var(--glass-bar-phone);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
}

/* Inside an event the bar keeps one declared height, so the tab row can stick exactly under it. */
#page-header:has(#event-bar:not([hidden])) {
  min-height: var(--pinned-header-h);
}

/* From 600px the tab row pins under the bar, below it in the stack (the bar wins where they would ever overlap). At 599px and
   below it stays fixed to the bottom edge (the first phone block above), restated in the phone block that follows. */
#event-tabs {
  position: sticky;
  top: var(--pinned-header-h);
  /* One below the bar's --z-pinned (10): written out, because the test DOM reads a calc() z-index back unevaluated. */
  z-index: 9;
  /* The same near-opaque fill as the bar: it replaces the navigation bar rule's 62% fill; that rule's blur, edge and lift stay. */
  background: var(--glass-bar-phone);
}

/* The Event day person pane (from 900px) and the Attendees panel (from 1200px) stick below the pinned area, not under it. Each
   keeps its 24px of air and its bottom edge: the height they lose is the pinned area's. The Attendees list's head row sticks
   under the tab row in its own rule (the Attendees block above), not here. */
@media (min-width: 900px) {
  #daycheckin-details {
    top: calc(var(--pinned-header-h) + var(--pinned-tabs-h) + var(--space-24));
    max-height: calc(100vh - var(--pinned-header-h) - var(--pinned-tabs-h) - 2 * var(--space-24));
  }
}

@media (min-width: 1200px) {
  #attendees-section.has-attendee-panel:not(.attendee-panel-cramped) #attendee-panel {
    top: calc(var(--pinned-header-h) + var(--pinned-tabs-h) + var(--space-24));
    max-height: min(calc(100vh - var(--pinned-header-h) - var(--pinned-tabs-h) - 4 * var(--space-24)), 100%);
  }
}

/* A phone: the tab row is the bottom bar, so only the name bar pins. Its height is its content's, not a declared minimum (see the
   note above). 168px is only the scroll padding's allowance, deliberately over-stated: measured in headless Chromium 16/11/2026
   the bar is 142.5px, and 164.5px at 320px wide with a long signed-in name; overstating only adds air under the bar. */
@media (max-width: 599px) {
  :root {
    --pinned-header-h: 168px;
    --pinned-tabs-h: 0px;
  }

  #page-header:has(#event-bar:not([hidden])) {
    min-height: 0;
  }

  #event-tabs {
    position: fixed;
    top: auto;
    z-index: 10;
  }
}

/* CA-1035 (round 2, WCAG 2.4.11): the root's scroll-padding-top clears the pinned bars, not the Attendees head row that sticks under
   them from 900px (measured 16/11/2026: 60px tall below 1200px, 40.5px from 1200px). A control in a list row that Shift Tab scrolls
   into view would land under it, so every element in a row cell keeps a scroll margin the height of the head row (rounded up; the
   selector names no element type because shellStyles and sponsorsStyles guard the 900px block by selector). Below 900px the head
   row does not stick and nothing is needed. */
@media (min-width: 900px) {
  #attendees-table tbody td * {
    scroll-margin-top: 60px;
  }
}

@media (min-width: 1200px) {
  #attendees-table tbody td * {
    scroll-margin-top: 41px;
  }
}

/* CA-1016 ---------------------------------------------------------------------------------------------------------------
   The sign-in screen follows the frosted look (owner, 13/11/2026: "can you revamp the login screen to match the rest of the
   updated design?"; decisions/2026-11-13-03-admin-sign-in-screen.md; the drawing is specs/2026-11-13-admin-proposal, #/signin).
   Appended as one block; no existing rule is edited. Tokens only, and no inline style anywhere (the admin CSP is
   style-src 'self').

   One frosted card on the page field, with no header bar and no navigation. The card is #signin-section, which the shared
   panel rule above already frosts (the glass fill, the frost, the edge and the lift, the 20px glass radius); this block gives it
   the stronger glass fill the drawing uses for a card that carries a form, so text on it is at least 4.5:1, and its size and
   place. --glass-strong turns solid white where backdrop-filter is unsupported and under prefers-reduced-transparency (the two
   fallback blocks above), so the card falls back to a solid white one with no rule repeated here.

   The signed-out screen is told from the rest by the signed-in panel, which is hidden until sponsorMain.ts shows it after a
   sign-in and hidden again when the session ends. No header bar is drawn while it is hidden: the header is clipped, not removed
   (the .visually-hidden pattern, as CA-1005 does inside an event), so the page's h1 is still its main heading for assistive
   technology. Once signed in the bar is drawn as before: it carries Signed in as and Sign out.
   ----------------------------------------------------------------------------------------------------------------------- */
body:has(#sponsor-signed-in-panel[hidden]) #page-header {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#signin-section {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 40px 36px 36px;
  background: var(--glass-strong);
}

/* Centred down the page as well as across it, on a screen wider than a phone (the drawing centres it at 600px and wider). The
   page column is a flex column the height of the window while signed out; every other child of it is hidden, so the card is the
   one item. Top and bottom padding are equal so the centre is the window's. The phone block below puts it back to a plain block,
   so the card stays at the top there. No new width bound: the phone bound is the stylesheet's existing 599px. */
body:has(#sponsor-signed-in-panel[hidden]) main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  padding-top: 64px;
}

.signin-label {
  margin: 0;
  font-family: var(--font-accent);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
}

#signin-section h2 {
  margin: var(--space-8) 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

#signin-section .signin-lead {
  margin: 0 0 var(--space-24);
  color: var(--text-muted);
}

#signin-section label {
  margin: 0 0 6px;
}

#signin-section .signin-field + .signin-field {
  margin-top: var(--space-16);
}

/* The fields and buttons keep the admin's own control sizes (the 40px standard height, 44px from the phone bound down, 15px
   text, 18px side padding): brandAssets.computed.test.ts pins them for every control on the page. The drawing's 46px and 48px
   heights and 16px text are not used for that reason. */
#signin-section input {
  width: 100%;
  max-width: none;
}

/* Show and Hide sits inside the password field's right edge, a target of at least 44px. The field leaves it room. */
.signin-password {
  position: relative;
}

.signin-password input {
  padding-right: 88px;
}

#sponsor-password-toggle {
  position: absolute;
  top: 0;
  right: 4px;
  z-index: 1;
  min-width: var(--control-h-touch);
  margin: 0;
  background: transparent;
  border-color: transparent;
}

/* The wrong-details state: both fields outlined at rest, in the error colour. Written (1,2,1), above the base text-input rule
   `input:not():not():not()` (0,3,1) as CA-1022 notes, and below the hover and focus rules' (0,4,1) as theirs, so those still win. */
#signin-section input[aria-invalid='true'] {
  border-color: var(--feedback-error);
}

/* The message keeps the one face every callout has (the rule above); here it gets a mark in front, so the error colour is not
   the only signal. The line stays mounted when empty (a live region), and the mark is drawn only when it has words. */
#signin-section #sponsor-signin-status {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  margin: var(--space-16) 0 0;
}

/* QA, fix round 1: the two-id rule above beats the shared `:empty { display: none }`, so the empty live region drew as an empty
   bordered box. This is the same rule at a specificity that wins. The element stays mounted (a live region), only the empty box goes. */
#signin-section #sponsor-signin-status:empty {
  display: none;
}

#sponsor-signin-status:not(:empty)::before {
  content: '!';
  display: grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid currentcolor;
  border-radius: 50%;
}

/* One black button the full width of the card. */
#sponsor-signin-btn {
  display: block;
  width: 100%;
  margin: var(--space-24) 0 0;
}

/* Sign-in not switched on: a notice in the card, a warning callout, over the locked fields and button. */
#sponsor-not-configured {
  margin: 0 0 var(--space-24);
  padding: var(--space-12) var(--space-16);
  color: var(--feedback-warning);
  background: var(--surface-alt);
  border: 1px solid var(--feedback-warning);
  border-radius: var(--radius-container);
}

#sponsor-not-configured p {
  margin: 0;
}

/* Locked controls say so. The field's fill and fade are the existing disabled look. */
#signin-section :disabled {
  cursor: not-allowed;
}

/* A phone: the card sits at the top of the screen and fills the width of the page column. The ticket says 480px and below, but
   a new width bound is refused by brandAssets.computed.test.ts (CA-688), so this uses the phone bound the stylesheet already has,
   599px. */
@media (max-width: 599px) {
  body:has(#sponsor-signed-in-panel[hidden]) main {
    display: block;
    min-height: 0;
    padding-top: 0;
  }

  #signin-section {
    max-width: none;
    margin: var(--space-24) 0 0;
    padding: 28px 20px 24px;
  }

  #signin-section h2 {
    font-size: 28px;
  }
}

/* CA-1108 (owner, 21/11/2026) ---------------------------------------------------------------------------------------------
   The walk-up rate limit is an error banner directly above the Register and Cancel buttons (owner, 21/11/2026: "have it above the
   buttons for now. this decision may be reversed in the future": INTERIM placement, at every width, not sticky; the placement is
   decided in walkUpAdminForm.ts and attendeesWalkUpMain.ts `paintBanner`, this block only dresses it). It replaces CA-1103's two
   wait lines; the countdown is on the form's Register button, not here. It is the error callout of .view-blocked in the flat style
   of the refreshed views: full 1px stroke in the error colour and the word "Error" as generated content, so it is never colour
   alone (CA-874 A4). It is a role=alert element, and like the live regions of CA-557 it is never display:none: empty, it stays in
   the tree and is clipped out of sight, so it takes no space and a screen reader announces it once when it gets its words. Tokens
   only.
   ----------------------------------------------------------------------------------------------------------------------- */
#attendees-walkup-banner {
  margin: 0 0 var(--space-16);
  padding: var(--space-16) var(--field-pad-x);
  color: var(--text-primary);
  font-size: var(--size-data);
  font-weight: 400;
  background: var(--cos-white);
  border: 1px solid var(--feedback-error);
  border-radius: var(--radius-container);
  overflow-wrap: break-word;
}

#attendees-walkup-banner:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#attendees-walkup-banner::before {
  margin-right: var(--space-8);
  font-family: var(--font-accent);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--feedback-error);
  content: 'Error';
}

#attendees-walkup-banner:empty::before {
  content: none;
}

/* CA-1158 ----------------------------------------------------------------------------------------------------------------
   The Attendees table to the approved 13/11/2026 design (specs/2026-11-13-admin-proposal; coordinator ruling 25/11/2026).
   Appended as one block, after the rules it adjusts. Tokens only, no inline style anywhere (the admin CSP is style-src 'self').
   ---------------------------------------------------------------------------------------------------------------------- */

/* The name is a button that opens the attendee panel. It is drawn as the name, underlined in the control rule, as the proposal's
   `.name-btn`: the global button face (pill, border, lift) is taken off. Its own focus ring (the global one) stays. */
#attendees-table button.attendee-open {
  display: inline;
  min-height: 0;
  margin: 0;
  padding: var(--space-4) 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  color: var(--text-primary);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-color: var(--border-control);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

#attendees-table button.attendee-open:hover:not(:disabled),
#attendees-table button.attendee-open:active:not(:disabled) {
  background: transparent;
  text-decoration-color: var(--text-primary);
}

/* Below 900px every control in the view is the touch height (attendeesStyles.computed.test.ts pins every button in the section),
   so the name button is too. It stays text: only its box grows, and it is centred in it. */
@media (max-width: 899px) {
  #attendees-table button.attendee-open {
    display: inline-flex;
    align-items: center;
    min-height: var(--control-h-touch);
  }
}

/* The job title under the name: smaller, muted, one line. It is clipped by the stylesheet only: the whole text is in the DOM and
   in the `title`. Muted is --text-muted (#56585a, measured 6.3:1 or better on the lightest surfaces the rows sit on). */
#attendees-table .attendee-job {
  display: block;
  font-size: var(--size-small);
  line-height: 1.3;
  color: var(--text-muted);
}

/* One line, ellipsis. Never wraps, never breaks at "@" or "." (CA-1158 acceptance 2): the block has the cell's width and no more. */
.cell-oneline {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* The ellipsis only works against a limit, and a table cell has no max-width in an auto layout, so the line is its own limit.
   From 1200px it is at most 20rem, so the Name column grows to a long job title and no further (measured in Chrome: with no limit
   the line took the column to 610px). Below 1200px it contributes nothing to the column's width (`width: 0`) and then fills it
   (`min-width: 100%`), so a long title never pushes the table past the screen (measured: a two-day table was 1011px wide at 900px
   with the 20rem limit, and 575px at 500px with a limit of 24rem). */
#attendees-table .attendee-job {
  width: 0;
  min-width: 100%;
}

@media (min-width: 1200px) {
  #attendees-table .attendee-job {
    width: auto;
    min-width: 0;
    max-width: 20rem;
  }
}

/* Checked in: a tick and the time, or "Not yet". The tick is decoration; the words are the visually hidden "Checked in at". */
#attendees-table .state {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  white-space: nowrap;
}

#attendees-table .state.in {
  font-weight: 500;
  color: var(--feedback-success);
}

#attendees-table .state.muted {
  color: var(--text-muted);
}

/* The one action: the secondary pill every other button is (the approved design draws Check in and Reprint alike). Print badge,
   while a badge is owed, keeps the black primary pill (CA-880). */
#attendees-table .attendees-row-actions > button {
  margin: 0;
}

/* The organisation heading above a group of rows ("Acme Ltd · 7 people"). Not a column heading: sentence case, no band. */
#attendees-table tbody tr.group th {
  height: auto;
  padding: var(--space-8) var(--space-16);
  font-family: var(--font-core);
  font-size: var(--size-data);
  font-weight: 600;
  letter-spacing: var(--tracking-body);
  text-transform: none;
  text-align: left;
  color: var(--text-primary);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-hairline);
}

#attendees-table tbody tr.group th .group-count {
  font-weight: 400;
  color: var(--text-muted);
}

#attendees-table tbody tr.group:hover {
  background: transparent;
}

/* The sort arrow after a sorted column's word ("NAME ↑"), from `aria-sort` on the heading cell. Drawn by the stylesheet; the
   heading's text, and its name for a screen reader, are unchanged (aria-sort says it). */
#attendees-table thead th[aria-sort='ascending'] .heading-menu-button > span::after {
  content: ' \2191';
}

#attendees-table thead th[aria-sort='descending'] .heading-menu-button > span::after {
  content: ' \2193';
}

/* Sort choices first in a menu: full-width rows, the chosen one bold with a tick at the end, and a rule under them. */
.heading-menu-sort {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
  min-height: var(--control-h-sm);
  margin: 0;
  padding: 0 var(--space-8);
  font: inherit;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: var(--radius-field);
  box-shadow: none;
  cursor: pointer;
}

.heading-menu-sort:hover:not(:disabled) {
  background: var(--surface-hover);
}

.heading-menu-sort[aria-pressed='true'] {
  font-weight: 600;
}

.heading-menu-sort[aria-pressed='true']::after {
  content: '\2713';
  margin-left: auto;
}

.heading-menu-rule {
  width: 100%;
  margin: var(--space-4) 0;
  border: 0;
  border-top: 1px solid var(--border-hairline);
}

@media (max-width: 899px) {
  .heading-menu-sort {
    min-height: var(--control-h-touch);
  }
}

/* The search: the shortcut sits INSIDE the box, at its right end, and goes while there is text in it (the field keeps its
   side padding, CA-891: the shortcut only ever sits over the placeholder). */
#attendees-section div:has(> #attendees-query) {
  position: relative;
}

#attendees-search-shortcut {
  position: absolute;
  top: 50%;
  right: var(--space-12);
  padding: 0 5px;
  font-size: var(--size-small);
  line-height: 18px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-field); /* tokens only (brandAssets.test.ts); the admin's inline chips (code) use this one */
  transform: translateY(-50%);
}

#attendees-query:not(:placeholder-shown) + #attendees-search-shortcut {
  display: none;
}

/* The pager below the table, right aligned: Previous, Page N of M, Next. */
#attendees-pager {
  justify-content: flex-end;
}

@media (max-width: 599px) {
  #attendees-pager {
    justify-content: space-between;
  }
}

/* CA-1158 with CA-1162: the Day and Checked in cells carry more words now ("Day 1, 2 and 3", "✓ 09:52, Reg_Desk1"). On a phone they wrap
   instead of squeezing the Name column to nothing (measured in Chrome at 390px on a two-day event: the page was 452px wide and Name 62px;
   PR 885 review A: and at 600px, where a two-day table was 604px wide). Below 900px, not only on a phone. */
@media (max-width: 899px) {
  #attendees-table th.col-days,
  #attendees-table th.col-checked,
  #attendees-table td.col-days,
  #attendees-table td.col-checked,
  #attendees-table .state {
    white-space: normal;
  }

  #attendees-table .state {
    flex-wrap: wrap;
    gap: 0 var(--space-4);
  }
}

/* CA-1158, PR 885 review A: the desk in the Checked in cell is free text typed on an iPad and uncapped, and the cell is nowrap at width 1%,
   so a long one squeezed Name and Organisation. The desk part (never the time) is one line, cut with an ellipsis; its whole text is in the DOM
   and in its title. The cap follows the room: 8rem from 900px to 1199px, 12rem from 1200px (5rem beside the docked panel), and 12rem below
   900px, where the list is cards and the desk has the card's width. */
#attendees-table .state-station {
  display: inline-block;
  max-width: 8rem;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (min-width: 1200px) {
  #attendees-table .state-station {
    max-width: 12rem;
  }

  /* Beside the docked panel the list has 850px and no more (attendeePanel.ts MIN_LIST_WIDTH): the desk gets 5rem, or the table runs under the panel. */
  #attendees-section.has-attendee-panel:not(.attendee-panel-cramped) #attendees-table .state-station {
    max-width: 5rem;
  }
}

@media (max-width: 899px) {
  #attendees-table .state-station {
    max-width: 12rem;
  }
}

/* A row's action label never wraps: at 390px "Check in" broke onto two lines inside its 88px, 44px button. The button keeps its touch height. */
#attendees-table .attendees-row-actions > button {
  white-space: nowrap;
}

/* CA-1158 (approved screen's `.search svg` and `.search input`): a magnifier inside the box, 16px, muted, 11px from the left; the field leaves room
   for it (34px) and for the shortcut (52px). */
#attendees-search-icon {
  position: absolute;
  top: 50%;
  left: 11px;
  z-index: 1;
  color: var(--text-muted);
  pointer-events: none;
  transform: translateY(-50%);
}

#attendees-query {
  padding-left: 34px;
  padding-right: 52px;
}

/* CA-1158: cards below 900px (owner, 25/11/2026: "Cards, as approved"; the approved prototype's 900px block, specs/2026-11-13-admin-
   proposal/index.html lines 177 to 189, 223 to 232 and 427 to 430), with the admin's existing 899/900 bound: brandAssets pins the exact set of width
   bounds. The prototype's own rule is a max-width of 900px, inclusive, so at exactly 900px it is cards and the admin is a table: a 1px difference.)
   The table, its body, rows and cells become blocks: the heading row is a wrapped bar above the cards (sorts and filters in the same menus), each
   attendee is a card (the name button with the job title under it, then a labelled line for each column, then the one action), a group heading sits
   between cards, and nothing scrolls sideways. The Action heading is not drawn (the card's button needs none). */
@media (max-width: 899px) {
  #attendees-table,
  #attendees-table tbody,
  #attendees-table thead,
  #attendees-table tbody tr,
  #attendees-table tbody tr > td {
    display: block;
    height: auto;
  }

  #attendees-table tbody tr {
    padding: var(--space-12) var(--space-16);
    border-bottom: 1px solid var(--border-hairline);
  }

  #attendees-table tbody tr:last-child {
    border-bottom: 0;
  }

  #attendees-table tbody tr > td:not([hidden]) {
    padding: 2px 0;
    text-align: left;
    white-space: normal;
    border: 0;
  }

  /* "Organisation: Acme Ltd", "Badge type: Delegate", "Day: Day 1 and 2", "Checked in: ✓ 09:52, Reg_Desk1": the label is drawn, in the muted colour. */
  #attendees-table tbody tr > td:not(.col-name):not(.col-action)[data-label]::before {
    content: attr(data-label) ': ';
    color: var(--text-muted);
  }

  /* The one action sits at the card's right end, as the prototype's `td.act.num` draws it. */
  #attendees-table tbody tr > td.col-action:not([hidden]) {
    padding-top: var(--space-8);
    text-align: right;
  }

  /* The heading row is the wrapped bar above the cards. */
  #attendees-table thead tr {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    /* 28px, not the prototype's 20px: the admin's heading carets are drawn outside the word, so 20px let one heading's caret touch the next. */
    gap: var(--space-4) 28px;
    padding: var(--space-8) var(--space-16);
    border-bottom: 1px solid var(--border-container);
  }

  #attendees-table thead tr > th:not([hidden]) {
    display: block;
    min-width: 0;
    width: auto;
    padding: 0;
    text-align: left;
    white-space: normal;
    border: 0;
  }

  #attendees-table thead tr > th:not([hidden]) {
    flex: none;
  }

  /* A heading is one line in the bar, however many fit a row (with the default `white-space: normal` "Checked in" broke onto two lines and its caret
     overlapped the next heading). */
  #attendees-table thead tr > th .heading-menu-button {
    white-space: nowrap;
  }

  #attendees-table thead tr > th.col-action:not([hidden]) {
    display: none;
  }

  /* A group heading is a band between cards, not a card. */
  #attendees-table tbody tr.group {
    padding: 0;
  }

  #attendees-table tbody tr.group > th {
    display: block;
  }

  #attendees-table tbody tr.attendees-row-note-row {
    padding-top: 0;
  }

  /* The menus open full width under the bar, between the page margins. */
  .heading-menu {
    width: calc(100vw - 2 * var(--page-margin));
    max-width: none;
  }
}

/* CA-1158 (25/11/2026): a person with no booked days on record. Muted, the same token as the job-title line under the name. */
#attendees-table .day-none {
  color: var(--text-muted);
}

/* CA-1158, M2 (final QA of PR 885; coordinator ruling, 25/11/2026): "No days booked" may wrap ("No days / booked"). The Day cell is nowrap (CA-810, above), so
   this one muted phrase made the Day column 129px, and `listWidthNeeded()` (850 plus the Day heading's width, attendeePanel.ts) was more than the 960px of room
   beside the details panel at 1200 to 1920px: on a two-day event the panel never docked. Normal here only; the booked days ("Day 1 and 2") and the headings
   stay one line, so the column is about as wide as "Day 1 and 2". The words are unchanged. */
#attendees-table .day-none {
  white-space: normal;
}

/* CA-1159 ---------------------------------------------------------------------------------------------------------------
   The Overview to the approved 13/11/2026 screen (part 1). Appended as one block; no existing rule is edited, so each override
   below is a rule of the same weight that comes later, or an id that outranks a class. Tokens only, no inline style (the admin CSP
   is style-src 'self'), and no sideways scroll at 1440, 1024, 820 or 390.

   - The heading row: "Overview" drawn (CA-891 had clipped it out of sight), an empty slot beside it for the Production switch
     (CA-1152), and on the right the day switch as a segmented control and Find an attendee.
   - People arrived is a frosted card with its figures at the right and "Updated HH:MM" under; the figures list takes another figure
     without a CSS change.
   - The Sponsors and Speakers cards open with a card head row.
   ----------------------------------------------------------------------------------------------------------------------- */

/* The heading row. It is the Overview's grid item (area vh) from 900px; below that it is the first block. It carries the 24px the
   board used to have above its first block, so the tab rule to the heading is as it was drawn above the first card. */
#overview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12) var(--space-24);
  min-width: 0;
  padding-top: var(--space-24);
  margin-bottom: var(--space-24);
}

#overview-head > * {
  min-width: 0;
}

@media (min-width: 900px) {
  #overview-head {
    grid-area: vh;
  }
}

#overview-head-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-12) var(--space-16);
}

/* The page heading, drawn: the one 28px heading of the approved screen. It keeps its id, its tabindex and its place in the
   document (the shell moves focus to it), and only stops being clipped. */
#overview-head #view-heading-day {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

#overview-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-12);
  min-width: 0;
}

[data-view='day'][data-blocked='true'] #overview-head-actions {
  display: none;
}

/* The day switch, segmented: a grey frosted capsule, the unchosen days as plain words and the chosen day a white pill with its
   rest edge and a bold word, aria-pressed as before. Wraps rather than scrolls, so a long event cannot push the page sideways. */
#overview-days {
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--glass-head);
  /* CA-1159 final QA F4 (coordinator, 26/11/2026): half the ONE-LINE height (button plus 3px padding each side), not the pill: one line
     still reads as a pill, and a switch that wraps (three days at 390px) is a rounded rectangle, not a blob. */
  border-radius: calc(var(--control-h-sm) / 2 + 3px);
  box-shadow: 0 0 0 1px var(--ring-colour);
}

#overview-days[hidden] {
  display: none;
}

#overview-days button {
  height: var(--control-h-sm);
  min-height: var(--control-h-sm);
  padding: 0 var(--space-16);
  font-size: var(--size-data);
  white-space: nowrap;
  color: var(--text-muted);
  background: transparent;
  border-color: transparent;
  border-radius: var(--radius-pill);
  box-shadow: none;
}

#overview-days button:hover:not(:disabled) {
  color: var(--text-primary);
  background: var(--glass-btn);
  border-color: transparent;
}

#overview-days button[aria-pressed='true'] {
  color: var(--text-primary);
  font-weight: 600;
  background: var(--cos-white);
  border-color: var(--btn-edge);
  box-shadow: var(--lift-sm);
}

@media (max-width: 899px) {
  #overview-days {
    border-radius: calc(var(--control-h-touch) / 2 + 3px);
  }

  #overview-days button {
    min-height: var(--control-h-touch);
  }
}

/* Find an attendee: the field and its button beside the day switch. It fills the row when the row wraps (a phone). */
#overview-find {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  min-width: 0;
}

#overview-find-query {
  width: 16rem;
  max-width: 100%;
}

#overview-find button {
  margin: 0;
  flex: none;
}

@media (max-width: 899px) {
  #overview-head-actions {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  #overview-find {
    flex: 1 1 100%;
  }

  #overview-find-query {
    flex: 1 1 auto;
    width: auto;
  }
}

@media (max-width: 599px) {
  #overview-head #view-heading-day {
    font-size: 24px;
  }
}

/* The heading row now carries the space above the first block. */
#overview-board {
  padding-top: 0;
}

/* People arrived: a frosted card, as the Sponsors and Speakers cards are (CA-1011), with the same fallbacks through the tokens. */
#overview-arrived {
  padding: var(--space-24);
  background: var(--glass);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  border: 1px solid transparent;
  border-radius: var(--radius-glass);
  box-shadow:
    var(--edge),
    var(--lift);
}

#overview-arrived[hidden] {
  display: none;
}

@media (max-width: 899px) {
  #overview-arrived {
    padding: var(--space-16);
  }
}

/* The hero: the figure and its bar at the left, the figures list at the right, level with the bar. */
#overview-arrived-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-24) var(--space-32);
  align-items: end;
}

@media (min-width: 900px) {
  #overview-arrived-hero {
    grid-template-columns: minmax(280px, 1.3fr) 2fr;
  }
}

#overview-arrived-main {
  min-width: 0;
}

#overview-progress {
  max-width: none;
}

/* The figures: one column per <div>, however many there are, each a label over its number. */
#overview-figures {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 0;
}

#overview-figures > div {
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-4);
}

/* The Sponsors table's and the arrived speakers table's headings as the approved screen draws them (measured in Chrome from the prototype, 25/11/2026): the headings are the
   accent face at the column-head size, weight 500, uppercase, muted; the sponsor name is bold (700, the prototype's strong). */
#overview-sponsors-table thead th,
#overview-speakers-arrived thead th {
  font-family: var(--font-accent);
  font-size: var(--size-col-head);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--text-muted);
}

#overview-sponsors-table tbody th {
  font-weight: 700;
}

/* A figure that is not to be drawn (Last 15 minutes, off its day or from an older API) takes no column and leaves no gap. The global
   `[hidden] { display: none !important }` already hides it; this names the figure so it stays hidden if that rule is ever narrowed. */
#overview-figures > div[hidden] {
  display: none;
}

#overview-figures dt {
  font-family: var(--font-accent);
  font-size: var(--size-small);
  font-weight: 500;
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
}

/* The figures at the drawn size: the approved prototype's `.figs dd` is 32px, weight 600, -0.03em, line-height 1.2 (measured in
   Chrome from the prototype, 25/11/2026). No type token is 32px (the sizes are 13, 14 and 15; --space-32 is a spacing token), so the
   value is written as the rule above it was, 28px, before. */
#overview-figures dd {
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* A phone and a tablet: the figures are rows, the label at the left and the number at the right. */
@media (max-width: 899px) {
  #overview-figures {
    grid-auto-flow: row;
    gap: var(--space-8);
  }

  #overview-figures > div {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding-top: var(--space-8);
    padding-left: 0;
    border-top: 1px solid var(--border-hairline);
    border-left: 0;
  }
}

#overview-updated {
  margin: var(--space-16) 0 0;
  font-size: var(--size-data);
}

#overview-updated[hidden] {
  display: none;
}

/* The card head: the card's heading at the left, one thing at the right (a link on Speakers; the Sponsors slot is empty). */
.overview-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8) var(--space-12);
  margin: 0 0 var(--space-12);
}

.overview-card-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

/* Speakers: the not-here list's names strong, the organisation muted at the right (the approved row). */
#overview-speakers-notyet li strong {
  font-weight: 600;
}

/* The Sponsors table is two columns now, Sponsor and Lead scanner. The scanner line is words, not a number: left aligned and free
   to wrap at its spaces, where the old last column (a count) was right aligned and never wrapped. */
#overview-sponsors-table th:last-child,
#overview-sponsors-table td:last-child {
  text-align: left;
  white-space: normal;
  overflow-wrap: break-word;
  font-variant-numeric: normal;
}

/* On a phone the scanner column is a fixed 9rem (room for "Passcode not set" and "Nobody signed in" on one line, wrapping at a space
   if it must) and the company name takes the rest, as the narrow fact columns gave it (CA-1011 review). */
@media (max-width: 599px) {
  #overview-sponsors-table th:nth-child(2),
  #overview-sponsors-table td:nth-child(2) {
    width: 9rem;
  }
}

/* CA-1155 ---------------------------------------------------------------------------------------------------------------
   The Overview's Event / Production switch and the Production view (slice c of CA-1152, read only). The prototype is
   03-ems/checkin/specs/2026-11-24-production-view/index.html; its look is the target and its own copies of the tokens are not
   used: every colour, radius, surface and shadow below is a token this stylesheet already has. Appended as one block; no
   existing rule is edited. The admin CSP is style-src 'self', so nothing is positioned or sized from script: classes and
   attributes only.

   Layout: the running order beside the session from 900px, one column below with the session first. The design review asked for
   the break at 1000px; this stylesheet may only use the bounds brandAssets.computed.test.ts pins (599, 799, 899, 900, 1200), so
   the break is the existing 900px one (coordinator ruling Q21). Written without CSS `order` (shellStyles.test.ts forbids it, WCAG
   2.4.3): the session is first in the markup, so one column needs no reordering, and grid areas put the running order on the
   left only in two columns.
   ----------------------------------------------------------------------------------------------------------------------- */

/* The switch: the secondary pill the page already draws a button as, the shown mode with the selected fill and the strong edge
   (as the day switch below it wears them), and aria-pressed for assistive technology. The weight does not change: every button
   on the page is weight 500 (brandAssets.computed.test.ts). */
#overview-mode {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
}

#overview-mode button {
  margin: 0;
}

#overview-mode button[aria-pressed='true'] {
  background: var(--surface-selected);
  border-color: var(--border-strong);
}

/* Production mode: the Event blocks are not drawn (they stay in the page, and their modules still run). The switch, the day
   switch and the Production view are marked overview-mode-keep and stay. */
#overview-board[data-mode='production'] > :not(.overview-mode-keep) {
  display: none;
}

#production-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  min-width: 0;
}

#production-status {
  margin: 0;
}

#production-body {
  display: grid;
  gap: var(--space-24);
  min-width: 0;
}

/* The three surfaces: the page's frosted panel (the same fill, frost, edge and lift as the other panels). */
#production-drift,
#production-order,
#production-session {
  min-width: 0;
  background: var(--glass);
  -webkit-backdrop-filter: var(--frost);
  backdrop-filter: var(--frost);
  border-radius: var(--radius-glass);
  box-shadow:
    var(--edge),
    var(--lift);
}

/* How the day is running. */
#production-drift {
  padding: var(--space-16) 20px;
}

#production-drift-say {
  display: grid;
  gap: 2px;
}

#production-drift-headline {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

#production-drift-say[data-tone='behind'] #production-drift-headline {
  color: var(--feedback-warning);
}

#production-drift-say[data-tone='ahead'] #production-drift-headline,
#production-drift-say[data-tone='ontime'] #production-drift-headline {
  color: var(--feedback-success);
}

#production-drift-detail {
  margin: 0;
  font-size: var(--size-data);
  color: var(--text-muted);
}

/* The board: one column in markup order, the session first. Nothing is reordered. */
#production-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-24);
  align-items: start;
  min-width: 0;
}

/* From 900px (an iPad in landscape) the running order sits beside the session, on the left. Grid areas, not CSS order: this is
   the one place the picture and the markup differ. */
@media (min-width: 900px) {
  #production-board {
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    grid-template-areas: 'order session';
  }

  #production-order {
    grid-area: order;
  }

  #production-session {
    grid-area: session;
  }
}

/* The running order. */
#production-order {
  padding: var(--space-8);
}

#production-order-heading {
  margin: 0;
  padding: var(--space-12) var(--space-16) var(--space-8);
  font-size: 17px;
  font-weight: 600;
}

#production-order-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* A row is a button: the time, the title with its speakers, and the status. Two columns, with the status under the title, while
   the list is narrow (a phone, or beside the session); three from 1200px. */
#production-order-list button {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  margin: 0;
  padding: 12px 14px 12px 11px;
  font-weight: 400;
  text-align: left;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: var(--radius-glass-field);
  box-shadow: none;
}

#production-order-list .production-status {
  grid-column: 2;
}

#production-order-list button:not([aria-current='true']):hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: transparent;
}

/* The open row: a fill and a heavy left edge, so it is found without colour. */
#production-order-list button[aria-current='true'] {
  background: var(--glass-strong);
  border-left-color: var(--cos-black);
  box-shadow:
    var(--edge),
    var(--lift-sm);
}

.production-time {
  font-size: var(--size-body);
  font-weight: 600;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.production-time .production-struck,
.production-time .production-projected {
  display: block;
  font-size: var(--size-small);
  font-weight: 400;
}

.production-struck {
  color: var(--text-muted);
  text-decoration-thickness: 1px;
}

.production-projected {
  color: var(--feedback-warning);
}

.production-name {
  min-width: 0;
  line-height: 1.3;
}

.production-name b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.production-name small {
  display: block;
  overflow-wrap: anywhere;
  font-size: var(--size-small);
  color: var(--text-muted);
}

.production-row-done .production-name b {
  color: var(--text-muted);
}

.production-row-break .production-name b {
  font-weight: 400;
}

.production-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
  font-size: var(--size-small);
  white-space: nowrap;
}

.production-status[data-tone='live'] {
  font-weight: 600;
}

.production-status[data-tone='over'] {
  font-weight: 600;
  color: var(--feedback-warning);
}

.production-status[data-tone='late'],
.production-status[data-tone='miss'] {
  color: var(--feedback-warning);
}

.production-status[data-tone='ok'] {
  color: var(--feedback-success);
}

.production-status[data-tone='muted'],
.production-status[data-tone='unknown'] {
  color: var(--text-muted);
}

.production-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* The open session. */
#production-session {
  display: grid;
  gap: var(--space-16);
  padding: 20px;
}

/* Over time: a warm wash and a warning ring. Solid, so the reduced transparency fallback needs no rule of its own. */
#production-session[data-status='over'] {
  background: #fff6e0;
  box-shadow:
    var(--edge),
    0 0 0 1px rgba(107, 74, 0, 0.32),
    0 14px 36px -14px rgba(18, 22, 30, 0.16);
}

#production-session-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-16);
  align-items: flex-start;
  justify-content: space-between;
}

#production-session-heading {
  max-width: 28ch;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

#production-session-when {
  margin: var(--space-4) 0 0;
  font-size: var(--size-data);
  color: var(--text-muted);
}

.production-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 10px;
  font-size: var(--size-small);
  white-space: nowrap;
  background: var(--glass-pill);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-pill);
}

.production-pill-live {
  color: var(--feedback-success);
  border-color: var(--feedback-success);
}

.production-pill-warn {
  color: var(--feedback-warning);
  border-color: var(--feedback-warning);
}

/* The four times: two by two in one column, four across beside the running order. */
#production-session-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12) 0;
  margin: 0;
}

#production-session-times > div {
  min-width: 0;
  padding: 2px var(--space-16);
  border-left: 1px solid var(--border-hairline);
}

#production-session-times > div:first-child,
#production-session-times > div:nth-child(3) {
  padding-left: 0;
  border-left: 0;
}

#production-session-times dt {
  font-size: var(--size-small);
  color: var(--text-muted);
}

#production-session-times dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.production-tag {
  margin-left: var(--space-4);
  font-size: var(--size-small);
  font-weight: 400;
}

.production-tag[data-tone='late'] {
  color: var(--feedback-warning);
}

.production-tag[data-tone='ok'] {
  color: var(--feedback-success);
}

/* Beside the running order the session has room for all four times in a row, and a little more padding. Written after the base
   rules above, which it overrides at the same weight. */
@media (min-width: 900px) {
  #production-session {
    padding: 22px;
  }

  #production-session-times {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  #production-session-times > div:nth-child(3) {
    padding-left: var(--space-16);
    border-left: 1px solid var(--border-hairline);
  }
}

/* The speakers: checked in first, then not here yet, then whoever the check-in list says nothing about. */
#production-session-speakers {
  min-width: 0;
}

#production-session-speakers h4 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-12);
  align-items: baseline;
  margin: 0 0 var(--space-8);
  font-size: 17px;
  font-weight: 600;
}

#production-session-speakers h4 span {
  font-size: var(--size-data);
  font-weight: 400;
  color: var(--text-muted);
}

#production-session-speakers ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.production-speaker {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: var(--space-12);
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--border-hairline);
}

.production-speaker:first-child {
  border-top: 0;
}

/* In neither list: no icon and no status, so the name takes the row. */
.production-speaker[data-status='unmatched'],
.production-speaker[data-status='unknown'] {
  grid-template-columns: minmax(0, 1fr);
}

.production-speaker-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: 1.3;
}

.production-speaker-name small {
  display: block;
  font-size: var(--size-small);
  font-weight: 400;
  color: var(--text-muted);
}

.production-speaker-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.production-speaker[data-status='checked_in'] .production-speaker-icon {
  color: var(--cos-white);
  background: var(--feedback-success);
}

.production-speaker[data-status='not_checked_in'] .production-speaker-icon {
  color: var(--feedback-warning);
  border: 1.5px solid var(--feedback-warning);
}

.production-speaker-state {
  font-size: var(--size-data);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.production-speaker[data-status='checked_in'] .production-speaker-state {
  color: var(--feedback-success);
}

.production-speaker[data-status='not_checked_in'] .production-speaker-state {
  font-weight: 500;
  color: var(--feedback-warning);
}

.production-split {
  display: block;
  padding: 14px 0 var(--space-4);
  font-family: var(--font-accent);
  font-size: var(--size-small);
  font-weight: 500;
  letter-spacing: var(--tracking-accent);
  text-transform: uppercase;
  color: var(--cos-graphite);
  border-top: 1px solid var(--border-hairline);
}

.production-empty {
  margin: 0;
  padding: 12px 0;
  font-size: var(--size-data);
  color: var(--text-muted);
}

.production-note {
  margin: 0;
  padding: 12px 14px;
  font-size: var(--size-data);
  color: var(--feedback-warning);
  background: #fff6e0;
  border-radius: var(--radius-glass-field);
  box-shadow: 0 0 0 1px rgba(107, 74, 0, 0.28);
}

#production-session-speakers .production-retry {
  margin: 0 0 0 var(--space-4);
}

/* Wide: the list column is 340 to 420px, so the row gets its three columns back, and the surfaces their larger type and padding. */
@media (min-width: 1200px) {
  #production-board {
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  }

  #production-order-list button {
    grid-template-columns: 64px minmax(0, 1fr) auto;
  }

  #production-order-list .production-status {
    grid-column: auto;
  }

  #production-drift {
    padding: var(--space-16) var(--space-24);
  }

  #production-drift-headline {
    font-size: 26px;
  }

  #production-session {
    gap: var(--space-24);
    padding: 28px;
  }

  #production-session-heading {
    font-size: 24px;
  }
}

/* CA-1155, no valid event zone ---------------------------------------------------------------------------------------------
   With no valid zone the device's zone stands in and every Production time names it ("00:57 GMT+9"). That label stays, but a
   zoned time (about 95px; "now 01:37 GMT+9" about 107px) did not fit the 56px and 64px time column, so "00:57" and "GMT+9" split
   over two lines and every row grew. productionView.ts marks #production-view with data-zone-fallback="true" while the model
   says so (and only then); every rule below is scoped under it, so with a valid zone nothing here applies and the layout is
   exactly the one above. The row rules need no media query: they win by specificity over the 1200px rule too, which is wanted,
   because three columns would leave the title about 70px beside a 120px time.

   The title cell stays minmax(0, 1fr): it takes what is left and wraps, so the time never gives way to it and nothing forces a
   sideways scroll at 390 or 820. The status stays under the title at every width, as it is below 1200px. */
#production-view[data-zone-fallback='true'] #production-order-list button {
  grid-template-columns: 120px minmax(0, 1fr);
}

#production-view[data-zone-fallback='true'] #production-order-list .production-status {
  grid-column: 2;
}

/* One line per time. The struck and the projected time are block children of .production-time, so each stays on a line of its own
   as a plain time does; the rule names them as well, because nothing relies on white-space being inherited. */
#production-view[data-zone-fallback='true'] .production-time,
#production-view[data-zone-fallback='true'] .production-time .production-struck,
#production-view[data-zone-fallback='true'] .production-time .production-projected {
  white-space: nowrap;
}

/* The open session. The time is the value's text and the "+10 min" tag follows it: a flex row that wraps puts the tag under the
   time as a whole unit when the cell is narrow, and never between HH:MM and the zone name. */
#production-view[data-zone-fallback='true'] #production-session-times dd {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-4);
  align-items: baseline;
  white-space: nowrap;
}

#production-view[data-zone-fallback='true'] #production-session-times .production-tag {
  margin-left: 0;
  white-space: nowrap;
}

/* The session's four times: beside the running order the cell is about 100px wide at 900 to 1024px, and a zoned time that cannot
   wrap (measured in headless Chromium, 25/11/2026) ran 10 to 41px past it. Under the attribute they stay two by two until the
   1200px bound the block above already uses, where the cells are wide enough for four across. */
#production-view[data-zone-fallback='true'] #production-session-times {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12) 0;
}

#production-view[data-zone-fallback='true'] #production-session-times > div:nth-child(3) {
  padding-left: 0;
  border-left: 0;
}

@media (min-width: 1200px) {
  #production-view[data-zone-fallback='true'] #production-session-times {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  #production-view[data-zone-fallback='true'] #production-session-times > div:nth-child(3) {
    padding-left: var(--space-16);
    border-left: 1px solid var(--border-hairline);
  }
}

/* CA-1156 ---------------------------------------------------------------------------------------------------------------
   Start, End and Undo on the Production view (slice d of CA-1152). Appended after the CA-1155 block; no existing rule is edited.
   The controls are BUILT BY SCRIPT (productionView.ts), each with its own class and its own min-height, so the static-markup
   control rules (brandAssets.computed.test.ts) never see them and no id rule of the session panel can beat them.

   Coordinator ruling Q1, an accessibility floor: Start and End are 56px tall at EVERY width, and Undo is never below 44px. The
   phone block above sets every button to 44px with an element selector; these class selectors are more specific, so 56px holds
   there too. The out-of-order buttons are touch height at every width as well.

   Same rules as the CA-1155 block: no CSS `order`, no inline style (the page CSP is style-src 'self'), tokens only for radius and
   surfaces, and no width bound the stylesheet did not already have (only min-width 900px and 1200px are used in this file's
   production blocks). The focus ring is the page's own :focus-visible ring (--focus-ring-*), never removed here.
   ----------------------------------------------------------------------------------------------------------------------- */

/* The actions area, under the four times: the one big button, and its hints beside or under it. */
#production-acts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  align-items: center;
  min-width: 0;
}

/* Start and End. The prototype's .go: a 56px pill with its glyph. Black like every primary action of the page (weight 500: every
   button on the page is, brandAssets.computed.test.ts; the prototype's 600 is not carried). */
.production-go {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin: 0;
  padding: 0 28px;
  font-size: 17px;
  color: var(--cos-white);
  background: var(--cos-black);
  border-color: var(--cos-black);
  border-radius: var(--radius-pill);
  box-shadow: var(--lift-primary);
}

.production-go:hover:not(:disabled) {
  background: var(--cos-black);
  border-color: var(--cos-black);
  opacity: var(--state-hover-opacity);
}

.production-go:active:not(:disabled) {
  background: var(--cos-black);
  opacity: var(--state-active-opacity);
}

.production-go svg {
  flex: none;
}

/* "Start out of order", its Confirm and its Cancel: the page's secondary pill, at the touch height at every width. */
.production-act {
  min-height: var(--control-h-touch);
  margin: 0;
  border-radius: var(--radius-pill);
}

/* Cancel is the quiet one: no edge, so Confirm is the only button that looks like an action. */
.production-act-quiet {
  background: transparent;
  border-color: transparent;
}

/* A write is out: the button says it is not available without being disabled (a disabled button drops the keyboard's place). */
#production-acts [aria-disabled='true'],
#production-toast [aria-disabled='true'] {
  cursor: not-allowed;
  opacity: var(--state-disabled-opacity);
}

.production-hint {
  margin: 0;
  font-size: var(--size-data);
  color: var(--cos-graphite);
}

/* On a phone the big button takes the whole row, with its hint under it. */
#production-acts .production-go {
  flex: 1 1 100%;
}

/* The toast: the prototype's dark chip (Q23, 25/11/2026), fixed above the page's bottom edge and above the phone's tab bar
   (--bottom-bar-h is declared in the phone block and is 0 elsewhere). The page's focus ring is black (--focus-ring-color) and would not
   show on it, so the controls in the toast take a white ring, solid and 2px, set below and scoped to the toast. Closed, it is kept
   mounted and clipped (the .visually-hidden pattern, as the page's other live regions are), so a screen reader keeps its status
   region. */
#production-toast[data-open='false'] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#production-toast[data-open='true'] {
  position: fixed;
  right: var(--space-16);
  bottom: calc(var(--bottom-bar-h, 0px) + var(--space-16) + env(safe-area-inset-bottom, 0px));
  left: var(--space-16);
  z-index: 20;
  display: flex;
  gap: var(--space-16);
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: var(--space-8) var(--space-8) var(--space-8) 20px;
  color: var(--cos-white);
  background: var(--cos-graphite);
  border-radius: var(--radius-glass);
}

/* A refusal or a failure: the message stays in the light text (the error red is not readable on the dark chip) and the toast has an
   error-coloured edge (a border: the page's shadow lint, shadowLint.testkit.ts, allows only a light ring in a shadow). */
#production-toast[data-open='true'][data-tone='error'] {
  border: 1px solid var(--feedback-error);
}

#production-toast-message {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--size-data);
  color: var(--cos-white);
}

/* Undo: never below 44px, at any width. Drawn for the dark chip as the prototype draws it: light text, a light edge, a clear fill. */
.production-undo {
  flex: none;
  min-width: 72px;
  min-height: var(--control-h-touch);
  margin: 0;
  padding: 0 14px;
  color: var(--cos-white);
  background: transparent;
  border-color: var(--cos-white);
  border-radius: var(--radius-pill);
  box-shadow: none;
}

#production-toast .production-undo:hover:not(:disabled),
#production-toast .production-undo:active:not(:disabled) {
  color: var(--cos-white);
  background: transparent;
  border-color: var(--cos-white);
}

#production-toast .production-undo:hover:not(:disabled) {
  opacity: var(--state-hover-opacity);
}

/* The focus ring in the toast: white, because the page's black ring does not show on the dark chip. Same width, style and offset as the
   page's ring (--focus-ring-*); white on --cos-graphite is well over 3:1 (the decision record has the numbers). */
#production-toast :focus-visible {
  outline: var(--focus-ring-width) solid var(--cos-white);
  outline-offset: var(--focus-ring-offset);
}

/* From 900px the toast is a chip in the middle of the bottom edge instead of the full width. */
@media (min-width: 900px) {
  #production-toast[data-open='true'] {
    right: auto;
    left: 50%;
    width: max-content;
    max-width: min(560px, calc(100vw - 32px));
    transform: translateX(-50%);
    border-radius: var(--radius-pill);
  }

  #production-acts .production-go {
    flex: none;
  }
}

/* CA-1157 ---------------------------------------------------------------------------------------------------------------
   The timer, its progress bar and the two-rail timeline on the Production view (slice e of CA-1152). Appended after the CA-1156
   block; no existing rule is edited, so the prototype's look is added to what is there, never merged into it.

   The page CSP is style-src 'self': no value is computed in script into a style. The bar and the rail are SVG (productionTimerView.ts)
   whose geometry is attributes in percent; everything here is a class or an attribute selector, and every colour is a token. Amber is
   the existing Over time tone (--feedback-warning, the same as the drift sentence's behind), and there is no new colour, shadow or
   radius. Hatching is a pattern as well as a hue, so the overrun and a projected block read without colour.

   The timer's digits are the prototype's size: 72px, 88px from 900px and 128px from 1200px (Q25, coordinator, 25/11/2026).
   overviewMain.test.ts (CA-1011) keeps "people arrived" the largest text in the Event view's markup and, by the same approval, no
   longer reads what is inside #production-view. The width bounds are the ones the page already has (brandAssets.computed.test.ts
   pins them), and the one animation is the prototype's 420ms "flip" when a watched session goes over time, switched off under reduced
   motion (the page's global rule shortens it as well).
   ----------------------------------------------------------------------------------------------------------------------- */

/* The drift card: the sentence, and the rail beside it from 900px, under it below. */
#production-drift {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-16);
  align-items: center;
}

#production-drift-say {
  min-width: 0;
}

@media (min-width: 900px) {
  #production-drift {
    grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
    gap: var(--space-24);
  }
}

/* The rail: a column of two labels beside the graphic. The labels are a fixed 68px so the two rows line up with the labels. */
#production-rail {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  min-width: 0;
}

#production-rail-labels {
  display: grid;
  align-content: start;
  gap: 6px;
  padding-top: 8px;
  font-size: var(--size-small);
  line-height: 16px;
  color: var(--cos-graphite);
}

#production-rail-labels > span {
  white-space: nowrap;
}

#production-rail-track {
  display: block;
  min-width: 0;
}

.production-rail-svg,
.production-bar {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* The scheduled blocks: a light block with a quiet edge, the break lighter still. */
.production-seg {
  stroke-width: 1;
}

.production-seg[data-look='sched'] {
  fill: var(--border-hairline);
  stroke: var(--border-container);
}

.production-seg[data-look='sched'][data-kind='break'] {
  fill: var(--surface-alt);
  stroke: var(--border-hairline);
}

/* What happened: done is a mid grey, the running one is black with a white ring, over time is the amber with the same ring. A block not
   yet started is hatched from the pattern its `fill` attribute names, and takes only the edge here. */
.production-seg[data-look='done'] {
  fill: var(--border-card);
}

.production-seg[data-look='done'][data-kind='break'] {
  fill: var(--border-container);
}

.production-seg[data-look='live'] {
  fill: var(--cos-black);
  stroke: var(--cos-white);
  stroke-width: 2;
}

.production-seg[data-look='over'] {
  fill: var(--feedback-warning);
  stroke: var(--cos-white);
  stroke-width: 2;
}

.production-seg[data-look='proj'] {
  stroke: var(--border-card);
}

.production-rail-svg .production-hatch-ground {
  fill: var(--cos-white);
}

.production-rail-svg .production-hatch-ink {
  fill: var(--border-card);
}

.production-axis-label {
  font-size: var(--size-small);
  fill: var(--cos-graphite);
  white-space: nowrap;
}

/* Every other label is for a wide screen only. A label with a device zone's name under it is a little wider, so those wait for 1200px.
   Written as "shown from" so this block uses only the bounds the earlier Production blocks use. */
.production-axis-label[data-alt='true'] {
  display: none;
}

@media (min-width: 900px) {
  .production-rail-svg[data-zoned='false'] .production-axis-label[data-alt='true'] {
    display: inline;
  }
}

@media (min-width: 1200px) {
  .production-rail-svg[data-zoned='true'] .production-axis-label[data-alt='true'] {
    display: inline;
  }
}

.production-now {
  stroke: var(--cos-black);
  stroke-width: 2;
}

.production-now-dot {
  fill: var(--cos-black);
}

/* The timer: the number, tabular so a ticking digit does not shift its neighbours, and never wrapped. */
#production-clock {
  display: grid;
  gap: var(--space-12);
  min-width: 0;
}

#production-timer-face {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin: 0;
}

#production-timer {
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text-primary);
}

#production-timer-caption {
  font-size: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--cos-graphite);
}

@media (min-width: 900px) {
  #production-timer {
    font-size: 88px;
  }
}

/* Q25 (coordinator, 25/11/2026): the prototype's timer, 72 / 88 / 128px, on the pinned 900 and 1200 bounds. */
@media (min-width: 1200px) {
  #production-timer {
    font-size: 128px;
  }
}

/* Not started: the slot, in a lighter weight, not a lighter ink (a pale number would not clear 4.5:1 on the frosted field). */
#production-clock[data-phase='idle'] #production-timer {
  font-weight: 400;
}

/* Over time: the existing amber, number and caption. */
#production-clock[data-phase='over'] #production-timer,
#production-clock[data-phase='over'] #production-timer-caption {
  color: var(--feedback-warning);
}

/* The progress bar. */
#production-progress {
  min-width: 0;
}

.production-bar-track {
  fill: var(--border-hairline);
}

.production-bar-fill {
  fill: var(--cos-black);
}

.production-bar-end {
  stroke: var(--cos-black);
  stroke-width: 2;
}

.production-bar .production-hatch-ground {
  fill: var(--cos-white);
}

.production-bar .production-hatch-ink {
  fill: var(--feedback-warning);
}

/* The number flips in once, when a session being watched goes over time. */
#production-clock[data-flip='true'] #production-timer {
  animation: production-flip 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes production-flip {
  from {
    opacity: 0.2;
    translate: 0 10px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #production-clock[data-flip='true'] #production-timer {
    animation: none;
  }
}
