/* Live-Arena – gemeinsames Design für alle Seiten */
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }

:root {
  --bg: #0F1220;
  --surface: #181C2E;
  --surface-2: #1C2236;
  --line: #2A3150;
  --ink: #EEF1FA;
  --muted: #A3ABC6;
  --cyan: #3DD9EB;
  --pink: #FF6FAE;
  --lime: #B8F15A;
  --orange: #FFB14A;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
a { color: var(--cyan); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1.15; }
h1 { font-size: 30px; }
h2 { font-size: 20px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.kicker { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.hidden { display: none !important; }

.btn { font: 600 15px var(--body); min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--cyan); color: var(--bg); border-color: var(--cyan); font-family: var(--display); font-weight: 700; font-size: 17px; }
.btn.go { background: var(--lime); color: var(--bg); border-color: var(--lime); font-family: var(--display); font-weight: 700; }
.btn.danger { background: transparent; color: var(--pink); border-color: var(--pink); }
.btn.small { min-height: 38px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

label { font-size: 14px; font-weight: 600; }
input[type=text], input[type=password], input[type=number] { width: 100%; font: 17px var(--body); min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
input::placeholder { color: #7D86A3; }
.field { display: flex; flex-direction: column; gap: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--cyan); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.error { color: var(--bg); background: var(--pink); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.note { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

/* ---------- Schmale Seiten (Beitritt, Start) ---------- */
.narrow { max-width: 460px; margin: 0 auto; padding: 32px 20px 40px; display: flex; flex-direction: column; gap: 20px; min-height: 100dvh; }

.avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.avatar-btn { font-size: 28px; height: 52px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; }
.avatar-btn[aria-pressed=true] { border-color: var(--cyan); background: #12323A; }
.avatar-btn:disabled { opacity: .25; cursor: not-allowed; }

/* ---------- Kartenansicht (Teams) ---------- */
.play { position: fixed; inset: 0; display: flex; flex-direction: column; }
.play header { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; background: var(--bg); z-index: 2; }
.play .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.team-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.team-title .av { font-size: 26px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--cyan); flex: none; }
.team-title h1 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock { font-family: var(--display); font-size: 20px; font-weight: 700; }
.board { display: flex; flex-direction: column; gap: 4px; }
.board-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.board-row.me { color: var(--ink); font-weight: 600; }
.board-row .nm { width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-row .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.board-row .bar span { display: block; height: 6px; border-radius: 3px; }
.board-row .pt { width: 34px; text-align: right; }
.mapwrap { position: relative; flex: 1; min-height: 0; }
#map { position: absolute; inset: 0; background: #141829; }
.map-btn { position: absolute; z-index: 500; right: 12px; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.toast { position: absolute; z-index: 500; left: 12px; right: 72px; top: 12px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.play footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }

/* Dunkle Karte: die normale OpenStreetMap-Karte farblich umgedreht */
.leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.85) contrast(.9) saturate(.6); }
.leaflet-container { font-family: var(--body); background: #141829; }
.leaflet-control-attribution { background: rgba(15,18,32,.8) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--cyan) !important; }
.leaflet-bar a { background: var(--surface) !important; color: var(--ink) !important; border-color: var(--line) !important; }

.tm { display: flex; flex-direction: column; align-items: center; transform: translate(-50%, -20px); width: max-content; }
.tm .dot { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--bg); border: 3px solid; box-shadow: 0 0 0 4px rgba(15,18,32,.5); }
.tm .lbl { margin-top: 4px; font: 600 12px var(--body); color: var(--ink); background: rgba(24,28,46,.92); border: 1px solid; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.tm.stale { opacity: .5; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); border: 3px solid var(--bg); box-shadow: 0 0 0 6px rgba(61,217,235,.25); transform: translate(-50%, -50%); }

/* ---------- Spielleitung (breit) ---------- */
.admin { max-width: 1400px; margin: 0 auto; padding: 0 24px 40px; }
.admin > header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols .side { flex: 1 1 320px; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.cols .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
#adminMap { height: 520px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.game-card { display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.team-card { display: flex; flex-direction: column; gap: 8px; }
.team-card .head { display: flex; align-items: center; gap: 10px; }
.team-card .sw { width: 36px; height: 36px; border-radius: 50%; border: 3px solid; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.team-card .nm { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.on { color: var(--bg); background: var(--lime); border-color: var(--lime); font-weight: 600; }
.pill.warn { color: var(--bg); background: var(--orange); border-color: var(--orange); font-weight: 600; }
.status { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.linkbox { display: flex; flex-wrap: wrap; gap: 6px; }
.linkbox input { font-size: 13px; min-height: 38px; flex: 1 1 100%; min-width: 0; color: var(--muted); }

/* ---------- Druckseite ---------- */
.print-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 16px; }
.qr-card { border: 2px dashed #888; border-radius: 12px; padding: 16px; text-align: center; color: #000; background: #fff; break-inside: avoid; }
.qr-card img { width: 220px; height: 220px; }
.qr-card h2 { color: #000; font-size: 24px; }
@media print {
  body.printpage { background: #fff; }
  .noprint { display: none !important; }
}

/* ---------- Etappe 2: Stationen, Routen, Einreichungen ---------- */
textarea, select { width: 100%; font: 16px var(--body); padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
select { min-height: 48px; }
textarea { resize: vertical; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.cols .side.wide { flex: 1 1 380px; max-width: 480px; }
.mapbox { position: relative; }
.map-hint { position: absolute; z-index: 500; left: 50%; top: 12px; transform: translateX(-50%); background: var(--lime); color: var(--bg); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tabs button { font: 600 13px var(--body); min-height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; padding: 0 4px; }
.tabs button[aria-selected=true] { background: var(--line); color: var(--ink); }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: var(--bg); font-size: 11px; line-height: 18px; }
.panel { display: flex; flex-direction: column; gap: 10px; }
.results { display: flex; flex-direction: column; gap: 4px; }
.results button { text-align: left; font: 14px var(--body); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.results button:hover { border-color: var(--cyan); }
.st-card { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.st-card .num, .st-num { width: 28px; height: 28px; border-radius: 6px; background: var(--lime); color: var(--bg); font: 700 13px var(--display); display: flex; align-items: center; justify-content: center; flex: none; }
.st-card .num.fin, .st-num.fin { background: var(--pink); }
.st-card .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-card .txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 8px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.chip.fin { background: var(--pink); color: var(--bg); border-color: var(--pink); font-weight: 600; padding-right: 8px; }
.chip button { width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.chip button:hover { background: var(--line); color: var(--ink); }
.feed-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.feed-item img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; flex: none; cursor: zoom-in; }
.feed-item .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ok { color: var(--lime); font-weight: 600; }
.no { color: var(--pink); font-weight: 600; }
.station-icon { transform: translate(-50%, -50%); }
.station-icon div { width: 28px; height: 28px; border-radius: 6px; background: var(--lime); color: var(--bg); font: 700 13px var(--display); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px rgba(15,18,32,.6); }
.station-icon.fin div { background: var(--pink); }
.station-icon.edit div { background: var(--cyan); }
.station-icon.done div { background: var(--muted); }

/* ---------- Team-Ansicht: Ziel & Aufgabe ---------- */
.target { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.target h2 { font-size: 24px; }
.target .dist { font: 700 24px var(--display); color: var(--lime); white-space: nowrap; }
.hintbox { font-size: 14px; color: #C9CFE3; background: var(--surface-2); border-left: 3px solid var(--pink); padding: 8px 10px; border-radius: 6px; }
.sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(8,10,20,.7); display: flex; align-items: flex-end; justify-content: center; }
.sheet .box { width: 100%; max-width: 520px; max-height: 92dvh; overflow: auto; background: var(--surface); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.photo-preview { width: 100%; max-height: 50dvh; object-fit: contain; border-radius: 12px; background: var(--bg); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.gallery figcaption { font-size: 12px; color: var(--muted); }
.success { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.success .big { font: 700 44px var(--display); color: var(--lime); }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 95vw; max-height: 95vh; border-radius: 8px; }

.test-banner { position: absolute; z-index: 500; left: 12px; right: 72px; bottom: 12px; font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: 10px; background: var(--orange); color: var(--bg); }

.chip.drag { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; min-height: 36px; }
.chip.drag:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.chip .grip { color: var(--muted); font-size: 14px; line-height: 1; }
.chip.dragging { opacity: .35; }
.chip.drop-before { box-shadow: -4px 0 0 var(--cyan); }
.chip.drop-after { box-shadow: 4px 0 0 var(--cyan); }
.chip.ghost { position: fixed; z-index: 3000; pointer-events: none; opacity: .9; border-color: var(--cyan); cursor: grabbing; }

.station-icon.lib div { background: #9D8CFF; }
.tagchip { cursor: pointer; color: var(--ink); font: 13px var(--body); padding: 4px 10px; }
.tagchip[aria-pressed=true] { background: var(--cyan); color: var(--bg); border-color: var(--cyan); font-weight: 600; }
.lib-card.flash { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan); }
input[type=search] { width: 100%; font: 16px var(--body); min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }

.alert-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: #3A1426; border: 2px solid var(--pink); }
.alert-box .btn { border-color: var(--pink); }
.msg-item { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--cyan); font-size: 15px; white-space: pre-line; }
.help-btn { border-color: var(--pink); color: var(--pink); }
.briefing-text { white-space: pre-line; font-size: 16px; line-height: 1.5; }

.map-btn { position: absolute; }
.dot-badge { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); }

.feed-item video { width: 160px; max-height: 200px; border-radius: 8px; background: #000; flex: none; }
.gallery video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #000; }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 8px; width: 0; background: var(--cyan); transition: width .2s; }
.zone-warn { position: absolute; z-index: 600; left: 12px; right: 72px; top: 12px; font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 10px; background: #FF5B5B; color: #fff; }

.tabs button { flex: 1 1 auto; }
.ev-item { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }

.st-card .num.bon, .st-num.bon { background: var(--orange); }
.station-icon.bon div { background: var(--orange); }

.count-badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--lime); color: var(--bg); font: 700 11px var(--body); line-height: 18px; text-align: center; }
.fog { position: absolute; inset: 0; z-index: 700; display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(160,170,200,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--bg); font-size: 18px; padding: 20px; }
.bonus-box { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: #3A2A10; border: 1px solid var(--orange); font-size: 14px; }
.letters { display: flex; gap: 4px; flex-wrap: wrap; }
.letters span { min-width: 26px; height: 30px; padding: 0 4px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font: 700 15px var(--display); background: var(--surface-2); border: 1px solid var(--line); }
.letters span.got { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.event-bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; background: var(--lime); color: var(--bg); }
.event-bar.blitz { background: var(--pink); }
.event-bar button { font: 700 12px var(--body); border: 0; border-radius: 6px; padding: 6px 10px; background: var(--bg); color: var(--ink); cursor: pointer; }
.board-row .bd { font-size: 12px; }
.station-icon.bonusmark div { background: var(--orange); }

/* ---------- Spielleitung: Seitenmenü + Seiten (Entwurf B) ---------- */
.gshell { display: flex; min-height: 100vh; }
.gnav { flex: 0 0 236px; border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; box-sizing: border-box; overflow-y: auto; }
.gnav-title { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 6px; }
.gnav-title strong { font: 700 18px var(--display); line-height: 1.2; }
.gnav-head { font: 700 11px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--pink); padding: 16px 14px 4px; }
.gnav button { text-align: left; font: 15px var(--body); color: var(--muted); background: transparent; border: 0; border-radius: 9px; padding: 11px 14px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.gnav button:hover { color: var(--ink); background: var(--surface); }
.gnav button[aria-current=page] { background: var(--line); color: var(--ink); font-weight: 600; }
.gmain { flex: 1; min-width: 0; padding: 0 32px 48px; display: flex; flex-direction: column; gap: 18px; }
.gtop { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 0 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 900; }
.gtop h1 { font-size: 26px; }
.page { display: flex; flex-direction: column; gap: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.tiles.wide { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.slot #adminMap { height: 440px; }
.slot.big #adminMap { height: 62vh; min-height: 420px; }
#slotWizard #adminMap { height: 360px; }
.btn[aria-pressed=true] { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
.st-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.st-tile:hover { border-color: var(--cyan); }
.st-tile .top { display: flex; gap: 12px; align-items: center; }
.st-tile .num { width: 36px; height: 36px; border-radius: 8px; background: var(--lime); color: var(--bg); font: 700 16px var(--display); display: flex; align-items: center; justify-content: center; flex: none; }
.st-tile .num.fin { background: var(--pink); }
.st-tile .num.bon { background: var(--orange); }
.st-tile strong { font-size: 17px; }
.st-tile .meta { font-size: 14px; color: var(--muted); }
.st-tile .q { font-size: 14px; color: #C9CFE3; }
.st-new { display: flex; align-items: center; justify-content: center; min-height: 120px; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); font: 600 16px var(--body); background: transparent; cursor: pointer; }
.st-new:hover { border-color: var(--lime); color: var(--lime); }

/* Assistent */
.wizard { display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.steps button { width: 100%; display: flex; align-items: center; gap: 10px; font: 600 15px var(--body); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.steps button span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font: 700 14px var(--display); flex: none; }
.steps button.done span { background: var(--lime); color: var(--bg); border-color: var(--lime); }
.steps button[aria-current=step] { color: var(--ink); border-color: var(--cyan); }
.steps button[aria-current=step] span { background: var(--cyan); color: var(--bg); border-color: var(--cyan); }
.wstep { display: flex; flex-direction: column; gap: 16px; }
.wq { font-size: 26px; }
input.big, textarea.big { font-size: 18px; min-height: 56px; }
.flabel { font-size: 14px; font-weight: 600; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choices button { text-align: left; font: inherit; color: var(--ink); padding: 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 4px; min-height: 92px; cursor: pointer; }
.choices button strong { font-size: 17px; }
.choices button span { font-size: 14px; color: var(--muted); }
.choices button[aria-pressed=true] { border-color: var(--cyan); background: #12323A; }
.extra { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.extra summary { cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 16px; }
.extra[open] { padding-bottom: 14px; }
.extra > :not(summary) { margin: 0 16px; }
.extra > .field + .check, .extra > .check + .check { margin-top: 6px; }
.summary { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; font-size: 16px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.wfoot { gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .gshell { flex-direction: column; }
  .gnav { position: static; height: auto; flex: none; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .gnav-head { display: none; }
  .gmain { padding: 0 16px 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
