/* Kingsgate Estate — clean professional, white with deep blue. Light theme; tokens hold both. */
:root {
  --blue-900: #1E3A8A; --blue-800: #1E40AF; --blue-700: #1D4ED8; --blue-100: #E0E7FF; --blue-50: #EEF2FF;
  --ink: #0F172A; --ink-2: #334155; --muted: #475569; --line: #E2E8F0; --line-2: #CBD5E1;
  --bg: #FFFFFF; --bg-2: #F8FAFC; --bg-3: #F1F5F9;
  --ok-ink: #065F46; --ok-bg: #D1FAE5; --warn-ink: #92400E; --warn-bg: #FEF3C7; --bad-ink: #991B1B; --bad-bg: #FEE2E2;
  --info-ink: #1E3A8A; --info-bg: #E0E7FF; --gold: #B45309;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px;
  --t-xs: 0.75rem; --t-sm: 0.875rem; --t-md: 1rem; --t-lg: 1.125rem; --t-xl: 1.375rem; --t-2xl: 1.75rem; --t-3xl: 2.25rem; --t-hero: clamp(3rem, 6vw, 4.25rem);
  --r: 12px; --r-sm: 8px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --focus: 0 0 0 3px rgba(29,78,216,.45);
  color-scheme: light;
}
[data-theme="dark"] {
  --ink: #F1F5F9; --ink-2: #E2E8F0; --muted: #CBD5E1; --line: #334155; --line-2: #475569;
  --bg: #0B1220; --bg-2: #111A2E; --bg-3: #172033; --blue-100: #1E3A8A; --blue-50: #172554;
  --ok-ink: #A7F3D0; --ok-bg: #064E3B; --warn-ink: #FDE68A; --warn-bg: #78350F; --bad-ink: #FECACA; --bad-bg: #7F1D1D; --info-ink: #C7D2FE; --info-bg: #1E3A8A;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; font-size: var(--t-md); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-800); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 var(--s-3); line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: var(--t-3xl); } h2 { font-size: var(--t-2xl); } h3 { font-size: var(--t-xl); } h4 { font-size: var(--t-lg); }
p { margin: 0 0 var(--s-3); }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.serif { font-family: Georgia, "Times New Roman", serif; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.lg { width: 28px; height: 28px; }

/* money + numbers */
.money, .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.money { font-weight: 600; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-sm); border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .15s, color .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.btn-primary { background: var(--blue-900); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-800); }
.btn-secondary { background: var(--bg); color: var(--blue-900); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--blue-50); }
[data-theme="dark"] .btn-secondary { color: #C7D2FE; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-3); }
.btn-danger { background: #991B1B; color: #FFFFFF; }
.btn-danger:hover { background: #7F1D1D; }
.btn-panic { background: #B91C1C; color: #FFFFFF; min-height: 64px; font-size: var(--t-lg); border-radius: 999px; padding: 0 var(--s-6); box-shadow: 0 8px 24px rgba(185,28,28,.35); }
.btn-panic:hover { background: #991B1B; }
.btn-sm { min-height: 36px; padding: 0 var(--s-3); font-size: var(--t-sm); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding: 0 var(--s-5); font-size: var(--t-lg); }
.btn-on-dark { background: #FFFFFF; color: var(--blue-900); }
.btn-on-dark:hover { background: #E0E7FF; }
.btn-outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: var(--t-xs); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; background: var(--bg-3); color: var(--ink-2); }
.badge-ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge-warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge-bad { background: var(--bad-bg); color: var(--bad-ink); }
.badge-info { background: var(--info-bg); color: var(--info-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* layout */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--s-4); }
.section { padding: var(--s-7) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.section-head h2 { margin: 0; }
.eyebrow { font-size: var(--t-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-800); margin-bottom: var(--s-2); }
[data-theme="dark"] .eyebrow { color: #A5B4FC; }
.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stack { display: flex; flex-direction: column; gap: var(--s-3); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.between { justify-content: space-between; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s-5); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: var(--s-3); height: 100%; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.card-title h3 { margin: 0; font-size: var(--t-lg); }
.card .price { margin-left: auto; text-align: right; }
.card-soft { background: var(--bg-2); box-shadow: none; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.kpi .label { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.kpi .value { font-size: var(--t-2xl); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.kpi .sub { font-size: var(--t-sm); color: var(--muted); }
.kpi-bad .value { color: var(--bad-ink); } .kpi-ok .value { color: var(--ok-ink); } .kpi-warn .value { color: var(--warn-ink); }
[data-theme="dark"] .kpi-bad .value { color: #FCA5A5; } [data-theme="dark"] .kpi-ok .value { color: #6EE7B7; }
.divider { height: 1px; background: var(--line); margin: var(--s-4) 0; }

/* public header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
[data-theme="dark"] .site-header { background: rgba(11,18,32,.92); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--s-3); color: var(--ink); font-weight: 700; text-decoration: none !important; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s-1); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; text-decoration: none !important; }
.nav a:hover { background: var(--bg-3); color: var(--blue-900); }
.nav a.active { color: var(--blue-900); background: var(--blue-50); }
[data-theme="dark"] .nav a.active, [data-theme="dark"] .nav a:hover { color: #C7D2FE; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--s-3); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { min-height: 48px; }
  .nav-toggle { display: inline-flex; }
}

/* hero */
.hero { position: relative; color: #FFFFFF; background: #0F172A url('/assets/stock-1.jpg') center/cover no-repeat; min-height: 560px; display: flex; align-items: center; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,23,42,.92) 0%, rgba(30,58,138,.82) 55%, rgba(30,58,138,.55) 100%); z-index: -1; }
.hero .container { padding-top: var(--s-8); padding-bottom: var(--s-8); }
.hero h1 { font-size: var(--t-hero); line-height: 1.02; letter-spacing: -0.03em; max-width: 14ch; margin-bottom: var(--s-4); }
.hero p.lead { font-size: var(--t-lg); max-width: 56ch; color: #E2E8F0; margin-bottom: var(--s-5); }
.hero .eyebrow { color: #FDE68A; }
.hero-stats { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-6); }
.hero-stats div { border-left: 3px solid #FACC15; padding-left: var(--s-3); }
.hero-stats strong { display: block; font-size: var(--t-xl); font-variant-numeric: tabular-nums; }
.hero-stats span { color: #CBD5E1; font-size: var(--t-sm); }
.photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-media { display: grid; gap: var(--s-5); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .feature-media { grid-template-columns: 1.1fr .9fr; } .feature-media.flip > .photo { order: -1; } }
.steps { counter-reset: step; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.step { counter-increment: step; padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.step::before { content: counter(step, decimal-leading-zero); font-family: Georgia, serif; font-size: var(--t-2xl); color: var(--blue-800); font-weight: 700; display: block; margin-bottom: var(--s-2); }
[data-theme="dark"] .step::before { color: #A5B4FC; }

/* footer */
.site-footer { background: var(--ink); color: #CBD5E1; padding: var(--s-7) 0 var(--s-5); margin-top: var(--s-7); }
.site-footer a { color: #E2E8F0; }
.site-footer .cols { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer h4 { color: #FFFFFF; font-size: var(--t-sm); text-transform: uppercase; letter-spacing: .12em; }
.trust { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.trust span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid #334155; border-radius: 999px; font-size: var(--t-xs); color: #E2E8F0; }
.legal { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid #334155; font-size: var(--t-xs); color: #94A3B8; display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between; }

/* app pages (resident) */
.page { padding: var(--s-5) 0 var(--s-7); }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); }
.page-head h1 { font-size: var(--t-2xl); margin: 0; }
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px var(--s-3); min-height: 44px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--blue-900); border-color: var(--blue-900); }
[data-theme="dark"] .tabs button.active { color: #C7D2FE; border-color: #C7D2FE; }
.list { display: flex; flex-direction: column; gap: var(--s-2); }
.list-item { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.list-item .grow { flex: 1 1 200px; min-width: 0; }
.list-item .title { font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; padding: 0 0 var(--s-3) var(--s-4); }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue-800); border: 2px solid var(--bg); }
.code-display { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 2rem; letter-spacing: .3em; font-weight: 700; color: var(--blue-900); background: var(--blue-50); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); display: inline-block; white-space: nowrap; }
[data-theme="dark"] .code-display { color: #C7D2FE; }
.usage-bar { height: 10px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.usage-bar span { display: block; height: 100%; background: var(--blue-700); border-radius: 999px; }
.progress { height: 12px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--blue-800); }
.notice-cat { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--blue-800); font-weight: 700; }
[data-theme="dark"] .notice-cat { color: #A5B4FC; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s-2); }
.slot { min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.slot:hover { border-color: var(--blue-700); }
.slot.taken { background: var(--bg-3); color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.slot.selected { background: var(--blue-900); color: #FFFFFF; border-color: var(--blue-900); }

/* forms */
.form { display: grid; gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: var(--t-sm); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); min-height: 44px; padding: 10px var(--s-3); width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-700); box-shadow: var(--focus); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B91C1C; }
.field .err { color: var(--bad-ink); font-size: var(--t-sm); min-height: 0; }
[data-theme="dark"] .field .err { color: #FCA5A5; }
.field .hint { color: var(--muted); font-size: var(--t-xs); }
.form-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.error-summary { border: 1px solid #FCA5A5; background: var(--bad-bg); color: var(--bad-ink); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); }
.error-summary ul { margin: var(--s-2) 0 0; padding-left: var(--s-4); }
.callout { border-left: 4px solid var(--blue-800); background: var(--blue-50); padding: var(--s-3) var(--s-4); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); }
.callout.warn { border-color: #B45309; background: var(--warn-bg); color: var(--warn-ink); }
.callout.bad { border-color: #B91C1C; background: var(--bad-bg); color: var(--bad-ink); }
.callout.ok { border-color: #047857; background: var(--ok-bg); color: var(--ok-ink); }
.segmented { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.segmented button { min-height: 44px; padding: 0 var(--s-3); background: var(--bg); border: 0; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.segmented button + button { border-left: 1px solid var(--line-2); }
.segmented button.active { background: var(--blue-900); color: #FFFFFF; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--t-sm); min-width: 560px; }
table.data th, table.data td { padding: 10px var(--s-3); text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { position: sticky; top: 0; background: var(--bg-2); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; }
table.data th.sorted { color: var(--blue-900); }
table.data td.num, table.data th.num { text-align: right; }
table.data tbody tr:hover { background: var(--bg-2); }
.table-tools { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; justify-content: space-between; padding: var(--s-3); border-bottom: 1px solid var(--line); }
.table-tools input { font: inherit; min-height: 40px; padding: 8px var(--s-3); border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); min-width: min(100%, 240px); }
.pager { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3); justify-content: flex-end; font-size: var(--t-sm); color: var(--muted); }

/* states */
.skeleton { display: grid; gap: var(--s-2); }
.skeleton div { height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--bg-3) 25%, var(--line) 50%, var(--bg-3) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty, .error-state { text-align: center; padding: var(--s-6) var(--s-4); border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.error-state { border-color: #FCA5A5; color: var(--bad-ink); border-style: solid; }

/* toast + dialog */
.toasts { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: var(--s-2); z-index: 1000; width: min(94vw, 420px); }
.toast { display: flex; align-items: center; gap: var(--s-3); background: var(--ink); color: #FFFFFF; padding: 12px var(--s-4); border-radius: var(--r-sm); box-shadow: var(--shadow); font-weight: 500; animation: rise .2s ease-out; }
.toast.ok { background: #065F46; } .toast.bad { background: #991B1B; } .toast.warn { background: #92400E; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
dialog.modal { border: 0; border-radius: var(--r); padding: 0; width: min(94vw, 560px); box-shadow: 0 24px 64px rgba(15,23,42,.35); color: var(--ink); background: var(--bg); }
dialog.modal::backdrop { background: rgba(15,23,42,.5); }
dialog.modal .modal-body { padding: var(--s-5); display: grid; gap: var(--s-4); }
dialog.modal .modal-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: flex-end; }

/* admin shell */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--blue-900); color: #E0E7FF; padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-4); position: sticky; top: 0; height: 100vh; }
.sidebar .brand { color: #FFFFFF; }
.sidebar .brand img { background: #FFFFFF; border-radius: 8px; padding: 4px; }
.sidebar .console-tag { font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: #C7D2FE; font-weight: 700; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav a { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-sm); color: #E0E7FF; font-weight: 600; text-decoration: none !important; }
.sidebar nav a:hover { background: rgba(255,255,255,.1); }
.sidebar nav a.active { background: #FFFFFF; color: var(--blue-900); }
.sidebar .who { margin-top: auto; font-size: var(--t-sm); color: #C7D2FE; display: grid; gap: var(--s-2); }
.sidebar .who strong { color: #FFFFFF; }
.admin-main { background: var(--bg-2); min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-5); background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; min-height: 64px; }
.topbar h1 { font-size: var(--t-xl); margin: 0; }
.admin-content { padding: var(--s-5); display: grid; gap: var(--s-5); }
.kpi-row { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.chart { width: 100%; height: auto; }
.sla-clock { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.sla-breached { color: var(--bad-ink); } .sla-warning { color: var(--warn-ink); } .sla-running { color: var(--ok-ink); }
[data-theme="dark"] .sla-breached { color: #FCA5A5; } [data-theme="dark"] .sla-warning { color: #FDE68A; } [data-theme="dark"] .sla-running { color: #6EE7B7; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); max-width: 320px; }
.keypad button { min-height: 60px; font-size: var(--t-xl); font-weight: 700; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); cursor: pointer; }
.keypad button:hover { background: var(--blue-50); }
.gate-code-input { font-family: ui-monospace, Menlo, monospace; font-size: 2.25rem; letter-spacing: .35em; text-align: center; min-height: 64px !important; }
.evidence { max-width: 320px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.split { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .split { grid-template-columns: 1.4fr 1fr; } .split-even { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .sidebar .who { margin-top: 0; width: 100%; }
  .admin-content { padding: var(--s-4); }
  .topbar { padding: var(--s-3) var(--s-4); }
}
@media (max-width: 480px) {
  .hero { min-height: 520px; }
  .hero .container { padding-top: var(--s-7); padding-bottom: var(--s-7); }
  .card { padding: var(--s-4); }
  .code-display { font-size: 1.6rem; letter-spacing: .2em; }
}
@media print { .site-header, .site-footer, .sidebar, .topbar, .btn { display: none !important; } }
