:root {
  /* Pay and Play tokens. The tenant's colours come from /brand.css, loaded after this file. */
  --bg:#f5f6f8; --surface:#ffffff; --surface-subtle:#f9fafb; --surface-muted:#f2f4f7;
  --ink:#14171c; --ink-2:#344054; --ink-muted:#667085; --ink-faint:#98a2b3;
  --line:#e4e7ec; --line-row:#eaecf0; --line-panel:#e4e7ec; --line-input:#d0d5dd; --line-strong:#d0d5dd;
  --brand:#2563eb; --brand-hover:#1d4ed8; --brand-deep:#1e3a8a; --brand-tint:#eff6ff; --brand-border:#bfdbfe; --on-brand:#ffffff;
  --success:#067647; --success-strong:#05603a; --success-tint:#ecfdf3; --success-line:#abefc6;
  --warning:#b54708; --warning-strong:#93370d; --warning-tint:#fffaeb; --warning-line:#fedf89;
  --danger:#b42318; --danger-strong:#912018; --danger-tint:#fef3f2; --danger-line:#fecdca;
  --scanner-ground:#14161a; --scanner-corner:#4ade80; --scanner-status:#c7cbd1;
  --radius-sm:4px; --radius-md:10px; --radius-lg:12px; --radius-xl:16px; --radius-2xl:20px; --radius-logo:16px; --radius-pill:999px; --radius-round:50%;
  --shadow-sm:0 1px 2px rgba(16,24,40,.06); --shadow-md:0 8px 20px -6px rgba(16,24,40,.12),0 2px 6px -2px rgba(16,24,40,.06);
  --font-sans:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; --font-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
html, body { margin: 0; height: 100%; background: var(--bg); }
.gc-app { height: 100vh; height: 100dvh; }
[hidden] { display: none !important; }
/* Pay and Play component classes. Plain CSS over tokens.css; the app renders these from Go templates.
   Every size answers to the width of its own frame (.gc-app is the container), so a phone, a tablet and a desktop
   are one build: bottom tabs under 700px, an icon rail from 700px, a full sidebar and wide tables from 1000px. */
.gc-page, .gc-app { font-family: var(--font-sans); color: var(--ink); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.gc-page *, .gc-page *::before, .gc-page *::after, .gc-app *, .gc-app *::before, .gc-app *::after { box-sizing: border-box; }
.gc-page h1, .gc-page h2, .gc-page h3, .gc-page p, .gc-app h1, .gc-app h2, .gc-app h3, .gc-app p { margin: 0; }
.gc-page ul, .gc-app ul { margin: 0; padding: 0; list-style: none; }
:where(.gc-page, .gc-app) a { color: var(--brand); font-weight: 600; text-decoration: none; cursor: pointer; }
:where(.gc-page, .gc-app) a:hover { text-decoration: underline; }
.gc-app { container: gc / inline-size; background: var(--bg); overflow: hidden; }
.gc-i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.gc-i.sm { width: 18px; height: 18px; } .gc-i.xs { width: 15px; height: 15px; }
.gc-page :focus-visible, .gc-app :focus-visible { outline: 3px solid var(--brand-border); outline-offset: 2px; box-shadow: 0 0 0 1px var(--brand); }

/* Buttons: one filled brand button per screen. */
.gc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-lg); border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand);
  font: 600 15px/1.3 var(--font-sans); cursor: pointer; box-shadow: var(--shadow-sm); text-decoration: none; white-space: nowrap; }
.gc-btn:hover { background: var(--brand-hover); border-color: var(--brand-hover); text-decoration: none; }
.gc-btn.secondary, .gc-btn.neutral { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.gc-btn.secondary:hover, .gc-btn.neutral:hover { background: var(--surface-subtle); border-color: var(--ink-faint); }
.gc-btn.ghost { background: transparent; border-color: transparent; color: var(--brand); box-shadow: none; padding: 0 10px; }
.gc-btn.ghost:hover { background: var(--brand-tint); }
.gc-btn.danger { background: var(--danger); border-color: var(--danger); color: var(--on-brand); }
.gc-btn.danger.outline { background: var(--surface); color: var(--danger); border-color: var(--danger-line); }
.gc-btn.danger.outline:hover { background: var(--danger-tint); }
.gc-btn.pay { background: var(--success); border-color: var(--success); }
.gc-btn.sm { min-height: 36px; padding: 0 13px; font-size: 14px; border-radius: var(--radius-md); }
.gc-btn.lg, .gc-btn.scan { min-height: 54px; font-size: 16px; border-radius: 14px; }
.gc-btn.scan { font-weight: 700; }
.gc-btn.block { display: flex; width: 100%; }
.gc-btn[disabled] { opacity: .45; cursor: not-allowed; }
.gc-ibtn { width: 36px; height: 36px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); cursor: pointer; }
.gc-ibtn:hover { background: var(--surface-subtle); border-color: var(--line-strong); }

/* Status: a word, a dot and a tint, never colour alone. */
.gc-pill { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--font-sans); padding: 5px 10px 5px 8px; border-radius: var(--radius-pill); white-space: nowrap; background: var(--surface-subtle); color: var(--ink-2); border: 1px solid var(--line); }
.gc-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gc-pill.nodot::before { display: none; } .gc-pill.nodot { padding-left: 10px; }
.gc-pill.ok, .gc-pill.active { background: var(--success-tint); color: var(--success); border-color: var(--success-line); }
.gc-pill.warn, .gc-pill.pending { background: var(--warning-tint); color: var(--warning); border-color: var(--warning-line); }
.gc-pill.bad, .gc-pill.inactive { background: var(--danger-tint); color: var(--danger); border-color: var(--danger-line); }
.gc-pill.brand { background: var(--brand-tint); color: var(--brand-hover); border-color: var(--brand-border); }
.gc-badge { display: inline-block; padding: 1px 7px; border-radius: var(--radius-pill); background: var(--warning-tint); color: var(--warning-strong); font: 700 11px/1.5 var(--font-sans); }

/* People and tenants. */
.gc-avatar, .gc-av { width: 38px; height: 38px; border-radius: var(--radius-round); display: inline-flex; align-items: center; justify-content: center; font: 700 13px/1 var(--font-sans); letter-spacing: .02em; flex-shrink: 0; }
.gc-avatar { background: var(--brand); color: var(--on-brand); }
.gc-av.a0 { background: #e0ecff; color: #1e3a8a; } .gc-av.a1 { background: #dcf5e6; color: #14532d; } .gc-av.a2 { background: #fde8d4; color: #7c2d12; }
.gc-av.a3 { background: #f0e4fb; color: #581c87; } .gc-av.a4 { background: #e4edf1; color: #164e63; }
.gc-avatar.lg, .gc-av.lg { width: 56px; height: 56px; font-size: 19px; }
.gc-logo { width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--brand-deep); color: var(--on-brand); font: 800 14px/1 var(--font-sans); letter-spacing: .02em; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.gc-logo.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; } .gc-logo.lg { width: 56px; height: 56px; border-radius: var(--radius-logo); font-size: 20px; }
.gc-logo img { width: 100%; height: 100%; object-fit: cover; }
.gc-who { display: flex; align-items: center; gap: 12px; min-width: 0; } .gc-who > div { min-width: 0; }
.gc-who b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gc-who small { display: block; font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cards, panels and the list inside them. */
.gc-card, .gc-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); min-width: 0; overflow: hidden; }
.gc-card-h, .gc-panel > h2 { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font: 700 15px/1.3 var(--font-sans); letter-spacing: -.005em; }
.gc-card-h h2 { flex: 1; font: inherit; } .gc-card-h .sub { font: 400 13px var(--font-sans); color: var(--ink-muted); }
.gc-card-b { padding: 18px; }
.gc-panel li, .gc-list li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); }
.gc-panel li:first-child, .gc-list li:first-child { border-top: 0; }
.gc-panel .grow, .gc-list .grow { flex: 1; min-width: 0; }
.gc-panel .muted, .gc-list .muted { color: var(--ink-muted); }
.gc-panel .paid, .gc-list .paid { color: var(--success); font-weight: 600; } .gc-panel .owes, .gc-list .owes { color: var(--warning); font-weight: 600; }
.gc-eyebrow { font: 700 11px/1.3 var(--font-sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); }

/* Stat tiles: white, with a tinted icon chip. */
.gc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gc-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gc-stat .lbl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink-muted); }
.gc-stat .chip { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); }
.gc-stat .chip.g { background: var(--success-tint); color: var(--success); } .gc-stat .chip.w { background: var(--warning-tint); color: var(--warning); } .gc-stat .chip.n { background: var(--surface-subtle); color: var(--ink-2); }
.gc-stat .val { font: 700 28px/1.15 var(--font-sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.gc-stat .delta { font-size: 12.5px; color: var(--ink-muted); }

/* Forms. */
.gc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0 0 16px; }
.gc-field label, .gc-field .lab { font: 600 13.5px/1.3 var(--font-sans); color: var(--ink-2); }
.gc-field .hint { font-size: 12.5px; color: var(--ink-muted); }
.gc-input, .gc-field input[type="text"], .gc-field input[type="email"], .gc-field select { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); font: 16px var(--font-sans); color: var(--ink); box-shadow: var(--shadow-sm); }
.gc-input:focus { outline: 3px solid var(--brand-border); border-color: var(--brand); }
.gc-input.err { border-color: var(--danger); background: var(--danger-tint); }
.gc-search { position: relative; } .gc-search .gc-i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); width: 18px; height: 18px; } .gc-search .gc-input { padding-left: 40px; }
.gc-switch { display: flex; align-items: center; gap: 14px; min-height: 44px; } .gc-switch .tx { flex: 1; min-width: 0; } .gc-switch .tx b { display: block; font-weight: 600; } .gc-switch .tx span { font-size: 13px; color: var(--ink-muted); }
.gc-tog { position: relative; width: 46px; height: 28px; border-radius: 999px; border: 0; background: var(--line-strong); cursor: pointer; flex-shrink: 0; }
.gc-tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .3); }
.gc-tog[aria-checked="true"], input.gc-tog:checked { background: var(--brand); } .gc-tog[aria-checked="true"]::after, input.gc-tog:checked::after { transform: translateX(18px); }
input.gc-tog { appearance: none; margin: 0; }
.gc-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-subtle); }
.gc-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.gc-seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-lg); background: var(--surface-subtle); border: 1px solid var(--line); }
.gc-seg button { flex: 1; min-height: 40px; border: 0; border-radius: 9px; background: transparent; font: 600 14px/1.2 var(--font-sans); color: var(--ink-muted); cursor: pointer; padding: 4px 8px; }
.gc-seg small { display: block; font-weight: 500; font-size: 12px; opacity: .85; }
.gc-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.gc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-chips button { min-height: 34px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); font: 600 13.5px var(--font-sans); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.gc-chips button b { font-weight: 600; color: var(--ink-muted); }
.gc-chips button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); } .gc-chips button[aria-pressed="true"] b { color: var(--on-brand); opacity: .8; }
.gc-colorrow { display: flex; align-items: center; gap: 12px; }
.gc-swatch { width: 44px; height: 44px; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); background: var(--brand); flex-shrink: 0; }
.gc-contrast { font-size: 13px; font-weight: 600; color: var(--success); } .gc-contrast.bad { color: var(--danger); }

/* Data list: cards on a phone, a table from 700px. Give each cell data-l (its label) and set --cols on the rows. */
.gc-dl-head { display: none; }
.gc-dl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: start; }
.gc-dl-head + .gc-dl-row, .gc-card > .gc-dl-row:first-child { border-top: 0; }
.gc-dl-row > .main { grid-column: 1 / -1; }
.gc-dl-row > [data-label]::before { content: attr(data-label); display: block; font: 700 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }
.gc-dl-row .acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; } .gc-dl-row .acts .gc-btn { flex: 1; }
.gc-mono { font: 500 12.5px/1.5 var(--font-mono); color: var(--ink-2); overflow-wrap: anywhere; }
.gc-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; min-width: 60px; } .gc-bar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.gc-meter { height: 6px; margin-top: 8px; background: var(--line); border-radius: 3px; overflow: hidden; } .gc-meter i { display: block; height: 100%; background: var(--brand); }

/* Member surfaces. */
.gc-hero { background: linear-gradient(140deg, var(--brand) 0%, var(--brand-deep) 130%); color: var(--on-brand); border-radius: var(--radius-2xl); padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-md); }
.gc-hero .gc-who b { color: var(--on-brand); font-size: 18px; } .gc-hero .gc-who small { color: rgba(255, 255, 255, .82); } .gc-hero .gc-avatar { background: rgba(255, 255, 255, .2); }
.gc-hero .gc-btn { background: #fff; color: var(--brand-deep); border-color: #fff; } .gc-hero .gc-btn:hover { background: var(--surface-muted); }
.gc-ent { display: flex; flex-direction: column; } .gc-ent .item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); }
.gc-ent .item:first-child { border-top: 0; }
.gc-ent .ic { width: 40px; height: 40px; border-radius: var(--radius-lg); background: var(--brand-tint); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gc-ent .what { flex: 1; min-width: 0; } .gc-ent .what b { display: block; font-weight: 600; } .gc-ent .what span { font-size: 13px; color: var(--ink-muted); }
.gc-ent .num { font: 700 20px/1 var(--font-sans); letter-spacing: -.01em; color: var(--brand-hover); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gc-ent .low .num { color: var(--warning-strong); }
.gc-callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius-xl); background: var(--brand-tint); border: 1px solid var(--brand-border); color: var(--brand-deep); }
.gc-callout p { margin: 2px 0 12px; font-size: 14px; }
.gc-qrcard { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; max-width: 340px; margin: 0 auto; }
.gc-qrbox { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-2xl); box-shadow: var(--shadow-md); }
.gc-qrbox .qr { display: block; width: 220px; aspect-ratio: 1; background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 22px 22px; border: 8px solid #fff; outline: 2px solid var(--ink); }
.gc-timer { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-muted); font-weight: 500; }

/* Staff surfaces. */
.gc-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--success-line); background: var(--success-tint); color: var(--success); }
.gc-banner b { display: block; font-size: 16px; color: var(--success-strong); } .gc-banner span { font-size: 13.5px; color: var(--success-strong); }
.gc-banner.warn { border-color: var(--warning-line); background: var(--warning-tint); color: var(--warning); } .gc-banner.warn b, .gc-banner.warn span { color: var(--warning-strong); }
.gc-banner.bad { border-color: var(--danger-line); background: var(--danger-tint); color: var(--danger); } .gc-banner.bad b, .gc-banner.bad span { color: var(--danger-strong); }
.gc-result { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-pill); font-weight: 600; }
.gc-result.success { background: var(--success-tint); color: var(--success-strong); } .gc-result.fail { background: var(--danger-tint); color: var(--danger-strong); }
.gc-payment { border: 1px solid var(--warning-line); background: var(--warning-tint); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.gc-payment p { font-size: 17px; } .gc-payment .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .gc-payment .other { display: flex; gap: 8px; }
.gc-viewfinder { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3; max-width: 100%; background: radial-gradient(120% 90% at 50% 35%, #2a2f38 0%, var(--scanner-ground) 70%); }
.gc-viewfinder .corner { position: absolute; width: 38px; height: 38px; border: 0 solid var(--scanner-corner); }
.gc-viewfinder .tl { top: 18px; left: 18px; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 12px; }
.gc-viewfinder .tr { top: 18px; right: 18px; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 12px; }
.gc-viewfinder .bl { bottom: 18px; left: 18px; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 12px; }
.gc-viewfinder .br { bottom: 18px; right: 18px; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 12px; }
.gc-viewfinder .line { position: absolute; left: 12%; right: 12%; top: 40%; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--scanner-corner), transparent); box-shadow: 0 0 14px var(--scanner-corner); }
.gc-viewfinder p { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: var(--scanner-status); font-size: 13.5px; padding: 0 24px; }
.gc-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); overflow: hidden; }
.gc-sheet .head { padding: 16px 18px; border-bottom: 1px solid var(--line); } .gc-sheet h2 { font: 700 18px/1.2 var(--font-sans); letter-spacing: -.01em; } .gc-sheet .who { font-size: 14px; color: var(--ink-muted); margin-top: 2px; }
.gc-sheet .row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); } .gc-sheet .row:first-of-type { border-top: 0; }
.gc-sheet .what { flex: 1; min-width: 0; } .gc-sheet .what b { display: block; font-weight: 600; } .gc-sheet .what span { font-size: 13px; color: var(--ink-muted); }
.gc-sheet .price { font: 700 16px/1.2 var(--font-sans); font-variant-numeric: tabular-nums; }
.gc-sheet .topups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 18px 18px; }
.gc-sheet .topups button { min-height: 48px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); font: 700 16px var(--font-sans); cursor: pointer; }
.gc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gc-tiles a { display: block; padding: 16px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-xl); font: 600 15px/1.3 var(--font-sans); color: var(--ink); background: var(--surface); }
.gc-tiles a:hover { background: var(--brand-tint); text-decoration: none; }

/* Sign-in: a card on a phone, a brand panel beside it from 1000px. */
.gc-auth { min-height: 100%; display: flex; background: radial-gradient(90% 60% at 50% 0%, var(--brand-tint), transparent 70%), var(--bg); }
.gc-auth-brand { display: none; }
.gc-auth-card { margin: auto; width: 100%; max-width: 420px; padding: 32px 20px; display: flex; flex-direction: column; gap: 18px; }
.gc-auth-card h1 { font: 700 26px/1.2 var(--font-sans); letter-spacing: -.02em; }
.gc-or { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font: 600 12.5px var(--font-sans); text-transform: uppercase; letter-spacing: .06em; }
.gc-or::before, .gc-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* The shell: rail, top bar, content, tab bar. */
.gc-frame { display: flex; width: 100%; height: 100%; min-width: 0; background: var(--bg); }
.gc-rail { display: none; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); flex-shrink: 0; }
.gc-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gc-bar { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.gc-bar .ttl { flex: 1; min-width: 0; } .gc-bar .ttl b { display: block; font: 700 16px/1.3 var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gc-bar .ttl small { display: block; font-size: 12px; color: var(--ink-muted); line-height: 1.2; }
.gc-content { flex: 1; overflow-y: auto; --pad: 16px; }
.gc-pg { padding: var(--pad); display: flex; flex-direction: column; gap: 16px; max-width: 1180px; margin: 0 auto; width: 100%; }
.gc-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; } .gc-pagehead .grow { flex: 1 1 240px; }
.gc-pagehead h1 { font: 700 24px/1.2 var(--font-sans); letter-spacing: -.02em; } .gc-pagehead p { color: var(--ink-muted); margin-top: 4px; font-size: 14px; }
.gc-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.gc-tabs { display: flex; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: 6px; flex-shrink: 0; }
.gc-tabs button, .gc-tabs a { flex: 1; min-height: 58px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: 600 11px/1 var(--font-sans); color: var(--ink-muted); cursor: pointer; position: relative; text-decoration: none; }
.gc-tabs [aria-current="page"] { color: var(--brand); }
.gc-tabs [aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.gc-foot { padding: 8px 16px; text-align: center; font: 400 11px/1.3 var(--font-sans); color: var(--ink-muted); }

@container gc (min-width: 700px) {
  .gc-rail { display: flex; width: 92px; align-items: center; gap: 6px; padding: 14px 8px; }
  .gc-rail .brand { display: flex; align-items: center; padding: 2px 0 14px; } .gc-rail .brand .nm, .gc-rail .brand small, .gc-rail .sect, .gc-rail .meta, .gc-rail .foot { display: none; }
  .gc-rail .nav { display: flex; flex-direction: column; gap: 6px; width: 100%; }
  .gc-rail .nav a, .gc-rail .nav button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 0; border-radius: 14px; background: none; font: 600 11.5px/1.1 var(--font-sans); color: var(--ink-2); cursor: pointer; text-decoration: none; }
  .gc-rail .nav a:hover, .gc-rail .nav button:hover { background: var(--surface-subtle); }
  .gc-rail .nav [aria-current="page"] { background: var(--brand-tint); color: var(--brand-hover); }
  .gc-rail .userbox { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .gc-tabs { display: none; }
  .gc-bar { padding: 10px 24px; min-height: 68px; }
  .gc-content { --pad: 24px; }
  .gc-pagehead h1 { font-size: 28px; }
  .gc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } .gc-stats.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gc-cols.c2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .gc-cols.c53 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .gc-cols.c7 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .gc-dl-head { display: grid; grid-template-columns: var(--cols); gap: 12px; padding: 10px 20px; font: 700 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-subtle); border-bottom: 1px solid var(--line); }
  .gc-dl-row { grid-template-columns: var(--cols); gap: 12px; padding: 12px 20px; align-items: center; }
  .gc-dl-row > [data-label]::before { display: none; } .gc-dl-row > .main { grid-column: auto; }
  .gc-dl-row .acts { grid-column: auto; justify-content: flex-end; } .gc-dl-row .acts .gc-btn { flex: none; }
  .gc-payment .opts { grid-template-columns: repeat(3, 1fr); }
  .gc-auth-card { padding: 40px; }
}
@container gc (min-width: 1000px) {
  .gc-rail { width: 264px; align-items: stretch; padding: 20px 14px; }
  .gc-rail .brand { gap: 10px; padding: 2px 8px 18px; } .gc-rail .brand .nm, .gc-rail .brand small, .gc-rail .sect, .gc-rail .meta, .gc-rail .foot { display: block; }
  .gc-rail .brand .nm { font: 700 15.5px/1.2 var(--font-sans); letter-spacing: -.01em; } .gc-rail .brand small { color: var(--ink-muted); font-size: 12px; line-height: 1.2; margin-top: 2px; }
  .gc-rail .sect { font: 700 11px/1.3 var(--font-sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); padding: 10px 12px 4px; }
  .gc-rail .nav a, .gc-rail .nav button { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 12px; min-height: 44px; font-size: 14.5px; }
  .gc-rail .userbox { flex-direction: row; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--line); }
  .gc-rail .meta { flex: 1; min-width: 0; line-height: 1.25; } .gc-rail .meta b { display: block; font-size: 13.5px; } .gc-rail .meta small { color: var(--ink-muted); font-size: 12px; }
  .gc-rail .foot { font-size: 11.5px; color: var(--ink-faint); padding: 10px 8px 0; }
  .gc-bar { padding: 12px 32px; min-height: 72px; }
  .gc-content { --pad: 32px; } .gc-pg { gap: 20px; }
  .gc-cols.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gc-cols.s { grid-template-columns: minmax(0, 1fr) 340px; }
  .gc-auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .gc-auth-brand { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 56px; background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 120%); color: var(--on-brand); }
  .gc-auth-brand h2 { font: 700 34px/1.15 var(--font-sans); letter-spacing: -.025em; max-width: 14ch; } .gc-auth-brand p { color: rgba(255, 255, 255, .88); font-size: 16px; max-width: 42ch; }
  .gc-auth-brand .gc-logo { background: rgba(255, 255, 255, .18); } .gc-auth-card .gc-logo { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .gc-viewfinder .line { animation: gc-sweep 2.4s ease-in-out infinite alternate; } @keyframes gc-sweep { from { top: 26%; } to { top: 70%; } } }

/* App additions: alerts, notes, links in lists, inline forms, the version line. */
.gc-note { font-size: 14px; color: var(--ink-muted); }
.gc-err { color: var(--danger); font-weight: 600; font-size: 14px; }
.gc-ok { color: var(--success); font-weight: 600; font-size: 14px; }
.gc-lead { color: var(--ink-muted); font-size: 15px; }
.gc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gc-inline { display: inline; margin: 0; }
.gc-small { font-size: 13px; } .gc-num { font-variant-numeric: tabular-nums; }
.gc-owes { color: var(--warning); font-weight: 600; } .gc-credit { color: var(--success); font-weight: 600; }
.gc-grow { flex: 1; min-width: 0; } .gc-row { display: flex; align-items: center; gap: 12px; min-width: 0; } .gc-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gc-stack.tight { gap: 10px; }
.gc-card-b > :last-child { margin-bottom: 0; }
.gc-hint { font-size: 12.5px; color: var(--ink-muted); }
.gc-field .gc-input[type="number"], .gc-field input[type="number"], .gc-field input[type="password"], .gc-field input[type="search"], .gc-field input[type="date"], .gc-field textarea { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); font: 16px var(--font-sans); color: var(--ink); box-shadow: var(--shadow-sm); }
.gc-field textarea { padding: 10px 14px; min-height: 96px; resize: vertical; }
.gc-field select, .gc-input { appearance: auto; }
.gc-two { display: grid; grid-template-columns: 1fr; gap: 16px; } @container gc (min-width: 700px) { .gc-two { grid-template-columns: 1fr 1fr; } .gc-two .full { grid-column: 1 / -1; } }
.gc-table-wrap { overflow-x: auto; }
.gc-table { width: 100%; border-collapse: collapse; font-size: 14px; } .gc-table th, .gc-table td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line-row); vertical-align: top; }
.gc-table th { font: 700 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-subtle); }
.gc-table td.r, .gc-table th.r { text-align: right; } .gc-table tr:last-child td { border-bottom: 0; }
.gc-pager { display: flex; justify-content: space-between; gap: 12px; }
.gc-lock { display: flex; gap: 10px; align-items: center; color: var(--ink-muted); font-size: 13px; }
.gc-install { text-align: center; }
.gc-center { max-width: 460px; margin: 0 auto; width: 100%; }
.gc-dl-row .acts form { display: inline; margin: 0; }
.gc-dl-row.is-link { cursor: pointer; }
.gc-iconlink { color: var(--ink-2); display: inline-flex; }
.gc-auth { height: 100%; overflow-y: auto; }
.gc-hero .balance { font-weight: 600; }
.gc-rail .brand { text-decoration: none; color: var(--ink); } .gc-rail .brand:hover { text-decoration: none; }
.gc-rail .nav a { text-decoration: none; } .gc-rail .nav a:hover { text-decoration: none; }
.gc-bar .ttl { min-width: 0; }
.gc-bar > .gc-logo { border-radius: 8px; }
.gc-foot a { color: var(--ink-muted); font-weight: 500; }
@container gc (min-width: 700px) { .gc-bar > .gc-logo { display: none; } .gc-bar > a.gc-ibtn:last-child { display: none; } }

/* Dashboard bits */
@container gc (min-width: 700px) { .gc-stats.t5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gc-stats.t5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@container gc (min-width: 700px) { .gc-stats.t5 > :last-child:nth-child(odd) { grid-column: auto; } }
.gc-viewfinder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gc-viewfinder p { z-index: 1; }
.gc-payment .other .gc-input { flex: 1; min-width: 0; }
.gc-take summary { cursor: pointer; list-style: none; display: inline; }
.gc-take summary::-webkit-details-marker { display: none; }
.gc-take summary::after { content: " \25BE"; color: var(--ink-faint); font-weight: 400; }
.gc-take form { display: flex; gap: 8px; margin: 8px 0; align-items: center; } .gc-take .gc-input { min-height: 38px; max-width: 160px; }
.gc-chart { display: flex; gap: 8px; align-items: flex-end; }
.gc-chart .col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gc-chart .track { height: 120px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.gc-chart .bar { width: 100%; max-width: 44px; min-height: 3px; border-radius: 8px 8px 0 0; background: var(--brand-border); }
.gc-chart .bar.today { background: var(--brand); }
.gc-chart .n { font-size: 12.5px; font-weight: 600; } .gc-chart .d { font-size: 12px; color: var(--ink-muted); }
.gc-dl-row .acts[data-label]::before { display: none; }
.gc-barlink a { font-size: 13.5px; }
@container gc (min-width: 1000px) { .gc-barlink { display: none; } }

/* Segmented links (a tab-like choice that is a page address), and money text. */
.gc-segs { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-lg); background: var(--surface-subtle); border: 1px solid var(--line); max-width: 460px; }
.gc-segs a { flex: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font: 600 14px var(--font-sans); color: var(--ink-muted); text-decoration: none; padding: 4px 8px; text-align: center; }
.gc-segs a:hover { color: var(--ink); text-decoration: none; }
.gc-segs a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.gc-short { color: var(--warning); font-weight: 600; } .gc-over { color: var(--success); font-weight: 600; }
.gc-table tr.current td { background: var(--brand-tint); } .gc-table tr.correction td { background: var(--surface-subtle); }
.gc-table small { display: block; color: var(--ink-muted); font-size: 12.5px; }
.gc-table td form { margin: 6px 0 0; }
.gc-bal { display: flex; align-items: baseline; gap: 12px; }
@container gc (max-width: 699px) { .gc-table .hide { display: none; } }

/* Long-form pages (the help guide). */
.gc-doc { max-width: 720px; line-height: 1.6; padding-bottom: 48px; gap: 0; }
.gc-doc h1 { font: 700 28px/1.2 var(--font-sans); letter-spacing: -.02em; margin: 12px 0 8px; }
.gc-doc h2 { font: 700 20px/1.3 var(--font-sans); letter-spacing: -.01em; margin: 36px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.gc-doc h3 { font: 700 16px/1.3 var(--font-sans); margin: 22px 0 8px; }
.gc-doc p { margin: 0 0 14px; } .gc-doc ul, .gc-doc ol { margin: 0 0 14px; padding-left: 22px; list-style: revert; } .gc-doc li { margin-bottom: 8px; }
.gc-doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 16px; }
.gc-doc th, .gc-doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-row); vertical-align: top; }
.gc-doc th { background: var(--surface-subtle); font: 700 11px/1.3 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.gc-doc footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; } .gc-doc footer a { font-size: 13px; color: var(--ink-muted); }
.gc-table td:first-child, .gc-table .gc-num { white-space: nowrap; }
@container gc (max-width: 699px) { .gc-table { font-size: 13px; } .gc-table th, .gc-table td { padding: 10px 8px; } }

/* The phone's More sheet. */
.gc-moresheet { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 20; display: flex; align-items: flex-end; }
.gc-moresheet .box { background: var(--surface); width: 100%; border-radius: 20px 20px 0 0; padding: 10px 12px calc(18px + env(safe-area-inset-bottom, 0px)); }
.gc-moresheet .box a { display: flex; align-items: center; gap: 14px; min-height: 52px; border-radius: 12px; font: 600 16px var(--font-sans); color: var(--ink); padding: 0 12px; text-decoration: none; }
.gc-moresheet .box a:hover { background: var(--surface-muted); text-decoration: none; }
.gc-moresheet .box a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-hover); }
.gc-moresheet .box hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* Reports: one expandable row per session under each date. */
.gc-sess + .gc-sess { border-top: 1px solid var(--line); }
.gc-sess summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 18px; cursor: pointer; font-weight: 600; list-style: none; }
.gc-sess summary::-webkit-details-marker { display: none; }
.gc-sess summary::before { content: "+"; width: 14px; text-align: center; color: var(--ink-muted); font-size: 18px; }
.gc-sess[open] summary::before { content: "\2212"; }
.gc-sess summary:hover { background: var(--surface-subtle); }
.gc-sess .gc-list { border-top: 1px solid var(--line); }
.gc-sess .gc-list li { padding-left: 44px; }

/* Bulk check-in: a wrapping row of rounded names; a selected one is filled green with a tick. */
.gc-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.gc-pick label { position: relative; display: inline-flex; cursor: pointer; }
.gc-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gc-pick span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--brand-border); background: var(--brand-tint); font-weight: 600; user-select: none; }
.gc-pick label:hover span { border-color: var(--brand); }
.gc-pick input:checked + span { background: var(--success); border-color: var(--success); color: #fff; }
.gc-pick input:checked + span::before { content: "\2713"; }
.gc-pick input:checked + span small { color: #fff; }
.gc-pick input:focus-visible + span { outline: 3px solid var(--brand-border); outline-offset: 2px; }
.gc-pick small { font-weight: 500; color: var(--ink-muted); }
#bulk-others summary { cursor: pointer; font-weight: 600; color: var(--brand); min-height: 32px; }
