/* Hallmark · shape: app screen · genre: modern-minimal · theme: Dusk (deal 2/3, seed rally-saas-pickleball-clubs-7dc9·961c4c9a·2026-10-22·r0)
 * nav: top bar, four anchors on one screen and a booking search · signature: the court sheet, 8 courts by 16 hours, the clash and the coachless clinic marked in apricot · states: loading, empty, error, full · dusk: none/periwinkle-apricot/slate panels
 * axes: dark/grotesk-sans/cool · posture: committed · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: H, four regions compete; the queue leads, the sheet runs full width, figures sit in one ruled tally */
/* Hallmark · dismissed 69 · 6:00 am is Carter's no-show and 6:00 pm is the Court 3 clash, two facts; the clash time sits in the queue and the free-court list where each acts */
/* Hallmark · answered F4 · the selected check-in tab carries a 2px periwinkle underline as its state mark, not a filled button; Move ladder match is the screen's one filled primary */
/* Hallmark · finish-review: subagent · 8 findings · 7 resolved 1 partial (the sheet starts just under the 1440 fold; queue items now link to their cells and the phone sheet opens at 4:15 pm) */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --gutter: var(--space-xl);
  --bar-h: 60px;
  --track-label: 76px;
  --radius-blk: 6px;
  --color-row: color-mix(in oklab, var(--color-light) 7%, transparent);
  --color-ghost: color-mix(in oklab, var(--color-light) 6%, transparent);
  --color-ghost-hi: color-mix(in oklab, var(--color-light) 11%, transparent);
  --color-ghost-line: color-mix(in oklab, var(--color-light) 16%, transparent);
  --color-signal-line: color-mix(in oklab, var(--color-accent-2) 60%, transparent);
  --color-signal-wash: color-mix(in oklab, var(--color-accent-2) 13%, transparent);
  --color-blk-book: oklch(29% 0.018 268);
  --color-blk-open: oklch(38% 0.07 274);
  --color-blk-league: oklch(31% 0.05 274);
  --color-blk-clinic: oklch(33% 0.03 240);
  --color-bar-done: var(--color-accent);
  --color-bar-today: var(--color-accent-2);
  --color-hatch-bg: var(--color-paper-3);
  --color-hatch-line: oklch(48% 0.05 274);
  --color-sk: oklch(24% 0.016 268);
  --color-sk-hi: oklch(28% 0.017 268);
  --shadow-toast: 0 12px 32px -12px oklch(8% 0.02 268 / 0.7);
}
@media (max-width: 60rem) { :root { --gutter: var(--space-md); } }

.shell { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; }
.icon { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Controls: 36px, 44px hit area */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 36px; padding: 0 var(--space-md); border: 1px solid transparent; border-radius: var(--radius-pill); font: 600 var(--text-sm)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn::before { content: ""; position: absolute; inset: -4px 0; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-light) 35%, transparent); }
.btn--primary:hover { background: var(--color-accent-hi); }
.btn--signal { background: transparent; color: var(--color-accent); border-color: color-mix(in oklab, var(--color-accent) 55%, transparent); }
.btn--signal:hover { background: color-mix(in oklab, var(--color-accent) 12%, transparent); }
.btn--quiet { background: var(--color-ghost); color: var(--color-ink); border-color: var(--color-ghost-line); }
.btn--quiet:hover { background: var(--color-ghost-hi); }
.btn--sm { min-height: 36px; }
.btn--xs { min-height: 32px; padding: 0 var(--space-sm); font-weight: 500; }
.btn--xs::before { inset: -6px 0; }
.link { padding: 0; border: 0; background: none; color: var(--color-accent); font: inherit; text-decoration: underline; text-underline-offset: 0.16em; cursor: pointer; }
.link:hover { color: var(--color-accent-hi); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: 1px solid var(--color-rule); }
.bar__inner { display: flex; align-items: center; gap: var(--space-lg); height: var(--bar-h); }
.wordmark { font: 500 var(--text-xl)/1 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; }
.wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }
.bar__club { display: flex; align-items: baseline; gap: var(--space-xs); padding-left: var(--space-lg); border-left: 1px solid var(--color-rule); font-weight: 600; font-size: var(--text-sm); white-space: nowrap; }
.bar__place { font-weight: 400; color: var(--color-muted); }
.bar__nav { display: flex; gap: var(--space-2xs); margin-left: var(--space-md); }
.bar__nav a { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.bar__nav a::before { content: ""; position: absolute; inset: -4px 0; }
.bar__nav a:hover { background: var(--color-ghost); color: var(--color-ink); }
.bar__nav a[aria-current="page"] { background: var(--color-ghost-hi); color: var(--color-ink); }
.bar__nav a:focus-visible, .bar__menu a:focus-visible, .bar__menu summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.bar__end { display: flex; align-items: center; gap: var(--space-md); margin-left: auto; }
.search { position: relative; display: flex; align-items: center; color: var(--color-muted); }
.search .icon { position: absolute; left: var(--space-sm); pointer-events: none; }
.search input { width: 15rem; min-height: 36px; padding: 0 var(--space-md) 0 var(--space-xl); border: 1px solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); outline: 2px solid transparent; outline-offset: -3px; }
.search input::placeholder { color: var(--color-muted); }
.search input:hover { background: var(--color-paper-3); }
.search input:focus-visible { outline-color: var(--color-focus); }
.search input:disabled { opacity: 0.55; cursor: not-allowed; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-accent-deep); color: var(--color-accent-soft); font-size: var(--text-xs); font-weight: 600; }
.bar__menu { display: none; margin-left: auto; position: relative; }
.bar__menu summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-inner); list-style: none; cursor: pointer; color: var(--color-ink); }
.bar__menu summary::-webkit-details-marker { display: none; }
.bar__menu summary:hover { background: var(--color-ghost); }
.bar__menu nav { position: absolute; right: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown); display: grid; min-width: 12rem; padding: var(--space-xs); border: 1px solid var(--color-rule); border-radius: var(--radius-inner); background: var(--color-paper-2); }
.bar__menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-sm); border-radius: var(--radius-blk); color: var(--color-ink); text-decoration: none; }
.bar__menu nav a:hover { background: var(--color-ghost); }

/* Head: date and the ruled tally */
main.shell { padding-block: var(--space-xl) var(--space-3xl); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg) var(--space-2xl); padding-bottom: var(--space-lg); }
.head h1 { font-size: var(--text-3xl); max-width: none; }
.head__line { margin-top: var(--space-2xs); color: var(--color-muted); }
.tally { display: grid; grid-template-columns: repeat(4, auto); margin: 0; }
.tally > div { padding-inline: var(--space-lg); border-left: 1px solid var(--color-rule); }
.tally > div:first-child { padding-left: 0; border-left: 0; }
.tally > div:last-child { padding-right: 0; }
.tally dt { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.tally dd { margin: var(--space-2xs) 0 0; font: 500 var(--text-2xl)/1.1 var(--font-display); letter-spacing: var(--tracking-display); white-space: nowrap; }
.tally dd span { font: 400 var(--text-sm)/1 var(--font-body); letter-spacing: 0; color: var(--color-muted); }

/* Panels */
.split { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-lg); margin-top: var(--space-lg); align-items: start; }
.split--even { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.panel { min-width: 0; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); color: var(--color-ink); scroll-margin-top: calc(var(--bar-h) + var(--space-md)); }
.panel--sheet, .panel--wide { margin-top: var(--space-lg); }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); margin-bottom: var(--space-md); }
.panel h2 { font: 600 var(--text-lg)/1.2 var(--font-body); letter-spacing: 0; max-width: none; }
.panel__meta { font-size: var(--text-sm); color: var(--color-muted); }
.sub { max-width: none; margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); font: 600 var(--text-md)/1.3 var(--font-body); letter-spacing: 0; }
.sub .num { margin-left: var(--space-2xs); font-weight: 400; color: var(--color-muted); }

/* Needs you */
.queue { list-style: none; margin: 0; padding: 0; }
.q { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-md); padding-block: var(--space-md); border-top: 1px solid var(--color-rule); }
.q:first-child { border-top: 0; padding-top: 0; }
.q__icon { width: 20px; height: 20px; margin-top: var(--space-3xs); color: var(--color-muted); }
.q.is-urgent .q__icon { color: var(--color-accent-2); }
.q h3 { font: 600 var(--text-md)/1.35 var(--font-body); letter-spacing: 0; max-width: none; }
.q__body > p { margin-top: var(--space-2xs); color: var(--color-ink-2); font-size: var(--text-sm); max-width: 68ch; }
.q__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-sm); }
.q__when { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.q__done { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-sm); color: var(--color-accent); font-size: var(--text-sm); font-weight: 500; }
.q.is-resolved .q__icon { color: var(--color-accent); }
.q.is-resolved h3 { color: var(--color-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.q.is-resolved .q__actions { display: none; }
.draft { margin-top: var(--space-sm); padding: var(--space-sm) var(--space-md); border-left: 2px solid var(--color-ghost-line); background: var(--color-ghost); border-radius: 0 var(--radius-blk) var(--radius-blk) 0; font-size: var(--text-sm); }
.draft__to { color: var(--color-muted); }
.draft__body { margin-top: var(--space-2xs); color: var(--color-ink); }
.draft__note { margin-top: var(--space-xs); color: var(--color-accent-2); }

/* Waitlist */
.wl { list-style: none; margin: 0; padding: 0; }
.wl li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm); padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); }
.wl li:first-child { border-top: 0; padding-top: 0; }
.wl__pos { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-ghost-hi); font-size: var(--text-sm); font-weight: 600; }
.wl__name { font-weight: 600; }
.wl__want { font-size: var(--text-sm); color: var(--color-muted); }
.wl__match { font-size: var(--text-sm); font-weight: 500; color: var(--color-accent-2); white-space: nowrap; }
.wl__match.is-none { color: var(--color-muted); font-weight: 400; }
.wl__match.is-offered { color: var(--color-accent); }
.free { list-style: none; margin: var(--space-sm) 0 0; padding: 0; display: grid; gap: var(--space-xs); }
.free li { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-blk); box-shadow: inset 0 0 0 1px var(--color-ghost-line); font-size: var(--text-sm); }
.free li.is-taken { color: var(--color-muted); text-decoration: line-through; }
.wl__joined { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

/* Court sheet */
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); margin: 0; padding: 0; font-size: var(--text-sm); color: var(--color-muted); }
.legend li { display: inline-flex; align-items: center; gap: var(--space-xs); }
.sw { width: 12px; height: 12px; border-radius: 3px; }
.sw.k-flag { background: var(--color-signal-wash); box-shadow: inset 0 0 0 1px var(--color-accent-2); }
.sheet-scroll { overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: var(--space-xs); }
.sheet-scroll:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-inner); }
.cs { position: relative; display: grid; grid-template-columns: var(--track-label) minmax(0, 1fr); row-gap: var(--space-2xs); min-width: 1120px; }
.cs__hours { grid-column: 2; display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); font-size: var(--text-xs); color: var(--color-muted); }
.cs__hours span { padding-left: var(--space-2xs); border-left: 1px solid var(--color-rule); }
.cs__court { grid-column: 1; display: flex; align-items: center; font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); white-space: nowrap; }
.cs__track { grid-column: 2; display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); min-height: 48px; border-radius: var(--radius-blk); background: repeating-linear-gradient(to right, transparent 0 calc(200% / 32 - 1px), var(--color-rule) calc(200% / 32 - 1px) calc(200% / 32)); }
.cs__track > * { grid-row: 1; }
.blk { display: flex; flex-direction: column; justify-content: center; min-width: 0; margin-right: var(--space-3xs); padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-blk); font-size: var(--text-xs); line-height: 1.25; color: var(--color-ink); overflow: hidden; }
.blk b, .blk small { display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.blk b { font-weight: 600; }
.blk small { font-size: var(--text-xs); color: var(--color-ink-2); }
.k-book { background: var(--color-blk-book); }
.k-open { background: var(--color-blk-open); }
.k-league { background: var(--color-blk-league); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-accent) 45%, transparent); }
.k-clinic, .k-lesson { background: var(--color-blk-clinic); }
.k-freed { background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-signal-line); }
.blk.is-past { filter: brightness(0.72) saturate(0.6); }
.blk.is-past b { font-weight: 500; }
.blk.is-noshow { background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-ghost-line); filter: none; }
.blk.is-noshow b { color: var(--color-muted); text-decoration: line-through; }
.blk.is-noshow small, .blk.is-flag small { color: var(--color-accent-2); }
.blk.is-flag { box-shadow: inset 0 0 0 1px var(--color-accent-2); background: var(--color-signal-wash); }
.blk-stack { display: grid; grid-template-rows: 1fr 1fr; gap: var(--space-3xs); min-width: 0; margin-right: var(--space-3xs); }
.blk-stack .blk { margin: 0; padding-block: var(--space-3xs); }
.blk-stack .blk small { display: none; }
.blk.is-clash { box-shadow: inset 0 0 0 1px var(--color-accent-2); background: var(--color-signal-wash); }
.blk.is-clash b { color: var(--color-accent-2); }
.blk.is-moved { box-shadow: inset 0 0 0 1px var(--color-accent); }
.cs__now { grid-column: 2; grid-row: 1 / -1; position: relative; pointer-events: none; }
.cs__now::before { content: ""; position: absolute; top: var(--space-lg); bottom: 0; left: var(--now); width: 2px; margin-left: -1px; background: var(--color-accent); }
.cs__now span { position: absolute; top: 0; left: var(--now); transform: translateX(-50%); padding: 0 var(--space-2xs); border-radius: var(--radius-blk); background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.tbl th, .tbl td { padding: var(--space-sm) var(--space-sm) var(--space-sm) 0; text-align: left; border-top: 1px solid var(--color-rule); vertical-align: middle; }
.tbl thead th { border-top: 0; padding-top: 0; font-weight: 500; color: var(--color-muted); white-space: nowrap; }
.tbl tbody th { font-weight: 600; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; padding-right: var(--space-lg); }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .act { text-align: right; white-space: nowrap; }
.tbl .ok { color: var(--color-accent); }
.tbl .owe { color: var(--color-accent-2); }
.tbl .muted { color: var(--color-muted); }
.tbl tr.is-in td[data-count] { color: var(--color-accent); }
.blk.is-found { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tbl__empty { padding-top: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); }
.tabs { display: flex; gap: var(--space-lg); border-bottom: 1px solid var(--color-rule); }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--color-muted); font-size: var(--text-sm); font-weight: 500; white-space: nowrap; cursor: pointer; transition: color var(--dur-micro) var(--ease-out); }
.tabs button::before { content: ""; position: absolute; inset: -4px -6px; }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.tabs button:hover { color: var(--color-ink); }
.tabs button[aria-selected="true"] { color: var(--color-ink); }
.tabs button[aria-selected="true"]::after { background: var(--color-accent); }
.tabs button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tabs button:active { transform: translateY(1px); }
.tabs .num { color: var(--color-muted); }

/* This week */
.rev__totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 var(--space-md); }
.rev__totals > div { padding-inline: var(--space-lg); border-left: 1px solid var(--color-rule); }
.rev__totals > div:first-child { padding-left: 0; border-left: 0; }
.rev__totals dt { font-size: var(--text-sm); color: var(--color-muted); }
.rev__totals dd { margin: var(--space-2xs) 0 0; font: 500 var(--text-2xl)/1.1 var(--font-display); letter-spacing: var(--tracking-display); }
.bars { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-sm); height: 200px; margin: var(--space-md) 0 0; padding: 0; border-bottom: 1px solid var(--color-rule); }
.bars__day { display: grid; grid-template-rows: 1fr auto; position: relative; min-width: 0; }
.bars__bar { align-self: end; height: var(--h); border-radius: 3px 3px 0 0; background: var(--color-bar-done); }
.bars__day--today .bars__bar { background: var(--color-bar-today); }
.bars__day--ahead .bars__bar { background: repeating-linear-gradient(135deg, var(--color-hatch-bg) 0 4px, var(--color-hatch-line) 4px 6px); }
.bars__val { position: absolute; left: 0; right: 0; bottom: calc(var(--h, 0%) + var(--space-2xs)); text-align: center; font-size: var(--text-xs); color: var(--color-ink-2); white-space: nowrap; }
.bars__name { position: absolute; left: 0; right: 0; top: calc(100% + var(--space-xs)); text-align: center; font-size: var(--text-xs); color: var(--color-muted); }
.bars__day--today .bars__name { color: var(--color-ink); font-weight: 600; }
.legend--chart { margin-top: var(--space-xl); }
.sw--done { background: var(--color-bar-done); }
.sw--today { background: var(--color-bar-today); }
.sw--ahead { background: var(--color-hatch-bg); box-shadow: inset 0 0 0 1px var(--color-hatch-line); }
.tbl--mix { margin-top: var(--space-md); }
.tbl--mix .num { padding-right: 0; }

/* States: full by default; the prototype switch shows the others */
.state--loading, .state--empty, .state--error { display: none; }
[data-view] .panel__meta, [data-view] .tabs .num { visibility: hidden; }
[data-view="loading"] [data-region] > .state--full, [data-view="empty"] [data-region] > .state--full, [data-view="error"] [data-region] > .state--full { display: none; }
[data-view="loading"] [data-region] > .state--loading, [data-view="empty"] [data-region] > .state--empty, [data-view="error"] [data-region] > .state--error { display: block; }
[data-view="empty"] .tally-wrap > dl.state--empty { display: grid; }
.state--empty, .state--error { padding: var(--space-xl) 0; }
.tally-wrap > .state { padding: 0; box-shadow: none; }
.state__title { font-weight: 600; }
.state__line { margin-top: var(--space-2xs); max-width: 52ch; color: var(--color-muted); font-size: var(--text-sm); }
.state--empty .btn, .state--error .btn { margin-top: var(--space-md); }
.state--error { box-shadow: inset 2px 0 0 var(--color-accent-2); padding-left: var(--space-md); }
.tally-error { color: var(--color-muted); font-size: var(--text-sm); }
.sk-row { display: grid; grid-template-columns: repeat(4, 7rem); gap: var(--space-lg); }
.sk-row .sk { height: 52px; width: auto; }
.sk-stack { display: grid; gap: var(--space-sm); }
.sk { display: block; height: 40px; border-radius: var(--radius-blk); background: linear-gradient(90deg, var(--color-sk) 0 40%, var(--color-sk-hi) 50%, var(--color-sk) 60% 100%); background-size: 300% 100%; animation: sk 1.4s linear infinite; }
.sk:nth-child(2n) { width: 82%; }
.sk:nth-child(3n) { width: 64%; }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Toast: undo for a check-in */
.toast { position: fixed; left: 50%; bottom: var(--space-lg); z-index: var(--z-toast); display: flex; align-items: center; gap: var(--space-md); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); font-size: var(--text-sm); font-weight: 500; box-shadow: var(--shadow-toast); transform: translateX(-50%); animation: toast-in var(--dur-short) var(--ease-out); }
.toast .btn--quiet { background: transparent; color: var(--color-accent-deep); border-color: color-mix(in oklab, var(--color-paper) 25%, transparent); }
.toast .btn--quiet:hover { background: color-mix(in oklab, var(--color-paper) 8%, transparent); }
.toast .btn:focus-visible { outline-color: var(--color-accent-deep); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.proto { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-sm); margin-top: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }
.proto select { min-height: 36px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-sm); outline: 2px solid transparent; outline-offset: -3px; cursor: pointer; }
.proto select:hover { background: var(--color-paper-3); }
.proto select:focus-visible { outline-color: var(--color-focus); }
.proto select:disabled { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 75rem) {
  .bar__nav, .search { display: none; }
  .bar__menu { display: block; }
  .bar__end { margin-left: 0; }
}
@media (max-width: 60rem) {
  .split, .split--even { grid-template-columns: minmax(0, 1fr); }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-md); width: 100%; }
  .tally > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .bar__club .bar__place { display: none; }
  .q { grid-template-columns: auto minmax(0, 1fr); }
  .q__when { grid-column: 2; grid-row: 1; justify-self: end; }
  .tbl--checkins-wrap { overflow-x: auto; }
}
@media (max-width: 40rem) {
  .bar__club { display: none; }
  .tbl[data-checkins] thead { display: none; }
  .tbl[data-checkins] tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--space-sm); padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); }
  .tbl[data-checkins] tr[hidden] { display: none; }
  .tbl[data-checkins] th, .tbl[data-checkins] td { border: 0; padding: 0; text-align: left; }
  .tbl[data-checkins] td:nth-child(2), .tbl[data-checkins] td:nth-child(5) { display: none; }
  .tbl[data-checkins] td:nth-child(4) { grid-column: 2; grid-row: 2; color: var(--color-muted); text-align: left; }
  .tbl[data-checkins] td.owe { display: block; grid-column: 2; grid-row: 3; }
  .tbl[data-noshows] thead { display: none; }
  .tbl[data-noshows] tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); }
  .tbl[data-noshows] th, .tbl[data-noshows] td { border: 0; padding: 0; }
  .tbl[data-noshows] th { grid-column: 1; grid-row: 1; }
  .tbl[data-noshows] td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  .tbl[data-noshows] td:nth-child(1) { grid-column: 1; grid-row: 2; color: var(--color-muted); }
  .tbl[data-noshows] td:nth-child(3) { grid-column: 2; grid-row: 2; color: var(--color-muted); text-align: right; }
  .tabs { gap: var(--space-md); }
  .sk-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tbl[data-checkins] .act { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .tabs button, .bar__nav a { transition: none; }
  .sk { animation: none; }
  .toast { animation: none; }
}
