@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/inter.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/inter-tight.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/lora.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/noto-sans.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root{--g1:#0A95D3;--g2:#25549F;--g3:#3E2657;--cyan:#209fe1;--navy:#25549f;--ink:#1d2433;--muted:#5d6678;--bg:#eef2f8;--card:#fff;--red:#ff1744;--ok:#16a34a;--warn:#f59e0b;--dark:#1f242e;--grad:linear-gradient(90deg,#1f9ad6,#2f5aa6 55%,#4a2a5e)}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--ink);font-family:"Avenir Next","Noto Sans","Segoe UI",system-ui,sans-serif;font-size:14px}
button{font:inherit;cursor:pointer}
header{display:flex;align-items:center;gap:18px;padding:12px 22px;background:linear-gradient(100deg,#0A95D3 0%,#25549F 55%,#3E2657 100%);color:#fff;position:sticky;top:0;z-index:20;box-shadow:0 4px 18px rgba(20,30,60,.25)}
header .brand{display:flex;align-items:center;gap:12px}header img.q{height:34px}header .div{width:1px;height:34px;background:rgba(255,255,255,.35)}
header img.maa{height:44px;width:44px;border-radius:50%;background:#fff;padding:2px}
header h1{font-size:18px;margin:0;font-weight:700;letter-spacing:.2px}header .sub{font-size:12px;opacity:.85}
header .sp{flex:1}.clock{font-variant-numeric:tabular-nums;background:rgba(255,255,255,.14);padding:6px 12px;border-radius:20px;font-size:13px}
.seg{display:flex;background:rgba(255,255,255,.16);border-radius:20px;padding:3px}.seg button{border:0;background:none;color:#fff;padding:5px 11px;border-radius:16px;font-size:12px}.seg button.on{background:#fff;color:var(--g2);font-weight:700}
.tag{font-size:11px;background:rgba(255,255,255,.18);padding:4px 9px;border-radius:12px}
main{display:grid;grid-template-columns:minmax(520px,1fr) 400px 360px;gap:18px;padding:18px 22px;align-items:start}
@media (max-width:1300px){main{grid-template-columns:1fr 400px}.controls{grid-column:1/-1}}
@media (max-width:900px){main{grid-template-columns:1fr}}
.card{background:var(--card);border-radius:24px;box-shadow:0 6px 24px rgba(30,50,90,.08);padding:16px}
.card h2{font-size:15px;margin:0 0 10px;display:flex;align-items:center;gap:8px}.card h2 small{font-weight:400;color:var(--muted);font-size:12px}
#map{width:100%;height:auto;display:block;border-radius:18px;background:#cfe6c1}
.legend{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;font-size:12px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:5px}.dot{width:9px;height:9px;border-radius:50%}
/* phone */
.phonewrap{display:flex;flex-direction:column;align-items:center;gap:10px}
.persona{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.persona button{border:1px solid #cdd6e6;background:#fff;border-radius:16px;padding:5px 10px;font-size:12px}.persona button.on{background:var(--g2);color:#fff;border-color:var(--g2)}
.phone{width:390px;height:800px;border-radius:46px;background:#0d1117;padding:12px;box-shadow:0 18px 50px rgba(20,30,60,.35);position:relative}
.screen{width:100%;height:100%;border-radius:36px;background:#f5f6fa;overflow:hidden;position:relative;display:flex;flex-direction:column}
.sbar{height:34px;display:flex;justify-content:space-between;align-items:center;padding:0 26px;font-size:13px;font-weight:600;color:#111}
.nav{height:46px;display:flex;align-items:center;justify-content:center;position:relative;font-weight:700;font-size:16px;color:#2b3242}.nav .back{position:absolute;left:18px;font-size:22px;border:0;background:none;color:#1d2a4a}
.ctx{background:var(--dark);color:#fff;display:flex;align-items:center;gap:10px;padding:12px 16px;font-weight:700;font-size:13.5px}.ctx img{width:30px;height:30px;border-radius:50%;background:#fff}.ctx .sw{margin-left:auto;color:#5cb8ee;font-weight:500;font-size:12px}
.body{flex:1;overflow:auto;padding:12px 14px 90px}
.tabbar{position:absolute;bottom:0;left:0;right:0;height:64px;background:#fff;border-top:1px solid #e6e9f0;display:flex;justify-content:space-around;align-items:center;font-size:11px;color:#3a4255}.tabbar div{display:flex;flex-direction:column;align-items:center;gap:2px}.tabbar .on{color:var(--cyan);font-weight:700}
.fab{position:absolute;right:14px;bottom:76px;width:62px;height:62px;border-radius:50%;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center}.fab img{width:50px;height:50px}
.vcard{background:#fff;border-radius:16px;padding:12px 14px;margin-bottom:9px;display:flex;align-items:center;gap:12px;box-shadow:0 1px 3px rgba(0,0,0,.05);cursor:pointer;transition:transform .15s}.vcard:hover{transform:translateY(-1px)}
.vicon{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:19px;background:#e9f4fb}
.vcard b{font-size:14px}.vcard .meta{font-size:11.5px;color:var(--muted);margin-top:2px}.vcard .chev{margin-left:auto;color:#2b3242;font-size:18px}
.chip{font-size:11px;padding:3px 8px;border-radius:10px;font-weight:700;white-space:nowrap}.c-locked{background:#eef0f5;color:#465068}.c-open{background:#dcfce7;color:#15803d}.c-moving{background:#fef3c7;color:#b45309}.c-off{background:#fee2e2;color:#b91c1c}
.h1{font-size:22px;font-weight:800;margin:8px 2px 12px;line-height:1.2}.p{color:var(--muted);font-size:13px;line-height:1.45;margin:0 2px 12px}
.btn{width:100%;border:0;border-radius:28px;padding:14px;font-weight:700;color:#fff;background:var(--grad);font-size:15px;margin-top:8px}.btn.red{background:var(--red)}.btn.ghost{background:#fff;color:var(--g2);border:2px solid var(--cyan)}.btn:disabled{opacity:.45;cursor:not-allowed}
.field{background:#fff;border:1px solid #dfe4ee;border-radius:14px;padding:12px 14px;width:100%;font:inherit;margin-bottom:10px}
.lbl{font-size:12px;color:var(--muted);margin:4px 2px 5px}
.sugg{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.sugg button{border:1px solid #cfe0f1;background:#f2f8fd;color:#24507f;border-radius:14px;padding:5px 9px;font-size:11.5px}
.toggle{display:flex;gap:10px;align-items:center;font-size:13px;margin:6px 2px 12px}.tg{width:48px;height:28px;border-radius:14px;background:#cbd2de;position:relative;flex:none;cursor:pointer;transition:.2s}.tg::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:.2s}.tg.on{background:var(--cyan)}.tg.on::after{left:23px}
.alerticon{width:92px;height:92px;border-radius:50%;background:linear-gradient(135deg,#4aa8ea,#6fb8ee);display:flex;align-items:center;justify-content:center;font-size:40px;margin:6px 0 4px}
.steps{background:#fff;border-radius:16px;padding:6px 14px;margin:10px 0}.step{display:flex;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #eef1f6;font-size:13px}.step:last-child{border:0}.step .s{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;flex:none;background:#e5e9f0;color:#7a8396}.step.ok .s{background:#16a34a;color:#fff}.step.run .s{background:#f59e0b;color:#fff;animation:pulse 1s infinite}.step.bad .s{background:#dc2626;color:#fff}
@keyframes pulse{50%{transform:scale(1.18)}}
.pinbox{background:var(--dark);color:#fff;border-radius:16px;padding:14px;text-align:center;margin:10px 0}.pinbox .pin{font-size:27px;font-weight:800;letter-spacing:3px;font-variant-numeric:tabular-nums}.pinbox small{color:#9fb3c8}
.camcard{background:#16202e;color:#fff;border-radius:16px;padding:14px}.camcard .live{color:#7bd88f;font-size:11px;font-weight:700}.camcard .plate{font-size:30px;font-weight:800;letter-spacing:2px;margin:4px 0}
.banner{position:absolute;top:40px;left:10px;right:10px;background:rgba(25,30,40,.96);color:#fff;border-radius:18px;padding:12px 14px;display:flex;align-items:center;gap:10px;z-index:5;box-shadow:0 8px 20px rgba(0,0,0,.3);animation:drop .35s}.banner img{width:38px;height:38px;border-radius:50%}@keyframes drop{from{transform:translateY(-30px);opacity:0}}
.qanim{width:96px;height:96px;margin:6px auto 2px;display:block}
/* controls */
.controls .grp{border-top:1px solid #eef1f6;padding:12px 0}.controls .grp:first-of-type{border:0;padding-top:0}
.controls h3{font-size:12px;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);margin:0 0 8px}
.row{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.cbtn{border:1px solid #d5dcea;background:#fff;border-radius:12px;padding:7px 10px;font-size:12.5px}.cbtn:hover{border-color:var(--cyan)}.cbtn.pri{background:var(--grad);color:#fff;border:0;font-weight:700}.cbtn.scn{background:linear-gradient(90deg,#ff4d6d,#c9184a);color:#fff;border:0;font-weight:700;width:100%;padding:11px;font-size:13.5px}
input.plate{font:700 16px/1 "Avenir Next","Noto Sans",sans-serif;letter-spacing:2px;text-transform:uppercase;width:120px;padding:8px 10px;border:2px solid #222;border-radius:8px;background:#fffbe6}
select,.controls input[type=text]{border:1px solid #d5dcea;border-radius:10px;padding:7px 8px;font:inherit;font-size:12.5px;background:#fff}
.keypad{display:grid;grid-template-columns:repeat(3,48px);gap:6px;margin-top:6px}.keypad button{height:40px;border-radius:12px;border:1px solid #d5dcea;background:#f9fbfe;font-weight:700}
.net{display:flex;justify-content:space-between;align-items:center;padding:4px 0;font-size:13px}
.result{font-size:12px;color:var(--muted);margin-top:6px;min-height:16px}
/* bottom */
.bottom{padding:0 22px 30px}.tabs{display:flex;gap:6px;margin-bottom:10px;flex-wrap:wrap}.tabs button{border:0;background:#fff;border-radius:16px;padding:8px 14px;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.06)}.tabs button.on{background:var(--g2);color:#fff}
table{width:100%;border-collapse:collapse;font-size:12.5px}th{text-align:left;color:var(--muted);font-weight:600;padding:6px 8px;border-bottom:1px solid #e6e9f0;position:sticky;top:0;background:#fff}td{padding:6px 8px;border-bottom:1px solid #f0f2f7;vertical-align:top}
.logwrap{max-height:340px;overflow:auto}.L{font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:8px;color:#fff}.L-device{background:#0A95D3}.L-edge{background:#7c3aed}.L-cloud{background:#25549F}.L-vendor{background:#0f766e}.L-audit{background:#c2410c}.L-net{background:#64748b}
tr.new{animation:flash 1.2s}@keyframes flash{from{background:#fff7d6}}
.ok{color:#15803d;font-weight:700}.bad{color:#b91c1c;font-weight:700}.mono{font-family:ui-monospace,Menlo,monospace;font-size:11.5px}
.foot{color:var(--muted);font-size:12px;padding:0 22px 26px}
@media (max-width:700px){header{flex-wrap:wrap;gap:10px;padding:10px 12px}header h1{font-size:15px}header .sub,.tag{display:none}header img.q{height:24px}header img.maa{height:34px;width:34px}main{padding:12px}.phone{transform:scale(.92);transform-origin:top center;margin-bottom:-60px}.bottom{padding:0 12px 20px}}

:root{--navy:#0d2238;--bg:#f4f5f2;--ink:#3b444d;--muted:#5a646e;--maa-blue:#1f97d4;--maa-blue-light:#68b4ee;--maa-dark:#1d2531;--maa-ink:#3b444d;--maa-muted:#56657a;--maa-line:#e1e5ea;--maa-bg:#f6f6f9;--maa-surface:#fff;--maa-grad:linear-gradient(90deg,#1f97d4,#3e2658)}
body{font-family:Inter,system-ui,sans-serif} h2,h3,.status-chips{font-family:"Inter Tight",Inter,system-ui,sans-serif}
.hero{position:relative;overflow:hidden;min-height:240px;display:flex;align-items:center;padding:26px 40px;background:#0d2238;box-shadow:none}
.hero-photo,.hero .scrim{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.hero .scrim{background:linear-gradient(90deg,rgba(13,34,56,.94),rgba(13,34,56,.68) 55%,rgba(13,34,56,.12))}
.hero-content{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:2px 24px;align-items:center;width:100%}
.hero .clubs{display:flex;gap:8px;grid-row:span 2}.hero .clubs img{width:58px;height:58px;object-fit:contain;border-radius:50%;background:#fff;padding:3px}
.hero h1{font:500 clamp(32px,4vw,54px)/1 Lora,Georgia,serif}.hero .sub{grid-column:2;margin:6px 0;font-size:14px}.hero small{grid-column:2;margin-top:12px;color:#e1e5ea}.status-chips{grid-row:1 / span 2;grid-column:3;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.status-chips .tag{display:inline-block}.poweredby{position:absolute;bottom:12px;right:16px;border:1px solid #ffffff50;background:#0d2238c9;color:white;border-radius:20px;padding:3px 9px;font-size:11px}
.ic{display:inline-block;width:1.25em;height:1.25em;flex:none;vertical-align:-.2em;background:currentColor;mask:var(--ic) center/contain no-repeat}
main{grid-template-columns:minmax(0,1fr) minmax(0,438px) minmax(255px,330px)}.card{min-width:0;border:1px solid #0d223815;border-radius:18px;box-shadow:0 4px 12px #0d223809}
.phonewrap{min-width:0}.phone{width:min(100%,434px);height:916px;padding:10px;transform:none;margin:0;background:#141c27;box-shadow:0 16px 32px #0d223828}
.screen{font-family:"Droid Sans","Noto Sans",system-ui,sans-serif;background:var(--maa-bg);color:var(--maa-ink)}
.sbar,.nav,.ctx,.tabbar{flex:none}.nav{height:52px;font-size:18px;background:white;border-bottom:1px solid var(--maa-line)}
.sbar{background:white}.nav .back{font-size:18px;padding:8px}.ctx{background:var(--maa-dark);font-size:13px}.ctx .sw{border:0;background:none;color:var(--maa-blue-light);white-space:nowrap}
.body{padding:16px 16px 22px;overscroll-behavior:contain}.tabbar{position:static;height:73px}.tabbar button{display:grid;justify-items:center;gap:4px;background:none;border:0;color:var(--maa-muted);min-width:60px;font-size:12px;padding:7px}.tabbar button.on{color:var(--maa-blue)}.tabbar .ic{width:23px;height:23px}
.vcard{width:100%;border:0;text-align:left;color:var(--maa-ink);border-radius:14px;background:var(--maa-surface);box-shadow:0 4px 8px rgba(59,69,77,.1);min-height:54px}.vcard:hover{transform:none}.vcard b{font-size:14px}.vicon{flex:none;color:#166895}.vicon .ic{width:23px;height:23px}.chip{white-space:normal}.meta{color:var(--maa-muted);font-size:12px}
.h1{font-size:18px}.btn{background:var(--maa-grad);border-radius:26px}.btn.red{background:#c82445}.btn.ghost{border:1px solid var(--maa-blue);color:#166895}.lbl{display:block;font-weight:600}.field{border-color:var(--maa-line)}.tg{border:0}.alerticon{color:#102438;width:70px;height:70px;margin:8px auto 18px;font-size:32px}.sugg button[aria-pressed=true]{background:var(--maa-dark);color:white}.steps{padding:0;background:transparent}.step{background:white;border-radius:14px;padding:10px 12px;margin:8px 0;box-shadow:0 4px 8px rgba(59,69,77,.1)}
.venue-photo{margin:0 0 12px;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 4px 8px rgba(59,69,77,.1)}.venue-photo img{display:block;width:100%;height:168px;object-fit:cover}.venue-photo figcaption{padding:7px 10px;font-size:12px}.phone-map{width:100%;max-height:620px;object-fit:contain;background:#0d2238}
#map{height: min(62vh,620px);background:#152838;touch-action:none;cursor:grab}#map:active{cursor:grabbing}.map-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.map-tools button{background:white;border:1px solid #d5dcea;padding:6px;border-radius:8px;color:var(--navy)}#map-status{font-size:12px;color:var(--navy);margin:8px 0}.map-label{fill:white;paint-order:stroke;stroke:#17232b;stroke-width:3px;font-size:var(--map-label-size,13px);font-weight:700;pointer-events:none}.track,.jetty,.fence,.building{fill:none;stroke:#faf2d0;stroke-width:2}.jetty{stroke:#a7e8fa;stroke-width:4}.fence{stroke:#f6bd76;stroke-dasharray:5 3}.building{fill:#d5ebff33;stroke:#9fe3ff}.likely{opacity:.7}.inferred{stroke-dasharray:4 3}.device-pin{cursor:pointer}.device-pin foreignObject{color:white;pointer-events:none;line-height:10px;font-size:9px}.device-pin .bc{fill-opacity:.87;stroke:#fff;stroke-width:1.4}.map-link{stroke-width:3;fill:none;pointer-events:none}
#map-credit{display:block;margin:7px 0;font-size:11px}.film-grid,.backend-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:12px}.film-grid figure{margin:0}.film-grid video,.backend-grid img{display:block;width:100%;border-radius:9px}.film-grid figcaption{padding:5px 0}.backend-card,.unavailable{padding:12px;border:1px solid #e1e5ea;border-radius:12px;margin-bottom:10px;background:white}.backend-card.ok{border-top:4px solid #16a34a}.backend-card.warn{border-top:4px solid #f59e0b}.backend-card.err,.unavailable{border-color:#f0abab;background:#fff3f3;color:#992528}.backend-card pre{white-space:pre-wrap;overflow-wrap:anywhere}.table-scroll{overflow:auto}
#committee-toast{position:fixed;right:18px;bottom:18px;max-width:min(400px,90vw);z-index:30;padding:12px 16px;background:#0d2238;color:white;box-shadow:0 4px 20px #0d223866;border-radius:12px;pointer-events:none}.sample-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.sample-grid button{background:white;border:1px solid var(--maa-line);border-radius:12px;padding:5px}.sample-grid img{width:100%;height:85px;object-fit:cover;border-radius:8px}.compound{position:relative}.compound img{width:100%;display:block;border-radius:12px}.hotspots{position:absolute;inset:12% 8%;display:grid;grid-template-columns:repeat(6,1fr);gap:4px;align-items:center}.hotspots button{justify-self:center;border-radius:50%;border:1px solid white;background:#0d2238e8;color:white;width:28px;height:28px;padding:0}.hotspots button[aria-pressed=true]{background:#087a44}.histogram{display:flex;gap:4px;justify-content:stretch;align-items:end;height:92px;border-bottom:1px solid var(--maa-line);margin:12px 0}.histogram span{width:10%;background:#68b4ee;border-radius:4px 4px 0 0}fieldset label{display:block}fieldset input{width:100%;accent-color:#1f97d4}.vcard input[type=file]{max-width:53%;margin-left:auto}
@media(max-width:1300px){main{grid-template-columns:minmax(0,1fr) minmax(0,438px)}.controls{grid-column:1/-1}}
@media(max-width:870px){main{grid-template-columns:minmax(0,1fr)}.hero-content{grid-template-columns:1fr;gap:10px}.hero .clubs,.hero .sub,.hero small,.status-chips{grid-area:auto;display:flex}.hero{padding:20px 16px 35px}.hero h1{font-size:36px}.hero .clubs img{width:44px;height:44px}}
.device-pin .pin-photo{pointer-events:none}.vicon{position:relative;overflow:hidden}.vicon .row-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hotspots button{touch-action:manipulation}
.screen .nav,.screen .sbar{background:var(--maa-bg)}.screen .ctx{min-height:78px}.screen .tabbar{height:87px;padding-bottom:13px}.screen .tabbar::after{content:"";position:absolute;bottom:8px;left:33%;width:34%;height:4px;border-radius:9px;background:#18242d}.screen[data-screen=sites] .vcard{min-height:45px;padding-block:8px}.screen[data-screen=sites] .body>.sugg{margin-bottom:16px}.screen[data-screen=sites] .sugg button{padding:9px 14px;background:white;border-color:var(--maa-line);border-radius:26px;color:var(--maa-ink);font-size:13px}.screen[data-screen=sites] .sugg button[aria-pressed=true]{background:var(--maa-grad);color:white}.screen[data-screen=override] .body{display:flex;flex-direction:column}.screen[data-screen=override] .body>*{flex-shrink:0}.screen[data-screen=override] .btn.red{margin-top:auto}.screen[data-screen=override] .toggle{margin-bottom:18px}
.dual-range{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:5px;padding-bottom:35px}.dual-range label:last-child{text-align:right}.dual-range input{position:absolute;left:0;bottom:0;height:28px;margin:0;appearance:none;background:none;pointer-events:none}.dual-range input::-webkit-slider-thumb{appearance:none;width:19px;height:19px;border-radius:50%;background:#1f97d4;border:2px solid white;box-shadow:0 1px 4px #293d54;pointer-events:auto;cursor:ew-resize}.dual-range input:focus-visible::-webkit-slider-thumb{outline:2px solid #0d2238}.range-track{position:absolute;bottom:11px;height:6px;left:0;right:0;border-radius:10px;background:#d2e9f7}fieldset{border:1px solid var(--maa-line);border-radius:10px;margin:8px 0}
.club-thumb{width:32px;height:32px;object-fit:contain;border-radius:50%}.vcard[data-club][aria-pressed=true]{outline:2px solid #1f97d4}
.hero .clock,.hero .tag,.hero .seg{background:#0d2238c4}.pass-card{min-height:215px;margin:0 0 12px;padding:18px;display:flex;flex-direction:column;gap:10px;align-items:flex-start;justify-content:center;background:white;border:1px solid var(--maa-line);border-radius:14px}.pass-card .ic{font-size:41px;color:#25549f}.pass-card strong{font-size:17px}.pass-card p{margin:0}.offline-banner{padding:12px;background:#faefda;border-radius:12px}

.live-auth, #live-token-form { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
#live-token-form[hidden], .live-auth button[hidden] { display: none; }
.live-auth img { width: 1.1rem; height: 1.1rem; vertical-align: middle; }
#live-auth-status:empty { display: none; }
.live-state { display: inline-block; border: 1px solid currentColor; border-radius: 1rem; padding: .15rem .55rem; text-transform: uppercase; }

.photo-slot { display:block;position:relative;overflow:hidden; }
.photo-slot img,.photo-slot .icon-tile { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.icon-tile { display:none;place-items:center;border-radius:9px;background:linear-gradient(145deg,#247bbf,#17356d);color:white; }
.icon-tile .ic { font-size:clamp(16px,4vw,42px); }
.stylised img[data-photo] { display:none!important; }
.stylised .icon-tile { display:grid; }
.venue-photo .photo-slot { height:168px; }
.vicon .photo-slot,.pin-size .photo-slot { position:absolute;inset:0; }
.pin-size foreignObject > .ic { display:block;width:100%;height:100%; }
.pin-size .photo-slot { border-radius:50%; }
.pin-size .icon-tile .ic { font-size:18px; }
.pin-size .icon-tile { border-radius:50%; }
.pin-motion { overflow:visible; }
.pin-motion svg { background:#132942;border-radius:50%; }
.pin-label span { display:inline-block;background:#0d2238d9;color:white;padding:4px 7px;border-radius:12px;font-size:11px;line-height:13px;white-space:nowrap; }
.device-pin:focus-visible { outline:none; }
.device-pin:focus-visible .bc { stroke:#38bdf8;stroke-width:3px;filter:drop-shadow(0 0 6px #38bdf8); }
#car,#platebubble { pointer-events:none; }
.film-preview,.cabin-frame { position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:#132942; }
.film-preview video,.cabin-frame video,.cabin-frame > .icon-tile,.film-preview > .icon-tile { position:absolute;inset:0;width:100%;height:100%;object-fit:contain; }
.hero > .icon-tile { position:absolute;inset:0; }
.stylised .film-preview video,.stylised .cabin-frame video,.stylised .q-cam-bg video { visibility:hidden; }
.cabin-frame .cabin-markers { position:absolute;inset:0;pointer-events:none; }
.cabin-scenarios,.cabin-photos { display:flex;gap:7px;flex-wrap:wrap;margin:8px 0; }
.cabin-scenarios button,.cabin-photos button,.camera-card button,.action-stage button,.cabin-lightbox button { background:white;color:#173453;border:1px solid #ccd9e7;border-radius:8px;padding:6px 9px;cursor:pointer; }
.cabin-scenarios button[aria-pressed=true] { background:#25549f;color:white; }
.cabin-photos button { padding:0;overflow:hidden; }
.cabin-photos .photo-slot { width:75px;height:49px; }
.cabin-lightbox { width:min(850px,94vw);border:0;border-radius:12px; }
.cabin-lightbox .photo-slot { aspect-ratio:16/10;margin-top:8px; }
.cabin-lightbox img { object-fit:contain; }
.sample-grid button .photo-slot { width:100%;aspect-ratio:4/3; }
.compound > .photo-slot { width:100%;aspect-ratio:16/9; }
.action-stage,.camera-card { box-sizing:border-box;border:1px solid #c8d7e6;border-radius:18px;padding:14px;background:#f7fafc;color:#10243a;box-shadow:0 14px 50px #10243a50; }
.action-stage { width:min(900px,96vw);text-align:center; }
.action-stage::backdrop,.cabin-lightbox::backdrop { background:#0f203b44; }
.action-stage > header,.camera-card > header { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px; }
.action-stage h2,.camera-card h3 { margin:0; }
.stage-art { min-height:100px;background:#162d45;border-radius:14px;overflow:hidden;display:grid;place-items:center;padding:12px; }
.stage-status { margin-bottom:4px;font-weight:700; }
.action-stage[data-stage-result=denied] .stage-status { color:#b91c1c; }
.stage-time { font-variant-numeric:tabular-nums;font-size:13px; }
.camera-card { position:fixed;inset:auto;margin:0;width:min(480px,95vw); }
.camera-card .q-cam-bg > * { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }
.camera-poster { display:none; }
.stylised .camera-poster { display:block; }
.q-cam-idle { position:absolute;left:12px;top:12px;background:#132942d9;color:white;padding:4px 8px;border-radius:12px; }
.pump-motion { background:linear-gradient(transparent,#2685c7);color:white;height:100%;display:grid;place-items:center; }
[data-phase=open] .pump-motion { animation:q-pump var(--phase-ms) ease both; }
@keyframes q-pump { from { clip-path:inset(85% 0 0) } }
.override-progress { padding:8px 0 14px; }
@media (max-width:700px) {
  .action-stage,.camera-card { inset:auto 0 0!important;margin:0;width:100%;max-width:none;border-radius:18px 18px 0 0;padding-bottom:max(16px,env(safe-area-inset-bottom)); }
}
.action-stage { max-height:calc(100dvh - 24px);overflow-y:auto; }
.stage-progress:not(:empty) { text-align:left;padding-top:12px; }
.stage-progress .q-steps { gap:7px; }
.map-device.action-focus .bc { stroke:#38bdf8;stroke-width:2.5px;animation:q-ring-pulse 2s infinite; }
@media (prefers-reduced-motion:reduce) {
  .map-device.action-focus .bc { animation:none; }
}

@media (min-width:1280px) {
  main { grid-template-columns:minmax(560px,1fr) minmax(0,438px) minmax(0,330px); }
  .controls { grid-column:auto; }
}
@media (min-width:1280px) and (max-width:1360px) {
  main { grid-template-columns:minmax(560px,1fr) 438px; }
  .controls { grid-column:1/-1; }
}
.stage-panes { display:grid;grid-template-columns:minmax(0,2.4fr) minmax(0,1fr);gap:12px;align-items:stretch; }
.stage-panes:has(.stage-film[hidden]) { grid-template-columns:1fr; }
.stage-film { margin:0;text-align:left;min-width:0; }
.stage-film video { display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#162d45;border-radius:14px; }
.stage-film figcaption { font-size:11px;color:#536476;margin-top:5px; }
.stage-art svg { max-height:275px; }
.action-stage[data-stage-result=denied] .stage-film video { filter:sepia(.5) saturate(1.8);box-shadow:inset 0 0 0 3px #b91c1c; }
.camera-card .q-cam-bg img { object-fit:contain; }
@media (max-width:700px) {
  #map { height:60vh; }
  .stage-panes { grid-template-columns:1fr;gap:8px; }
  .stage-art svg { height:110px; }
}
@media (prefers-reduced-motion:no-preference) {
  .stylised #film .icon-tile { animation:tile-appear .55s ease both; }
  @keyframes tile-appear { from { opacity:.45; } to { opacity:1; } }
}

/* Mel is mounted beside the periodically redrawn screen so the conversation keeps focus. */
.mel-sheet[hidden], .mel-float[hidden], .mel-listening[hidden]{display:none}
.mel-sheet,.mel-float{position:absolute;z-index:3}
.mel-float{right:22px;bottom:100px;display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffffae;border-radius:50%;background:var(--maa-grad);color:#fff;box-shadow:0 4px 14px #0d223840;cursor:pointer}
.mel-sheet{inset:10px 10px auto;display:flex;flex-direction:column;max-height:min(710px,calc(100dvh - 34px));min-height:min(580px,calc(100dvh - 34px));overflow:hidden;border-radius:36px 36px 24px 24px;background:var(--maa-bg);color:var(--maa-ink);box-shadow:0 12px 30px #0d223845;font:14px "Noto Sans",system-ui,sans-serif}
.mel-header{position:static;box-shadow:none;display:flex;align-items:center;gap:10px;flex-shrink:0;padding:13px 16px;background:var(--maa-grad);color:#fff}
.mel-header img{width:40px;height:40px;border-radius:50%;background:white}
.mel-header strong,.mel-header small{display:block}
.mel-header small{margin-top:2px;font-size:10px}
.mel-header .mel-close{margin-left:auto;border:1px solid #ffffff80;background:transparent;color:inherit}
.mel-sheet button{cursor:pointer;font:inherit}
.mel-close,.mel-form button{flex-shrink:0;min-height:36px;border:0;border-radius:16px;padding:7px 10px}
.mel-log{flex:1 1 200px;min-height:76px;overflow:auto;overscroll-behavior:contain;padding:14px;display:flex;flex-direction:column;gap:8px}
.mel-bubble{flex:none;align-self:flex-start;max-width:88%;margin:0;padding:9px 12px;border-radius:16px 16px 16px 4px;background:white;border:1px solid var(--maa-line);line-height:1.4;overflow-wrap:anywhere}
.mel-reply,.mel-user{animation:mel-enter .62s ease-out both}
@keyframes mel-enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
.mel-user{align-self:flex-end;border-radius:16px 16px 4px 16px;background:var(--maa-grad);color:white}
.mel-typing i,.mel-listening i{display:inline-block;width:5px;height:5px;margin:0 2px;border-radius:50%;background:currentColor;animation:mel-pulse .8s ease-in-out infinite alternate}
.mel-typing i:nth-child(2n),.mel-listening i:nth-child(2n){animation-delay:.2s}
.mel-typing i:nth-child(3n),.mel-listening i:nth-child(3n){animation-delay:.4s}
@keyframes mel-pulse{to{opacity:.45;transform:scaleY(2)}}
.mel-progress:empty{display:none}
.mel-progress{max-height:120px;overflow:auto;margin:0 12px}
.mel-chips{display:flex;flex-wrap:wrap;gap:5px;padding:4px 12px}
.mel-chips button{border:1px solid var(--maa-line);border-radius:16px;padding:5px 8px;background:white;color:var(--maa-ink);font-size:12px}
.mel-listening{color:var(--maa-ink);padding:4px 14px;font-size:12px}
.mel-form{display:flex;gap:6px;padding:8px 12px 4px}
.mel-form input{flex:1;min-width:0;border:1px solid var(--maa-line);border-radius:16px;padding:8px 10px;font:inherit}
.mel-form button{background:var(--maa-grad);color:white}
.mel-form button:disabled{opacity:.5;cursor:default}
.mel-options{display:flex;justify-content:space-between;align-items:center;gap:5px;padding:0 12px 10px;font-size:11px}
.mel-options label{margin-left:auto;white-space:nowrap}
.mel-options input{vertical-align:middle}
@media(prefers-reduced-motion:reduce){.mel-reply,.mel-user,.mel-typing i,.mel-listening i{animation:none}}

/* ---- clip modal: every device action / event plays its film (t1260u) ---- */
.stage-reel { position:relative;border-radius:14px;overflow:hidden;background:#162d45; }
.stage-reel video { border-radius:0; }
.stage-overlay { position:absolute;inset:0;pointer-events:none; }
.event-flag { position:absolute;left:10px;top:10px;padding:5px 11px;border-radius:999px;font:700 13px Inter,sans-serif;color:#fff;background:#25549fdd;backdrop-filter:blur(4px); }
.event-flag[data-severity=critical] { background:#b91c1cee;animation:flagpulse 1s ease-in-out infinite alternate; }
.event-flag[data-severity=warning] { background:#b45309ee; }
@keyframes flagpulse { to { box-shadow:0 0 0 6px #b91c1c55; } }
.event-plate-box { position:absolute;border:3px solid #34d399;border-radius:6px;box-shadow:0 0 0 2px #0d223899,0 0 18px #34d39988;transition:none; }
.event-plate-box span { position:absolute;left:-3px;bottom:100%;margin-bottom:4px;white-space:nowrap;background:#34d399;color:#06281c;font:800 12px Inter,sans-serif;padding:2px 7px;border-radius:5px; }
.event-card { display:grid;justify-items:center;gap:6px;color:#e8f1fb;text-align:center;padding:6px; }
.event-card img { background:#fff;border-radius:14px;padding:6px; }
.event-card strong { font-size:17px; }
.event-card span { font-size:13px;opacity:.85; }
.event-card[data-severity=critical] img { box-shadow:0 0 0 4px #b91c1c;animation:flagpulse 1s ease-in-out infinite alternate; }
.event-card[data-severity=warning] img { box-shadow:0 0 0 4px #b45309; }
.action-stage[data-stage-result=critical] .stage-status { color:#b91c1c; }
.action-stage[data-stage-result=warning] .stage-status { color:#b45309; }
.action-stage[data-stage-result=pending] .stage-status,.action-stage[data-stage-result=nochange] .stage-status { color:#536476; }
.stage-mel { display:flex;align-items:center;justify-content:center;gap:7px;margin:4px 0 2px;padding:6px 12px;border-radius:12px;background:#e6f0fb;color:#173453;font-size:14px;text-align:left; }
.stage-mel[hidden] { display:none; }
.stage-film[data-fallback=poster] video { animation:posterloop 6s ease-in-out infinite alternate; }
@keyframes posterloop { from { transform:scale(1); } to { transform:scale(1.06); } }
@media (prefers-reduced-motion:reduce) { .stage-film[data-fallback=poster] video { animation:none; } .event-flag,.event-card img { animation:none!important; } }
