:root{--bg:#07111f;--card:rgba(12,25,44,.78);--line:rgba(140,190,255,.17);--text:#eaf3ff;--muted:#9db3cb;--accent:#77c6ff;--mint:#71ffd1;--radius:20px;--shadow:0 20px 60px rgba(0,0,0,.35);color-scheme:dark}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;background:linear-gradient(135deg,#050d19,#08111f 50%,#061323);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.6}
.bg-grid{position:fixed;inset:0;pointer-events:none;z-index:-2;background-image:linear-gradient(rgba(119,198,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(119,198,255,.035) 1px,transparent 1px);background-size:40px 40px;mask-image:radial-gradient(ellipse at center,#000,transparent 83%)}
.bg-glow{position:fixed;z-index:-1;border-radius:50%;filter:blur(90px);pointer-events:none;opacity:.18}.bg-glow-1{background:#268ad1;right:-220px;top:-250px;width:650px;height:650px}.bg-glow-2{background:#3bcaa1;left:-300px;bottom:-250px;width:700px;height:700px;opacity:.1}
.wrap{width:min(1180px,calc(100% - 2rem));margin:auto}.narrow{max-width:480px;padding-top:8vh}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.brand{font-size:22px;font-weight:800;letter-spacing:-.06em;text-decoration:none;color:var(--text)}.brand span{color:var(--accent)}.brand small{font-size:12px;color:var(--muted);letter-spacing:0;font-weight:600;margin-left:14px}.nav-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.nav-actions a,.footer a{color:var(--muted);text-decoration:none}.nav-actions a:hover,.footer a:hover{color:var(--accent)}
.hero{padding:78px 0 58px;max-width:820px}.hero.compact{padding:56px 0 32px}.eyebrow{text-transform:uppercase;color:var(--accent);font-weight:800;letter-spacing:.15em;font-size:11px}.hero h1{font-size:clamp(40px,5.7vw,74px);font-weight:800;line-height:1.09;letter-spacing:-.065em;margin:16px 0 21px}.hero p:not(.eyebrow){max-width:610px;font-size:18px;color:var(--muted)}.gradient{background:linear-gradient(120deg,var(--accent),var(--mint));-webkit-background-clip:text;background-clip:text;color:transparent}
.panel{background:linear-gradient(160deg,rgba(14,30,50,.94),var(--card));border:1px solid var(--line);border-radius:var(--radius);padding:25px;box-shadow:var(--shadow);backdrop-filter:blur(12px)}.panel h2{font-size:21px;letter-spacing:-.03em;margin:0}.panel h3{font-size:19px;margin:9px 0}.panel p{color:var(--muted)}.panelhead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.columns{display:grid;grid-template-columns:1.55fr 1fr;gap:24px;align-items:start}.studio-layout{padding-bottom:50px}.stack{display:grid;gap:17px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:24px}.stats>.panel{display:flex;flex-direction:column;gap:5px}.stats b{font-size:30px;color:var(--accent);font-variant-numeric:tabular-nums}.stats span,.muted{color:var(--muted)}.fine{font-size:12px!important}.steps{padding:40px 0 70px}.section-head{padding-bottom:24px}.section-head h2{font-size:clamp(28px,3vw,40px);margin:4px 0}.step{font-size:29px;font-weight:800;color:var(--accent)!important}
.pill{display:inline-flex;align-items:center;border-radius:99px;padding:7px 15px;background:rgba(119,198,255,.09);border:1px solid var(--line);color:var(--accent);font-size:12px;font-weight:650}.pill.mini{padding:4px 10px;font-size:10px}.release-info{background:rgba(4,12,24,.36);border:1px solid var(--line);border-radius:14px;padding:15px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.release-info p{margin:5px 0}.release-info strong{color:var(--text)}
label{display:grid;gap:7px;font-weight:600;color:var(--text);font-size:13px}input:not([type=checkbox]):not([type=hidden]),textarea,select{display:block;width:100%;border:1px solid rgba(140,190,255,.23);background:#0b1b2e;color:var(--text);padding:12px 13px;font:inherit;font-size:14px;line-height:1.4;border-radius:12px;outline:0}textarea{min-height:80px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(119,198,255,.09)}option{background:#0c1c2f}fieldset{border:1px solid var(--line);border-radius:12px;padding:15px}legend{padding:0 6px;color:var(--muted);font-size:13px}.check{display:flex;align-items:flex-start;gap:10px;font-size:13px;font-weight:450;cursor:pointer}.check input{accent-color:var(--accent);width:18px;height:18px;margin:2px 0 0;flex-shrink:0}.check small{color:var(--muted)}
button{cursor:pointer;font:inherit;font-weight:750;border:1px solid var(--line);border-radius:999px;padding:11px 19px;transition:filter .15s,transform .15s;min-height:43px}button:hover:not(:disabled){filter:brightness(1.13);transform:translateY(-1px)}button:disabled{cursor:not-allowed;opacity:.4}.primary{background:linear-gradient(120deg,#77c6ff,#71ffd1);color:#061827;border-color:transparent}.secondary{background:rgba(119,198,255,.07);color:var(--accent)}.danger{background:rgba(240,103,120,.13);color:#ffabb7;border-color:rgba(240,103,120,.25)}.small{padding:6px 12px;min-height:34px;font-size:12px}.full{width:100%}.actions{display:flex;gap:10px;flex-wrap:wrap}
.device-state{border:1px solid var(--line);border-radius:15px;padding:16px;background:rgba(4,12,24,.38)}.statehead{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:13px}.statehead span{display:flex;align-items:center;gap:9px}.led,.dot{width:9px;height:9px;background:#7b8ca3;border-radius:50%;display:inline-block;flex:0 0 auto}.led.active,.dot.ok{background:var(--mint);box-shadow:0 0 9px rgba(113,255,209,.35)}.led.error{background:#ff8190}.progress{height:8px;background:#182d43;border-radius:10px;overflow:hidden}.progress>div{height:100%;width:0%;background:linear-gradient(90deg,var(--accent),var(--mint));transition:width .18s}.device-state p{margin:10px 0 0;font-size:12px}.feature{display:flex;gap:12px;align-items:flex-start;border-bottom:1px solid var(--line);padding:15px 0}.feature:last-child{border-bottom:none}.feature .dot{margin-top:8px}.feature b{font-size:14px}.feature p{font-size:12px;margin:3px 0}.alert{color:#ffb5bd;background:rgba(170,39,65,.13);border:1px solid rgba(240,103,120,.28);border-radius:12px;padding:12px}.success{padding:12px;color:var(--mint);background:rgba(50,170,130,.12);border-radius:12px}.terminal{white-space:pre-wrap;word-break:break-word;overflow:auto;max-height:260px;background:#030a14;color:#b5d9f6;border-radius:9px;padding:14px;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}
details{border-top:1px solid var(--line);padding-top:12px}details summary{cursor:pointer;font-weight:650;display:flex;justify-content:space-between;gap:12px}details small{font-size:11px;color:var(--muted)}details[open] summary{margin-bottom:12px}.inset{padding:12px;background:rgba(4,13,25,.35);border-radius:12px}.checkgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.status{text-transform:uppercase;color:var(--mint);font-size:11px}.logline{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:9px 0;margin:0!important;font-size:12px}.footer{padding:35px 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted);display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
@media(max-width:850px){.columns{grid-template-columns:1fr}.hero{padding:55px 0 35px}.stats{grid-template-columns:1fr 1fr}.studio-layout{padding-bottom:18px}}
@media(max-width:540px){.panel{padding:17px}.stats{grid-template-columns:1fr}.formgrid,.checkgrid{grid-template-columns:1fr}.topbar{padding:17px 0}.brand small{display:block;margin:0}.hero h1{font-size:39px}.hero p:not(.eyebrow){font-size:15px}}

/* Official AE&D image branding for public, admin and setup pages. */
.brand-image{display:inline-flex;align-items:center;line-height:1;text-decoration:none;letter-spacing:normal}
.brand-image img{display:block;width:auto;height:38px;max-width:100%;object-fit:contain}
.brand-caption{color:var(--muted);font-weight:650;font-size:13px;margin-right:auto}
.auth-logo{display:flex;justify-content:center;align-items:center;margin:0 0 26px}
.auth-logo img{display:block;width:auto;height:72px;max-width:100%;object-fit:contain}
.footer-brand{display:inline-flex;align-items:center;gap:15px;flex-wrap:wrap;color:var(--muted)}
.footer-brand img{width:auto;height:28px;display:block;object-fit:contain}
@media(max-width:540px){.brand-image img{height:33px}.brand-caption{font-size:12px}.auth-logo img{height:60px}.footer-brand img{height:26px}}

/* Keep the AE&D emblem and product name in one horizontal lockup. */
.topbar .brand-lockup{display:inline-flex;align-items:center;gap:17px;flex:0 1 auto;min-width:0}
.brand-lockup{display:inline-flex;align-items:center;gap:15px;min-width:0}
.brand-lockup .brand-image{display:inline-flex;align-items:center;flex:0 0 auto;line-height:1}
.brand-lockup .brand-image img{display:block;height:43px;width:auto;max-width:none;object-fit:contain}
.brand-divider{display:block;width:1px;height:33px;flex:0 0 1px;background:linear-gradient(180deg,rgba(119,198,255,.12),rgba(119,198,255,.84),rgba(113,255,209,.4));border-radius:1px}
.brand-product{
  display:inline-block;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:19px;
  font-weight:750;
  letter-spacing:-.035em;
  line-height:1.15;
  white-space:nowrap;
  color:#4fc4ff;
  background:linear-gradient(118deg,
    #1f8fe5 0%,
    #4fc4ff 38%,
    #62e7f2 68%,
    #71ffd1 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.topbar .nav-actions{margin-left:auto}
.auth-lockup{display:flex;justify-content:center;align-items:center;margin:0 0 25px}
.auth-lockup .brand-lockup .brand-image img{height:49px}
.auth-lockup .brand-product{font-size:20px;font-weight:800}
@media(max-width:670px){.topbar{row-gap:12px}.topbar .brand-lockup{gap:10px}.brand-lockup .brand-image img{height:36px}.brand-divider{height:27px}.brand-product{font-size:16px}.topbar .nav-actions{width:100%;margin-left:0;justify-content:flex-start;gap:16px}.auth-lockup .brand-lockup .brand-image img{height:43px}.auth-lockup .brand-product{font-size:18px}}
@media(max-width:370px){.brand-lockup{gap:9px}.brand-lockup .brand-image img{height:31px}.brand-product{font-size:14px}.brand-divider{height:24px}}

/* AE&D Firmware Telemetry — only loaded inside the authenticated admin. */
.telemetry-toolbar{display:flex;justify-content:space-between;gap:20px;align-items:end;flex-wrap:wrap;margin:0 0 20px}
.telemetry-toolbar>p{max-width:680px;font-size:13px;margin:0}
.telemetry-filter{min-width:160px}
.telemetry-filter label{font-size:12px;color:var(--muted)}
.telemetry-filter select{padding:10px 13px}
.telemetry-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}
.telemetry-kpis .panel{display:flex;flex-direction:column;gap:6px}
.telemetry-kpis small{font-size:10px;font-weight:800;letter-spacing:.1em;color:#96b4c8}
.telemetry-kpis b{font-size:clamp(25px,3vw,39px);font-variant-numeric:tabular-nums;color:var(--accent)}
.telemetry-kpis span{font-size:12px;color:var(--muted)}
.telemetry-section{margin-bottom:22px}
.telemetry-columns{grid-template-columns:1fr 1fr;margin-bottom:22px}
.telemetry-chart{width:100%;padding:12px 4px 0}
.telemetry-chart svg{width:100%;height:auto;max-height:240px}
.telemetry-legend{display:flex;flex-wrap:wrap;gap:18px;color:var(--muted);font-size:12px}
.telemetry-legend span{display:inline-flex;align-items:center;gap:8px}
.key{display:inline-block;width:21px;height:3px;border-radius:3px}
.key-blue{background:#4fc4ff}.key-mint{background:#71ffd1}
.telemetry-row{margin:1px 0 3px}
.telemetry-row-label{display:flex;justify-content:space-between;gap:10px;font-size:13px}
.telemetry-row-label span{color:var(--text)}.telemetry-row-label strong{color:var(--accent);font-variant-numeric:tabular-nums}
.telemetry-meter{height:6px;background:#172b40;border-radius:20px;overflow:hidden;margin-top:5px}
.telemetry-meter>div{height:100%;background:linear-gradient(110deg,#1f8fe5,#71ffd1);border-radius:20px}
.telemetry-table-scroll{max-width:100%;overflow-x:auto}
.telemetry-table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;white-space:nowrap}
.telemetry-table th{padding:13px 11px;color:#9db3cb;font-weight:700;border-bottom:1px solid var(--line)}
.telemetry-table td{padding:14px 11px;border-bottom:1px solid var(--line)}
.telemetry-table .numeric{text-align:right;font-variant-numeric:tabular-nums}
.telemetry-table th:nth-child(n+5){text-align:right}
@media(max-width:900px){.telemetry-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.telemetry-columns{grid-template-columns:1fr}.telemetry-kpis{gap:10px}.telemetry-kpis .panel{padding:16px}.telemetry-toolbar{align-items:stretch}}

.telemetry-filter{display:grid;grid-template-columns:minmax(145px,1fr) minmax(180px,1fr);align-items:end;gap:8px 12px}
.telemetry-filter label{align-self:end}
@media(max-width:560px){.telemetry-filter{grid-template-columns:1fr 1fr}}

/* AE&D Telemetry: responsive donut charts and self-hosted world choropleth. */
.telemetry-visual-heading{margin:8px 0 15px}.telemetry-visual-heading h2{font-size:24px;letter-spacing:-.035em}
.telemetry-donuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.telemetry-donut-card{min-width:0}
.telemetry-donut-card h3{font-size:16px;margin:0 0 20px;font-weight:720}
.telemetry-donut-layout{display:grid;grid-template-columns:minmax(126px,190px) minmax(0,1fr);align-items:center;gap:18px}
.telemetry-donut-ring{border-radius:50%;aspect-ratio:1;display:grid;place-items:center;max-width:190px;width:100%;background:#243b50;box-shadow:0 0 0 1px rgba(119,198,255,.18)}
.telemetry-donut-hole{display:flex;align-items:center;justify-content:center;flex-direction:column;width:61%;height:61%;border-radius:50%;background:#0b1b2c;box-shadow:inset 0 0 0 1px rgba(140,190,255,.12);text-align:center;padding:10px}
.telemetry-donut-value{font-size:clamp(18px,2vw,29px);font-weight:800;color:var(--text);font-variant-numeric:tabular-nums;line-height:1.2}
.telemetry-donut-caption{color:var(--muted);font-size:10px;overflow-wrap:anywhere}
.telemetry-donut-legend{min-width:0;display:grid;gap:5px}
.telemetry-donut-key{display:flex;gap:8px;align-items:center;text-align:left;width:100%;min-height:30px;padding:5px 7px;border:0;border-radius:8px;background:transparent;color:var(--text);font-weight:500;font-size:12px;transition:background .15s}
.telemetry-donut-key:focus-visible,.telemetry-donut-key:hover{background:rgba(119,198,255,.1);transform:none}.telemetry-donut-key.active{background:rgba(119,198,255,.12)}
.telemetry-donut-swatch{width:10px;height:10px;border-radius:50%;flex:0 0 10px}.telemetry-donut-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.telemetry-donut-pct{color:var(--muted);font-variant-numeric:tabular-nums}.telemetry-no-data{grid-column:1/-1;font-size:13px;color:var(--muted);line-height:1.6}
.telemetry-map-grid{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(200px,.8fr);gap:22px;align-items:start;margin-top:20px}
.telemetry-map-wrap{min-width:0}.telemetry-world-map{width:100%;min-height:205px;background:linear-gradient(180deg,#0a2237,#0b192a);border:1px solid rgba(130,193,240,.15);border-radius:15px;overflow:hidden;position:relative;display:grid;place-items:center}
.telemetry-world-map svg{display:block;width:100%;height:auto;max-height:430px}
.telemetry-world-map .world-country{stroke:#35516a;stroke-width:1.1;vector-effect:non-scaling-stroke;fill:#253b50;transition:fill .12s,stroke .12s}
.telemetry-world-map .world-country.has-visits{stroke:#38667d;stroke-width:.9;cursor:pointer}
.telemetry-world-map .world-country.has-visits:hover,.telemetry-world-map .world-country.is-selected{stroke:#f0fcff;stroke-width:2.1;filter:brightness(1.35)}
.telemetry-world-map .world-country.has-visits:focus{outline:none;stroke:#fff;stroke-width:2.5}
.telemetry-map-legend{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 7px;margin-top:14px;color:var(--muted);font-size:10px}
.map-scale{display:inline-block;width:18px;height:11px;border-radius:3px}
.map-scale-0{background:#253b50}.map-scale-1{background:#245a79}.map-scale-2{background:#277fae}.map-scale-3{background:#2ba9be}.map-scale-4{background:#6bf1ce}
.telemetry-map-sidebar{border-left:1px solid var(--line);padding-left:18px;max-height:430px;overflow-y:auto}
.telemetry-map-sidebar h3{margin:0 0 14px;font-size:15px}.telemetry-map-sidebar .telemetry-row{margin:0 0 10px}
.telemetry-map-attribution{margin:18px 0 0;font-size:11px}.telemetry-map-attribution a{color:#84caf1}
@media(max-width:1020px){.telemetry-donut-layout{grid-template-columns:minmax(110px,155px) minmax(0,1fr);gap:12px}}
@media(max-width:800px){.telemetry-map-grid{grid-template-columns:1fr}.telemetry-map-sidebar{border-left:0;border-top:1px solid var(--line);padding:14px 0 0;max-height:none}.telemetry-donuts{gap:12px}}
@media(max-width:640px){.telemetry-donuts{grid-template-columns:1fr}.telemetry-donut-layout{grid-template-columns:minmax(125px,170px) minmax(0,1fr)}.telemetry-map-legend{font-size:9px}.map-scale{width:13px}}
@media(max-width:390px){.telemetry-donut-layout{grid-template-columns:1fr}.telemetry-donut-ring{max-width:190px;margin:auto}.telemetry-donut-legend{margin-top:10px}}

/* Ensure server-inlined SVG country shapes are visible before JavaScript runs. */
.telemetry-world-map svg path[id][d]{fill:#253b50;stroke:#35516a;stroke-width:1.1;vector-effect:non-scaling-stroke}
.telemetry-world-map svg .world-country.has-visits{stroke:#38667d;stroke-width:.9}
.telemetry-world-map svg .world-country.has-visits:hover,.telemetry-world-map svg .world-country.is-selected{stroke:#f0fcff;stroke-width:2.1}

/* Scoped destructive telemetry controls */
.telemetry-reset-button{margin-left:auto;border:1px solid #7b4954;border-radius:9px;background:transparent;color:#f0a6b2;padding:7px 10px;cursor:pointer;font-size:.76rem}
.telemetry-reset-button:hover{background:#472630}
.telemetry-reset-dialog{background:#101b2b;color:#eaf2fb;border:1px solid #496177;border-radius:16px;max-width:min(94vw,480px);padding:25px;box-shadow:0 18px 70px #0009}
.telemetry-reset-dialog::backdrop{background:#000b}
.telemetry-reset-dialog form{display:grid;gap:14px}
.telemetry-reset-dialog input[name=confirm_text]{width:100%;padding:12px;border:1px solid #698197;border-radius:8px;background:#152638;color:white}
.telemetry-reset-actions{display:flex;gap:10px;justify-content:flex-end}
.telemetry-reset-actions button{border-radius:8px;padding:10px 14px;cursor:pointer}
.telemetry-reset-actions button[type=submit]{background:#a63346;color:white;border:0}
.telemetry-reset-actions button:disabled{opacity:.45;cursor:not-allowed}

/* Telemetry Explorer: AE&D dark analytics design */
.telemetry-search-control{margin:13px 0 12px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.telemetry-search-control label,.telemetry-search-label{color:var(--muted);font-size:.78rem;font-weight:600;display:block;margin:12px 0 7px}
.telemetry-search-control label{margin:0}
.telemetry-local-search{min-width:155px;max-width:100%;width:min(100%,360px);padding:10px 12px;border:1px solid #39536c;border-radius:9px;background:#0f2030;color:#eaf4ff;font:inherit;font-size:.85rem;outline-offset:2px}
.telemetry-local-search:focus,.telemetry-history-filters select:focus,.telemetry-history-filters input:focus{border-color:#65c8fa;outline:2px solid #5dbef966;outline-offset:1px}
.telemetry-search-empty{font-size:.8rem;margin:10px 0}
.telemetry-donut-card .telemetry-search-control{margin:8px 0 15px}
.telemetry-donut-card .telemetry-local-search{width:100%;min-width:0}
.telemetry-history-total{font-size:.79rem;color:#7ef2ce;padding:7px 11px;background:#113b3a;border:1px solid #2a6961;border-radius:999px;white-space:nowrap}
.telemetry-history-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(156px,1fr));gap:12px;align-items:end;padding:17px;background:#102137;border:1px solid #28445e;border-radius:13px;margin:14px 0}
.telemetry-history-filters label{display:flex;flex-direction:column;gap:7px;color:#b1c6da;font-size:.78rem;font-weight:600}
.telemetry-history-filters input,.telemetry-history-filters select{display:block;width:100%;min-width:0;background:#0b1929;color:#e9f5ff;padding:10px 11px;border-radius:9px;border:1px solid #36536b;font:inherit;font-size:.86rem}
.telemetry-history-buttons{display:flex;gap:11px;align-items:center;flex-wrap:wrap}
.telemetry-apply{border:1px solid #59cfe8;background:#185f73;color:#f3ffff;font:inherit;font-weight:650;padding:10px 14px;border-radius:10px;cursor:pointer}
.telemetry-apply:hover{background:#217e94}
.telemetry-clear,.telemetry-history-presets a,.telemetry-pages a{color:#8bd5ff;text-decoration:none;font-size:.83rem}
.telemetry-clear:hover,.telemetry-history-presets a:hover,.telemetry-pages a:hover{text-decoration:underline}
.telemetry-history-presets{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;font-size:.8rem;margin-bottom:18px;color:var(--muted)}
.telemetry-history-presets a{border:1px solid #284760;border-radius:999px;padding:5px 9px;background:#13263a}
.telemetry-history-table{font-size:.8rem}
.telemetry-history-table td,.telemetry-history-table th{padding:12px 10px;line-height:1.55;vertical-align:top}
.telemetry-history-table tbody tr:hover{background:#192d44}
.telemetry-nowrap{white-space:nowrap;font-variant-numeric:tabular-nums}
.telemetry-subdetail{display:block;color:#9db1c8;font-size:.73rem;line-height:1.45;margin-top:4px}
.telemetry-event-pill{display:inline-flex;align-items:center;border:1px solid #496582;border-radius:999px;background:#183347;color:#b5dcf8;font-size:.73rem;padding:4px 8px;white-space:nowrap}
.telemetry-event-pill.is-success{color:#89edc7;background:#123a34;border-color:#2b7162}
.telemetry-event-pill.is-failure{color:#ffb4bd;background:#47252e;border-color:#8c4b57}
.telemetry-event-pill.is-admin{color:#d3c4ff;background:#2d2845;border-color:#655689}
.telemetry-ok{color:#7cf0bc;font-weight:650}
.telemetry-history-table code,#telemetry-failure-results code{color:#ffb4bd;background:#422634;padding:3px 6px;border-radius:5px;font-size:.79rem}
.telemetry-pages{display:flex;justify-content:flex-end;gap:16px;align-items:center;flex-wrap:wrap;margin:16px 0;color:#b0c7d9;font-size:.82rem}
.telemetry-page-disabled{opacity:.35}
#flash-intelligence .telemetry-donuts{margin-top:14px}
#flash-intelligence .telemetry-donut-card{min-width:0}
@media(max-width:800px){.telemetry-history-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.telemetry-history-filters{grid-template-columns:1fr}.telemetry-history-table{font-size:.75rem}.telemetry-pages{justify-content:flex-start}}

/* Section directory: compact, horizontally scrollable on narrow displays. */
.telemetry-jump{display:flex;gap:9px;overflow-x:auto;scrollbar-width:thin;align-items:center;margin:18px 0 20px;padding:5px 0 10px}
.telemetry-jump a{white-space:nowrap;display:inline-block;color:#a9dff8;text-decoration:none;font-size:.79rem;font-weight:650;padding:8px 12px;border-radius:999px;border:1px solid #2e526a;background:#122b41}
.telemetry-jump a:hover,.telemetry-jump a:focus-visible{background:#1d4d62;color:#fff;border-color:#68bade}
#telemetry-summary,#audience-breakdown,#telemetry-geography,#visitor-tech,#flash-intelligence,#browser-breakdown,#failure-investigation,#activity-explorer{scroll-margin-top:30px}


/* GeoIP Data Manager — AE&D native administrative controls */
.telemetry-geo-status .geoip-update-tools{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:17px 0 9px}
.geoip-update-button{background:linear-gradient(115deg,#176581,#147f81);border:1px solid #2eafc2;color:#f6ffff;border-radius:10px;padding:11px 18px;font:inherit;font-size:.86rem;font-weight:720;cursor:pointer;box-shadow:0 4px 20px #0c8da41b}
.geoip-update-button:hover{filter:brightness(1.18)}
.geoip-update-button:focus-visible,.geoip-dialog-close:focus-visible,.geoip-update-actions button:focus-visible{outline:2px solid #7ee5ff;outline-offset:3px}
.geoip-update-button:disabled{opacity:.5;cursor:wait}
.geoip-update-about{padding:9px 0 2px;color:var(--muted);max-width:900px}
.geoip-update-about summary{cursor:pointer;font-size:.82rem;color:#98dff3}
.geoip-update-about p{margin:9px 0 0;line-height:1.7}
.geoip-update-dialog{color:#e5f1fc;background:#101e30;border:1px solid #3b607c;border-radius:17px;box-shadow:0 20px 80px #000b;padding:28px;width:min(94vw,590px);max-width:590px;max-height:90vh;overflow-y:auto}
.geoip-update-dialog::backdrop{background:rgba(1,7,14,.78);backdrop-filter:blur(5px)}
.geoip-dialog-top{display:flex;justify-content:space-between;gap:20px;align-items:center}
.geoip-dialog-top .eyebrow{margin:0;font-size:.7rem}
.geoip-dialog-close{background:transparent;color:#abc7d7;font-size:1.5rem;border:1px solid #35506a;cursor:pointer;line-height:1;border-radius:8px;width:34px;height:34px}
.geoip-update-dialog h2{font-size:1.55rem;letter-spacing:-.03em;margin:16px 0 8px}
.geoip-update-dialog>p{line-height:1.65;font-size:.91rem;color:#b8cede}
.geoip-update-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:22px 0}
.geoip-update-facts span{background:#15293c;border:1px solid #2c435a;border-radius:10px;font-size:.72rem;padding:12px;line-height:1.55;color:#b3cfdf}
.geoip-update-facts b{display:block;color:#e6faff;font-size:.67rem;letter-spacing:.04em;text-transform:uppercase}
.geoip-update-progress-area{padding:16px 0 6px}
.geoip-progress-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;font-size:.83rem}
.geoip-progress-header strong{color:#75e7de;font-variant-numeric:tabular-nums}
.geoip-update-progress-area progress{display:block;appearance:none;width:100%;height:12px;border:0;border-radius:999px;overflow:hidden;background:#304353}
.geoip-update-progress-area progress::-webkit-progress-bar{background:#304353;border-radius:999px}
.geoip-update-progress-area progress::-webkit-progress-value{background:linear-gradient(90deg,#4bb3ec,#63f0c4);border-radius:999px}
.geoip-update-progress-area progress::-moz-progress-bar{background:#50d7d1;border-radius:999px}
.geoip-update-count{margin:9px 0}
.geoip-update-message{background:#172b3f;border:1px solid #2d4a65;border-radius:9px;padding:12px 14px;font-size:.82rem;line-height:1.65;min-height:52px}
.geoip-update-message.geoip-update-error{color:#ffd1d6;background:#3c2530;border-color:#824654}
.geoip-update-message.geoip-update-success{color:#b3ffe3;background:#15362f;border-color:#40856b}
.geoip-update-actions{display:flex;align-items:center;justify-content:flex-end;gap:11px;margin-top:20px;flex-wrap:wrap}
.geoip-update-actions button{font:inherit;font-size:.85rem;font-weight:700;border-radius:9px;padding:11px 15px;cursor:pointer}
.geoip-action-primary{color:#eaffff;background:#176e80;border:1px solid #3ab5c2}
.geoip-action-secondary{color:#d5deea;background:#172c3e;border:1px solid #50647d}
.geoip-update-actions button:disabled{opacity:.5;cursor:wait}
@media(max-width:530px){.geoip-update-dialog{padding:19px}.geoip-update-facts{grid-template-columns:1fr}.geoip-update-facts span b{display:inline;margin-right:6px}}


/* Destructive confirmation: clearly show the exact mandatory phrase. */
.telemetry-reset-phrase-box{border:1px solid #59718a;background:#162c42;padding:14px;border-radius:10px;display:grid;gap:9px}
.telemetry-reset-phrase-heading{color:#cbdfee;font-size:.82rem;font-weight:650}
.telemetry-reset-phrase-row{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}
.telemetry-reset-phrase-row code{display:inline-block;background:#091b2e;color:#fff;font-size:1rem;font-weight:750;letter-spacing:.02em;border:1px solid #508ca5;border-radius:7px;padding:9px 12px;user-select:all}
.telemetry-reset-copy{color:#bdeaff;background:#1c4159;border:1px solid #4386a3;border-radius:8px;padding:8px 11px;font:inherit;font-size:.79rem;font-weight:650;cursor:pointer}
.telemetry-reset-copy:hover{background:#285a72}
.telemetry-reset-copy:focus-visible{outline:2px solid #8adbf7;outline-offset:2px}
.telemetry-reset-phrase-box .fine{margin:0;font-size:.75rem}

/* Full telemetry reset deliberately isolated at the end of the dashboard. */
.telemetry-danger-zone{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:18px;align-items:center;margin:42px 0 20px;padding:25px 27px;border:1px solid #8d4050;background:linear-gradient(110deg,#291822,#181e2b 75%);box-shadow:inset 3px 0 #d75a69}
.telemetry-danger-icon{display:grid;place-items:center;width:44px;height:44px;border:2px solid #e58a92;border-radius:13px;color:#ffc0c4;font-size:26px;font-weight:800;line-height:1}
.telemetry-danger-content{min-width:0}
.telemetry-danger-eyebrow{font-size:.68rem;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:#f1a1a8;margin:0 0 8px}
.telemetry-danger-content h2{font-size:1.22rem;letter-spacing:.005em;color:#fff0f1;margin:0 0 11px}
.telemetry-danger-content p:not(.telemetry-danger-eyebrow){font-size:.83rem;line-height:1.65;color:#d4bdc4;margin:6px 0}
.telemetry-danger-content strong{color:#ffe8ea}
.telemetry-danger-content .telemetry-danger-preserved{color:#cfcedb}
.telemetry-danger-content .telemetry-danger-note{font-size:.77rem;color:#f7c0c6}
.telemetry-danger-note code{color:#fff;background:#552834;padding:2px 6px;border-radius:4px;white-space:nowrap}
.telemetry-danger-trigger{margin:0;align-self:center;white-space:nowrap;border-color:#c35b6b;color:#fff6f7;background:#8d3446;padding:12px 16px;font-size:.84rem;font-weight:760}
.telemetry-danger-trigger:hover{background:#aa4054}
.telemetry-reset-dialog.telemetry-reset-global{border-color:#d75a69;box-shadow:0 18px 70px #000b,inset 3px 0 #ca5260}
.telemetry-reset-global #telemetry-reset-title{color:#ffadb9}
@media(max-width:860px){.telemetry-danger-zone{grid-template-columns:44px minmax(0,1fr)}.telemetry-danger-trigger{grid-column:2;justify-self:start}}
@media(max-width:530px){.telemetry-danger-zone{grid-template-columns:1fr;padding:19px;gap:12px}.telemetry-danger-trigger{grid-column:1;width:100%}}


/* Per-hardware compiled firmware model slots */
.variant-fieldset{border:1px solid #34526d;border-radius:13px;padding:17px;margin:10px 0}
.variant-fieldset legend{color:#dbeeff;font-weight:750;padding:0 10px}
.variant-model-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:12px;margin-top:15px}
.variant-model-row{background:#102133;border:1px solid #34506c;border-radius:11px;padding:13px;display:grid;gap:12px;min-width:0}
.variant-model-row.is-selected{background:#153449;border-color:#4aaac1}
.variant-model-choice{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.variant-model-choice span{display:grid;gap:5px}
.variant-model-choice small{display:block;color:#a1c7d7;font-size:.72rem}
.variant-model-choice strong{font-size:.84rem}
.variant-upload-label{display:block;font-size:.78rem;color:#ceddea}
.variant-upload-label input{display:block;margin-top:7px;max-width:100%;width:100%;font-size:.74rem}
.variant-upload-label input:disabled{opacity:.35;cursor:not-allowed}
.variant-current-label{word-break:break-word;margin:0}
.variant-existing{background:#142b3c;border:1px solid #2d4c62;border-radius:9px;padding:10px 12px;display:grid;gap:5px}
.variant-existing strong{color:#e5f9ff}
.variant-existing small{color:#9ecadd}
.variant-existing .fine{word-break:break-all}
