/* TAPS Reservations — TAPS blue & yellow, poster style */
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url(/static/fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url(/static/fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url(/static/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url(/static/fonts/montserrat-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-style: normal; font-display: swap; src: url(/static/fonts/montserrat-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: italic; font-display: swap; src: url(/static/fonts/montserrat-latin-800-italic.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 900; font-style: italic; font-display: swap; src: url(/static/fonts/montserrat-latin-900-italic.woff2) format("woff2"); }

:root {
  /* TAPS brand */
  --blue: #1846d6;
  --blue-deep: #0f2fa8;
  --blue-bright: #2f74f0;
  --navy: #0b1f6b;
  --yellow: #ffd21f;
  --yellow-deep: #e0aa00;
  --red: #e0262f;
  --accent: var(--blue);          /* links, focus, charts */
  --campus: var(--blue);          /* set per campus where it matters */

  --bg: #eef3ff;
  --surface: #ffffff;
  --surface-2: #f1f4fb;
  --ink: #101a44;
  --ink-2: #44507a;
  --ink-3: #7b85a6;
  --line: #dbe2f3;
  --ok: #157347; --ok-bg: #e3f5eb;
  --warn: #8a5a00; --warn-bg: #fff4cc;
  --bad: #b42318; --bad-bg: #fde8e6;
  --info: #1846d6; --info-bg: #e6edff;
  --radius: 18px;
  --shadow: 0 2px 4px rgba(15, 47, 168, .06), 0 10px 30px rgba(15, 47, 168, .08);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081033; --surface: #101a45; --surface-2: #17225a; --ink: #eef1ff; --ink-2: #b9c2e8; --ink-3: #8691bd;
    --line: #26326c; --ok-bg: #0f3324; --ok: #63d69d; --warn-bg: #3a2c05; --warn: #ffd21f; --bad-bg: #3d1513; --bad: #ff8f86;
    --info-bg: #182b78; --info: #a9c1ff; --accent: #6f9bff; --shadow: 0 2px 10px rgba(0,0,0,.35); color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 15.5px/1.6 var(--font); }
a { color: var(--accent); font-weight: 600; }
h1, h2, h3 { font-family: var(--font); line-height: 1.15; margin: 0 0 .45em; color: var(--ink); }
h1 { font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(1.6rem, 4.4vw, 2.4rem); color: var(--blue-deep); }
h2 { font-weight: 800; font-size: 1.3rem; }
h3 { font-weight: 800; font-size: 1.05rem; }
@media (prefers-color-scheme: dark) { h1 { color: #fff; } }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 800px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; color: var(--ink-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }

/* ---------- header (poster blue with a yellow stripe) */
.topbar { background: linear-gradient(100deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-bright) 100%); color: #fff; box-shadow: inset 0 -6px 0 var(--yellow); position: relative; overflow: hidden; }
.topbar .wrap { display: flex; align-items: center; gap: 14px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 16px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { height: 54px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); }
.brand .word { line-height: 1.05; }
.brand .taps { display: block; font: 900 1.55rem/1 var(--font); color: var(--yellow); letter-spacing: .06em; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.brand .full { display: block; font: 800 .68rem/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; }
.brand .tag { display: block; font: 600 italic .7rem/1.3 var(--font); opacity: .85; }
.topbar nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a { color: #e6edff; text-decoration: none; padding: 7px 12px; border-radius: 99px; font-size: .86rem; font-weight: 700; }
.topbar nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.topbar nav a.on { background: var(--yellow); color: var(--navy); }
.topbar .shard { position: absolute; z-index: 0; pointer-events: none; }
.footer { margin: 48px 0 28px; text-align: center; font-size: .8rem; color: var(--ink-3); }
.footer .tags { font-weight: 800; color: var(--blue); letter-spacing: .02em; }

/* ---------- poster hero */
.poster { position: relative; overflow: hidden; margin: 22px 0 8px; border-radius: 26px; color: #fff; padding: 30px 28px 26px;
  background: radial-gradient(120% 140% at 85% 0%, var(--blue-bright) 0%, var(--blue) 45%, var(--blue-deep) 100%); box-shadow: var(--shadow); }
.poster::after { /* faint rainbow arc, like the posters */
  content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: -260px; border-radius: 50%;
  border: 14px solid transparent; border-top-color: rgba(255,255,255,.0);
  background: conic-gradient(from 200deg, transparent 0 20%, rgba(255,90,90,.22), rgba(255,210,31,.25), rgba(80,220,140,.2), rgba(90,170,255,.22), transparent 55% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
}
.poster > * { position: relative; z-index: 1; }
.poster .ribbon { display: inline-block; background: var(--red); color: #fff; font: 900 .78rem var(--font); letter-spacing: .14em; text-transform: uppercase; padding: 5px 16px; border-radius: 6px; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.poster h1 { color: #fff; font-size: clamp(2rem, 6.4vw, 3.6rem); line-height: .98; margin: 14px 0 10px; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.poster h1 .y { color: var(--yellow); display: block; }
.poster p { color: #e3eaff; max-width: 560px; margin: 0 0 14px; }
.pill-y { display: inline-block; background: var(--yellow); color: var(--navy); font: 900 .9rem var(--font); text-transform: uppercase; padding: 8px 18px; border-radius: 99px; box-shadow: 0 4px 0 var(--yellow-deep); letter-spacing: .02em; }
.poster .tags { margin-top: 16px; font: 700 .78rem var(--font); color: #cfdcff; letter-spacing: .02em; }
.confetti { position: absolute; inset: 0; z-index: 0 !important; pointer-events: none; }

/* step cards — "DAY 1" style yellow tabs over blue tiles */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 22px 0 6px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%); color: #fff; border-radius: 14px; padding: 22px 12px 12px; font: 800 .82rem/1.25 var(--font); text-align: center; box-shadow: 0 6px 16px rgba(15,47,168,.18); }
.steps li::before { content: "STEP " counter(s); position: absolute; top: -11px; left: 50%; transform: translateX(-50%) rotate(-2deg); background: var(--yellow); color: var(--navy); font: 900 .72rem var(--font); padding: 3px 10px; border-radius: 7px; white-space: nowrap; box-shadow: 0 2px 0 var(--yellow-deep); }
@media (max-width: 680px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } .steps li:last-child { grid-column: span 2; } }

/* ---------- cards */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin: 18px 0; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card .card-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card .card-h h2 { margin: 0; }
.card.tabbed { margin-top: 30px; padding-top: 26px; border-top: 5px solid var(--blue); }
.tab { position: absolute; top: -15px; left: 18px; background: var(--yellow); color: var(--navy); font: 900 .78rem var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 4px 13px; border-radius: 8px; box-shadow: 0 3px 0 var(--yellow-deep); transform: rotate(-1.5deg); }
.sec-num { font: 900 .74rem var(--font); color: var(--blue); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- forms */
label { display: block; font-weight: 700; font-size: .88rem; margin: 0 0 5px; color: var(--ink); }
label .opt { font-weight: 500; color: var(--ink-3); }
.field { margin-bottom: 14px; min-width: 0; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=password],
input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); font: 600 .95rem var(--font); min-height: 48px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(24, 70, 214, .16); }
input[type=color] { width: 60px; height: 44px; border: 2px solid var(--line); border-radius: 10px; background: none; padding: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--blue); flex: none; }
.hint { font-size: .78rem; color: var(--ink-3); margin-top: 4px; font-weight: 500; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* agreements box */
.agree { display: grid; gap: 12px; }
.agree .check { background: var(--surface-2); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .15s, background .15s; }
.agree .check:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--surface)); }
.agree .check b.y { background: var(--yellow); color: var(--navy); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }

/* choice tiles (campus / session / strand) */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tile { position: relative; margin: 0; }
.tile input { position: absolute; opacity: 0; inset: 0; }
.tile span { display: block; position: relative; border: 2px solid var(--line); border-radius: 14px; padding: 13px 14px 12px 16px; cursor: pointer; background: var(--surface); height: 100%; transition: transform .12s, border-color .15s, box-shadow .15s; overflow: hidden; }
.tile span::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c, var(--blue)); }
.tile:hover span { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,47,168,.12); }
.tile span b { display: block; font-size: 1rem; font-weight: 800; }
.tile span small { color: var(--ink-2); font-size: .78rem; font-weight: 600; }
.tile .swatch { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: 0; }
.tile input:checked + span { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,70,214,.18); background: color-mix(in srgb, var(--blue) 6%, var(--surface)); }
.tile input:checked + span::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); color: var(--navy); font: 900 .85rem/24px var(--font); text-align: center; box-shadow: 0 2px 0 var(--yellow-deep); }
.tile input:focus-visible + span { box-shadow: 0 0 0 4px rgba(24,70,214,.3); }
.tile input:disabled + span { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.left-pill { display: inline-block; font: 800 .72rem var(--font); font-style: normal; padding: 2px 9px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); margin-top: 6px; }
.left-pill.low { background: var(--warn-bg); color: var(--warn); }
.left-pill.full { background: var(--bad-bg); color: var(--bad); }
.guardian { border: 2px dashed var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; position: relative; }
.guardian .rm { position: absolute; top: 8px; right: 10px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 20px; font: 800 .92rem var(--font); letter-spacing: .02em; cursor: pointer; text-decoration: none; min-height: 46px; background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-deep); transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--blue-deep); }
.btn.y, .btn.big { background: var(--yellow); color: var(--navy); box-shadow: 0 4px 0 var(--yellow-deep); }
.btn.y:active, .btn.big:active { box-shadow: 0 1px 0 var(--yellow-deep); }
.btn.big { padding: 15px 30px; font-size: 1.05rem; text-transform: uppercase; font-weight: 900; }
.btn.ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn.plain { background: var(--surface-2); color: var(--ink); box-shadow: 0 3px 0 var(--line); }
.btn.ok { background: #188a4f; box-shadow: 0 4px 0 #0e5c34; }
.btn.bad { background: var(--bad); box-shadow: 0 4px 0 #7d150e; }
.btn.sm { padding: 6px 13px; min-height: 36px; font-size: .82rem; box-shadow: 0 3px 0 var(--blue-deep); }
.btn.sm.plain { box-shadow: 0 3px 0 var(--line); }
.btn.sm.ghost { box-shadow: inset 0 0 0 2px var(--blue); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
@media (prefers-color-scheme: dark) { .btn.ghost { color: #fff; box-shadow: inset 0 0 0 2px #6f9bff; } }
.linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; font: 700 inherit var(--font); padding: 0; text-decoration: underline; }

/* ---------- alerts / badges */
.alert { border-radius: 14px; padding: 13px 16px; margin: 14px 0; font-weight: 600; }
.alert ul { margin: 6px 0 0; padding-left: 20px; font-weight: 500; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.err { background: var(--bad-bg); color: var(--bad); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--info-bg); color: var(--info); }
.badge { display: inline-block; padding: 3px 11px; border-radius: 99px; font: 800 .74rem var(--font); white-space: nowrap; }
.b-PENDING_PAYMENT { background: var(--warn-bg); color: var(--warn); }
.b-FOR_VERIFICATION { background: var(--info-bg); color: var(--info); }
.b-VERIFIED { background: var(--ok-bg); color: var(--ok); }
.b-REJECTED_PAYMENT, .b-REJECTED_ADMIN { background: var(--bad-bg); color: var(--bad); }
.b-EXPIRED, .b-CANCELLED { background: var(--surface-2); color: var(--ink-3); }
.b-dup { background: #fde7f3; color: #a3146b; }
.b-refund { background: #efe7fd; color: #6b2fbf; }

/* ---------- survey modal */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 16, 51, .66); display: grid; place-items: center; z-index: 50; padding: 16px; backdrop-filter: blur(4px); }
.modal { background: var(--surface); border-radius: 24px; max-width: 540px; width: 100%; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.35); animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.88); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-top { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 85% 0%, var(--blue-bright), var(--blue) 50%, var(--blue-deep)); color: #fff; padding: 22px 24px 20px; box-shadow: inset 0 -5px 0 var(--yellow); }
.modal-top > * { position: relative; z-index: 1; }
.modal-top img { height: 58px; float: right; margin-left: 12px; }
.modal-top .ribbon { display: inline-block; background: var(--red); color: #fff; font: 900 .7rem var(--font); letter-spacing: .14em; padding: 4px 12px; border-radius: 6px; text-transform: uppercase; }
.modal h2 { color: #fff; font: 900 italic 1.55rem/1.1 var(--font); text-transform: uppercase; margin: 10px 0 4px; }
.modal-top p { margin: 0; color: #dbe5ff; font-size: .88rem; }
.modal-body { padding: 18px 22px 22px; }
.choice { display: flex; flex-direction: column; gap: 12px; }
.choice button { text-align: left; border: 2px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 16px; padding: 14px 16px; cursor: pointer; font: 600 .9rem var(--font); display: flex; gap: 14px; align-items: center; transition: transform .12s, border-color .15s; }
.choice button:hover, .choice button:focus-visible { border-color: var(--blue); outline: none; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,47,168,.14); }
.choice .ic { font-size: 1.5rem; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-deep); flex: none; }
.choice b { display: block; font-weight: 900; font-size: 1rem; color: var(--blue-deep); }
@media (prefers-color-scheme: dark) { .choice b { color: #fff; } }
.choice small { color: var(--ink-2); }
.survey-chip { display: inline-flex; gap: 8px; align-items: center; background: var(--yellow); color: var(--navy); border-radius: 99px; padding: 6px 15px; font: 800 .88rem var(--font); box-shadow: 0 3px 0 var(--yellow-deep); }

/* ---------- status page */
.code-card { display: inline-block; background: linear-gradient(180deg, var(--blue), var(--blue-deep)); color: #fff; border-radius: 16px; padding: 18px 20px 12px; position: relative; box-shadow: 0 8px 20px rgba(15,47,168,.25); margin-top: 12px; }
.code-card .tab { top: -12px; left: 14px; }
.code-box { font: 800 1.45rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.code-card small { display: block; border-top: 1px solid rgba(255,255,255,.4); margin-top: 6px; padding-top: 4px; font: 700 italic .74rem var(--font); color: #dbe5ff; }
.status-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 7px 14px; margin: 0; }
.kv dt { color: var(--ink-3); font-size: .84rem; font-weight: 600; }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.paybox { border: 2px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface-2); }
.paybox h3 { color: var(--blue-deep); }
@media (prefers-color-scheme: dark) { .paybox h3 { color: #fff; } }
.paybox img.qr { width: 190px; max-width: 100%; border-radius: 10px; background: #fff; padding: 6px; display: block; margin: 8px 0; }
.valid-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--yellow); color: var(--navy); font: 800 .82rem var(--font); padding: 5px 12px; border-radius: 99px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 6px 0 6px 18px; border-left: 2px solid var(--line); position: relative; font-size: .86rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--blue); }

/* confetti burst (verified) */
.burst { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.burst i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { .burst { display: none; } .modal { animation: none; } }

/* ---------- staff */
.statcards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 16px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; border-top: 5px solid var(--c, var(--blue)); font-weight: 600; }
.stat .n { font: 900 1.8rem/1.1 var(--font); font-variant-numeric: tabular-nums; color: var(--ink); }
.stat .l { font-size: .78rem; color: var(--ink-2); margin-top: 4px; }
.chart-box { position: relative; height: 270px; }
.chart-box.tall { height: 330px; }
.meter { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--c, var(--blue)); border-radius: 99px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--blue-deep); color: #fff; font: 800 .72rem var(--font); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--yellow) 12%, transparent); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.filters { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.filters .field { margin: 0; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 16px 0; }
.proof-frame { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.split { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr .85fr; } }
details.act { border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; margin: 10px 0; }
details.act summary { cursor: pointer; font-weight: 800; }
.grade-row td { vertical-align: middle; }
.grade-row input[type=number] { max-width: 92px; min-height: 38px; padding: 6px 8px; }
.cap-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cap-group label { font-size: .74rem; color: var(--ink-3); margin: 0; font-weight: 700; }
.login-box { max-width: 420px; margin: 60px auto; }
.page-h { margin-top: 26px; }

@media (max-width: 560px) {
  .card { padding: 17px; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
  .brand .full, .brand .tag { display: none; }
  .poster { padding: 24px 18px 20px; border-radius: 20px; }
}

/* ---------- printable reservation form */
.sheet { background: #fff; color: #111; width: 210mm; min-height: 297mm; margin: 20px auto; padding: 0 0 12mm; box-shadow: var(--shadow); font: 500 10pt/1.45 var(--font); overflow: hidden; }
.sheet .body { padding: 0 14mm; }
.sheet h1, .sheet h2, .sheet h3 { color: #111; }
.sheet .band { position: relative; overflow: hidden; display: flex; gap: 14px; align-items: center; color: #fff; padding: 10mm 14mm 8mm;
  background: linear-gradient(100deg, #0f2fa8 0%, #1846d6 60%, #2f74f0 100%); box-shadow: inset 0 -6px 0 #ffd21f; }
.sheet .band > * { position: relative; z-index: 1; }
.sheet .band img { height: 68px; }
.sheet .band .taps { font: 900 22pt/1 var(--font); color: #ffd21f; letter-spacing: .06em; }
.sheet .band .school { font: 800 10pt var(--font); text-transform: uppercase; letter-spacing: .04em; }
.sheet .band .sub { font-size: 8.5pt; color: #dbe5ff; }
.sheet .band .campus-chip { margin-left: auto; text-align: right; font: 800 9pt var(--font); }
.sheet .band .campus-chip span { display: inline-block; background: #fff; color: #0b1f6b; padding: 4px 10px; border-radius: 99px; border-left: 8px solid var(--campus); }
.sheet .title { display: flex; align-items: center; justify-content: space-between; margin: 9mm 0 4mm; }
.sheet .title h1 { font: 900 italic 20pt var(--font); color: #0f2fa8; text-transform: uppercase; margin: 0; }
.sheet .stamp { display: inline-block; background: #ffd21f; color: #0b1f6b; font: 900 9pt var(--font); padding: 4px 12px; border-radius: 6px; letter-spacing: .12em; box-shadow: 0 2px 0 #e0aa00; }
.sheet table { font-size: 9.4pt; margin-bottom: 9px; border: 1px solid #c9d3ee; }
.sheet th { background: #eef3ff; color: #0b1f6b; width: 30%; text-transform: none; letter-spacing: 0; font: 700 8.8pt var(--font); white-space: normal; }
.sheet th, .sheet td { padding: 5px 8px; border: 1px solid #c9d3ee; }
.sheet tbody tr:hover { background: none; }
.sheet .sec { display: inline-block; font: 900 8.5pt var(--font); letter-spacing: .1em; text-transform: uppercase; color: #0b1f6b; background: #ffd21f; padding: 2px 9px; border-radius: 5px; margin: 10px 0 5px; }
.sheet .validity { border: 2px solid #1846d6; border-radius: 10px; padding: 8px 12px; margin: 10px 0; font-size: 9.4pt; background: #f3f6ff; }
.sheet .validity b { color: #0f2fa8; }
.sheet .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.sheet .sign div { border-top: 1.5px solid #0b1f6b; padding-top: 4px; text-align: center; font-size: 8.8pt; }
.sheet .qr svg { width: 104px; height: 104px; }
.sheet .foot { display: flex; justify-content: space-between; margin-top: 16px; font-size: 7.5pt; color: #6b7280; }
.sheet .foot b { color: #1846d6; }
.print-bar { text-align: center; margin: 16px; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .print-bar, .topbar, .footer { display: none !important; }
  .sheet { margin: 0; box-shadow: none; width: auto; min-height: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
h1.mono { font-style: normal; text-transform: none; }
.sheet .band > svg.confetti, .modal-top > svg.confetti { position: absolute; inset: 0; z-index: 0; }
.sheet .band > svg.confetti { opacity: .45; }
/* signatories */
.sheet .sign div { display: flex; flex-direction: column; align-items: center; border-top: 0; padding-top: 0; }
.sheet .sign .sig-name { display: block; width: 100%; min-height: 1.5em; border-bottom: 1.5px solid #0b1f6b; padding-bottom: 2px; margin-bottom: 4px; font: 800 10.5pt var(--font); color: #0b1f6b; text-transform: uppercase; letter-spacing: .02em; }
.sig-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto 14px; text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px 2px; box-shadow: var(--shadow); }
.sig-panel input:not(.hidden) { margin-top: 6px; }
/* school type-ahead */
.ac { position: relative; }
.ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 2px solid var(--blue); border-radius: 14px; box-shadow: 0 16px 34px rgba(15,47,168,.18); max-height: 330px; overflow-y: auto; }
.ac-list li[data-i] { padding: 9px 11px; border-radius: 10px; cursor: pointer; }
.ac-list li[data-i] b { display: block; font-weight: 800; font-size: .92rem; }
.ac-list li[data-i] small { color: var(--ink-2); font-size: .78rem; }
.ac-list li[data-i]:hover, .ac-list li.on { background: color-mix(in srgb, var(--yellow) 30%, var(--surface)); }
.ac-list .ac-foot { font-size: .75rem; color: var(--ink-3); padding: 6px 11px 3px; border-top: 1px dashed var(--line); margin-top: 4px; }
.ok-hint { color: var(--ok) !important; font-weight: 600; }
/* documents */
.doc-list { display: grid; gap: 12px; }
.doc { border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface); }
.doc.need { border-color: var(--yellow-deep); background: color-mix(in srgb, var(--yellow) 10%, var(--surface)); }
.doc.done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.doc .doc-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.doc .doc-h h3 { margin: 0; }
.doc .files { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 0; }
.doc .files a { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; background: var(--surface-2); border-radius: 8px; padding: 5px 9px; text-decoration: none; }
.doc .files img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; }
.doc form { margin-top: 10px; }
.b-doc-need { background: var(--yellow); color: var(--navy); }
.b-doc-review { background: var(--info-bg); color: var(--info); }
.b-doc-ok { background: var(--ok-bg); color: var(--ok); }
.remind { display: flex; gap: 14px; align-items: flex-start; background: var(--yellow); color: var(--navy); border-radius: 16px; padding: 14px 18px; margin: 16px 0; box-shadow: 0 4px 0 var(--yellow-deep); font-weight: 600; }
.remind .ic { font-size: 1.6rem; line-height: 1; }
.remind a { color: var(--navy); }
.sheet .docs-box { border: 2px dashed #e0aa00; background: #fff8d6; border-radius: 10px; padding: 7px 12px; margin: 8px 0; font-size: 9pt; }
.choice button.choice-off { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.choice button.choice-off .ic { background: var(--surface-2); box-shadow: none; }

/* ---------- registrar review statuses */
.b-FOR_REVIEW { background: #dff4f6; color: #0f6673; }
.b-FOR_CORRECTION { background: var(--warn-bg); color: var(--warn); }
.b-DECLINED { background: var(--bad-bg); color: var(--bad); }
@media (prefers-color-scheme: dark) { .b-FOR_REVIEW { background: #0f3a40; color: #9fe3ec; } }

/* ---------- terms & agreement (after the survey, and again at the bottom) */
.pre { white-space: pre-line; }
.terms { display: flex; flex-direction: column; gap: 12px; }
.terms-block { border-left: 4px solid var(--yellow); padding: 2px 0 2px 12px; }
.terms-block h3 { margin: 0 0 4px; font: 900 .82rem var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-deep); }
@media (prefers-color-scheme: dark) { .terms-block h3 { color: #fff; } }
.terms-block p, .terms-block ol { margin: 0; font-size: .88rem; color: var(--ink-2); }
.terms-block ol { padding-left: 18px; }
.terms-block li + li { margin-top: 4px; }
.terms-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.terms-title { margin: 12px 0 8px; font: 900 1rem var(--font); }
.terms-scroll { max-height: min(46vh, 420px); overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface-2); }
.terms-scroll:focus-visible { outline: 3px solid rgba(24,70,214,.3); }
.modal { max-height: calc(100vh - 32px); overflow: auto; }
.terms-again { margin: 2px 0 6px 30px; }
.terms-again summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--blue); }
.terms-again .terms { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }

/* ---------- loading indicators */
.spin { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(24,70,214,.2); border-top-color: var(--blue); animation: spin .8s linear infinite; vertical-align: -5px; flex: none; }
.spin.sm { width: 15px; height: 15px; border-width: 2px; vertical-align: -2px; }
.btn .spin { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.busy { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(8, 16, 51, .45); backdrop-filter: blur(2px); animation: busy-in .18s ease-out; }
.busy-card { display: flex; align-items: center; gap: 14px; background: var(--surface); color: var(--ink); padding: 18px 26px; border-radius: 18px; font: 800 1rem var(--font); box-shadow: 0 18px 50px rgba(0,0,0,.3); border-bottom: 4px solid var(--yellow); }
.busy-card .spin { width: 30px; height: 30px; border-width: 4px; }
@keyframes busy-in { from { opacity: 0; } to { opacity: 1; } }
.busy.hidden { display: none; }
.watch { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--ink-2); margin: -4px 0 4px; }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2.4s; } }
