/* My HCG — highlandscablegroup.com palette: indigo strip, cream, purple band, yellow accent */
:root{
  --brand:#5810d6; --brand-2:#1901a7; --brand-hi:#7404f3; --accent:#ffcd57; --ink-strip:#1a1033;
  --cream:#fcfaf7; --page:#f6f3ee; --panel:#fff; --ink:#1d1630; --muted:#6c6483; --line:#e6e0ef;
  --ok:#1f8a5b; --bad:#c22a2a; --warn:#c99512;
  --f-ui:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --f-display:"DM Serif Display",Georgia,"Times New Roman",serif;
  --field:#fff; --field-line:#cfc6e0; --chart:#5810d6; --chart-fill:rgba(88,16,214,.10); --grid:#ece6f4;
  --r-excellent:#1f8a5b; --r-good:#2f7d9e; --r-fair:#b07d0c; --r-poor:#c22a2a;
}
/* dark theme (the app is always dark) */
:root{
    --page:#120e1c; --panel:#1b1529; --ink:#f1edf8; --muted:#a59cbd; --line:#2c2440; --cream:#f1edf8;
    --field:#221a33; --field-line:#3a3052; --chart:#c4a8ff; --chart-fill:rgba(196,168,255,.14); --grid:#2a2240;
    --r-excellent:#4fd394; --r-good:#6cc3e6; --r-fair:#f0bf4f; --r-poor:#ff7a70; --link:#c4a8ff;
    --ok:#4fd394; --bad:#ff7a70;
    color-scheme:dark;
  }
  .alert{background:#3a1717;border-color:#6b2a2a;color:#ffc9c4}
  .notice{background:#123024;border-color:#1f5a40;color:#bff0d6}
  .tag{color:#1d1630}

*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0}
body{background:var(--page);color:var(--ink);font:16px/1.5 var(--f-ui);-webkit-text-size-adjust:100%;
  min-height:100vh;display:flex;flex-direction:column}
a{color:var(--link)}
:focus-visible{outline:2px solid var(--link);outline-offset:2px}
h1,h2{font-family:var(--f-display);font-weight:400;line-height:1.15;margin:0 0 .4em}
h1{font-size:28px} h2{font-size:21px}
.muted{color:var(--muted)} .small{font-size:14px}

/* header: purple band with the cream wordmark tile */
.top{background:linear-gradient(90deg,var(--brand-2),var(--brand) 55%,var(--brand-hi));color:#fff;
  padding-top:env(safe-area-inset-top);border-bottom:3px solid var(--accent)}
.top-in{max-width:640px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand{display:inline-flex;align-items:center;gap:10px;color:#fff;text-decoration:none}
.brand .mark{height:38px;padding:4px 7px;border-radius:9px;background:#fcfaf7;display:grid;place-items:center}
.brand .mark img{display:block;height:30px;width:auto}
.brand b{display:block;font-size:16px;letter-spacing:.01em} .brand small{display:block;font-size:12px;opacity:.85}
.top-nav a{color:#fff;text-decoration:none;font-size:15px;padding:6px 10px;border-radius:8px;border:1px solid rgba(255,255,255,.35)}
.top-nav a:hover{background:rgba(255,255,255,.12)}

.main{flex:1;width:100%;max-width:640px;margin:0 auto;padding:20px 16px 8px}
.greet{margin-top:4px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px 16px;margin:0 0 14px;
  box-shadow:0 1px 2px rgba(29,22,48,.04)}
.auth .main{padding-top:28px}
.auth-card{max-width:420px;margin-inline:auto}

label{display:block;font-size:14px;font-weight:600;margin:0 0 14px}
.hint{font-weight:400;color:var(--muted)}
input[type=email],input[type=password],input[type=text]{display:block;width:100%;margin-top:6px;font:16px var(--f-ui);
  padding:12px 12px;border:1px solid var(--field-line);border-radius:10px;background:var(--field);color:var(--ink)}
input:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px rgba(88,16,214,.15)}
.pw{display:flex;gap:8px;align-items:stretch} .pw input{flex:1}
.pw-toggle{margin-top:6px;border:1px solid var(--field-line);background:var(--field);border-radius:10px;padding:0 12px;font:14px var(--f-ui);
  color:var(--link);cursor:pointer}
.btn{display:inline-block;width:100%;padding:13px 16px;border:0;border-radius:10px;background:var(--brand);color:#fff;
  font:600 16px var(--f-ui);cursor:pointer;margin-top:4px}
.btn:hover{background:var(--brand-2)}
.btn.ghost{background:transparent;color:var(--link);border:1px solid var(--link)}
.btn.ghost:hover{background:rgba(196,168,255,.10)}
.btn.wide{margin:6px 0 14px}
.link{background:none;border:0;color:var(--link);font:15px var(--f-ui);text-decoration:underline;padding:0;cursor:pointer;margin-top:14px}
.alert{background:#fdecec;border:1px solid #f3c3c3;color:#8a1c1c;border-radius:10px;padding:10px 12px;font-size:15px}
.notice{background:#eaf6ef;border:1px solid #bfe3cd;color:#165c3d;border-radius:10px;padding:10px 12px;font-size:15px}

.devices,.plain,.sessions{list-style:none;margin:0;padding:0}
.devices li{border-top:1px solid var(--line)} .devices li:first-child{border-top:0}
.device{display:flex;align-items:center;gap:10px;padding:12px 0;color:var(--ink);text-decoration:none}
.devices li:first-child .device{padding-top:4px}
.dev-name{flex:1;font-weight:600}
.dev-state{color:var(--muted);font-size:15px}
.dot{width:12px;height:12px;border-radius:50%;background:#b8b0c8;flex:none}
.dot.online{background:var(--ok);box-shadow:0 0 0 4px rgba(31,138,91,.15)}
.dot.offline{background:var(--bad);box-shadow:0 0 0 4px rgba(194,42,42,.15)}
.plain li{padding:6px 0}
.sessions li{padding:10px 0;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline}
.sessions li:first-child{border-top:0}
.sessions .muted{flex-basis:100%}
.tag{font-size:12px;background:var(--accent);color:var(--ink);border-radius:999px;padding:1px 8px;font-weight:600}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0 0 8px}
.kv dt{color:var(--muted)} .kv dd{margin:0;overflow-wrap:anywhere}

.foot{text-align:center;color:var(--muted);font-size:14px;padding:16px 16px calc(16px + env(safe-area-inset-bottom))}
.foot p{margin:0}
.inline{display:inline}


/* ---------- modem page ---------- */
.back{display:inline-block;margin:0 0 10px;color:var(--muted);text-decoration:none;font-size:15px}
.back:hover{color:var(--link)}
.chev{color:var(--muted);font-size:22px;line-height:1;margin-left:auto}
.hero{position:relative;overflow:hidden;border-radius:18px;padding:22px 18px 18px;margin:0 0 22px;color:#fff;text-align:center;
  background:radial-gradient(120% 90% at 50% 0%,#7a3df0 0%,var(--brand) 45%,var(--brand-2) 100%)}
.hero::after{content:"";position:absolute;inset:auto -20% -60% -20%;height:90%;background:radial-gradient(closest-side,rgba(255,205,87,.18),transparent);pointer-events:none}
.hero-status{display:inline-flex;align-items:center;gap:8px;font:600 22px/1 var(--f-ui);letter-spacing:.01em}
.hero-dot{width:11px;height:11px;border-radius:50%;background:#7a7392}
.hero.online .hero-dot{background:#4fe39a;box-shadow:0 0 0 5px rgba(79,227,154,.22)}
.hero.offline .hero-dot{background:#ff6b5f;box-shadow:0 0 0 5px rgba(255,107,95,.25)}
.hero-modem{display:block;width:190px;max-width:60%;height:auto;margin:10px auto 4px;position:relative;z-index:1}
.m-shadow{fill:rgba(10,0,40,.35)}
.m-leds circle{fill:#4fe39a} .hero.offline .m-led-net{fill:#ff6b5f} .hero.unknown .m-leds circle{fill:#b8b0c8}
.m-vent{stroke:#c9bfdc;stroke-width:2;stroke-linecap:round}
.hero-name{font:400 24px/1.2 var(--f-display);margin:6px 0 2px;position:relative;z-index:1}
.hero-addr{margin:0;opacity:.85;font-size:15px;position:relative;z-index:1}
.hero-help{margin:12px auto 0;max-width:34em;background:rgba(0,0,0,.22);border-radius:10px;padding:9px 12px;font-size:14px;position:relative;z-index:1}
.section-title{font-size:20px;margin:0 0 10px}

/* ---------- live panel ---------- */
.live{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 14px 10px;margin:0 0 22px}
.live-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.live-badge{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:13px;letter-spacing:.06em;text-transform:uppercase}
.live-dot{width:9px;height:9px;border-radius:50%;background:#b8b0c8}
.live.on .live-dot{background:#e5484d;animation:livepulse 1.6s ease-in-out infinite}
@keyframes livepulse{0%,100%{box-shadow:0 0 0 0 rgba(229,72,77,.45)}50%{box-shadow:0 0 0 6px rgba(229,72,77,0)}}
@media (prefers-reduced-motion:reduce){.live.on .live-dot{animation:none}}
.live-note{color:var(--muted);font-size:13px;flex:1;min-width:0}
.speed-btn{font-size:13.5px;font-weight:650;color:var(--chart);text-decoration:none;border:1px solid currentColor;border-radius:999px;padding:4px 11px;white-space:nowrap}
.speed-btn:hover{background:rgba(88,16,214,.06)}
.live-nums{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 4px}
.ln span{display:block;font-size:12.5px;color:var(--muted);font-weight:600}
.ln b{font:600 26px/1.1 var(--f-ui);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.ln i{font-style:normal;color:var(--muted);font-size:13px;margin-left:3px}
.ln.down b{color:var(--chart)} .ln.up b{color:var(--r-good)}
.live-plot{position:relative}
.lc-max{position:absolute;left:0;top:-2px;font-size:11px;color:var(--muted);background:var(--panel);padding:0 4px 0 0;line-height:1.2}
.live-chart{display:block;width:100%;height:96px}
.live.idle .live-nums,.live.idle .live-plot,.live.idle .live-axis{display:none}
.lc-grid{stroke:var(--grid);stroke-width:1;vector-effect:non-scaling-stroke}
.lc-down{fill:none;stroke:var(--chart);stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.lc-up{fill:none;stroke:var(--r-good);stroke-width:1.8;stroke-dasharray:4 3;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.lc-miss rect{fill:var(--r-poor)}
.live-axis{display:flex;justify-content:space-between;color:var(--muted);font-size:11.5px;margin-top:2px}
.live-msg{margin-top:8px;padding:10px 12px;border-radius:10px;background:var(--page);border:1px solid var(--line)}
.live-msg p{margin:0 0 8px;font-size:14px} .live-msg .btn{width:auto}
.btn.small{padding:7px 12px;font-size:14px}
.speed-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:16px 0 0} .speed-row .btn{width:auto;margin:0}

.stats{display:grid;gap:10px}
.stat{display:grid;grid-template-columns:1fr;gap:2px;background:var(--panel);border:1px solid var(--line);border-radius:14px;
  padding:13px 14px 12px;color:var(--ink);text-decoration:none;box-shadow:0 1px 2px rgba(29,22,48,.04)}
.stat:hover{border-color:var(--brand)}
.stat-head{display:flex;align-items:center;gap:8px}
.stat-title{font-weight:650;font-size:15px}
.stat-body{display:flex;align-items:flex-end;gap:12px;min-height:50px}
.stat-num{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap}
.stat-num b{font:600 34px/1 var(--f-ui);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat-num i{font-style:normal;color:var(--muted);font-size:15px}
.stat-cap{color:var(--muted);font-size:13.5px;margin:0}
.stat-note{color:var(--ink);font-size:13.5px;margin-top:2px}
.spark{flex:1;min-width:0;height:46px;display:block}
.spark-line{fill:none;stroke:var(--chart);stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.spark-none{stroke:var(--line);stroke-width:1.5;stroke-dasharray:3 4}
.fade-a{stop-color:var(--chart);stop-opacity:.28} .fade-b{stop-color:var(--chart);stop-opacity:0}
.nowrap{white-space:nowrap}
.alerts .btn{margin-top:4px} .alerts-status{font-size:15px;margin:0 0 10px}
.alerts-ios{background:var(--page);border:1px solid var(--line);border-radius:10px;padding:10px 14px;font-size:15px}
.alerts-ios p{margin:0 0 6px} .alerts-ios ol{margin:0;padding-left:20px} .hero-help a{color:#fff;font-weight:600}
.rate{font-size:12px;font-weight:650;border-radius:999px;padding:2px 9px;border:1px solid currentColor;line-height:1.4}
.rate.excellent{color:var(--r-excellent)} .rate.good{color:var(--r-good)} .rate.fair{color:var(--r-fair)} .rate.poor{color:var(--r-poor)}
.fine{color:var(--muted);font-size:13px;margin:12px 2px 0}

/* ---------- stat detail ---------- */
.tabs{display:flex;gap:4px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:4px;margin:4px 0 14px}
.tabs a{flex:1;text-align:center;padding:8px 4px;border-radius:9px;color:var(--muted);text-decoration:none;font-size:14px;font-weight:600}
.tabs a[aria-current]{background:var(--brand);color:#fff}
.detail .big{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-bottom:10px}
.detail .big .stat-num b{font-size:44px}
.detail .big .stat-cap{flex-basis:100%;font-size:14px}
.detail .sub{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.chart{display:block;width:100%;height:auto;overflow:visible}
.chart .grid{stroke:var(--grid);stroke-width:1}
.chart .ylab,.chart .xlab{fill:var(--muted);font:11px var(--f-ui)}
.chart .ylab{paint-order:stroke;stroke:var(--panel);stroke-width:4px;stroke-linejoin:round}
.chart .nodata{fill:var(--muted);font:13px var(--f-ui)}
.chart-line{fill:none;stroke:var(--chart);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.totals{margin:14px 0 0;font-size:14px;color:var(--muted)} .totals b{color:var(--ink)}
.events{list-style:none;margin:6px 0 0;padding:0}
.events li{display:flex;align-items:center;gap:10px;padding:11px 0;border-top:1px solid var(--line)}
.ev-dot{width:9px;height:9px;border-radius:50%;background:var(--bad);flex:none}
.ev-main{flex:1;display:flex;flex-direction:column} .ev-main span{color:var(--muted);font-size:14px}
.ev-dur{font-weight:600;font-variant-numeric:tabular-nums}
.about{padding:2px 4px} .about h2{font-size:18px} .about p{color:var(--muted);margin:0;font-size:15px}

@media (min-width:700px){ h1{font-size:32px} .main{padding-top:28px} .stats{grid-template-columns:1fr 1fr} }


/* ---------- hero scene (house → poles → HCG data center) ----------
   Light mode: daytime over the Blue Ridge. Dark mode: the night scene that matches the speed test. */
.hero{padding:0;text-align:left;background:#cfe9f8;border-radius:18px}
.hero::after{display:none}
.hero-status{position:absolute;top:10px;left:50%;right:auto;transform:translateX(-50%);z-index:2;display:inline-flex;white-space:nowrap;
  padding:6px 14px 6px 12px;border-radius:999px;background:rgba(255,255,255,.82);color:#1d1630;font-size:19px;box-shadow:0 2px 10px rgba(20,40,80,.15)}
.scene{display:block;width:100%;height:auto}

/* day (default) */
.sky-a{stop-color:#6fbbec} .sky-b{stop-color:#e3f3fc}
.stars{display:none}
.sun{fill:#ffe27a} .sun-glow{fill:#fff3b8;opacity:.6}
.cloud ellipse{fill:#fff;opacity:.9} .cloud.c2 ellipse{opacity:.75}
.ridge-far{fill:#93b4d1} .ridge-near{fill:#5e8f73}
.gr-a{stop-color:#7fae63} .gr-b{stop-color:#5a8a45}
.road{fill:#8c8b93} .road-line{stroke:#f4f1e6;stroke-width:1.2;stroke-dasharray:4 6;fill:none}
.glow-a{stop-color:#ffffff;stop-opacity:.55} .glow-b{stop-color:#ffffff;stop-opacity:0}
.dc rect{fill:#ecebf2} .dc .dc-roof{fill:#b9b2cc} .dc .dc-win{fill:#5b9bd5}
.pole{stroke:#7b5b3e;stroke-linecap:round}
.splice{fill:#3d3a44;stroke:#25222b;stroke-width:.5}
.strand,.drop{fill:none;stroke:#5810d6;stroke-width:1.4;stroke-linecap:round}
.strand-glow,.drop-glow{fill:none;stroke:#b48cff;stroke-width:4;opacity:.5;stroke-linecap:round}
.pulse{fill:#fff;stroke:#5810d6;stroke-width:.8}
.h-roof{fill:#6a4c4a} .h-wall{fill:#f4ecda} .h-chim{fill:#8b5a48} .h-door{fill:#7b5b3e}
.h-win{fill:#a9dcf7}
.hero.online .dc-win{animation:dcblink 2.6s ease-in-out infinite alternate}
.hero.online .dc-win:nth-child(odd){animation-delay:.9s}
@keyframes dcblink{from{opacity:1}to{opacity:.5}}
.hero.offline .strand-glow,.hero.offline .drop-glow,.hero.unknown .strand-glow,.hero.unknown .drop-glow{display:none}
.hero.offline .strand,.hero.unknown .strand,.hero.unknown .drop{stroke:#8f8aa0}
.hero.offline .drop{stroke:#e5484d;stroke-dasharray:3 3}
.hero.offline .h-win{fill:#c3cad3}
.fault circle{fill:#e5484d} .fault path{stroke:#fff;stroke-width:1.6;stroke-linecap:round} .fault circle + path + circle{fill:#fff}

/* night (phone in dark mode) */
/* dark theme (the app is always dark) */
.hero{background:#0b0814}
  .hero-status{color:#fff;background:rgba(11,8,20,.55);box-shadow:none}
  .sky-a{stop-color:#0b0814} .sky-b{stop-color:#2a1650}
  .stars{display:inline} .stars circle{fill:#fff}
  .day{display:none}
  .ridge-far{fill:#22164a} .ridge-near{fill:#170f30}
  .gr-a{stop-color:#140d27} .gr-b{stop-color:#0b0814}
  .road{fill:#1a1330} .road-line{stroke:#3d3160}
  .glow-a{stop-color:#8a5cff;stop-opacity:.55} .glow-b{stop-color:#8a5cff;stop-opacity:0}
  .dc rect{fill:#2b1f4f} .dc .dc-roof{fill:#3d2c70} .dc .dc-win{fill:#ffcd57}
  .pole{stroke:#4d4268}
  .splice{fill:#2b2342;stroke:#7a68ad}
  .strand,.drop{stroke:#d6c4ff;stroke-width:1.3}
  .strand-glow,.drop-glow{stroke:#8a5cff;stroke-width:4.5;opacity:.75}
  .pulse{fill:#ffe7a3;stroke:none}
  .h-roof{fill:#2c2346} .h-wall{fill:#211a38} .h-chim{fill:#2c2346} .h-door{fill:#3a2f5c}
  .h-win{fill:#ffcd57}
  .hero.online .h-win{filter:drop-shadow(0 0 3px rgba(255,205,87,.8))}
  .hero.offline .strand,.hero.unknown .strand,.hero.unknown .drop{stroke:#6c6188}
  .hero.offline .drop{stroke:#ff6b5f}
  .hero.offline .h-win{fill:#2c2346}
  .fault circle{fill:#ff6b5f}

@media (prefers-reduced-motion:reduce){.pulses{display:none}.hero.online .dc-win{animation:none}}
.hero-device{display:flex;align-items:center;gap:12px;padding:12px 16px 14px;background:linear-gradient(90deg,var(--brand-2),var(--brand));color:#fff;position:relative;z-index:1}
.hero-device .hero-name{margin:0;font-size:21px}
.hero-device .hero-addr{margin:2px 0 0}
.hero-photo{width:58px;height:58px;flex:none;border-radius:12px;background:#fcfaf7;object-fit:contain;padding:4px}
.hero-photo.generic{background:rgba(255,255,255,.14);padding:0}
.gm-body{fill:#f4f0fb} .gm-edge{fill:none;stroke:rgba(29,22,48,.18);stroke-width:1} .gm-foot{fill:rgba(255,255,255,.4)}
.gm-led{fill:#4fe39a} .hero.offline .gm-net{fill:#ff6b5f} .hero.unknown .gm-led{fill:#b8b0c8}
.hero .hero-help{margin:0;border-radius:0;background:#3a0f1e;color:#fff;max-width:none;text-align:center;padding:10px 16px}

/* speed test button under the live panel */
.live{margin-bottom:10px}
.btn.speed-test{display:flex;align-items:center;justify-content:center;gap:8px;margin:0 0 22px;text-decoration:none}
.btn.speed-test svg{flex:none}

/* signal shown as a word */
.stat-num.word b{font-size:30px;letter-spacing:-.01em}
.detail .big .stat-num.word b{font-size:40px}
.word.excellent b{color:var(--r-excellent)} .word.good b{color:var(--r-good)} .word.poor b{color:var(--r-fair)} .word.bad b{color:var(--r-poor)}
.rate.bad{color:var(--r-poor)}
.band-bad{fill:rgba(194,42,42,.10)} .band-poor{fill:rgba(201,149,18,.10)} .band-good{fill:rgba(47,125,158,.07)} .band-excellent{fill:rgba(31,138,91,.07)}
.brand .brand-name{font-weight:650;font-size:18px;letter-spacing:.01em;line-height:1.1}
@media (max-width:360px){ .brand .brand-name{font-size:16px} }

/* ---------- Wi-Fi card ---------- */
.wifi-title{margin-top:22px}
.wifi-head{display:flex;align-items:center;gap:10px}
.wifi-ico{width:26px;height:26px;color:var(--chart);flex:none}
.wifi-note{color:var(--muted);font-size:15px}
.wifi-list{display:grid;grid-template-columns:1fr;gap:2px;margin:12px 0 0}
.wifi-list dt{color:var(--muted);font-size:13px;font-weight:600;margin-top:8px}
.wifi-list dt:first-child{margin-top:0}
.wifi-list dd{margin:0;font-size:19px;font-weight:600;overflow-wrap:anywhere}
.wifi-row{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.wifi-label{display:block;color:var(--muted);font-size:13px;font-weight:600}
.wifi-value{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px}
.wifi-dots{font-size:20px;letter-spacing:.12em;color:var(--ink)}
.wifi-change{width:auto;margin:0}
.wifi-msg{margin:10px 0 0}
dialog.sheet{border:1px solid var(--line);border-radius:16px;padding:20px 18px 16px;max-width:min(380px,calc(100vw - 32px));background:var(--panel);color:var(--ink);
  box-shadow:0 18px 50px rgba(20,10,40,.35)}
dialog.sheet::backdrop{background:rgba(4,2,10,.72)}
dialog.sheet h2{font-size:21px;margin:0 0 8px}
dialog.sheet p{margin:0 0 16px;color:var(--muted);font-size:15px}
dialog.sheet form{margin:0}

/* "Internet" with the MAC's last 4 underneath */
.hero-device .hero-mac{margin:1px 0 0;font-size:13px;font-weight:600;letter-spacing:.04em;opacity:.8;font-variant-numeric:tabular-nums}
.hero-device .hero-addr{margin-top:3px}
.dev-name small.dev-mac{display:block;font-size:12.5px;font-weight:500;color:var(--muted);letter-spacing:.03em;margin-top:1px}

.restart-title{margin-top:22px}
.restart p{margin:0 0 12px}
.restart .btn{margin:0}
.foot .version{margin-top:6px;font-size:12px;opacity:.75}

/* install banner */
.install{display:flex;align-items:center;gap:10px;max-width:640px;margin:12px auto 0;padding:10px 12px;width:calc(100% - 32px);
  background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:0 2px 10px rgba(29,22,48,.06)}
.install[hidden]{display:none}
.install img{border-radius:10px;flex:none}
.install-text{flex:1;min-width:0;display:flex;flex-direction:column;font-size:14px;line-height:1.35}
.install-text span{color:var(--muted);font-size:13px}
.install .btn{width:auto;margin:0;flex:none}
.install-x{background:none;border:0;color:var(--muted);font-size:24px;line-height:1;padding:2px 4px;cursor:pointer;flex:none}
.fine.center{text-align:center}
/* install check page */
.checks{list-style:none;margin:12px 0;padding:0;font-size:14px}
.checks li{padding:8px 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:2px;word-break:break-word}
.checks li span{color:var(--muted);font-size:12.5px}
.checks li.ok b{color:var(--ok)} .checks li.bad b{color:var(--bad)} .checks li.info b,.checks li.pending b{color:var(--ink)}
/* Network sheet: connected devices */
.wifi-net-hint{color:var(--muted);font-size:15px}
.net-open{width:auto;margin:0}
dialog.net-sheet{width:min(420px,calc(100vw - 32px));max-width:none;max-height:min(640px,calc(100vh - 48px));overflow:auto}
.net-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.net-top h2{margin:0}
.net-refresh{background:none;border:1px solid var(--line);color:var(--ink);border-radius:999px;width:34px;height:34px;font-size:18px;cursor:pointer}
.net-refresh:disabled{opacity:.5}
dialog.sheet p.net-note{margin:6px 0 10px;color:var(--ink);font-weight:600}
.net-list{list-style:none;margin:0 0 12px;padding:0}
.net-dev{border-top:1px solid var(--line)}
.net-main{display:flex;align-items:center;gap:12px;width:100%;padding:10px 0;background:none;border:0;color:inherit;font:inherit;text-align:left;cursor:pointer}
.net-main:disabled{cursor:default}
.net-pen{width:18px;height:18px;flex:none;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.net-edit{padding:12px 0 14px}
.net-edit-label{display:block;color:var(--muted);font-size:13px;font-weight:600}
.net-edit-label input{display:block;width:100%;margin-top:6px}
dialog.sheet p.net-edit-info{margin:8px 0 0;font-size:13px}
dialog.sheet p.net-edit-err{margin:8px 0 0;font-size:14px;color:var(--bad)}
.net-edit-btns{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
.net-edit-btns .btn{width:auto;margin:0;min-width:84px}
.net-edit-btns .net-reset{margin:0 0 0 auto;font-size:14px}
.net-ico{width:24px;height:24px;flex:none;color:var(--chart)}
.net-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.net-txt b{font-size:16px;overflow-wrap:anywhere}
.net-txt span{color:var(--muted);font-size:13px}
.net-mac{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;flex:none}
.net-dev.idle .net-main{opacity:.55}
.net-sub{color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding:14px 0 4px}
dialog.sheet p.net-read{margin:0 0 14px}
/* equipment behind a bridge modem */
.cpe-list{list-style:none;margin:12px 0 0;padding:0}
.cpe{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.cpe-ico{width:26px;height:26px;flex:none;color:var(--chart);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cpe-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.cpe-txt b{font-size:17px}
.cpe-txt span{color:var(--muted);font-size:13px}
.cpe-mac{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;flex:none}
.cpe.idle{opacity:.55}
/* staff "view as customer" banner */
.viewbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:8px 16px;background:#ffcd57;color:#1d1630;font-size:14px;line-height:1.35}
.viewbar form{margin:0}
.viewbar-exit{background:#1d1630;color:#fff;border:0;border-radius:8px;padding:7px 12px;font:600 14px var(--f-ui);cursor:pointer}
/* monthly data use */
.ub-down{fill:var(--chart)} .ub-down.today{fill:#e2d4ff} .ub-up{fill:#6cc3e6} .ub-future{fill:var(--line)}
.usage-fig{margin:10px 0 6px}
.usage-chart{display:block;width:100%;height:170px}
.ub-label{fill:var(--muted);font:10px var(--f-ui)}
.usage-split{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;margin:6px 0 0;font-size:15px}
.usage-split .key{width:10px;height:10px;border-radius:2px;display:inline-block;margin-left:6px}
.usage-split .key:first-child{margin-left:0}
.usage-split .key.down{background:var(--chart)} .usage-split .key.up{background:#6cc3e6}
/* HCG sign above the data center */
.sign-text{fill:#f1edf8;font:700 7.2px var(--f-ui);letter-spacing:.01em;paint-order:stroke;stroke:rgba(11,8,20,.6);stroke-width:1.2px}
.sign-post{stroke:#8f86a8;stroke-width:1.2}
/* notices */
.notice-card{display:flex;flex-direction:column;gap:2px;margin:0 0 14px;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:var(--panel)}
.notice-card.outage{border-color:#6b2a2a;background:#2a1418}
.notice-card.maint{border-color:#4a3a86;background:#1f1840}
.notice-card.fixed{border-color:#1f5a40;background:#122a22}
.nc-label{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.notice-card.outage .nc-label{color:#ff9a90} .notice-card.maint .nc-label{color:#c4a8ff} .notice-card.fixed .nc-label{color:#4fd394}
.nc-title{font-size:17px}
.nc-when{color:var(--muted);font-size:14px}
.nc-msg,.nc-cause{margin:6px 0 0;font-size:15px}
.hero .hero-help.known{background:#1f1840}
.ev-cause{display:block;color:var(--muted);font-size:13px;margin-top:2px}
/* troubleshooter */
.btn.help-btn{display:block;text-align:center;text-decoration:none;margin:0 0 10px}
.hchecks{list-style:none;margin:6px 0 0;padding:0}
.chk{display:flex;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.chk:first-child{border-top:0}
.chk-ico{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:14px;color:#120e1c}
.chk.ok .chk-ico{background:#4fd394} .chk.warn .chk-ico{background:#f0bf4f} .chk.bad .chk-ico{background:#ff7a70} .chk.info .chk-ico{background:#a59cbd}
.chk > span:last-child{display:flex;flex-direction:column}
.chk b{font-size:16px} .chk span span{color:var(--muted);font-size:14px}
.verdict.known{border-color:#6b2a2a} .verdict.line{border-color:#6b5a1f} .verdict.home{border-color:#1f5a40} .verdict.offline{border-color:#6b2a2a}
.steps{margin:8px 0 6px;padding-left:22px}
.steps li{margin:0 0 10px;line-height:1.45}
.btn.inline{display:inline-block;width:auto;margin:8px 0 0;text-decoration:none}
.tip{background:#1f1840;border-radius:10px;padding:10px 12px;font-size:15px}
.help-form fieldset{border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:0 0 14px}
.help-form legend{font-weight:600;padding:0 4px}
.help-form label.radio{display:flex;align-items:center;gap:10px;padding:6px 0;font-weight:500}
.help-form label.radio input{width:20px;height:20px;margin:0;accent-color:#c4a8ff}
.help-form textarea{display:block;width:100%;margin-top:6px;font:16px var(--f-ui);padding:10px 12px;border-radius:10px;border:1px solid var(--field-line);background:var(--field);color:var(--ink)}
.help-form > label{display:block;margin:0 0 14px;font-weight:600}
.done-card h2{color:#4fd394}
/* account additions */
.on-line{margin:0 0 10px}
.tag.ok{background:#4fd394;color:#120e1c}
.invite-new{background:#1f1840;border-radius:12px;padding:12px 14px;margin:8px 0 12px}
.invite-new p{margin:0 0 8px}
.invite-link code{display:block;word-break:break-all;font-size:13px;background:#120e1c;padding:8px 10px;border-radius:8px;user-select:all}
.invite-btns{display:flex;gap:10px;margin:0 0 8px}
.invite-btns .btn{width:auto;margin:0}
.hh-list li{padding:4px 0}
.hh-invites li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:4px 0;font-size:14px}
.hh-invites form{margin:0}
.hh-invites .link{margin:0}
dialog.sheet p.net-hint{margin:0 0 14px;background:#1f1840;color:var(--ink);border-radius:10px;padding:10px 12px;font-size:14px}
/* sign-up */
.auth-card h2.step{font:700 15px var(--f-ui);color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin:18px 0 8px}
.auth-card label .muted.small{display:block;margin-top:4px;font-weight:400}
.btn.signup-link{display:block;text-align:center;text-decoration:none;margin:14px 0 4px}

/* support request status */
.req-card h2{margin-bottom:10px}
.reqs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.req{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--field);color:var(--ink);text-decoration:none}
.req:hover{border-color:var(--field-line)}
.req-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.req-visit{font-weight:600;color:#c4a8ff}
.req-badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap;background:#2c2440;color:var(--ink)}
.req-badge.ok{background:#123024;color:#4fd394} .req-badge.info{background:#241b45;color:#c4a8ff} .req-badge.warn{background:#3a2e10;color:#f0bf4f}
.req-now{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px}
.req-steps{list-style:none;margin:0 0 16px;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;counter-reset:st}
.req-steps li{position:relative;padding-top:14px;font-size:12.5px;color:var(--muted);text-align:center}
.req-steps li::before{content:"";position:absolute;top:0;left:0;right:0;height:5px;border-radius:3px;background:var(--line)}
.req-steps li.done::before{background:#4fd394} .req-steps li.now::before{background:#c4a8ff}
.req-steps li.now{color:var(--ink);font-weight:600}
.req-visit-box{display:flex;flex-direction:column;gap:2px;padding:12px 14px;margin:0 0 14px;border-radius:12px;background:#1f1840;border:1px solid #4a3a86}
.req-facts{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0 0 12px}
.req-facts dt{color:var(--muted)} .req-facts dd{margin:0} .pre{white-space:pre-wrap;overflow-wrap:anywhere}
