/* HSC Admin (John's side). Spec: Specs/Admin spec LOCKED.md (phase 1) and Specs/Admin IA spec LOCKED.md (Increment 2a, 30 Oct 2026).
   Every value is a var(--…) from css/admin-tokens.css. shadcn/ui is the model for anatomy and names only; the CSS is written by hand.
   Class names: parts the member side also has keep its names (.link, .toast, .dgrid, .empty, .alert, .btn); Admin-only parts take the model's names (.sheet, .table, .pagination, .date-bar, .planner, .tag.state, .tabs, .card).
   The only literals are three allow-listed lines (the 1280 page minimum, the 1440 header breakpoint, Julia's three-pool column floors) and the ds-off Demo controls block. */

:root {
  --header-h: calc(var(--space-xs) * 2 + var(--size-control-h-md)); /* the app header: xs + control-h-md + xs (IA spec §1) */
  --quarter: calc(var(--size-control-h-md) / 2); /* one 15-minute track of the planner */
  --sp-bottom: var(--space-5xl); /* replaced by admin.js with the dock's height + md (IA spec §3.6 item 5) */
  --focus: var(--blue);
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: var(--logo-blue); scroll-padding-top: calc(var(--header-h) + var(--thead-h, 0)); scroll-padding-bottom: var(--sp-bottom); }
body { margin: 0; background: var(--white); color: var(--text); font: var(--type-body); -webkit-font-smoothing: antialiased; min-width: 1280px; min-height: 100vh; /* html is the header blue so the overscroll bounce at the top shows blue, never white (Julia 10 Nov, as app.css); the body still covers every short page */ /* ds-allow: page frame minimum width (Design system §5 allow-list) */ }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: var(--type-body); color: inherit; }
[hidden] { display: none !important; }
.vh { position: absolute; width: var(--stroke-divider); height: var(--stroke-divider); margin: calc(-1 * var(--stroke-divider)); padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* One focus rule: a border-strong ring, offset 2xs, --focus per surface (logo-blue; white on the header) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); }
[tabindex="-1"]:focus { outline: none; }

/* ---- Admin header (IA spec §2.1): the mark, the nav list (scrolls sideways if it ever overflows), Updates, the person */
.app-header { position: sticky; top: 0; z-index: var(--z-nav); overflow: clip visible; display: flex; align-items: stretch; height: var(--header-h); background: var(--logo-blue); color: var(--white); padding: 0 var(--space-xl); --focus: var(--blue); } /* Julia, 3 Nov (Figma header r2): 64 high, no vertical padding, full-height tabs */
.admin-mark { flex: none; align-self: center; display: flex; align-items: center; gap: var(--space-md); color: var(--white); text-decoration: none; }
.admin-mark img { display: block; height: var(--size-control-h-md); width: auto; }
.mark-rule { width: var(--stroke-divider); height: var(--size-control-h-md); background: color-mix(in srgb, var(--white) 25%, transparent); }
.mark-word { font: var(--type-mark); text-transform: uppercase; color: var(--white); }
.app-nav { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: thin; margin-inline: var(--space-2xl) var(--space-xl); } /* the links start 32 after the mark; the focus ring is drawn inside the tab, so nothing is clipped */
.nav-list { display: flex; gap: var(--space-2xs); height: 100%; }
.nav-list li { display: flex; }
.nav-list a { position: relative; display: inline-flex; align-items: center; gap: var(--space-xs); height: 100%; padding-inline: var(--space-md); border-radius: 0; font: var(--type-nav); color: var(--white); text-decoration: none; white-space: nowrap; }
#navOrgCount, #navOpsCount { display: flex; align-items: center; } #navOrgCount:empty, #navOpsCount:empty { display: none; } /* the count span is empty at zero: with no box of its own it adds no flex gap after "Organisations" (IA review 3) */
.tag.count { background: color-mix(in srgb, var(--white) 80%, transparent); color: var(--logo-blue); font-variant-numeric: tabular-nums; } /* on a tab that is not current: white 80%; on the current or open tab: solid white */
.nav-list a[aria-current="page"] .tag.count, .updates-btn[aria-expanded="true"] .tag.count { background: var(--white); }
.tag.count.flash { animation: flash-count calc(var(--dur-slow) * 3) ease var(--land-delay, 0ms); } /* highlight at once, hold 2 x dur-slow, ease back over dur-slow (IA spec §3.1, §3.3) */
@keyframes flash-count { 0%, 66.67% { background: var(--highlight); color: var(--ink); } } /* the end state is the tag's own fill */
.updates { flex: none; position: relative; display: flex; margin-inline-start: auto; }
.updates-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); height: 100%; padding: 0 var(--space-md); border-radius: 0; background: none; border: 0; font: var(--type-nav); color: var(--white); cursor: pointer; }
.updates-pop { position: absolute; inset-inline-end: 0; top: calc(100% + var(--space-2xs)); width: var(--size-panel-w); max-height: calc(100vh - var(--header-h) - var(--space-2xs) - var(--sp-bottom)); display: flex; flex-direction: column; padding: var(--space-xs) 0; } /* a .popover, as the role menu: the shared rule draws the fill, 1 px line edge, radius and shadow (UX review A8) */
.updates-pop h2 { flex: none; padding: var(--space-xs) var(--space-md); font: var(--type-body-strong); color: var(--ink); }
.updates-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.updates-list li { border-top: var(--stroke-divider) solid var(--line); }
.upd { display: grid; grid-template-columns: var(--size-dot) minmax(0, 1fr) auto; grid-template-areas: "dot l1 time" "dot l2 l2"; column-gap: var(--space-xs); width: 100%; min-height: var(--size-control-h-md); margin: 0; padding: var(--space-sm) var(--space-md); background: none; border: 0; text-align: start; font: var(--type-body); color: var(--text); }
button.upd { cursor: pointer; }
button.upd:focus-visible { outline: var(--stroke-border-strong) solid var(--focus); outline-offset: calc(-1 * var(--stroke-border-strong)); }
@media (hover: hover) {
  button.upd:hover { background: var(--hover-tint); }
}
.upd .upd-dot { grid-area: dot; align-self: start; margin-block-start: var(--space-xs); }
.upd .upd-l1 { grid-area: l1; font: var(--type-body-strong); color: var(--ink); }
.upd .upd-l2 { grid-area: l2; }
.upd .upd-time { grid-area: time; font: var(--type-body-sm); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; align-self: center; }
.updates-foot { flex: none; border-top: var(--stroke-divider) solid var(--line); padding: calc(var(--space-xs) - var(--stroke-divider)) var(--space-md) 0; } /* 4px grid review 10 Nov: the rule comes off the padding-top */
.updates-empty { padding: var(--space-sm) var(--space-md); font: var(--type-body); color: var(--muted); }
.app-user { flex: none; position: relative; display: flex; margin-inline-start: var(--space-2xs); }
.user-btn { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; height: 100%; padding: 0 var(--space-md); border-radius: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; --focus: var(--blue); }
.user-line { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.user-line .ic { width: var(--space-md); height: var(--space-md); color: var(--white); }
.user-pop { position: absolute; inset-inline-end: 0; top: calc(100% + var(--space-2xs)); width: calc(var(--size-control-h-md) * 5); padding: var(--space-xs); } /* a .popover: white, 1 px line edge, radius lg, shadow lg, opens under the button, end-aligned */
.user-item { display: flex; align-items: center; gap: var(--space-sm); height: var(--size-field-h); padding-inline: var(--space-sm); border-radius: var(--radius-md); font: var(--type-body); color: var(--ink); text-decoration: none; }
.user-item .ic { flex: none; color: var(--muted); }
.user-item[aria-current="page"] .ic { color: var(--ink); }
.user-item[aria-current="page"] { font: var(--type-body-strong); }
@media (hover: hover) { .user-item:hover { background: var(--bar-hover); } }
.user-item:active { background: var(--bar-active); }
.user-label { font: var(--type-body-strong); color: var(--white); } /* the role, the one line of the button (4 Nov: the name John is gone) */
button.user-item { width: 100%; background: none; border: 0; text-align: start; cursor: pointer; } /* the role choices are buttons: browser styles reset */
.user-pop .place-group-label { padding-inline-start: calc(var(--space-sm) + var(--size-icon) + var(--space-sm)); } /* on the item text edge */
.user-item[aria-current="true"] { font: var(--type-body-strong); }
.user-item[aria-current="true"] .ic { color: var(--ink); }
.nav-list li[hidden] { display: none; }

/* ---- Page frame */
.app-body { display: flex; align-items: flex-start; }
.app-main { flex: 1 1 0; min-width: 0; padding: var(--space-lg) var(--space-xl) max(var(--space-5xl), var(--sp-bottom)); } /* 5xl clears the dock and the one text-only toast */
body[data-page="calendar"] { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
body[data-page="calendar"] .app-body { flex: 1 1 0; min-height: 0; align-items: stretch; }
body[data-page="calendar"] .app-main { display: flex; flex-direction: column; padding-bottom: var(--space-lg); }
.page-head { font: var(--type-h3); color: var(--ink); margin-bottom: var(--space-sm); }
.page-head .count { color: var(--muted); }
.lead { font: var(--type-body); color: var(--text); margin-bottom: var(--space-md); }
.lead strong { font: var(--type-body-strong); color: var(--ink); }
.sub-line { font: var(--type-body); color: var(--text); margin-bottom: var(--space-md); }

/* ---- Link [Link]: default, nav, on-dark (kept for the dock), text button, and the link inside running text */
.link { display: inline-flex; align-items: center; min-height: var(--size-control-h-md); padding: 0; background: none; border: 0; font: var(--type-nav); color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); cursor: pointer; } /* an action link is underlined at rest, as .link-text (UX review B24, Julia 6 Nov) */
.link.back-link { text-decoration: none; } /* the back links keep the plain arrow link: underlined on hover only */
@media (hover: hover) {
  .link.back-link:hover { text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
}
.link[aria-disabled="true"] { color: var(--muted); text-decoration: none; cursor: default; }
.link-sm { min-height: 0; padding: var(--space-2xs) var(--space-xs); }
/* ---- Close: the Lucide X on a full 48 tap area; the negative margin keeps the sheet and card headers at their height */
.close-x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--size-control-h-md); height: var(--size-control-h-md); margin: calc((var(--size-icon) - var(--size-control-h-md)) / 2); padding: 0; background: none; border: 0; border-radius: var(--radius-md); color: var(--logo-blue); cursor: pointer; }
@media (hover: hover) { .close-x:hover { background: var(--hover-tint); } }
.link-text { display: inline; min-height: 0; padding: 0; background: none; border: 0; font: inherit; color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); cursor: pointer; text-align: start; } /* a link inside a sentence: underlined at rest (colour alone can't mark it, 1.4.1) */
.link-text.link-btn { display: flex; align-items: center; width: fit-content; min-height: var(--size-control-h-md); font: var(--type-body); } /* the same link standing alone on its own line (quick picks, "Mark all as seen", "See … on the Calendar"): a control-h-md target, the text centred, still underlined (IA review 7) */
.back-link { margin-bottom: var(--space-sm); }


/* ---- Input, search / Date field / Textarea [Input, Date Picker, Textarea] */
.field-input { height: var(--size-field-h); width: 100%; padding: 0 var(--space-md); background: var(--white); border: var(--stroke-border) solid var(--field-border); border-radius: var(--radius-md); font: var(--type-body); color: var(--ink); font-variant-numeric: tabular-nums; transition: border-color var(--dur-fast); }
.field-input::placeholder { color: var(--muted); }
@media (hover: hover) {
  .field-input:hover { border-color: var(--field-border-hover); }
}
/* Field states (Figma 167:47, 167:54, 167:61; Julia, 3 Nov). Clicked, or typing: a logo-blue border and no ring. Reached with Tab: the border and the ring, until the first key typed. admin.js sets html[data-fi] = ptr | key | typed. */
.field-input:focus, .field-input:focus-visible { border-color: var(--logo-blue); outline: none; }
html[data-fi="key"] .field-input:focus-visible { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); }
.field-date { width: auto; }
.field-textarea { height: auto; min-height: calc(var(--size-field-h) + var(--space-2xl)); padding: var(--space-sm) var(--space-md); resize: vertical; display: block; font-family: inherit; } /* 4px grid review 10 Nov: 76, on the grid (was 74) */
.field-input.is-error { border-color: var(--red); } /* every errored input, not only textareas */
.field-label { display: block; font: var(--type-label); color: var(--text); margin-bottom: var(--field-label-gap); }
.field-hint, .card .field-hint { font: var(--type-body-sm); color: var(--muted); margin-top: var(--field-label-gap); }
.field-error, .card .field-error { font: var(--type-body-sm); color: var(--red); margin-top: var(--space-xs); }
.card .form-btns { display: flex; gap: var(--space-xs); margin-top: var(--space-md); } /* the Buttons of an invite form, side by side in the wide column (.decision .btns is the narrow rail's stack) */

/* ---- Tag [Badge], Status dot, new dot */
.tag { display: inline-flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-sm); background: var(--chip-mist); font: var(--type-body-sm); color: var(--ink); }
.tag.on-mist { background: var(--white); }
.new-dot { flex: none; width: var(--size-dot); height: var(--size-dot); border-radius: var(--radius-full); background: var(--logo-blue); }

/* ---- Tabs [Tabs] (link tabs) */
.tabs { display: flex; gap: var(--space-xl); border-bottom: var(--stroke-divider) solid var(--line); margin-bottom: var(--space-md); }
.tabs a { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-width: calc(var(--size-control-h-md) / 2); min-height: var(--size-control-h-md); font: var(--type-body-strong); color: var(--text); text-decoration: none; border-bottom: var(--stroke-border-strong) solid transparent; margin-bottom: calc(-1 * var(--stroke-divider)); transition: border-bottom-color var(--dur-fast), color var(--dur-fast); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--logo-blue); }
/* hover and pressed (Admin tabs r1): the text goes ink and a bar shows under it, no underline; the bar is --field-border on hover and --muted while pressed (pressed is outside the hover query, so touch gets it); the current tab does not change */
@media (hover: hover) {
  .tabs a:not([aria-current="page"]):hover { color: var(--ink); border-bottom-color: var(--field-border); }
}
.tabs a:not([aria-current="page"]):active { color: var(--ink); border-bottom-color: var(--muted); }
.ops-rail .tabs a:not([aria-current="page"]):is(:hover, :active) { color: var(--text); } /* the rail keeps its --hover-tint fill and its text colour; its border-bottom is 0, so no bar shows */
.page-head + .tabs { margin-top: 0; }

/* ---- Button [Button]: Primary and Secondary, one size (IA spec §2.3) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: var(--size-control-h-md); padding: var(--space-xs) calc(var(--space-lg) - var(--stroke-border)); border-radius: var(--radius-md); border: var(--stroke-border) solid var(--logo-blue); font: var(--type-body-strong); text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast); } /* 4px grid review 10 Nov: side padding counts from the outer edge */
.btn-primary { background: var(--logo-blue); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--logo-blue); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--navy); border-color: var(--navy); }
  .btn-secondary:hover { background: var(--hover-tint); }
}
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink); padding: var(--space-xs) calc(var(--space-md) - var(--stroke-border)); } /* 4px grid review 10 Nov: side padding counts from the outer edge */
.btn-danger-text { background: transparent; border-color: transparent; color: var(--red); padding-inline: var(--space-sm); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); } /* a destructive action that is not the main one: red, underlined, its icon before it (Julia 10 Nov: "Cancel booking should be red text underlined button") */
@media (hover: hover) { .btn-danger-text:not(:disabled):hover { color: color-mix(in srgb, var(--red) 80%, var(--ink)); background: var(--red-tint); } }
.btn-danger { background: var(--red); border-color: var(--red); color: var(--white); } /* the confirm of a destructive action: Cancel booking, Remove, Decline, Cancel invite (Julia 10 Nov: "make sure all destructive actions are red") */
@media (hover: hover) { .btn-danger:not(:disabled):hover { background: color-mix(in srgb, var(--red) 85%, var(--ink)); border-color: color-mix(in srgb, var(--red) 85%, var(--ink)); } }
.btn-icon.is-danger, .place-item.is-danger .pi-name, .place-item.is-danger .ic { color: var(--red); } /* a remove icon button and a destructive menu item read red */
.btn-ghost[aria-expanded="true"] { background: var(--hover-tint); }
.btn-icon { position: relative; width: var(--size-control-h-md); height: var(--size-control-h-md); padding: 0; border-radius: var(--radius-md); }
.btn-ghost.btn-icon { color: var(--logo-blue); }
@media (hover: hover) { .btn-ghost:hover { background: var(--hover-tint); } }
.btn-ghost:active, .btn-ghost[aria-expanded="true"]:active { background: var(--line); }
.btn[aria-disabled="true"] { cursor: default; }
.btn.btn-secondary[aria-disabled="true"], .btn.btn-secondary[aria-disabled="true"]:hover { color: var(--muted); background: var(--white); border-color: var(--line); } /* a disabled Secondary drops its blue edge to the line colour, as the disabled Primary does: the cameras pager, Export CSV with nothing to export, a decision button while its request is out (UX review, Julia 6 Nov) */
.btn-block { width: 100%; }
.spinner { width: var(--size-icon); height: var(--size-icon); border-radius: var(--radius-full); border: var(--stroke-border-strong) solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: spin calc(var(--dur-slow) * 2) linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Alert [Alert] (the member side's anatomy at the Admin's size) */
.alert { border-radius: var(--radius-md); padding: var(--space-md); font: var(--type-body); background: var(--mist); color: var(--ink); }
.alert.info { color: var(--logo-blue); }
.alert.ok, .alert.warn { display: grid; grid-template-columns: var(--size-icon) minmax(0, 1fr); column-gap: var(--space-sm); align-items: start; } /* the icon in its own column, space-sm from the text; wrapped lines align with line 1 (IA review 10) */
.alert.ok > *, .alert.warn > * { grid-column: 2; }
.alert.ok::before, .alert.warn::before { display: grid; place-items: center; width: var(--size-icon); height: var(--size-icon); margin-block-start: calc((1lh - var(--size-icon)) / 2); color: var(--ink); font: var(--type-body-strong); } /* centred on line 1 */
.alert.ok::before { content: "✓"; background: var(--green-done); color: var(--white); }
.alert.warn::before { content: "!"; background: var(--orange); }
.alert .alert-actions { margin-top: var(--space-xs); }
.alert .alert-actions.form-btns { display: flex; flex-wrap: wrap; gap: var(--space-xs); } /* 4px grid review 10 Nov: the confirm buttons outside .card sit side by side, as .card .form-btns does */
.alert .mv-other { margin-top: var(--space-sm); } .alert .mv-other + .alert-actions { margin-top: var(--space-md); } /* the Reason field and the buttons are two groups (designer, 9 Nov) */ /* the Reason field in the card's cancel confirm (Calendar cancel booking r1) */
.alert .quote { display: block; margin-top: var(--space-xs); color: var(--text); }

/* ---- Card [Card], Timeline, File row */
.card { background: var(--white); border: var(--stroke-divider) solid var(--line); border-radius: var(--radius-lg); padding: calc(var(--space-xl) - var(--stroke-divider)); } /* 4px grid review 10 Nov: border never adds to size */
.card > h2 { font: var(--type-body-strong); color: var(--ink); margin-bottom: var(--space-md); }
.card > .alert { margin-block: var(--space-md); }
.card p { font: var(--type-body); color: var(--text); }
.card .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-xl); }
.card .dgrid .wide { grid-column: 1 / -1; }
.card .ops-note, .card .ops-legend { font: var(--type-body-sm); }
.card .ops-note { color: var(--muted); max-width: 65ch; }
.card .ops-legend { color: var(--text); }
.card p + p, .card .hold + .hold, .card .hold + p, .card p + ul.ops-att { margin-top: var(--space-sm); }
.card ul.ops-att + .toolbar, .card ul.ops-att + .table { margin-top: var(--space-xl); }
.card > h2.vh + .form-btns { margin-top: 0; } /* the Staff tab: the invite button is the first line of the card, as the card's own padding sets it */
.card .form-btns + .table, .card .form-btns + ul.ops-att { margin-top: var(--space-md); } /* the button, then the people under it */ /* Admin organisation page tabs r2: the to-do rows are one group, the people table another */
.card .doc + .doc { margin-top: var(--space-xl); border-top: var(--stroke-divider) solid var(--line); padding-top: calc(var(--space-xl) - var(--stroke-divider)); } /* 4px grid review 10 Nov: the rule comes off the padding-top (.doc + .doc) */
.card .doc h3 { font: var(--type-body-strong); color: var(--ink); margin-bottom: var(--space-sm); }
.card .doc > .alert { margin-bottom: var(--space-md); } /* as the File row below it (IA review 5) */
.card .doc > .file-row { margin-bottom: var(--space-md); } /* Unit 1 review: the file row sits as far above the details as the alert does */
.card.report > h2 { margin-bottom: var(--space-2xs); } /* the sub-line sits close under the heading (IA review 13) */
.hold { font: var(--type-body); color: var(--ink); }
.timeline { display: grid; gap: var(--space-md); }
.timeline .tl-title { font: var(--type-body-strong); color: var(--ink); }
.timeline .tl-sub { font: var(--type-body-sm); color: var(--muted); }
.timeline .tl-quote { font: var(--type-body); color: var(--text); margin-top: var(--space-2xs); }
.file-row { display: grid; grid-template-columns: var(--size-icon) 1fr auto; column-gap: var(--space-sm); align-items: center; padding: calc(var(--space-xs) - var(--stroke-border)) calc(var(--space-md) - var(--stroke-border)); border: var(--stroke-border) solid var(--line); border-radius: var(--radius-md); background: var(--white); font: var(--type-body); color: var(--ink); } /* the one Admin file row (r3, D): icon, name over its state line, then the actions; no hover, it is not clickable */ /* 4px grid review 10 Nov: the border comes off the padding */
.file-row > .ic { width: var(--size-icon); height: var(--size-icon); color: var(--muted); }
.file-row.is-error { border-color: var(--red); }
.file-text { display: grid; gap: var(--space-2xs); min-width: 0; }
.file-name { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); font: var(--type-body-strong); color: var(--ink); overflow-wrap: anywhere; }
.file-sub { display: flex; align-items: center; font: var(--type-body-sm); color: var(--muted); }
.file-sub .tag { margin-block: calc(-1 * var(--space-2xs)); } /* the tag's own padding would lift the row */
.file-acts { display: flex; align-items: center; gap: var(--space-md); }
.org-head { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.org-head .page-head { margin-bottom: 0; }
.org-meta { font: var(--type-body); color: var(--text); margin: var(--space-xs) 0 var(--space-xl); }
.org-grid { display: grid; grid-template-columns: minmax(0, calc(var(--size-panel-w) * 2 + var(--space-xl))) var(--size-panel-w); justify-content: start; gap: var(--space-xl); align-items: start; margin-top: var(--space-lg); } /* Admin organisation page tabs r2 §4: the event page's measure (824 beside a 400 side column); the tab strip's md plus this lg gives the content its distance */
.org-grid.solo { grid-template-columns: minmax(0, calc(var(--size-panel-w) * 2 + var(--space-xl))); } /* no side column: one column, capped the same */
.org-main, .org-side { display: grid; gap: var(--space-xl); min-width: 0; }
.decision .btns { display: grid; gap: var(--space-xs); }
.decision .quick { font: var(--type-body-sm); color: var(--muted); margin: var(--space-sm) 0 var(--space-xs); }
.decision .quick-list { display: grid; gap: var(--space-xs); font: var(--type-body); }
.decision .actions { display: grid; gap: var(--space-xs); margin-top: var(--space-md); justify-items: start; }
.decision .actions .btn { width: 100%; }
.decision .alert + p, .decision p + .btns, .decision .alert + .btns { margin-top: var(--space-md); } /* a lane request's fit line, its Calendar link and its Buttons: one group each */
.decision .ev-form + .ev-spaces, .decision .ev-spaces + .ev-form, .decision .ev-form + .field-label { margin-top: var(--space-md); }
.decision .field-hint + .field-label { display: block; margin-top: var(--space-md); }
.decision .dgrid { margin-bottom: var(--space-md); }

/* ---- Date bar */
.date-row { display: flex; flex-wrap: nowrap; align-items: center; min-height: var(--size-control-h-md); margin-bottom: var(--space-sm); }
.date-row.is-wrap { flex-wrap: wrap; row-gap: var(--space-xs); } /* narrower than any desktop (places r1 §8): the date bar drops under the place trigger, Key stays on line 1 */
.date-row.is-wrap .key-wrap { order: 1; }
.date-row.is-wrap .date-bar { order: 2; }
/* Place picker (Calendar places r1 §1): a ghost title trigger and a popover list of links, the date's pattern */
.place-pick { position: relative; margin: 0 0 var(--space-sm); } /* Sports Calendar: the page title row, first in the page (Events and Event Ops r1 §14) */
.date-row .place-pick { flex: none; margin: 0; margin-inline-end: var(--space-md); } /* Event Ops: the trigger in the controls row; its edge sits on the page edge; 16 to Today */
.place-pick .page-head { margin: 0; }
.place-trigger { font: var(--type-h3); color: var(--ink); }
.place-trigger .ic { color: var(--muted); }
.place-title { display: inline-flex; align-items: center; gap: var(--space-xs); margin: 0; padding: 0; background: none; border: 0; border-radius: var(--radius-sm); font: inherit; color: var(--ink); cursor: pointer; } /* the page title with a dropdown (Julia, 4 Nov): .page-head's type-h3 and ink, no border, fill or padding, so its text edge sits on the page edge like "Members" */
.place-title .ic { flex: none; width: var(--size-icon); height: var(--size-icon); color: var(--muted); }
@media (hover: hover) { .place-title:hover, .place-title:hover .ic { color: var(--logo-blue); } }
.place-title[aria-expanded="true"], .place-title[aria-expanded="true"] .ic, .place-title:active, .place-title:active .ic { color: var(--logo-blue); }
.place-menu { position: absolute; inset-inline-start: 0; top: calc(100% + var(--space-2xs)); width: max-content; min-width: calc(var(--size-control-h-md) * 6); max-width: calc(100vw - 2 * var(--space-xl)); padding: var(--space-xs) 0; max-height: calc(100vh - var(--header-h) - var(--space-6xl)); overflow-y: auto; }
.place-group-label { margin: 0; padding: var(--space-xs) var(--space-md) var(--space-2xs) calc(var(--space-md) + var(--size-icon) + var(--space-xs)); font: var(--type-label); color: var(--muted); } /* on the item names' text edge; a label, not a heading (halls r1 §1.4) */
.place-group ul { list-style: none; margin: 0; padding: 0; }
.place-sep { margin: var(--space-xs) 0; border: 0; border-top: var(--stroke-divider) solid var(--line); }
.place-item { display: grid; grid-template-columns: var(--size-icon) auto; column-gap: var(--space-xs); align-items: center; min-height: var(--size-control-h-md); padding: var(--space-xs) var(--space-md); color: var(--ink); text-decoration: none; font: var(--type-body); }
.place-item .ic { grid-row: 1 / span 2; color: var(--logo-blue); }
.place-item .pi-name { grid-column: 2; font: var(--type-body); color: var(--ink); }
.place-item[aria-current] .pi-name { font: var(--type-body-strong); }
.place-item .pi-meta { grid-column: 2; font: var(--type-body-sm); color: var(--muted); }
.place-item:focus-visible { outline: var(--stroke-border-strong) solid var(--focus); outline-offset: calc(-1 * var(--stroke-border-strong)); } /* inset, so the popover's edge never clips it */
#placePop .place-item:focus-visible, #perPop .place-item:focus-visible, #evPop .place-item:focus-visible, #busyPop .place-item:focus-visible, #planPop .place-item:focus-visible, #oStatusPop .place-item:focus-visible, #chGroupPop .place-item:focus-visible, #adGroupPop .place-item:focus-visible { outline: none; } /* the place list (Julia, 5 Nov): the ring shows only when the keyboard is in use (data-by), never after a click; then it sits inside the popover, a gap from its edges */
#placePop[data-by="key"] .place-item:focus-visible, #perPop[data-by="key"] .place-item:focus-visible, #evPop[data-by="key"] .place-item:focus-visible, #busyPop[data-by="key"] .place-item:focus-visible, #planPop[data-by="key"] .place-item:focus-visible, #oStatusPop[data-by="key"] .place-item:focus-visible, #chGroupPop[data-by="key"] .place-item:focus-visible, #adGroupPop[data-by="key"] .place-item:focus-visible { outline: var(--stroke-border-strong) solid var(--focus); outline-offset: calc(-1 * (var(--stroke-border-strong) + var(--space-2xs))); }
@media (hover: hover) { .place-item:hover { background: var(--hover-tint); } }
.date-bar { flex: 0 1 auto; max-width: 100%; display: flex; align-items: center; min-height: var(--size-control-h-md); flex-wrap: wrap; row-gap: var(--space-xs); } /* follows the place dropdown (16 after it); wraps only in a window narrower than any desktop (Julia, 3 Nov) */
.date-bar > * + * { margin-inline-start: var(--space-xs); } /* even 8 between every control, the two arrows too */
.date-pick { position: relative; }
.date-pick h2 { margin: 0; font: var(--type-body-strong); }
.key-wrap { flex: none; position: relative; margin-inline-start: auto; } /* the Legend at the far right of the row */
.popover { background: var(--white); color: var(--text); border: var(--stroke-divider) solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: var(--z-nav); --focus: var(--blue); }
.popover:not([hidden]) { animation: pop-in var(--dur-fast); }
@keyframes pop-in { from { opacity: 0; } }
.key-pop { position: absolute; inset-inline-end: 0; top: calc(100% + var(--space-2xs)); width: var(--size-panel-w); padding: var(--space-md); display: grid; gap: var(--space-md); }
.key-title { font: var(--type-body-sm); color: var(--muted); margin-bottom: var(--space-2xs); }
.key-row { display: flex; align-items: center; gap: var(--space-sm); min-height: var(--space-2xl); font: var(--type-body); color: var(--text); }
.key-sw { flex: none; position: relative; display: grid; place-items: center; width: calc(var(--size-dot) * 3); height: calc(var(--size-dot) * 2); border-radius: var(--radius-xs); background: var(--white); font: var(--type-caption); color: var(--ink); } /* 4px grid review 10 Nov: radius-xs */
.key-sw.member { background: var(--blue-fill); }
.key-sw.academy { background: var(--navy); }
.key-sw.event { background: var(--orange); }
.key-sw.phase { background: var(--orange-tint); box-shadow: inset 0 0 0 var(--stroke-border) var(--orange); }
.key-sw.in { background: var(--green-fill); }
.key-sw.visited { background: var(--green-tint); }
.key-sw.dashed { border: var(--stroke-border-strong) dashed var(--muted); }
.key-sw.new { background: var(--sky); }
.key-sw.new::after { content: ""; position: absolute; top: var(--space-2xs); inset-inline-end: var(--space-2xs); width: var(--size-dot); height: var(--size-dot); border-radius: var(--radius-full); background: var(--logo-blue); }
.ic { flex: none; width: var(--size-icon); height: var(--size-icon); fill: none; stroke: currentColor; stroke-width: var(--stroke-border-strong); stroke-linecap: round; stroke-linejoin: round; }
.ic * { vector-effect: non-scaling-stroke; } /* a true 2 px stroke at every icon size, as app.css and the Figma library (Design system grid and pixel audit, 10 Nov) */
#db-date { color: var(--ink); font-variant-numeric: tabular-nums; }
#db-date .ic { color: var(--muted); }
#dateText { display: inline-flex; gap: var(--space-xs); color: var(--ink); } /* "Tue 3 November": weekday regular, day and month body-strong (Julia, 3 Nov; Figma 291:185) */
#dateText .dt-wd { font: var(--type-body); }
#dateText { align-items: center; }
#dateText .dt-day { flex: none; } /* "Today" in the navy 10% chip (.tag.t-fact), no comma (Julia, 6 Nov); the chip is 24 high, so the control keeps its height */
#dateText .dt-dm { font: var(--type-body-strong); }
/* Tooltip [Tooltip]: side bottom, with its arrow; shows on hover and keyboard focus, Escape hides it (WCAG 1.4.13) */
.tooltip { position: absolute; top: calc(100% + var(--space-xs)); inset-inline-start: 50%; transform: translateX(-50%); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-md); background: var(--ink); color: var(--white); font: var(--type-body-sm); white-space: nowrap; z-index: var(--z-nav); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur-fast); }
.tooltip::before { content: ""; position: absolute; top: 0; inset-inline-start: 50%; width: var(--size-dot); height: var(--size-dot); background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.btn-icon:is(:hover, :focus-visible) .tooltip { opacity: 1; visibility: visible; pointer-events: auto; }
.date-bar.tips-off .btn-icon .tooltip { opacity: 0; visibility: hidden; }
/* Date picker [Popover + Calendar] */
.calendar { position: absolute; inset-inline-start: 0; top: calc(100% + var(--space-2xs)); width: calc(var(--size-control-h-md) * 7 + var(--space-sm) * 2); padding: var(--space-sm); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; height: var(--size-control-h-md); margin-bottom: var(--space-2xs); }
.calendar-title { margin: 0; font: var(--type-body-strong); color: var(--ink); }
.calendar-grid { border-collapse: collapse; table-layout: fixed; width: 100%; }
.calendar-grid th { height: calc(var(--size-control-h-md) / 2); padding: 0; font: var(--type-body-sm); color: var(--muted); text-align: center; }
.calendar-grid td { padding: 0; text-align: center; }
.calendar-day { display: grid; place-items: center; width: 100%; height: var(--size-control-h-md); padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); font: var(--type-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.calendar-day[data-outside] { color: var(--muted); }
.calendar-day[data-today] { box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); }
.calendar-day:active { background: var(--line); }
.calendar-day[data-selected] { background: var(--logo-blue); color: var(--white); }
.calendar-day[data-selected][data-today] { box-shadow: inset 0 0 0 var(--space-2xs) var(--logo-blue), inset 0 0 0 calc(var(--space-2xs) + var(--stroke-border)) var(--white); }
@media (hover: hover) {
  .calendar-day:hover { background: var(--hover-tint); }
  .calendar-day:active:hover { background: var(--line); }
  .calendar-day[data-selected]:hover { background: var(--navy); }
}
.summary { font: var(--type-body); color: var(--text); margin-bottom: var(--space-md); }
.summary:empty { display: none; }
.summary a { color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }

/* ---- Planner grid: the three pools side by side (IA spec §7.1, §7.2) */
.planner-scroll { flex: 1 1 0; min-height: 0; overflow: auto; position: relative; scroll-padding-top: calc(var(--size-control-h-md) * 1.5); scroll-padding-inline-start: var(--gutter-w, 0); scroll-padding-bottom: var(--sp-bottom); }
.planner { display: grid; isolation: isolate; position: relative; margin-block-end: max(var(--space-5xl), var(--sp-bottom)); }
.planner { grid-template-columns: max-content repeat(10, minmax(70px, 9fr)) repeat(8, minmax(42px, 5.5fr)) minmax(100px, 13fr); /* ds-allow: Julia's three-pool column floors and ratios (IA spec §7.1) */ }
.planner { grid-template-rows: var(--size-control-h-md) calc(var(--size-control-h-md) / 2) repeat(64, var(--quarter)); }
.planner.is-courts { grid-template-columns: max-content repeat(4, minmax(120px, 1fr)); /* ds-allow: the courts' column floor, as Julia's pool floors (places r1 §4.2) */ }
.planner.is-hall { grid-template-columns: max-content repeat(var(--rooms, 1), minmax(0, 1fr)); }
.planner.is-hall.is-rooms { grid-template-columns: max-content repeat(var(--rooms, 1), minmax(120px, 1fr)); /* ds-allow: the courts' column floor, reused (halls r1 §3.2) */ }
.pool-group { display: contents; }
.planner-rules { grid-column: 2 / -1; grid-row: 3 / -1; z-index: 0; background-image: linear-gradient(to bottom, var(--line) var(--stroke-divider), transparent var(--stroke-divider)); background-size: 100% var(--size-control-h-md); border-bottom: var(--stroke-divider) solid var(--line); } /* the closing rule at 22:00 */
.lane-line { grid-row: 3 / -1; z-index: 0; border-inline-start: var(--stroke-divider) solid var(--line); pointer-events: none; }
.pool-rule { grid-row: 3 / -1; z-index: 1; border-inline-start: var(--stroke-border-strong) solid var(--logo-blue); pointer-events: none; } /* the only new visual: a logo-blue rule between pools, after the blocks in the DOM so it stays on top */
.pool-head { grid-row: 1; position: sticky; top: 0; z-index: var(--z-planner-head); display: flex; align-items: center; background: var(--white); font: var(--type-body-strong); color: var(--ink); white-space: nowrap; }
.pool-head.pool-start, .lane-head.pool-start { border-inline-start: var(--stroke-border-strong) solid var(--logo-blue); }
.pool-name { position: sticky; left: var(--gutter-w, 0); padding-inline: var(--space-2xs); }
.pool-name .pool-count { font: var(--type-body-sm); color: var(--muted); }
.lane-head { grid-row: 2; position: sticky; top: var(--size-control-h-md); z-index: var(--z-planner-head); display: flex; align-items: center; justify-content: center; background: var(--white); border-bottom: var(--stroke-divider) solid var(--line); font: var(--type-body-sm); color: var(--ink); font-variant-numeric: tabular-nums; }
.planner-corner { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 0; left: 0; z-index: var(--z-planner-head); background: var(--white); border-bottom: var(--stroke-divider) solid var(--line); } /* last in the DOM, so it paints over the heads and the gutter when both scroll */
.gutter-label { grid-column: 1; grid-row-end: span 2; position: sticky; left: 0; z-index: 2; background: var(--white); padding: var(--space-2xs) var(--space-xs) 0; text-align: end; font: var(--type-body-sm); font-variant-numeric: tabular-nums; color: var(--muted); }
.gutter-label.hour { color: var(--ink); }
.gutter-label.is-covered { visibility: hidden; } /* under the now pill of the same time; the labels are aria-hidden */
.now-line { grid-column: 2 / -1; grid-row: 3 / -1; position: relative; pointer-events: none; z-index: 0; } /* across all three pools, under the blocks (z-index 1): on a projector the line through a block read as a strikethrough (UX review 8 Nov); the time pill stays */
.now-bar { position: absolute; inset-inline: 0; top: calc(var(--q, 0) * var(--quarter)); border-top: var(--stroke-border-strong) solid var(--ink); }
.now-gutter { grid-column: 1; grid-row: 3 / -1; position: sticky; left: 0; z-index: 2; pointer-events: none; }
.now-pill { position: absolute; inset-inline-end: var(--space-2xs); top: calc(var(--q, 0) * var(--quarter)); transform: translateY(-50%); padding: 0 var(--space-xs); border-radius: var(--radius-xs); background: var(--ink); color: var(--white); font: var(--type-body-sm); font-variant-numeric: tabular-nums; } /* 4px grid review 10 Nov: radius-xs */

.planner-block { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; min-height: 0; margin: 0; overflow: hidden; text-align: start; cursor: pointer; border: 0; transition: background-color var(--dur-fast), box-shadow var(--dur-fast); }
.planner-block { --focus: var(--logo-blue); } /* a block keeps its dark ring: --blue on the blue member fill is only 1.4:1 */
.planner-block:focus-visible { z-index: 2; }
.planner-block > span { flex: none; }
.planner-block.member, .planner-block.court { --pb-fill: var(--blue-fill); background: var(--pb-fill); padding: var(--space-2xs) var(--space-xs); box-shadow: inset 0 0 0 var(--stroke-divider) var(--white); color: var(--ink); } /* block colours r2, 1b: the fill says the state, no holder bar */
@media (hover: hover) {
  .planner-block.member:hover, .planner-block.court:hover { box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); }
  .planner-block.academy:hover { background: var(--logo-blue); }
  .planner-block.event:hover { box-shadow: inset 0 0 0 var(--stroke-divider) var(--white), inset 0 0 0 calc(var(--stroke-divider) + var(--stroke-border)) var(--ink); }
}
.planner-block.member[aria-expanded="true"], .planner-block.court[aria-expanded="true"] { box-shadow: inset 0 0 0 var(--stroke-border-strong) var(--ink); } /* selected: an ink ring, the fill stays */
.planner-block.member.is-new, .planner-block.court.is-new { --pb-fill: var(--sky); background: var(--pb-fill); padding-inline-end: var(--space-md); }
/* Presence (block colours r2, 1b): checked in and under way = green-fill; checked in and over (p-over) = green-tint; under way or over with no check-in = white with a dashed muted edge. A presence fill wins over sky. */
.planner-block.member.p-in { --pb-fill: var(--green-fill); background: var(--pb-fill); padding-inline-end: var(--space-2xs); }
.planner-block.member.p-in.p-over { --pb-fill: var(--green-tint); }
.planner-block.member.p-notyet, .planner-block.member.p-notin { --pb-fill: var(--white); background: var(--pb-fill); padding-inline-end: var(--space-2xs); border: var(--stroke-border-strong) dashed var(--muted); }
.planner-block.member.is-walkin { border-inline-start: var(--stroke-border-strong) solid var(--ink); } /* walk-in, any state: an ink bar at the inline start */
.planner-block.member.p-in .pb-name, .planner-block.member.p-notyet .pb-name, .planner-block.member.p-notin .pb-name { -webkit-line-clamp: 1; }
.planner-block.member.is-new.p-in .pb-name, .planner-block.member.is-new.p-notyet .pb-name, .planner-block.member.is-new.p-notin .pb-name { padding-inline-end: var(--space-xs); } /* the new dot stays, top inline-end, clear of the name */
.pb-meta { display: block; overflow: hidden; white-space: nowrap; font: var(--type-body-sm); font-variant-numeric: tabular-nums; color: var(--ink); } /* a court block's lines 2 and 3: ink on every line (places r1 §4.5) */
.pb-pres { display: block; overflow: hidden; white-space: nowrap; font: var(--type-body-sm); font-variant-numeric: tabular-nums; color: var(--text); }
.pb-pres .pb-tick { color: var(--ink); }
.planner-block.member.p-in:not(.p-over) .pb-pres { color: var(--ink); }
.planner-block.member.is-new::after, .planner-block.court.is-new::after { content: ""; position: absolute; top: var(--space-2xs); inset-inline-end: var(--space-2xs); width: var(--size-dot); height: var(--size-dot); border-radius: var(--radius-full); background: var(--logo-blue); }
.pb-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font: var(--type-label); color: var(--ink); } /* a long word breaks at the edge and the clamp ends in an ellipsis, never through a letter (IA review 1) */
.planner-block.academy { background: var(--navy); padding: var(--space-xs) var(--space-sm); box-shadow: inset 0 0 0 var(--stroke-divider) var(--white); }
.planner-block.academy[aria-expanded="true"] { box-shadow: inset 0 0 0 var(--stroke-divider) var(--white), inset 0 0 0 var(--space-2xs) var(--navy), inset 0 0 0 calc(var(--space-2xs) + var(--stroke-border-strong)) var(--white); }
.planner-block.event { background: linear-gradient(to bottom, var(--orange-tint) 0 calc(var(--quarter) * var(--seg-a, 0)), var(--orange) 0 calc(var(--quarter) * var(--seg-b, 64)), var(--orange-tint) 0); padding: var(--space-xs) var(--space-sm); box-shadow: inset 0 0 0 var(--stroke-divider) var(--white), inset 0 0 0 calc(var(--stroke-divider) + var(--stroke-border)) var(--orange); color: var(--ink); } /* core in orange, setup and takedown in orange-tint, one block (halls r1 §4.3); the orange edge marks where the hold starts */
.planner-block.event.is-phase { background: var(--orange-tint); }
.planner-block.event { display: flex; flex-direction: column; padding: 0; text-align: start; overflow: clip; } /* clip, not hidden: a hidden block would be a scroll container and the phase labels could not stick to the planner's scroll */
.pb-phase { flex: none; display: block; overflow: clip; } /* clip, not hidden: the label inside stays sticky to the planner's scroll */
.pb-phase-label { position: sticky; top: calc(var(--size-control-h-md) * 1.5); display: block; padding: var(--space-xs) var(--space-sm); color: var(--ink); } /* just under the pool and lane headers */
.planner-block.event[aria-expanded="true"] { box-shadow: inset 0 0 0 var(--stroke-divider) var(--white), inset 0 0 0 var(--space-2xs) var(--orange), inset 0 0 0 calc(var(--space-2xs) + var(--stroke-border-strong)) var(--ink); } /* the academy's selected pattern (IA spec §7.4): the white divider edge, a space-2xs band in the block's own fill, then a border-strong ring (ink here) */
.pb-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; font: var(--type-body-strong); color: var(--white); }
.pb-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--sub-lines, 1); overflow: hidden; font: var(--type-body-sm); color: var(--text-on-dark); } /* --sub-lines is set by admin.js (fitBlocks): only whole lines that fit, ending in an ellipsis (IA review 2) */
.pb-range, .pb-nw { white-space: nowrap; } /* a time range is never split across lines; fitBlocks leaves it out when it can't fit its own line */
.planner-block.event .pb-title, .planner-block.event .pb-sub { color: var(--ink); }
.pulse { animation: pulse var(--dur-slow) ease 2; outline: var(--stroke-border-strong) solid var(--logo-blue); }
@keyframes pulse { from { outline-offset: 0; outline-color: var(--logo-blue); } to { outline-offset: var(--space-xs); outline-color: transparent; } }
/* The landing beat (IA spec §3.3): highlight at once, hold 2 x dur-slow, ease to sky over dur-slow; the dot goes ink to logo-blue. --land-delay starts it later on a load. */
.landing { animation: land-fill calc(var(--dur-slow) * 3) ease var(--land-delay, 0ms); }
.landing .new-dot, .landing.planner-block.member.is-new::after, .landing.planner-block.court.is-new::after { animation: land-dot calc(var(--dur-slow) * 3) ease var(--land-delay, 0ms); }
@keyframes land-fill { 0%, 66.67% { background: var(--highlight); } 100% { background: var(--pb-fill, var(--sky)); } } /* a block ends on its own fill (sky, green-tint or white), a row on sky */
@keyframes land-dot { 0%, 66.67% { background: var(--ink); } 100% { background: var(--logo-blue); } }

/* ---- Table [Table / Data Table] */
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(max-content, 1fr) minmax(0, 1fr); gap: var(--space-md); align-items: center; margin-bottom: var(--space-md); }
.m-filters { display: flex; align-items: center; gap: var(--space-md); } /* Members filters r1 §1: the plan picker, then the checkbox, in toolbar column 2 */
.m-filters .place-pick { flex: none; width: calc(var(--size-control-h-md) * 4); margin: 0; }
.m-filters .place-pick.wide { width: calc(var(--size-control-h-md) * 6); } /* "Asked for more information" fits the trigger */
.m-filters .ev-check { flex: none; white-space: nowrap; }
.result-status { grid-column: 3; justify-self: end; font: var(--type-body); color: var(--text); }
.table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.table thead th { position: sticky; top: var(--header-h); z-index: 2; background: var(--white); padding: var(--space-sm) var(--space-md) calc(var(--space-sm) - var(--stroke-divider)); min-height: var(--size-control-h-md); border-bottom: var(--stroke-divider) solid var(--line); font: var(--type-body-sm); color: var(--muted); text-align: start; } /* 4px grid review 10 Nov: the 1 px rule comes off the padding: header 44 */
.table thead th:first-child { border-inline-start: var(--stroke-border-strong) solid transparent; padding-inline-start: calc(var(--space-md) - var(--stroke-border-strong)); } /* 4px grid review 10 Nov: content stays on the 16 edge */
.table tbody th { padding: var(--space-sm) var(--space-md) calc(var(--space-sm) - var(--stroke-divider)); border-bottom: var(--stroke-divider) solid var(--line); font: var(--type-body); color: var(--ink); text-align: start; } /* 4px grid review 10 Nov: the rule comes off the padding: row 48 */
.sort-btn { display: inline-flex; align-items: center; gap: var(--space-2xs); margin-block: calc(-1 * var(--space-sm)); padding: var(--space-sm) 0; min-height: var(--size-control-h-md); background: none; border: 0; font: var(--type-body-sm); color: var(--muted); cursor: pointer; }
@media (hover: hover) {
  .sort-btn:hover .sort-label { text-decoration: underline; }
}
.sort-btn .arrow { color: var(--muted); }
th[aria-sort="ascending"] .arrow, th[aria-sort="descending"] .arrow { color: var(--ink); }
.table tbody tr { position: relative; }
.table td { height: var(--size-control-h-md); padding: var(--space-sm) var(--space-md) calc(var(--space-sm) - var(--stroke-divider)); border-bottom: var(--stroke-divider) solid var(--line); font: var(--type-body); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 4px grid review 10 Nov: the rule comes off the padding: row 48 */
.table td:first-child { border-inline-start: var(--stroke-border-strong) solid transparent; padding-inline-start: calc(var(--space-md) - var(--stroke-border-strong)); } /* 4px grid review 10 Nov: content stays on the 16 edge */
@media (hover: hover) {
  .table tbody tr:not(.is-new):hover { background: var(--hover-tint); }
}
.table tbody tr.is-new { background: var(--sky); }
.table tbody tr.is-new td { color: var(--ink); }
.table tbody tr.is-selected { background: var(--hover-tint); }
.table tbody tr.is-selected td:first-child { border-inline-start-color: var(--logo-blue); }
.table tbody tr:has(.name-btn:focus-visible) { outline: var(--stroke-border-strong) solid var(--focus); outline-offset: calc(-1 * var(--stroke-border-strong)); }
.table.plain tbody tr:hover { background: none; }
.table.auto { table-layout: auto; }
.table.auto td, .table.auto th { white-space: normal; overflow: visible; }
.table.auto thead th { position: static; }
.table td.num, .table th.num { text-align: end; font-variant-numeric: tabular-nums; }
.table td.mid, .table th.mid { text-align: center; font-variant-numeric: tabular-nums; }
.table thead th.today, .table td.today { background: var(--mist); }
.table thead th .th-sub { display: block; font: var(--type-body-sm); color: var(--ink); }
.table tr.total th, .table tr.total td { font: var(--type-body-strong); color: var(--ink); }
.table tr.total th { text-align: start; padding: var(--space-sm) var(--space-md) calc(var(--space-sm) - var(--stroke-divider)); border-bottom: var(--stroke-divider) solid var(--line); } /* the total row's label cell reads like a row header (04q review 3) */ /* 4px grid review 10 Nov: the rule comes off the padding */
.table.roles th[scope="col"] { vertical-align: bottom; } /* six role names wrap to two lines, bottom-aligned (switchable roles r1 §4) */
.table.fixed { table-layout: fixed; } /* with .auto: fixed column widths from the <colgroup>, cell text still wraps (Settings > Staff and roles) */
.table td.act { font: var(--type-body-strong); color: var(--ink); } /* "Can act" */
.table .row-link { display: inline-flex; align-items: center; min-height: calc(var(--size-control-h-md) / 2); color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
.name-cell { display: flex; align-items: center; gap: var(--space-xs); min-width: 0; }
.name-btn { min-width: 0; padding: 0; background: none; border: 0; font: var(--type-body); color: var(--ink); text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
a.name-btn { text-decoration: none; display: block; }
.name-btn::after { content: ""; position: absolute; inset: 0; }
.name-btn:focus-visible { outline: none; }
.table tbody tr:has(a.name-btn:focus-visible) { outline: var(--stroke-border-strong) solid var(--focus); outline-offset: calc(-1 * var(--stroke-border-strong)); }
.plan-cell { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.plan-cell .tag { flex: none; margin-block: calc(-1 * var(--space-2xs)); } /* the tag's own padding would lift the row past 48 */
.plan-detail { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.table td.empty-cell { height: auto; padding: var(--space-md) 0; white-space: normal; overflow: visible; border-bottom: 0; border-inline-start-width: 0; }
.empty { display: flex; align-items: center; gap: var(--space-md); background: var(--mist); border-radius: var(--radius-lg); padding: var(--space-lg) var(--space-xl); font: var(--type-body); color: var(--text); }
.empty .link { min-height: 0; }

/* ---- Pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-md); font: var(--type-body); color: var(--text); }
.pagination .pager { display: flex; gap: var(--space-md); }

/* ---- Sheet [Sheet] and Description grid. The Sheet is for Members, Arrivals and Events only; a Calendar block opens the card below. */
.sheet { flex: none; width: var(--size-panel-w); display: flex; flex-direction: column; background: var(--white); border-inline-start: var(--stroke-divider) solid var(--line); position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); }
.sheet-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) var(--space-xl) calc(var(--space-md) - var(--stroke-divider)); border-bottom: var(--stroke-divider) solid var(--line); } /* 4px grid review 10 Nov: the rule comes off the padding-bottom */
.sheet-title { display: flex; align-items: center; gap: var(--space-xs); min-width: 0; font: var(--type-h3); color: var(--ink); }
.sheet-body { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: var(--space-xl) var(--space-xl) max(var(--space-xl), var(--sp-bottom)); display: grid; align-content: start; gap: var(--space-2xl); }
.kids { display: grid; gap: var(--space-lg); }
.kid-name { font: var(--type-body-strong); color: var(--ink); margin-bottom: var(--space-sm); }
.kid-cover { font: var(--type-body); color: var(--ink); margin: calc(-1 * var(--space-xs)) 0 var(--space-md); }
.sec-title { font: var(--type-body-strong); color: var(--ink); margin-bottom: var(--space-sm); }
.dgrid { display: grid; gap: var(--space-md); }
.dgrid dt { font: var(--type-body-sm); color: var(--muted); }
.dgrid dd { font: var(--type-body); color: var(--ink); overflow-wrap: anywhere; }
.dgrid dd .now, .hold .now { display: block; margin-top: var(--space-2xs); font: var(--type-body-sm); color: var(--text); } /* "Now: Lanes 5–8" under a lane change's asked value, and "Until 22 Nov: …" under a Lanes tab line (Admin lane changes r1 §P1.2, §P1.3) */
.upcoming { display: grid; gap: var(--space-sm); font: var(--type-body); color: var(--ink); }
.upcoming li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-xs); } /* the booking link, then its status tag ("Checked in 09:28") beside it or on the next line */
.upcoming .sheet-link, .dgrid dd .sheet-link, .ops-staff td .sheet-link { font: var(--type-body); } /* a link that is a value (an upcoming booking, the Organiser) reads as body text in logo-blue; action links stay nav (IA review 6) */
.sheet-link { display: inline-flex; align-items: center; margin-block: calc(-1 * var(--space-2xs)); padding: var(--space-2xs) 0; font: var(--type-nav); color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); background: none; border: 0; cursor: pointer; } /* underlined at rest, as .link-text (UX review B24) */
.sheet-link[aria-disabled="true"] { color: var(--muted); text-decoration: none; cursor: default; }

/* ---- Block card [Popover] (Admin booking card r1): a Calendar block's details beside the block; position and size set by admin.js (fixed, so the grid never reflows). A bottom sheet on tablets. */
.block-card { position: fixed; width: var(--size-panel-w); padding: var(--space-lg); flex-direction: column; gap: var(--space-md); overflow: hidden; }
.block-card:not([hidden]) { display: flex; }
.card-head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); }
.card-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); min-width: 0; font: var(--type-h3); color: var(--ink); overflow-wrap: anywhere; }
.card-rows { flex: 0 1 auto; min-height: 0; overflow-y: auto; grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--space-md); row-gap: var(--space-xs); align-items: baseline; }
.card-rows > div { display: contents; }
.card-foot { flex: none; border-top: var(--stroke-divider) solid var(--line); padding-top: calc(var(--space-sm) - var(--stroke-divider)); } /* 4px grid review 10 Nov: the rule comes off the padding-top */
.card-links { display: flex; flex-wrap: wrap; column-gap: var(--space-lg); row-gap: var(--space-xs); } /* the footer links of a card never run together (04r review 3) */
.card-evs { flex: 0 1 auto; min-height: 0; overflow-y: auto; display: grid; gap: var(--space-md); } /* a card for two events: one section each (04r review 2) */
.card-ev .card-rows { overflow: visible; }
.card-ev + .card-ev { border-top: var(--stroke-divider) solid var(--line); padding-top: calc(var(--space-md) - var(--stroke-divider)); } /* 4px grid review 10 Nov: the rule comes off the padding-top */
.card-ev-name { margin: 0 0 var(--space-xs); font: var(--type-body-strong); color: var(--ink); }
.card-ev .sheet-link { margin-top: var(--space-xs); }
@media (max-width: 1279px) { /* ds-allow: the tablet breakpoint of the booking card's bottom sheet (card r1 §4); a media query cannot use a token */
  .block-card { inset-inline: 0; inset-block-end: 0; width: auto; max-width: none; border-width: var(--stroke-divider) 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: calc(100vh - var(--header-h) - var(--space-6xl) * 2); padding-block-end: max(var(--space-lg), var(--sp-bottom)); }
  .block-card:not([hidden]) { animation: sheet-up var(--dur-fast); }
  .planner-scroll { scroll-padding-bottom: var(--card-h, var(--sp-bottom)); }
  .planner { margin-block-end: max(var(--space-5xl), var(--sp-bottom), var(--card-h, var(--sp-bottom))); }
}
@keyframes sheet-up { from { transform: translateY(100%); } }

/* ---- Toast [Sonner]: text-only confirmations of John's own actions, one at a time (IA spec §3.1) */
.toast-stack { position: fixed; inset-inline: 0; bottom: var(--space-2xl); z-index: var(--z-toast); display: grid; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; max-width: calc(100vw - var(--space-4xl)); padding: var(--space-sm) var(--space-xl); border-radius: var(--radius-md); background: var(--ink); color: var(--white); font: var(--type-body); box-shadow: var(--shadow-lg); }
body:has(#sheet:not([hidden])) .toast-stack { inset-inline-end: var(--size-panel-w); } /* centred on the main column while the Sheet is open */

/* ds-off: demo controls. The dock (bottom-right, as on Fatma's side: the switcher, then the pill in the corner) holds the system switcher and the Demo controls pill: demo tools, outside the system (spec §1.3, §6.1). They keep the token names, so they match Fatma's side, but the static check doesn't police this block. */
.demo-dock { position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: var(--z-demo); display: flex; align-items: center; gap: var(--space-xs); }
.proto { position: relative; font: var(--type-body-sm); }
.proto summary { list-style: none; cursor: pointer; background: var(--orange); color: var(--ink); padding: var(--space-xs) var(--space-md); min-height: var(--size-control-h-md); display: inline-flex; align-items: center; border-radius: var(--radius-md); font-weight: 700; }
.proto summary::-webkit-details-marker { display: none; }
/* Demo count badge r1 (Julia, 10 Nov; the same badge as css/app.css at 1280 and wider, where the client shows the pill): the number of "On this page" controls, top right of the closed pill; none at 0, none while the box is open */
.proto summary { position: relative; }
.proto .demo-count { position: absolute; top: calc(-1 * var(--space-xs)); right: calc(-1 * var(--space-xs)); display: grid; place-items: center; box-sizing: border-box; min-width: var(--space-xl); height: var(--space-xl); /* 24, a token: this block allows no px but the 260 */ padding-inline: var(--space-2xs); border-radius: var(--radius-full); background: var(--highlight); color: var(--ink); font: var(--type-label); font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 var(--stroke-border-strong) var(--white); pointer-events: none; }
.proto .demo-count[hidden], .proto[open] .demo-count { display: none; }
.proto .box { position: absolute; bottom: 100%; right: 0; margin-bottom: var(--space-xs); background: var(--white); border: var(--stroke-divider) solid var(--line); border-radius: var(--radius-md); padding: var(--space-md); display: grid; gap: var(--space-xs); width: 260px; /* mirrors app.css .proto .box (260) */ max-height: calc(100vh - var(--space-5xl)); overflow-y: auto; box-shadow: var(--shadow-sm); }
.proto .box button { text-align: left; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-sm); border: 0; background: var(--mist); color: var(--logo-blue); font-weight: 600; cursor: pointer; }
.proto .box button { transition: background-color var(--dur-fast); } /* Demo controls relevant r1 §6: On this page = filled logo-blue; the others stay quiet */
.proto .box button[data-here] { --focus: var(--logo-blue); background: var(--highlight); color: var(--ink); } /* On this page: lime yellow (Julia, 5 Nov; Specs/Demo controls relevant r1.md, the same three rules as css/app.css) */
.proto .box button[data-here]:active { background: color-mix(in srgb, var(--highlight) 80%, var(--ink)); }
.proto .box button:not([data-here]):active { background: var(--hover-tint); }
@media (hover: hover) {
  .proto .box button[data-here]:hover { background: color-mix(in srgb, var(--highlight) 80%, var(--ink)); }
  .proto .box button:not([data-here]):hover { background: var(--hover-tint); }
}
.proto .box p { color: var(--muted); }
.proto .box .ttl { font-weight: 600; color: var(--ink); }
.proto .box .grp { font-weight: 600; margin-top: var(--space-xs); }
.proto .box .gbox { display: grid; gap: var(--space-xs); border-top: var(--stroke-divider) solid var(--line); padding-top: var(--space-xs); }
.proto .box .gbox .grp { margin-top: 0; }
.proto .box .stat { color: var(--ink); }
.proto summary:focus-visible, .proto button:focus-visible { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); }
.switcher { display: flex; gap: var(--space-2xs); padding: var(--space-2xs); background: var(--white); border-radius: var(--radius-md); box-shadow: inset 0 0 0 var(--stroke-divider) var(--line), var(--shadow-sm); }
.switcher .sw { position: relative; display: grid; place-items: center; box-sizing: border-box; min-width: var(--size-control-h-md); height: var(--size-control-h-md); padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-md); background: var(--white); color: var(--logo-blue); box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); font: var(--type-body-strong); text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast); }
@media (hover: hover) {
  .switcher .sw:not([aria-current="true"]):hover { background: color-mix(in srgb, var(--sky) 40%, var(--white)); }
}
.switcher .sw[aria-current="true"] { background: var(--logo-blue); color: var(--white); }
.switcher .sw:focus-visible { outline: var(--stroke-focus) solid var(--focus); outline-offset: var(--focus-offset); }
/* ds-on */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Events r1 (2 Nov): the List / Calendar switch with New event, the new-event page, the Arena block over the Competition Pool */
.tabs-row { display: flex; align-items: flex-start; gap: var(--space-md); }
.tabs-row .tabs { flex: 1 1 auto; }
.tabs-row > .btn { flex: none; }
.planner-block.event.over, .planner-block.event.over:hover { z-index: 2; }
.planner-block.event.is-held, .planner-block.event.is-held:hover { background: var(--orange-tint); border: var(--stroke-border-strong) dashed var(--orange); }
.planner-block.event.over.is-held, .planner-block.event.over.is-held:hover { z-index: 0; } /* a Pending Arena event sits behind the bookings it has not moved yet */
.key-sw.held { background: var(--orange-tint); border: var(--stroke-border-strong) dashed var(--orange); }
.new-event { display: block; max-width: calc(var(--size-panel-w) * 2 + var(--space-xl)); } /* one column, left-aligned; the Summary bar below it is the same width */
.ne-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-width: 0; }

.ev-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-xl); }
.ev-form .wide { grid-column: 1 / -1; }
.ev-moment { min-width: 0; }
.ev-moment > .field-error { margin-top: var(--field-label-gap); }
.ev-pair { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--size-control-h-md) * 3); gap: var(--space-xs); } /* date takes the rest; the time field is 144px: 130 clipped "AM" against the clock */
.ev-pair .field-input { min-width: 0; }
/* The Summary bar: sticky at the bottom of the viewport, the form's width, summary left and button right */
.ev-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); margin-top: var(--space-xl); padding: var(--space-md) var(--space-lg); background: var(--white); border: var(--stroke-divider) solid var(--line); border-radius: var(--radius-lg); }
.ev-bar-text { flex: 1 1 auto; min-width: 0; font: var(--type-body); color: var(--text); }
.ev-bar .btn { flex: none; }
.tag.tag-ind { background: var(--hover-tint); color: var(--navy); }
.tag.tag-org { background: color-mix(in srgb, var(--navy) 14%, var(--white)); color: var(--navy); }
.btn.btn-primary[aria-disabled="true"], .btn.btn-primary[aria-disabled="true"]:hover { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.ev-spaces { border: 0; padding: 0; margin: 0; min-width: 0; }
.ev-spaces legend { font: var(--type-label); color: var(--text); margin-bottom: var(--space-xs); padding: 0; } /* the same as every field label above it */
.ev-check { display: flex; align-items: center; gap: var(--space-xs); min-height: var(--size-field-h); font: var(--type-body); color: var(--text); }
.ev-checks, .ev-rooms { display: flex; flex-wrap: wrap; gap: 0 var(--space-lg); }
.ev-rooms { margin-top: var(--space-2xs); padding-inline-start: var(--space-md); border-inline-start: var(--stroke-border-strong) solid var(--line); }
/* Which part of the arena (Admin arena part r1 §1, r2 §1): a radio group in the rooms group's slot, each option with its hint under it */
.ev-part { flex-direction: column; gap: var(--space-sm); border-top: 0; border-inline-end: 0; border-bottom: 0; margin-inline: 0; padding-block: 0; min-width: 0; }
.ev-part legend { padding: 0; margin-bottom: var(--space-2xs); font: var(--type-label); color: var(--text); }
.ev-part > .field-hint { margin: 0 0 var(--space-xs); }
.ev-opt { display: grid; gap: var(--space-2xs); }
.ev-opt .ev-check { min-height: var(--size-choice); }
.ev-opt .field-hint { margin: 0; padding-inline-start: calc(var(--size-choice) + var(--space-xs)); }
/* two half events at the same time share the Arena column: north on the inline start, south on the end (arena part r2 §2) */
/* The Admin checkbox and radio (Figma 167:159): --size-choice square or round, the field border, logo-blue when on; the tick is the Lucide check at 16px, stroke 2, drawn as a mask so one rule colours it */
input[type="checkbox"], input[type="radio"] { -webkit-appearance: none; appearance: none; flex: none; display: inline-grid; place-items: center; width: var(--size-choice); height: var(--size-choice); margin: 0; background: var(--white); border: var(--stroke-border) solid var(--field-border); cursor: pointer; transition: background-color var(--dur-fast), border-color var(--dur-fast); }
input[type="checkbox"] { border-radius: var(--radius-sm); }
input[type="radio"] { border-radius: var(--radius-full); }
input[type="checkbox"]::after { content: ""; width: var(--size-icon-sm); height: var(--size-icon-sm); background: var(--white); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat; transform: scale(0); transition: transform var(--dur-fast); } /* 4px grid review 10 Nov: checkbox glyph 16 */
input[type="checkbox"]:checked { background: var(--logo-blue); border-color: var(--logo-blue); }
input[type="checkbox"]:checked::after { transform: scale(1); }
input[type="radio"]::after { content: ""; width: calc(var(--size-choice) / 2); height: calc(var(--size-choice) / 2); border-radius: var(--radius-full); background: var(--logo-blue); transform: scale(0); transition: transform var(--dur-fast); }
input[type="radio"]:checked { border-color: var(--logo-blue); }
input[type="radio"]:checked::after { transform: scale(1); }
@media (hover: hover) {
  input[type="checkbox"]:not(:disabled):hover, input[type="radio"]:not(:disabled):hover { border-color: var(--field-border-hover); }
  input[type="checkbox"]:checked:not(:disabled):hover { background: var(--navy); border-color: var(--navy); }
  input[type="radio"]:checked:not(:disabled):hover { border-color: var(--navy); }
}
input[type="checkbox"][aria-invalid="true"]:not(:checked), input[type="radio"][aria-invalid="true"]:not(:checked) { border-color: var(--red); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { background: var(--mist); border-color: var(--line); cursor: default; }
input[type="checkbox"]:disabled:checked { background: var(--line); }
input[type="checkbox"]:disabled:checked::after { background: var(--muted); }
input[type="radio"]:disabled:checked::after { background: var(--muted); }
.ev-check:has(input:disabled) { color: var(--muted); }
.ev-actions { display: flex; align-items: center; gap: var(--space-md); margin-top: var(--space-md); }
.ev-rows { display: grid; gap: var(--space-sm); }
.ev-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; gap: var(--space-md); align-items: start; padding-block: calc(var(--space-xs) - var(--stroke-divider)) var(--space-xs); border-top: var(--stroke-divider) solid var(--line); font: var(--type-body); color: var(--text); } /* 4px grid review 10 Nov: the rule comes off the padding-top (.ev-row, .ops-check) */
.ev-row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.ev-row strong { font: var(--type-body-strong); color: var(--ink); }
.ev-who { display: grid; }
.ev-role { font: var(--type-body-sm); color: var(--muted); }
.ev-duty { display: grid; gap: var(--space-2xs); min-width: 0; }
.ev-row details { grid-column: 1 / -1; }
.ev-row summary, .mv-row summary { display: inline-flex; align-items: center; gap: var(--space-2xs); list-style: none; }
.ev-row summary::-webkit-details-marker, .mv-row summary::-webkit-details-marker { display: none; }
.ev-row summary .ic, .mv-row summary .ic { flex: none; width: var(--size-icon); height: var(--size-icon); }
.ev-row details[open] > summary .ic, .mv-row details[open] > summary .ic { transform: rotate(180deg); }
.ev-row summary { cursor: pointer; color: var(--logo-blue); font: var(--type-body); }
.ev-row details p { margin-top: var(--space-xs); color: var(--text); }
.ev-links { display: flex; align-items: center; gap: var(--space-xl); margin-top: var(--space-md); } /* the Done card: the filled Back to Events button, then the two links, on one centre line (Julia, 6 Nov) */

/* ---- Cancel and rebook (Specs/Admin event rescheduling r1.md, r2). A rebooked or moved booking is an ordinary block at its new time: no mark, no status colour. The words live in the lists and the card. */
.dgrid dd .ic { width: var(--size-icon-sm); height: var(--size-icon-sm); flex: none; vertical-align: middle; } /* 4px grid review 10 Nov: 16 not 15 */
.dgrid dd .ic { margin-inline-end: var(--space-2xs); }
.mv-act, .mv-done { display: grid; gap: var(--space-sm); padding-bottom: var(--space-sm); }
.mv-btns, .mv-slots { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.mv-done { justify-items: start; }
.mv-slots { flex-direction: column; align-items: stretch; }
.mv-lead { font: var(--type-body-strong); color: var(--ink); }
.mv-other { display: grid; gap: var(--space-xs); }
.mv-sum { font: var(--type-body); color: var(--text); margin-bottom: var(--space-sm); }
.mv-list { list-style: none; margin: 0; padding: 0; display: grid; }
.mv-row, .mv-entry { display: grid; gap: var(--space-2xs); padding-block: calc(var(--space-sm) - var(--stroke-divider)) var(--space-sm); border-top: var(--stroke-divider) solid var(--line); font: var(--type-body); color: var(--text); } /* 4px grid review 10 Nov: the rule comes off the padding-top */
.mv-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); }
.mv-top strong { font: var(--type-body-strong); color: var(--ink); }
.card .mv-slot, .mv-slot { font: var(--type-body-sm); color: var(--muted); }
.card .mv-entry p, .card .mv-row p { margin: 0; }
.ev-moved .nw { white-space: nowrap; }
.mv-row details { margin-top: var(--space-2xs); }
.mv-row summary { cursor: pointer; color: var(--logo-blue); font: var(--type-body); }
.mv-row details p { margin-top: var(--space-xs); color: var(--text); }
.ev-moved { margin-top: var(--space-2xs); font: var(--type-body-sm); color: var(--text); }
.ev-clash { display: grid; gap: var(--space-sm); padding-bottom: calc(var(--space-md) - var(--stroke-divider)); margin-bottom: var(--space-md); border-bottom: var(--stroke-divider) solid var(--line); } /* 4px grid review 10 Nov: the rule comes off the padding-bottom */
.ev-clash-text { font: var(--type-body); color: var(--text); }
.ev-clash-text strong { font: var(--type-body-strong); color: var(--ink); }
.pick-wrap { position: relative; }
.pick-btn { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); text-align: start; cursor: pointer; width: 100%; }
.pick-btn .pick-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-btn .pick-text.is-ph { color: var(--muted); }
.pick-btn .ic, .select-wrap .ic { flex: none; width: var(--size-icon); height: var(--size-icon); color: var(--muted); } /* the calendar, clock and chevron icons share one colour and sit 16px (the field's padding) from the box edge */
/* A select: no browser arrow; the text starts at the same 16px as other fields; the Lucide chevron sits in a wrapper, 16px from the edge */
.select-wrap { position: relative; }
.select-wrap select.field-input { -webkit-appearance: none; appearance: none; padding-inline-end: calc(var(--space-md) + var(--size-icon) + var(--space-xs)); cursor: pointer; }
.select-wrap .ic { position: absolute; inset-inline-end: calc(var(--space-md) + var(--stroke-border)); top: 50%; transform: translateY(-50%); pointer-events: none; }
.pick-pop, .org-pick .place-menu { z-index: var(--z-toast); } /* on top of everything; placePops() in admin.js fixes its place and fits the window */
.mv-cal { position: static; width: 100%; padding: 0; }
.calendar-day { position: relative; }
.calendar-day[data-event]::after, .cal-key-dot { content: ""; width: var(--space-xs); height: var(--space-xs); border-radius: var(--radius-full); background: var(--orange); }
.calendar-day[data-event]::after { position: absolute; bottom: var(--space-2xs); left: 50%; transform: translateX(-50%); }
.calendar-day[data-event][data-selected]::after { background: var(--white); }
.cal-key { display: flex; align-items: center; gap: var(--space-xs); margin: var(--space-sm) 0 0; font: var(--type-body-sm); color: var(--muted); }
.cal-key-dot { flex: none; display: inline-block; }
.calendar-foot .cal-key { align-items: flex-start; } /* a key that wraps keeps its dot on the first line */
.calendar-foot .cal-key-dot { margin-top: calc((1lh - var(--space-xs)) / 2); }
.calendar-foot { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-sm); }
.calendar-foot .cal-key { margin: 0; }
#calToday { margin-inline-start: auto; min-height: var(--size-field-h); }
.calendar-day[data-mark] { box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); }
.calendar-day[aria-disabled="true"] { color: var(--field-border); cursor: default; }
@media (hover: hover) { .calendar-day[aria-disabled="true"]:hover { background: transparent; } }
.mv-other .pick-pop, .ev-clash .pick-pop { position: static; margin-top: var(--space-xs); }
/* Time fields: the browser's clock replaced by the Lucide clock (a mask in the field's own colour), with no margin or padding of its own, so its right edge sits at the field's 16px padding. It still opens the picker on click. */

/* ---- Event stepper and event page (Specs/Admin event rescheduling r1, Stepper and Event page; 3 Nov) */
.ev-panel { display: flex; flex-direction: column; gap: var(--space-md); } /* a flex column, so the sticky foot has the panel as its range */
.ev-panel > h2 { margin: 0; }
.ev-foot { position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: flex-end; gap: var(--space-sm); margin-top: var(--space-sm); padding-block: calc(var(--space-md) - var(--stroke-divider)) var(--space-md); background: var(--white); border-top: var(--stroke-divider) solid var(--line); } /* always in view at the foot of the window, on white, no shadow (Julia: remove shadow from lower panel); the form's column ends left of the Demo controls */ /* 4px grid review 10 Nov: the rule comes off the padding-top */
.ev-foot > .btn { flex: none; white-space: nowrap; } /* the line wraps; the buttons never do */
.ev-foot-confirm { flex-wrap: wrap; }
.ev-foot-confirm > .alert { flex: 1 1 100%; }
.ev-foot-confirm > .ev-check { flex: 1 1 auto; }
.ep-stack > .ev-foot { margin-top: 0; }
.ev-panel:has(> .ev-foot) { padding-bottom: 0; }
.ev-panel > .ev-foot { padding-block: calc(var(--space-xl) - var(--stroke-divider)) var(--space-xl); } /* the foot is xl on every side: the card's own padding under it goes, so the buttons sit 24 from the bottom as from the sides */ /* 4px grid review 10 Nov: the rule comes off the padding-top */
.ev-foot .ev-bar-text { flex: 1 1 auto; margin: 0; min-width: 0; font: var(--type-body); color: var(--text); }
.ev-sum, .ev-papers { font: var(--type-body); color: var(--text); }
.tabs-row { justify-content: flex-end; }
.tabs-fill { flex: 1 1 auto; }
.ep-stack { display: flex; flex-direction: column; gap: var(--space-xl); max-width: calc(var(--size-panel-w) * 2 + var(--space-xl)); margin-top: var(--space-lg); }
.ep-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); }
.ep-card-head > .btn { margin-inline-start: auto; } /* the action stays at the inline end when the card's title is hidden (.vh) */
.ep-card-head h2 { margin: 0; font: var(--type-body-strong); color: var(--ink); }
.ep-stack .ev-form { margin-bottom: var(--space-lg); }
.mv-note { display: block; margin-top: var(--space-sm); }
.ep-ops { margin-inline-start: auto; }
.ev-list-head { justify-content: space-between; margin-bottom: var(--space-md); } /* the Events list: New event sits at the end of the title row, as Open in Event Ops does on the event page (UX review A1) */
.ev-list-head .btn { margin-block: calc((1lh - var(--size-control-h-md)) / 2); } /* the button does not make the row taller than the h1 line, so the title keeps its top (events r1 §14) */
.ep-btns { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.ev-confirm { display: grid; gap: var(--space-sm); margin-top: var(--space-md); }
.ev-table td, .ev-table .ev-moved { white-space: normal; overflow-wrap: anywhere; }
.ev-table td { vertical-align: baseline; } /* grid render review 10 Nov: every cell's first line sits on the status tag's line */
tr.ev-open { cursor: pointer; }
button.place-item { width: 100%; background: none; border: 0; text-align: start; cursor: pointer; }
.org-pick .place-menu { width: 100%; }
.org-pick .place-item { grid-template-columns: var(--size-icon) 1fr; }

.paper-list { display: grid; gap: var(--space-xs); }
.paper { display: grid; gap: var(--space-xs); }
.card .paper-label { font: var(--type-body-strong); color: var(--ink); } /* .card p would win over the bare class */
.card .paper-none { font: var(--type-body); color: var(--muted); }
.paper-contact { margin-top: calc(var(--space-md) - var(--space-xs)); } /* the contact stands apart from the rows above it */
.ev-confirm-block { display: grid; gap: var(--space-2xs); margin-top: calc(var(--space-xl) - var(--space-md)); } /* --space-xl after the papers (the panel's own gap is --space-md) */
.ev-confirm-block .field-hint { margin-top: calc((var(--size-choice) - var(--size-field-h)) / 2); padding-inline-start: calc(var(--size-choice) + var(--space-xs)); } /* under the label's text, as the arena part options' hints */
.paper-add { cursor: pointer; }
.paper-add:has(+ input:focus-visible) { outline: var(--stroke-border-strong) solid var(--focus); outline-offset: var(--focus-offset); }
.file-acts .link { border-radius: var(--radius-sm); }
.file-acts .link:focus-visible, .file-acts .paper-add:has(+ input:focus-visible) { outline-offset: var(--space-2xs); } /* the ring clears the text of Add file and Not needed */
.file-acts .tooltip { top: auto; bottom: calc(100% + var(--space-xs)); } /* Remove opens above its button: below it would cover the next row */
.file-acts .tooltip::before { top: auto; bottom: 0; transform: translate(-50%, 50%) rotate(45deg); }
.paper:has(> .field-error) { row-gap: var(--space-2xs); }
.paper > .field-error { margin: 0 0 var(--space-sm); } /* the error reads as its own row's: close under it, a step clear of the next row */

/* ---- Event Ops (Specs/Admin Events and Event Ops r1 §4). Shared parts only: .card, .btn, .table, .tag, .tabs, .select-wrap, .empty. Colours from the Admin tokens. */
.tag.t-orange { background: var(--orange-tint); color: var(--ink); }
.tag.t-red { background: var(--red-tint); color: var(--ink); }
.nav-list a .tag.t-orange, .nav-list a .tag.t-red { font-variant-numeric: tabular-nums; }
.ops-wrap { display: grid; grid-template-columns: calc(var(--size-panel-w) - 2 * var(--space-4xl)) minmax(0, 1fr); gap: var(--space-xl); align-items: start; } /* 4px grid review 10 Nov: rail 272 */
.ops-rail { position: sticky; top: calc(var(--header-h) + var(--space-lg)); display: grid; gap: var(--space-xl); }
.ops-rail .tabs { flex-direction: column; gap: var(--space-2xs); border-bottom: 0; margin-bottom: 0; }
.ops-rail .tabs a { justify-content: space-between; gap: var(--space-xs); width: 100%; min-height: var(--size-field-h); height: var(--size-field-h); padding-inline: var(--space-sm); margin-bottom: 0; border-bottom: 0; border-radius: var(--radius-md); font: var(--type-nav); }
.ops-rail .tabs a[aria-current="page"] { background: var(--hover-tint); }
@media (hover: hover) { .ops-rail .tabs a:not([aria-current="page"]):hover { background: var(--hover-tint); text-decoration: none; } }
.ops-duty-title { font: var(--type-body-strong); color: var(--ink); padding-inline: var(--space-sm); margin-bottom: var(--space-xs); }
.ops-duty { display: grid; gap: var(--space-sm); padding-inline: var(--space-sm); font: var(--type-body-sm); color: var(--text); }
.ops-duty-note { padding-inline: var(--space-sm); margin-top: var(--space-sm); }
.ops-duty li { display: flex; justify-content: space-between; gap: var(--space-xs); }
.ops-duty strong { display: block; font: var(--type-body-strong); color: var(--ink); }
.ops-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); align-content: start; }
.ops-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); }
.ops-head .page-head { margin-bottom: 0; }
.ops-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(var(--size-panel-w) * 0.45), 1fr)); gap: var(--space-md); }
.ops-kpi { background: var(--mist); border-radius: var(--radius-md); padding: var(--space-md); display: grid; gap: var(--space-2xs); }
.ops-kpi dt { font: var(--type-body-sm); color: var(--muted); }
.ops-kpi dd { font: var(--type-h3); color: var(--ink); font-variant-numeric: tabular-nums; }
.ops-kpi dd small { font: var(--type-body-sm); color: var(--muted); }
.ops-main .card > h2 { margin-bottom: var(--space-sm); }
.ops-legend .l-g0 { background: var(--green-tint); border-color: var(--green-tint); }
.ops-legend .l-g1 { background: var(--green-mid); border-color: var(--green-mid); }
.ops-legend .l-g2 { background: var(--green-fill); border-color: var(--green-fill); }
.ops-legend .ops-swatches { gap: 0; }
.ops-legend .l-mid { background: var(--orange-mid); border-color: var(--orange); }
.ops-legend .l-over { background: var(--red-soft); border-color: var(--red-soft); }
.ops-legend .l-gm { height: var(--space-sm); background: var(--white); border-color: var(--muted); } /* the plan's gate mark */
.ops-legend .l-hs { width: var(--space-sm); height: var(--space-sm); background: var(--muted); border-color: var(--muted); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); } /* the plan's hand scanner diamond: a --space-sm square cut to a diamond (the spec's rotated square with a zero radius has no radius token; the suite's token check rejects a bare 0) */
.ops-note { font: var(--type-body-sm); color: var(--muted); }
.ops-plan { display: block; width: 100%; height: auto; max-width: calc(var(--size-panel-w) * 1.3); margin-inline: auto; }
.ops-plan polygon { stroke: var(--white); stroke-width: var(--stroke-divider); } /* a white line between tiers and sections */
.ops-plan .pl-0 { fill: color-mix(in srgb, var(--blue) 12%, var(--white)); } /* five bands from the Reports heat blues (Julia, 6 Nov: "B, five shades"): under 60, 60 to 70, 70 to 80, 80 to 90, over 90 */
.ops-plan .pl-1 { fill: color-mix(in srgb, var(--blue) 40%, var(--white)); }
.ops-plan .pl-2 { fill: color-mix(in srgb, var(--blue) 58%, var(--white)); }
.ops-plan .pl-3 { fill: color-mix(in srgb, var(--blue) 78%, var(--white)); }
.ops-plan .pl-4 { fill: var(--blue); }
.ops-plan .pl-n { fill: var(--chip-mist); }
.ops-plan .pl-floor { fill: var(--mist); stroke: var(--line); }
.ops-plan .pl-rim { fill: var(--white); stroke: var(--line); }
.ops-plan .pl-hall { fill: var(--mist); stroke: var(--line); stroke-width: var(--stroke-divider); } /* the Main entrance's reception hall, attached to the bowl (the .pl-floor look, extended) */
.ops-plan .pl-hs { fill: var(--muted); } /* a hand scanner: a diamond; decorative, the legend names it */
.ops-plan text { font: var(--type-caption); fill: var(--ink); }
.ops-legend { display: flex; flex-wrap: wrap; gap: var(--space-md); font: var(--type-body-sm); color: var(--text); margin-top: var(--space-sm); }
.ops-legend span { display: inline-flex; align-items: center; gap: var(--space-xs); }
.ops-legend i { width: var(--space-md); height: var(--space-md); border-radius: var(--radius-xs); border: var(--stroke-divider) solid var(--line); } /* 4px grid review 10 Nov: radius-xs */
.ops-legend .pl-0 { background: color-mix(in srgb, var(--blue) 12%, var(--white)); }
.ops-legend .pl-1 { background: color-mix(in srgb, var(--blue) 40%, var(--white)); }
.ops-legend .pl-2 { background: color-mix(in srgb, var(--blue) 58%, var(--white)); }
.ops-legend .pl-3 { background: color-mix(in srgb, var(--blue) 78%, var(--white)); }
.ops-legend .pl-4 { background: var(--blue); }
.ops-legend .est { background: var(--sky); }
.ops-legend .act { background: var(--blue); }
.ops-chart { display: flex; align-items: flex-end; gap: var(--space-2xs); height: calc(var(--size-panel-w) * 0.4); margin-top: var(--space-sm); padding-top: var(--space-lg); } /* the padding holds the value above the tallest bar */
.ops-chart div { position: relative; flex: 1 1 0; min-width: 0; background: var(--sky); border-radius: var(--radius-xs); min-height: var(--space-2xs); } /* 4px grid review 10 Nov: radius-xs */
.ops-chart div.act { background: var(--blue); }
.ops-chart .v { position: absolute; inset-inline: 0; bottom: 100%; text-align: center; font: var(--type-caption); color: var(--text); font-variant-numeric: tabular-nums; }
.ops-gate-name .ops-gate-flag { border: 0; cursor: default; margin-block: calc(-1 * var(--space-2xs)); } /* the mark is a button only for keyboard and screen readers (Entrances row layout r1) */
.ops-chart.is-row, .ops-ent-body .ops-chart.is-row { height: var(--space-lg); margin-top: 0; padding-top: 0; grid-column: -2 / -1; } /* MOCK: the chart at row height (hand scanners idea r1) */
.ops-chart-x { display: flex; gap: var(--space-2xs); font: var(--type-body-sm); color: var(--muted); margin-top: var(--space-2xs); font-variant-numeric: tabular-nums; }
.ops-chart-x span { flex: 1 1 0; text-align: center; }
.ops-check { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); padding-block: calc(var(--space-xs) - var(--stroke-divider)) var(--space-xs); border-top: var(--stroke-divider) solid var(--line); font: var(--type-body); color: var(--text); } /* 4px grid review 10 Nov: the rule comes off the padding-top (.ev-row, .ops-check) */
.ops-check:first-of-type { border-top: 0; padding-top: var(--space-xs); } /* 4px grid review 10 Nov: no rule, full padding */
.ops-list { display: grid; gap: var(--space-sm); font: var(--type-body); color: var(--text); padding-inline-start: var(--space-lg); list-style: disc; }
.ops-scroll { overflow-x: auto; }
.ops-cams { display: grid; grid-template-columns: repeat(auto-fit, minmax(calc(var(--size-panel-w) * 0.55), 1fr)); gap: var(--space-md); }
.ops-cam { margin: 0; border-radius: var(--radius-md); overflow: hidden; background: var(--white); display: flex; flex-direction: column; border: var(--stroke-divider) solid var(--line); } /* every tile is one structure: a 16:10 picture, then a caption of one fixed height; every tile has one caption fill */
.ops-cam video, .ops-cam .nosig { display: block; flex: none; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--navy); }
.ops-cam .nosig { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-sm); color: var(--text-on-dark); font: var(--type-body); } /* the Offline tag sits under "No signal" in the dark panel, so every caption stays on one line (designer 6 Nov) */
.ops-cam figcaption { flex: 1 0 auto; display: flex; justify-content: space-between; align-items: center; gap: var(--space-xs); min-height: calc(2lh + var(--space-xs) * 2); padding: var(--space-xs) var(--space-sm); background: var(--white); font: var(--type-body-sm); color: var(--ink); }
.ops-cam figcaption > span:first-child { min-width: 0; }
.ops-cam .tag { flex: none; white-space: nowrap; } /* a status tag never wraps or shrinks (designer 6 Nov) */
.ops-upload { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); margin-top: var(--space-md); }
.ops-upload .file-row { flex: 1 1 0; min-width: 0; }
.table tbody tr.ops-next td:first-child { font: var(--type-body-strong); }
.ops-grow { flex: 1 1 calc(var(--size-panel-w) * 0.9); min-width: 0; }
.ops-note + .ops-cams { margin-top: var(--space-md); }

/* ---- States (Julia, 3 Nov): Lucide icons, the set shadcn uses. success circle-check, warning triangle-alert, danger octagon-alert, info info. Masks, so every status keeps its one markup. */
.alert.ok::before, .alert.warn::before { content: ""; -webkit-mask: var(--state-icon) center / contain no-repeat; mask: var(--state-icon) center / contain no-repeat; }
.alert.ok::before { --state-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); background: var(--icon-success); }
.alert.warn::before { --state-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); background: var(--icon-warning); }
.tag .ic { flex: none; width: var(--size-icon-sm); height: var(--size-icon-sm); } /* the rail pills and count tags */ /* 4px grid review 10 Nov: icon-sm 16 (the 8/11 formula gives 17.45 at 24) */
/* State tag (Specs/Admin status tags r1): every status in the Admin; five kinds; the chip never wraps, its words ellipsise as a safety net */
.tag.state { display: inline-flex; align-items: center; gap: var(--space-xs); max-width: 100%; min-width: 0; padding: var(--space-2xs) var(--space-xs); border: 0; border-radius: var(--radius-sm); font: var(--type-body-sm); font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; vertical-align: middle; text-align: start; }
.tag.state .ic { flex: none; width: var(--size-icon-sm); height: var(--size-icon-sm); margin: 0; } /* outranks .dgrid dd .ic */ /* 4px grid review 10 Nov: icon-sm 16 */
.tag-words { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tag.state.t-success { background-color: var(--green-tint); } .tag.state.t-success .ic { color: var(--icon-success); }
.tag.state.t-orange { background-color: var(--orange-tint); } .tag.state.t-orange .ic { color: var(--icon-warning); }
.tag.state.t-red { background-color: var(--red-tint); } .tag.state.t-red .ic { color: var(--red); }
.tag.state.t-info, .tag.state.t-neutral { background-color: var(--chip-mist); } .tag.state.t-info .ic { color: var(--logo-blue); }
.table tbody :is(td, th) .tag { margin-block: calc(-1 * var(--space-2xs)); } /* every tag in a body cell or row heading, status or not ("Contractor" sits in the row's th): the row stays 48 */
.table tbody tr:is(.is-selected, .is-new) .tag.state:is(.t-info, .t-neutral) { background-color: var(--white); } /* chip-mist vanishes on a tinted row */
@media (hover: hover) {
  .table:not(.plain) tbody tr:not(.is-new):hover .tag.state:is(.t-info, .t-neutral) { background-color: var(--white); }
}
.tag-set { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.tag.t-orange .ic { color: var(--icon-warning); }
.tag.t-red .ic { color: var(--red); }
/* the green notification, top right */
.toast-stack.is-top { top: calc(var(--header-h) + var(--space-sm)); bottom: auto; justify-items: end; padding-inline-end: var(--space-xl); }
.toast.success { gap: var(--space-xs); padding: calc(var(--space-sm) - var(--stroke-divider)) calc(var(--space-md) - var(--stroke-divider)); border-radius: var(--radius-md); background: var(--green-tint); color: var(--ink); border: var(--stroke-divider) solid var(--green); } .toast.success .ic { flex: none; color: var(--icon-success); } /* 4px grid review 10 Nov: the border comes off the padding */
/* the stepper (Julia's sketch, 5 Nov; Specs/Admin new event stepper r3, A): five fixed 80 px columns (circle + --space-xl each side), the title centred under the circle, a flexible line between the columns that ends --space-sm from each circle. The first circle sits on the card's content edge, the last on its right one. */
.ev-steps { list-style: none; margin: 0 0 var(--space-lg); padding: 0; display: flex; gap: 0; }
.ev-steps li { display: flex; flex: 1 1 0; min-width: 0; }
.ev-steps li:last-child { flex: none; }
.ev-step-link { flex: none; width: calc(var(--size-control-h-md) * 2 / 3 + var(--space-xl) * 2); display: grid; justify-items: center; align-content: start; gap: var(--space-xs); padding: 0; margin: 0; background: none; border: 0; border-radius: var(--radius-sm); font: var(--type-body); color: var(--ink); text-align: center; white-space: nowrap; }
button.ev-step-link { cursor: pointer; }
@media (hover: hover) { button.ev-step-link:hover .ev-step-name { color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); } }
button.ev-step-link:active .ev-step-name { color: var(--logo-blue); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
.ev-steps .num { width: calc(var(--size-control-h-md) * 2 / 3); height: calc(var(--size-control-h-md) * 2 / 3); border-radius: var(--radius-full); border: var(--stroke-border) solid var(--line); display: grid; place-items: center; font: var(--type-label); color: var(--muted); flex: none; }
.ev-steps .num .ic { width: var(--size-icon); height: var(--size-icon); }
.ev-steps .done .num { background: var(--green-done); color: var(--white); border-color: var(--green-done); }
.ev-steps .current .num { background: var(--logo-blue); color: var(--white); border: var(--stroke-border-strong) solid var(--logo-blue); box-shadow: inset 0 0 0 var(--stroke-border-strong) var(--white); } /* the ring is drawn inside the 32 px box: nothing sticks out, so both gaps match */
.ev-step-line { flex: 1 1 auto; min-width: var(--space-2xl); height: var(--stroke-border-strong); margin-top: calc(var(--size-control-h-md) / 3); margin-inline: calc(var(--space-sm) - var(--space-xl)); border-radius: var(--radius-full); background: var(--line); } /* 4px grid review 10 Nov: margin 16 (was 15) */
.ev-steps .done .ev-step-line { background: var(--green); }
.ev-steps .current .ev-step-line { background: linear-gradient(to right, var(--logo-blue) 50%, var(--line) 50%); }
.ev-steps .current.is-done .num { background: var(--green-done); border-color: var(--green-done); } /* John went back to a step that is done: same ring and number as the current step, in the done green (Julia, 6 Nov: "make it appear green with the number") */
.ev-steps .current.is-done .ev-step-line { background: linear-gradient(to right, var(--green) 50%, var(--line) 50%); }
.ev-steps .current:has(+ .done) .ev-step-line { background: var(--green); } /* John went back: the step after this one is already done, so the line to it is done too */
.ev-step-name { font: var(--type-body); color: var(--ink); }
.ev-steps .current .ev-step-name { font: var(--type-body-strong); }
li:not(.current):not(.done) .ev-step-name { color: var(--muted); }
.ev-move-tools { display: flex; justify-content: flex-end; margin-block: var(--space-md); }
/* the header tabs (Julia, 3 Nov; Figma header r2): rest no fill, hover white 20%, current or open blue 30% with a 4 px bar along the bottom (drawn inside, the label does not move), keyboard focus blue 30% with the 4 px ring INSIDE the tab (the one place the ring is inside: full-height tabs and the person button) */
.nav-list a[aria-current="page"], .nav-list a:focus-visible, .updates-btn[aria-expanded="true"], .updates-btn:focus-visible, .user-btn[aria-expanded="true"], .user-btn:focus-visible { background: color-mix(in srgb, var(--blue) 30%, transparent); }
@media (hover: hover) { .nav-list a:not([aria-current="page"]):not(:focus-visible):hover, .updates-btn:not([aria-expanded="true"]):not(:focus-visible):hover, .user-btn:not([aria-expanded="true"]):not(:focus-visible):hover { background: color-mix(in srgb, var(--white) 20%, transparent); } }
.nav-list a:focus-visible, .updates-btn:focus-visible, .user-btn:focus-visible { outline: var(--stroke-focus) solid var(--blue); outline-offset: calc(-1 * var(--stroke-focus)); border-radius: var(--radius-none-focus); }
.nav-list a[aria-current="page"]::after, .updates-btn[aria-expanded="true"]::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: var(--stroke-indicator); background: var(--nav-current); }
.updates-btn .ic { width: var(--size-icon); height: var(--size-icon); }
/* the date bar (Julia, 3 Nov; Figma 291:228): every control 44, radius md, 1.5 px edge */
.date-row .btn:not(#repPrint), .ops-head .btn { min-height: var(--size-field-h); height: var(--size-field-h); padding-inline: var(--space-md); gap: var(--space-xs); }
.date-row .btn-icon { width: var(--size-field-h); padding: 0; }
.date-bar { min-height: var(--size-field-h); }
.date-row { min-height: var(--size-field-h); }
.date-bar a.btn, .date-bar a.btn:active, .date-bar a.btn:focus-visible, .date-bar #db-date { background: var(--white); border: var(--stroke-border) solid var(--field-border); }
.date-bar a.btn { color: var(--logo-blue); }
.date-bar #db-date:has(.dt-day) { padding-inline-start: calc(var(--space-xs) - var(--stroke-border)); } /* with the Today chip the left inset equals the chip's top and bottom inset, 8 from the edge (Julia, 9 Nov); without the chip the text keeps the 16 */
.date-row .dr-search { flex: 0 1 calc(var(--size-control-h-md) * 8); margin-inline-start: var(--space-md); } /* Arrivals and Events (date filter r1): the search after the date bar, 16 away, a multiple of the control height as .m-filters .place-pick */
.date-row .dr-search .field-input { width: 100%; }
.db-from { font: var(--type-body); color: var(--text); } /* Events: "From" before the date button; the bar's own gap spaces it */
.date-bar a.btn:active, .date-bar a.btn:focus-visible, .date-bar #db-date:active, .date-bar #db-date:focus-visible, .date-bar #db-date[aria-expanded="true"] { background: var(--white); border-color: var(--logo-blue); }
@media (hover: hover) {
  .date-bar a.btn:not([aria-disabled="true"]):hover:not(:active):not(:focus-visible) { background: var(--bar-hover); border-color: var(--field-border-hover); }
  .date-bar #db-date:hover:not(:active):not(:focus-visible):not([aria-expanded="true"]) { background: var(--white); border-color: var(--field-border-hover); }
  .place-trigger:hover:not(:active):not(:focus-visible):not([aria-expanded="true"]) { background: var(--white); border-color: var(--field-border-hover); }
}
.place-trigger { min-width: calc(var(--size-panel-w) * 0.45); justify-content: space-between; }
.place-trigger, .place-trigger:active, .place-trigger:focus-visible, .place-trigger[aria-expanded="true"] { background: var(--white); border: var(--stroke-border) solid var(--field-border); border-radius: var(--radius-md); }
.place-trigger:active, .place-trigger:focus-visible, .place-trigger[aria-expanded="true"] { border-color: var(--logo-blue); }
.ops-top .ops-head { margin-bottom: 0; }
.ops-top .org-head { margin-top: var(--space-md); } /* the controls, the title and the meta line are one plain block: controls to title md (16, measured), title to meta xs (.org-meta), meta to the first card xl (the page gap) */
#opsTitle { font: var(--type-page-title); }
.ops-head .place-trigger, .rep-tools .place-trigger { font: var(--type-body-strong); } /* Event Ops and the Reports period control: a control never reads bigger than the content it filters (Julia, 5 Nov) */
.ops-top .org-meta { margin-bottom: 0; }
/* Event Ops header facts (Admin Event Ops overview r4 §2.2, §2.3): a list of tags; the meter is a tag with a green fill behind the text */
.ops-facts { display: flex; flex-wrap: wrap; gap: var(--space-xs); list-style: none; padding: 0; }
.tag.t-fact { background: color-mix(in srgb, var(--logo-blue) 10%, var(--white)); color: var(--ink); font-variant-numeric: tabular-nums; }
.tag.t-meter { --fill: 0%; background: linear-gradient(to right, var(--green-tint) var(--fill), var(--white) var(--fill)); box-shadow: inset 0 0 0 var(--stroke-divider) var(--line); }
.ops-facts .row-link { color: var(--logo-blue); text-underline-offset: var(--stroke-underline-offset); }
/* Needs attention (Overview rebuild): Issue and Owner; academy rows add a status tag and an Actions menu. The Event Ops list is read-only: one column (gate issues only r1) */
.ops-att li { display: grid; grid-template-columns: minmax(0, 1fr) auto var(--size-control-sm); gap: var(--space-sm); align-items: center; padding-block: calc(var(--space-2xs) - var(--stroke-divider)) var(--space-2xs); border-top: var(--stroke-divider) solid var(--line); font: var(--type-body); color: var(--ink); } /* 4px grid review 10 Nov: the rule comes off the padding-top */
.ops-att li:first-child { border-top: 0; padding-top: var(--space-2xs); } /* 4px grid review 10 Nov: no rule, full padding */
.ops-att-read li { grid-template-columns: minmax(0, 1fr); }
.ops-att-main { display: grid; min-width: 0; }
.ops-att .row-link { color: var(--ink); text-decoration: none; min-width: 0; }
@media (hover: hover) { .ops-att a.row-link:hover { text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); } }
.ops-att-owner { font: var(--type-body-sm); color: var(--muted); }
.ops-att-owner .nw, .decision .dgrid .nw, .org-lanes .dgrid .nw { white-space: nowrap; } /* a sub line breaks only at a dot, so "· 1 Nov" never stands alone */
.org-main .ops-att-main > span:first-child { font: var(--type-body-strong); color: var(--ink); } /* on an organisation's page the person leads the row (Event Ops' rows keep the plain name) */
.ops-att li > .alert { grid-column: 1 / -1; } /* the inline confirm spans the row */
.org-main .ev-form { margin-top: var(--space-md); } /* an invite form under the list or the count line */
.ops-actions { position: relative; justify-self: end; }
.ops-actions .btn-icon { width: var(--size-control-sm); height: var(--size-control-sm); min-height: 0; }
.ops-actions .btn-icon[aria-expanded="true"] .tooltip, .ops-actions.tips-off .tooltip { opacity: 0; visibility: hidden; pointer-events: none; }
.ops-actions .place-menu { inset-inline-start: auto; inset-inline-end: 0; z-index: var(--z-nav); }
.ops-att + .ops-note, .ops-note + .ops-note, .ops-note + .ops-att { margin-top: var(--space-sm); }
.ops-att + .ops-cams { margin-top: var(--space-md); }
.ops-att + .ops-note + .ops-scroll, .ops-note + .ops-scroll { margin-top: var(--space-md); }
/* Staff (Events and Event Ops r1 §13): a tbody a lead; the lead row strong, its roles indented under it */
.ops-staff.is-sheet :is(th, td):is(:nth-child(3), :nth-child(4)) { display: none; } .ops-staff.is-sheet tfoot { display: none; } /* with the Staff column hidden the "All" row had no figure (UX review 8 Nov; designer's should-fix) */ /* a roster Sheet is open: Role, Person and Status only, as Members' list does with its Sheet */
.ops-staff tbody tr.ops-lead th, .ops-staff tbody tr.ops-lead td { font: var(--type-body-strong); color: var(--ink); }
.ops-staff tbody tr.ops-lead td.num { font-variant-numeric: tabular-nums; }
.ops-staff th.ops-role { padding-inline-start: calc(var(--space-md) + var(--space-lg)); }
/* tooltips with a host (the gate labels on the plan): hover, keyboard focus or a tap shows it, Escape hides it, the pointer can move onto it (WCAG 1.4.13) */
.tip-host { position: relative; display: inline-flex; }
.tip-host:is(:hover, :has(:focus-visible), .is-open) .tooltip { opacity: 1; visibility: visible; pointer-events: auto; }
.tip-host.tips-off .tooltip { opacity: 0; visibility: hidden; pointer-events: none; }
.tip-host .tooltip::after { content: ""; position: absolute; inset-inline: 0; top: calc(-1 * var(--space-xs)); height: var(--space-xs); }
.tip-host.tip-end .tooltip { inset-inline-start: auto; inset-inline-end: 0; transform: none; }
.tip-host.tip-end .tooltip::before { inset-inline-start: auto; inset-inline-end: var(--space-md); transform: translate(50%, -50%) rotate(45deg); }
.tip-host.tip-start .tooltip { inset-inline-start: 0; transform: none; }
.tip-host.tip-start .tooltip::before { inset-inline-start: var(--space-md); }
.toast .link { min-height: 0; margin-inline-start: var(--space-md); pointer-events: auto; }
/* the header counters (Figma 297:187): at least 32 square, growing with the number */
.tag.count { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs); min-width: var(--size-marker); min-height: var(--size-marker); padding: var(--space-2xs) var(--space-xs); margin: 0; border-radius: var(--radius-sm); font: var(--type-body-sm); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--logo-blue); } /* the one header counter (Event Ops, Members, Updates): host, gap xs, then this tag; no sign (Count tag r1; gate issues only r1) */
.tag.count .ic { color: var(--logo-blue); } /* the sign after the number: logo blue, the size and stroke of the chip icons (Julia, 3 Nov) */
/* Staff user (Figma header r2): name and chevron over the role, aligned to the end, no underline at any state; fills and the inside ring are with the tabs above */
/* Overview: Gate load beside the Arena plan */
.ops-main .ops-cams { grid-template-columns: repeat(auto-fill, minmax(calc(var(--size-panel-w) * 0.5), 1fr)); }
.ops-gate-list { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: var(--space-2xs); } /* the rows of one entrance, on the card's three columns (label, bars, figure) so every bar lines up, across both entrances and the slot times */
.ops-gate-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; white-space: nowrap; } /* one line a gate: the label, the bar, the figure; never wraps (designer fix 1, 5 Nov) */
.ops-gate-label { display: grid; min-width: 0; }
.ops-gate-row > .ops-segs, .ops-gate-row > .ops-load-times { grid-column: -2 / -1; } /* the bars are the last track of the card */
.ops-ent-card .ops-note { max-width: none; }
.ops-ent-body { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--space-sm); align-content: start; margin-top: 0; } /* Entrances r2 §2.2: label, bars; the bars are always the last track and fill it, whatever the window */
.ops-ent-body.has-fig { grid-template-columns: auto auto minmax(0, 1fr); } /* during the event: label, figure, bars */
.ops-empty { margin: var(--space-sm) 0 0; }
.ops-ent-card > h2 + .ops-empty { margin-top: 0; }
.ops-empty + .ops-ent-body { margin-top: var(--space-md); }
.ops-ent { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-content: start; }
.ops-ent + .ops-ent { margin-top: var(--space-xl); }
.ops-ent > * { grid-column: 1 / -1; }
.ops-ent-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2xs) var(--space-sm); margin: 0 0 var(--space-xs); font: var(--type-body-strong); color: var(--ink); } /* the entrance's name, its gates, and its figures at the inline end */
.ops-ent-head .ops-lanes-line { margin-inline-end: auto; }
.ops-ent-fig { font: var(--type-body-sm); color: var(--muted); font-variant-numeric: tabular-nums; } /* beside the heading it sits at the inline end (the gates line takes the space); wrapped onto its own line it starts at the left edge under the heading, a 2xs below it (designer 6 Nov) */
/* the attention row inside an entrance: one hug-width orange band with the sentence alone (Admin Event Ops overview r4 §2.9) */
.ops-ent .ops-att { display: grid; justify-items: start; gap: var(--space-2xs); margin: 0 0 var(--space-md); }
.ops-ent .ops-att li { display: block; max-width: 100%; padding: var(--space-2xs) var(--space-xs); border-top: 0; border-radius: var(--radius-sm); background: var(--orange-tint); font: var(--type-body); color: var(--ink); }
.ops-ent .ops-att-main { display: inline; }
.ops-gate-key > span { white-space: nowrap; } /* legend items: "Over 100%" stays on one line at 1280 */
.ops-ent .ops-gate-list { margin: 0; }
.ops-gate-fig { display: flex; justify-content: flex-end; align-items: center; font: var(--type-body-sm); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; } /* Entrances r2 §5: the entered count, with the invalid chip before it, on one line */
.ops-axis { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; margin-top: var(--space-2xs); }
.ops-axis > * { grid-column: -2 / -1; }
.ops-axis-now { position: relative; font: var(--type-body-sm); height: 1lh; } /* the clock pill, under the now line at its x (ongoing) */
.ops-axis-now .now-pill { top: 0; inset-inline-end: auto; transform: translateX(-50%); }
.table th.ops-rowgroup { font: var(--type-body-strong); color: var(--ink); text-align: start; padding: var(--space-xl) var(--space-md) var(--space-2xs); border-bottom: 0; } /* a group heading: weight and room above, no rule (Reports table hierarchy r1 §2) */
.table tbody:first-of-type > tr:first-child > th.ops-rowgroup { padding-top: var(--space-sm); }
.table th.ops-rowgroup .rowgroup-meta { font: var(--type-body-sm); color: var(--muted); } /* the unit: quiet, inline in the heading */
.ops-plan .pl-gm { fill: var(--white); stroke: var(--muted); stroke-width: var(--stroke-divider); } /* a gate in an entrance gap (decorative; the pin's tooltip says the words) */
.ops-plan .pl-gm.warn { fill: var(--orange-tint); stroke: var(--orange); }
.ops-gate-name { display: inline-flex; align-items: center; font: var(--type-label); color: var(--ink); }
.ops-gate-flag.tag { margin-inline-start: var(--space-2xs); box-sizing: border-box; inline-size: var(--space-xl); block-size: var(--space-xl); padding: 0; justify-content: center; } /* icon-only error or warning mark after the gate name (Admin Event Ops overview r4 §2.10): a 24 by 24 box (Julia, 9 Nov: "make error and warning icons into 24x24 px box") */
.ops-gate-key .ops-gate-flag + .ops-gate-flag { margin-inline-start: calc(var(--space-2xs) - var(--space-xs)); } /* the legend's two swatches sit 2xs apart inside the item's xs gap (Entrances refused icons r1 §7) */
.ops-segs { position: relative; align-self: center; height: var(--space-lg); display: flex; gap: var(--space-2xs); }
.ops-segs .seg { flex: 1 1 0; border-radius: var(--radius-xs); } /* 4px grid review 10 Nov: radius-xs */
.ops-segs .seg[data-band="g0"] { background: var(--green-tint); box-shadow: inset 0 0 0 var(--stroke-divider) var(--line); } /* the palest band gets a hairline so it reads on white */
.ops-segs .seg[data-band="g1"] { background: var(--green-mid); }
.ops-segs .seg[data-band="g2"] { background: var(--green-fill); }
.ops-segs .seg[data-band="mid"] { background: var(--orange-mid); box-shadow: inset 0 0 0 var(--stroke-divider) var(--orange); } /* Julia's own draft of the Overview (Figma 390:3; 6 Nov: "My draft"): the two busy bands are softer, the orange keeps its edge */
.ops-segs .seg[data-band="over"] { background: var(--red-soft); }
.ops-segs .seg[data-band="off"] { background: var(--mist); box-shadow: inset 0 0 0 var(--stroke-divider) var(--line); } /* a gate whose scanner is not working: the flag icon and the label carry it too */
.ops-now-plot { grid-column: -2 / -1; position: relative; pointer-events: none; z-index: 1; } /* the bar column of one entrance: one line through its rows at the clock (placed on the rows it spans, inline) */
.ops-now-plot .now-bar { inset-inline: auto; inset-block: 0; top: 0; border-top: 0; border-left: var(--stroke-border-strong) solid var(--ink); transform: translateX(-50%); }
.ops-now-pill { transform: translateX(-50%); }
.ops-load-times { display: flex; gap: var(--space-2xs); font: var(--type-body-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.ops-load-times span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; }
.ops-lanes-line { font: var(--type-body-sm); color: var(--text); }
.ops-gate-key { grid-column: 1 / -1; margin-top: var(--space-md); row-gap: var(--space-xs); }
#opsExitWhich { margin-top: var(--space-md); }
.ops-split.ops-split-stretch { align-items: stretch; }
.ops-plan-wrap { position: relative; max-width: calc(var(--size-panel-w) * 0.8); margin-inline: auto; }
.ops-plan-wrap .ops-plan { max-width: none; }
.ops-plan-stage { position: absolute; left: 50%; top: 71.3%; transform: translate(-50%, -50%); font: var(--type-caption); color: var(--ink); pointer-events: none; } /* HTML, so it stays at its size when the plan scales (type-caption, 12) */
.ops-plan-card { display: flex; flex-direction: column; }
.ops-plan-card .ops-plan-wrap { width: 100%; margin-block: var(--space-md) 0; }
.ops-plan-card .ops-legend { row-gap: var(--space-sm); } .ops-plan-card .ops-legend + .ops-legend-marks { margin-top: var(--space-md); } /* the marks' key sits close under the bands' key */
.ops-plan-card .ops-legend:not(.ops-legend + .ops-legend-marks), .ops-plan-wrap + .ops-legend { margin-top: var(--space-lg); } /* the legend sits right under the plan; spare height in the card stays below it (Julia, 6 Nov: "B, under content") */
.ops-dash > .ops-plan-card { align-self: stretch; }
.ops-dash > .ops-ent-card { align-self: stretch; display: flex; flex-direction: column; } /* the two cards stay one height; the key sits right under the last gate row and spare height stays below it (Julia, 6 Nov: "B, under content") */
.pl-gate-host { position: absolute; transform: translate(-50%, -50%); z-index: 1; }
.pl-gate { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: var(--size-choice); height: var(--size-choice); padding: 0; padding-inline: var(--space-xs); border: var(--stroke-divider) solid var(--line); border-radius: var(--radius-sm); background: var(--white); font: var(--type-caption); color: var(--ink); cursor: default; }
.pl-gate-host .tooltip { white-space: normal; width: max-content; max-width: calc(var(--size-panel-w) * 0.8); text-wrap: balance; } /* a long tooltip wraps instead of running past the card edge, in even lines, never a lone word (staff names r2) */
.pl-gate.warn { background: var(--orange-tint); border-color: var(--orange); }
@media (hover: hover) { .pl-gate:hover { background: var(--hover-tint); } }
/* Overview: Entrances and the plan (and with cameras the Cameras) in one layout-only grid (Entrances card r2 §2.1): one rule from 1200 up, 1.6 : 1 */
.ops-dash { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1.6fr) minmax(var(--size-panel-w), 1fr); grid-template-areas: "ent plan"; align-items: start; }
.ops-dash.has-cam { grid-template-areas: "ent plan" "cam cam"; }
.ops-dash > .ops-cam-card { grid-area: cam; } .ops-dash > .ops-ent-card { grid-area: ent; }
.ops-dash > .ops-plan-card { grid-area: plan; }
@media (min-width: 1600px) { .ops-dash .ops-plan-wrap { max-width: calc(var(--size-panel-w) * 1.6); } } /* ds-allow: from 1600 the plan grows into its wider column */
@media (min-width: 2560px) { .ops-dash.is-on.has-cam { grid-template-columns: minmax(calc(var(--size-panel-w) * 1.35), 1.6fr) minmax(var(--size-panel-w), 1fr) 2fr; grid-template-areas: "ent plan cam"; } .ops-dash.is-on .ops-cams { grid-template-columns: repeat(auto-fill, minmax(calc(var(--size-panel-w) * 0.7), 1fr)); } } /* ds-allow: very wide windows add a third column, for the ongoing event only */
.ops-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-xl); align-items: start; } /* Master panel: the exit card left, the plan right */
.ops-split-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-width: 0; }
.ops-main .ops-split .ops-cams { grid-template-columns: repeat(auto-fill, minmax(calc(var(--size-panel-w) * 0.4), 1fr)); }
.ops-main .ops-cams.ops-wall { grid-template-columns: repeat(auto-fill, minmax(max(calc(var(--size-panel-w) * 0.55), calc((100% - 6 * var(--space-md)) / 6)), 1fr)); } /* the wall on Cameras and gates: tiles at least 220 wide, at most six a row (eleven = 6 + 5); the sixth column keeps one spare gap so rounding cannot drop it */
.ops-main .table td { white-space: nowrap; } /* Shift, Person, Status and Owner stay on one line; only the cells marked wrap (Duty, Plan) wrap */
.ops-main .table td.wrap { white-space: normal; }
.ops-cam-pager .btn-icon { margin-block: calc(-1 * var(--space-xs)); } /* the arrows do not make the heading row taller */ /* 4px grid review 10 Nov: -8, on the grid (was -10); the heading row is 28 high */
.rep-arr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-xl); row-gap: var(--space-xl); }
@media (max-width: 1199px) { .ops-split { grid-template-columns: minmax(0, 1fr); } .ops-dash, .ops-dash.has-cam { grid-template-columns: minmax(0, 1fr); } .ops-dash { grid-template-areas: "ent" "plan"; } .ops-dash.has-cam { grid-template-areas: "ent" "plan" "cam"; } .ops-main .ops-cams, .ops-main .ops-cams.ops-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rep-arr { grid-template-columns: minmax(0, 1fr); } } /* ds-allow: narrow windows stack the cards, two camera columns */
.ops-cam-pager { display: flex; align-items: center; gap: var(--space-md); }
.ep-card-head .btn-icon { width: var(--size-field-h); height: var(--size-field-h); min-height: var(--size-field-h); padding: 0; }
.ops-cam-pager #camNext .tooltip { inset-inline-start: auto; inset-inline-end: 0; transform: none; } /* the last control in a full-width card: its tooltip opens to the left, never past the window */
.ops-cam-pager #camNext .tooltip::before { inset-inline-start: auto; inset-inline-end: calc(var(--size-field-h) / 2); transform: translate(50%, -50%) rotate(45deg); }
.ops-cam-pager.tips-off .tooltip { opacity: 0; visibility: hidden; pointer-events: none; }
.ops-top .ops-head { gap: 0; }
@media (max-width: 1359px) { .nav-list a, .updates-btn, .user-btn { padding-inline: var(--space-sm); } } /* ds-allow: the six tabs with three counters fit at 1280 (switchable roles r1 §5) */

/* Entrances card r2: the top row, the values line, the key */
.ops-all { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end; }
.ops-all > .ops-gate-name { grid-column: 1 / -2; align-self: end; }
.ops-all-plot { grid-column: -2 / -1; position: relative; }
.ops-ent-body .ops-chart { height: calc(var(--space-3xl) + var(--space-lg)); padding-top: var(--space-lg); margin-top: 0; }
.ops-ent-body .ops-chart .v { background: var(--white); z-index: 2; }
.ops-all-plot .ops-now-line { position: absolute; inset-inline: auto; inset-block: 0; top: 0; border-top: 0; border-left: var(--stroke-border-strong) solid var(--ink); transform: translateX(-50%); z-index: 1; pointer-events: none; }
.ops-ent-body > .ops-axis + .ops-ent { margin-top: var(--space-xl); }
.ops-vals { font: var(--type-caption); color: var(--text); }
.ops-vals-row .ops-vals-label { font: var(--type-caption); color: var(--muted); }
.ops-segs-note { position: absolute; inset: 0; display: grid; place-items: center; background: var(--mist); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 var(--stroke-divider) var(--line); font: var(--type-caption); color: var(--text); pointer-events: none; }
.ops-ent-key { grid-column: 1 / -1; display: grid; gap: var(--space-xs); margin-top: var(--space-lg); }
@media (max-width: 1439px) { .ops-ent-body.has-fig .ops-axis .ops-load-times span:nth-child(even) { visibility: hidden; } } /* ds-allow: during the event the bar column is narrower, so every second time is named (Admin Event Ops overview r4 §2.7) */
.ops-ent-key .ops-legend { margin-top: 0; }
.ops-legend .l-off { background: var(--mist); border-color: var(--line); }
.ops-all .ops-gate-name { white-space: nowrap; }
.ops-ent-card .ops-gate-name { font: var(--type-body-sm); color: var(--ink); } /* "All entrances" and the gate labels are row labels, not leads (entrances card r3 §2.2) */
.ops-ent-body .ops-axis .ops-load-times { font: var(--type-caption); } /* the axis is not bigger than the data */

/* ---- Reports (Specs/Admin Reports r1): one card a view; tokens only. Pool use, Events and Plans sold share the bar rows and the key. */
.rep-tools { margin-bottom: var(--space-md); }
.rep-tools:not(.rep-sub) { position: sticky; top: var(--header-h); z-index: 2; background: var(--white); padding-block: var(--space-sm); margin-block: calc(-1 * var(--space-sm)) var(--space-xl); border-bottom: var(--stroke-divider) solid var(--line); padding-block-end: calc(var(--space-sm) - var(--stroke-divider)); } /* the period and its dates stay in view while the cards scroll, so every figure keeps its period (Julia 10 Nov: "fix the upper panel with date range") */ /* 4px grid review 10 Nov: the rule comes off the padding: bar 72 */
main:has(> .rep-tools:not(.rep-sub)) { --rep-tools-h: calc(var(--size-control-h-md) + 2 * var(--space-sm) - var(--stroke-divider)); } /* 4px grid review 10 Nov: the bar is 71 high: the rule is inside the padding */
main:has(> .rep-tools:not(.rep-sub)) .card.report .table thead th { top: calc(var(--header-h) + var(--rep-tools-h)); } /* a table's head sticks under the period row, not behind it */
.rep-tools #repPrint { margin-inline-start: auto; }
.rep-tools .ops-note { margin: 0; max-width: none; } /* the dates note sits beside the control, once for the whole page (r3 A1) */
.rep-tools.rep-sub { margin-bottom: var(--space-sm); } /* the place filter of a card stands where its sub-line would */
html:not([data-fi="key"]) :is(.rep-tools, .card.report) .place-trigger:focus-visible:not(:active):not([aria-expanded="true"]) { outline: none; border-color: var(--field-border); } /* the ring shows only on Tab, never after a click (r3 A2) */
.rep-print-head { display: none; }
.card.report + .card.report { margin-top: var(--space-xl); }
.rep-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); align-items: stretch; } /* Plans sold: the chart card left, its table card right, the cards one height and their content at the top, as the Entrances and Arena plan row (UX review, Julia 6 Nov) */
.rep-pair > .card.report + .card.report { margin-top: 0; }
.rep-pair + .card.report { margin-top: var(--space-xl); }
.card.report > h2.vh + .ops-scroll { margin-top: 0; } /* a card whose title is for screen readers starts with its table */
@media (max-width: 1439px) { .rep-pair { grid-template-columns: minmax(0, 1fr); } } /* ds-allow: the five-column table needs about 640; a card is 556 wide inside at 1280, where its labels would wrap, so below 1440 the cards stack, chart first */
.card.report .ops-note { max-width: none; }
.card.report .ops-legend { margin-top: var(--space-md); }
.rep-chart { margin-top: var(--space-md); }
.card.report .ops-scroll { margin-top: var(--space-xl); }
.card.report .rep-chart .ops-scroll { margin-top: 0; }
.card.report .rep-export-row { margin-top: var(--space-xl); } /* Download CSV sits --space-xl below the last element of every card; that element's own bottom margin is zeroed so nothing adds (r3 corrections 3, 23) */
.card.report > :has(+ .rep-export-row), .card.report > :has(+ .ops-scroll[hidden] + .rep-export-row) { margin-bottom: 0; }
.card.report > p + .doc { margin-top: var(--space-xl); }
.card.report .doc .ops-note + .lead { margin-top: var(--space-sm); }
.card.report .table:not(.heat), .table.measure { width: auto; min-width: min(100%, calc(var(--size-panel-w) * 1.6)); } /* a reference table sizes to its content, at least 640, never wider than the card: the label stays near its numbers */
.card.report .table:not(.heat) tbody th, .card.report .table:not(.heat) td { height: auto; padding-block: var(--space-xs) calc(var(--space-xs) - var(--stroke-divider)); border-bottom: var(--stroke-divider) solid var(--line); } /* a divider under every row (Julia, 6 Nov: "use separators for rows") */ /* 4px grid review 10 Nov: the rule comes off the padding: row 40 */
.card.report .table:not(.heat) tbody th.ops-rowgroup { border-bottom: 0; } /* a group's heading row carries no divider of its own */
.card.report .table:not(.heat) tbody tr:has(+ tr.total) > * { border-bottom: 0; padding-bottom: var(--space-xs); } /* the row above a Total: the Total's own rule above is its divider */ /* 4px grid review 10 Nov: no rule, so the full padding */
.card.report .table:not(.heat) th.ops-rowgroup { padding-block: var(--space-xl) var(--space-2xs); }
.card.report .table:not(.heat) tbody:first-of-type > tr:first-child > th.ops-rowgroup { padding-top: var(--space-sm); }
.card.report .table:not(.heat) tr.total th, .card.report .table:not(.heat) tr.total td { font: var(--type-body-strong); color: var(--ink); border-top: var(--stroke-divider) solid var(--line); border-bottom: 0; padding-block: calc(var(--space-xs) - var(--stroke-divider)) var(--space-xs); } /* the total closes its group with a rule above, not with weight */ /* 4px grid review 10 Nov: the rule above comes off the padding-top */
.card.report .table tr.is-zero th, .card.report .table tr.is-zero td { color: var(--muted); }
.card.report .empty { margin-top: var(--space-md); }
/* heat table: the number in every cell, one hue in three steps, an event in the planner's event look */
.heat td { height: auto; padding: 0; border: var(--stroke-border-strong) solid var(--white); }
.heat td[data-heat="quiet"], .ops-legend i[data-heat="quiet"] { background: var(--chip-mist); }
.heat td[data-heat="fair"], .ops-legend i[data-heat="fair"] { background: var(--sky); }
.heat td[data-heat="busy"], .ops-legend i[data-heat="busy"] { background: var(--blue); }
.heat td[data-step="1"], .ops-legend i[data-step="1"], .ops-segs .seg[data-step="1"] { background: color-mix(in srgb, var(--blue) 12%, var(--white)); } /* six fills of the one blue, two inside each word band: a fuller hour is always darker; the ink number reaches 4.5:1 on every step (Julia, 6 Nov: "use more gradations of color here") */
.heat td[data-step="2"], .ops-legend i[data-step="2"], .ops-segs .seg[data-step="2"] { background: color-mix(in srgb, var(--blue) 24%, var(--white)); }
.heat td[data-step="3"], .ops-legend i[data-step="3"], .ops-segs .seg[data-step="3"] { background: color-mix(in srgb, var(--blue) 40%, var(--white)); }
.heat td[data-step="4"], .ops-legend i[data-step="4"], .ops-segs .seg[data-step="4"] { background: color-mix(in srgb, var(--blue) 58%, var(--white)); }
.heat td[data-step="5"], .ops-legend i[data-step="5"], .ops-segs .seg[data-step="5"] { background: color-mix(in srgb, var(--blue) 78%, var(--white)); }
.heat td[data-step="6"], .ops-legend i[data-step="6"], .ops-segs .seg[data-step="6"] { background: var(--blue); } /* Entrances polish 10 Nov: the hand scanner cells reuse the six steps */
.heat td[data-heat="event"], .ops-legend i[data-heat="event"] { background: var(--orange-tint); box-shadow: inset 0 0 0 var(--stroke-border) var(--orange); }
.heat td[data-heat="none"] { background: var(--white); }
.heat td[data-heat="none"] .heat-cell { color: var(--muted); }
.heat td.avg, .heat tr.total td { background: var(--white); font: var(--type-body-strong); color: var(--ink); padding: var(--space-xs); }
.heat-cell { display: flex; align-items: center; justify-content: center; min-height: var(--size-control-sm); padding: var(--space-2xs) var(--space-xs); font: var(--type-body-sm); font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; }
.heat td:has(> a.heat-cell:active) { box-shadow: inset 0 0 0 var(--stroke-border-strong) var(--ink); } /* hover, press and focus draw on the coloured cell itself, so the ring fits it edge to edge (Julia 10 Nov: "bad hover for the cell, doesn't fit") */
a.heat-cell:focus-visible { outline: none; }
.heat td:has(> a.heat-cell:focus-visible) { box-shadow: inset 0 0 0 var(--stroke-focus) var(--logo-blue); }
@media (hover: hover) { .heat td:has(> a.heat-cell:hover:not(:active)):not(:has(> a.heat-cell:focus-visible)) { box-shadow: inset 0 0 0 var(--stroke-border) var(--logo-blue); } }
.heat tr.total th { background: var(--white); }
/* bar rows: the Entrances card's three columns (label, bar, figure) */
.rep-bars { max-width: calc(var(--size-panel-w) * 1.6); display: grid; grid-template-columns: calc(var(--size-panel-w) * 0.6) minmax(0, 1fr) auto; column-gap: var(--space-sm); row-gap: var(--space-md); align-content: start; }
.rep-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.rep-label { display: grid; min-width: 0; }
.rep-label .ops-note { max-width: none; }
.rep-label .row-link { display: inline-flex; align-items: center; color: var(--logo-blue); font: var(--type-body-strong); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
.rep-bars .ops-segs { align-self: center; }
.rep-bars .ops-gate-name { font: var(--type-body); color: var(--text); } /* a bar's label reads as plain text, not as a row link (r3 C2, C9) */
.rep-bars.is-rows { row-gap: 0; } /* a divider under every row, the last included (r3 corrections 2, 12) */
.rep-bars.is-rows .rep-row { --p: 0; padding-block: var(--space-sm) calc(var(--space-sm) - var(--stroke-divider)); border-bottom: var(--stroke-divider) solid var(--line); } /* --p is the row's share of the longest, set on each row */ /* 4px grid review 10 Nov: the rule comes off the padding: row 56 */
.rep-bars.is-rows .ops-gate-fig { font: var(--type-body); color: var(--text); font-variant-numeric: tabular-nums; justify-content: flex-end; } /* the figures sit in end-aligned columns */
.rep-bars.is-rows .ops-gate-fig.rep-muted { color: var(--muted); }
.rep-bars.is-two-fig { grid-template-columns: calc(var(--size-panel-w) * 0.6) minmax(0, 1fr) auto auto; }
.rep-bars.is-rows .ops-segs { justify-self: start; inline-size: calc(var(--p) * 100%); } /* true bar length: --p of the track, no minimum; a zero row has no bar (r3 corrections 2, 16) */
.rep-bars.is-rows .ops-segs .seg[data-part] { min-inline-size: 0; }
.rep-bars.is-rows .rep-row, .rep-bars.is-rows .rep-head { padding-inline: var(--space-md); } /* grid render review 10 Nov: the same inset as .table.report cells */
.rep-bars.is-rows .rep-head span { font: var(--type-body-sm); color: var(--muted); text-align: end; white-space: nowrap; } /* the one head row, the table head look */
.rep-bars.is-rows .rep-head span:nth-child(1) { grid-column: 3; }
.rep-bars.is-rows .rep-head span:nth-child(2) { grid-column: 4; }
.rep-bars.is-rows .rep-row.is-total { border-bottom: 0; padding-bottom: var(--space-sm); } /* the Total is the last grid row: strong, ink, no bar, no rule beneath it (r3 corrections 2, 13) */ /* 4px grid review 10 Nov: no rule, so the full padding */
.rep-bars.is-rows .rep-row.is-total .rep-tot-name { grid-column: 1; font: var(--type-body-strong); color: var(--ink); }
.rep-bars.is-rows .rep-row.is-total .ops-gate-fig { font: var(--type-body-strong); color: var(--ink); }
.rep-bars.is-rows .rep-row.is-total .ops-gate-fig:nth-of-type(1) { grid-column: 3; }
.rep-bars.is-rows .rep-row.is-total .ops-gate-fig:nth-of-type(2) { grid-column: 4; }
.rep-bars.is-two-fig .is-aed { margin-inline-start: calc(var(--space-xl) - var(--space-sm)); } /* --space-xl between the Sold and AED columns, so 90 and 45,000 never read as one number (r3 corrections 3, 21) */
.ops-segs.is-tall { height: var(--size-control-sm); }
.ops-segs.is-track { background: var(--mist); box-shadow: inset 0 0 0 var(--stroke-divider) var(--line); border-radius: var(--radius-sm); }
.ops-segs .seg[data-part] { display: grid; place-items: center; min-inline-size: var(--space-2xl); font: var(--type-body-sm); font-variant-numeric: tabular-nums; color: var(--ink); }
.ops-segs.is-track .seg[data-part] { flex: none; }
.ops-segs .seg[data-part="member"], .ops-legend i[data-part="member"] { background: var(--blue-fill); }
/* Reports fills are light, with the ink number printed in each (Julia, 6 Nov: "use lighter blue here for bars", "colors are too bright to read comfortably"): tints of the same hues, no new hex */
.ops-segs .seg[data-part="academy"], .ops-legend i[data-part="academy"] { background: color-mix(in srgb, var(--logo-blue) 30%, var(--white)); }
.ops-segs .seg[data-part="event"], .ops-legend i[data-part="event"] { background: var(--orange-tint); box-shadow: inset 0 0 0 var(--stroke-border) var(--orange); } /* the heat table's event look */
.ops-segs .seg[data-part="free"], .ops-segs .seg[data-part="offline"], .ops-legend i[data-part="free"], .ops-legend i[data-part="offline"] { background: var(--mist); box-shadow: inset 0 0 0 var(--stroke-divider) var(--line); }
.ops-segs .seg[data-part="rebooked"], .ops-legend i[data-part="rebooked"], .ops-segs .seg[data-part="count"] { background: var(--sky); } /* the light blue of the Entrances estimate bars; the value stays printed beside the bar */
.ops-segs .seg[data-part="yet"], .ops-legend i[data-part="yet"] { background: var(--orange-tint); box-shadow: inset 0 0 0 var(--stroke-border) var(--orange); } /* still the warmest of the three: it is the part that needs action */
.is-events .seg[data-part="member"], .ops-legend.is-events i[data-part="member"] { background: var(--line); }
/* arrivals per 30 minutes: the Overview's chart with a capacity line */
.rep-arr .ops-chart { position: relative; padding-top: 0; margin-top: var(--space-xl); }
.rep-cap { position: absolute; inset-inline: 0; height: 0; border-top: var(--stroke-border-strong) dashed var(--ink); pointer-events: none; }
.rep-arr .ops-chart .v { z-index: 1; inset-inline: auto; inset-inline-start: 50%; transform: translateX(-50%); padding-inline: var(--space-2xs); background: var(--white); } /* the value sits on a white chip, so the capacity line breaks behind it */
.card.report .table .nowrap { white-space: nowrap; }
.rep-cap > span { position: absolute; inset-inline-end: 0; top: 0; transform: translateY(-50%); padding: 0 var(--space-xs); background: var(--white); font: var(--type-caption); color: var(--ink); white-space: nowrap; }
.ops-chart-x .th-sub { display: block; font: var(--type-caption); color: var(--muted); }
/* ---- Reports events and income (Specs/Admin Reports events and income r1) */
.rep-pair + .rep-pair, .card.report + .rep-pair { margin-top: var(--space-xl); }
.table [hidden] { display: none; } /* a hidden column stays in the table, so the file keeps it */
.card.report .table:not(.heat) tbody tr:has(+ tr.is-sub) > * { border-bottom: 0; padding-bottom: var(--space-xs); } /* a row that has breakdown rows under it carries no divider; the last breakdown row closes the group with one */ /* 4px grid review 10 Nov: no rule, so the full padding */
.card.report .table:not(.heat) tr.is-sub th, .card.report .table:not(.heat) tr.is-sub td { font: var(--type-body-sm); color: var(--text); font-variant-numeric: tabular-nums; } /* a breakdown row keeps the small text in every cell, the Event result cell included (r3 corrections 3, 22) */
.card.report .table:not(.heat) tr.is-sub th { padding-inline-start: calc(var(--space-md) + var(--space-lg)); white-space: nowrap; }
.card.report .table:not(.heat) tbody th.nowrap { white-space: nowrap; }
.card.report .dgrid dd .ops-note { display: block; margin-top: var(--space-2xs); } /* the one-event card: the note sits under its value */
.card.report .table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.card.report .table:not(.heat) tr.total td.num { font-variant-numeric: tabular-nums; } /* the Total row's font shorthand resets it */ /* a figure never wraps, "8,560 (93%)" included (Reports events r2) */
.card.report .table th .ops-note, .card.report .table td .ops-note { display: block; font: var(--type-body-sm); color: var(--muted); }
.card.report .table th .row-link { color: var(--logo-blue); font: var(--type-body-strong); text-decoration: underline; text-underline-offset: var(--stroke-underline-offset); }
.rep-label .tag, .card.report .table .tag { margin-inline-start: var(--space-xs); }
.rep-muted { color: var(--muted); }
.card.report .table td.rep-muted { text-align: end; }
.card.report .table td.is-profit { background: var(--green-tint); } /* an event result in profit reads at a glance; a loss stays plain with its minus sign (Julia 10 Nov: "highlight event results in a light green background") */
.card.report .table:not(.heat) tr:not(.is-sub):not(.total) td.rep-muted { color: var(--muted); } /* Not recorded reads muted (r3 B1); a dash in a breakdown row keeps its small text colour */
.rep-more { margin-top: var(--space-md); }
.rep-arr .ops-chart div.act { background: var(--sky); } /* lighter blue for bars (Julia, 6 Nov) */
.rep-arr { max-width: calc(var(--size-panel-w) * 1.6); }
.rep-arr.is-one { grid-template-columns: minmax(0, 1fr); }
@media print {
  body { min-width: 0; }
  .app-header, .app-nav, .demo-dock, .toast-stack, .tabs, .rep-tools, .rep-export-row, .sheet { display: none; }
  .rep-print-head { display: block; font: var(--type-body-strong); color: var(--ink); margin-bottom: var(--space-md); }
  .card.report { border: 0; padding: 0; }
  .table thead th { position: static; }
  thead { display: table-header-group; }
  .rep-chart, .rep-row, .rep-arr-one, .doc { break-inside: avoid; }
  .rep-pair { grid-template-columns: minmax(0, 1fr); }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
}

/* New event, Staff step (Specs/Admin new event stepper r3, C): the full staff list and its Sheet */
#evRoster { margin-top: var(--space-sm); }
.roster-group h3 { font: var(--type-body-strong); color: var(--ink); margin: var(--space-lg) 0 var(--space-xs); }
.roster-group summary { display: flex; width: 100%; }
.roster-group .roster-count { margin-inline-start: auto; color: var(--muted); }
.roster-group .roster-co { color: var(--muted); }
.roster-group .mv-row ul { display: grid; gap: var(--space-2xs); margin-top: var(--space-xs); font: var(--type-body); color: var(--text); }

.ops-ref .table th.ops-rowgroup, .ops-ref .table tbody:first-of-type > tr:first-child > th.ops-rowgroup { padding-top: var(--space-lg); } /* the Scans by gate group headings: room above each, one for all three, so they do not read as data rows (designer 6 Nov) */
.ops-ref .table td.ops-inv > .tag.state { margin-inline-end: calc(-1 * var(--space-xs)); } /* the Invalid number is the tag: its digit lines up with the plain digits of the other rows (the tag's own end padding is --space-xs) */

.ops-staff td:nth-child(3) { white-space: nowrap; } /* the Shift time stays on one line in every mode of the staff table, as Event Ops shows it (UX review A2); the width cap stays */
#ev-s4 + .ev-rows > .ev-row:first-child { border-top: 0; padding-top: var(--space-xs); } /* the Staff step has no heading above its first row */ /* 4px grid review 10 Nov: no rule, full padding */
.roster-search { margin-block: var(--space-sm) var(--space-md); } /* the roster Sheet's search field, the Members search component (designer 6 Nov) */
.ops-staff tbody tr.ops-lead td .sheet-link { font: var(--type-body-strong); } /* the lead's name is a link and stays the bold lead (event staff contact r1 §1) */
.ops-staff th.ops-role .tag { display: flex; width: fit-content; margin-top: var(--space-2xs); } /* the Contractor tag always sits on its own second line (designer 7 Nov) */
.sheet .lead-status { display: flex; align-items: center; gap: var(--space-xs); margin-top: var(--space-xs); } /* the Lead Sheet: the status tag under the person, Confirm beside it */
.sheet .form-btns { display: flex; gap: var(--space-xs); } /* the Contractor Sheet's Save and Cancel, side by side */
/* Reports › Events r2, designer's render review (9 Nov): the link in a table note keeps the note's type and one line; the Income bars share the start and end lines of the stacked bars; the legend sits with the bars it explains */
.card.report .table td .ops-note .link { min-height: 0; font: var(--type-body-sm); white-space: nowrap; }
/* Reports > Events > "Income, costs and visits" (Specs/Admin Reports events r2.md, 9 Nov; mock B): the KPI cards and the weekly charts; tokens only */
.rep-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-md); margin: var(--space-xl) 0 0; }
.rep-kpi { display: grid; align-content: start; gap: var(--space-2xl); padding: calc(var(--space-lg) - var(--stroke-divider)); border: var(--stroke-divider) solid var(--line); border-radius: var(--radius-md); background: var(--white); } /* 4px grid review 10 Nov: tile height 176 / 152 / 132, the border no longer adds 2 */ /* align-content start: the four figures sit on one baseline whatever the change line does */
.rep-kpi dt, .rep-kpi .n, .rep-kpi .chg { white-space: nowrap; } /* one line per slot, so the icon and the figures cannot jump (r3 corrections 2, 5) */
.rep-kpis:not(.is-pairs) .rep-kpi { min-width: 0; }
.rep-kpi dt { display: flex; align-items: center; gap: var(--space-xs); font: var(--type-body-strong); color: var(--ink); }
.rep-kpi dd { display: grid; gap: var(--space-2xs); margin: 0; }
.rep-kpi .n { font: var(--type-page-title); color: var(--ink); font-variant-numeric: tabular-nums; }
.rep-kpi .chg { display: grid; gap: var(--space-2xs); font: var(--type-body-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.rep-kpi .chg b { display: inline-flex; align-items: center; gap: var(--space-2xs); font: var(--type-body-sm); }
.rep-kpi .chg .is-good { color: var(--icon-success); }
.rep-kpi .chg .is-bad { color: var(--red); }
.rep-kpi .ic { flex: none; width: var(--size-icon-sm); height: var(--size-icon-sm); fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; } /* 4px grid review 10 Nov: icon-sm 16 */
.rep-kpi dt .ic { color: var(--muted); }
.rep-trend { margin-top: var(--space-2xl); }
.rep-trend + .rep-trend { margin-top: var(--space-xl); }
.ops-legend i.l-line { height: var(--stroke-border-strong); border: 0; }
.rep-trend svg { display: block; width: 100%; max-width: 100%; height: auto; margin-top: var(--space-xs); }
.rep-trend text { font: var(--type-caption); fill: var(--muted); font-variant-numeric: tabular-nums; }
.rep-trend text.ev { fill: var(--ink); }
.rep-trend text.end { fill: var(--ink); } /* a line is named at its right end (r3 C4), in the chart's one text size (Julia 10 Nov: "too large, not consistent") */
.rep-trend text.in { fill: var(--logo-blue); }
.rep-trend text.out { fill: var(--text); }
.rep-trend .grid { stroke: var(--line); stroke-width: 1; }
.rep-trend svg :is(line, polyline, circle) { vector-effect: non-scaling-stroke; }
.rep-split { margin-top: var(--space-2xl); }
.rep-split h3 { font: var(--type-body-strong); color: var(--ink); margin: 0 0 var(--space-xs); }
.rep-kpis.is-pairs { margin-top: var(--space-xs); } /* Sports and events: four comparison tiles, the KPI box at a quieter size */
.rep-kpis.is-pairs .rep-kpi { gap: var(--space-sm); }
.rep-kpis.is-pairs dt { font: var(--type-body-sm); color: var(--muted); }
.rep-kpis.is-pairs dd { gap: var(--space-2xs); }
.rep-kpis.is-pairs .row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); font: var(--type-body-sm); color: var(--muted); }
.rep-kpis.is-pairs .v { font: var(--type-h3); color: var(--ink); font-variant-numeric: tabular-nums; }

.org-lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--size-panel-w) * 0.9), 1fr)); gap: var(--space-md); align-items: stretch; } /* Admin organisation lanes cards r1: one card per group; three per row at full width, one card spans the row for a request, a change or an offer */
.org-lanes > .card { display: flex; flex-direction: column; min-width: 0; }
.org-lanes > .card > .dgrid + .hold { margin-top: var(--space-md); }
.org-lanes > .card > :is(.dgrid, .hold):has(+ .link-btn) { margin-bottom: var(--space-md); }
.org-lanes > .card > .link-btn { margin-top: auto; }
.org-lanes > .card.lr-top > h2 + .alert { margin-top: 0; }
.org-lanes > .card.lr-top > .alert:last-child { margin-bottom: 0; } /* the result and withdrawn cards: one gap between the title and the Alert, none doubled below it (designer, 9 Nov) */
.org-lanes > .card.lr-top { grid-column: 1 / -1; } /* a request, a change or an offer waiting: full width, above the group cards (Julia 9 Nov) */
.org-lanes > .card.decision .dgrid { grid-template-columns: repeat(auto-fit, minmax(calc(var(--size-panel-w) * 0.35), 1fr)); }
.org-lanes > .card.decision .btns { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.org-lanes > .card.decision .btns .btn { width: auto; }
.org-grid.solo.full { grid-template-columns: minmax(0, 1fr); } /* the Lanes tab with no side column uses the whole page width (Julia 9 Nov: "Yes, full width"); the other tabs keep the cap */

/* ---- gallery (Specs/Admin component gallery inventory r1.md) */
.gal-rule { max-width: calc(var(--size-panel-w) * 2); margin-bottom: var(--space-xl); font: var(--type-body); color: var(--text); }
.gal-sec { margin-top: var(--space-4xl); }
.gal-sec > h2 { margin-bottom: var(--space-lg); padding-bottom: var(--space-sm); border-bottom: var(--stroke-border-strong) solid var(--logo-blue); font: var(--type-page-title); color: var(--ink); }
.gal-comp { margin-top: var(--space-2xl); }
.gal-comp > h3 { font: var(--type-h3); color: var(--ink); }
.gal-by { margin-bottom: var(--space-md); font: var(--type-body-sm); color: var(--muted); }
.gal-sec code { font: var(--type-body-sm); color: var(--text); }
.gal-use { margin-top: var(--space-md); font: var(--type-body-sm); color: var(--text); }
.gal-ver { margin: var(--space-xl) 0 var(--space-sm); font: var(--type-label); color: var(--muted); }
.gal-missing { padding: var(--space-md); border-radius: var(--radius-md); background: var(--mist); font: var(--type-body-sm); color: var(--text); }
.gal-grid { --cols: 1; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); border-top: var(--stroke-divider) solid var(--line); } /* the variant's name sits on a line of its own above its cells, so a wide sample never loses width to a label column */
.gal-row { display: contents; }
.gal-ch { padding: var(--space-xs); border-bottom: var(--stroke-divider) solid var(--line); font: var(--type-label); color: var(--muted); }
.gal-rl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-md); padding: var(--space-md) var(--space-xs) 0; border-top: var(--stroke-divider) solid var(--line); }
.gal-head + .gal-row > .gal-rl { border-top: 0; }
.gal-rn { font: var(--type-label); color: var(--ink); }
.gal-rs { font: var(--type-body-sm); color: var(--muted); overflow-wrap: anywhere; }
.gal-c { display: grid; align-content: start; justify-items: start; gap: var(--space-xs); min-width: 0; padding: var(--space-xs) var(--space-xs) var(--space-md); }
.gal-c > :is(.field-input, .select-wrap, .tabs, .btn-block, .place-pick, .pick-wrap, .ops-rail, .pagination, .ev-steps, .date-row, .file-row, .paper, .alert, .gal-dark) { justify-self: stretch; min-width: 0; }
.gal-c:last-child .gal-stage .place-menu { inset-inline-start: auto; inset-inline-end: 0; } /* the open list of the last column opens towards the page, not past its edge */
.gal-na { color: var(--muted); }
.gal-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--size-panel-w) * 0.35), 1fr)); gap: var(--space-md); list-style: none; padding: 0; margin: 0; }
.gal-sw { display: grid; gap: var(--space-2xs); align-content: start; }
.gal-sw i { --sw: var(--line); display: block; height: var(--size-control-h-md); border: var(--stroke-divider) solid var(--line); border-radius: var(--radius-md); background: var(--sw); }
.gal-type-row { display: grid; grid-template-columns: calc(var(--size-panel-w) * 0.6) minmax(0, 1fr); align-items: baseline; gap: var(--space-md); padding-block: var(--space-xs); border-bottom: var(--stroke-divider) solid var(--line); }
.gal-t { color: var(--ink); }
.gal-t-page-title { font: var(--type-page-title); } .gal-t-h3 { font: var(--type-h3); } .gal-t-body { font: var(--type-body); } .gal-t-body-strong { font: var(--type-body-strong); } .gal-t-nav { font: var(--type-nav); } .gal-t-body-sm { font: var(--type-body-sm); } .gal-t-label { font: var(--type-label); } .gal-t-caption { font: var(--type-caption); } .gal-t-mark { font: var(--type-mark); }
.gal-bar { display: grid; grid-template-columns: calc(var(--size-panel-w) * 0.4) auto auto; align-items: center; justify-content: start; gap: var(--space-md); padding-block: var(--space-2xs); }
.gal-bar i { --n: 0; display: block; width: var(--n); height: var(--space-md); background: var(--blue); }
.gal-boxes { display: flex; flex-wrap: wrap; gap: var(--space-xl); }
.gal-box { display: grid; justify-items: start; align-content: start; gap: var(--space-2xs); min-width: calc(var(--size-panel-w) * 0.3); }
.gal-box > i, .gal-r { display: block; width: calc(var(--size-control-h-md) * 1.5); height: var(--size-control-h-md); border: var(--stroke-border) solid var(--logo-blue); background: var(--mist); }
.gal-r-sm { border-radius: var(--radius-sm); } .gal-r-md { border-radius: var(--radius-md); } .gal-r-lg { border-radius: var(--radius-lg); } .gal-r-xl { border-radius: var(--radius-xl); } .gal-r-full { border-radius: var(--radius-full); } .gal-r-none-focus { border-radius: var(--radius-none-focus); }
.gal-box > i.gal-stroke { --s: 0; height: var(--size-control-h-md); margin-block-end: 0; border: 0; background: linear-gradient(var(--ink), var(--ink)) top / 100% var(--s) no-repeat; } /* 4px grid review 10 Nov: box stays 48, the line is drawn inside it */
.gal-box > i.gal-size { --w: 0; width: var(--w); height: var(--space-xl); }
.gal-ico { display: inline-flex; align-items: center; justify-content: center; width: var(--size-control-h-md); height: var(--size-control-h-md); border: var(--stroke-divider) solid var(--line); border-radius: var(--radius-md); }
.gal-versions { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--size-panel-w) * 0.95), 1fr)); gap: var(--space-md); }
.gal-v { display: grid; align-content: space-between; gap: var(--space-sm); min-width: 0; margin: 0; padding: var(--space-md); border: var(--stroke-divider) solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.gal-vs { min-width: 0; display: grid; align-content: start; justify-items: start; }
.gal-vs > :is(.card, .ops-att, .ops-ent, .ev-rows, .updates-list, .ops-kpis, .table, .rep-kpis, .rep-arr, .ops-cam-pager, .date-bar, .ops-cams, .paper, .upcoming, .mv-row) { justify-self: stretch; }
.gal-v figcaption { display: grid; gap: var(--space-2xs); padding-top: var(--space-sm); border-top: var(--stroke-divider) solid var(--line); font: var(--type-body-sm); color: var(--muted); }
.gal-stage { position: relative; min-height: calc(var(--size-control-h-md) * 4); width: 100%; }
.gal-stage-cal { min-height: calc(var(--size-control-h-md) * 11); }
.gal-stage-tip { min-height: calc(var(--size-control-h-md) * 2); }
.gal-tip-above { display: grid; align-content: end; padding-top: calc(var(--size-control-h-md) * 1.5); }
.gal-stage-user, .gal-stage-upd, .gal-stage-flat { min-height: 0; }
.gal-pop-host :is(.user-pop, .updates-pop) { position: static; }
.gal-hdr .app-header { position: static; }
.gal-rail.ops-rail { position: static; }
.gal-plain { display: grid; gap: var(--space-sm); max-width: calc(var(--size-panel-w) * 2.2); margin-top: var(--space-md); }
.gal-stack { display: grid; gap: var(--space-sm); }
.gal-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl); align-items: start; margin-top: var(--space-md); }
.gal-narrow { max-width: calc(var(--size-panel-w) * 0.45); }
.gal-tbl { width: auto; }
.gal-dark { width: fit-content; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); background: var(--logo-blue); }
.gal-facts { display: flex; flex-wrap: wrap; gap: var(--space-xs); list-style: none; padding: 0; margin: 0; }
.gal-toasts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.gal-v-toast .toast { display: inline-flex; max-width: 100%; }
.gal-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); align-items: start; }
.gal-card { margin: 0; }
.gal-thumb { padding: var(--space-lg); border: var(--stroke-divider) solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.gal-thumb .ep-stack, .gal-thumb .org-grid { margin-top: 0; }
.gal-stage-foot .ev-foot { position: static; }
.gal-plain-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.popover.gal-plain-pop { position: static; width: calc(var(--size-control-h-md) * 5); padding: var(--space-xs); }
.gal-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.gal-kpis.gal-one { grid-template-columns: minmax(0, 1fr); }
.gal-cams-w { width: calc(var(--size-panel-w) * 1.2); max-width: 100%; }
/* Reports r3: the card anatomy and the one-event card */
.card.report > .rep-trend:first-of-type { margin-top: var(--space-md); } /* sub-line to answer is --space-md */
.rep-arr-one h3 { font: var(--type-body-strong); color: var(--ink); margin: 0; }
.card.report > .ops-note + .dgrid { margin-top: var(--space-md); }
.card.report > .dgrid + .rep-chart { margin-top: var(--space-xl); } /* block to block inside a card */
.card.report > .rep-chart + .ops-note { margin-top: var(--space-md); }
.dgrid.is-arr .nw { white-space: nowrap; } /* the time range never splits (r3 corrections 3, 24) */
.dgrid dd.is-key { font: var(--type-body-strong); color: var(--ink); } /* the Event result leads (r3 C7, 22) */
.card.report > .dgrid.is-arr { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-xl); max-width: calc(var(--size-panel-w) * 1.6); } /* the facts use the charts' two columns and measure (r3 corrections 3, 20) */
.card.report .table:not(.heat) tr td.num.res { font: var(--type-body-strong); color: var(--ink); font-variant-numeric: tabular-nums; }
.card.report .table:not(.heat) tr.is-sub td.num.res { font: var(--type-body-sm); color: var(--text); font-variant-numeric: tabular-nums; }
.rep-bars.is-hero { max-width: calc(var(--size-panel-w) * 2.4); border-top: var(--stroke-divider) solid var(--line); } /* Who holds the lanes: the one hero row, its track capped so it never stretches across a wide card (Specs/Admin Reports lanes card r1.md) */
.rep-bars.is-hero .rep-row { padding-block: var(--space-lg) calc(var(--space-lg) - var(--stroke-divider)); } /* 4px grid review 10 Nov: the rule comes off the padding */
.rep-bars.is-hero :is(.ops-gate-name, .ops-gate-fig) { font: var(--type-body-strong); color: var(--ink); }
.rep-bars.is-hero .ops-segs .seg[data-part] { min-inline-size: var(--space-2xl); }
.rep-row-note { grid-column: 2 / -1; margin-top: var(--space-xs); }
.card.report > .rep-chart:has(.is-hero) { margin-top: var(--space-xl); }
.card.report > .ops-legend + .dgrid { margin-top: var(--space-xl); }
.rep-arr .ops-chart div { min-height: 0; } /* one scale in both entrance charts: a small bar is not given a minimum height (r3 C1) */

/* ---- group email (Julia 10 Nov; _work/email-mock2) */
.sheet > .ev-foot { flex: none; margin-top: 0; padding-inline: var(--space-xl); padding-block-end: max(var(--space-md), var(--sp-bottom)); } /* the buttons sit above the demo dock, as the Sheet's list does */
.sheet-body:has(+ .ev-foot) { padding-block-end: var(--space-xl); } /* the foot clears the dock, so the list needs no room for it */ /* the Sheet's own foot (group email): padded to the Sheet's side padding, no gap above */
.mm-wrap { display: grid; gap: var(--space-md); } /* the people Sheet packs the note, the heading and the list closer than the 2xl default */
.mm-list { display: grid; }
.mm-row { display: grid; gap: var(--space-2xs); padding-block: var(--space-sm); border-bottom: var(--stroke-divider) solid var(--line); }
.mm-row .sheet-link, .mm-row .mm-name { justify-self: start; font: var(--type-body); }
.mm-row .mm-name { color: var(--ink); } /* a member with no email is a plain name: nothing to open a message for */
.mm-row .mm-meta { font: var(--type-body-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.mm-group { margin-top: var(--space-2xl); }
.mm-group .sec-title { margin-bottom: 0; padding-bottom: var(--space-xs); }
.mail-scrim { position: fixed; inset: 0; z-index: var(--z-demo); background: color-mix(in srgb, var(--ink) 40%, transparent); } /* ink 40%: there is no scrim token in Admin; the window and its backdrop sit with the dock's layer and are drawn after it, so they cover it */
.mail-modal { position: fixed; z-index: var(--z-demo); top: 50%; left: 50%; transform: translate(-50%, -50%); width: calc(var(--size-panel-w) * 2.4); max-width: calc(100vw - var(--space-4xl)); max-height: calc(100vh - var(--space-4xl)); display: flex; flex-direction: column; overflow: hidden; }
.mail-modal .sheet-header { flex: none; }
.mail-modal-body { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: var(--space-xl); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: start; }
.mm-fields { display: grid; gap: var(--space-lg); }
.mail-modal .ev-foot { margin-top: 0; padding-inline: var(--space-xl); }
.mail-modal .field-textarea { min-height: calc(var(--size-field-h) * 7); } /* tall enough for the longest template (rebook) without cutting its last line */
.mm-preview { display: grid; gap: var(--space-xs); padding: var(--space-md); border: var(--stroke-divider) solid var(--line); border-radius: var(--radius-md); background: var(--white); font: var(--type-body); color: var(--text); }
.mm-preview .sec-title { margin: 0 0 var(--space-md); }
.mm-preview .mm-subj { font: var(--type-body-strong); color: var(--ink); }
.mm-preview p + p { margin-top: var(--space-xs); }
.mail-modal.is-static { position: static; transform: none; max-width: 100%; max-height: none; animation: none; } /* the gallery sample: drawn in place, no backdrop */
/* Entrances polish 10 Nov (Specs/Admin Event Ops entrances polish r1.md): All entrances on a baseline in pale tracks, the now line thin with its outlined time pill, gate and hand scanner rows as cells with their count, the Legend in the card head */
.ops-ent-card { --est-a: var(--sky); --est-b: color-mix(in srgb, var(--sky) 35%, var(--white)); } /* Entrances polish 10 Nov: the two stripes of an estimate, pale blue */
.ops-ent-card .ep-card-head .link { min-height: 0; } /* Entrances polish 10 Nov: the Legend link keeps the Calendar's look; in the card head it is one text line high so the head stays the title's height */
.ops-ent-card .ep-card-head { margin-bottom: var(--space-sm); } /* Entrances polish 10 Nov: title to body stays one sm, as before the Legend joined the head */
.ops-ent-card > .ep-card-head + .ops-empty { margin-top: 0; } /* Entrances polish 10 Nov: the card's title is now inside its head with the Legend, the empty line follows it as before */
.ops-all { align-items: center; } /* Entrances polish 10 Nov: the label sits at the middle of the plot */
.ops-ent-body .ops-chart.is-slots { display: flex; align-items: stretch; gap: var(--stroke-border-strong); height: calc(var(--space-3xl) * 2 + var(--space-md) + var(--space-md) + var(--space-lg)); padding-top: calc(var(--space-md) + var(--space-lg)); margin-top: 0; } /* Entrances polish 10 Nov: the track is 96 high, the scale from zero; the headroom above holds the time pill on its own line and, under it, the value of the tallest bar */
.ops-ent-body .ops-chart.is-slots > div, .ops-ent-body .ops-chart.is-slots > div.act { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; background: var(--mist); border-radius: var(--radius-xs); } /* Entrances polish 10 Nov: the pale track of one half hour */
.ops-chart.is-slots .bar { position: absolute; inset-inline: 0; bottom: 0; display: block; background: repeating-linear-gradient(135deg, var(--est-a) 0 var(--space-xs), var(--est-b) var(--space-xs) var(--space-md)); border-radius: var(--radius-xs); } /* Entrances polish 10 Nov: an estimate is striped at 135 degrees */
.ops-chart.is-slots > div.act .bar { background: var(--blue); } /* Entrances polish 10 Nov: counted */
.ops-chart.is-slots .bar .part { position: absolute; inset-inline: 0; bottom: 0; display: block; background: var(--blue); } /* Entrances polish 10 Nov: the current half hour is solid up to the count so far */
.ops-ent-body .ops-chart.is-slots .v { background: none; color: var(--muted); z-index: 0; } /* Entrances polish 10 Nov: the value above its bar, muted caption */
.ops-all-plot .ops-now-line { border-left-width: var(--stroke-divider); } /* Entrances polish 10 Nov: a thin line */
.ops-now-plot .now-bar { border-left-width: var(--stroke-divider); } /* Entrances polish 10 Nov: the same thin line through the gate rows */
.ops-all-plot .ops-now-pill { top: 0; inset-inline-end: auto; transform: translateX(-50%); z-index: 2; padding: 0 var(--space-xs); border: var(--stroke-divider) solid var(--ink); border-radius: var(--radius-full); background: var(--white); color: var(--ink); font: var(--type-caption); white-space: nowrap; } /* Entrances polish 10 Nov: the time in an outlined pill on top of the line */
.ops-ent-card .ops-load-times { gap: var(--stroke-border-strong); } /* Entrances polish 10 Nov: the slot names follow the 2 px between the cells */
.ops-ent-card .ops-gate-list { row-gap: var(--stroke-border-strong); } /* Entrances polish 10 Nov: rows of cells 2 px apart */
.ops-ent-card .ops-gate-row > .ops-segs { align-self: stretch; height: auto; min-height: var(--space-xl); gap: var(--stroke-border-strong); } /* Entrances polish 10 Nov: gate, VIP and stand rows are one height (a 24 px line) with 2 px between cells */
.ops-ent-card .ops-segs .seg { box-sizing: border-box; border: var(--stroke-divider) solid transparent; display: grid; place-items: center; border-radius: var(--radius-xs); font: var(--type-caption); font-variant-numeric: tabular-nums; color: var(--ink); } /* Entrances polish 10 Nov: the count inside the cell */
.ops-ent-card .ops-segs .seg[data-est] { box-shadow: none; border: var(--stroke-divider) dashed var(--green); } /* Entrances polish 10 Nov: an estimate is the band's pale tint with a dashed edge in the band's strong colour, ink count (Julia's numbers-inside look) */
.ops-ent-card .ops-segs .seg[data-est][data-band="g0"], .ops-ent-card .ops-segs .seg[data-est][data-band="g1"], .ops-ent-card .ops-segs .seg[data-est][data-band="g2"] { background: var(--green-tint); }
.ops-ent-card .ops-segs .seg[data-est][data-band="mid"] { background: var(--orange-tint); border-color: var(--orange); }
.ops-ent-card .ops-segs .seg[data-est][data-band="over"] { background: var(--red-tint); border-color: var(--red); }
.ops-ent-card .ops-segs .seg[data-est][data-step] { background: var(--est-b); border-color: var(--sky); } /* Entrances polish 10 Nov: a hand scanner estimate, pale blue with a sky dashed edge */
.ops-ent + .ops-ent, .ops-ent-body > .ops-axis + .ops-ent { margin-top: var(--space-2xl); } /* Entrances polish 10 Nov: one step more air between the groups (was xl) */
.key-sw.k-green { background: linear-gradient(to right, var(--green-tint) 33.4%, var(--green-mid) 33.4% 66.7%, var(--green-fill) 66.7%); } /* Entrances polish 10 Nov: the Legend's swatches, as the cells */
.key-sw.k-mid { background: var(--orange-mid); box-shadow: inset 0 0 0 var(--stroke-divider) var(--orange); }
.key-sw.k-over { background: var(--red-soft); }
.key-sw.k-off { background: var(--mist); box-shadow: inset 0 0 0 var(--stroke-divider) var(--line); }
.key-sw.k-act { background: var(--blue); }
.key-sw.k-est { background: repeating-linear-gradient(135deg, var(--sky) 0 var(--space-2xs), color-mix(in srgb, var(--sky) 35%, var(--white)) var(--space-2xs) var(--space-xs)); }
.key-sw.k-flags { width: auto; height: auto; gap: var(--space-2xs); display: flex; }
.ops-ent-card .key-pop { grid-template-columns: max-content 1fr; column-gap: var(--space-sm); } .ops-ent-card .key-pop .key-group, .ops-ent-card .key-pop ul { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; } .ops-ent-card .key-pop .key-title { grid-column: 1 / -1; } .ops-ent-card .key-pop .key-row { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; align-items: center; } .ops-ent-card .key-pop .key-sw { justify-self: start; } /* Entrances review 10 Nov: the words of every Legend row start on one line, after the widest swatch (the two marks); swatches keep their size */
