/* PicklePinas — "court line" design system
   Paper + ink + ball-yellow, drawn with the hard 1.5px lines of a painted court. */

:root {
  --paper: #F2EEE3;
  --paper-2: #E8E2D2;
  --card: #FBF9F3;
  --ink: #0E1512;
  --ink-2: #3A4440;
  --muted: #6B716C;
  --rule: #0E1512;
  --court: #12493A;
  --court-2: #1D6650;
  --lime: #D8F23C;
  --lime-2: #C4E01F;
  --clay: #E0552F;
  --sand: #E9B949;
  --sky: #3E6FD8;
  --line: 1.5px solid var(--rule);
  --r: 14px;
  --r-sm: 9px;
  --shadow: 4px 4px 0 var(--ink);
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--display); font-size: 16px; line-height: 1.5; font-optical-sizing: auto;
  background-image: radial-gradient(rgba(14, 21, 18, .055) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
.court-svg { width: 100%; height: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; letter-spacing: -0.02em; font-weight: 750; }
p { margin: 0; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 4px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 11.5px; }
.upper { text-transform: uppercase; letter-spacing: .08em; }
.row { display: flex; align-items: center; }
.wrap-row { flex-wrap: wrap; }
.gap { gap: 10px; } .gap-sm { gap: 6px; } .gap-lg { gap: 20px; }
.end { justify-content: flex-end; } .between { justify-content: space-between; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }
.grow { flex: 1; }
.hide { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left; }

/* ---------- ticker ---------- */
.ticker { background: var(--ink); color: var(--lime); font-family: var(--mono); font-size: 12px; overflow: hidden; white-space: nowrap; height: 30px; display: flex; align-items: center; }
.ticker-track { display: inline-flex; gap: 48px; padding-left: 100%; animation: tick 60s linear infinite; }
.ticker-track span { display: inline-flex; gap: 8px; align-items: center; }
.ticker-track .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(216, 242, 60, .25); }
.ticker-track b { color: #fff; font-weight: 500; }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(242, 238, 227, .92); backdrop-filter: blur(8px); border-bottom: var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.logo-ball { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); position: relative;
  background-image: radial-gradient(var(--ink) 1.6px, transparent 1.9px); background-size: 7px 7px; background-position: 1px 1px; }
.logo-word b { font-weight: 800; color: var(--court); font-style: italic; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 550; font-size: 15px; border: 1.5px solid transparent; }
.nav a:hover { border-color: var(--ink); }
.nav a.on { background: var(--ink); color: var(--paper); }
.who { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; }
.who .chip { padding: 5px 10px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 40px; border: var(--line); border-radius: 10px; background: var(--card); flex-direction: column; justify-content: center; gap: 6px; padding: 0 11px; cursor: pointer; }
.nav-toggle span { height: 2px; background: var(--ink); display: block; }

/* ---------- buttons, chips, inputs ---------- */
.btn { --bg: var(--card); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: var(--line); border-radius: 999px; background: var(--bg); color: var(--fg);
  font-weight: 650; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; line-height: 1.2; }
.btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active:not(:disabled) { transform: none; box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-lime { --bg: var(--lime); }
.btn-ink { --bg: var(--ink); --fg: var(--paper); }
.btn-ink:hover:not(:disabled) { box-shadow: 3px 3px 0 var(--lime-2); }
.btn-court { --bg: var(--court); --fg: #fff; }
.btn-clay { --bg: var(--clay); --fg: #fff; }
.btn-ghost { --bg: transparent; }
.btn-sm { padding: 7px 12px; font-size: 13.5px; }
.btn-lg { padding: 15px 24px; font-size: 17px; }
.btn-block { width: 100%; }
.arrow::after { content: '→'; font-family: var(--mono); transition: transform .15s; }
.btn:hover .arrow::after, .arrow:hover::after { transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: var(--line); border-radius: 999px; background: var(--card); font-size: 14px; font-weight: 550; cursor: pointer; user-select: none; white-space: nowrap; }
.chip:hover { background: var(--paper-2); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--lime); }
.chip .x { font-family: var(--mono); font-size: 12px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; padding: 11px 13px; border: var(--line); border-radius: var(--r-sm); background: #fff; font-size: 15px; transition: box-shadow .12s; }
.input:focus { outline: none; box-shadow: 3px 3px 0 var(--lime-2), 3px 3px 0 1.5px var(--ink); }
.input::placeholder { color: #A3A69F; }
textarea.input { resize: vertical; min-height: 84px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input.big { font-family: var(--mono); font-size: 20px; letter-spacing: .06em; padding: 14px 16px; }
.err { color: var(--clay); font-size: 13px; font-weight: 600; }
.input[aria-invalid="true"] { border-color: var(--clay); background: #FFF4EF; }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 14.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--court); }

.card { background: var(--card); border: var(--line); border-radius: var(--r); }
.pad { padding: 22px; }
.pad-lg { padding: 32px; }

.eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: currentColor; }
.display { font-size: clamp(48px, 8.4vw, 118px); font-weight: 800; letter-spacing: -0.055em; line-height: .88; }
.h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.04em; }
.h3 { font-size: 24px; letter-spacing: -0.03em; }
.lede { font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 46ch; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; border: 1.5px solid var(--ink); white-space: nowrap; background: var(--card); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-confirmed { background: var(--court); color: #fff; border-color: var(--court); }
.s-completed { background: var(--paper-2); color: var(--ink-2); }
.s-for_verification { background: #FCE3D8; color: #9A3214; border-color: #9A3214; }
.s-pending_payment { background: #FFF3CF; color: #7A5600; border-color: #7A5600; border-style: dashed; }
.s-cancelled, .s-expired, .s-rejected { background: transparent; color: var(--muted); border-color: #B7B9B2; text-decoration: line-through; }
.s-approved { background: var(--court); color: #fff; border-color: var(--court); }
.s-pending { background: #FFF3CF; color: #7A5600; border-color: #7A5600; }
.s-suspended, .s-rejected-v { background: #FCE3D8; color: #9A3214; border-color: #9A3214; }
.s-walkin { background: var(--lime); color: var(--ink); }

/* ---------- HERO ---------- */
.hero { padding-top: 48px; padding-bottom: 28px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.hero .display em { font-style: italic; color: var(--court); font-weight: 800; position: relative; white-space: nowrap; }
.hero .display em::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .2em; background: var(--lime); z-index: -1; transform: skew(-12deg); }
.hero .lede { margin-top: 22px; }
.hero-court { position: relative; border: var(--line); border-radius: 22px; overflow: hidden; aspect-ratio: 60/40; box-shadow: var(--shadow); background: var(--court); }
.hero-court .court-svg { width: 100%; height: 100%; }
.hero-court .court-ball { animation: bounce 3.2s cubic-bezier(.4, 0, .2, 1) infinite; transform-origin: center; }
@keyframes bounce { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 8px); } }
.scorebug { position: absolute; left: 14px; bottom: 14px; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 14px; display: grid; grid-template-columns: auto auto; gap: 2px 16px; font-family: var(--mono); font-size: 11px; }
.scorebug .n { font-size: 30px; color: var(--lime); line-height: 1; font-weight: 700; }
.scorebug .l { text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.stamp { position: absolute; right: 14px; top: 14px; background: var(--lime); border: var(--line); border-radius: 999px; padding: 6px 12px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; transform: rotate(4deg); }

/* sentence search */
.madlib { margin-top: 36px; background: var(--ink); color: var(--paper); border-radius: 22px; padding: 26px 30px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.03em; }
.madlib .slot { position: relative; display: inline-block; }
.madlib select { appearance: none; background: transparent; border: 0; border-bottom: 3px solid var(--lime); color: var(--lime); font-weight: 750; padding: 0 26px 2px 2px; cursor: pointer; letter-spacing: -0.03em; font-size: inherit; }
.madlib select:focus { outline: none; background: rgba(216, 242, 60, .12); }
.madlib .slot::after { content: '▾'; position: absolute; right: 4px; bottom: 8px; font-size: .5em; color: var(--lime); pointer-events: none; }
.madlib option { color: var(--ink); background: #fff; font-size: 16px; }
.madlib .go { margin-left: auto; align-self: center; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.filters .sep { width: 1.5px; height: 24px; background: var(--ink); opacity: .2; margin: 0 6px; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sort select { width: auto; padding: 7px 32px 7px 12px; border-radius: 999px; font-size: 14px; }

/* results */
.results-head { display: flex; align-items: end; justify-content: space-between; margin: 40px 0 14px; gap: 20px; flex-wrap: wrap; }
.count { font-family: var(--mono); font-size: 13px; }
.count b { font-size: 22px; font-family: var(--display); margin-right: 4px; }
.vlist { display: flex; flex-direction: column; gap: 16px; }
.vrow { display: grid; grid-template-columns: 250px 1fr 210px; background: var(--card); border: var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: transform .14s, box-shadow .14s; }
.vrow:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.vrow-media { position: relative; border-right: var(--line); min-height: 170px; }
.vrow-media .court-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vrow-media .tag { position: absolute; left: 10px; top: 10px; }
.tag { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; background: var(--paper); border: var(--line); border-radius: 6px; padding: 3px 7px; }
.vrow-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vrow-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.vrow-title h3 { font-size: 27px; letter-spacing: -0.035em; }
.loc { font-family: var(--mono); font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.meta span { display: inline-flex; gap: 5px; align-items: center; }
.star { color: var(--clay); }
.vrow-side { border-left: var(--line); padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; background: var(--paper); }
.price { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price small { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.free-note { font-family: var(--mono); font-size: 12px; }
.free-note b { background: var(--lime); padding: 1px 5px; border-radius: 4px; font-weight: 700; }
.free-note.none b { background: var(--paper-2); }

.strip { --n: 17; }
.strip .bars { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; height: 38px; align-items: end; }
.strip .bars i { display: block; height: calc(var(--r) * 100%); background: var(--court-2); border-radius: 3px 3px 1px 1px; }
.strip .bars i.full { height: 18%; background: repeating-linear-gradient(-45deg, #C9C3B2 0 2px, transparent 2px 4px); border: 1px solid #C9C3B2; }
.strip .bars i.past { height: 3px; background: #CFC9B8; border-radius: 2px; }
.strip .ticks { position: relative; height: 14px; margin-top: 4px; }
.strip .ticks span { position: absolute; left: calc(var(--i) / var(--n) * 100%); font-family: var(--mono); font-size: 10px; color: var(--muted); }
.strip.compact .bars { height: 26px; }

.empty { border: 1.5px dashed var(--ink); border-radius: var(--r); padding: 48px 24px; text-align: center; }
.empty h3 { font-size: 26px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--line); border-radius: 22px; overflow: hidden; background: var(--card); }
.steps > div { padding: 26px 26px 30px; border-right: var(--line); position: relative; }
.steps > div:last-child { border-right: 0; }
.steps .num { font-family: var(--mono); font-size: 64px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.steps h3 { margin-top: 18px; font-size: 24px; }
.steps p { margin-top: 8px; color: var(--ink-2); }
.owner-band { margin-top: 64px; background: var(--court); color: #fff; border-radius: 22px; padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; border: var(--line); position: relative; overflow: hidden; }
.owner-band h2 { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -0.045em; }
.owner-band h2 em { color: var(--lime); }
.owner-band ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-family: var(--mono); font-size: 13.5px; }
.owner-band li { display: flex; gap: 10px; }
.owner-band li::before { content: '✓'; color: var(--lime); }
.owner-band .lines { position: absolute; inset: 0; pointer-events: none; opacity: .14; background:
  linear-gradient(90deg, transparent calc(50% - 1px), #fff calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
  linear-gradient(0deg, transparent calc(50% - 1px), #fff calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }

/* ---------- VENUE ---------- */
.crumbs { font-family: var(--mono); font-size: 12px; padding: 22px 0 0; display: flex; gap: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.crumbs a { text-decoration: none; color: var(--ink); }
.vhead { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 14px 0 22px; }
.vhead h1 { font-size: clamp(44px, 6.4vw, 88px); letter-spacing: -0.055em; font-weight: 800; line-height: .9; }
.vbanner { border: var(--line); border-radius: 22px; overflow: hidden; height: 240px; position: relative; }
.vbanner .court-svg { width: 100%; height: 100%; }
.vbanner .facts { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.vbanner .facts span { background: var(--paper); border: var(--line); border-radius: 999px; padding: 5px 11px; font-family: var(--mono); font-size: 12px; }
.vgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; margin-top: 28px; align-items: start; }
.vgrid > *, .pay-grid > *, .lv-grid > *, .lookup-grid > * { min-width: 0; }
.panel { min-width: 0; }
.section-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-label .n { background: var(--ink); color: var(--lime); border-radius: 6px; padding: 2px 7px; }

.dates { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 12px; scrollbar-width: thin; }
.date-tile { flex: 0 0 70px; border: var(--line); border-radius: 12px; background: var(--card); padding: 8px 6px 9px; text-align: center; cursor: pointer; position: relative; transition: transform .1s; }
.date-tile:hover { transform: translateY(-2px); }
.date-tile .d { font-size: 28px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.date-tile .w, .date-tile .m { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; }
.date-tile .bar { height: 4px; border-radius: 2px; background: var(--paper-2); margin: 6px 6px 0; overflow: hidden; }
.date-tile .bar i { display: block; height: 100%; background: var(--court-2); }
.date-tile[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--lime-2); }
.date-tile[aria-pressed="true"] .bar { background: #333; }
.date-tile[aria-pressed="true"] .bar i { background: var(--lime); }
.date-tile .wk { position: absolute; top: -7px; right: -5px; background: var(--clay); color: #fff; font-family: var(--mono); font-size: 9px; border-radius: 4px; padding: 1px 4px; border: 1.5px solid var(--ink); }

.board-wrap { border: var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.board-scroll { overflow-x: auto; }
.board { display: grid; grid-template-columns: 104px repeat(var(--cols), minmax(50px, 1fr)); min-width: calc(104px + var(--cols) * 50px); }
.board .hcell { font-family: var(--mono); font-size: 10.5px; padding: 8px 2px 6px; text-align: center; border-bottom: var(--line); background: var(--paper); position: sticky; top: 0; }
.board .hcell.peak { color: var(--clay); }
.board .hcell.peak::after { content: '•'; display: block; line-height: .6; }
.board .hcell.night { background: #1B2420; color: #C9D3CD; }
.board .hcell.mid, .slot-btn.mid { border-left: 2px solid var(--ink); }
.board .hcell .midnight { display: block; font-size: 9px; color: var(--lime); text-transform: uppercase; margin: -4px 0 1px; }
.slot-btn.night:not(.taken):not(.sel):not(.past) { background: #F3F5F7; }
.board .rlabel { font-weight: 700; padding: 0 12px; display: flex; align-items: center; border-right: var(--line); border-bottom: 1px solid #D9D3C3; background: var(--paper); font-size: 14px; position: sticky; left: 0; z-index: 2; }
.board .corner { border-right: var(--line); border-bottom: var(--line); background: var(--paper); position: sticky; left: 0; z-index: 3; font-family: var(--mono); font-size: 10px; display: flex; align-items: end; padding: 6px 10px; color: var(--muted); }
.slot-btn { height: 56px; border: 0; border-right: 1px solid #E3DED0; border-bottom: 1px solid #D9D3C3; background: #fff; cursor: pointer; position: relative; font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 0; transition: background .08s; }
.slot-btn:hover:not(:disabled) { background: #F4FBD0; color: var(--ink); }
.slot-btn:hover:not(:disabled)::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; color: var(--ink); }
.slot-btn:disabled { cursor: not-allowed; }
.slot-btn.taken { background: repeating-linear-gradient(-45deg, #E2DCCB 0 3px, #F2EEE3 3px 8px); }
.slot-btn.past { background: #EFEBE0; }
.slot-btn.sel { background: var(--lime); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 2px var(--ink); z-index: 1; }
.slot-btn.sel:hover::after { content: ''; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 14px; border-top: var(--line); font-family: var(--mono); font-size: 11px; background: var(--paper); }
.legend i { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--ink); border-radius: 3px; vertical-align: -3px; margin-right: 6px; }

.summary { position: sticky; top: 88px; }
.summary .card { overflow: hidden; }
.summary-head { background: var(--ink); color: var(--paper); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.summary-body { padding: 18px 20px; }
.lines { display: grid; gap: 6px; font-family: var(--mono); font-size: 13px; }
.lines .ln { display: flex; justify-content: space-between; gap: 10px; }
.lines .ln.total { border-top: 1.5px dashed var(--ink); padding-top: 10px; margin-top: 4px; font-size: 15px; font-weight: 700; }
.lines .peak-tag { color: var(--clay); }
.sel-empty { padding: 22px 0; text-align: center; color: var(--muted); }
.sel-empty .big { font-size: 40px; line-height: 1; }
.form-grid { display: grid; gap: 12px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about { display: grid; gap: 22px; margin-top: 36px; }
.amen { display: flex; flex-wrap: wrap; gap: 8px; }
.amen span { border: var(--line); border-radius: 8px; padding: 6px 10px; font-size: 14px; background: var(--card); }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: var(--line); border-radius: var(--r); overflow: hidden; }
.rules div { padding: 14px 16px; border-bottom: 1px solid #D9D3C3; border-right: 1px solid #D9D3C3; font-size: 14px; background: var(--card); }
.rules b { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }

/* ---------- PAY / TICKET ---------- */
.flow { padding: 32px 0 56px; }
.progress { display: flex; gap: 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border: var(--line); border-radius: 999px; overflow: hidden; width: fit-content; background: var(--card); }
.progress span { padding: 8px 16px; border-right: var(--line); display: flex; gap: 8px; align-items: center; }
.progress span:last-child { border-right: 0; }
.progress span.on { background: var(--ink); color: var(--lime); }
.progress span.done { background: var(--paper-2); }
.progress span.done::before { content: '✓'; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 26px; align-items: start; }
.timer { display: flex; align-items: center; gap: 14px; background: #FFF3CF; border: var(--line); border-radius: var(--r); padding: 12px 16px; }
.timer .clock { font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: .02em; background: var(--ink); color: var(--lime); border-radius: 8px; padding: 2px 10px; }
.timer.urgent { background: #FCE3D8; }
.qr-card { border: var(--line); border-radius: 22px; background: #fff; overflow: hidden; }
.qr-top { background: var(--sky); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.qr-top.maya { background: #0B8A5C; }
.qr-mid { padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.qr-box { border: var(--line); border-radius: 12px; padding: 10px; background: #fff; position: relative; }
.qr-box img, .qr-box canvas, .qr-box svg { width: 168px; height: 168px; }
.qr-box::before, .qr-box::after { content: ''; position: absolute; width: 18px; height: 18px; border: 3px solid var(--lime-2); }
.qr-box::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; }
.qr-box::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; }
.amount { font-size: 46px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.kv { display: grid; gap: 8px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px dashed #CFC9B8; padding-bottom: 6px; }
.kv dt, .kv .k { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.copy { cursor: pointer; border: 0; background: none; font-family: var(--mono); font-size: 11px; text-decoration: underline; padding: 0 0 0 6px; }
.howto { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.howto li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 14.5px; }
.howto li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; border: var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; background: var(--lime); }

.ticket { display: grid; grid-template-columns: 1fr 230px; filter: drop-shadow(5px 5px 0 var(--ink)); max-width: 860px; }
.ticket-main, .ticket-stub { background: var(--card); border: var(--line); position: relative; }
.ticket-main { border-radius: 22px 0 0 22px; border-right: 0; padding: 0; overflow: hidden; }
.ticket-stub { border-radius: 0 22px 22px 0; border-left: 2px dashed var(--ink); padding: 24px 20px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; text-align: center;
  -webkit-mask: radial-gradient(circle 12px at 0 0, transparent 11px, #000 12px) top left / 100% 51% no-repeat, radial-gradient(circle 12px at 0 100%, transparent 11px, #000 12px) bottom left / 100% 51% no-repeat;
  mask: radial-gradient(circle 12px at 0 0, transparent 11px, #000 12px) top left / 100% 51% no-repeat, radial-gradient(circle 12px at 0 100%, transparent 11px, #000 12px) bottom left / 100% 51% no-repeat; }
.ticket-band { height: 92px; position: relative; border-bottom: var(--line); }
.ticket-band .court-svg { width: 100%; height: 100%; }
.ticket-band .pill { position: absolute; right: 14px; top: 14px; }
.ticket-body { padding: 20px 24px 24px; }
.ticket-body h2 { font-size: 36px; letter-spacing: -0.045em; }
.tgrid { display: grid; grid-template-columns: repeat(4, auto); gap: 12px 26px; margin-top: 16px; }
.tgrid .k { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tgrid .v { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.code { font-family: var(--mono); font-weight: 700; font-size: 22px; letter-spacing: .06em; }
.ticket-stub .qr-box img, .ticket-stub .qr-box canvas, .ticket-stub .qr-box svg { width: 140px; height: 140px; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; max-width: 860px; }
.track div { position: relative; padding-top: 22px; font-size: 14px; }
.track div::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 3px; background: #D3CDBD; }
.track div::after { content: ''; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; border: var(--line); background: var(--paper); }
.track div.done::before { background: var(--court-2); }
.track div.done::after { background: var(--court-2); }
.track div.now::after { background: var(--lime); box-shadow: 0 0 0 4px rgba(216, 242, 60, .5); }
.track b { display: block; }
.track span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.notice { border: var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; background: var(--card); }
.notice .ic { font-family: var(--mono); font-weight: 700; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; display: grid; place-items: center; border: var(--line); background: var(--lime); }
.notice.warn { background: #FFF3CF; }
.notice.bad { background: #FCE3D8; }
.notice.bad .ic { background: var(--clay); color: #fff; }

/* lookup */
.lookup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; align-items: start; }
.mini-ticket { display: grid; grid-template-columns: 8px 1fr auto; border: var(--line); border-radius: 12px; overflow: hidden; background: var(--card); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.mini-ticket:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.mini-ticket .stripe { background: var(--court-2); }
.mini-ticket > div { padding: 12px 14px; }

/* ---------- DASHBOARD ---------- */
.dash { padding: 28px 0 64px; }
.dash-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.dash-top h1 { font-size: clamp(36px, 4.6vw, 60px); letter-spacing: -0.05em; font-weight: 800; }
.vtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.vtab { border: var(--line); border-radius: 12px; padding: 8px 14px 8px 8px; display: flex; gap: 10px; align-items: center; background: var(--card); cursor: pointer; font-weight: 650; }
.vtab .sw { width: 34px; height: 24px; border-radius: 5px; overflow: hidden; border: 1px solid var(--ink); }
.vtab .sw .court-svg { width: 100%; height: 100%; }
.vtab[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--lime-2); }
.vtab.add { border-style: dashed; padding-left: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: var(--line); border-radius: var(--r); overflow: hidden; margin-top: 22px; background: var(--card); }
.kpi { padding: 18px 20px; border-right: var(--line); }
.kpi:last-child { border-right: 0; }
.kpi .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.kpi .v { font-size: 40px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.05; margin-top: 4px; }
.kpi .d { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.kpi.hot { background: var(--lime); }
.kpi.dark { background: var(--ink); color: var(--paper); }
.kpi.dark .k, .kpi.dark .d { color: #B9C0BB; }
.kpi.dark .v { color: var(--lime); }
.tabs { display: flex; gap: 0; border-bottom: var(--line); margin-top: 30px; overflow-x: auto; }
.tab { padding: 10px 18px; border: var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; margin-right: -1.5px; background: var(--paper-2); cursor: pointer; font-weight: 650; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.tab[aria-selected="true"] { background: var(--card); position: relative; top: 1.5px; padding-bottom: 11.5px; }
.tab .badge { background: var(--clay); color: #fff; font-family: var(--mono); font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.panel { background: var(--card); border: var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); padding: 20px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.daynav { display: flex; align-items: center; border: var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.daynav button { border: 0; background: none; padding: 7px 13px; cursor: pointer; font-family: var(--mono); }
.daynav button:hover { background: var(--paper-2); }
.daynav .lbl { padding: 7px 14px; border-left: var(--line); border-right: var(--line); font-weight: 650; min-width: 170px; text-align: center; }

.sched { display: grid; grid-template-columns: 96px repeat(var(--cols), minmax(56px, 1fr)); min-width: calc(96px + var(--cols) * 56px); position: relative; }
.sched .hcell { font-family: var(--mono); font-size: 10.5px; text-align: left; padding: 6px 6px; border-bottom: var(--line); border-left: 1px solid #E3DED0; }
.sched .hcell.now { background: var(--lime); }
.sched .hcell.mid { border-left: 2px solid var(--ink); }
.sched .rlabel { font-weight: 700; font-size: 14px; display: flex; align-items: center; padding: 0 10px; border-right: var(--line); border-bottom: 1px solid #D9D3C3; height: 64px; position: sticky; left: 0; background: var(--card); z-index: 2; }
.sched .cell { border-left: 1px solid #ECE7DA; border-bottom: 1px solid #D9D3C3; height: 64px; background: #fff; cursor: copy; }
.sched .cell:hover { background: #F4FBD0; }
.sched .cell.past { background: #F3F0E7; cursor: default; }
.blk { margin: 5px 3px; border-radius: 8px; border: 1.5px solid var(--ink); padding: 5px 8px; font-size: 12.5px; line-height: 1.2; cursor: pointer; overflow: hidden; z-index: 1; text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; font-weight: 650; }
.blk small { font-family: var(--mono); font-size: 10px; font-weight: 400; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk.confirmed { background: var(--court); color: #fff; }
.blk.walkin { background: var(--lime); color: var(--ink); }
.blk.for_verification { background: repeating-linear-gradient(-45deg, #FCE3D8 0 6px, #F9D2C2 6px 12px); color: #7A2A10; border-color: #9A3214; }
.blk.pending_payment { background: #FFF3CF; border-style: dashed; color: #6A4B00; }
.blk.completed { background: #DCD6C6; color: var(--ink-2); }
.blk:hover { box-shadow: 2px 2px 0 var(--ink); }
.now-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--clay); z-index: 2; pointer-events: none; }
.now-line::before { content: 'NOW'; position: absolute; top: -1px; left: 3px; font-family: var(--mono); font-size: 9px; color: #fff; background: var(--clay); padding: 1px 4px; border-radius: 3px; }

.table-wrap { overflow-x: auto; border: var(--line); border-radius: 12px; background: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px; background: var(--paper); border-bottom: var(--line); white-space: nowrap; color: var(--ink-2); font-weight: 500; }
.t td { padding: 11px 12px; border-bottom: 1px solid #E6E1D4; vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: #FAFDEB; }
.t .code-cell { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.t .num { text-align: right; font-family: var(--mono); }

.queue { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.qcard { border: var(--line); border-radius: 14px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.qcard-top { padding: 14px 16px; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed #CFC9B8; }
.qcard-ref { background: var(--paper); padding: 12px 16px; border-bottom: var(--line); }
.qcard-ref .ref { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: .08em; }
.qcard-body { padding: 12px 16px; font-size: 14px; display: grid; gap: 4px; flex: 1; }
.qcard-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--line); }
.qcard-actions button { border: 0; padding: 12px; font-weight: 700; cursor: pointer; background: #fff; font-size: 14px; }
.qcard-actions button + button { border-left: var(--line); }
.qcard-actions .ok { background: var(--lime); }
.qcard-actions button:hover { filter: brightness(.95); }

/* drawer */
.drawer-back { position: fixed; inset: 0; background: rgba(14, 21, 18, .35); z-index: 60; animation: fade .15s; }
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--paper); border-left: var(--line); z-index: 61; overflow-y: auto; animation: slide .2s ease-out; display: flex; flex-direction: column; }
.drawer-head { padding: 18px 20px; border-bottom: var(--line); display: flex; justify-content: space-between; align-items: center; background: var(--card); position: sticky; top: 0; }
.drawer-body { padding: 20px; display: grid; gap: 18px; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(14, 21, 18, .45); z-index: 70; display: grid; place-items: center; padding: 16px; animation: fade .15s; overflow-y: auto; }
.modal { background: var(--paper); border: var(--line); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); width: min(480px, 100%); padding: 26px; position: relative; animation: pop .18s ease-out; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal.wide { width: min(640px, 100%); }
.modal-title { font-size: 28px; letter-spacing: -0.04em; margin-bottom: 6px; padding-right: 36px; }
.modal-x { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border: var(--line); border-radius: 50%; background: var(--card); cursor: pointer; font-size: 20px; line-height: 1; }
@keyframes pop { from { transform: scale(.97) translateY(6px); opacity: 0; } }
.seg { display: inline-flex; border: var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 14px; }
.seg button + button { border-left: var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--lime); }

/* sign-in picker */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.pick { border: var(--line); border-radius: 14px; padding: 18px; background: var(--card); cursor: pointer; text-align: left; display: grid; gap: 6px; transition: transform .12s, box-shadow .12s; }
.pick:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.pick .av { width: 44px; height: 44px; border-radius: 50%; border: var(--line); background: var(--lime); display: grid; place-items: center; font-weight: 800; font-size: 17px; }

/* list venue */
.lv-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; margin-top: 26px; align-items: start; }
.fieldset { border: var(--line); border-radius: var(--r); background: var(--card); padding: 22px; display: grid; gap: 14px; }
.fieldset legend { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; background: var(--ink); color: var(--lime); padding: 3px 10px; border-radius: 6px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 54px; height: 36px; border-radius: 8px; border: var(--line); overflow: hidden; cursor: pointer; padding: 0; background: none; }
.swatch .court-svg { width: 100%; height: 100%; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--lime), 0 0 0 4.5px var(--ink); }
.amen-picks { display: flex; flex-wrap: wrap; gap: 8px; }

/* admin */
.dossier { display: grid; grid-template-columns: 300px 1fr; border: var(--line); border-radius: 18px; overflow: hidden; background: var(--card); }
.dossier + .dossier { margin-top: 18px; }
.dossier-media { border-right: var(--line); position: relative; min-height: 260px; }
.dossier-media .court-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dossier-media .tag { position: absolute; left: 12px; top: 12px; }
.dossier-body { padding: 20px 24px; display: grid; gap: 14px; }
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; }
.dl .k { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dl .v { font-weight: 600; font-size: 14.5px; }
.checklist { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 14px; border: 1.5px dashed var(--ink); border-radius: 10px; background: var(--paper); }

/* toasts */
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; box-shadow: 3px 3px 0 var(--lime-2); animation: pop .18s ease-out; transition: opacity .4s, transform .4s; }
.toast.bad { background: var(--clay); box-shadow: 3px 3px 0 var(--ink); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* footer */
.site-footer { border-top: var(--line); margin-top: 72px; background: var(--paper-2); }
.foot-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 40px 24px 28px; }
.foot-in p { margin-top: 12px; max-width: 38ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-cols b { text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: var(--muted); font-weight: 500; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; padding: 14px 24px 22px; border-top: 1px solid #CFC9B8; color: var(--muted); gap: 12px; flex-wrap: wrap; }

.page-enter { animation: enter .28s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .vgrid, .pay-grid, .lookup-grid, .lv-grid, .owner-band { grid-template-columns: 1fr; }
  .summary { position: static; }
  .hero-court { aspect-ratio: 60/26; }
  .vrow { grid-template-columns: 200px 1fr; }
  .vrow-side { grid-column: 1 / -1; border-left: 0; border-top: var(--line); flex-direction: row; align-items: center; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(-n+2) { border-bottom: var(--line); }
  .dossier { grid-template-columns: 1fr; }
  .dossier-media { min-height: 160px; border-right: 0; border-bottom: var(--line); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .header-in { height: 60px; gap: 12px; }
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: var(--line); padding: 10px 16px 16px; margin: 0; }
  .nav.open { display: flex; }
  .who { display: none; }
  .hero { padding-top: 28px; }
  .hero-court { aspect-ratio: 60/34; }
  .madlib { padding: 20px; border-radius: 16px; }
  .madlib .go { margin-left: 0; width: 100%; }
  .sort { margin-left: 0; }
  .vrow { grid-template-columns: 1fr; }
  .vrow-media { min-height: 130px; border-right: 0; border-bottom: var(--line); }
  .vrow-side { flex-wrap: wrap; }
  .steps { grid-template-columns: 1fr; }
  .steps > div { border-right: 0; border-bottom: var(--line); }
  .steps > div:last-child { border-bottom: 0; }
  .owner-band { padding: 28px 22px; }
  .vhead { grid-template-columns: 1fr; }
  .vbanner { height: 170px; }
  .form-2 { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; }
  .qr-mid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-main { border-radius: 22px 22px 0 0; border-right: var(--line); border-bottom: 0; }
  .ticket-stub { border-radius: 0 0 22px 22px; border-left: var(--line); border-top: 2px dashed var(--ink); -webkit-mask: none; mask: none; }
  .tgrid { grid-template-columns: repeat(2, auto); }
  .track { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .kpi .v { font-size: 30px; }
  .dl { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker-track { padding-left: 16px; }
}
/* invoices */
.invoice { background: #fff; border: var(--line); border-radius: 14px; padding: 22px; }
.inv-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1.5px dashed var(--ink); padding-bottom: 14px; }
.inv-head .pill { margin-top: 6px; }
.s-inv-paid { background: var(--court); color: #fff; border-color: var(--court); }
.s-inv-issued { background: #FFF3CF; color: #7A5600; border-color: #7A5600; }
.s-inv-overdue { background: var(--clay); color: #fff; border-color: var(--ink); }
.s-inv-payment_sent { background: #E3ECFB; color: #1F4AA8; border-color: #1F4AA8; }
.s-inv-void { background: transparent; color: var(--muted); border-color: #B7B9B2; text-decoration: line-through; }
.rate-btn { font-family: var(--mono); font-size: 13px; border: 1.5px dashed var(--ink); background: #fff; border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.rate-btn:hover { background: var(--lime); }
.monthnav .lbl { min-width: 160px; }

@media print {
  .site-header, .ticker, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  body.print-invoice > *:not(.modal-back) { display: none !important; }
  .print-invoice .modal-back { position: static; background: none; padding: 0; display: block; }
  .print-invoice .modal { box-shadow: none; border: 0; max-height: none; width: 100%; padding: 0; }
  .print-invoice .modal-x, .print-invoice #invPay { display: none; }
}
