/* ==========================================================================
   NSDA: the Naatya Kalaakaar team page (12 Nov 2026). The site's design system (tokens.css): Ivory ground, House text,
   Instrument Serif for titles, Instrument Sans for everything you read, gold for the main action, the two-tone focus ring.
   Calm and fast: a work page, so the one moment is the sign-in (the house dark, one warm light on the card).
   Each tab has its own very light tint for every other row, so it's always clear which list you're in.
   ========================================================================== */

/* Every colour here is a step on the design system's ladders (tokens.css) */
:root {
  --paper: var(--neutral-50);    /* a row's light: the one step lighter than Ivory, so rows read on the Ivory ground */
  /* One family for the whole page: Peacock (calm for reading data; a maroon "Paid" could read as a warning) */
  --tint-entries: var(--peacock-100);
  --tint-dancers: var(--peacock-100);
  --tint-tickets: var(--peacock-100);
  --tint-music: var(--peacock-100);
  --tint-summary: var(--peacock-100);
  --tint-team: var(--peacock-100);
  --row-hover: var(--peacock-200);
  --ui-strong: var(--peacock);   /* selected tabs and chips, dark buttons, the Summary total row (Ivory text on it 9.4:1) */
  --ui-soft: var(--peacock-100); /* hovers and quiet fills */
  --paid: var(--peacock);        /* the paid chip (Ivory on it 9.4:1) */
  --tint: var(--tint-entries);
  --cell-size: 15px; --cell-line: 24px;
  --head-size: 12px; --head-line: 16px;
  --w-wide: 1520px;   /* a work page: wider than the site's 1280 so the tables fit without a sideways scroll bar */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--house); font: 400 var(--body-size)/var(--body-line) var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible:not(input, textarea, select) { outline: none; box-shadow: var(--focus-ring); }   /* text fields show focus with their own thicker line, never a ring */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-16); top: -100px; z-index: 50; padding: var(--space-12) var(--space-16); border-radius: var(--r-small); background: var(--house); color: var(--ivory); }
.skip:focus { top: var(--space-16); }

.eyebrow { display: flex; align-items: center; gap: var(--space-12); margin: 0; font: 600 var(--h6-size)/var(--h6-line) var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.eyebrow--dark { color: var(--gold); }

/* ---------- Buttons: the site's three levels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8); min-height: 48px; padding: 0 var(--space-24); border: 0; border-radius: var(--r-pill); cursor: pointer;
  font: 600 var(--small-size)/var(--small-line) var(--sans); text-decoration: none; white-space: nowrap; transition: background var(--t-quick) var(--ease-standard), color var(--t-quick) var(--ease-standard), border-color var(--t-quick) var(--ease-standard); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: var(--house); }
.btn--gold:hover { background: var(--gold-300); }
.btn--dark { background: var(--ui-strong); color: var(--ivory); }
.btn--dark:hover { background: var(--peacock-900); }
.btn--line { background: transparent; color: var(--house); box-shadow: inset 0 0 0 var(--stroke-button) var(--house); }
.btn--line:hover { background: var(--house); color: var(--ivory); }
.btn--line:focus-visible { box-shadow: inset 0 0 0 var(--stroke-button) var(--house), var(--focus-ring); }
.btn--text { min-height: var(--target); padding: 0 var(--space-12); background: none; color: var(--house); text-decoration: underline; text-underline-offset: 4px; }
.btn--danger { background: var(--error); color: var(--ivory); }
.btn--danger:hover { background: var(--sindoor-800); }
.btn--small { min-height: var(--target); padding: 0 var(--space-20); }
.btn--full { width: 100%; min-height: 56px; font-size: 16px; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ---------- Text fields ---------- */
.tf { margin-bottom: var(--space-20); }
.tf label { display: block; margin-bottom: var(--space-8); font: 600 var(--small-size)/var(--small-line) var(--sans); }
/* One line, drawn once as an outline inside the edge (as assets/form.css): 1px at rest, 2px on focus or error, centered on the same edge */
.tf input, .tf textarea, .tf select { display: block; width: 100%; min-height: 52px; margin: 0; padding: 0 17px; border: 0; outline: 1px solid var(--field-line); outline-offset: -1px; border-radius: var(--r-control);
  background: var(--paper); color: var(--house); font: 500 16px/24px var(--sans); appearance: none; -webkit-appearance: none;
  transition: outline-color var(--t-quick) var(--ease-standard), outline-width var(--t-quick) var(--ease-standard), outline-offset var(--t-quick) var(--ease-standard), background-color var(--t-quick) var(--ease-standard), box-shadow var(--t-quick) var(--ease-standard); }
.tf textarea { min-height: 120px; padding: 13px 17px; resize: vertical; }
/* Hover: Gold ink line, fill lifts. Focus: 2px Gold ink line, centered, and a soft gold glow (as assets/form.css) */
.tf input:hover, .tf textarea:hover, .tf select:hover, .search input:hover, .pick select:hover { outline-color: var(--gold-ink); background-color: var(--neutral-50); }
.tf input:focus, .tf textarea:focus, .tf select:focus, .search input:focus, .pick select:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: -1.5px; background-color: var(--neutral-50); box-shadow: 0 0 0 4px rgba(217, 184, 114, 0.4); }
.tf__box { position: relative; }
.tf__box input { padding-right: 84px; }
.tf__show { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: var(--target); min-width: 64px; padding: 0 var(--space-12); border: 0; border-radius: var(--r-small); background: none; cursor: pointer; font: 600 14px/20px var(--sans); color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }
.tf__hint { margin: var(--space-8) 0 0; font-size: var(--small-size); line-height: var(--small-line); color: var(--soft); }
.tf__error, .msg--error { display: flex; align-items: flex-start; gap: var(--space-8); margin: var(--space-8) 0 0; font-size: var(--small-size); line-height: var(--small-line); color: var(--error); }
.tf__error::before, .msg--error::before { content: "!"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--error); color: var(--ivory); font: 600 13px/1 var(--sans); }
.tf.is-invalid input { outline: 2px solid var(--error); outline-offset: -1.5px; }
.tf.is-invalid input:focus { box-shadow: 0 0 0 4px rgba(161, 43, 31, 0.18); }
.msg--error { margin: 0 0 var(--space-20); }

/* The tick box: 24px inside a 44px target */
/* A checkbox with its words: the box is the design system's (assets/choice.css, .choice + .ds-check) */
.check { display: flex; margin-bottom: var(--space-16); font-size: var(--small-size); line-height: var(--small-line); }
.check__hint { display: block; color: var(--soft); }

/* ==========================================================================
   Sign in: the house dark, one warm light falling on the card
   ========================================================================== */
.is-out { background: var(--house); }
.gate { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: var(--space-64) var(--gutter); overflow: hidden; overflow: clip; color: var(--ivory); }   /* clip, not just hidden: a hidden area can still be scrolled by the browser when a field takes focus, which slid the sign-in sideways */
.gate__glow { position: absolute; left: 50%; top: -20%; width: min(1400px, 160vw); height: 120%; transform: translateX(-10%);
  background: radial-gradient(ellipse 38% 55% at 50% 0%, rgba(217, 184, 114, 0.22), rgba(217, 184, 114, 0.06) 55%, transparent 75%); pointer-events: none;
  animation: gate-light 2400ms var(--ease-glide) both; }
@keyframes gate-light { from { opacity: 0; } to { opacity: 1; } }
.gate__inner { position: relative; width: 100%; max-width: var(--w-content); display: grid; grid-template-columns: 1fr 440px; gap: var(--column-gap); align-items: center; }
.gate__logo { width: 173px; height: auto; margin-bottom: var(--space-64); }
.gate__title { margin: var(--space-24) 0 var(--heading-gap); font: 400 var(--h1-size)/var(--h1-line) var(--serif); letter-spacing: -0.01em; }
.gate__title em { display: block; color: var(--gold); font-style: italic; }
.gate__lead { max-width: 420px; margin: 0; font-size: var(--lead-size); line-height: var(--lead-line); color: var(--muted); }
.gate__card { padding: 0; color: var(--ivory); animation: gate-card var(--t-long) var(--ease-glide) 200ms both; }
/* The ground is Peacock under the gold light; fields and quiet words come from the Peacock ladder. A filled field needs no line
   at rest; on focus it gets ONE 2px Gold line centered on its edge (Gold is the focus colour on dark; 5.4:1 on Peacock) */
.gate { --field-dark-ground: var(--neutral-200); }
.gate .tf input { background: var(--field-dark-ground); color: var(--house); outline: 2px solid transparent; outline-offset: -1px; }
.gate .tf input:hover { background: var(--neutral-100); outline-color: transparent; }
.gate .tf input:focus { background: var(--neutral-100); outline: 2px solid var(--gold); outline-offset: -1px; box-shadow: 0 0 0 4px rgba(217, 184, 114, 0.35); }
.gate .tf input:-webkit-autofill { -webkit-text-fill-color: var(--house); box-shadow: inset 0 0 0 100px var(--field-dark-ground); transition: background-color 9999s; }
.gate .tf__show { color: var(--house); font-size: 15px; }
.gate .tf__show:focus-visible { box-shadow: inset 0 0 0 2px var(--house); }
.gate .eyebrow { font-size: 16px; line-height: 24px; }
.gate .gate__lead { color: var(--text-quiet-on-dark); }   /* the DS subcopy token on dark (Muted, Neutral 500): 7.5:1 on House */
.gate .check { font-size: var(--body-size); line-height: var(--body-line); margin-bottom: var(--space-32); }
.gate .check__hint { color: var(--text-on-dark); }   /* Ivory at body size, 16px: the small grey was too faint to read */
.gate .gate__help { color: var(--text-on-dark); text-wrap: balance; }   /* Ivory; balanced lines so no lone word ("it.") is left on its own */
.gate .check__hint, .gate .gate__lead { text-wrap: pretty; }
.gate { background: var(--house); }
.gate :focus-visible:not(input, textarea, select) { box-shadow: 0 0 0 2px var(--house), 0 0 0 4px var(--ivory); }
.gate .btn--gold:focus-visible { box-shadow: 0 0 0 2px var(--house), 0 0 0 4px var(--ivory); }
/* An error on the dark ground: Ivory words with a gold "!" (the Error red is for light grounds only) */
.gate .msg--error { margin: var(--space-8) 0 0; font-size: var(--body-size); line-height: var(--body-line); color: var(--sindoor-500); text-wrap: pretty; }   /* the light red step (Sindoor 500) for text on House: 8.1:1 */
.gate .msg--error::before { background: var(--sindoor-500); color: var(--house); }
@keyframes gate-card { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.gate__card-title { margin: 0 0 var(--space-32); font: 400 var(--h4-size)/var(--h4-line) var(--serif); }
.gate__turnstile:empty { display: none; }
.gate__turnstile { margin-bottom: var(--space-16); }
.gate__help { margin: var(--space-20) 0 0; font-size: var(--body-size); line-height: var(--body-line); color: var(--soft); }
@media (max-width: 1199px) { .gate__inner { grid-template-columns: 1fr 400px; gap: var(--space-56); } }
@media (max-width: 899px) {
  .gate { place-items: start center; padding-top: var(--space-48); }
  .gate__inner { grid-template-columns: 1fr; gap: var(--space-40); max-width: 480px; }
  .gate__logo { margin-bottom: var(--space-40); }
  .gate__glow { transform: translateX(-50%); }
}

/* ==========================================================================
   The work page
   ========================================================================== */
/* An application layout: one slim bar, the totals, the tabs, then the table. Quiet chrome, the data is the page */
/* The band: logo, the two menus and the totals on Peacock (the theme's dark). Tabs and toolbar sit below it on Ivory.
   Words on the band are Ivory (labels Ivory 85%); the one red number uses Sindoor 400, the light red step that reads on Peacock */
.top { position: relative; z-index: 20; }
.band { background: var(--peacock); color: var(--ivory); }
.top__inner { display: flex; align-items: center; gap: var(--space-24); max-width: var(--w-wide); margin: 0 auto; padding: var(--space-20) var(--gutter); border-bottom: 1px solid rgba(244, 239, 230, 0.16); }
.top__logo { width: 172px; height: auto; flex: none; }   /* the dark-ground logo: Ivory "nruthya" */
.band .dl__btn, .band .who__btn { color: var(--ivory); }
.band .dl__btn:hover, .band .who__btn:hover { background: rgba(244, 239, 230, 0.12); }
.band .who__dot { background: var(--ivory); color: var(--peacock); }
.band :focus-visible { box-shadow: 0 0 0 2px var(--peacock), 0 0 0 4px var(--ivory); }
.band .who__menu { color: var(--house); }
.band .who__menu :focus-visible { box-shadow: var(--focus-ring); }
.top__end { display: flex; align-items: center; gap: var(--space-8); margin-left: auto; }
.dl__btn { display: inline-flex; align-items: center; gap: var(--space-8); min-height: var(--target); padding: 0 var(--space-16); border: 0; border-radius: var(--r-pill); background: none; cursor: pointer; font: 600 var(--body-size)/var(--body-line) var(--sans); color: var(--house); }
.dl__btn > svg:first-child { width: 20px; height: 20px; }
a.who__item { display: flex; flex-direction: column; justify-content: center; padding-top: var(--space-8); padding-bottom: var(--space-8); color: var(--house); text-decoration: none; }
a.who__item[hidden] { display: none; }
.who__item small { font: 400 var(--small-size)/var(--small-line) var(--sans); color: var(--soft); }
.who__menu { z-index: 30; min-width: 280px; }

.who { position: relative; }
.who__btn { display: inline-flex; align-items: center; gap: var(--space-12); min-height: var(--target); padding: 0 var(--space-12) 0 var(--space-4); border: 0; border-radius: var(--r-pill); background: none; cursor: pointer; }
.who__btn:hover { background: var(--ui-soft); }
.who__dot { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ui-strong); color: var(--ivory); }
.who__dot svg { width: 20px; height: 20px; }
.who__name { font: 600 var(--body-size)/var(--body-line) var(--sans); }
.who__caret { width: 14px; height: 14px; transition: transform var(--t-quick) var(--ease-standard); }
.who__btn[aria-expanded="true"] .who__caret { transform: rotate(180deg); }
.who__email strong { display: block; color: var(--house); font-weight: 600; }

/* Totals: the metrics strip, on every tab, above the tabs */
.totals__inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: var(--w-wide); margin: 0 auto; padding: var(--space-32) var(--gutter) var(--space-40); }
.total { padding: var(--space-4) var(--space-32); border-left: 1px solid rgba(244, 239, 230, 0.16); }
.total:first-child { padding-left: 0; border-left: 0; }
.total dt { font: 500 var(--body-size)/var(--body-line) var(--sans); color: var(--ivory-85); }
.total dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-4) var(--space-12); margin: var(--space-8) 0 0; font: 600 28px/32px var(--sans); font-variant-numeric: tabular-nums; color: var(--ivory); }
.total dd small { font: 400 var(--body-size)/var(--body-line) var(--sans); color: var(--ivory-85); }
.total--due dd { color: var(--sindoor-400); }
.who__menu { position: absolute; right: 0; top: calc(100% + 8px); padding: var(--space-8); border-radius: var(--r-control); background: var(--paper); box-shadow: 0 1px 0 var(--linen), 0 16px 48px var(--veil-20); }
.who__email { margin: 0; padding: var(--space-8) var(--space-12) var(--space-12); font-size: var(--small-size); line-height: var(--small-line); color: var(--soft); border-bottom: 1px solid var(--linen); margin-bottom: var(--space-4); overflow-wrap: anywhere; }
.who__item { display: block; width: 100%; min-height: var(--target); padding: 0 var(--space-12); border: 0; border-radius: var(--r-small); background: none; text-align: left; cursor: pointer; font: 500 var(--body-size)/var(--body-line) var(--sans); }
.who__item:hover { background: var(--ui-soft); }

/* Tabs: text with a Peacock underline on the open one; the count sits beside the name */
.tabs { padding-top: var(--space-40); border-bottom: 1px solid var(--linen); }   /* air between the band and the tabs + toolbar group */
.toolbar__inner { max-width: var(--w-wide); margin: 0 auto; padding: var(--space-20) var(--gutter) 0; }   /* tabs and toolbar read as one group */
.toolbar__inner:empty { display: none; }
.toolbar .tools { margin: 0; }
.tabs__inner { display: flex; gap: var(--space-8); max-width: var(--w-wide); margin: 0 auto; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.tabs__inner::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; display: inline-flex; align-items: center; gap: var(--space-8); min-height: 52px; padding: 0 var(--space-16); border: 0; background: none; cursor: pointer;
  font: 500 var(--body-size)/var(--body-line) var(--sans); color: var(--soft); transition: color var(--t-quick) var(--ease-standard); }
.tab:first-child { margin-left: calc(var(--space-16) * -1); }
.tab::after { content: ""; position: absolute; left: var(--space-16); right: var(--space-16); bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.tab:hover { color: var(--house); }
.tab:hover::after { background: var(--linen); }
.tab[aria-selected="true"] { color: var(--house); font-weight: 600; }
.tab[aria-selected="true"]::after { background: var(--peacock); }
.tab:focus-visible { box-shadow: inset var(--focus-ring); border-radius: var(--r-small); }
.tab__n { font: 500 var(--body-size)/var(--body-line) var(--sans); color: var(--soft); font-variant-numeric: tabular-nums; }
.tab__n:empty { display: none; }
/* New since you last looked: a small Gold pill on the tab, a Gold word in the totals, a "New" label and a Gold edge on the row */
.tab__new { padding: 0 var(--space-8); border-radius: var(--r-pill); background: var(--gold); color: var(--house); font: 600 13px/22px var(--sans); white-space: nowrap; }
.tab__new[hidden] { display: none; }
.total__new { color: var(--gold); font-weight: 600; }
.new-tag { display: inline-block; margin-left: var(--space-8); padding: 0 var(--space-8); border-radius: var(--r-pill); background: var(--gold); color: var(--house); font: 600 12px/20px var(--sans); vertical-align: middle; }
.grid tr.is-new td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.grid tr.is-new.is-open td:first-child { box-shadow: inset 3px 0 0 var(--peacock); }
.pager__seen { min-height: 40px; padding: 0 var(--space-8); font-size: var(--body-size); }

.main { max-width: var(--w-wide); margin: 0 auto; padding: var(--space-24) var(--gutter) var(--space-120); outline: none; }
.loading { color: var(--soft); }

/* Team and logins (opens from the Admin menu): a small title, not a hero */
.view-head { margin-bottom: var(--space-24); }
.view-title { margin: 0 0 var(--space-4); font: 600 20px/28px var(--sans); }
.view-lead { margin: 0; color: var(--soft); }

/* Toolbar: search, the Paid filter, the style filter, the count */
.tools { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-12); margin-bottom: var(--space-16); }
.search { position: relative; flex: 1 1 320px; max-width: 420px; }
.search svg { position: absolute; left: var(--space-16); top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--soft); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 0 17px 0 49px; border: 0; outline: 1px solid var(--field-line); outline-offset: -1px; border-radius: var(--r-pill); background: var(--paper); font: 500 16px/24px var(--sans); -webkit-appearance: none; appearance: none;
  transition: outline-color var(--t-quick) var(--ease-standard), outline-width var(--t-quick) var(--ease-standard), outline-offset var(--t-quick) var(--ease-standard); }
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--linen); }
.seg button { min-height: 40px; padding: 0 var(--space-16); border: 0; border-radius: var(--r-pill); background: none; cursor: pointer; font: 600 14px/20px var(--sans); color: var(--house); }
.seg button:hover { background: var(--neutral-300); }
.seg button[aria-pressed="true"] { background: var(--paper); box-shadow: 0 1px 3px var(--veil-20); }
.pick { position: relative; }
.pick select { min-height: 48px; padding: 0 41px 0 17px; border: 0; outline: 1px solid var(--field-line); outline-offset: -1px; border-radius: var(--r-pill); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 5l5 5 5-5' fill='none' stroke='%230B0A09' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
  font: 500 15px/24px var(--sans); cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: outline-color var(--t-quick) var(--ease-standard), outline-width var(--t-quick) var(--ease-standard), outline-offset var(--t-quick) var(--ease-standard); }
.tools__count { margin-left: auto; font-size: var(--small-size); line-height: var(--small-line); color: var(--soft); }

/* ---------- The tables: one light surface, thin lines between rows; Peacock 100 on hover and on the open row ---------- */
.sheet { overflow-x: auto; border: 1px solid var(--linen); border-radius: var(--r-control); background: var(--paper); }
.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--cell-size); line-height: var(--cell-line); font-variant-numeric: tabular-nums; }
.grid thead th { padding: var(--space-12) var(--space-12); border-bottom: 1px solid var(--linen); text-align: left; vertical-align: bottom; font: 500 16px/24px var(--sans); color: var(--house); white-space: nowrap; }
.grid th.num, .grid td.num { text-align: right; }
.sort { display: inline-flex; align-items: center; gap: var(--space-8); min-height: 40px; margin: 0 calc(var(--space-8) * -1); padding: 0 var(--space-8); border: 0; border-radius: var(--r-small); background: none; cursor: pointer; font: inherit; color: inherit; }
.sort:hover { background: var(--linen); }
.sort__i { display: inline-flex; color: var(--soft); }
.sort__i svg { width: 16px; height: 16px; }
th[aria-sort] .sort__i { color: var(--peacock); }
th.num .sort { flex-direction: row-reverse; }
.grid td, .grid tbody th { padding: 14px var(--space-12); border-bottom: 1px solid var(--linen); vertical-align: middle; text-align: left; font-weight: 400; }
.grid tr > :first-child { padding-left: var(--space-20); }
.grid tr > :last-child { padding-right: var(--space-20); }
.grid tbody tr:last-child td, .grid tbody tr:last-child th { border-bottom: 0; }
.grid tr.is-row { cursor: pointer; }
.grid tr.is-row:hover td { background: var(--tint); }
.grid tr.is-open td { background: var(--tint); }
.grid tr.is-open td:first-child { box-shadow: inset 3px 0 0 var(--peacock); }
.cell-id { display: inline-flex; align-items: center; min-height: 36px; margin: 0 calc(var(--space-8) * -1); padding: 0 var(--space-8); border: 0; border-radius: var(--r-small); background: none; cursor: pointer;
  font: 600 14px/20px var(--sans); letter-spacing: 0.02em; color: var(--house); text-decoration: underline; text-decoration-color: var(--gold-ink-40); text-underline-offset: 4px; white-space: nowrap; }
.cell-id:hover { text-decoration-color: currentColor; }
.cell-main { font-weight: 600; }
.cell-sub { display: block; color: var(--soft); font-size: 14px; line-height: 20px; }
.cell-quiet { color: var(--soft); }
.cell-wrap { min-width: 200px; max-width: 320px; }
.cell-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 260px; color: var(--soft); font-size: 14px; line-height: 20px; }
.nowrap { white-space: nowrap; }
.empty { padding: var(--space-48) var(--space-24); text-align: center; color: var(--soft); }
.empty strong { display: block; margin-bottom: var(--space-4); font: 600 var(--body-size)/var(--body-line) var(--sans); color: var(--house); }
mark { background: var(--gold-300); color: inherit; border-radius: 3px; padding: 0 1px; }

/* The dance style, entry type and age group: plain words (no pills); in the drawer they sit in a line with dots */
.tag { white-space: nowrap; }
.d-tags .tag + .tag::before { content: "·"; margin: 0 var(--space-8); color: var(--soft); }

/* Paid: a checkbox and its words. Empty box + "Not paid", or a filled Peacock box with a tick + "Paid" and the date. 44px tall to tap */
.paid { display: inline-flex; align-items: center; gap: var(--space-12); min-height: var(--target); min-width: 120px; margin: 0 calc(var(--space-8) * -1); padding: 0 var(--space-8); border: 0; border-radius: var(--r-small); background: none; cursor: pointer; white-space: nowrap;
  font: 400 15px/24px var(--sans); color: var(--soft); }
/* The box is the design system's checkbox (assets/choice.css, .ds-check) */
.paid[aria-pressed="true"] { color: var(--house); font-weight: 600; }
.paid:focus-visible { box-shadow: var(--focus-ring); }
.paid__date { font-weight: 400; color: var(--soft); }
.paid--static { cursor: default; margin: 0; padding: 0; color: var(--soft); }

/* Pages under each table */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-8) var(--space-16); padding: var(--space-12) 0 0; color: var(--soft); font-size: var(--body-size); line-height: var(--body-line); }
.pager:empty { display: none; }
.pager--top { padding: 0 0 var(--space-12); }
.pager__per { display: inline-flex; align-items: center; gap: var(--space-12); }
.pick--small select { min-height: 40px; padding-left: 15px; }
.pager__at { margin: 0 auto 0 0; color: var(--house); font-variant-numeric: tabular-nums; }
.pager__nav { display: flex; gap: var(--space-4); }
.icon-btn[disabled] { opacity: 0.35; cursor: default; background: none; }
button.icon-btn { border: 0; background: none; cursor: pointer; }
.icon-btn:focus-visible { box-shadow: var(--focus-ring); }

/* ---------- Summary ---------- */
/* Two tables side by side: entries by age and size, and money. Same table style as every tab */
.sum { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-32); align-items: start; }
.sum__title { margin: 0 0 var(--space-12); font: 600 var(--body-size)/var(--body-line) var(--sans); }
.sum__note { margin: var(--space-12) 0 0; color: var(--soft); font-size: 14px; line-height: 20px; }
.grid--sum td.num, .grid--money td.num { font-weight: 600; }
.grid--sum .zero { color: var(--soft); font-weight: 400; }
.grid--sum tfoot td { padding: 14px var(--space-16); border-top: 1px solid var(--house); font-weight: 600; }
.grid--money tbody th { color: var(--soft); }
.grid--money tr.is-due td { color: var(--error); }
.check-line { display: flex; gap: var(--space-8); margin: var(--space-16) 0 0; color: var(--error); font-size: var(--small-size); line-height: var(--small-line); }

/* ---------- Music ---------- */
.play { position: relative; display: inline-grid; place-items: center; width: var(--target); height: var(--target); border: 0; border-radius: 50%; background: var(--gold); color: var(--house); cursor: pointer; flex: none; transition: background var(--t-quick) var(--ease-standard); }
.play:hover { background: var(--gold-300); }
/* The song cell in Entries: play button beside the song name and length (44px, the tap size) */
.song { display: flex; align-items: center; gap: var(--space-12); min-width: 220px; }
.song__text { min-width: 0; flex: 1; }
.song .bar { margin-top: calc(var(--space-4) - 20px); }
.play svg { width: 16px; height: 16px; }
.play .i-pause { display: none; }
.play[aria-pressed="true"] { background: var(--ui-strong); color: var(--gold); }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }
/* The scrub bar: a 44px tall touch area (negative margins keep the layout as it was) with the 4px line drawn in its middle */
.bar { position: relative; height: 44px; margin: calc(var(--space-8) - 20px) 0 -20px; overflow: hidden; cursor: pointer; }
.bar::before { content: ""; position: absolute; inset: 20px 0; border-radius: 2px; background: rgba(11, 10, 9, 0.12); }
.bar i { position: absolute; inset: 20px auto 20px 0; width: 0; border-radius: 2px; background: var(--gold-ink); }
.icon-btn { display: inline-grid; place-items: center; width: var(--target); height: var(--target); border-radius: 50%; color: var(--house); text-decoration: none; }
.icon-btn:hover { background: rgba(11, 10, 9, 0.08); }
.icon-btn svg { width: 20px; height: 20px; }
.file { font-size: 13px; line-height: 20px; color: var(--soft); overflow-wrap: anywhere; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--column-gap); align-items: start; }
.panel { padding: var(--space-32); border-radius: var(--r-photo); background: var(--paper); }
.panel + .panel { margin-top: var(--space-24); }
.panel__title { margin: 0 0 var(--space-8); font: 400 var(--h4-size)/var(--h4-line) var(--serif); }
.panel__lead { margin: 0 0 var(--space-24); font-size: var(--small-size); line-height: var(--small-line); color: var(--soft); }
.panel--warn { box-shadow: inset 0 0 0 1px var(--error); }
.newpw { margin: var(--space-16) 0 0; padding: var(--space-16) var(--space-20); border-radius: var(--r-control); background: var(--peacock-900); color: var(--ivory); }
.newpw p { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.newpw code { display: block; margin: var(--space-8) 0; font: 600 22px/28px ui-monospace, "SF Mono", Menlo, monospace; color: var(--gold); letter-spacing: 0.04em; user-select: all; }
.row-actions { display: flex; gap: var(--space-4); justify-content: flex-end; flex-wrap: wrap; }
.row-actions .btn--text { font-size: 14px; }
.role { font: 600 12px/16px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-ink); }
.grid--team { --tint: var(--tint-team); }

/* ---------- The drawer: one registration in full ---------- */
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer__veil { position: absolute; inset: 0; background: var(--veil-40); animation: fade var(--t-short) var(--ease-standard) both; }
.drawer__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(520px, 100%); overflow-y: auto; background: var(--ivory); box-shadow: -24px 0 80px var(--veil-20); outline: none; animation: slide var(--t-medium) var(--ease-glide) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer__close { position: sticky; top: var(--space-16); float: right; margin: var(--space-16) var(--space-16) 0 0; display: grid; place-items: center; width: var(--target); height: var(--target); border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; z-index: 2; }
.drawer__close:hover { background: var(--ui-soft); }
.drawer__close svg { width: 20px; height: 20px; }
/* Condensed: smaller title, tighter sections and rows, same content */
.drawer__body { padding: var(--space-24) var(--space-32) var(--space-40); }
.d-title { margin: var(--space-8) 0 var(--space-4); font: 400 var(--h4-size)/var(--h4-line) var(--serif); }
.d-tags { display: flex; flex-wrap: wrap; margin-bottom: var(--space-20); color: var(--soft); font-size: 15px; line-height: 24px; }
.d-pay { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); flex-wrap: wrap; margin-bottom: var(--space-24); padding: var(--space-12) var(--space-16); border-radius: var(--r-control); background: var(--paper); border: 1px solid var(--linen); }
.d-pay__sum { font: 600 20px/28px var(--sans); }
.d-pay__sum small { display: block; font: 400 14px/20px var(--sans); color: var(--soft); }
.d-sec { margin: 0 0 var(--space-24); }
.d-sec h3 { margin: 0 0 var(--space-8); }
.d-list { margin: 0; }
.d-list > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--space-16); padding: var(--space-8) 0; border-top: 1px solid var(--linen); }
.d-list dt { font-size: 14px; line-height: 24px; color: var(--soft); }
.d-list dd { margin: 0; font-size: 15px; line-height: 24px; overflow-wrap: anywhere; white-space: pre-wrap; }
.d-people { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--linen); }
.d-people li { display: flex; justify-content: space-between; gap: var(--space-16); padding: var(--space-8) 0; border-bottom: 1px solid var(--linen); font-size: 15px; line-height: 24px; }
.d-people span { color: var(--soft); font-variant-numeric: tabular-nums; }
.d-player { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-8) var(--space-12); border-radius: var(--r-control); background: var(--paper); border: 1px solid var(--linen); margin-bottom: var(--space-8); }
.d-player__info { flex: 1; min-width: 0; }
.d-note textarea { min-height: 96px; }
.d-note__state { min-height: 24px; margin: var(--space-8) 0 0; font-size: 14px; line-height: 20px; color: var(--soft); }

/* ---------- Dialog, toast ---------- */
.modal { width: min(480px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--r-photo); background: var(--ivory); color: var(--house); box-shadow: 0 40px 120px var(--veil-40); }
.modal::backdrop { background: var(--veil-55); }
.modal__form { padding: var(--space-40); }
.modal__title { margin: 0 0 var(--space-24); font: 400 var(--h4-size)/var(--h4-line) var(--serif); }
.modal__text { margin: 0 0 var(--space-24); color: var(--soft); }
.modal__foot { display: flex; gap: var(--space-8); align-items: center; margin-top: var(--space-8); }
.toast { position: fixed; left: 50%; bottom: var(--space-32); z-index: 60; display: flex; align-items: center; gap: var(--space-16); min-height: 56px; padding: var(--space-8) var(--space-8) var(--space-8) var(--space-24); border-radius: var(--r-pill);
  background: var(--peacock-900); color: var(--ivory); font: 500 var(--small-size)/var(--small-line) var(--sans); box-shadow: 0 16px 48px var(--veil-40); transform: translateX(-50%); animation: toast var(--t-short) var(--ease-glide) both; max-width: calc(100% - 32px); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 12px); } }
.toast__undo { min-height: 40px; padding: 0 var(--space-16); border: 0; border-radius: var(--r-pill); background: var(--gold); color: var(--house); cursor: pointer; font: 600 14px/20px var(--sans); }
.toast:not(:has(.toast__undo:not([hidden]))) { padding-right: var(--space-24); }

/* ==========================================================================
   Tablet and phone
   ========================================================================== */
@media (max-width: 1199px) {
  .sum, .team { grid-template-columns: 1fr; gap: var(--space-40); }
  .sum > section:last-child, .team > aside { max-width: 560px; }
}
@media (max-width: 899px) {
  .top { position: static; }
  .totals__inner { display: flex; overflow-x: auto; scrollbar-width: none; }
  .totals__inner::-webkit-scrollbar { display: none; }
  .total { flex: none; padding: 0 var(--space-20); }
  .total dd small { display: none; }
}
@media (max-width: 767px) {
  .top__inner { gap: var(--space-12); padding-top: var(--space-8); padding-bottom: var(--space-8); }
  .top__logo { width: 136px; }
  .dl__btn span { display: none; }
  .dl__btn { padding: 0 var(--space-12); }
  .search { max-width: none; flex-basis: 100%; }
  .tools__count { margin-left: 0; width: 100%; }
  /* Rows become cards: each value under its own small label */
  .grid--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sheet:has(.grid--cards) { border: 0; background: none; border-radius: 0; }
  .grid--cards, .grid--cards tbody { display: block; }
  .grid--cards tr { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12) var(--space-16); margin-bottom: var(--space-8); padding: var(--space-16); border: 1px solid var(--linen); border-radius: var(--r-control); background: var(--paper); }
  .grid--cards td, .grid--cards tbody tr:nth-child(even) td { display: block; padding: 0; border: 0; background: none !important; border-radius: 0; text-align: left !important; box-shadow: none !important; }
  .grid--cards td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 11px/16px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
  .grid--cards td[data-label=""]::before { display: none; }
  .grid--cards td.wide { grid-column: 1 / -1; }
  .grid--cards td.hide-sm { display: none; }
  .grid--cards tr.is-open { background: var(--tint); box-shadow: inset 3px 0 0 var(--peacock); }
  .cell-wrap, .cell-note { max-width: none; min-width: 0; }
  .drawer__body { padding: var(--space-24) var(--gutter) var(--space-64); }
  .d-list > div { grid-template-columns: 1fr; gap: 2px; }
  .panel { padding: var(--space-24); }
  .row-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}
