:root {
  --blue: #2962ff;
  --vulcan: #0949ee;
  --white-50: #fefefe;
  --lynch-100: #eceef2;
  --lynch-400: #8695aa;
  --lynch-500: #64748b;
  --lynch-600: #526077;
  --navy: #0b1220;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --low: #dc2626;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --colw: 360px;
  --scrim: rgb(9 15 30 / .42);

  /* Chat surface: every visual decision for the chat lives here so it restyles in minutes. */
  --chat-w: 400px;
  --chat-bg: rgb(12 19 36 / .74);
  --chat-blur: 18px;
  --chat-line: rgb(255 255 255 / .08);
  --chat-ink: #e6ecf5;
  --chat-ink-2: #a3b0c4;
  --chat-ink-3: #6b7a92;
  --chat-card: rgb(255 255 255 / .045);
  --chat-radius: 18px;
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; background: var(--navy); overflow: hidden; }
body { font-family: Roboto, system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font: inherit; }
.ms { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; user-select: none; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Map ---------- */
.map { position: fixed; inset: 0; z-index: 0; }
.map.jpg { background: url(assets/map.jpg) center / cover no-repeat; transition: filter 1.2s var(--ease-out); }
:root[data-map-theme="assistant"] .map.jpg { filter: brightness(.35) saturate(.4) hue-rotate(190deg); }
.maplibregl-ctrl-attrib { font-size: 10px; }

/* ---------- App bar (palmetto-typescript-dashboard Dashboard.view.tsx) ---------- */
.appbar { position: fixed; inset: 0 0 auto 0; height: 60px; background: var(--blue); color: #fff; display: flex; align-items: center; padding: 0 16px 0 18px; z-index: 6; }
.appbar > .ms { font-size: 24px; }
.appbar .title { margin-left: 18px; font-size: 14px; line-height: 1.2; }
.appbar .title b { font-weight: 700; }
.appbar .title span { display: block; font-size: 11px; opacity: .85; }
.appbar .suffix { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.colcount { padding: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.addcol { height: 36px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 6px; background: #fff; color: var(--vulcan); font-size: 14px; font-weight: 600; margin-right: 4px; }
.seg { display: inline-flex; gap: 0; padding: 4px; border-radius: 6px; background: #0049ee; }
.seg.navy { background: var(--vulcan); }
.seg i { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; font-size: 16px; font-style: normal; color: #fff; }
.seg.navy i { font-size: 19px; }
.seg i.on { background: #fff; color: var(--vulcan); }
.seg.navy i.on { background: #e3e6ec; }
.ask-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 4px; margin-right: 8px; border-radius: 18px; border: 1px solid rgb(255 255 255 / .4); background: rgb(255 255 255 / .12); color: #fff; font-weight: 500; font-size: 13px; cursor: pointer; transition: background .2s, transform .3s var(--ease-spring), box-shadow .3s; }
.ask-btn:hover { background: rgb(255 255 255 / .22); }
.ask-mark { width: 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.ask-btn.press .ask-mark { box-shadow: inset 0 0 0 1px rgb(41 98 255 / .25); }
.ask-btn.press { transform: scale(.94); background: #fff; color: var(--blue); box-shadow: 0 0 0 6px rgb(255 255 255 / .18); }

/* ---------- Map controls (assistant state only) ---------- */
.topbar { position: fixed; top: 84px; left: 24px; height: 32px; display: flex; gap: 10px; z-index: 3; opacity: 0; pointer-events: none; transition: opacity .5s .4s; }
body.assistant .topbar { opacity: 1; pointer-events: auto; }
.ctrl { display: flex; gap: 10px; }
.ctrl i { width: 32px; height: 32px; border-radius: 4px; background: rgb(30 41 66 / .85); color: #fff; display: grid; place-items: center; font-size: 16px; font-style: normal; box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.back { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 8px; border-radius: 16px; border: 1px solid rgb(255 255 255 / .14); background: rgb(12 19 36 / .7); backdrop-filter: blur(10px); color: #e6ecf5; font-size: 12px; font-weight: 500; cursor: pointer; transition: background .2s; }
.back:hover { background: rgb(30 41 66 / .85); }
.back .ms { font-size: 16px; }

/* ---------- Dashboard grid (GridLayout + Column + WidgetHeader) ---------- */
.grid { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; background: var(--white-50); transition: background-color .6s .35s; }
.gcol { flex: 1 1 0; min-width: 317px; height: 100%; padding: 4px; display: flex; flex-direction: column; transition: transform .8s var(--ease-io), opacity .5s; }
.slot { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.strip { flex: none; height: 32px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink); }
.strip.center { justify-content: center; }
.strip .ms { font-size: 19px; color: var(--lynch-400); }
.strip .name { display: inline-flex; align-items: center; gap: 10px; }
.strip .name .ms { font-size: 17px; }
.strip .split .on { color: var(--vulcan); }

.prog { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; background: #fff; overflow: hidden; box-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1); transition: opacity .4s, transform .5s var(--ease-out); }
.prog.preload { opacity: 0; transform: translateY(10px); }
.p-h { flex: none; height: 44px; background: var(--blue); color: #fff; display: flex; align-items: center; padding: 0 12px 0 14px; font-size: 15px; font-weight: 500; }
.p-h .p-t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-h .p-act { display: flex; gap: 12px; }
.p-h .p-act .ms { font-size: 20px; }
.p-h { position: relative; }
.p-ico { position: absolute; left: 10px; top: 6px; width: 32px; height: 32px; display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .45s var(--ease-spring); }
.p-t { transition: transform .35s var(--ease-out); }
.p-ico.show { opacity: 1; transform: none; }
.p-ico.show + .p-t { transform: translateX(36px); }
.p-b { flex: 1; min-height: 0; position: relative; background: var(--lynch-100); overflow: hidden; }
.real { opacity: 0; transition: opacity .45s; height: 100%; }
.prog.loaded .real { opacity: 1; }
.skel { position: absolute; inset: 8px; display: flex; flex-direction: column; gap: 8px; transition: opacity .3s; }
.prog.loaded .skel { opacity: 0; }
.skel i { height: 64px; border-radius: 6px; background: linear-gradient(90deg, #e4e7ec 0%, #f2f4f7 50%, #e4e7ec 100%) 0 0 / 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
/* record cards (Shelters pattern, Figma "widget / shelters") */
.cards { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.card { background: #fff; border-radius: 6px; padding: 12px 14px; box-shadow: 0 1px 2px rgb(15 23 42 / .06); }
.card-t { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.chip { flex: none; font-size: 11.5px; font-weight: 500; padding: 2px 7px; border-radius: 4px; }
.chip.Closed, .chip.Urgent { background: #ffe4e8; color: #e11d48; }
.chip.Open { background: #dcfce7; color: #15803d; }
.chip.Active { background: #ffedd5; color: #c2410c; }
.chip.New, .chip.Pending { background: #dbeafe; color: #1d4ed8; }
.chip.Filled { background: #eceef2; color: var(--lynch-500); }
.card-s { margin-top: 3px; display: flex; gap: 10px; font-size: 12.5px; color: var(--lynch-600); }
.card-s span + span { color: var(--lynch-400); }
.card-m { margin-top: 10px; display: flex; justify-content: space-between; font-size: 12.5px; color: var(--lynch-600); }
.card-n { margin: 10px -14px 0; padding: 10px 14px 0; border-top: 1px solid var(--lynch-100); font-size: 13px; line-height: 1.4; color: var(--ink); }
.p-f { flex: none; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 14px; background: #fff; border-top: 1px solid var(--lynch-100); font-size: 13px; color: var(--lynch-600); }
.p-f .new { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 14px; border-radius: 4px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.p-f .new .ms { font-size: 18px; }
/* table programs (Figma "program" pattern) */
.tbl { display: grid; align-content: start; font-size: 12px; }
.tbl > span { height: 44px; display: flex; align-items: center; padding: 0 6px; background: #fff; border-bottom: 1px solid #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.tbl > span.th { height: 46px; font-size: 12px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid #d5d9e2; }
.tbl .chip { font-size: 11px; }
.p-d { flex: none; height: 22px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; background: #e5e7eb; font-size: 11px; color: var(--ink-2); }
.p-d .ms { font-size: 14px; }

/* Columns slide out to their nearest screen edge; the dashboard background clears to reveal the map. */
body.cols-out .grid { background-color: transparent; pointer-events: none; }
body.cols-out .gcol { transform: translateX(var(--dx)); opacity: 0; transition: transform .8s var(--ease-io) calc(var(--i) * 90ms), opacity .4s calc(var(--i) * 90ms + .45s); }

/* Instant state changes (scene jumps) */
body.snap *, body.snap *::before, body.snap *::after { transition: none !important; animation: none !important; }

/* ---------- Scrim + core ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 10; opacity: 0; pointer-events: none; transition: opacity .7s var(--ease-out); }
.scrim.on { opacity: 1; }
.pblur { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.pblur i { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease-out); -webkit-backdrop-filter: blur(var(--b)); backdrop-filter: blur(var(--b));
  -webkit-mask-image: radial-gradient(ellipse var(--r) calc(var(--r) * 1.1) at 50% 44%, #000 35%, transparent 100%); mask-image: radial-gradient(ellipse var(--r) calc(var(--r) * 1.1) at 50% 44%, #000 35%, transparent 100%); }
.pblur i:nth-child(1) { --b: 1.5px; --r: 140%; }
.pblur i:nth-child(2) { --b: 3px; --r: 80%; }
.pblur i:nth-child(3) { --b: 6px; --r: 60%; }
.pblur i:nth-child(4) { --b: 12px; --r: 46%; }
.pblur i:nth-child(5) { --b: 20px; --r: 34%; }
.pblur b { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease-out); background: radial-gradient(ellipse 46% 52% at 50% 44%, rgb(9 15 30 / .8) 0, rgb(9 15 30 / .58) 45%, transparent 100%); }
.scrim.on + .pblur .on { opacity: 1; }
.orb { position: fixed; left: 0; top: 0; width: 360px; height: 360px; z-index: 13; pointer-events: none; opacity: 0; will-change: transform; }
.orb canvas { position: relative; width: 100%; height: 100%; display: block; }
/* Blue glow behind the sphere (orb.js sets --glow-a from the pulse); only while the stage is up. */
.orb-glow { position: absolute; left: 50%; top: 50%; width: 280%; height: 280%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease-out);
  background: radial-gradient(circle, rgb(var(--glow, 61 107 255) / var(--glow-a, .6)) 0 21%, rgb(var(--glow, 61 107 255) / calc(var(--glow-a, .6) * .5)) 28%, rgb(var(--glow, 61 107 255) / calc(var(--glow-a, .6) * .18)) 40%, transparent 60%); }
.scrim.on ~ .orb .orb-glow { opacity: 1; }
.orb canvas.no-gl { border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4f7bff, #1e3a8a 55%, #0b1220 75%); transform: scale(.62); }
.orb-card { position: fixed; left: 50%; top: calc(50% - 20px); width: 560px; height: 600px; transform: translate(-50%, -50%) scale(.96); border-radius: 20px; background: rgb(12 19 36 / .9); border: 1px solid rgb(255 255 255 / .08); box-shadow: 0 30px 80px rgb(0 0 0 / .45); z-index: 11; opacity: 0; pointer-events: none; transition: opacity .5s, transform .6s var(--ease-out); }
.orb-card.on { opacity: 1; transform: translate(-50%, -50%); }
.orb-stage { position: fixed; inset: 0; z-index: 15; pointer-events: none; } /* above the glow and the flying icons */
.orb-caption { position: absolute; left: 50%; top: calc(50% + 70px); transform: translateX(-50%); text-align: center; color: #fff; white-space: nowrap; text-shadow: 0 1px 14px rgb(0 0 0 / .9), 0 0 2px rgb(0 0 0 / .6); opacity: 0; transition: opacity .5s; }
.orb-caption.on { opacity: 1; }
.orb-name { display: block; font-size: 21px; font-weight: 500; letter-spacing: .01em; }
.orb-status { display: block; margin-top: 2px; font-size: 15px; color: #e6ecf5; }
.prompt { position: absolute; left: 50%; top: calc(50% + 136px); width: min(620px, 86vw); height: 50px; transform: translateX(-50%) translateY(10px); border-radius: 25px; background: rgb(12 19 36 / .82); border: 1px solid rgb(255 255 255 / .16); box-shadow: 0 18px 50px rgb(0 0 0 / .35), 0 0 0 4px rgb(41 98 255 / .12); display: flex; align-items: center; gap: 10px; padding: 0 8px 0 20px; color: #fff; font-size: 15px; opacity: 0; transition: opacity .45s, transform .6s var(--ease-out); }
.prompt.on { opacity: 1; transform: translateX(-50%); }
.prompt.out { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(.98); }
.prompt .txt { flex: 1; white-space: nowrap; overflow: hidden; }
.prompt .txt.ph { color: #7f8ca3; }
.send { width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / .08); color: #7f8ca3; display: grid; place-items: center; flex: none; transition: background .2s, color .2s, transform .3s var(--ease-spring); }
.send .ms { font-size: 18px; }
.send.ready { background: var(--blue); color: #fff; }
.send.press { transform: scale(.85); }
.caret { display: inline-block; width: 1.5px; height: 17px; background: #8fb0ff; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Collect + aggregate: record bits stream into each program icon; icons gather around the core */
.flights { position: fixed; inset: 0; z-index: 14; pointer-events: none; }
.bit { position: absolute; left: 0; top: 0; width: 18px; height: 11px; margin: -5.5px 0 0 -9px; border-radius: 3px; background: var(--c); box-shadow: 0 0 0 1.5px rgb(255 255 255 / .85), 0 0 14px 3px color-mix(in srgb, var(--c) 65%, transparent); }
.orbiter { position: absolute; left: 0; top: 0; width: 60px; height: 60px; margin: -30px 0 0 -30px; }
.orbiter .ob { width: 100%; height: 100%; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c) 75%, transparent)); }
.orbiter .ob svg { width: 100%; height: 100%; }
/* Program icons (icons.js): white rings and rounded frames reach just past the 32-unit box; never clip them. */
svg.ic { display: block; overflow: visible; }
.orbiter em { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 12.5px; font-weight: 500; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / .6); opacity: 0; transition: opacity .3s; }
.orbiter.docked em { opacity: 1; }
.orbiter.docked .ob { animation: bob 2.4s var(--ease-io) infinite alternate; }
@keyframes bob { to { transform: translateY(-6px); } }

/* ---------- Chat (floating over the map) ---------- */
.chat { position: fixed; top: 84px; right: 24px; bottom: 68px; width: var(--chat-w); z-index: 8; display: flex; flex-direction: column; background: var(--chat-bg); backdrop-filter: blur(var(--chat-blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--chat-blur)) saturate(140%); border: 1px solid var(--chat-line); border-radius: var(--chat-radius); box-shadow: 0 24px 60px rgb(0 0 0 / .35); color: var(--chat-ink); visibility: hidden; opacity: 0; }
.chat.on { visibility: visible; opacity: 1; }
.c-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--chat-line); }
.avatar { width: 34px; height: 34px; flex: none; }
.c-title { flex: 1; line-height: 1.25; }
.c-title b { display: block; font-size: 14px; font-weight: 500; }
.c-title span { font-size: 11px; color: var(--chat-ink-3); }
.c-head .x { color: var(--chat-ink-3); font-size: 20px; }
.c-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .12) transparent; }
.q { align-self: flex-end; max-width: 88%; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 14px; line-height: 1.4; opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .35s, transform .5s var(--ease-out); }
.q.on { opacity: 1; transform: none; }
.status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--chat-ink-2); opacity: 0; transition: opacity .3s; }
.status.on { opacity: 1; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--blue)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--blue)) 25%, transparent); transition: background .3s, box-shadow .3s; }
.status.busy .dot { animation: beat 1s var(--ease-io) infinite; }
@keyframes beat { 50% { transform: scale(.7); } }
.status .n { margin-left: auto; color: var(--chat-ink-3); font-size: 11.5px; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--chat-ink-2); background: var(--chat-card); border: 1px solid var(--chat-line); border-radius: 999px; padding: 3px 9px 3px 3px; cursor: default; animation: pop .45s var(--ease-spring) both; transition: border-color .2s, background .2s; }
.src:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 14%, transparent); }
.src svg { flex: none; }
.src em { font-style: normal; color: var(--chat-ink-3); }
.src.still { animation: none; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

.answer { display: flex; flex-direction: column; gap: 12px; }
.answer > * { opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .6s var(--ease-out); }
.answer > .on { opacity: 1; transform: none; }
.lead { font-size: 14px; line-height: 1.6; color: var(--chat-ink); }
.lead w { opacity: 0; transition: opacity .25s; }
.lead w.on { opacity: 1; }
.lead b { font-weight: 500; color: #fff; }
.cite { display: inline-flex; vertical-align: -3px; width: 18px; height: 18px; margin: 0 1px; cursor: pointer; transition: transform .25s var(--ease-spring), filter .2s; }
.cite:hover { transform: scale(1.2); filter: drop-shadow(0 0 6px rgb(255 255 255 / .35)); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: var(--chat-card); border: 1px solid var(--chat-line); border-radius: 10px; padding: 10px 12px; }
.kpi .k { font-size: 11px; color: var(--chat-ink-3); display: flex; align-items: center; gap: 5px; }
.kpi .k .ms { font-size: 14px; }
.kpi .n { font-size: 22px; font-weight: 500; margin-top: 4px; color: #fff; }
.kpi.warn { background: rgb(220 38 38 / .12); border-color: rgb(248 113 113 / .3); }
.kpi.warn .n { color: #f87171; }
.counties { background: var(--chat-card); border: 1px solid var(--chat-line); border-radius: 10px; padding: 10px 12px; }
.counties h4 { font-size: 10.5px; color: var(--chat-ink-3); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.cty { display: grid; grid-template-columns: 82px 1fr 46px; align-items: center; gap: 8px; font-size: 13px; padding: 3px 0; color: var(--chat-ink-2); }
.cty .bar { height: 6px; border-radius: 3px; background: rgb(255 255 255 / .07); overflow: hidden; }
.cty .bar b { display: block; height: 100%; border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease-out); }
.cty .d { text-align: right; font-weight: 500; }
.actions { display: flex; gap: 8px; }
.actions button { flex: 1; height: 34px; border-radius: 8px; border: 1px solid var(--chat-line); background: var(--chat-card); font-weight: 500; font-size: 12px; color: var(--chat-ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.actions button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.actions .ms { font-size: 16px; }
.c-foot { flex: none; border-top: 1px solid var(--chat-line); padding: 12px 16px; }
.c-foot .input { height: 42px; border: 1px solid var(--chat-line); background: rgb(255 255 255 / .04); border-radius: 21px; display: flex; align-items: center; padding: 0 5px 0 14px; gap: 8px; font-size: 13.5px; }
.c-foot .txt { flex: 1; color: var(--chat-ink-3); }
.c-foot .send { width: 32px; height: 32px; }
.note { font-size: 10px; color: var(--chat-ink-3); text-align: center; margin-top: 8px; }

/* Estimate note, follow-ups, drafts */
.kpis .fine { grid-column: 1 / -1; display: flex; gap: 6px; align-items: flex-start; font-size: 11.5px; line-height: 1.4; color: var(--chat-ink-3); }
.kpis .fine .ms { font-size: 14px; margin-top: 1px; }
.followups { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.fu { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid var(--chat-line); background: var(--chat-card); color: var(--chat-ink); font-size: 12.5px; cursor: pointer; transition: background .2s, border-color .2s, transform .3s var(--ease-spring); }
.fu .ms { font-size: 16px; color: var(--chat-ink-2); }
.fu.primary { border-color: rgb(41 98 255 / .55); }
.fu.primary .ms { color: #8fb0ff; }
.fu.press { transform: scale(.95); }
.fu.picked { background: rgb(41 98 255 / .22); border-color: var(--blue); }
.answer .q { align-self: flex-end; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
.typing { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--chat-ink-2); --c: #8fb0ff; }
.lead.plain { font-size: 13.5px; }
.draft { background: var(--chat-card); border: 1px solid var(--chat-line); border-radius: 12px; padding: 12px; }
.d-h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.d-h > .ms { font-size: 17px; color: #8fb0ff; }
.d-h b { font-weight: 500; color: #fff; }
.d-id { color: var(--chat-ink-3); font-size: 12px; }
.d-h .chip { margin-left: auto; }
.chip.Draft { background: rgb(41 98 255 / .2); color: #a9c1ff; }
.d-g { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin-top: 10px; font-size: 12.5px; }
.d-g span { color: var(--chat-ink-3); }
.d-g b { font-weight: 500; color: var(--chat-ink); }
.d-j { display: flex; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--chat-line); font-size: 12px; line-height: 1.5; color: var(--chat-ink-2); }
.d-j > .ms { font-size: 15px; color: var(--chat-ink-3); margin-top: 1px; }
.submit { display: flex; gap: 8px; }
.submit button { flex: 1; height: 36px; border-radius: 8px; border: 1px solid var(--chat-line); background: var(--chat-card); color: var(--chat-ink); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: transform .3s var(--ease-spring); }
.submit button.primary { flex: 1.6; background: var(--blue); border-color: var(--blue); color: #fff; }
.submit button.press { transform: scale(.95); }
.submit .ms { font-size: 16px; }
.lead.done { display: flex; gap: 8px; align-items: flex-start; }
.lead.done .ms { color: #4ade80; font-size: 18px; }
/* new rows on the dashboard after submit */
/* New rows wait for the rows below to slide clear, then rise in from a soft blur; the highlight settles. */
.tbl > span.new { background: #eaf1ff; animation: rowin 1.2s cubic-bezier(.23, 1, .32, 1) 90ms both; }
.tbl > span.new.still { animation: none; }
.tbl > span.new .ms { font-size: 13px; color: var(--vulcan); margin-right: 4px; }
@keyframes rowin { 0% { opacity: 0; transform: translateY(-8px); filter: blur(4px); background: #d3e0ff; } 32% { opacity: 1; transform: none; filter: blur(0); background: #d3e0ff; } 100% { background: #eaf1ff; } }

/* ---------- Map overlays (MapLibre markers) ---------- */
.mk { width: 28px; height: 28px; } /* MapLibre positions markers absolutely; don't override */
.mk-b { position: absolute; inset: 0; display: grid; place-items: center; filter: drop-shadow(0 4px 8px rgb(0 0 0 / .4)); transform: scale(0); transition: transform .5s var(--ease-spring), opacity .3s; }
.mk-l { position: absolute; left: 32px; top: 50%; transform: translate(-4px, -50%); white-space: nowrap; font-size: 11.5px; font-weight: 500; color: #fff; background: rgb(12 19 36 / .82); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); padding: 3px 8px; border-radius: 6px; opacity: 0; transition: opacity .35s .15s, transform .5s .15s var(--ease-out); }
.mk-ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c); opacity: 0; }
.mk.on .mk-b { transform: scale(1); }
.mk.on .mk-l { opacity: 1; transform: translate(0, -50%); }
.mk.on:not(.still) .mk-ripple { animation: ripple 1.4s var(--ease-out) 2; }
.mk-req { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 500; padding: 4px 9px 4px 6px; border-radius: 8px; box-shadow: 0 6px 16px rgb(0 0 0 / .35); transform: translateY(-6px) scale(.9); opacity: 0; transition: transform .5s var(--ease-spring), opacity .35s; pointer-events: none; }
.mk-req.on { transform: none; opacity: 1; }
.mk-req .ms { font-size: 15px; }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.mk, .mk-flag { transition: opacity .3s; }
.mk.dim, .mk-flag.dim, .mk-cl.dim { opacity: .18 !important; } /* MapLibre sets an inline opacity on markers */
.mk.clustered { visibility: hidden; }
/* Cluster chip: stacked program shapes plus a count; hover fans them into a ring. */
.mk-cl { width: 28px; height: 28px; cursor: pointer; }
.mk-st { position: absolute; left: 0; top: 0; width: 28px; height: 28px; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .45)); transform: translate(var(--x), 0) scale(0); transition: transform .4s cubic-bezier(.23, 1, .32, 1); }
.mk-cl.on .mk-st { transform: translate(var(--x), 0); }
.mk-cl.on:hover .mk-st { transform: translate(var(--fx), var(--fy)); }
.mk-n { position: absolute; right: -14px; top: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #fff; color: #0b1220; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; box-shadow: 0 2px 6px rgb(0 0 0 / .35); z-index: 5; opacity: 0; transition: opacity .25s .15s; }
.mk-cl.on .mk-n { opacity: 1; }
.mk-cl.on:hover .mk-n { opacity: 0; transition-delay: 0s; }
.mk-flag { display: inline-flex; align-items: center; gap: 4px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 500; padding: 3px 8px 3px 5px; border-radius: 6px; box-shadow: 0 4px 12px rgb(0 0 0 / .35); transform: scale(.6); opacity: 0; transition: transform .45s var(--ease-spring), opacity .3s; }
.mk-flag.on { transform: none; opacity: 1; }
.mk-flag .ms { font-size: 14px; }
.mk-county { display: inline-flex; align-items: center; gap: 6px; background: rgb(12 19 36 / .88); border: 1px solid rgb(248 113 113 / .5); color: #fff; font-size: 12px; font-weight: 500; padding: 4px 9px 4px 6px; border-radius: 8px; box-shadow: 0 6px 16px rgb(0 0 0 / .35); transform: translateY(6px); opacity: 0; transition: transform .5s var(--ease-out), opacity .35s; pointer-events: none; }
.mk-county.on { transform: none; opacity: 1; }
.mk-county .ms { font-size: 15px; color: #f87171; }
.mk-county b { color: #f87171; font-weight: 500; }

.legend { position: fixed; left: 24px; bottom: 44px; z-index: 3; display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 10px; background: rgb(12 19 36 / .8); border: 1px solid rgb(255 255 255 / .08); backdrop-filter: blur(10px); color: #c8d2e2; font-size: 11.5px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease-out); pointer-events: none; }
.legend.on { opacity: 1; transform: none; }
.legend b { font-weight: 500; color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; opacity: .85; }

/* ---------- "?" + About this concept (modal) ---------- */
.help { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgb(15 23 42 / .85); color: #e2e8f0; border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(8px); cursor: pointer; transition: background .2s, transform .3s var(--ease-spring); }
.help:hover { background: var(--blue); transform: scale(1.06); }
.help .ms { font-size: 20px; }
.about { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px 16px; background: rgb(5 9 20 / .62); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.about.open { opacity: 1; }
.about[hidden] { display: none; }
.ab-panel { position: relative; width: min(1040px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; background: #0e1628; border: 1px solid var(--chat-line); border-radius: 20px; padding: 32px 36px 28px; color: var(--chat-ink); box-shadow: 0 30px 80px rgb(0 0 0 / .5); transform: translateY(14px) scale(.985); transition: transform .4s var(--ease-out); scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .14) transparent; }
.about.open .ab-panel { transform: none; }
.ab-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--chat-line); background: rgb(255 255 255 / .04); color: var(--chat-ink-2); display: grid; place-items: center; cursor: pointer; }
.ab-x:hover { background: rgb(255 255 255 / .1); color: #fff; }
.ab-hero { display: flex; gap: 24px; align-items: center; padding: 4px 48px 26px 0; border-bottom: 1px solid var(--chat-line); }
/* A small sphere: the five program colors (icons.js 500 steps) drift slowly on navy under a fixed highlight, in a blue glow. */
.ab-orb { flex: none; position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: #13214a; box-shadow: 0 0 28px 4px rgb(61 107 255 / .45); }
.ab-orb::before { content: ''; position: absolute; inset: 0; animation: orbspin 18s linear infinite;
  background: radial-gradient(circle at 28% 62%, #0da7cd 0, transparent 48%), radial-gradient(circle at 72% 30%, #4b88fd 0, transparent 46%),
    radial-gradient(circle at 70% 72%, #b65bef 0, transparent 46%), radial-gradient(circle at 46% 88%, #ee4083 0, transparent 36%),
    radial-gradient(circle at 50% 40%, #8a73fd 0, transparent 60%); }
.ab-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgb(255 255 255 / .5), transparent 22%); box-shadow: inset -8px -10px 18px rgb(0 0 0 / .4), inset 0 0 0 1px rgb(180 200 255 / .25); }
@keyframes orbspin { to { transform: rotate(360deg); } }
.ab-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #fbbf24; background: rgb(251 191 36 / .1); border: 1px solid rgb(251 191 36 / .3); padding: 3px 10px; border-radius: 999px; }
.ab-tag .ms { font-size: 15px; }
.ab-hero h2 { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.2; font-weight: 500; margin: 12px 0 8px; letter-spacing: -.01em; }
.ab-hero p { font-size: 14.5px; color: var(--chat-ink-2); max-width: 720px; line-height: 1.55; }
.ab-panel section { margin-top: 30px; }
.ab-panel h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; }
.ab-panel h3 .ms { font-size: 20px; color: #8fb0ff; }
.ab-sub { margin: 4px 0 14px; font-size: 13px; color: var(--chat-ink-3); }
/* readiness matrix */
.ab-panel section:has(.matrix) { overflow-x: auto; }
.matrix { min-width: 640px; display: grid; grid-template-columns: minmax(190px, 1.6fr) repeat(5, 1fr); }
.matrix > * { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 8px; border-bottom: 1px solid var(--chat-line); }
.mx-h { min-height: 34px !important; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--chat-ink-3); text-align: center; }
.mx-p { justify-content: flex-start !important; gap: 10px; font-size: 13.5px; font-weight: 500; }
.mx-p svg { flex: none; }
.matrix b::before, .mx-key b::before { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; }
.matrix b.y::before, .mx-key b.y::before { background: #22c55e; }
.matrix b.h::before, .mx-key b.h::before { background: conic-gradient(#f59e0b 0 50%, rgb(245 158 11 / .18) 0); }
.matrix b.o::before, .mx-key b.o::before { border: 2px solid #f97316; box-sizing: border-box; }
.matrix b.n-a::before, .mx-key b.n-a::before { width: 12px; height: 2px; border-radius: 1px; background: #475569; }
.mx-key { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 12px; color: var(--chat-ink-3); }
.mx-key span { display: inline-flex; align-items: center; gap: 7px; }
.mx-key b { display: grid; place-items: center; width: 16px; }
/* what needs work */
.ab-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; margin-top: 14px; }
.ab-merge { background: var(--chat-card); border: 1px solid var(--chat-line); border-radius: 14px; padding: 18px; display: grid; grid-template-columns: auto 64px auto; align-items: center; justify-content: start; column-gap: 4px; align-content: center; }
.mg-in { display: flex; flex-direction: column; gap: 14px; }
.mg-in span { font-size: 12px; padding: 4px 9px; border-radius: 6px; background: rgb(217 119 6 / .14); border: 1px solid rgb(217 119 6 / .4); color: #fcd9a8; white-space: nowrap; }
.ab-merge svg { width: 64px; height: 90px; }
.ab-merge path { fill: none; stroke: #8fb0ff; stroke-width: 1.6; stroke-dasharray: 4 5; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -18; } }
.mg-out { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 8px; background: var(--blue); color: #fff; white-space: nowrap; }
.mg-out .ms { font-size: 16px; }
.ab-merge p { grid-column: 1 / -1; margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--chat-ink-2); }
.ab-merge p b, .ab-list b { color: #fff; font-weight: 500; }
.ab-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.ab-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--chat-card); border: 1px solid var(--chat-line); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.45; color: var(--chat-ink-2); }
.ab-list li .ms { font-size: 20px; color: #fbbf24; margin-top: 1px; }
.ab-list b { display: block; margin-bottom: 1px; }
/* pipeline */
.pipe { display: flex; align-items: stretch; }
.pn { flex: 0 1 168px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; border-radius: 14px; background: var(--chat-card); border: 1px solid var(--chat-line); }
.pn i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .06); color: #c7d2fe; font-style: normal; margin-bottom: 4px; }
.pn i .ms { font-size: 22px; }
.pn b { font-size: 13.5px; font-weight: 500; color: #fff; }
.pn span { font-size: 11.5px; line-height: 1.35; color: var(--chat-ink-3); }
.pn.jev { background: rgb(41 98 255 / .14); border-color: rgb(143 176 255 / .5); }
.pn.jev i { background: var(--blue); }
.pn.jev i .ms { color: #fff; }
.pl { flex: 1 1 18px; min-width: 14px; align-self: center; height: 2px; background: repeating-linear-gradient(90deg, #8fb0ff 0 6px, transparent 6px 12px) 0 0 / 24px 2px; animation: dash .8s linear infinite; }
@keyframes dash { to { background-position: 24px 0; } }
.budget { margin-top: 18px; }
.bg-bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; gap: 2px; }
.bg-bar span { width: var(--w); background: var(--c); color: #fff; font-size: 11.5px; font-weight: 500; display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-scale { position: relative; height: 16px; margin-top: 6px; font-size: 11.5px; color: var(--chat-ink-3); }
.bg-scale span { position: absolute; top: 0; white-space: nowrap; }
.bg-scale span:nth-child(1) { left: 0; }
.bg-scale span:nth-child(2) { left: 42%; transform: translateX(-50%); } /* end of "First words" */
.bg-scale span:nth-child(3) { right: 0; }
.ab-fine { margin-top: 6px; font-size: 11.5px; color: var(--chat-ink-3); }
/* roadmap */
.road { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.road::before { content: ""; position: absolute; left: 10%; right: 10%; top: 21px; height: 2px; background: linear-gradient(90deg, #fbbf24, #2962ff 25%, rgb(41 98 255 / .25)); }
.rd { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.rd i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #0e1628; border: 2px solid var(--blue); color: #c7d2fe; font-style: normal; margin-bottom: 6px; }
.rd i .ms { font-size: 21px; }
.rd.now i { border-color: #fbbf24; color: #fbbf24; }
.rd b { font-size: 13px; font-weight: 500; color: #fff; }
.rd span { font-size: 11.5px; line-height: 1.45; color: var(--chat-ink-3); }
/* optimisation tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tl { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 12px; background: var(--chat-card); border: 1px solid var(--chat-line); }
.tl .ms { font-size: 22px; color: #8fb0ff; margin-bottom: 4px; }
.tl b { font-size: 13.5px; font-weight: 500; color: #fff; }
.tl span:not(.ms) { font-size: 12px; color: var(--chat-ink-3); line-height: 1.4; }
.ab-note { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--chat-line); font-size: 11.5px; color: var(--chat-ink-3); }
@media (max-width: 760px) {
  .help { bottom: 64px; } /* clear of the presenter bar */
  .ab-panel { padding: 24px 18px; }
  .ab-hero { flex-direction: column; align-items: flex-start; padding-right: 36px; }
  .ab-work { grid-template-columns: 1fr; }
  .pipe { flex-direction: column; }
  .pn { flex-basis: auto; }
  .pl { width: 2px; height: 16px; flex: none; background: repeating-linear-gradient(180deg, #8fb0ff 0 6px, transparent 6px 12px); animation: none; }
  .road { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .road::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .rd { flex-direction: row; align-items: flex-start; text-align: left; gap: 12px; }
  .rd i { flex: none; }
}

/* ---------- Presenter HUD (outside the product UI) ---------- */
.hud { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; z-index: 50; background: rgb(15 23 42 / .82); padding: 5px; border-radius: 999px; backdrop-filter: blur(8px); color: #e2e8f0; font-size: 12px; transition: opacity .3s; }
.hud button { color: #e2e8f0; background: transparent; border: 0; padding: 5px 9px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; }
.hud button:hover { background: rgb(255 255 255 / .1); }
.hud .ms { font-size: 17px; }
.hud-scene { min-width: 116px; text-align: center; font-weight: 500; font-variant-numeric: tabular-nums; }
.hud .sep { width: 1px; height: 18px; background: rgb(255 255 255 / .15); margin: 0 4px; }
.hud-keys { color: #7c8aa3; padding: 0 8px 0 4px; font-size: 11px; }
body.hide-hud .hud { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
}

/* ---------- Access gate (gate.js): the Sabal stage before the demo ---------- */
[data-gate="open"] .gate { display: none; }
[data-gate="locked"] .orb .orb-glow { opacity: 1; }
[data-gate="locked"] .hud, [data-gate="locked"] .help { visibility: hidden; }
.gate-bg { position: fixed; inset: 0; z-index: 9; cursor: text; background: radial-gradient(120% 90% at 50% 38%, #13213f 0%, var(--navy) 50%, #060a14 100%); }
/* A faint dot field, brightest around the sphere. */
.gate-bg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(rgb(148 163 184 / .2) 1px, transparent 1.5px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 40%, #000 0, transparent 80%); mask-image: radial-gradient(ellipse 55% 50% at 50% 40%, #000 0, transparent 80%); }
/* Leaving: an iris opens from the sphere (gate.js drives --r), rimmed with blue light. */
.gate-bg.iris { -webkit-mask-image: radial-gradient(circle at var(--x) var(--y), transparent var(--r, 0px), #000 calc(var(--r, 0px) + 160px)); mask-image: radial-gradient(circle at var(--x) var(--y), transparent var(--r, 0px), #000 calc(var(--r, 0px) + 160px)); }
.gate-bg.iris::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--x) var(--y), transparent var(--r, 0px), rgb(61 107 255 / .55) calc(var(--r, 0px) + 30px), transparent calc(var(--r, 0px) + 150px)); }
.gate-ico { position: fixed; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; pointer-events: none; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--c) 70%, transparent)); will-change: transform; }
.gate-ico svg { width: 100%; height: 100%; }
.gate-ui { position: fixed; inset: 0; z-index: 15; pointer-events: none; color: #fff; transition: opacity .5s; }
.gate-ui.out { opacity: 0; }
.gate-brand { position: absolute; left: 24px; top: 22px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: #c8d2e2; }
.gate-brand i { font-style: normal; color: #4b5a73; }
.gate-caption { position: absolute; left: 0; right: 0; top: calc(50% + 70px); text-align: center; text-shadow: 0 1px 14px rgb(0 0 0 / .9); }
.gate-status { display: block; margin-top: 4px; font-size: 15px; color: #a3b0c4; transition: color .2s; }
.gate-status.err { color: #fca5a5; }
.gate-form { position: absolute; left: 0; right: 0; top: calc(50% + 142px); margin-inline: auto; width: min(400px, calc(100vw - 32px)); height: 50px; border-radius: 25px; background: rgb(12 19 36 / .82); border: 1px solid rgb(255 255 255 / .16); box-shadow: 0 18px 50px rgb(0 0 0 / .35), 0 0 0 4px rgb(41 98 255 / .12); display: flex; align-items: center; gap: 10px; padding: 0 8px 0 20px; pointer-events: auto; transition: opacity .45s, border-color .2s, box-shadow .2s; }
.gate-form:focus-within { border-color: rgb(143 176 255 / .45); box-shadow: 0 18px 50px rgb(0 0 0 / .35), 0 0 0 4px rgb(41 98 255 / .24); }
.gate-form.out { opacity: 0; pointer-events: none; }
.gate-form input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; color: #fff; font: inherit; font-size: 15px; letter-spacing: .04em; }
.gate-form input::placeholder { color: #7f8ca3; letter-spacing: 0; }
.gate-form .send { border: 0; cursor: pointer; }
.gate-note { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 12px; color: #6b7a92; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
