@font-face { font-family: 'Geist'; src: url('fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: oklch(15% .012 290);
  --bg-deep: oklch(11.5% .012 285);
  --card: oklch(19.5% .016 290);
  --popover: oklch(22.5% .018 290);
  --fg: oklch(96.5% .006 290);
  --muted: oklch(72% .02 290);
  --dim: rgba(255, 255, 255, .5);
  --border: rgba(255, 255, 255, .11);
  --border-soft: rgba(255, 255, 255, .07);
  --input: rgba(255, 255, 255, .16);
  --field: oklch(18% .014 290);
  --primary: oklch(64% .22 293);
  --primary-hi: oklch(70% .19 293);
  --kicker: oklch(82.8% .11 230 / .75);
  --wa: oklch(69.6% .17 162.48);
  --gold-a: #fde047; --gold-b: #f59e0b;
  --shadow: 0 16px 40px -8px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.09);
  --radius: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); }
body { font: 400 15px/1.6 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--primary-hi); outline-offset: 2px; }

.app { display: flex; flex-direction: column; height: 100dvh; }

/* ---------- header */
.hdr { background: var(--bg); border-bottom: 1px solid var(--border-soft); flex: none; position: relative; z-index: 5; }
.hdr-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 16px 12px; }
.hdr-text { min-width: 0; }
.hdr-kicker { font-size: 10px; font-weight: 500; letter-spacing: 2.2px; text-transform: uppercase; color: var(--kicker); line-height: 16px; }
.hdr-title-row { display: flex; align-items: center; gap: 10px; }
.hdr-title { margin: 0; font-size: 28px; line-height: 35px; font-weight: 600; letter-spacing: -.7px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-loc { display: flex; align-items: center; gap: 4px; font-size: 11px; line-height: 16px; color: var(--dim); margin-top: 2px; }
.hdr-loc svg.i { width: 12px; height: 12px; }
.hdr-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.hdr-logo { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: #0f0d18; display: grid; place-items: center; margin-left: 10px; overflow: hidden; }
.hdr-logo img { width: 32px; height: 32px; border-radius: 50%; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 12.8px; font-weight: 600; color: #fff; border: 1px solid transparent; white-space: nowrap; transition: filter .15s, background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-soft { background: rgba(255,255,255,.1); }
.btn-soft:hover { background: rgba(255,255,255,.16); }
.btn-wa { background: var(--wa); border-color: oklch(52% .18 293 / .0); }
.btn-wa:hover, .btn-primary:hover { filter: brightness(1.08); }
.btn-primary { background: var(--primary); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.btn-outline { border-color: var(--border); background: transparent; color: var(--fg); }
.btn-outline:hover { background: rgba(255,255,255,.06); }
.btn.lg { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn.sm { height: 28px; font-size: 12px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--fg); border: 1px solid var(--border); background: rgba(255,255,255,.04); }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn.ghost { border-color: transparent; background: transparent; color: rgba(255,255,255,.55); width: 26px; height: 26px; }
.icon-btn.ghost:hover { color: #fff; background: rgba(255,255,255,.08); }

/* status + zone bars */
.bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--border-soft); overflow-x: auto; scrollbar-width: none; }
.bar::-webkit-scrollbar { display: none; }
.chip { --c: 56, 189, 248; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 500; white-space: nowrap;
  background: rgba(var(--c), .28); color: rgba(var(--c), .96); border: 1px solid rgba(var(--c), .52); transition: background .15s, opacity .15s, box-shadow .15s; }
.chip svg.i { width: 11px; height: 11px; }
.chip .n { font-size: 9px; font-weight: 600; padding: 1px 4px; border-radius: 4px; background: rgba(var(--c), .55); color: rgba(255,255,255,.95); line-height: 1.1; }
.chip.total { background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.4); color: oklch(95% .026 237); }
.chip.total .n { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }
.chip:hover { background: rgba(var(--c), .38); }
.bar.has-active .chip:not(.active):not(.total) { opacity: .4; }
.chip.active { box-shadow: 0 0 0 1px rgba(var(--c), .9), 0 0 14px rgba(var(--c), .35); }
.bar-zones { gap: 8px; }
.bar-label { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; cursor: pointer; margin-right: 4px; }
.zone-chips { display: flex; gap: 6px; }
.zchip { --c: 168, 85, 247; display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap;
  background: rgba(var(--c), .2); color: rgba(var(--c), 1); border: 1px solid rgba(var(--c), .5); filter: saturate(1.1) brightness(1.15); transition: opacity .15s, box-shadow .15s; }
.zchip i { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--c)); }
.zone-chips.has-active .zchip:not(.active) { opacity: .4; }
.zchip.active { box-shadow: 0 0 0 1px rgba(var(--c), .9); }
.switch { width: 30px; height: 18px; border-radius: 999px; background: rgba(255,255,255,.14); position: relative; flex: none; transition: background .2s; }
.switch span { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.switch[aria-checked="true"] { background: var(--primary); }
.switch[aria-checked="true"] span { transform: translateX(12px); }

/* ---------- map stage */
.stage { position: relative; flex: 1; min-height: 0; overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, oklch(15.5% .02 285) 0%, var(--bg-deep) 70%); }
.map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.map.dragging { cursor: grabbing; }

.loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--primary-hi); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.compass { position: absolute; left: 16px; top: 14px; width: 40px; height: 40px; opacity: .55; pointer-events: none; }
.compass circle { fill: rgba(0,0,0,.3); stroke: rgba(255,255,255,.35); }
.compass path { fill: rgba(255,255,255,.4); } .compass path.n { fill: #fff; }
.compass text { fill: #fff; font-size: 6px; font-weight: 700; text-anchor: middle; dominant-baseline: hanging; }

/* tooltip + match pill */
.tip { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px;
  background: rgba(17, 15, 26, .92); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tip .s { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px; }
.tip .a { color: var(--muted); font-weight: 500; }
.match { position: absolute; left: 12px; bottom: calc(16px + var(--safe-b)); z-index: 4; padding: 6px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,.55); border: 1px solid var(--border); }
.match b { color: #fff; }
.match button { margin-left: 8px; color: var(--primary-hi); font-weight: 600; }

/* right tool column */
.tools { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px;
  border-radius: 16px; background: rgb(18, 17, 27); border: 1px solid var(--border); box-shadow: var(--shadow); }
.tool { position: relative; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: rgba(255,255,255,.85); }
.tool:hover { background: rgba(255,255,255,.08); color: #fff; }
.tool svg.i { width: 17px; height: 17px; }
.tools-sep { width: 22px; height: 1px; background: var(--border); margin: 4px 0; }
.dot-count { position: absolute; top: 3px; right: 3px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--primary); color: #fff; font: 700 9px/15px 'Geist', sans-serif; font-style: normal; }

/* bottom dock */
.dock { position: absolute; left: 50%; bottom: calc(14px + var(--safe-b)); transform: translateX(-50%); z-index: 4; display: flex; gap: 2px; padding: 4px; border-radius: 18px;
  background: oklab(16.8% -.003 -.02); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); }
.dock-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 14px; font-size: 13px; font-weight: 500; color: rgb(232, 236, 244); }
.dock-btn:hover { background: rgba(255,255,255,.07); }
.dock-btn .badge-n { position: absolute; top: -4px; left: 22px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: oklch(70% .15 230); color: #04121d; font-size: 9px; font-weight: 800; line-height: 16px; text-align: center; }

/* ---------- plot popup */
.pop { position: absolute; left: 0; top: 0; z-index: 7; width: 300px; max-width: calc(100vw - 24px); border-radius: 14px; background: rgba(14, 18, 24, .96); border: 1px solid rgba(250, 204, 21, .45);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.4); padding: 10px 12px 12px; font-size: 12px; animation: popin .16s ease-out; }
@keyframes popin { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.pop::after { content: ''; position: absolute; left: var(--ax, 50%); bottom: -7px; width: 12px; height: 12px; background: inherit; border: inherit; border-top: 0; border-left: 0; transform: translateX(-50%) rotate(45deg); }
.pop.below::after { bottom: auto; top: -7px; transform: translateX(-50%) rotate(225deg); }
.pop-head { display: flex; align-items: center; gap: 6px; }
.pop-name { font-size: 18px; font-weight: 700; letter-spacing: -.3px; margin-right: 2px; }
.tag { font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; border: 1px solid currentColor; }
.tag.plain { color: var(--muted); border-color: var(--border); background: rgba(255,255,255,.06); text-transform: none; letter-spacing: 0; font-weight: 600; }
.pop-acts { margin-left: auto; display: flex; gap: 2px; }
.pop-acts a, .pop-acts button { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; color: rgba(255,255,255,.75); }
.pop-acts a:hover, .pop-acts button:hover { background: rgba(255,255,255,.1); color: #fff; }
.pop-acts svg.i { width: 13px; height: 13px; }
.pop-acts .wa { color: #25d366; }
.pop-acts .on { color: #fbbf24; }
.pop-acts .on svg.i { fill: currentColor; }
.pop-chips { display: flex; gap: 6px; margin: 8px 0 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.08); }
.pill i { width: 7px; height: 7px; border-radius: 50%; }
.pill.gold { background: rgba(250, 204, 21, .12); color: #fde68a; border: 1px solid rgba(250, 204, 21, .35); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 10px; }
.kv .k { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: oklch(72% .06 200 / .8); }
.kv .v { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; }
.kv .v.hl { color: #fde68a; }
.dims { margin-top: 10px; }
.dims .k { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: oklch(72% .06 200 / .8); margin-bottom: 4px; }
.dims-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.dims-grid div { display: flex; gap: 8px; font-size: 12px; font-weight: 600; }
.dims-grid b { width: 10px; color: var(--muted); font-size: 10px; }
.pop-cta { display: flex; gap: 6px; margin-top: 12px; }
.pop-cta .btn { flex: 1; height: 30px; font-size: 12px; }

/* ---------- sheet (Media / Location / About) */
.sheet { position: fixed; inset: 0; z-index: 20; background: oklch(17% .014 290); display: flex; flex-direction: column; animation: sheetin .22s ease-out; }
@keyframes sheetin { from { opacity: 0; transform: translateY(12px); } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 14px 20px 10px; }
.sheet-kicker { font-size: 10px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; color: var(--kicker); }
.sheet-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-top: 2px; }
.tabs { display: flex; gap: 4px; margin: 0 20px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.35); border: 1px solid var(--border-soft); }
.tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 9px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { background: oklch(32% .06 230 / .65); color: #fff; border: 1px solid oklch(60% .1 230 / .35); }
.tab .n { font-size: 10px; padding: 0 5px; border-radius: 999px; background: rgba(255,255,255,.12); }
.sheet-body { flex: 1; overflow-y: auto; padding: 18px 20px calc(40px + var(--safe-b)); }
.sec-kicker { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: oklch(70% .12 230); margin-bottom: 4px; }
.sec-title { font-size: 24px; font-weight: 700; letter-spacing: -.4px; margin: 0 0 14px; }
.sub-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.sub-title .n { color: rgba(255,255,255,.4); font-weight: 500; }
.grid-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.media-card { position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #111; cursor: zoom-in; }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.media-card:hover img { transform: scale(1.04); }
.media-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; font-size: 12px; font-weight: 600; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.empty { display: grid; justify-items: center; gap: 8px; padding: 44px 20px; border: 1px dashed var(--border); border-radius: 14px; color: var(--muted); text-align: center; font-size: 13px; }
.empty svg.i { width: 28px; height: 28px; opacity: .6; }
.row-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.row-card + .row-card { margin-top: 8px; }
.row-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: oklch(35% .06 230 / .4); color: oklch(80% .1 230); flex: none; }
.row-card .t { font-weight: 600; font-size: 14px; } .row-card .d { font-size: 12px; color: var(--muted); }
.row-card .sp { margin-left: auto; display: flex; gap: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fact { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.fact .k { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-size: 18px; font-weight: 700; margin-top: 2px; }
.amen { display: flex; flex-wrap: wrap; gap: 8px; }
.amen span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.amen svg.i { width: 13px; height: 13px; color: oklch(78% .15 155); }
.prose { color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.7; max-width: 900px; }
.contact-card { margin-top: 24px; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--border); }
.contact-card .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mapframe { width: 100%; height: min(58vh, 520px); border: 1px solid var(--border); border-radius: 14px; background: #0c0d12; }
.addr { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- modal dialogs */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.6); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal-card { width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 16px; background: oklch(19% .016 290); border: 1px solid var(--border); box-shadow: var(--shadow); animation: popin .18s ease-out; }
.modal-card.wide { max-width: 520px; }
.m-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 18px 20px 4px; }
.m-title { font-size: 15px; font-weight: 700; }
.m-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.m-body { padding: 10px 20px 16px; }
.m-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--border-soft); }
.m-list { display: grid; gap: 12px; margin: 6px 0 4px; font-size: 13.5px; }
.m-list div { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.8); }
.m-list b { color: #fff; }
.m-list svg.i { color: oklch(76% .13 295); }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; }
.field label small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.input, .select, .textarea { width: 100%; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--field); border: 1px solid var(--input); outline: none; color: var(--fg); transition: border-color .15s, box-shadow .15s; }
.textarea { height: 76px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary-hi); box-shadow: 0 0 0 3px oklch(64% .22 293 / .25); }
.input-group { display: flex; gap: 8px; }
.input-group .pref { display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--input); background: var(--field); font-size: 13px; font-weight: 600; white-space: nowrap; }
.err { color: oklch(72% .17 20); font-size: 12px; }
.with-icon { position: relative; } .with-icon svg.i { position: absolute; left: 12px; top: 11px; color: var(--muted); } .with-icon .input { padding-left: 36px; }
.sugg { margin-top: 8px; display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.sugg button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-align: left; font-size: 13px; }
.sugg button:hover, .sugg button.on { background: rgba(255,255,255,.07); }
.sugg .nm { font-weight: 700; min-width: 54px; } .sugg .ar { color: var(--muted); margin-left: auto; font-size: 12px; }
.fgroup { margin-bottom: 14px; } .fgroup > .k { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchips .chip, .fchips .zchip { opacity: .45; } .fchips .on { opacity: 1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.count-line { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 12px; color: var(--muted); }
.count-line b { color: #fff; } .count-line i { width: 7px; height: 7px; border-radius: 50%; background: oklch(70% .15 230); }
.row-switch { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.slot { height: 32px; border-radius: 8px; border: 1px solid var(--input); font-size: 12px; font-weight: 600; background: var(--field); }
.slot.on { background: var(--primary); border-color: var(--primary); }
.slot[disabled] { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.hint { font-size: 12px; color: var(--muted); }
.contact-box { padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.03); margin-bottom: 14px; }
.contact-box .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.94); display: grid; grid-template-rows: auto 1fr; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 13px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 64px 24px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.lb-nav:hover { background: rgba(255,255,255,.2); } .lb-nav.prev { left: 14px; } .lb-nav.next { right: 14px; }

/* toasts */
.toasts { position: fixed; left: 50%; bottom: calc(76px + var(--safe-b)); transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 500; background: oklch(24% .02 290); border: 1px solid var(--border); box-shadow: var(--shadow); animation: popin .2s; }
.toast.ok svg.i { color: oklch(78% .15 155); } .toast.bad svg.i { color: oklch(72% .17 20); }

/* ---------- phones */
@media (max-width: 720px) {
  .hdr-main { padding: 10px 12px 8px; }
  .hdr-title { font-size: 21px; line-height: 28px; }
  .btn-call-label, .btn-wa-label, .btn-enq-label { display: none; }
  .hdr-actions .btn { width: 34px; padding: 0; }
  .hdr-logo { display: none; }
  .bar { padding: 7px 10px; }
  .tools { right: 8px; padding: 4px; top: auto; bottom: calc(76px + var(--safe-b)); transform: none; }
  .tool { width: 34px; height: 34px; }
  #btn-full { display: none; }
  .dock { bottom: calc(10px + var(--safe-b)); }
  .dock-btn { padding: 8px 12px; font-size: 12.5px; }
  .pop { position: fixed; left: 8px !important; right: 8px; top: auto !important; bottom: calc(68px + var(--safe-b)); width: auto; max-width: none; }
  .pop::after { display: none; }
  .tip { display: none !important; }
  .compass { display: none; }
  .sheet-head { padding: 12px 14px 8px; } .tabs { margin: 0 12px; } .sheet-body { padding: 14px 14px 40px; }
  .tab span.lbl { display: none; }
  .match { bottom: calc(64px + var(--safe-b)); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .bar-zones { display: none; }
  .tools { top: 8px; bottom: 8px; transform: none; overflow-y: auto; }
}

/* phone: the plot popup is a bottom sheet, so the dock steps aside while it is open */
@media (max-width: 720px) {
  .stage:has(.pop:not([hidden])) .dock { display: none; }
}

/* ---------- first view polish */
.hdr { background: linear-gradient(180deg, oklch(17% .02 290), var(--bg)); }
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .55), rgba(56, 189, 248, .45), transparent); }
.hdr-title { font-weight: 700; background: linear-gradient(180deg, #fff 30%, oklch(86% .05 290)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hdr-logo { box-shadow: 0 0 0 3px rgba(139, 92, 246, .12); }
@media (min-width: 1100px) {
  .hdr { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .hdr-main { grid-column: 1 / -1; }
  .bar-status { padding-left: 16px; padding-right: 14px; border-right: 1px solid var(--border-soft); }
}
.stage { background:
  radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1.3px) 0 0 / 24px 24px,
  radial-gradient(ellipse 55% 60% at 52% 48%, rgba(124, 92, 255, .14), transparent 70%),
  radial-gradient(ellipse 90% 80% at 50% 45%, oklch(16% .02 285) 0%, var(--bg-deep) 75%); }
.compass { opacity: .8; }
.ov-card { position: absolute; left: 16px; top: 66px; z-index: 4; width: 252px; padding: 14px 14px 12px; border-radius: 16px; color: var(--fg);
  background: linear-gradient(180deg, rgba(30, 27, 44, .96), rgba(19, 17, 28, .96)); border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); }
.ov-k { display: flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--kicker); }
.ov-k .live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.ov-big { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 10px; }
.ov-big b { font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -1px; color: #fff; }
.ov-big span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.ov-bar { display: flex; height: 7px; border-radius: 99px; overflow: hidden; gap: 2px; background: rgba(255,255,255,.06); }
.ov-bar i { min-width: 3px; }
.ov-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin: 10px 0 8px; font-size: 11px; color: var(--muted); }
.ov-legend span { display: flex; align-items: center; gap: 6px; }
.ov-legend i { width: 8px; height: 8px; border-radius: 2px; }
.ov-legend b { margin-left: auto; color: #fff; font-weight: 600; }
.ov-row { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border-soft); font-size: 11.5px; color: var(--muted); }
.ov-row b { color: #fff; font-weight: 600; }
@media (max-width: 1099px) { .ov-card { display: none; } }
.ov-card { transition: opacity .25s, transform .25s; }
.ov-card.away { opacity: 0; transform: translateX(-12px); pointer-events: none; }
