/*
 * Zenki prototype styles. Every colour, space, radius, duration and font comes
 * from wiki/design/zenki-design-system/tokens/tokens.css (linked in place).
 * The Director Bar and drawer use a deliberately different "tool" look so they
 * never read as product UI.
 */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--text-body);
  background: #1b1e26;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--text-link); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: var(--border-focus) solid var(--focus-ring); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--text-muted); }

/* ================= Director Bar (tool chrome, outside the frame) ================= */
.dbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px;
  padding: 10px 16px; background: #111318; color: #e7e9ee; border-bottom: 1px solid #2b2f3a;
  font: 12.5px/1.2 var(--font-ui);
}
.dbar__brand { display: flex; flex-direction: column; gap: 2px; margin-right: 6px; }
.dbar__logo { font-family: var(--font-brand); font-size: 20px; color: #fff; }
.dbar__tag { color: #9aa1b2; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.dfield { display: flex; flex-direction: column; gap: 4px; }
.dfield > span { color: #9aa1b2; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.dfield--grow { flex: 1 1 280px; min-width: 240px; }
.dfield select, .djump select {
  background: #1e222c; color: #e7e9ee; border: 1px solid #353a48; border-radius: var(--radius-s);
  height: 30px; padding: 0 8px; max-width: 100%;
}
.djump { display: flex; gap: 4px; }
.djump select { flex: 1; min-width: 0; }
.dseg { display: inline-flex; border: 1px solid #353a48; border-radius: var(--radius-s); overflow: hidden; }
.dseg__btn { background: #1e222c; border: 0; border-right: 1px solid #353a48; color: #c9cdd8; padding: 0 9px; height: 28px; cursor: pointer; white-space: nowrap; }
.dseg__btn:last-child { border-right: 0; }
.dseg__btn[aria-pressed="true"] { background: #f3c24f; color: #111318; }
.dbtn { background: #1e222c; color: #e7e9ee; border: 1px solid #353a48; border-radius: var(--radius-s); height: 30px; padding: 0 10px; cursor: pointer; white-space: nowrap; }
.dbtn--primary { background: #f3c24f; color: #111318; border-color: #f3c24f; }
.dcount { display: inline-block; min-width: 18px; padding: 1px 5px; border-radius: 9px; background: #111318; color: #f3c24f; font-size: 11px; }
.dbar__end { display: flex; gap: 6px; margin-left: auto; }

/* ================= Stage & device frames ================= */
.stage { display: flex; justify-content: center; align-items: flex-start; padding: 24px; height: calc(100vh - var(--dbar-h, 64px)); overflow: auto; transition: padding-right var(--duration-overlay) var(--ease-standard); }
body.drawer-open .stage { padding-right: 444px; }
@media (max-width: 900px) { body.drawer-open .stage { padding-right: 24px; } }
.frame-box { width: var(--frame-w); height: var(--frame-h); flex: none; }
.device { transform-origin: top left; position: relative; }
.device--phone { border-radius: 52px; padding: 0; box-shadow: 0 0 0 11px #0a0b0e, 0 0 0 13px #3a3f4c, 0 30px 80px rgba(0, 0, 0, 0.6); }
.device--phone .device__screen { border-radius: 44px; }
.device--desktop { border-radius: 10px; box-shadow: 0 0 0 1px #3a3f4c, 0 30px 80px rgba(0, 0, 0, 0.55); }
.device--desktop .device__screen { border-radius: 10px; }
.device__screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--canvas); color: var(--text-body); font-family: var(--font-brand); }

/* Paper texture (guide/1-paper-and-grid.md) */
.zk-paper { position: relative; isolation: isolate; background-color: var(--canvas); }
.zk-paper::before, .zk-paper::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.zk-paper::before {
  background-image: radial-gradient(circle at 46% 55%, var(--paper-grain-dark) 0.8px, transparent 1.3px),
    radial-gradient(circle at 46% 82%, var(--paper-grain-light) 0.6px, transparent 1.1px),
    radial-gradient(circle at 22% 51%, var(--paper-grain-dark) 0.6px, transparent 1.1px),
    radial-gradient(circle at 13% 32%, var(--paper-grain-light) 0.5px, transparent 1.0px),
    radial-gradient(circle at 53% 85%, var(--paper-grain-dark) 0.5px, transparent 1.0px),
    radial-gradient(circle at 59% 41%, var(--paper-grain-light) 0.8px, transparent 1.3px);
  background-size: 11px 13px, 13px 17px, 17px 11px, 19px 23px, 23px 19px, 29px 31px;
}
.zk-paper::after { background-image: radial-gradient(120% 80% at 12% 8%, var(--paper-mottle), transparent 60%), radial-gradient(90% 70% at 88% 92%, var(--paper-mottle), transparent 65%); }
.zk-paper--brand { --paper-grain-dark: var(--brand-grain-dark); --paper-grain-light: var(--brand-grain-light); }
@media (prefers-contrast: more), (forced-colors: active) { .zk-paper::before, .zk-paper::after { display: none; } }

/* ================= Player app chrome (phone) ================= */
.app { display: grid; grid-template-rows: auto auto 1fr auto; height: 100%; }
.statusbar { display: flex; justify-content: space-between; padding: 14px 30px 4px; font: 600 14px var(--font-ui); color: var(--text-primary); }
.appbar { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-4) var(--space-2); border-bottom: var(--border-hairline) solid var(--line-subtle); }
.appbar__title { font: 400 18px/1.3 var(--font-brand); color: var(--text-primary); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar__back { width: var(--size-touch); height: var(--size-touch); border: 0; background: none; font-size: 28px; color: var(--text-primary); cursor: pointer; }
.appbar__link { font: 600 14px var(--font-ui); text-decoration: none; }
.appbar--admin { grid-template-columns: 1fr auto; padding-top: var(--space-2); }
.app__main { overflow-y: auto; padding: var(--space-4) var(--space-4) var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); min-height: 0; }
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--size-bottom-tabs) + 22px); padding-bottom: 22px; background: var(--surface); border-top: var(--border-hairline) solid var(--line-subtle); z-index: var(--z-nav); }
.tabs__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 600 11px var(--font-ui); color: var(--text-muted); text-decoration: none; min-height: var(--size-touch); }
.tabs__item span { font-size: 18px; }
.tabs__item[aria-current="page"] { color: var(--action-primary); }
.app--sheet .app__main { margin-top: var(--space-6); border-radius: var(--radius-m) var(--radius-m) 0 0; background: var(--surface); box-shadow: var(--shadow-overlay); }
.sheet-head { text-align: center; display: grid; gap: var(--space-1); }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-subtle); margin: 0 auto var(--space-2); }

/* ================= Web chrome (player desktop + admin) ================= */
.web { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.webnav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-3) var(--space-8); background: var(--surface); border-bottom: var(--border-hairline) solid var(--line-subtle); }
.webnav__logo { font: 400 24px var(--font-brand); color: var(--text-primary); text-decoration: none; }
.webnav__tabs { display: flex; gap: var(--space-2); }
.webnav__tabs a { padding: var(--space-2) var(--space-3); border-radius: var(--radius-s); text-decoration: none; color: var(--text-muted); font: 600 14px var(--font-ui); }
.webnav__tabs a[aria-current="page"] { background: var(--action-tint); color: var(--action-primary); }
.web__main { overflow-y: auto; padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); }
.web__main--narrow { padding-inline: max(var(--space-8), calc((100% - 720px) / 2)); }
.web__main .sticky-cta { position: static; margin: 0; border-radius: var(--radius-m); }

.admin { display: grid; grid-template-columns: var(--size-sidebar) 1fr; grid-template-rows: auto 1fr; height: 100%; background: var(--surface); }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-6); padding: var(--space-3) var(--space-6); background: var(--surface-brand); color: var(--on-brand); }
.topbar .webnav__logo { color: var(--on-brand); }
.topbar__me { margin-left: auto; font: 14px var(--font-ui); }
.topbar .muted { color: var(--on-brand-muted); }
.scope { display: inline-flex; align-items: center; gap: var(--space-2); }
.scope__name { font: 400 18px var(--font-brand); }
.gfilter { display: inline-flex; align-items: center; gap: var(--space-2); }
.topbar .gfilter .input { background: var(--surface); color: var(--text-body); }
.sidebar { overflow-y: auto; padding: var(--space-4) var(--space-3); border-right: var(--border-hairline) solid var(--line-subtle); background: var(--canvas); display: flex; flex-direction: column; gap: 2px; }
.sidebar a { display: flex; gap: var(--space-2); align-items: baseline; padding: var(--space-2) var(--space-3); border-radius: var(--radius-s); color: var(--text-body); text-decoration: none; font: 14px/1.3 var(--font-ui); }
.sidebar a[aria-current="page"] { background: var(--action-tint); color: var(--action-primary); font-weight: 600; }
.sidebar__id { font: 600 11px var(--font-ui); color: var(--text-muted); min-width: 28px; }
.sidebar__ext { margin-top: var(--space-4); border-top: var(--border-hairline) solid var(--line-subtle); }
.admin__main { overflow-y: auto; padding: var(--space-6) var(--space-8) var(--space-16); display: flex; flex-direction: column; gap: var(--space-4); }

/* ================= Components ================= */
.screen-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; }
.screen-head__actions { display: flex; gap: var(--space-2); align-items: center; }
.section-title { font: 400 18px/1.35 var(--font-brand); color: var(--text-primary); margin-top: var(--space-2); }
.eyebrow { font: 400 12px/1.3 var(--font-brand); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.heading-2, .heading-3, .heading-4, .display-m, .figure-xl, .figure-m { color: var(--text-primary); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--size-control); padding: 0 var(--space-5); border-radius: var(--radius-s); border: var(--border-hairline) solid transparent; font: 400 16px/1.2 var(--font-brand); text-decoration: none; cursor: pointer; transition: transform var(--duration-instant) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard); }
.btn--sm { min-height: var(--size-control-sm); padding: 0 var(--space-3); font-size: 14px; }
.btn--primary { background: var(--action-primary); color: var(--on-action-primary); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover:not(:disabled) { background: var(--action-primary-hover); }
  .btn--secondary:hover:not(:disabled) { background: var(--surface-sunken); }
  .btn--ghost:hover:not(:disabled) { background: var(--action-tint); }
}
[data-motion-tier="1"] .btn:active:not(:disabled) { transform: translateY(1px); }
[data-motion-tier="2"] .btn:active:not(:disabled) { transform: scale(0.97); }
.btn--secondary { background: var(--surface); color: var(--action-secondary); border-color: var(--line-strong); }
.btn--ghost { background: transparent; color: var(--text-link); }
.btn--danger { background: var(--danger); color: var(--on-danger); }
.btn:disabled, .btn[disabled] { background: var(--surface-sunken); color: var(--text-disabled); border-color: var(--line-subtle); cursor: not-allowed; }
.is-offline [data-net] { opacity: 0.45; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.linklike { background: none; border: 0; padding: 0; color: var(--text-link); cursor: pointer; text-decoration: underline; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--radius-full); font: 600 12.5px/1.2 var(--font-ui); letter-spacing: 0.01em; white-space: nowrap; }
.chip--neutral { background: var(--neutral-surface); color: var(--neutral); }
.chip--success { background: var(--success-surface); color: var(--success); }
.chip--warning { background: var(--warning-surface); color: var(--warning); }
.chip--danger { background: var(--danger-surface); color: var(--danger); }
.chip--info { background: var(--info-surface); color: var(--info); }
.chip--brand { background: var(--action-tint); color: var(--action-primary); }
.chip--lavender { background: var(--surface-lavender); color: var(--text-primary); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }

.banner { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-s); font: 14px/1.5 var(--font-ui); border-left: 3px solid currentColor; }
.banner > div { color: var(--text-body); display: grid; gap: var(--space-2); }
.banner__icon { font-weight: 700; }
.banner--info { background: var(--info-surface); color: var(--info); }
.banner--warning { background: var(--warning-surface); color: var(--warning); }
.banner--danger { background: var(--danger-surface); color: var(--danger); }
.banner--success { background: var(--success-surface); color: var(--success); }

.card { background: var(--surface); border: var(--border-hairline) solid var(--line-subtle); border-radius: var(--radius-m); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); text-align: left; }
.card--cream { background: var(--surface-cream); }
.card--sunken { background: var(--surface-sunken); }
.card--alert { border-left: 3px solid var(--warning); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-4); }
.row-split { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-6); font: 14px var(--font-ui); align-items: center; }

.list { display: flex; flex-direction: column; background: var(--surface); border: var(--border-hairline) solid var(--line-subtle); border-radius: var(--radius-m); overflow: hidden; }
.list:empty { display: none; }
.list-row { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) var(--space-4); border: 0; border-bottom: var(--border-hairline) solid var(--line-subtle); background: none; text-align: left; color: inherit; text-decoration: none; min-height: var(--size-touch); cursor: pointer; }
.list-row:last-child { border-bottom: 0; }
.list-row[aria-pressed="true"] { background: var(--action-tint); }
.list-row--split { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--space-3); cursor: default; }
.session-row { display: grid; grid-template-columns: 52px 1fr; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: var(--border-hairline) solid var(--line-subtle); color: inherit; text-decoration: none; }
.session-row:last-child { border-bottom: 0; }
.session-row__date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: var(--radius-s); background: var(--surface-lavender); color: var(--text-primary); }
.session-row__body { display: flex; flex-direction: column; gap: 4px; }

.seg { display: inline-flex; flex-wrap: wrap; border: var(--border-hairline) solid var(--line); border-radius: var(--radius-s); overflow: hidden; width: fit-content; }
.seg__btn { border: 0; border-right: var(--border-hairline) solid var(--line-subtle); background: var(--surface); min-height: var(--size-control-sm); padding: 0 var(--space-3); font: 600 13px var(--font-ui); color: var(--text-muted); cursor: pointer; }
.seg__btn:last-child { border-right: 0; }
.seg__btn[aria-pressed="true"] { background: var(--action-secondary); color: var(--on-action-secondary); }

.field { display: flex; flex-direction: column; gap: var(--space-1); border: 0; padding: 0; margin: 0; }
.field--inline { flex-direction: row; align-items: center; justify-content: space-between; }
.label-strong { font: 600 14px/1.3 var(--font-ui); color: var(--text-body); }
.input { min-height: var(--size-control); padding: var(--space-2) var(--space-3); border: var(--border-hairline) solid var(--line); border-radius: var(--radius-s); background: var(--surface); font: 16px var(--font-ui); width: 100%; }
.input--sm { min-height: var(--size-control-sm); width: auto; font-size: 14px; }
.input--xs { width: 90px; display: inline-block; }
textarea.input { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font: 14px/1.5 var(--font-ui); min-height: var(--size-touch); padding-top: var(--space-2); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--action-primary); flex: none; }
.check--inline { display: inline-flex; min-height: 0; padding: 0; }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; cursor: pointer; flex: none; transition: background-color var(--duration-fast) var(--ease-standard); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-raised); transition: transform var(--duration-fast) var(--ease-standard); }
.switch:checked { background: var(--success); }
.switch:checked::after { transform: translateX(18px); }
.switch:disabled { opacity: 0.4; cursor: not-allowed; }
.divider { display: flex; align-items: center; gap: var(--space-3); color: var(--text-muted); font: 13px var(--font-ui); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-subtle); }
/* Pass 2A forms */
.form-stack { display: flex; flex-direction: column; gap: var(--space-3); }
.field-error { color: var(--danger); margin: 0; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[readonly] { background: var(--surface-sunken, var(--surface)); color: var(--text-muted); }
.chip__x { border: 0; background: none; color: inherit; font: inherit; padding: 0 2px; margin-left: 2px; min-width: 24px; min-height: 24px; cursor: pointer; border-radius: var(--radius-full); }
.chip__x:focus-visible { outline: 2px solid currentColor; }
.slot-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-2); margin-top: var(--space-2); }
.slot-form .field-error { flex-basis: 100%; }

.table-wrap { overflow-x: auto; border: var(--border-hairline) solid var(--line-subtle); border-radius: var(--radius-m); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font: 14px/1.4 var(--font-ui); }
.table th { text-align: left; font-weight: 600; color: var(--text-muted); background: var(--surface-sunken); padding: var(--space-2) var(--space-3); white-space: nowrap; }
.table td { padding: var(--space-2) var(--space-3); border-top: var(--border-hairline) solid var(--line-subtle); vertical-align: middle; }
.table td .chip + .chip { margin-left: 4px; }
.table--pinned-last tr:last-child td { background: var(--surface-sunken); font-style: italic; }
.missing { color: var(--danger); font-weight: 600; text-decoration: underline wavy; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter { border: var(--border-hairline) solid var(--line-subtle); background: var(--surface); border-radius: var(--radius-full); padding: 6px 12px; font: 600 13px var(--font-ui); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--action-secondary); color: var(--on-action-secondary); border-color: var(--action-secondary); }
.filter[aria-pressed="true"] .muted { color: var(--on-brand-muted); }
.filter--quiet { border-style: dashed; }
.bulkbar { display: flex; align-items: center; gap: var(--space-3); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-3); }
.stat { background: var(--surface); border: var(--border-hairline) solid var(--line-subtle); border-radius: var(--radius-m); padding: var(--space-3) var(--space-4); display: flex; flex-direction: column; gap: 2px; }
.preview { background: var(--surface-sunken); border-radius: var(--radius-s); padding: var(--space-3); }

/* Hero, wallet, confirmation */
.hero { padding: var(--space-6) var(--space-4); margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) 0; background-color: var(--surface-brand); color: var(--on-brand); display: grid; gap: var(--space-2); }
.web__main .hero { margin: 0; border-radius: var(--radius-m); }
.hero .heading-2, .hero .eyebrow { color: var(--on-brand); }
.hero__logo { width: 56px; height: 56px; border-radius: var(--radius-m); background: var(--accent-blue); color: var(--on-accent-blue); display: grid; place-items: center; font: 400 22px var(--font-brand); }
.wallet-head { padding: var(--space-6) var(--space-4); border-radius: var(--radius-m); display: grid; gap: var(--space-2); }
.lot { cursor: pointer; font: inherit; color: inherit; }
.lot__head { display: flex; justify-content: space-between; gap: var(--space-2); align-items: center; }
.lotbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-sunken); gap: 2px; }
.lotbar__used { background: var(--line); }
.lotbar__res { background: repeating-linear-gradient(45deg, var(--accent-blue) 0 3px, var(--info-surface) 3px 6px); }
.lotbar__avail { background: var(--action-primary); }
.lotbar__forf { background: var(--danger); }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-3); font: 12.5px var(--font-ui); color: var(--text-muted); }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.sw--used { background: var(--line); } .sw--res { background: var(--accent-blue); } .sw--avail { background: var(--action-primary); } .sw--forf { background: var(--danger); }
.sw--standard { background: var(--success); } .sw--offpeak { background: var(--surface-lavender); border: 1px solid var(--action-primary); }
.confirm { padding: var(--space-8) var(--space-4); border-radius: var(--radius-m); background: var(--surface-cream); }
.center-stack { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-4); padding-top: var(--space-10); }
.status-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 700 30px var(--font-ui); }
.status-mark--danger { background: var(--danger-surface); color: var(--danger); }
.status-mark--warning { background: var(--warning-surface); color: var(--warning); }
.status-mark--success { background: var(--success-surface, var(--surface-sunken)); color: var(--success); }

/* Pass 2C · wallet, history and booking detail */
.stack { display: grid; gap: var(--space-3); }
.wallet-figs { display: flex; gap: var(--space-6); align-items: flex-end; }
.wallet-figs > div { display: grid; gap: 2px; }
.lot { display: grid; gap: var(--space-2); text-align: left; width: 100%; }
.lot[aria-expanded="true"] { outline: 2px solid var(--text-primary); }
.lot-detail { display: grid; gap: var(--space-2); margin: calc(var(--space-2) * -1) 0 var(--space-2); padding: var(--space-3) var(--space-4); border-left: 3px solid var(--line); }
.hist { border-bottom: var(--border-hairline) solid var(--line-subtle); }
.hist__row { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; cursor: pointer; list-style: none; min-height: var(--size-touch); }
.hist__row::-webkit-details-marker { display: none; }
.hist__main, .hist__nums { display: grid; gap: 2px; }
.hist__nums { text-align: right; flex: none; }
.hist__detail { padding: 0 0 var(--space-3) var(--space-3); display: grid; gap: var(--space-1); }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.lifetime { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font: 14px var(--font-ui); }
.cal__cell--excused i { color: var(--text-muted); }
.cal__cell--multi::after { content: "+"; font: 600 10px var(--font-ui); color: var(--text-muted); }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 4px solid var(--line-subtle); border-top-color: var(--action-primary); animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.map-ph { height: 180px; border-radius: var(--radius-m); background: var(--surface-sunken); display: grid; place-items: center; color: var(--text-muted); background-image: linear-gradient(to right, var(--grid-faint) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-faint) 1px, transparent 1px); background-size: 24px 24px; }
.qr { width: 140px; height: 140px; margin: 0 auto; background: repeating-conic-gradient(var(--text-primary) 0 25%, var(--surface) 0 50%) 0 0 / 20px 20px; border: 8px solid var(--surface); outline: 1px solid var(--line-subtle); }
.auth { padding: var(--space-8) var(--space-4); border-radius: var(--radius-m); }
.profile-head { display: flex; gap: var(--space-3); align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--surface-lavender); color: var(--text-primary); display: grid; place-items: center; font: 400 22px var(--font-brand); }
.avatar--sm { width: 32px; height: 32px; font-size: 15px; }

.sticky-cta { position: sticky; bottom: 0; margin: auto calc(-1 * var(--space-4)) 0; padding: var(--space-3) var(--space-4) var(--space-4); background: var(--surface); box-shadow: var(--shadow-sticky); display: grid; gap: var(--space-2); z-index: var(--z-sticky); }
.app__main:has(.sticky-cta) { padding-bottom: 0; }

/* Calendar (A08) — colour is never the only signal: symbols + legend */
.cal-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-2); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font: 600 11px var(--font-ui); color: var(--text-muted); }
.cal__cell { aspect-ratio: 1; min-height: var(--size-touch); border: var(--border-hairline) solid var(--line-subtle); border-radius: var(--radius-s); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; font: 13px var(--font-ui); cursor: pointer; padding: 0; gap: 1px; }
.cal__cell--pad { border: 0; background: none; cursor: default; }
.cal__cell--standard { border-color: var(--success); border-width: 2px; }
.cal__cell--offpeak { border-color: var(--action-primary); border-width: 2px; background: var(--surface-lavender); }
.cal__cell--upcoming { border-style: dashed; }
.cal__cell--no_show i { color: var(--danger); }
.cal__cell i { font-style: normal; font-size: 11px; }
.cal__cell[aria-pressed="true"] { outline: 2px solid var(--text-primary); }

/* M16 bars */
.bars { display: flex; align-items: flex-end; gap: var(--space-2); height: 180px; padding-bottom: 22px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.bar__fill { width: 100%; background: var(--accent-blue); border-radius: 3px 3px 0 0; }
.bar--pending .bar__fill { background: repeating-linear-gradient(45deg, var(--line) 0 3px, transparent 3px 6px); }
.bar__label { position: absolute; bottom: -20px; white-space: nowrap; color: var(--text-muted); }
.bar[aria-pressed="true"] .bar__fill { background: var(--action-primary); }

/* S01 */
.roster-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; padding: var(--space-3) var(--space-4); border-bottom: var(--border-hairline) solid var(--line-subtle); }
.roster-row:last-child { border-bottom: 0; }
.inbox-item { display: flex; align-items: flex-start; border-bottom: var(--border-hairline) solid var(--line-subtle); }
.inbox-item:last-child { border-bottom: 0; }
.inbox-item__main { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; padding: var(--space-3) var(--space-4); cursor: pointer; }
.inbox-item--unread { background: var(--action-tint); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--action-primary); margin-right: 6px; vertical-align: middle; }

/* A5 states */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-16) var(--space-6); }
.empty__mark { width: 72px; height: 72px; border-radius: var(--radius-m); background-image: linear-gradient(to right, var(--grid-faint) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-faint) 1px, transparent 1px); background-size: 12px 12px; border: 2px dashed var(--line); }
.skeleton { display: flex; flex-direction: column; gap: var(--space-3); }
.sk { background: linear-gradient(90deg, var(--surface-sunken) 0%, var(--neutral-surface) 50%, var(--surface-sunken) 100%); background-size: 200% 100%; border-radius: var(--radius-s); animation: shimmer 1.4s var(--ease-standard) infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk--title { height: 28px; width: 55%; } .sk--row { height: 64px; } .sk--line { height: 14px; } .sk--short { width: 60%; }
.sk--hero { height: 160px; } .sk--block { height: 120px; } .sk--figure { height: 72px; width: 40%; } .sk--bar { height: 92px; }
.sk--toolbar { height: 36px; width: 70%; } .sk--trow { height: 40px; } .sk--label { height: 12px; width: 30%; } .sk--input { height: 44px; } .sk--button { height: 44px; width: 50%; }
.sk-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; } .sk--cell { aspect-ratio: 1; }
.sk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--space-3); } .sk--card { height: 96px; }
/* Reduced motion handled in the dedicated motion section below (guide/2-motion.md). */

/* Dialog + toast (inside the device) */
.scrim { position: absolute; inset: 0; background: var(--scrim); z-index: var(--z-dialog); }
.dialog { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100% - 32px)); background: var(--surface-raised); border-radius: var(--radius-m); box-shadow: var(--shadow-overlay); padding: var(--space-6); z-index: calc(var(--z-dialog) + 1); display: flex; flex-direction: column; gap: var(--space-4); animation: enter var(--duration-overlay) var(--ease-enter); }
.dialog__body { display: flex; flex-direction: column; gap: var(--space-3); }
.dialog__actions { display: flex; justify-content: flex-end; gap: var(--space-2); flex-wrap: wrap; }
@keyframes enter { from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)) scale(0.985); } }
.toast { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); background: var(--surface-brand); color: var(--on-brand); padding: var(--space-3) var(--space-4); border-radius: var(--radius-s); font: 14px/1.4 var(--font-ui); z-index: var(--z-toast); max-width: calc(100% - 32px); box-shadow: var(--shadow-overlay); animation: toast-in var(--duration-overlay) var(--ease-enter); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
.device--desktop .toast { bottom: 32px; }

/* Director-only annotations inside the frame */
.director-note { border: 1px dashed #b48a1c; background: #fff7dc; color: #4a3a0c; border-radius: var(--radius-s); padding: var(--space-2) var(--space-3); font: 12.5px/1.5 var(--font-ui); display: grid; gap: var(--space-2); }
.director-note strong { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #8a6510; margin-right: 4px; }
.director-inline { font: 12.5px/1.6 var(--font-ui); color: #6b5a26; border-top: 1px dashed #d4b45a; padding-top: var(--space-2); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.director-inline a[aria-current="true"] { font-weight: 700; color: var(--text-primary); }

/* ================= Spec & Feedback drawer (tool chrome) ================= */
.drawer { position: fixed; top: var(--dbar-h, 64px); right: 0; bottom: 0; width: 420px; max-width: 100vw; background: #15171d; color: #dfe2ea; border-left: 1px solid #2b2f3a; overflow-y: auto; z-index: 30; font: 13px/1.5 var(--font-ui); animation: drawer-in var(--duration-overlay) var(--ease-enter); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
.drawer__head { position: sticky; top: 0; display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #15171d; border-bottom: 1px solid #2b2f3a; }
.drawer__head h2 { font: 400 18px var(--font-brand); color: #fff; margin-top: 2px; }
.drawer__sec { padding: 14px 16px; border-bottom: 1px solid #2b2f3a; display: grid; gap: 10px; }
.drawer a { color: #b0a4ff; }
.dmuted { color: #9aa1b2; font-size: 12px; }
#ddrift[data-ok="false"] { color: #ff9087; } #ddrift[data-ok="true"] { color: #62d195; }
.dkv { display: grid; grid-template-columns: 96px 1fr; gap: 4px 10px; margin: 0; }
.dkv dt { color: #9aa1b2; } .dkv dd { margin: 0; }
.dnamed { background: #2a2618; border: 1px solid #5c4a17; color: #f3dfa5; border-radius: 4px; padding: 8px 10px; }
.dspec { font-size: 12.5px; color: #c9cdd8; }
.dspec p { margin: 0 0 6px; } .dspec li { margin: 0 0 6px 16px; } .dspec .dspec__li2 { margin-left: 32px; }
.dspec code { background: #222632; padding: 0 3px; border-radius: 3px; }
.dspec__h { font: 400 15px var(--font-brand); color: #fff; }
.dnote { display: grid; gap: 6px; }
.dnote textarea { background: #1e222c; color: #e7e9ee; border: 1px solid #353a48; border-radius: 4px; padding: 8px; resize: vertical; }
.drawer__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Scroll columns never squash their children */
.app__main > *, .web__main > *, .admin__main > *, .list > *, .card > *, .skeleton > * { flex-shrink: 0; }

/* Pass 2B · M01 / M03 / M11 / M12 (desktop-first admin forms with a preview column) */
.m01-split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: var(--space-4); align-items: start; }
.m01-main, .m01-side { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.m01-side { position: sticky; top: 0; }
.m01-main .section-title:first-child { margin-top: 0; }
.inline-pair { display: flex; gap: var(--space-2); }
.inline-pair .input { width: auto; flex: 1; }
.avail-row { display: grid; grid-template-columns: 150px 1fr; gap: var(--space-2); align-items: baseline; }
.rate-cell { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; max-width: 220px; }
.rate-cell .input--xs { width: 80px; }
.input.is-missing { border-color: var(--danger); }
.warn-text { color: var(--warning); }
.extend { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.extend .input--sm { min-width: 260px; }

/* Court-side attendance and member summaries must fit the simulated native viewport. */
.device--phone .app--admin { min-width: 0; }
.device--phone .appbar--admin { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.device--phone .appbar--admin .scope { flex-wrap: wrap; min-width: 0; }
.device--phone .appbar--admin .input { max-width: 100%; min-width: 0; }
.device--phone .app--admin .app__main { min-width: 0; }
.device--phone .app--admin .field { min-width: 0; }
.device--phone .app--admin .field .input { width: 100%; min-width: 0; }
.device--phone .roster-row { flex-direction: column; align-items: stretch; }
.device--phone .roster-row .btn-row { gap: var(--space-1); }
.device--phone .roster-row .btn { flex: 1; padding-inline: var(--space-2); }

/* ================= Tier 2 Signature Player Micro-Interactions ================= */
/* Tabular figures prevent horizontal digit jitter on wallet balances and live timers. */
.figure-xl, .figure-m, .wallet-figs, .hold-pill__time { font-variant-numeric: tabular-nums; }

/* 1. P08 Booking confirmation — SVG line drawing + scale-in + non-uniform stagger (zero overshoot) */
.p08-flow { display: flex; flex-direction: column; gap: var(--space-4); }
.confirm { display: flex; flex-direction: column; gap: var(--space-2); }
.confirm__mark {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--success-surface); color: var(--success);
  display: grid; place-items: center; margin-bottom: var(--space-1);
}
.confirm__check { stroke-dasharray: 28; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) {
  .p08-flow.p08-enter .confirm__mark {
    animation: p08-mark-in var(--duration-overlay) var(--ease-enter) backwards;
  }
  .p08-flow.p08-enter .confirm__check {
    animation: p08-check-draw var(--duration-entrance) var(--ease-enter) 70ms backwards;
  }
  .p08-flow.p08-enter .p08-stagger {
    animation: p08-rise var(--duration-entrance) var(--ease-enter) backwards;
  }
  .p08-flow.p08-enter .p08-stagger:nth-child(1) { animation-delay: 0ms; }
  .p08-flow.p08-enter .p08-stagger:nth-child(2) { animation-delay: 50ms; }
  .p08-flow.p08-enter .p08-stagger:nth-child(3) { animation-delay: 95ms; }
  .p08-flow.p08-enter .p08-stagger:nth-child(4) { animation-delay: 135ms; }
  .p08-flow.p08-enter .p08-stagger:nth-child(5) { animation-delay: 165ms; }
}
@keyframes p08-mark-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes p08-check-draw { from { stroke-dashoffset: 28; } to { stroke-dashoffset: 0; } }
@keyframes p08-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* 2. Credit wallet balance bar & lot-detail reveal (A06 / G01) */
.lotbar > span { transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .lot-detail { animation: lot-detail-in var(--duration-base) var(--ease-enter); }
}
@keyframes lot-detail-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* 3. P07 Live hold-timer pill */
.hold-pill {
  display: inline-flex; flex-direction: column; gap: 6px;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-m);
  background: var(--info-surface); color: var(--info);
  font: 600 13px/1.3 var(--font-ui); min-width: 244px; max-width: 100%;
  transition: background-color var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}
.hold-pill--urgent { background: var(--warning-surface); color: var(--warning); }
.hold-pill__row { display: flex; align-items: center; justify-content: center; gap: var(--space-2); flex-wrap: wrap; }
.hold-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .hold-pill__dot { animation: hold-pulse 1.8s var(--ease-standard) infinite; }
}
@keyframes hold-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hold-pill__time { color: var(--text-primary); }
.hold-pill__track {
  display: block; width: 100%; height: 3px; border-radius: 2px;
  background: color-mix(in srgb, currentColor 20%, transparent); overflow: hidden;
}
.hold-pill__fill {
  display: block; width: 100%; height: 100%; background: currentColor;
  transform-origin: left center; transition: transform var(--duration-base) linear;
}

/* 4. P06 Bottom-sheet checkout (phone viewport) */
.app--checkout-sheet { grid-template-rows: auto 1fr; position: relative; }
.app--checkout-sheet .statusbar { position: relative; z-index: 2; }
.sheet-scrim { position: absolute; inset: 0; background: var(--scrim); z-index: 1; cursor: pointer; }
.app--checkout-sheet .app__main {
  position: relative; z-index: 2; margin-top: var(--space-4);
  border-radius: 20px 20px 0 0; background: var(--surface); box-shadow: var(--shadow-overlay);
}
.sheet-head { touch-action: none; user-select: none; cursor: grab; padding-bottom: var(--space-1); }
.sheet-head:active { cursor: grabbing; }
.sheet-head__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.sheet-head__title { font: 400 18px/1.3 var(--font-brand); color: var(--text-primary); }
.sheet-close {
  width: 36px; height: 36px; border: 0; border-radius: var(--radius-full);
  background: var(--surface-sunken); color: var(--text-body); cursor: pointer;
  display: grid; place-items: center; font: 600 14px var(--font-ui);
  transition: transform var(--duration-instant) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}
.sheet-close:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .sheet-close:hover { background: var(--line-subtle); }
}
@media (prefers-reduced-motion: no-preference) {
  .app--checkout-sheet .app__main.is-sheet-entering {
    animation: sheet-up var(--duration-overlay) var(--ease-enter) backwards;
  }
  .sheet-scrim.is-scrim-entering {
    animation: zk-fade var(--duration-overlay) var(--ease-enter) backwards;
  }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes zk-fade { from { opacity: 0; } to { opacity: 1; } }

/* 5. Slot-taken feedback (P04 / P07) */
.card--slot-taken {
  border-color: var(--danger); border-left-width: 3px;
  transition: border-color var(--duration-base) var(--ease-standard);
}
.slot-alert { display: block; }

/* ================= Reduced motion (guide/2-motion.md) ================= */
/* Stop transforms and looping keyframes; preserve gentle opacity/color fades at duration-instant (90ms). */
@media (prefers-reduced-motion: reduce) {
  .sk, .spinner, .hold-pill__dot, .drawer { animation: none; }
  .dialog, .toast, .lot-detail,
  .p08-flow.p08-enter,
  .app--checkout-sheet .app__main.is-sheet-entering,
  .sheet-scrim.is-scrim-entering {
    animation: zk-fade var(--duration-instant) var(--ease-enter);
  }
  .hold-pill__fill { transition: none; }
  [data-motion-tier="1"] .btn:active:not(:disabled),
  [data-motion-tier="2"] .btn:active:not(:disabled),
  .sheet-close:active { transform: none; }
  .btn, .switch, .switch::after, .hold-pill, .card--slot-taken, .sheet-close {
    transition-property: opacity, background-color, border-color, color;
    transition-duration: var(--duration-instant);
  }
}
[data-motion="reduce"] .sk,
[data-motion="reduce"] .spinner,
[data-motion="reduce"] .hold-pill__dot,
[data-motion="reduce"] .drawer { animation: none; }
[data-motion="reduce"] .dialog,
[data-motion="reduce"] .toast,
[data-motion="reduce"] .lot-detail,
[data-motion="reduce"] .p08-flow.p08-enter,
[data-motion="reduce"] .app--checkout-sheet .app__main.is-sheet-entering,
[data-motion="reduce"] .sheet-scrim.is-scrim-entering {
  animation: zk-fade var(--duration-instant) var(--ease-enter);
}
[data-motion="reduce"] .hold-pill__fill { transition: none; }
[data-motion="reduce"] [data-motion-tier="1"] .btn:active:not(:disabled),
[data-motion="reduce"] [data-motion-tier="2"] .btn:active:not(:disabled),
[data-motion="reduce"] .sheet-close:active { transform: none; }
[data-motion="reduce"] .btn,
[data-motion="reduce"] .switch,
[data-motion="reduce"] .switch::after,
[data-motion="reduce"] .hold-pill,
[data-motion="reduce"] .card--slot-taken,
[data-motion="reduce"] .sheet-close {
  transition-property: opacity, background-color, border-color, color;
  transition-duration: var(--duration-instant);
}

/* ---------- Pass 2E · onboarding, invitations, sessions home ---------- */
.setup { display: flex; flex-direction: column; gap: var(--space-3); }
.setup--collapsed { gap: 0; }
.check-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.check-step { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: var(--space-2) var(--space-3); padding: var(--space-2) 0; border-top: 1px solid var(--line-subtle); }
.check-step .btn-row { grid-column: 2 / -1; }
.check-step__n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 12px/1 var(--font-ui); border: 1px solid var(--line-subtle); }
.check-step.is-done .check-step__n { background: var(--surface-brand); color: var(--on-brand); border-color: transparent; }
.check-step__body { display: flex; flex-direction: column; gap: 2px; }
.attention { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--line-subtle); border-radius: var(--radius-s); margin-bottom: var(--space-4); }
.attention__item { font: 14px/1.4 var(--font-ui); }
.share { display: flex; flex-direction: column; gap: var(--space-3); }
.share__qr { display: grid; place-items: center; padding: var(--space-2); }
.qr-svg { shape-rendering: crispEdges; }
.with-panel { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-4); align-items: start; }
.device--phone .with-panel { grid-template-columns: 1fr; }
.detail-panel { display: flex; flex-direction: column; gap: var(--space-2); position: sticky; top: 0; }
.action-banner { display: flex; flex-direction: column; gap: var(--space-2); }
.paste-sheet textarea { font-family: var(--font-ui); }
.mode-switch { display: flex; gap: var(--space-2); align-items: center; }
.firstrun { display: flex; flex-direction: column; gap: var(--space-2); }
.composer { display: flex; flex-direction: column; gap: var(--space-2); }
.gate { display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.bell { position: relative; text-decoration: none; font-size: 18px; line-height: 1; padding: 6px; }
.bell__dot { position: absolute; top: 2px; right: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--surface-brand); }
.acct-menu { position: relative; }
.acct-menu__list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface-raised); border: 1px solid var(--line-subtle); border-radius: var(--radius-s); box-shadow: var(--shadow-overlay); padding: var(--space-2); display: flex; flex-direction: column; z-index: 20; }
.acct-menu__list a, .acct-menu__list button { text-align: left; padding: var(--space-2); font: 14px/1.4 var(--font-ui); background: none; border: 0; color: inherit; cursor: pointer; }
.series-pick { display: flex; flex-direction: column; gap: var(--space-2); }
.tabs--2 { grid-template-columns: repeat(2, 1fr); }
.device--phone .appbar--admin { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
.device--phone .appbar--admin .gfilter { grid-column: 1 / -1; }
.topbar .bell { color: var(--on-brand); margin-left: auto; }
.topbar .acct-menu summary { cursor: pointer; list-style: none; }
.acct-menu__list { color: var(--text-primary); }
.topbar .bell + .acct-menu .topbar__me, .topbar .bell + .topbar__me { margin-left: 0; }
