/* InteropEV CPMS: the V2G Sniffer's look (units.interopev.com, hardware/v2g-sniffer/ios
   Theme.swift) for charge point management. Light only, like the Sniffer. The base below
   is the Sniffer's units.css; CPMS parts follow at the end. */
/*lockup-css*/
/* Generated by marketing/brand/app_lockups.py: the family lockup, one size
   variable (--lockup-h, the plug's height: 32px in bars, 41px on sign-in
   screens). Do not edit by hand. */
.iev-lockup{--lockup-h:32px;display:inline-flex;align-items:center;gap:calc(var(--lockup-h)*0.2108);height:var(--lockup-h);flex:none;line-height:0}
.iev-lockup svg{display:block;height:100%;width:auto;flex:none}
.iev-lockup .iev-soft{fill:var(--lockup-soft,#7a7c83)}.iev-lockup .iev-sym{fill:var(--mark-symbol,#e8b84a)}.iev-lockup .iev-sym-line{stroke:var(--mark-symbol,#e8b84a)}
/*/lockup-css*/
@font-face { font-family: "Sora"; src: url("/fonts/Sora-SemiBold.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Sora"; src: url("/fonts/Sora-Bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #f4f4f2; --surface: #fff; --surface2: #eeeeeb; --shell: rgba(27, 27, 31, .045); --line: rgba(27, 27, 31, .09);
  --ink: #1b1b1f; --soft: #4a4c52; --mute: #6d6f76; --off: #c9c9c4;
  --gold: #e8b84a; --gold-deep: #c9962a; --gold-ink: #1b1400; --gold-tint: #fbf3df; --cream: #faf6ec;
  --pass: #2e7d4f; --pass-tint: rgba(46, 125, 79, .10);
  --warn: #b3711a; --warn-tint: rgba(179, 113, 26, .10);
  --fail: #b23a3a; --fail-tint: rgba(178, 58, 58, .09);
  --r-card: 28px; --r-inner: 22px;
  --shadow: 0 14px 44px -14px rgba(27, 27, 31, .16);
  --head: "Sora", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, sans-serif;
  --spring: cubic-bezier(.32, 1.25, .5, 1);
  --top-h: 68px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }
.muted { color: var(--mute); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

/* ── top bar and tabs ─────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(244, 244, 242, .82); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: var(--top-h); display: flex; align-items: center; gap: 16px; }
.brand { flex: none; display: block; }
.lockup { height: 30px; width: auto; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }

.tabbar { position: relative; display: flex; gap: 4px; padding: 5px; margin: 0 auto; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px var(--line), 0 12px 30px -12px rgba(27, 27, 31, .18); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.tab { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; text-decoration: none; color: var(--soft); font: 600 14px var(--head); transition: color .25s; white-space: nowrap; }
.tab .i { font-size: 17px; }
.tab.on { color: #fff; }
.tab .dot { position: absolute; top: 8px; left: 30px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #fff; }
.tab-pill { position: absolute; z-index: 0; top: 5px; height: 42px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .42s var(--spring), width .42s var(--spring); }
.tabbar.ready .tab-pill { will-change: transform; }

.round { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--shell); cursor: pointer; color: var(--ink); text-decoration: none; flex: none; }
.round .i { font-size: 17px; }
.round:hover { background: rgba(27, 27, 31, .07); }
.round.glass { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bell .count { position: absolute; top: -4px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font: 600 10px/15px var(--body); border: 2px solid var(--bg); text-align: center; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--gold-tint); box-shadow: inset 0 0 0 1px rgba(232, 184, 74, .5); font: 600 13px var(--head); text-decoration: none; }

/* ── page frame ───────────────────────────────────────────────────────── */
.page { max-width: 1240px; margin: 0 auto; padding: 12px 24px 72px; }
.page.full { max-width: none; padding: 0; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.page-head h1 { font: 700 34px/1.1 var(--head); letter-spacing: -.03em; margin: 8px 4px 4px; }
.page-head p { margin: 0 4px; color: var(--mute); font-size: 14px; }
.kicker { font: 600 11px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.sec-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 4px; }
.sec-title h2 { font: 600 19px/1.25 var(--head); letter-spacing: -.015em; margin: 0; }
.sec-title p { margin: 2px 0 0; font-size: 13px; color: var(--mute); }

.card { background: var(--surface); border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line), var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.tight { padding: 6px; gap: 0; }
.card h3 { font: 600 18px/1.25 var(--head); margin: 0; letter-spacing: -.01em; }
.card p { margin: 0; }
.soft { color: var(--soft); font-size: 14px; }
.small { font-size: 12px; color: var(--mute); }

.row { display: flex; flex-direction: column; gap: 2px; }
.row-main { display: flex; align-items: baseline; gap: 12px; }
.row-main > span:first-child { color: var(--soft); font-size: 14px; }
.row-main > b { margin-left: auto; font-weight: 600; font-size: 14px; text-align: right; }
.row small { font-size: 12px; color: var(--mute); }
.row b.pass, .pass-t { color: var(--pass); }
.row b.warn, .warn-t { color: var(--warn); }
.row b.fail, .fail-t { color: var(--fail); }
.row b.gold, .gold-t { color: var(--gold-deep); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 9px; font: 600 12px var(--body); white-space: nowrap; background: var(--shell); color: var(--mute); }
.tag .i { font-size: 11px; stroke-width: 2.6; }
.tag.live { background: var(--gold); color: var(--gold-ink); }
.tag.live .i { fill: currentColor; }
.tag.online, .tag.pass { background: var(--pass-tint); color: var(--pass); }
.tag.blocked, .tag.fail { background: var(--fail-tint); color: var(--fail); }
.tag.gold { background: var(--gold-tint); color: var(--gold-deep); }

.sdot { position: relative; display: inline-block; width: 18px; height: 18px; flex: none; }
.sdot::after { content: ""; position: absolute; inset: 4.5px; border-radius: 50%; background: var(--off); }
.sdot.online::after { background: var(--pass); }
.sdot.live::after { background: var(--gold); }
.sdot.live::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(232, 184, 74, .35); animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: var(--r-inner); background: var(--gold-tint); font-weight: 500; font-size: 14px; }
.notice .i { font-size: 15px; margin-top: 2px; color: var(--warn); }
.notice.pass { background: var(--pass-tint); }
.notice.pass .i { color: var(--pass); }
.notice.fail .i { color: var(--fail); }
.notice.mute .i { color: var(--mute); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--shell); color: var(--ink); font: 600 14px var(--head); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .18s var(--spring), box-shadow .2s, background .2s; }
.btn:hover { background: rgba(27, 27, 31, .07); }
.btn:active { transform: scale(.98); }
.btn.primary { min-height: 52px; border: 0; background: var(--gold); color: var(--gold-ink); box-shadow: 0 8px 22px -8px rgba(232, 184, 74, .75); font-size: 15px; }
.btn.primary:hover { background: #ecc25c; }
.btn.danger { color: var(--fail); }
.btn.wide { width: 100%; }
.btn.small-btn { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .45; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: 600 13px var(--body); color: var(--gold-deep); }
.link-btn:hover { text-decoration: underline; }

/* chips and segments: an ink pill under the chosen one */
.chips { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; max-width: 100%; width: max-content; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: none; color: var(--soft); font: 600 14px var(--head); cursor: pointer; text-decoration: none; transition: background .25s, color .25s; }
.chip .i { font-size: 13px; }
.chip.on { background: var(--ink); color: #fff; }
.chip .n { font: 600 12px var(--body); opacity: .7; }
.seg { display: flex; width: 100%; }
.seg .chip { flex: 1 1 0; justify-content: center; min-height: 40px; min-width: 0; padding: 0 8px; }

/* ── home ─────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line), var(--shadow); background: linear-gradient(135deg, var(--gold-tint), var(--cream)); transition: background .4s; }
.hero.live { background: linear-gradient(135deg, rgba(232, 184, 74, .55), var(--gold-tint)); }
.hero-in { position: relative; min-height: 210px; padding: 24px 26px; }
.hero-pic { position: absolute; right: -10px; top: 6px; width: 300px; transform: rotate(-6deg); pointer-events: none; }
.hero-text { position: relative; display: flex; flex-direction: column; gap: 6px; }
.hero-text h1 { max-width: 60%; }
.hero h1 { font: 700 32px/1.1 var(--head); letter-spacing: -.03em; margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; height: 34px; padding: 0 14px 0 8px; margin-top: 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 3px 10px rgba(27, 27, 31, .06); font: 600 14px var(--body); max-width: 100%; }
.status-pill span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.figures { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255, 255, 255, .92); border-top: 1px solid var(--line); }
.figure { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border: 0; background: none; text-align: left; cursor: pointer; text-decoration: none; transition: background .2s; }
.figure + .figure { box-shadow: -1px 0 0 var(--line); }
.figure:hover { background: rgba(27, 27, 31, .025); }
.figure b { font: 700 32px/1.05 var(--head); font-variant-numeric: tabular-nums; }
.figure span { font: 500 12px var(--body); color: var(--mute); }

.empty-card { flex-direction: row; align-items: center; gap: 14px; }
.circle-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--shell); color: var(--mute); display: flex; align-items: center; justify-content: center; flex: none; }
.circle-ic .i { font-size: 19px; }
.circle-ic.gold { background: var(--gold-tint); color: var(--gold-deep); }

.live-card { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-card); background: linear-gradient(135deg, #f0c862, var(--gold)); color: var(--gold-ink); box-shadow: 0 14px 34px -12px rgba(232, 184, 74, .8); text-decoration: none; transition: transform .2s var(--spring); }
.live-card:hover { transform: translateY(-2px); }
.live-card .lc-top { display: flex; align-items: center; gap: 12px; }
.live-card .lc-top img { width: 78px; flex: none; }
.live-card .lc-name { font: 600 17px var(--head); }
.live-card .lc-sub { font: 500 13px var(--body); opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-card .lc-clock { margin-left: auto; font: 600 14px var(--head); opacity: .75; font-variant-numeric: tabular-nums; }
.lc-power { display: flex; align-items: baseline; gap: 6px; }
.lc-power b { font: 700 52px/1 var(--head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lc-power .u { font: 600 18px var(--head); opacity: .6; }
.lc-power .vi { margin-left: auto; text-align: right; font: 600 16px/1.35 var(--head); font-variant-numeric: tabular-nums; }
.lc-bat { display: flex; flex-direction: column; gap: 6px; font: 600 12px var(--body); }
.lc-bat > div:first-child { display: flex; justify-content: space-between; opacity: .8; }
.bar { height: 8px; border-radius: 999px; background: rgba(27, 20, 0, .12); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--gold-ink); transition: width .5s ease; }

.carousel { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 22px; margin: -4px -2px -18px; scroll-snap-type: x proximity; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .tile { width: 214px; flex: none; scroll-snap-align: start; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 14px; }

.tile { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-inner); box-shadow: 0 0 0 1px var(--line), 0 10px 30px -12px rgba(27, 27, 31, .16); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .22s var(--spring), box-shadow .22s; min-width: 0; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 18px 36px -14px rgba(27, 27, 31, .24); }
.tile:active { transform: scale(.98); }
.tile.live { box-shadow: 0 0 0 1.5px var(--gold), 0 10px 30px -12px rgba(232, 184, 74, .5); }
.tile-pic { position: relative; height: 136px; background: linear-gradient(135deg, var(--gold-tint), var(--cream)); }
.tile.live .tile-pic { background: linear-gradient(135deg, rgba(232, 184, 74, .42), var(--gold-tint)); }
.tile.offline .tile-pic, .tile.blocked .tile-pic { background: linear-gradient(135deg, var(--surface2), rgba(238, 238, 235, .5)); }
.tile-pic img { position: absolute; inset: 26px 14px 6px; width: calc(100% - 28px); height: calc(100% - 32px); object-fit: contain; }
.tile.offline .tile-pic img, .tile.blocked .tile-pic img { filter: grayscale(1); opacity: .7; }
.tile-pic .tag { position: absolute; top: 10px; left: 10px; }
.tile-body { padding: 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile-body b { font: 600 16px var(--head); }
.tile-body span, .tile-body b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-body .t2 { font-size: 12px; color: var(--mute); }
.tile-body .t3 { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--soft); margin-top: 4px; }
.tile-body .t3 .i { font-size: 11px; }
.tile-body .t4 { font-size: 12px; color: var(--mute); }
.tile-body .t4.warn { color: var(--warn); font-weight: 600; display: flex; align-items: center; gap: 5px; }

.list-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; text-decoration: none; color: var(--ink); cursor: pointer; background: none; border: 0; width: 100%; text-align: left; }
.list-row:hover { background: var(--shell); }
.list-row + .list-row { box-shadow: 0 -1px 0 var(--line); border-radius: 0; }
.list-row + .list-row:hover { border-radius: 0; }
.list-row .sq { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; background: var(--warn-tint); color: var(--warn); }
.list-row .sq .i { font-size: 15px; }
.list-row .sq.gold { background: var(--gold-tint); color: var(--gold-deep); }
.list-row .sq.pass { background: var(--pass-tint); color: var(--pass); }
.list-row .sq.fail { background: var(--fail-tint); color: var(--fail); }
.list-row .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.list-row .txt b { font-weight: 600; font-size: 14px; }
.list-row .txt span { font-size: 12px; color: var(--mute); }
.list-row > .i { color: var(--mute); font-size: 13px; }
.new-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; align-self: flex-start; margin-top: 6px; }

.map-preview { position: relative; height: 210px; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow); display: block; }
.map-preview .leaflet-container { height: 100%; cursor: pointer; }
/* Leaflet's panes stack up to z-index 1000: keep them inside their box, under the top bar */
.map-preview, .mini-map, .map-page { isolation: isolate; }
.leaflet-tile-pane { filter: saturate(.55) brightness(1.03); }
.map-preview .open { position: absolute; z-index: 500; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 12px var(--body); text-decoration: none; color: var(--ink); }

/* map pins: the mark in a circle in the unit's colour */
.pin { position: relative; width: 44px; height: 44px; }
.pin .ring { position: absolute; inset: 0; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2.5px var(--line), 0 3px 8px rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: center; transition: transform .25s var(--spring); }
.pin .ring img { width: 22px; height: 28px; }
.pin.online .ring { box-shadow: inset 0 0 0 2.5px var(--pass), 0 3px 8px rgba(0, 0, 0, .18); }
.pin.live .ring { box-shadow: inset 0 0 0 2.5px var(--gold), 0 3px 8px rgba(0, 0, 0, .18); }
.pin.offline .ring, .pin.blocked .ring { background: var(--surface2); }
.pin.live::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: rgba(232, 184, 74, .3); }
.pin.sel .ring { transform: scale(1.2); }
.leaflet-div-icon.pin-wrap { background: none; border: 0; }

/* ── units ────────────────────────────────────────────────────────────── */
.search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: 999px; background: var(--surface2); max-width: 420px; }
.search .i { color: var(--mute); }
.search input { flex: 1; border: 0; background: none; font: 400 15px var(--body); color: var(--ink); outline: 0; min-width: 0; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.none { text-align: center; padding: 30px; color: var(--mute); font-size: 14px; }

/* ── map page ─────────────────────────────────────────────────────────── */
.map-page { position: relative; height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); }
.map-page .leaflet-container { position: absolute; inset: 0; background: #e8e6df; }
.map-float { position: absolute; z-index: 600; left: 50%; bottom: 28px; transform: translateX(-50%); width: min(460px, calc(100% - 32px)); }
.map-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-inner); background: var(--surface); box-shadow: 0 10px 40px rgba(27, 27, 31, .2); text-decoration: none; color: var(--ink); animation: rise .35s var(--spring); }
.map-card img { width: 76px; flex: none; }
.map-card .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.map-card .txt > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.map-card b { font: 600 16px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card span { font-size: 13px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card span.small { font-size: 12px; color: var(--mute); }
.map-hint { display: table; margin: 0 auto; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 13px var(--body); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── account ──────────────────────────────────────────────────────────── */
.who { display: flex; align-items: center; gap: 14px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font: 600 20px var(--head); display: flex; align-items: center; justify-content: center; flex: none; }
.who b { font: 600 18px var(--head); display: block; }
.narrow { max-width: 680px; }

/* ── a unit ───────────────────────────────────────────────────────────── */
.u-hero { position: relative; border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line); background: linear-gradient(180deg, var(--gold-tint), var(--cream) 55%, var(--surface)); overflow: hidden; }
.u-hero.live { background: linear-gradient(180deg, rgba(232, 184, 74, .45), var(--gold-tint)); }
.u-bar { display: flex; align-items: center; gap: 8px; padding: 14px; position: relative; z-index: 2; }
.u-bar .grow { flex: 1; }
.u-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 10px; align-items: center; padding: 0 22px 18px; margin-top: -12px; }
.u-pic { position: relative; }
.u-pic img { width: 100%; max-height: 220px; object-fit: contain; position: relative; }
.u-pic.offline img, .u-pic.blocked img { filter: grayscale(1); opacity: .7; }
.u-pic.live::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: 4%; height: 40%; border-radius: 50%; background: rgba(232, 184, 74, .45); filter: blur(26px); }
.u-name { font: 700 32px/1.1 var(--head); letter-spacing: -.03em; margin: 0 0 4px; }
.u-meta { font-size: 13px; color: var(--mute); }
.u-state { display: flex; align-items: center; gap: 6px; margin-top: 4px; font: 500 13px var(--body); color: var(--soft); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .9); box-shadow: inset 0 0 0 1px var(--line); border: 0; cursor: pointer; text-align: left; transition: transform .18s var(--spring); min-width: 0; text-decoration: none; color: var(--ink); }
.fact:hover { background: #fff; }
.fact:active { transform: scale(.98); }
.fact .k { display: flex; align-items: center; gap: 5px; font: 600 10px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.fact .k .i { color: var(--gold-deep); font-size: 11px; }
.fact b { font: 600 15px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact b.warn { color: var(--warn); }
.role { display: flex; align-items: center; gap: 6px; margin-top: 12px; font: 500 12px var(--body); color: var(--mute); }
.u-body { display: flex; flex-direction: column; gap: 16px; }

/* live: stages */
.stages { display: flex; align-items: center; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.stages::-webkit-scrollbar { display: none; }
.stage { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface2); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); font: 500 13px var(--body); white-space: nowrap; transition: background .3s, color .3s; }
.stage .i { font-size: 12px; stroke-width: 2.4; }
.stage.seen { background: var(--surface); color: var(--ink); }
.stage.now { background: var(--gold); color: var(--gold-ink); box-shadow: none; font-weight: 600; }
.stage.failed { color: var(--fail); }
.stage-link { width: 14px; height: 2px; background: var(--line); flex: none; }
.stage-link.seen { background: var(--gold-deep); }

.gauge-row { display: flex; align-items: center; gap: 22px; }
.gauge { position: relative; width: 160px; height: 160px; flex: none; }
.gauge svg { width: 100%; height: 100%; }
.gauge .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge .val b { font: 700 38px/1 var(--head); font-variant-numeric: tabular-nums; }
.gauge .val span { font: 600 14px var(--head); color: var(--mute); }
.gauge .arc { transition: stroke-dasharray .6s ease-out; }
.metrics { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.metric b { display: block; font: 600 21px var(--head); font-variant-numeric: tabular-nums; }
.metric span:last-child { font-size: 11px; color: var(--mute); }
.card-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.card-head .soft { font-weight: 600; font-size: 13px; }

.battery { display: flex; align-items: center; gap: 14px; }
.battery > b { font: 700 32px var(--head); width: 96px; flex: none; font-variant-numeric: tabular-nums; }
.cells { flex: 1; display: flex; gap: 4px; height: 38px; padding: 4px; border-radius: 9px; box-shadow: inset 0 0 0 1.5px var(--line); }
.cells i { flex: 1; border-radius: 4px; background: var(--surface2); position: relative; overflow: hidden; }
.cells i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--f, 0%); background: var(--gold); transition: width .5s; }
.cells i.full::after { background: var(--pass); }

.chart { position: relative; height: 190px; padding: 8px 0 22px 38px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .y { position: absolute; left: 0; font: 500 11px var(--body); color: var(--mute); font-variant-numeric: tabular-nums; }
.chart .x { position: absolute; bottom: 0; font: 500 11px var(--body); color: var(--mute); }
.chart .grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-empty { min-height: 90px; display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 13px; text-align: center; }

.msg-head { display: flex; align-items: center; gap: 12px; }
.circ { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-tint); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; flex: none; }
.circ .i { font-size: 13px; stroke-width: 2.6; }
.circ.fail { background: var(--fail-tint); color: var(--fail); }

.trace-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; cursor: pointer; border: 0; background: none; width: 100%; text-align: left; border-radius: 14px; }
.trace-row:hover { background: var(--shell); }
.trace-row + .trace-row { box-shadow: 0 -1px 0 var(--line); border-radius: 0; }
.trace-row .circ { width: 30px; height: 30px; }
.trace-row .circ .i { font-size: 11px; }
.trace-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.trace-row .txt > div { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.trace-row b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trace-row .rc { font: 600 11px var(--body); color: var(--fail); white-space: nowrap; }
.trace-row .sum { font-size: 12px; color: var(--soft); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.trace-row .rel { font: 500 11px var(--body); color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.toggle-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 12px var(--body); color: var(--soft); cursor: pointer; }
.toggle-btn.on { background: var(--gold-tint); border-color: rgba(201, 150, 42, .4); color: var(--gold-deep); }
.fields { display: flex; flex-direction: column; gap: 8px; }
.fields div span { display: block; font: 600 11px var(--body); color: var(--mute); }
.fields div code { font: 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); word-break: break-all; }

/* sessions */
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border-radius: var(--r-inner); box-shadow: inset 0 0 0 1px var(--line); }
.summary > div { padding: 12px 16px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.summary > div + div { box-shadow: -1px 0 0 var(--line); }
.summary b { font: 600 21px var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary span { font: 500 11px var(--body); color: var(--mute); }
.day { padding: 4px 4px 0; }
.srow { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-inner); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border: 0; cursor: pointer; text-align: left; width: 100%; transition: transform .18s var(--spring), box-shadow .2s; }
.srow:hover { box-shadow: inset 0 0 0 1px rgba(27, 27, 31, .16), 0 8px 20px -12px rgba(27, 27, 31, .2); }
.srow.rec { box-shadow: inset 0 0 0 1.5px var(--gold); }
.srow .sq { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-tint); color: var(--gold-deep); display: flex; align-items: center; justify-content: center; flex: none; }
.srow.rec .sq { background: var(--gold); color: var(--gold-ink); }
.srow .sq .i { font-size: 19px; }
.srow .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.srow .txt > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.srow .txt b { font: 600 16px var(--head); }
.srow .note { font: 500 13px var(--body); color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srow .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.srow .size { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font: 600 12px var(--body); color: var(--mute); }
.srow .size > span { display: flex; align-items: center; gap: 4px; }
.srow .size .ok { color: var(--pass); font-size: 12px; }
.sessions-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 10px; }
.u-body > .chips.seg, #l-seg .chips.seg { max-width: 560px; }
.card .chips.seg { max-width: 520px; }

/* forms */
.setting { display: flex; flex-direction: column; gap: 4px; }
.setting + .setting { padding-top: 14px; border-top: 1px solid var(--line); }
.setting .line { display: flex; align-items: center; gap: 12px; }
.setting .line > span { font: 500 15px var(--body); flex: 1; }
.setting small { font-size: 12px; color: var(--mute); }
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(120, 120, 128, .2); transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .16); transition: transform .3s var(--spring); }
.switch input:checked + i { background: var(--gold-deep); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:disabled { cursor: default; }
.switch input:disabled + i { opacity: .55; }
.switch input:focus-visible + i { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.stepper { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface2); flex: none; }
.stepper button { width: 34px; height: 30px; border: 0; border-radius: 8px; background: none; font: 600 18px/1 var(--body); cursor: pointer; color: var(--ink); }
.stepper button:hover { background: #fff; }
.stepper button:disabled { opacity: .35; cursor: default; background: none; }
.stepper output { min-width: 72px; text-align: center; font: 600 15px var(--body); font-variant-numeric: tabular-nums; }
select.pick { font: 600 14px var(--body); color: var(--ink); background: var(--surface2); border: 0; border-radius: 10px; padding: 8px 30px 8px 12px; cursor: pointer; max-width: 60%; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a4c52' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
select.pick:disabled { opacity: .55; cursor: default; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font: 500 13px var(--body); color: var(--soft); }
.field input, .field select, .field textarea { font: 400 16px var(--body); color: var(--ink); min-height: 50px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface2); outline: 0; width: 100%; }
.field textarea { padding: 12px 16px; min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-deep); background: #fff; }
.field input:disabled { opacity: .6; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--gold-deep); width: 16px; height: 16px; }
.check small { display: block; color: var(--mute); font-size: 12px; }
.save-bar { display: flex; gap: 10px; align-items: center; }
.save-bar.dirty { position: sticky; bottom: 16px; z-index: 5; }
.save-bar .btn.primary { flex: 1; max-width: 420px; }

.wifi-row { display: flex; align-items: center; gap: 10px; }
.wifi-row + .wifi-row { padding-top: 12px; border-top: 1px solid var(--line); }
.wifi-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wifi-row .txt b { font-weight: 600; font-size: 15px; }
.wifi-row .txt span { font-size: 12px; color: var(--mute); }
.wifi-row .lvl { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.wifi-row > .i { color: var(--mute); font-size: 13px; }

.mini-map { height: 200px; border-radius: 14px; overflow: hidden; }
.action { display: flex; align-items: center; gap: 12px; padding: 4px 0; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; text-decoration: none; color: var(--ink); }
.action .i { font-size: 18px; width: 24px; }
.action b { display: block; font-weight: 600; font-size: 15px; }
.action span { display: block; font-size: 12px; color: var(--mute); }
.action.danger, .action.danger .i { color: var(--fail); }
.action:hover b { text-decoration: underline; }

/* ── sheets, toast, splash ────────────────────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.sheet-back { position: absolute; inset: 0; background: rgba(27, 27, 31, .32); animation: fade .25s ease; }
.sheet-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; background: var(--bg); border-radius: var(--r-card); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4); padding: 22px; display: flex; flex-direction: column; gap: 16px; animation: pop .38s var(--spring); outline: 0; }
.sheet-card.small { width: min(420px, 100%); }
.sheet-top { display: flex; align-items: center; justify-content: space-between; }
.sheet-card h2 { font: 700 28px/1.12 var(--head); letter-spacing: -.03em; margin: 0; }
.sheet-card .confirm-text { font: 500 16px/1.45 var(--body); }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; }
.sheet.closing .sheet-back { opacity: 0; transition: opacity .2s; }
.sheet.closing .sheet-card { transform: translateY(12px) scale(.98); opacity: 0; transition: transform .2s, opacity .2s; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(24px) scale(.97); opacity: 0; } }

.toast { position: fixed; z-index: 1100; left: 50%; bottom: 30px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 0 6px; border: 12px solid transparent; border-radius: 22px; background: var(--ink); color: #fff; font: 600 14px var(--body); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); animation: toast .4s var(--spring); width: max-content; line-height: 1.35; text-align: center; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.toast.out { opacity: 0; transform: translate(-50%, 10px); transition: opacity .25s, transform .25s; }
@keyframes toast { from { transform: translate(-50%, 30px); opacity: 0; } }

.spinner { width: 26px; height: 26px; margin: 34px auto; border-radius: 50%; border: 3px solid var(--surface2); border-top-color: var(--gold-deep); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.splash { position: fixed; inset: 0; z-index: 2000; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; overflow: hidden; cursor: pointer; transition: opacity .35s ease; }
.splash.out { opacity: 0; pointer-events: none; }
.splash-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(232, 184, 74, .2); filter: blur(90px); transform: translate(120px, -260px); opacity: 0; animation: fade-in .7s ease 1.75s forwards; }
.splash-mark { position: relative; width: 260px; height: 260px; display: flex; align-items: center; justify-content: center; }
.splash-halo { position: absolute; inset: 0; border-radius: 50%; background: rgba(232, 184, 74, .3); filter: blur(40px); opacity: 0; transform: scale(.6); animation: halo .5s ease-out 1.6s forwards; }
.splash-parts { position: relative; width: 136px; height: 176px; transform-origin: 50% 100%; transform: scaleY(1.07); animation: nudge .7s ease 1.55s forwards; }
.splash-parts img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.splash .p-body { transform: translateY(64px); animation: in-body .8s var(--spring) .15s forwards; }
.splash .p-head { transform: translateY(-96px) rotate(-10deg); animation: in-head .75s cubic-bezier(.3, 1.5, .5, 1) .5s forwards; }
.splash .p-overlap { transform: translateY(-96px); animation: in-head .75s cubic-bezier(.3, 1.5, .5, 1) .5s forwards; }
.splash .p-face { transform-origin: 50% 31.8%; transform: scale(.2); animation: in-face .5s cubic-bezier(.3, 1.7, .5, 1) 1.15s forwards; }
.splash-name { height: 30px; width: auto; opacity: 0; transform: translateY(12px); animation: in-name .7s ease-out 1.75s forwards; }
@keyframes in-body { to { transform: none; opacity: 1; } }
@keyframes in-head { to { transform: none; opacity: 1; } }
@keyframes in-face { to { transform: none; opacity: 1; } }
@keyframes in-name { to { transform: none; opacity: 1; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes halo { to { opacity: 1; transform: scale(1); } }
@keyframes nudge { 0% { transform: scaleY(1.07); } 25% { transform: scaleY(1); } 55% { transform: scaleY(1.03); } 100% { transform: scaleY(1); } }

.leaflet-container { font-family: var(--body); }
.leaflet-control-attribution { font-size: 10px; }

/* ── narrower screens: the app's layout, the tab bar at the bottom ───── */
@media (max-width: 1020px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .u-main { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (max-width: 400px) {
  /* the lockup, "n charging" and the bell side by side on a 375 px phone */
  .top-in { gap: 8px; }
  .top-right { gap: 6px; }
  .live-badge { padding: 0 10px 0 8px; gap: 5px; }
}
@media (max-width: 360px) {
  /* a 320 px phone: the badge keeps its dot and number */
  .live-badge .lb-word { display: none; }
}
@media (max-width: 760px) {
  :root { --top-h: 58px; }
  /* a blurred header would hold the fixed tab bar inside it */
  .top { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(244, 244, 242, .97); }
  .top-in { padding: 0 16px; }
  .page { padding: 4px 16px 120px; }
  .tabbar { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(10px + env(safe-area-inset-bottom)); margin: 0; justify-content: space-between; background: rgba(255, 255, 255, .78); box-shadow: 0 0 0 1px var(--line), 0 12px 24px -6px rgba(27, 27, 31, .2); }
  .tab { flex: 1; flex-direction: column; justify-content: center; gap: 3px; height: 56px; padding: 0; font: 500 11px var(--body); }
  .tab.on { font-weight: 600; }
  .tab-pill { height: 56px; }
  .tab .dot { top: 6px; left: calc(50% + 4px); }
  body.unit-open .tabbar { transform: translateY(140%); }
  .tabbar { transition: transform .35s var(--spring); }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .hero-in { min-height: 190px; padding: 20px; }
  .hero h1 { font-size: 28px; }
  .hero-pic { width: 200px; right: -42px; top: 14px; }
  .hero-text h1 { max-width: 66%; }
  .status-pill { font-size: 13px; }
  .figure { padding: 14px 16px; }
  .figure b { font-size: 28px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .carousel .tile { width: 196px; }
  .tile-pic { height: 124px; }
  .u-main { grid-template-columns: minmax(0, 1fr); margin-top: -18px; padding: 0 18px 16px; }
  .u-pic { order: -1; }
  .u-pic img { max-height: 160px; margin: 0 auto; }
  .u-name { font-size: 27px; }
  .map-page { height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); }
  .map-float { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.unit-open .toast { bottom: 24px; }
  .sheet { align-items: flex-end; padding: 0; }
  .sheet-card { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: var(--r-card) var(--r-card) 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); animation: up .42s var(--spring); }
  .sheet-card.small { width: 100%; }
  .gauge { width: 140px; height: 140px; }
  .gauge .val b { font-size: 32px; }
  .gauge-row { gap: 16px; }
  .battery > b { width: 78px; font-size: 27px; }
  .page-head h1 { font-size: 30px; }
  .lc-power b { font-size: 46px; }
}
@media (max-width: 380px) {
  .lockup { height: 26px; }
  .tiles { gap: 10px; }
  .tile-pic { height: 108px; }
  .tile-body { padding: 12px; }
}
@media (max-width: 330px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
}
@keyframes up { from { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ══ CPMS ══════════════════════════════════════════════════════════════════ */
.iev-lockup { color: var(--ink); }
.brand .iev-lockup { --lockup-h: 32px; }
.splash-name { opacity: 0; transform: translateY(12px); animation: in-name .7s ease-out 1.75s forwards; height: auto; }
.splash-name .iev-lockup { --lockup-h: 38px; }
.splash-name .iev-mark { display: none; }

/* sign-in, first account, invitation */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(900px 500px at 80% -10%, rgba(232, 184, 74, .18), transparent 60%), var(--bg); }
.auth-card { width: min(420px, 100%); gap: 18px; padding: 28px; }
.auth-card .iev-lockup { --lockup-h: 41px; align-self: flex-start; }
.auth-card h1 { font: 700 28px/1.12 var(--head); letter-spacing: -.03em; margin: 4px 0 0; }
.err { color: var(--fail); font-size: 13px; font-weight: 600; }

/* states */
.tag.charging { background: var(--gold); color: var(--gold-ink); }
.tag.charging .i { fill: currentColor; }
.tag.available { background: var(--pass-tint); color: var(--pass); }
.tag.faulted { background: var(--fail-tint); color: var(--fail); }
.tag.pending, .tag.warn { background: var(--warn-tint); color: var(--warn); }
.tag.reserved { background: var(--gold-tint); color: var(--gold-deep); }
.sdot.available::after { background: var(--pass); }
.sdot.faulted::after { background: var(--fail); }
.sdot.pending::after { background: var(--warn); }
.sdot.charging::after { background: var(--gold); }
.sdot.charging::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(232, 184, 74, .35); animation: pulse 1.4s ease-out infinite; }

/* charger tiles: the picture is tall */
.tile-pic.charger img { inset: 14px 14px 4px; width: calc(100% - 28px); height: calc(100% - 18px); }
.tile.charging { box-shadow: 0 0 0 1.5px var(--gold), 0 10px 30px -12px rgba(232, 184, 74, .5); }
.tile.charging .tile-pic { background: linear-gradient(135deg, rgba(232, 184, 74, .42), var(--gold-tint)); }
.tile.faulted .tile-pic { background: linear-gradient(135deg, var(--fail-tint), var(--surface2)); }
.tile.offline .tile-pic, .tile.pending .tile-pic, .tile.unavailable .tile-pic { background: linear-gradient(135deg, var(--surface2), rgba(238, 238, 235, .5)); }
.tile.offline .tile-pic img, .tile.pending .tile-pic img { filter: grayscale(1); opacity: .7; }
.tile-pic .kw { position: absolute; top: 10px; right: 10px; font: 600 12px var(--head); color: var(--soft); background: rgba(255, 255, 255, .85); height: 26px; padding: 0 9px; border-radius: 9px; display: inline-flex; align-items: center; }
.cons-dots { display: flex; gap: 4px; margin-top: 6px; }
.cons-dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--off); }
.cons-dots i.available { background: var(--pass); }
.cons-dots i.charging { background: var(--gold); }
.cons-dots i.faulted { background: var(--fail); }
.cons-dots i.reserved { background: var(--gold-deep); }
.add-tile { align-items: center; justify-content: center; gap: 10px; min-height: 230px; border: 1.5px dashed rgba(27, 27, 31, .18); box-shadow: none; background: transparent; color: var(--soft); font: 600 15px var(--head); cursor: pointer; }
.add-tile:hover { background: var(--shell); box-shadow: none; }
.add-tile .circle-ic { width: 54px; height: 54px; background: var(--gold); color: var(--gold-ink); }

/* home */
.hero-pic.charger { width: 170px; right: 26px; top: 14px; transform: rotate(-4deg); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.bars .b i { width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: var(--gold); min-height: 3px; transition: height .5s ease; }
.bars .b.today i { background: var(--ink); }
.bars .b span { font: 500 10px var(--body); color: var(--mute); white-space: nowrap; }
.bars .b:hover i { background: var(--gold-deep); }
.live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }

/* a station */
.u-pic.charger img { max-height: 250px; }
.u-pic.offline img, .u-pic.pending img { filter: grayscale(1); opacity: .7; }
.u-pic.charging::before { content: ""; position: absolute; left: 22%; right: 22%; bottom: 4%; height: 40%; border-radius: 50%; background: rgba(232, 184, 74, .45); filter: blur(26px); }
.u-hero.charging { background: linear-gradient(180deg, rgba(232, 184, 74, .45), var(--gold-tint)); }
.u-hero.faulted { background: linear-gradient(180deg, var(--fail-tint), var(--cream) 55%, var(--surface)); }
.u-hero.offline, .u-hero.pending { background: linear-gradient(180deg, var(--surface2), var(--surface)); }
.u-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.facts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.conn { gap: 12px; }
.conn.charging { box-shadow: 0 0 0 1.5px var(--gold), 0 14px 34px -14px rgba(232, 184, 74, .6); }
.conn.faulted { box-shadow: 0 0 0 1.5px rgba(178, 58, 58, .45), var(--shadow); }
.conn-head { display: flex; align-items: center; gap: 12px; }
.conn-no { width: 44px; height: 44px; border-radius: 14px; background: var(--surface2); display: flex; align-items: center; justify-content: center; font: 700 18px var(--head); flex: none; }
.conn.charging .conn-no { background: var(--gold); color: var(--gold-ink); }
.conn-head .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.conn-head .txt b { font: 600 16px var(--head); }
.conn-head .txt span { font-size: 12px; color: var(--mute); }
.conn-power { display: flex; align-items: baseline; gap: 6px; }
.conn-power b { font: 700 44px/1 var(--head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.conn-power .u { font: 600 16px var(--head); color: var(--mute); }
.conn-power .side { margin-left: auto; text-align: right; font: 600 14px/1.4 var(--head); font-variant-numeric: tabular-nums; color: var(--soft); }
.conn-idle { font: 500 14px var(--body); color: var(--soft); padding: 4px 0; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mini-stats > div { padding: 10px 12px; border-radius: 14px; background: var(--surface2); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-stats b { font: 600 16px var(--head); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-stats span { font: 500 11px var(--body); color: var(--mute); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.gold-soft { background: var(--gold-tint); border-color: rgba(201, 150, 42, .35); color: var(--gold-ink); }

/* details, connection */
.kv { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); gap: 10px 14px; font-size: 14px; }
.kv > span { color: var(--mute); }
.kv > b { font-weight: 600; word-break: break-word; }
.copy-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); }
.copy-row code { flex: 1; min-width: 0; font: 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; }
.copy-row .round { width: 36px; height: 36px; background: var(--surface); }
.secret { background: var(--gold-tint); box-shadow: inset 0 0 0 1px rgba(232, 184, 74, .55); }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--soft); }

/* tables: configuration, cards, people */
.tbl-wrap { overflow: auto; border-radius: var(--r-inner); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); max-width: 100%; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { position: sticky; top: 0; background: var(--surface); text-align: left; font: 600 10px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); padding: 12px 14px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.cell-btn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cell-btn:hover, .tbl a.cell-link:hover { text-decoration: underline; }
.tbl a.cell-link { color: inherit; text-decoration: none; }
.tbl tr.click:hover td { background: rgba(27, 27, 31, .025); }
.tbl td.mono, .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl .grp td { background: var(--surface2); font: 600 12px var(--head); color: var(--soft); padding: 8px 14px; }
.tbl input.inl { font: 13px ui-monospace, "SF Mono", Menlo, monospace; width: 100%; min-width: 120px; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 6px 8px; color: var(--ink); }
.tbl input.inl:hover { border-color: var(--line); }
.tbl input.inl:focus { border-color: var(--gold-deep); background: #fff; outline: 0; }
.tbl input.inl.dirty { background: var(--gold-tint); }

/* frame log */
.frames { display: flex; flex-direction: column; }
.frame { display: grid; grid-template-columns: 74px 46px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; border-radius: 12px; font-size: 13px; }
.frame:hover { background: var(--shell); }
.frame + .frame { box-shadow: 0 -1px 0 var(--line); border-radius: 0; }
.frame .tm { font: 500 12px var(--body); color: var(--mute); font-variant-numeric: tabular-nums; }
.frame .dir { font: 700 10px var(--body); letter-spacing: .06em; text-transform: uppercase; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; }
.frame .dir.in { background: var(--gold-tint); color: var(--gold-deep); }
.frame .dir.out { background: var(--ink); color: #fff; }
.frame .what { min-width: 0; display: flex; gap: 8px; align-items: baseline; }
.frame .what b { font-weight: 600; white-space: nowrap; }
.frame .what span { font: 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame .kind { font: 600 11px var(--body); color: var(--mute); }
.frame .kind.err { color: var(--fail); }
pre.json { margin: 0; padding: 14px; border-radius: 16px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; overflow: auto; max-height: 420px; white-space: pre-wrap; word-break: break-word; }
textarea.code { font: 13px/1.5 ui-monospace, "SF Mono", Menlo, monospace !important; min-height: 140px !important; }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span2 { grid-column: 1 / -1; }
.field small { font-size: 12px; color: var(--mute); }
.radio-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.radio-tile { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.radio-tile input { position: absolute; opacity: 0; pointer-events: none; }
.radio-tile img { width: 44px; height: 60px; object-fit: contain; flex: none; }
.radio-tile b { display: block; font: 600 15px var(--head); }
.radio-tile span { font-size: 12px; color: var(--mute); }
.radio-tile:has(input:checked) { background: var(--gold-tint); box-shadow: inset 0 0 0 1.5px var(--gold); }
.radio-tile:has(input:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.con-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 110px 40px; gap: 8px; align-items: center; }
.con-row .n { font: 700 15px var(--head); color: var(--mute); text-align: center; }
.con-row input, .con-row select { min-height: 44px !important; }
.period-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 8px; align-items: end; }
.period-row.weekly { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr) 40px; }
@media (max-width: 560px) {
  /* a phone: the day on its own line, then time, limit and remove */
  .period-row.weekly { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 40px; }
  .period-row.weekly > :first-child { grid-column: 1 / -1; }
  .period-row input[type="time"] { padding-left: 10px; padding-right: 6px; }
}

/* session chart */
.legend { display: flex; gap: 14px; flex-wrap: wrap; font: 500 12px var(--body); color: var(--soft); }
.legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.chart.tall { height: 230px; }
.chart .y.r { left: auto; right: 0; }
.chart.both { padding-right: 34px; }
.chart .hover-line { stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .25; }
.chart-tip { position: absolute; pointer-events: none; padding: 8px 10px; border-radius: 12px; background: var(--ink); color: #fff; font: 600 12px/1.4 var(--body); white-space: nowrap; transform: translate(-50%, -110%); font-variant-numeric: tabular-nums; }

/* sessions page */
.srow .sq.done { background: var(--surface2); color: var(--soft); }
.srow .sq.warn { background: var(--warn-tint); color: var(--warn); }
.srow .money { font: 600 15px var(--head); color: var(--ink); font-variant-numeric: tabular-nums; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters select.pick { max-width: none; min-height: 42px; border-radius: 999px; padding-left: 16px; }

/* chargers map */
.map-box { height: 520px; border-radius: var(--r-card); overflow: hidden; box-shadow: 0 0 0 1px var(--line), var(--shadow); isolation: isolate; }
.map-box.small { height: 260px; }
.pin.charging .ring { box-shadow: inset 0 0 0 2.5px var(--gold), 0 3px 8px rgba(0, 0, 0, .18); }
.pin.available .ring { box-shadow: inset 0 0 0 2.5px var(--pass), 0 3px 8px rgba(0, 0, 0, .18); }
.pin.faulted .ring { box-shadow: inset 0 0 0 2.5px var(--fail), 0 3px 8px rgba(0, 0, 0, .18); }
.pin.charging::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: rgba(232, 184, 74, .3); }
.pin .ring img { width: 20px; height: 28px; }
.pin.pick .ring { background: var(--gold); box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }

/* more */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.menu-card { flex-direction: row; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); transition: transform .2s var(--spring); }
.menu-card:hover { transform: translateY(-2px); }
.menu-card .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.menu-card .txt b { font: 600 16px var(--head); }
.menu-card .txt span { font-size: 13px; color: var(--mute); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font: 600 14px var(--head); color: var(--soft); text-decoration: none; padding: 6px 4px; }
.back-link:hover { color: var(--ink); }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 20px; color: var(--soft); }
.empty .circle-ic { width: 64px; height: 64px; }
.empty .circle-ic .i { font-size: 26px; }
.empty b { font: 600 18px var(--head); color: var(--ink); }

@media (max-width: 760px) {
  .hero-pic.charger { width: 112px; right: 10px; top: 18px; }
  .facts.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid, .radio-tiles { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv > b { margin-bottom: 8px; }
  .frame { grid-template-columns: 62px 40px minmax(0, 1fr); }
  .frame .kind { display: none; }
  .map-box { height: 420px; }
  .conn-power b { font-size: 38px; }
  .tab { font-size: 10.5px; }
}

/* pay at the charger (public page) */
.pay-page { max-width: 520px; margin: 0 auto; padding: 18px 16px 60px; display: flex; flex-direction: column; gap: 16px; }
.pay-top { padding: 4px 2px; }
.pay-top .iev-lockup { --lockup-h: 32px; }
.pay-hero .hero-in { min-height: 180px; }
.pay-pic { position: absolute; right: 8px; top: 14px; width: 110px; transform: rotate(-4deg); }
.pay-hero .hero-text h1 { max-width: 64%; font-size: 28px; }
.pay-h { font: 700 26px/1.15 var(--head); margin: 0 0 6px; }

/* second batch */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; }
.hour-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px; border-radius: 14px; background: var(--surface2); }
.hour-row input[type="time"] { font: 500 14px var(--body); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: #fff; }
.days { display: flex; gap: 4px; flex-wrap: wrap; }
.day-chip { position: relative; }
.day-chip input { position: absolute; opacity: 0; }
.day-chip span { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 999px; background: #fff; font: 600 12px var(--body); color: var(--soft); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.day-chip input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.day-chip input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.qr-sticker { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px; border-radius: var(--r-inner); background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.qr-box { width: 220px; height: 220px; }
.qr-box svg { width: 100%; height: 100%; }
.qr-sticker b { font: 700 18px var(--head); }
.qr-sticker span { font-size: 13px; color: var(--mute); }
.statement { background: #fff; border-radius: var(--r-inner); padding: 22px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; }
.statement h2 { font: 700 24px var(--head); margin: 6px 0 0; }
.stm-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.stm-issuer { text-align: right; font-size: 12px; color: var(--soft); }
.stm-total { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 4px 18px; font-size: 14px; }
.stm-total span { color: var(--mute); text-align: right; }
.stm-total b { text-align: right; font-variant-numeric: tabular-nums; }
.stm-total b.big { font: 700 20px var(--head); }
.print-body { background: #fff; padding: 24px; }
.print-body .statement { box-shadow: none; }
@media print { .print-body { padding: 0; } }
/* checkboxes and radios inside a form field keep their own size */
.field .check input, .check input[type="checkbox"], .check input[type="radio"] { width: 16px; height: 16px; min-height: 0; padding: 0; border: 0; flex: none; background: none; }
.check-grid .check { align-items: center; }
.check-grid .check input { margin-top: 0; }
.hour-row input[type="time"] { width: auto; min-height: 38px; padding: 0 10px; flex: none; }

/* two-step sign-in */
.tfa-qr { width: 196px; max-width: 70%; margin: 0 auto; padding: 10px; background: #fff; border-radius: var(--r-inner); box-shadow: 0 0 0 1px var(--line); }
.tfa-qr svg { display: block; width: 100%; height: auto; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recovery-codes code { padding: 8px 10px; border-radius: 10px; background: var(--surface2); font-size: 15px; letter-spacing: .04em; text-align: center; }

/* service tickets */
.note-row { padding: 10px 12px; border-radius: var(--r-inner); background: var(--surface2); }
.note-row div { white-space: pre-wrap; overflow-wrap: anywhere; }
