/* Harbottle Home Command Centre: styles. Built to the two visual references. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #f4f9f7;
  --bg2: #eaf5f0;
  --ink: #0f2347;
  --ink2: #34476a;
  --mute: #5b6c84;
  --line: #e1ebe8;
  --card: rgba(255, 255, 255, .9);
  --card-solid: #ffffff;
  --shadow: 0 6px 22px rgba(36, 84, 72, .08), 0 1px 2px rgba(36, 84, 72, .05);
  --shadow-lg: 0 18px 50px rgba(20, 50, 60, .22);
  --green: #1f9d55;
  --green-ink: #167a40;
  --green2: #34b868;
  --mint: #d6f2e1;
  --mint2: #e9f8ef;
  --teal: #0fa38c;
  --blue: #2f7df6;
  --blue-ink: #1d5fd0;
  --blue-soft: #dbeafe;
  --purple: #8b3ffc;
  --purple-ink: #6d28d9;
  --purple-soft: #eadcff;
  --amber: #f0a22e;
  --amber-ink: #8a5a00;
  --red: #e5484d;
  --red-ink: #b42329;
  --beige: #fcf0cf;
  --beige2: #fdf6e1;
  --sidebar: rgba(255, 255, 255, .72);
  --chip-bg: #eef3f2;
  --focus: #1d6ff2;
  --sheet-bg: #ffffff;
  --backdrop: rgba(12, 28, 40, .45);
  --demo-h: 0px;
  --nav-h: 72px;
  --gutter: 16px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1920;
  --bg2: #0e222a;
  --ink: #eaf3f8;
  --ink2: #c4d3df;
  --mute: #9fb2c1;
  --line: #233741;
  --card: rgba(20, 38, 48, .92);
  --card-solid: #14262f;
  --shadow: 0 6px 22px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
  --green: #4fd387;
  --green-ink: #6fe0a0;
  --green2: #45c97d;
  --mint: #1c4636;
  --mint2: #173629;
  --teal: #2fd1b6;
  --blue: #6aa5ff;
  --blue-ink: #8dbbff;
  --blue-soft: #1c3558;
  --purple: #b183ff;
  --purple-ink: #c7a6ff;
  --purple-soft: #36295a;
  --amber: #f5b64e;
  --amber-ink: #f8cb7a;
  --red: #ff7a7f;
  --red-ink: #ff9ea2;
  --beige: #3a3220;
  --beige2: #2e2918;
  --sidebar: rgba(14, 30, 38, .8);
  --chip-bg: #1d333d;
  --focus: #7db0ff;
  --sheet-bg: #14262f;
  --backdrop: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1920; --bg2: #0e222a; --ink: #eaf3f8; --ink2: #c4d3df; --mute: #9fb2c1; --line: #233741;
    --card: rgba(20, 38, 48, .92); --card-solid: #14262f;
    --shadow: 0 6px 22px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .3); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .6);
    --green: #4fd387; --green-ink: #6fe0a0; --green2: #45c97d; --mint: #1c4636; --mint2: #173629; --teal: #2fd1b6;
    --blue: #6aa5ff; --blue-ink: #8dbbff; --blue-soft: #1c3558; --purple: #b183ff; --purple-ink: #c7a6ff; --purple-soft: #36295a;
    --amber: #f5b64e; --amber-ink: #f8cb7a; --red: #ff7a7f; --red-ink: #ff9ea2; --beige: #3a3220; --beige2: #2e2918;
    --sidebar: rgba(14, 30, 38, .8); --chip-bg: #1d333d; --focus: #7db0ff; --sheet-bg: #14262f; --backdrop: rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  min-height: 100vh;
}
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nm { color: var(--mute); font-weight: 500; font-size: .85em; }

/* ---------- page background ---------- */
.bg-art { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(190, 232, 204, .55), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(205, 238, 224, .6), transparent 70%),
    linear-gradient(160deg, #fcfefd 0%, var(--bg) 45%, #eef6f5 100%); }
:root[data-theme="dark"] .bg-art { background:
    radial-gradient(900px 500px at 78% -8%, rgba(40, 110, 80, .28), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(30, 90, 80, .25), transparent 70%),
    linear-gradient(160deg, #0d1e26 0%, var(--bg) 60%, #0a161c 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bg-art { background:
    radial-gradient(900px 500px at 78% -8%, rgba(40, 110, 80, .28), transparent 70%),
    radial-gradient(700px 500px at 0% 100%, rgba(30, 90, 80, .25), transparent 70%),
    linear-gradient(160deg, #0d1e26 0%, var(--bg) 60%, #0a161c 100%); } }
.bg-art svg { position: absolute; filter: blur(5px); opacity: .75; }
.bg-art .bgl-tr { top: -30px; right: -70px; width: 300px; opacity: .6; }
@media (min-width: 1200px) { .bg-art .bgl-tr { top: -60px; right: -80px; width: 520px; } }
.bg-art .bgl-bl { bottom: -40px; left: -60px; width: 300px; filter: blur(3px); }
:root[data-theme="dark"] .bg-art svg { opacity: .22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bg-art svg { opacity: .22; } }

.demo-ribbon { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 400; pointer-events: none;
  background: #f0a22e; color: #3a2500; font-weight: 800; font-size: 11px; letter-spacing: .12em; padding: 2px 14px 3px;
  border-radius: 0 0 10px 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); white-space: nowrap; }

/* ---------- shell ---------- */
.shell { position: relative; z-index: 1; min-height: 100vh; }
.main { padding: calc(14px + env(safe-area-inset-top)) var(--gutter) calc(var(--nav-h) + 36px + env(safe-area-inset-bottom)); max-width: 1100px; margin: 0 auto; }
html.demo .main { padding-top: calc(32px + env(safe-area-inset-top)); }
.sidebar { display: none; }

/* ---------- cards & common bits ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; backdrop-filter: blur(6px); }
.card-pad { padding: 18px; }
.card h2, .ctitle { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.chead { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.chead .grow { flex: 1; min-width: 0; }
.link { color: var(--green-ink); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 2px; }
.card .link { min-height: 44px; margin: -8px 0; }
.link svg { width: 14px; height: 14px; }
.green { color: var(--green-ink); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green2); display: inline-block; flex: none; }
.dot.blue { background: var(--blue); } .dot.purple { background: var(--purple); } .dot.amber { background: var(--amber); } .dot.red { background: var(--red); } .dot.grey { background: #9aa9b8; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--chip-bg); color: var(--ink2); white-space: nowrap; line-height: 1.5; }
.chip.conf-confirmed { background: var(--mint); color: var(--green-ink); }
.chip.conf-likely { background: #fdebc8; color: #7a4d00; }
.chip.conf-unknown { background: var(--chip-bg); color: var(--mute); }
:root[data-theme="dark"] .chip.conf-likely { background: #4a3a14; color: #f8cb7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.conf-likely { background: #4a3a14; color: #f8cb7a; } }
.chip.wifi { background: var(--mint); color: var(--green-ink); padding: 3px 9px; font-size: 12px; font-weight: 600; }
.chip.eth { background: var(--blue-soft); color: var(--blue-ink); padding: 3px 9px; font-size: 12px; font-weight: 600; }
.chip svg { width: 13px; height: 13px; }
.chip.ok { background: var(--mint); color: var(--green-ink); } .chip.bad { background: #fde1e2; color: var(--red-ink); } .chip.warn { background: #fdebc8; color: #7a4d00; } .chip.new { background: var(--purple-soft); color: var(--purple-ink); }
:root[data-theme="dark"] .chip.bad { background: #4d2427; } :root[data-theme="dark"] .chip.warn { background: #4a3a14; color: #f8cb7a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.bad { background: #4d2427; } :root:not([data-theme="light"]) .chip.warn { background: #4a3a14; color: #f8cb7a; } }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card-solid); font-weight: 700; font-size: 15px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.btn.primary { background: linear-gradient(135deg, #1fae6a, #12a08e); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(20, 160, 120, .3); }
.btn.danger { background: var(--red); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.big { min-height: 56px; font-size: 17px; width: 100%; border-radius: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 20px; height: 20px; }
.iconbtn { width: 44px; height: 44px; border-radius: 14px; border: 0; background: transparent; display: inline-grid; place-items: center; position: relative; }
.iconbtn svg { width: 24px; height: 24px; }

/* ---------- banners ---------- */
.banners { display: grid; gap: 8px; margin-bottom: 12px; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.banner svg { width: 20px; height: 20px; margin-top: 1px; }
.banner small { display: block; font-weight: 500; opacity: .9; font-size: 13px; }
.banner.warn { background: #fdf0cf; color: #6b4300; border-color: #f3dc9b; }
.banner.crit { background: #fde3e4; color: #8f1a20; border-color: #f5b9bc; }
.banner.info { background: var(--blue-soft); color: #173f86; border-color: #b9d3fb; }
:root[data-theme="dark"] .banner.warn { background: #3d3216; color: #f8d58b; border-color: #5b4a1e; }
:root[data-theme="dark"] .banner.crit { background: #45201f; color: #ffb0b3; border-color: #6a2c2e; }
:root[data-theme="dark"] .banner.info { background: #17304f; color: #b7d3ff; border-color: #25497a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .banner.warn { background: #3d3216; color: #f8d58b; border-color: #5b4a1e; }
  :root:not([data-theme="light"]) .banner.crit { background: #45201f; color: #ffb0b3; border-color: #6a2c2e; }
  :root:not([data-theme="light"]) .banner.info { background: #17304f; color: #b7d3ff; border-color: #25497a; }
}

/* ---------- skeleton ---------- */
.skel { background: linear-gradient(90deg, var(--line) 25%, rgba(255, 255, 255, .5) 50%, var(--line) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: 10px; min-height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.errbox { text-align: center; padding: 28px 18px; display: grid; gap: 12px; justify-items: center; }
.empty { text-align: center; padding: 28px 16px; color: var(--mute); display: grid; gap: 8px; justify-items: center; }
.empty .ic { width: 40px; height: 40px; color: var(--green2); }
.empty h3 { color: var(--ink); font-size: 17px; }

/* ---------- mobile header & overview ---------- */
.mhead { display: flex; align-items: center; gap: 12px; min-height: 60px; margin-bottom: 4px; }
.mhead .logo { width: 62px; height: auto; }
.mhead .t { flex: 1; min-width: 0; }
.brand-name { font-weight: 700; font-size: 21px; letter-spacing: -.02em; line-height: 1.15; }
.brand-sub { font-size: 14px; color: var(--ink2); }
.mhead .live { display: none; }
.page-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 14px; }
.page-sub { color: var(--mute); margin: -8px 0 14px; font-size: 14px; }

.hero { display: grid; justify-items: center; padding: 8px 0 14px; text-align: center; }
.ring-wrap { position: relative; width: 168px; height: 168px; }
.ring-wrap svg { width: 100%; height: 100%; }
.ring-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; line-height: 1; font-size: 46px; font-weight: 800; letter-spacing: -.03em; }
.ring-num small { font-size: 26px; font-weight: 700; margin-left: 1px; }
.ring-num.nm2 { font-size: 15px; font-weight: 600; color: var(--mute); text-align: center; padding: 0 20px; }
.hero h2 { font-size: 21px; font-weight: 700; margin-top: 10px; }
.hero .lbl { font-size: 21px; font-weight: 800; color: var(--green-ink); line-height: 1.2; }
.hero .lbl.fair { color: var(--amber-ink); } .hero .lbl.poor { color: var(--red-ink); }
.hero button.parts { background: none; border: 0; color: var(--mute); font-size: 13px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tile { border-radius: 20px; padding: 14px 14px 12px; position: relative; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 98px; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 10px; align-content: start; background: var(--card); }
.tile .wave { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 0; }
.tile > * { position: relative; z-index: 1; }
.tile .ib { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.tile.up .ib { background: var(--purple-soft); color: var(--purple); }
.tile.dev .ib { background: var(--blue-soft); color: var(--blue); }
.tile.act .ib { background: var(--purple-soft); color: #5b43d6; }
.tile .ib svg { width: 24px; height: 24px; stroke-width: 2.2; }
.tile .num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; align-self: center; }
.tile .num.sm { font-size: 20px; }
.tile .sub { grid-column: 2; font-size: 14.5px; color: var(--ink2); line-height: 1.25; }
.tile .sub b { font-weight: 500; display: block; }
.tile.down { background: linear-gradient(180deg, #eef5ff, #f9fcff 70%); }
.tile.up { background: linear-gradient(180deg, #f3edff, #fbf9ff 70%); }
.tile.dev { background: linear-gradient(180deg, #eef7ff, #f8fcff 70%); }
.tile.act { background: linear-gradient(180deg, #f1edff, #faf9ff 70%); }
:root[data-theme="dark"] .tile.down, :root[data-theme="dark"] .tile.dev { background: linear-gradient(180deg, #172d47, #14262f 80%); }
:root[data-theme="dark"] .tile.up, :root[data-theme="dark"] .tile.act { background: linear-gradient(180deg, #2a2347, #14262f 80%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tile.down, :root:not([data-theme="light"]) .tile.dev { background: linear-gradient(180deg, #172d47, #14262f 80%); }
  :root:not([data-theme="light"]) .tile.up, :root:not([data-theme="light"]) .tile.act { background: linear-gradient(180deg, #2a2347, #14262f 80%); }
}

.section { margin-bottom: 14px; }
.hh-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 4px; border-bottom: 1px solid var(--line); min-height: 52px; }
.hh-head h2 { font-size: 21px; }
.arow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 64px; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; }
.arow:last-child { border-bottom: 0; }
.arow .ab { width: 48px; height: 48px; border-radius: 14px; background: var(--card-solid); box-shadow: 0 2px 8px rgba(30, 60, 70, .12); display: grid; place-items: center; flex: none; }
.arow .at { flex: 1; min-width: 0; }
.arow .an { font-weight: 700; font-size: 17px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow .al { color: var(--ink2); font-size: 14.5px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 1px; }
.arow .ag { color: var(--mute); font-size: 13.5px; }
.sbadge { width: 100%; height: 100%; border-radius: inherit; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 17px; }
.sbadge svg { width: 24px; height: 24px; stroke-width: 2.2; }
.sb-call, .sb-video { background: linear-gradient(135deg, #34b868, #139a8a); }
.sb-stream { background: linear-gradient(135deg, #f2564f, #d92d2d); }
.sb-browse { background: linear-gradient(135deg, #4e95ff, #2f6fe0); }
.sb-up { background: linear-gradient(135deg, #a068ff, #7b3fe4); }
.sb-down { background: linear-gradient(135deg, #4e95ff, #2f6fe0); }
.sb-idle { background: linear-gradient(135deg, #9fb0c0, #7f92a5); }
.sb-other { background: linear-gradient(135deg, #5f7ea6, #3f5d86); }

.grid2 { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.statcard { padding: 16px 18px; display: grid; gap: 4px; }
.statcard .k { font-size: 14px; color: var(--ink2); }
.statcard .v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.statcard .s { color: var(--mute); font-size: 14px; }
.tick { width: 24px; height: 24px; border-radius: 50%; background: var(--green2); color: #fff; display: inline-grid; place-items: center; }
.tick.warn { background: var(--amber); } .tick.crit { background: var(--red); }
.tick svg { width: 15px; height: 15px; stroke-width: 3; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 0 18px; min-height: 52px; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; }
.rows a.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; }
.rows .grow { flex: 1; min-width: 0; }
.rows .ico { width: 28px; height: 28px; display: grid; place-items: center; color: var(--blue); }

.tl { padding: 8px 18px 14px; }
.tl li { display: grid; grid-template-columns: 52px 14px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 0; }
.tl time { font-size: 13.5px; color: var(--ink2); padding-top: 1px; }
.tl .dot { margin-top: 5px; }
.tl .tt { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.tl .tx { font-size: 13.5px; color: var(--ink2); }

.alerts-card { background: linear-gradient(180deg, var(--beige), var(--beige2)); }
.alist li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 18px; }
.alist .ai { width: 32px; height: 32px; color: var(--green); }
.alist .ai.warn { color: var(--amber-ink); } .alist .ai.crit { color: var(--red); } .alist .ai.info { color: var(--blue); }
.alist .at1 { font-weight: 700; font-size: 15px; }
.alist .at2 { font-size: 13.5px; color: var(--ink2); }
.badge-n { min-width: 22px; height: 22px; border-radius: 11px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 6px; }
.badge-n.warn { background: var(--amber); color: #3a2500; } .badge-n.crit { background: var(--red); }

/* ---------- bottom nav ---------- */
.bnav { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; height: var(--nav-h); border-radius: 26px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: 0 10px 34px rgba(30, 60, 70, .2); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 7px; gap: 2px; max-width: 760px; margin: 0 auto; }
.bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--ink2); min-height: 44px; min-width: 0; }
.bnav a svg { width: 26px; height: 26px; }
.bnav a.on { background: var(--mint); color: var(--green-ink); }
.bnav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- sheets ---------- */
.backdrop { position: fixed; inset: 0; background: var(--backdrop); z-index: 200; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet { background: var(--sheet-bg); width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh; overflow: auto; border-radius: 26px 26px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: rise .24s ease; overscroll-behavior: contain; }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 10px; }
.sheet h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.sheet .lead { color: var(--ink2); margin-bottom: 14px; font-size: 15px; }
.sheet .acts { display: grid; gap: 10px; margin-top: 16px; }
.sheet .acts.two { grid-template-columns: 1fr 1fr; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (min-width: 768px) { .backdrop { align-items: center; } .sheet { border-radius: 26px; padding-bottom: 24px; } .sheet .grab { display: none; } }

.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 6px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--card-solid); text-align: left; margin-bottom: 8px; }
.opt .ot { flex: 1; min-width: 0; }
.opt .o1 { font-weight: 700; font-size: 16px; }
.opt .o2 { color: var(--mute); font-size: 13.5px; }
.opt.sel { border-color: var(--green2); background: var(--mint2); }
.opt .rad { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.opt.sel .rad { border-color: var(--green2); background: var(--green2); color: #fff; }
.opt .rad svg { width: 14px; height: 14px; stroke-width: 3; }
.opt[disabled] { opacity: .5; }
.steps { display: grid; gap: 4px; margin: 12px 0; }
.step { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; font-weight: 600; color: var(--mute); }
.step .si { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.step.now { color: var(--ink); } .step.now .si { border-color: var(--blue); border-top-color: transparent; animation: spin .9s linear infinite; }
.step.ok { color: var(--ink2); } .step.ok .si { background: var(--green2); border-color: var(--green2); color: #fff; }
.step .si svg { width: 15px; height: 15px; stroke-width: 3.2; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { text-align: center; display: grid; gap: 8px; justify-items: center; padding: 6px 0; }
.result .big-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--green2); color: #fff; }
.result .big-ic.wait { background: var(--blue); } .result .big-ic.fail { background: var(--red); }
.result .big-ic svg { width: 34px; height: 34px; stroke-width: 3; }
.evid { text-align: left; background: var(--chip-bg); border-radius: 12px; padding: 10px 12px; font-size: 13px; width: 100%; font-variant-numeric: tabular-nums; }
.evid li { padding: 2px 0; word-break: break-all; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .field > .lab { font-weight: 700; font-size: 14px; color: var(--ink2); }
.inp { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card-solid); width: 100%; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--card-solid); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.fchip.on { background: var(--mint); border-color: var(--green2); color: var(--green-ink); }
.fchip .n { font-size: 12px; background: var(--chip-bg); border-radius: 10px; padding: 0 7px; color: var(--ink2); }
.switch { position: relative; width: 56px; height: 44px; border: 0; background: none; padding: 0; flex: none; }
.switch::before { content: ""; position: absolute; left: 2px; top: 6px; width: 52px; height: 32px; border-radius: 16px; background: #b9c6cf; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 9px; left: 5px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); transition: transform .15s; }
.switch[aria-checked="true"]::before { background: var(--green2); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.swrap { min-height: 44px; display: inline-flex; align-items: center; }
.srow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 18px; border-top: 1px solid var(--line); }
.srow:first-child { border-top: 0; }
.srow .grow { flex: 1; min-width: 0; }
.srow .s1 { font-weight: 700; } .srow .s2 { color: var(--mute); font-size: 13.5px; }
.seg { display: inline-grid; grid-auto-flow: column; background: var(--chip-bg); border-radius: 14px; padding: 3px; }
.seg button { min-height: 44px; min-width: 64px; padding: 0 12px; border: 0; background: transparent; border-radius: 11px; font-weight: 700; font-size: 14px; }
.seg button[aria-pressed="true"] { background: var(--card-solid); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); color: var(--green-ink); }

/* ---------- lists: devices ---------- */
.search { position: relative; margin-bottom: 10px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--mute); }
.search .inp { padding-left: 44px; }
.dgrid { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
.dcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 76px; }
.dcard.isnew { border-color: var(--purple); box-shadow: 0 0 0 2px var(--purple-soft), var(--shadow); }
.dcard.off { opacity: .8; }
.dcard .di { width: 48px; height: 48px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; position: relative; }
.dcard .di .st { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--card-solid); background: var(--green2); }
.dcard .di .st.off { background: #9aa9b8; } .dcard .di .st.blocked { background: var(--red); }
.dcard .dt { flex: 1; min-width: 0; }
.dcard .dn { font-weight: 700; font-size: 16px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.dcard .dn span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dcard .ds { font-size: 13.5px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard .dm { font-size: 12.5px; color: var(--mute); }
.dcard .go { color: var(--mute); }
.dcard a.main-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 52px; }

/* ---------- device page ---------- */
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; color: var(--green-ink); }
.back svg { width: 20px; height: 20px; }
.dhead { display: flex; gap: 14px; align-items: center; padding: 16px 18px; }
.dhead .di { width: 60px; height: 60px; border-radius: 18px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.dhead .di svg { width: 32px; height: 32px; }
.dhead h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.dhead .meta { color: var(--ink2); font-size: 14px; }
.dhead .chips { margin-top: 6px; gap: 6px; }
.pip { padding: 18px; display: grid; gap: 12px; background: linear-gradient(180deg, #eef7f9, var(--card)); }
:root[data-theme="dark"] .pip { background: linear-gradient(180deg, #17303a, var(--card)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pip { background: linear-gradient(180deg, #17303a, var(--card)); } }
.pip .k { font-size: 13px; font-weight: 700; color: var(--ink2); letter-spacing: .04em; text-transform: uppercase; }
.pip .v { font-size: 22px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pip .v small { display: block; font-size: 14px; font-weight: 500; color: var(--ink2); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 14px 18px; font-size: 14.5px; }
.kv dt { color: var(--mute); } .kv dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.bw { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 18px 0; }
.bw .b { font-size: 22px; font-weight: 800; }
.bw .b small { font-size: 13px; font-weight: 500; color: var(--ink2); display: block; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink2); padding: 0 18px 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.tabs { display: flex; gap: 6px; padding: 0 18px; }
.tabs button { min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--card-solid); font-weight: 700; }
.tabs button[aria-selected="true"] { background: var(--mint); border-color: var(--green2); color: var(--green-ink); }
.rtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.rtable th { text-align: left; font-weight: 600; color: var(--ink2); padding: 8px 10px; background: rgba(120, 150, 150, .08); font-size: 13.5px; }
.rtable td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: middle; font-variant-numeric: tabular-nums; }
.rtable td.r, .rtable th.r { text-align: right; }
.cardlist li { padding: 10px 18px; border-top: 1px solid var(--line); display: grid; gap: 2px; font-size: 14px; }
.cardlist li:first-child { border-top: 0; }
.cardlist .c1 { font-weight: 700; overflow-wrap: anywhere; } .cardlist .c2 { color: var(--ink2); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.only-wide { display: none; }
.tl2 li { display: grid; grid-template-columns: 52px 14px minmax(0, 1fr); gap: 8px; padding: 8px 18px; align-items: start; }
.tl2 time { font-size: 13.5px; color: var(--ink2); }
.tl2 .dot { margin-top: 5px; }
.tl2 .tx { font-size: 14.5px; }
.sechead { padding: 16px 18px 8px; font-size: 18px; font-weight: 700; }

/* ---------- public IPs ---------- */
.ipcard { padding: 16px 18px; }
.ipcard .ipl { font-size: 13px; font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: .04em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ipcard .ipa { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; letter-spacing: -.01em; }
.devchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.devchip { min-height: 44px; padding: 0 14px; border-radius: 22px; background: var(--blue-soft); color: var(--blue-ink); border: 0; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.devchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--gutter); position: relative; z-index: 1; }
.login .box { width: 100%; max-width: 420px; padding: 28px 22px 22px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.login .logo { width: 96px; }
.login h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.login p { color: var(--ink2); }
.login .btn { width: 100%; }
.login .or { color: var(--mute); font-size: 13px; }
.login .err { color: var(--red-ink); font-weight: 600; font-size: 14px; }
.login form { display: grid; gap: 10px; width: 100%; text-align: left; }
.gicon { width: 22px; height: 22px; }

/* ---------- misc ---------- */
.pagehead { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; }
.pagehead h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; flex: 1; min-width: 0; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); min-height: 64px; }
.feed li:first-child { border-top: 0; }
.feed .ab { width: 44px; height: 44px; border-radius: 13px; overflow: hidden; flex: none; box-shadow: 0 2px 8px rgba(30, 60, 70, .12); }
.feed .ft { flex: 1; min-width: 0; }
.feed .f1 { font-weight: 700; }
.feed .f2 { color: var(--ink2); font-size: 14.5px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.feed .f3 { color: var(--mute); font-size: 13px; }
.feed .fr { text-align: right; font-size: 13px; color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; min-height: 52px; width: 100%; padding: 0 6px; border: 0; background: none; font-weight: 700; font-size: 16px; text-align: left; border-radius: 12px; }
.menu-list a.on { color: var(--green-ink); background: var(--mint2); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #38b27a, #12a08e); color: #fff; font-weight: 800; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(30, 60, 70, .25); }

@media (min-width: 768px) {
  :root { --gutter: 28px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .only-wide { display: block; } .only-narrow { display: none; }
  .ring-wrap { width: 200px; height: 200px; }
  .tl2 li { padding: 8px 22px; }
}

/* ---------- desktop (reference layout) ---------- */
@media (min-width: 1200px) {
  :root { --gutter: 24px; }
  .shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); }
  .sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--sidebar); border-right: 1px solid var(--line); backdrop-filter: blur(10px); overflow: hidden; padding: 38px 16px 24px; }
  .sidebar .brand { text-align: center; margin-bottom: 40px; }
  .sidebar .brand .logo { width: 100px; margin: 0 auto 8px; }
  .sidebar .brand-name { font-size: 22px; letter-spacing: -.02em; }
  .sidebar .brand-sub { font-size: 13px; }
  .snav { display: grid; gap: 0; margin-top: 5px; }
  .snav a { display: flex; align-items: center; gap: 18px; height: 53px; padding: 0 18px; border-radius: 15px; font-weight: 500; font-size: 16.5px; color: var(--ink); }
  .snav a svg { width: 24px; height: 24px; color: var(--ink2); }
  .snav a.on { background: var(--mint); } .snav a.on svg { color: var(--green); }
  .snav a:hover { background: var(--mint2); }
  .sleaf { position: absolute; left: -20px; bottom: 262px; width: 168px; pointer-events: none; }
  .sfoot { margin-top: auto; position: relative; display: grid; gap: 22px; margin-bottom: 78px; }
  .netcard { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: 16px; background: var(--card-solid); box-shadow: var(--shadow); border: 1px solid var(--line); }
  .netcard .dot { width: 16px; height: 16px; }
  .netcard .n1 { font-weight: 600; font-size: 16px; line-height: 1.25; white-space: nowrap; } .netcard .n2 { font-size: 11.5px; color: var(--ink2); white-space: nowrap; }
  .themetog { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; border: 0; background: none; margin: 0 auto; padding: 0 10px; }
  .themetog .trk { width: 46px; height: 28px; border-radius: 14px; background: var(--card-solid); border: 2px solid #3c4a63; position: relative; }
  .themetog .trk::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #2f3b55; transition: transform .15s; }
  .themetog[aria-checked="true"] .trk::after { transform: translateX(18px); }
  .themetog svg { width: 22px; height: 22px; } .themetog .sun { color: #f2a93b; } .themetog .moon { color: #4a5f8c; }
  .main { padding: 55px 22px 20px 22px; max-width: none; margin: 0; }
  html.demo .main { padding-top: 55px; }
  .bnav { display: none; }
  .dhead-top { display: flex; align-items: flex-start; justify-content: space-between; height: 93px; margin-bottom: 15px; }
  .welcome { padding-left: 23px; }
  .welcome h1 { font-size: 41px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 1px; }
  .welcome p { font-size: 21px; margin-top: 3px; color: var(--ink); font-weight: 400; }
  .hright { display: flex; align-items: center; gap: 0; margin-top: -10px; padding-right: 14px; }
  .livepill { display: flex; align-items: center; gap: 10px; padding: 0 22px 0 14px; font-size: 14.5px; height: 44px; }
  .livepill .dot { width: 10px; height: 10px; }
  .hsep { width: 1px; height: 40px; background: var(--line); margin: 0 14px 0 4px; }
  .bellbtn { width: 52px; height: 52px; }
  .bellbtn svg { width: 28px; height: 28px; }
  .bellbtn .bdg { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
  .avbtn { display: flex; align-items: center; gap: 4px; margin-left: 6px; padding: 0 4px 0 0; border: 0; background: none; min-height: 52px; }
  .avbtn .avatar { width: 80px; height: 80px; font-size: 26px; border-width: 5px; }
  .avbtn svg { width: 16px; height: 16px; margin-left: -4px; }
  .dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .main-wrap { max-width: 1600px; }
}
.ovd { display: grid; gap: 21px; }
.ovd .r { display: grid; gap: 16px; }
.ovd .r1 { grid-template-columns: 315fr 294fr 329fr 288fr; height: 174px; }
.ovd .r2 { grid-template-columns: 500fr 455fr 294fr; height: 206px; }
.ovd .r3 { grid-template-columns: 685fr 316fr 255fr; height: 306px; margin-bottom: 3px; }
.ovd .r > .card { height: 100%; min-width: 0; }
.ovd .r3 { margin-right: -6px; }
.c-status { padding: 18px 16px; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; }
.c-status .bigic { width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #e6f0ff, #cfe2ff); color: #2e75e8; margin-top: 2px; position: relative; z-index: 1; }
.c-status .bigic svg { width: 46px; height: 46px; stroke-width: 1.6; }
.c-status.router .bigic { background: radial-gradient(circle at 35% 30%, #e6f8ee, #cdeedb); color: #1f9d6a; border-radius: 50%; }
.c-status .k { font-size: 17px; margin-top: 14px; line-height: 1.2; position: relative; z-index: 1; }
.c-status .v { font-size: 28px; font-weight: 600; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; line-height: 1.15; position: relative; z-index: 1; margin-top: 7px; }
.c-status .s { font-size: 15.5px; color: var(--ink); margin-top: 8px; position: relative; z-index: 1; }
.c-status .wave { position: absolute; left: 0; right: 0; bottom: 0; height: 80px; z-index: 0; }
.c-status.router .wave { height: 70px; }
.c-thru { padding: 14px 14px 0 18px; position: relative; overflow: hidden; }
.c-thru .nums { display: flex; align-items: flex-start; gap: 10px; position: relative; z-index: 1; margin-top: 22px; }
.c-thru .nb { display: flex; gap: 6px; align-items: flex-start; }
.c-thru .nb svg { width: 26px; height: 26px; margin-top: 2px; stroke-width: 2.2; }
.c-thru .nb .big { white-space: nowrap; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.c-thru .nb .big small { font-size: 15px; font-weight: 500; margin-left: 2px; letter-spacing: 0; }
.c-thru .nb .lab { font-size: 15px; color: var(--ink2); margin-top: 1px; }
.c-thru .sep { width: 1px; background: var(--line); align-self: stretch; margin: 2px 4px; }
.c-thru .spark { position: absolute; left: 0; right: 0; bottom: 14px; height: 62px; z-index: 0; }
.c-usage { padding: 18px 20px; position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; align-content: start; }
.c-usage .ib { width: 54px; height: 54px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.c-usage .ib svg { width: 28px; height: 28px; stroke-width: 2.4; }
.c-usage .k { font-size: 17px; align-self: center; }
.c-usage .big { font-size: 36px; font-weight: 600; letter-spacing: -.02em; grid-column: 1 / -1; margin-top: 8px; line-height: 1.1; }
.c-usage .big small { font-size: 28px; }
.c-usage .s { grid-column: 1 / -1; font-size: 15.5px; margin-top: 12px; }
.c-usage .bars { position: absolute; right: 16px; bottom: 12px; width: 120px; height: 82px; }
.c-health { padding: 14px 20px 18px; display: flex; flex-direction: column; }
.c-health .chead { margin-top: 2px; }
.c-health .shieldic { width: 34px; height: 34px; color: var(--green); }
.c-health h2 { font-size: 22px; font-weight: 600; }
.pill-ex { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; background: var(--mint); color: var(--green-ink); font-weight: 600; font-size: 16.5px; padding: 8px 18px 8px 16px; border-radius: 999px; }
.pill-ex.fair { background: #fdebc8; color: #7a4d00; } .pill-ex.poor { background: #fde1e2; color: var(--red-ink); }
.c-health .chart { flex: 1; min-height: 0; margin: 0 -6px; position: relative; }
.c-health .chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-health .msg { font-size: 16px; color: var(--ink); margin-top: 2px; }
.c-conn { padding: 14px 20px; position: relative; }
.c-conn .chead h2 { font-size: 21px; font-weight: 600; }
.c-conn .chead svg { width: 30px; height: 30px; color: var(--ink2); }
.c-conn .big { font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-top: 18px; }
.c-conn .bs { font-size: 16.5px; margin-top: 4px; }
.c-conn .two { display: flex; gap: 48px; margin-top: 12px; }
.c-conn .two div { font-size: 20px; font-weight: 600; }
.c-conn .two span { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 400; margin-top: 3px; }
.c-conn .two div b { display: block; margin-left: 14px; font-weight: 600; font-size: 20px; }
.c-conn .ring2 { position: absolute; right: 22px; top: 36px; width: 148px; height: 148px; }
.c-conn .ring2 .hi { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); }
.c-conn .ring2 .hi svg { width: 62px; height: 62px; stroke-width: 1.5; }
.c-serv { padding: 14px 20px; }
.c-serv .chead h2 { font-size: 21px; font-weight: 600; }
.c-serv .chead svg { width: 30px; height: 30px; color: var(--ink2); }
.c-serv ul { margin-top: 14px; }
.c-serv li { display: block; padding: 0; min-height: 0; border: 0; }
.c-serv a { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px 22px; align-items: center; min-height: 43px; font-weight: 500; font-size: 16px; gap: 6px; border-radius: 10px; }
.c-serv a .ico svg { width: 22px; height: 22px; }
.c-serv a .cnt { font-weight: 600; font-size: 17px; text-align: right; }
.c-serv a > svg { width: 18px; height: 18px; color: var(--ink2); }
.c-live .chead { padding: 16px 20px 10px; }
.c-live .chead h2 { font-size: 21px; font-weight: 600; }
.c-live .chead .ic0 { width: 32px; height: 32px; color: var(--green); }
.ltable { width: 100%; border-collapse: collapse; font-size: 14.5px; table-layout: fixed; }
.ltable th { text-align: left; font-weight: 500; padding: 7px 0 7px 8px; background: rgba(120, 150, 150, .09); color: var(--ink); font-size: 14.5px; }
.ltable th:first-child { padding-left: 24px; }
.ltable td { padding: 0 0 0 8px; height: 34.4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ltable td:first-child { padding-left: 24px; }
.ltable .dv { display: flex; align-items: center; gap: 12px; }
.ltable .dv svg { width: 19px; height: 19px; color: var(--blue); flex: none; stroke-width: 2; }
.ltable .ac { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ltable .ac .ai { width: 19px; height: 19px; flex: none; display: grid; place-items: center; }
.ltable .ac .ai svg { width: 19px; height: 19px; }
.ltable .ac span.tx { overflow: hidden; text-overflow: ellipsis; }
.ltable tr.clk { cursor: pointer; }
.ltable tr.clk:hover { background: rgba(120, 180, 150, .08); }
.ltable a.rowa { display: contents; }
.c-recent .chead { padding: 18px 18px 6px; }
.c-recent .chead h2 { font-size: 21px; font-weight: 600; }
.c-recent .chead .ic0 { width: 28px; height: 28px; color: var(--ink2); }
.c-recent .tl { padding: 6px 18px; position: relative; }
.c-recent .tl li { padding: 7px 0 9px; grid-template-columns: 56px 12px minmax(0, 1fr); gap: 8px 6px; }
.c-recent .tl::before { content: ""; position: absolute; left: 76px; top: 16px; bottom: 30px; width: 0; }
.c-recent .tl time { font-size: 14px; color: var(--ink); }
.c-recent .tl .tt { font-size: 14.5px; font-weight: 600; }
.c-recent .tl .tt::before { content: "\2022"; margin: 0 6px 0 4px; color: var(--ink2); font-weight: 400; display: none; }
.c-alert .chead { padding: 18px 20px 4px; }
.c-alert .chead h2 { font-size: 20px; font-weight: 600; }
.c-alert .chead .ic0 { width: 28px; height: 28px; color: var(--ink2); }
.c-alert .alist li { padding: 14px 20px; }
.c-alert .alist .ai { width: 36px; height: 36px; margin-top: 2px; }
.c-alert .alist .at1 { font-size: 16px; font-weight: 600; }
.c-alert .alist .at2 { font-size: 14px; }
.c-alert .vbtn { display: inline-flex; align-items: center; justify-content: center; margin: 10px 0 0; min-height: 44px; padding: 0 22px; border-radius: 22px; border: 1px solid #e9dcae; background: rgba(255, 255, 255, .8); font-weight: 500; font-size: 15.5px; }
.c-alert .scroll { max-height: 238px; overflow: auto; }
.foot { position: relative; height: 67px; padding: 0 20px; display: flex; align-items: center; gap: 14px; overflow: hidden; }
.foot .hb { width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--green); display: grid; place-items: center; flex: none; }
.foot .hb svg { width: 24px; height: 24px; }
.foot .ft { font-size: 14.5px; position: relative; z-index: 1; }
.foot .ft b { font-weight: 600; }
.foot .art { position: absolute; right: 0; bottom: 0; height: 100%; width: 60%; max-width: 760px; }

/* ---------- tablet+ tweaks for the mobile layout ---------- */
@media (min-width: 768px) and (max-width: 1199px) {
  .main { max-width: 900px; }
  .tile { min-height: 110px; }
  .tile .num { font-size: 32px; }
  .bnav { max-width: 640px; }
}

/* ---------- landscape phones ---------- */
@media (max-height: 480px) and (orientation: landscape) and (max-width: 1199px) {
  .bnav { height: 56px; --nav-h: 56px; }
  .bnav a svg { width: 22px; height: 22px; } .bnav a { flex-direction: row; gap: 6px; font-size: 12px; }
  .bnav a span { display: inline; }
  .ring-wrap { width: 130px; height: 130px; } .ring-num { font-size: 36px; }
  .sheet { max-height: 94vh; max-height: 94dvh; }
}
@media (max-width: 359px) {
  .bnav a { font-size: 10.5px; } .brand-name { font-size: 19px; } .mhead .logo { width: 50px; }
  .tile { grid-template-columns: 36px minmax(0, 1fr); padding: 12px; } .tile .ib { width: 36px; height: 36px; } .tile .num { font-size: 26px; }
  .page-title, .pagehead h1 { font-size: 24px; }
  .sheet .acts.two { grid-template-columns: 1fr; }
  .tl li, .tl2 li { grid-template-columns: 46px 12px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 184, 104, .5); } 100% { box-shadow: 0 0 0 9px rgba(52, 184, 104, 0); } }
.dot.live { animation: pulse 1.8s infinite; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 30px); z-index: 300; background: #123; color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
@media (min-width: 1200px) { .toast { bottom: 28px; } }
.ltable { font-size: 14px; } .ltable .chip { font-size: 10px; padding: 1px 7px; } .ltable .ac { gap: 8px; }

.link { background: none; border: 0; padding: 0 2px; }
.hero .lbl.none { color: var(--mute); }
.toast { bottom: auto !important; top: calc(56px + env(safe-area-inset-top)); pointer-events: none; }
:root[data-theme="dark"] .wv-blue stop:first-child { stop-color: #2f5f9e; } :root[data-theme="dark"] .wv-green stop:first-child { stop-color: #2c7a55; } :root[data-theme="dark"] .wv-purple stop:first-child { stop-color: #5b43a5; }
:root[data-theme="dark"] .wave stop:last-child { stop-color: #14262f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wv-blue stop:first-child { stop-color: #2f5f9e; } :root:not([data-theme="light"]) .wv-green stop:first-child { stop-color: #2c7a55; } :root:not([data-theme="light"]) .wv-purple stop:first-child { stop-color: #5b43a5; }
  :root:not([data-theme="light"]) .wave stop:last-child { stop-color: #14262f; }
}
@media (min-width: 1200px) { .toast { top: auto; bottom: 28px !important; } }
.collect { color: var(--mute); font-size: 14px; font-weight: 500; margin: 0; padding: 18px 20px; }
.c-thru .spark .collect { padding: 14px 0 0 18px; }
.c-health .chart .collect { position: absolute; left: 6px; top: 40%; }
@media (min-width: 1200px) { .ltable td.wrapok { white-space: normal; height: auto; padding-top: 3px; padding-bottom: 3px; line-height: 1.25; } .ltable td .ac .tx { white-space: normal; } .ltable td { height: 34.4px; } }
.devcols { display: block; }
.dcol { min-width: 0; }
@media (min-width: 1200px) {
  .devcols { display: grid; grid-template-columns: minmax(380px, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
  .dcol:first-child .grid2 { grid-template-columns: minmax(0, 1fr); }
  .dcol > section:first-child { margin-top: 0 !important; }
  .dcol:last-child > section:first-child, .dcol:last-child > div:first-child { margin-top: 0 !important; }
}
