:root {
  --ink:#202d4d; --muted:#526175; --navy:#273659; --blue:#3459a2; --line:#d8dfe5;
  --canvas:#f3f5f7; --white:#fff; --gold:#f6ce71; --mint:#d8ede3;
  color:var(--ink); background:var(--canvas); font:400 16px/1.55 Inter,system-ui,sans-serif;
}
body { min-width:0; }
button { cursor:pointer; }
button:disabled { cursor:default; }
button,a,input { -webkit-tap-highlight-color:transparent; }
:focus-visible { outline:3px solid #b97908; outline-offset:3px; }
h1:focus,h2:focus,.feedback:focus { outline:none; }
.wrap { width:min(1152px,calc(100% - 64px)); margin-inline:auto; }
.skip,.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.skip:focus { z-index:8; width:auto; height:auto; padding:10px 16px; clip-path:none; color:white; background:var(--blue); }
.appbar { color:#fff; background:var(--navy); }
.appbar>.wrap { min-height:71px; gap:16px; }
.brand { gap:11px; font-weight:680; font-size:1.4rem; line-height:1; letter-spacing:-.045em; }
.brand-mark { display:grid; place-items:center; width:39px; height:39px; border-radius:12px; background:var(--gold); }
.back { gap:8px; min-height:44px; color:#f0f3fa; font-size:.92rem; text-underline-offset:4px; }
.back:hover,.footer a:hover { text-decoration:underline; }
.back img { filter:invert(1); }
.role-bar { background:#fff; border-bottom:1px solid var(--line); }
.role-layout { min-height:82px; gap:16px; padding-block:12px; }
.switch { gap:3px; padding:4px; border:1px solid #d7dfe5; border-radius:10px; background:#eff2f6; }
.switch button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:8px 17px; border-radius:7px; color:#4c5a6d; font-weight:540; }
.switch img,.ico { width:19px; height:19px; flex:none; }
.switch [aria-pressed="true"] { color:var(--ink); background:#fff; box-shadow:0 1px 5px #24375624; }
.clock-tools { gap:16px; }
.clock-time { display:flex; gap:9px; align-items:center; }
.clock-time>img { width:23px; height:23px; opacity:.78; }
.clock-time span { display:block; font-size:.76rem; line-height:1.4; color:var(--muted); }
.clock-time strong { display:block; font:600 1.22rem/1.15 'Geist Mono',monospace; letter-spacing:-.05em; }
.clock-buttons { display:flex; gap:5px; }
.clock-buttons button { min-height:40px; padding:4px 10px; border-radius:7px; border:1px solid var(--line); background:#fff; font-size:.84rem; font-weight:540; }
.clock-buttons button:hover:enabled,.secondary:hover,.exit-btn:hover { background:#f0f4fa; }
.clock-buttons button:disabled { color:#747f90; background:#f2f2f2; }
.workspace { min-height:60vh; padding:clamp(32px,4.5vw,70px) 0 38px; }
.page-head { max-width:800px; margin-bottom:clamp(23px,3.1vw,42px); }
.page-head h1 { font:620 clamp(2.1rem,4.5vw,3.8rem)/1.08 Inter,sans-serif; letter-spacing:-.065em; text-wrap:balance; }
.page-head p { max-width:65ch; color:var(--muted); font-size:1.1rem; margin-top:13px; }
.content-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:22px; align-items:start; }
.stack { display:grid; align-content:start; gap:18px; min-width:0; }
.card { min-width:0; border:1px solid var(--line); background:#fff; border-radius:15px; box-shadow:0 3px 14px #23304d06; }
.card-heading,.ticket-bar { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:21px 24px; border-bottom:1px solid var(--line); }
.card h2,.guide h2 { font-size:1.2rem; line-height:1.25; font-weight:630; letter-spacing:-.035em; }
.card-heading>.ico { opacity:.72; }
.card-pad,.lot-pad { padding:22px 24px; }
fieldset { min-width:0; margin:0; padding:0; border:0; }
.slot-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.slot { position:relative; display:flex; align-items:center; gap:10px; min-height:78px; padding:12px 14px; border:1px solid #cad4df; border-radius:10px; cursor:pointer; }
.slot input { appearance:none; flex:none; margin:0; width:17px; height:17px; border:1.5px solid #97a6b7; border-radius:50%; background:white; }
.slot input:checked { border:5px solid #3459a2; }
.slot:has(:checked) { background:#edf3fc; border-color:#3459a2; box-shadow:inset 0 0 0 1px #3459a2; }
.slot:has(:focus-visible) { outline:3px solid #ca8e25; outline-offset:2px; }
.slot strong,.slot small { display:block; }
.slot strong { font:600 1.05rem/1.4 'Geist Mono',monospace; letter-spacing:-.06em; }
.slot small { font-size:.87rem; color:var(--muted); }
.slot.unavailable { background:#f5f6f7; border-color:#e4e6eb; cursor:default; }
.slot.unavailable input { background:#eaecf1; border-color:#b9c1cb; }
.slot.unavailable strong { color:#657185; }
.smallprint,.form-hint,.lot-caption,.guide p,.ticket-note,.empty { color:var(--muted); }
.smallprint { margin:16px 0 0; font-size:.92rem; line-height:1.6; }
.form-action { margin-top:20px; }
.form-hint { padding-top:13px; border-top:1px dashed var(--line); font-size:.92rem; }
.btn,.exit-btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:46px; border-radius:8px; font-size:.97rem; line-height:1.35; font-weight:560; padding:10px 16px; }
.primary { color:white; background:var(--blue); }
.primary:hover { background:#274987; }
.primary img { filter:invert(1); }
.secondary,.exit-btn { border:1px solid #cbd4e0; background:#fff; color:var(--ink); }
.btn .ico,.exit-btn .ico { width:17px; height:17px; }
.lot { background:var(--navy); border-color:transparent; color:white; }
.lot .card-heading { border-color:#ffffff2b; }
.lot .card-heading>.ico { opacity:1; filter:invert(1); }
.lot-number { display:flex; align-items:center; gap:14px; justify-content:space-between; }
.lot-number strong { font-size:3rem; letter-spacing:-.06em; line-height:1; }
.lot-number small { font-weight:480; font-size:1.35rem; color:#bcc7dd; }
.lot-pad>p:first-of-type { font-size:.92rem; color:#e0e5f3; margin-top:8px; }
.pill { display:inline-flex; align-items:center; white-space:nowrap; border-radius:30px; font-size:.78rem; font-weight:600; line-height:1.4; padding:5px 10px; color:#33476b; background:#e8eef6; }
.pill.amber { color:#4f380b; background:var(--gold); }
.pill.mint { color:#1e513d; background:var(--mint); }
.parking-board { display:grid; grid-template-columns:repeat(10,minmax(0,1fr)); gap:6px 3px; padding:13px 9px; margin:18px 0 16px; background:#1f2b4a; border:1px solid #ffffff26; border-radius:9px; }
.spot { display:flex; justify-content:center; align-items:center; min-width:0; height:27px; border:1px dashed #c6d3ea65; border-radius:3px; }
.spot.filled { background:#53698c; border:1px solid #7285a1; }
.spot .ico { width:min(19px,85%); height:17px; filter:invert(1); }
.lot-caption { font-size:.91rem; line-height:1.55; color:#e3e9f5; }
.guide { border-radius:13px; padding:19px 22px; border:1px solid #dce2e7; background:#e9eef3; }
.guide>div { display:flex; align-items:center; gap:9px; }
.guide h2 { font-size:1.04rem; }
.guide p { margin-top:7px; font-size:.94rem; }
.ticket { overflow:hidden; }
.ticket-bar { justify-content:flex-start; background:#e6f1ed; border-color:#cfdfd7; }
.ticket-bar .pill { margin-left:auto; background:white; color:#345e4c; }
.ticket-body { display:flex; align-items:center; gap:clamp(14px,3vw,34px); padding:20px 24px 13px; }
.qr-tile { background:#fff; border:1px solid var(--line); padding:4px; border-radius:6px; flex:none; }
.qr-tile svg { width:clamp(113px,11.7vw,162px); height:auto; aspect-ratio:1; display:block; }
.ticket-info { display:grid; justify-items:start; gap:2px; }
.ticket-info small,.ticket-info span { font-size:.87rem; color:var(--muted); }
.ticket-info strong { font:600 clamp(1.15rem,2vw,1.65rem)/1.4 'Geist Mono',monospace; letter-spacing:-.055em; }
.ticket-info code,.scanner code { font:500 .9rem/1.5 'Geist Mono',monospace; color:var(--ink); }
.ticket-info code { border-radius:4px; background:#f0f4f7; padding:3px 6px; margin-top:7px; }
.ticket-note { margin:0 24px; padding-top:12px; font-size:.94rem; border-top:1px dashed var(--line); }
.ticket-actions,.scan-actions { display:flex; align-items:stretch; flex-wrap:wrap; gap:8px; }
.ticket-actions { padding:15px 24px 22px; }
.scanner { display:flex; align-items:center; gap:14px; }
.scanner>.ico { width:55px; height:55px; padding:12px; background:#edf2fb; border-radius:10px; }
.scanner strong { font-size:1.04rem; }
.scanner p { color:var(--muted); font-size:.9rem; }
.scan-actions { margin:16px 0 20px; }
#gate-form { border-top:1px solid var(--line); padding-top:16px; }
#gate-form label { display:block; margin-bottom:6px; font-weight:550; font-size:.95rem; }
.code-row { display:flex; gap:7px; }
.code-row input { flex:1; min-width:0; padding:9px 11px; border:1px solid #9eacbd; border-radius:7px; font:500 1rem/1.5 'Geist Mono',monospace; color:var(--ink); }
.feedback { margin-top:18px; padding:14px 16px; border-radius:8px; }
.feedback>div { display:flex; gap:8px; align-items:center; }
.feedback .btn { margin-top:13px; }
.feedback p { margin-top:5px; font-size:.94rem; line-height:1.55; }
.feedback.allowed { background:#e5f3e9; color:#214c35; }
.feedback.denied { background:#fff1d8; color:#624719; }
.exits ul { padding:0 22px; }
.exits li { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:16px 0; }
.exits li + li { border-top:1px dashed var(--line); }
.exits li strong,.exits li small { display:block; }
.exits li small { color:var(--muted); font-size:.84rem; }
.exit-btn { font-size:.86rem; padding:9px 10px; }
.footer { min-height:80px; gap:10px 18px; margin-top:12px; padding:15px 0; border-top:1px solid var(--line); color:var(--muted); font-size:.87rem; }
.footer>div { gap:7px 17px; }
.footer button,.footer a { display:inline-flex; align-items:center; gap:6px; min-height:44px; text-decoration:underline; text-underline-offset:3px; }
.footer button img { width:15px; height:15px; }
dialog { width:min(440px,calc(100% - 28px)); padding:24px; border:1px solid var(--line); border-radius:15px; color:var(--ink); background:white; }
dialog::backdrop { background:#17274580; }
dialog h2 { font-size:1.35rem; font-weight:620; }
dialog p { margin:9px 0 20px; color:var(--muted); }
.dialog-actions { display:flex; justify-content:flex-end; gap:8px; }
@media(max-width:880px) {
  .wrap { width:calc(100% - 38px); }
  .content-grid { grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:14px; }
  .card-pad,.card-heading,.lot-pad,.ticket-bar { padding:17px; }
  .slot { padding:10px 8px; gap:6px; }
  .slot strong { font-size:.92rem; }
  .slot small { font-size:.78rem; }
  .parking-board { gap:6px 2px; padding-inline:4px; }
}
@media(max-width:710px) {
  .content-grid { grid-template-columns:1fr; }
  .role-layout { align-items:flex-start; }
  .workspace { padding-top:28px; }
  .page-head p { font-size:1.02rem; }
  .clock-tools { gap:8px; }
  .exits li { flex-wrap:wrap; }
}
@media(max-width:540px) {
  .wrap { width:calc(100% - 28px); }
  .appbar>.wrap { min-height:60px; gap:8px; }
  .brand { gap:7px; font-size:1.22rem; }
  .brand-mark { width:34px; height:34px; border-radius:10px; }
  .brand-mark img { width:23px; }
  .back { font-size:.78rem; gap:5px; }
  .role-layout { gap:11px; padding-block:11px; }
  .switch { width:100%; }
  .switch button { flex:1; }
  .clock-tools { width:100%; justify-content:space-between; }
  .clock-tools .clock-time>img { width:19px; height:19px; }
  .clock-time span { font-size:.7rem; }
  .clock-buttons button { min-height:42px; padding-inline:8px; font-size:.79rem; }
  .page-head h1 { font-size:2.12rem; }
  .slot { min-height:70px; }
  .slot strong { letter-spacing:-.08em; }
  .slot input { width:14px; height:14px; }
  .ticket-body { gap:12px; padding-inline:15px; }
  .ticket-note { margin-inline:15px; }
  .ticket-actions { padding:15px; }
  .ticket-actions .btn,.form-action>.btn { width:100%; }
  .ticket-bar { flex-wrap:wrap; }
  .ticket-bar h2 { font-size:1rem; }
  .ticket-info code { font-size:.75rem; }
  .footer { gap:0; }
}
@media(max-width:360px) {
  .slot { gap:4px; padding:8px 6px; }
  .slot strong { font-size:.82rem; }
  .slot small { font-size:.73rem; }
  .card-heading,.card-pad,.lot-pad,.ticket-bar { padding:14px; }
  .qr-tile svg { width:98px; }
  .ticket-info strong { font-size:1rem; }
  .back { font-size:.73rem; }
}
