:root {
  color-scheme:light;
  --brand:#00b3b3; --brand-hover:#00a4a4; --brand-ink:#063b40;
  --ink:#193247; --muted:#637788; --muted-strong:#4f687b; --bg:#f3f6f8;
  --surface:#fff; --surface-soft:#f8fafb; --line:#dce6ec; --line-soft:#eaf0f4;
  --teal:#007b80; --teal-soft:#e9f7f6; --teal-line:#c7e9e6;
  --amber:#8d5d16; --amber-soft:#fff6e6; --amber-line:#efdbb4;
  --red:#b33943; --red-soft:#fff0f1; --red-line:#f0d1d5;
  --shadow:0 3px 18px #19324704; --radius:14px;
  font:14px/1.55 "Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
}
:root[data-theme="dark"] {
  color-scheme:dark;
  --ink:#e6eef4; --muted:#9eafbd; --muted-strong:#bbcad6; --bg:#101c29;
  --surface:#172737; --surface-soft:#1b2d3f; --line:#2c4053; --line-soft:#24384b;
  --teal:#6cddd7; --teal-soft:#133d43; --teal-line:#24545a;
  --amber:#efbf70; --amber-soft:#3a3023; --amber-line:#675136;
  --red:#ffa5ad; --red-soft:#402a34; --red-line:#69414e;
  --shadow:0 3px 18px #0000000a;
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); }
h1,h2,h3,p { margin:0; }
h1 { font-size:29px; line-height:1.25; letter-spacing:-.75px; font-weight:680; }
h2 { font-size:16px; line-height:1.4; letter-spacing:-.2px; font-weight:650; }
a { color:var(--teal); }
button,input { font:inherit; }
button,input,a,summary { -webkit-tap-highlight-color:transparent; }
button,a,summary { touch-action:manipulation; }
button,summary { cursor:pointer; }
button:disabled { opacity:.5; cursor:default; }
button { color:inherit; }
[hidden] { display:none!important; }
:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
.icon { width:18px; height:18px; flex:none; stroke:currentColor; fill:none; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.muted { color:var(--muted); }
.mono,code { font-family:ui-monospace,"Cascadia Code",Consolas,monospace; font-size:.94em; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:-100px; left:16px; z-index:10; padding:10px 16px; border-radius:8px; background:var(--surface); box-shadow:var(--shadow); }
.skip-link:focus { top:12px; }
.topbar { background:var(--surface); border-bottom:1px solid var(--line); }
.topbar-inner { max-width:1540px; padding:19px 32px; min-height:88px; margin:auto; display:flex; justify-content:space-between; align-items:center; gap:24px; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--ink); }
.brand-mark { width:43px; height:43px; flex:none; display:grid; place-items:center; background:var(--brand); border-radius:11px; }
.brand-mark svg { width:28px; height:28px; fill:var(--brand-ink); }
.brand-name { display:block; font-size:18px; font-weight:800; letter-spacing:2.5px; line-height:1.2; }
.brand-subtitle { display:block; font-size:11px; color:var(--muted); margin-top:4px; }
.version-tag { font-size:10px; color:var(--teal); background:var(--teal-soft); border-radius:4px; padding:2px 4px; margin-left:3px; font-weight:700; }
.topbar-actions,.account-actions { display:flex; gap:10px; align-items:center; }
.account-actions { padding-left:12px; border-left:1px solid var(--line); }
.username { color:var(--muted); font-size:12px; max-width:130px; overflow:hidden; text-overflow:ellipsis; }
.environment-tag { color:var(--muted); font-size:9px; font-weight:700; letter-spacing:1px; border:1px solid var(--line); border-radius:5px; padding:4px 7px; margin-right:4px; }
.button { display:inline-flex; gap:8px; align-items:center; justify-content:center; min-height:39px; padding:9px 13px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font-weight:600; font-size:12px; line-height:1.3; text-decoration:none; transition:background .15s,border-color .15s; }
.button:hover:not(:disabled):not([aria-disabled="true"]) { background:var(--surface-soft); border-color:var(--muted); }
.button-primary { background:var(--brand); border-color:var(--brand); color:var(--brand-ink); }
.button-primary:hover:not(:disabled):not([aria-disabled="true"]) { background:var(--brand-hover); border-color:var(--brand-hover); }
.button-quiet { background:transparent; border-color:transparent; color:var(--muted-strong); }
.button-quiet:hover:not(:disabled) { border-color:transparent; }
.button-small { min-height:34px; padding:7px 11px; }
.button-block { width:100%; }
.button[aria-disabled="true"] { opacity:.45; cursor:default; }
.theme-button { font-size:11px; padding:8px 9px; }
.theme-sun { display:none; }
[data-theme="dark"] .theme-sun { display:block; }
[data-theme="dark"] .theme-moon { display:none; }
.icon-button { width:33px; height:33px; display:inline-flex; align-items:center; justify-content:center; padding:0; background:transparent; color:var(--muted); border:1px solid transparent; border-radius:7px; flex:none; }
.icon-button:hover:not(:disabled) { background:var(--surface-soft); color:var(--teal); border-color:var(--line); }
.card { min-width:0; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); }
.eyebrow { display:block; color:var(--muted); font-size:9px; font-weight:750; letter-spacing:1.35px; margin-bottom:8px; }
.login-shell { max-width:1100px; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr); gap:100px; align-items:center; margin:0 auto; padding:86px 32px; min-height:calc(100vh - 100px); }
.login-intro h1 { font-size:43px; letter-spacing:-1.4px; line-height:1.17; margin:14px 0 19px; }
.login-intro > p { color:var(--muted); font-size:14px; line-height:1.8; max-width:420px; }
.login-domain { display:inline-flex; align-items:center; gap:9px; margin:23px 0 32px; padding:8px 12px; font:12px/1.5 ui-monospace,"Cascadia Code",Consolas,monospace; color:var(--teal); border:1px solid var(--teal-line); background:var(--teal-soft); border-radius:7px; }
.login-domain .icon { width:14px; height:14px; }
.login-features { display:flex; flex-direction:column; gap:18px; padding:0; margin:0; list-style:none; }
.login-features li { display:flex; gap:14px; align-items:flex-start; }
.feature-number { width:28px; height:28px; display:grid; place-items:center; flex:none; border:1px solid var(--line); border-radius:8px; color:var(--muted); background:var(--surface); font-size:10px; font-weight:650; }
.login-features strong { display:block; font-size:12px; font-weight:650; margin:1px 0 2px; }
.login-features li > span > span { color:var(--muted); font-size:11px; }
.login-card { padding:32px; border-top:3px solid var(--brand); }
.login-card-icon { display:grid; place-items:center; width:43px; height:43px; border-radius:11px; color:var(--teal); background:var(--teal-soft); margin-bottom:20px; }
.login-card-icon .icon { width:23px; height:23px; }
.login-card h2 { font-size:23px; margin-bottom:5px; }
.login-card > .muted { font-size:12px; margin-bottom:26px; }
.field { margin-bottom:17px; }
.field label,.field-label { display:block; font-size:11px; color:var(--muted-strong); font-weight:600; margin-bottom:6px; }
input { width:100%; min-height:43px; border:1px solid var(--line); border-radius:8px; padding:10px 12px; background:var(--surface); color:var(--ink); font-size:13px; }
input::placeholder { color:var(--muted); opacity:.85; }
input:disabled { background:var(--surface-soft); }
.login-card .button-primary { min-height:43px; font-size:13px; margin-top:6px; }
.login-note { color:var(--muted); font-size:11px; line-height:1.7; border-top:1px solid var(--line-soft); padding-top:19px; margin-top:23px; }
.loading-line { display:flex; align-items:center; gap:9px; color:var(--muted); font-size:12px; padding:10px 0; }
.spinner { width:15px; height:15px; display:inline-block; border:2px solid var(--line); border-top-color:var(--teal); border-radius:50%; animation:spin .8s linear infinite; flex:none; }
@keyframes spin { to { transform:rotate(360deg); } }
.feedback { font-size:12px; padding:11px 13px; margin-top:15px; border:1px solid var(--teal-line); border-radius:8px; background:var(--teal-soft); color:var(--teal); line-height:1.6; overflow-wrap:anywhere; }
.feedback-error { background:var(--red-soft); border-color:var(--red-line); color:var(--red); }
.shell { max-width:1540px; margin:auto; padding:29px 32px 20px; }
.page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:23px; }
.page-heading .eyebrow { margin-bottom:7px; }
.page-heading p { margin-top:9px; font-size:12px; color:var(--muted); }
.text-divider { margin:0 10px; color:var(--line); }
.refresh-area { text-align:right; flex:none; }
.poll-state { display:flex; align-items:center; justify-content:flex-end; gap:7px; font-size:11px; color:var(--muted); }
.poll-state strong { font-weight:600; }
.dot { display:inline-block; width:7px; height:7px; flex:none; background:var(--muted); border-radius:50%; }
.poll-state.live { color:var(--teal); }
.poll-state.live .dot { background:var(--brand); box-shadow:0 0 0 3px var(--teal-soft); }
.poll-state.offline { color:var(--amber); }
.poll-state.offline .dot { background:var(--amber); }
.refresh-meta { display:flex; align-items:center; justify-content:flex-end; gap:6px; color:var(--muted); font-size:10px; min-height:31px; margin-top:2px; font-variant-numeric:tabular-nums; }
.refresh-meta .icon-button { width:27px; height:27px; }
.refresh-meta .icon { width:14px; height:14px; }
.notice { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border:1px solid var(--line); border-radius:9px; font-size:12px; line-height:1.65; margin-bottom:16px; overflow-wrap:anywhere; }
.notice .icon { margin-top:1px; }
.notice-warning { color:var(--amber); background:var(--amber-soft); border-color:var(--amber-line); }
.device-status { display:flex; align-items:flex-start; gap:17px; padding:22px 24px; margin-bottom:17px; }
.status-symbol { display:grid; place-items:center; width:46px; height:46px; flex:none; border-radius:12px; color:var(--muted); background:var(--surface-soft); border:1px solid var(--line); }
.status-symbol .icon { width:27px; height:27px; }
.status-copy { flex:1; min-width:0; }
.status-overline { font-size:9px; font-weight:750; letter-spacing:1px; color:var(--muted); display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.status-overline .pill { font-size:9px; padding:1px 5px; letter-spacing:0; line-height:1.5; }
.status-copy h2 { font-size:18px; margin-bottom:6px; }
.status-copy > p { color:var(--muted); font-size:12px; line-height:1.65; max-width:780px; }
.last-seen { display:flex; flex-wrap:wrap; gap:5px 25px; margin-top:14px; font-size:10px; color:var(--muted); }
.last-seen strong { display:inline-block; margin-left:6px; font-weight:550; color:var(--muted-strong); font-variant-numeric:tabular-nums; }
.status-side { text-align:right; flex:none; padding-left:12px; }
.status-label { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:6px; background:var(--surface-soft); color:var(--muted-strong); padding:5px 8px; font-size:10px; font-weight:600; }
.status-side > span:last-child { display:block; font-size:10px; color:var(--muted); line-height:1.6; margin-top:8px; }
.status-good .status-symbol { color:var(--teal); background:var(--teal-soft); border-color:var(--teal-line); }
.status-good .status-label { color:var(--teal); background:var(--teal-soft); border-color:var(--teal-line); }
.status-warning .status-symbol,.status-warning .status-label { color:var(--amber); background:var(--amber-soft); border-color:var(--amber-line); }
.metric-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.metric { padding:16px 17px 14px; display:flex; flex-direction:column; }
.metric-label { color:var(--muted-strong); font-size:11px; font-weight:600; line-height:1.4; }
.metric-value { font-size:30px; letter-spacing:-1.1px; line-height:1.25; margin:7px 0 6px; font-weight:650; font-variant-numeric:tabular-nums; }
.metric-note { color:var(--muted); font-size:9px; }
.metric-accent { background:var(--teal-soft); border-color:var(--teal-line); }
.metric-accent .metric-value { color:var(--teal); }
.metric.has-errors .metric-value { color:var(--amber); }
.secondary-metrics { display:flex; flex-wrap:wrap; gap:6px 24px; color:var(--muted); font-size:10px; padding:13px 3px 21px; }
.secondary-metrics strong { display:inline-block; color:var(--muted-strong); font-weight:650; padding-left:5px; font-variant-numeric:tabular-nums; }
.secondary-metrics .counter-scope { margin-left:auto; font-size:9px; }
.workspace-grid { display:grid; grid-template-columns:minmax(0,1fr) 300px; align-items:start; gap:20px; }
.log-card { overflow:hidden; }
.card-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:20px 21px 17px; }
.card-heading p { color:var(--muted); font-size:11px; margin-top:3px; }
.pill { display:inline-block; border-radius:5px; padding:3px 7px; font-size:10px; font-weight:600; background:var(--surface-soft); color:var(--muted-strong); white-space:nowrap; }
.pill-good { color:var(--teal); background:var(--teal-soft); }
.pill-warning { color:var(--amber); background:var(--amber-soft); }
.pill-bad { color:var(--red); background:var(--red-soft); }
.tabs { display:flex; gap:6px; padding:0 21px; border-bottom:1px solid var(--line); overflow-x:auto; }
.tab { position:relative; display:inline-flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap; flex:none; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--muted); padding:11px 9px 12px; font-weight:600; font-size:12px; }
.tab:first-child { padding-left:2px; }
.tab.active { color:var(--teal); border-bottom-color:var(--brand); }
.tab:hover { color:var(--ink); }
.tab-count { padding:1px 5px; min-width:19px; text-align:center; background:var(--surface-soft); border-radius:4px; color:var(--muted); font-weight:500; font-size:9px; font-variant-numeric:tabular-nums; }
.tab.active .tab-count { background:var(--teal-soft); color:var(--teal); }
.table-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 21px; }
.search-wrap { position:relative; width:360px; max-width:100%; }
.search-wrap .icon { position:absolute; left:11px; top:11px; width:15px; height:15px; color:var(--muted); pointer-events:none; }
.search-wrap input { min-height:37px; padding:9px 11px 9px 33px; font-size:11px; background:var(--surface-soft); }
.filtered-count { white-space:nowrap; color:var(--muted); font-size:10px; font-variant-numeric:tabular-nums; }
.table-scroll { overflow:auto; max-height:550px; }
table { width:100%; border-collapse:collapse; text-align:left; font-size:11px; }
th { padding:10px 12px; border-block:1px solid var(--line); background:var(--surface-soft); color:var(--muted); font-size:9px; letter-spacing:.2px; font-weight:650; white-space:nowrap; position:sticky; top:0; z-index:1; }
td { border-bottom:1px solid var(--line-soft); padding:13px 12px; color:var(--muted-strong); max-width:230px; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; font-variant-numeric:tabular-nums; }
th:first-child,td:first-child { padding-left:21px; }
th:last-child,td:last-child { padding-right:21px; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:var(--surface-soft); }
td.cell-wide { max-width:290px; }
td.cell-time { font-size:10px; }
.row-action { display:inline-flex; align-items:center; border:1px solid transparent; padding:5px 7px; border-radius:5px; background:var(--teal-soft); color:var(--teal); font-size:10px; font-weight:600; white-space:nowrap; }
.row-action:hover { border-color:var(--teal-line); }
.empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:290px; padding:40px 25px; text-align:center; }
.empty-symbol { width:49px; height:49px; display:grid; place-items:center; color:var(--muted); background:var(--surface-soft); border:1px solid var(--line); border-radius:13px; margin-bottom:15px; }
.empty-symbol .icon { width:23px; height:23px; }
.empty-state strong { font-size:14px; font-weight:600; margin-bottom:6px; }
.empty-state p { color:var(--muted); font-size:12px; max-width:450px; line-height:1.7; }
.table-note { border-top:1px solid var(--line-soft); background:var(--surface-soft); font-size:10px; color:var(--muted); padding:12px 21px; line-height:1.7; }
.sidebar { display:flex; flex-direction:column; gap:17px; min-width:0; }
.settings-card > summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:19px 20px; border-radius:var(--radius); }
.settings-card > summary::-webkit-details-marker { display:none; }
.settings-card .eyebrow { font-size:8px; letter-spacing:1.2px; margin-bottom:5px; }
.summary-title { font-size:15px; font-weight:650; }
.chevron { color:var(--muted); transition:transform .15s; }
.settings-card[open] .chevron { transform:rotate(180deg); }
.settings-body { padding:0 20px 19px; }
.address-box { background:var(--surface-soft); border:1px solid var(--line); border-radius:8px; padding:10px 11px; margin-bottom:13px; }
.address-box .field-label { font-size:9px; margin-bottom:2px; font-weight:500; color:var(--muted); }
.address-line { display:flex; gap:3px; align-items:center; justify-content:space-between; }
.address-line code { font-size:11px; font-weight:650; overflow-wrap:anywhere; }
.address-line .icon-button { width:25px; height:25px; margin-right:-5px; }
.address-line .icon { width:14px; height:14px; }
.route-card { border:1px solid var(--line); border-radius:8px; padding:10px 11px; margin-top:9px; }
.route-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.route-heading strong { font-size:11px; }
.route-heading > span { color:var(--muted); font-size:9px; }
.route-card dl { margin:9px 0 0; border-top:1px solid var(--line-soft); padding-top:8px; }
.route-card dl > div { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:4px; font-size:10px; }
.route-card dt { color:var(--muted); }
.route-card dd { margin:0; color:var(--muted-strong); font-weight:600; }
.route-card dl > div:first-child { margin-top:0; }
.route-card dl > div:first-child dd { color:var(--teal); font-family:ui-monospace,"Cascadia Code",Consolas,monospace; font-size:12px; }
.settings-note { color:var(--muted); font-size:10px; margin-top:12px; line-height:1.7; }
.allowlist-box { border-top:1px solid var(--line-soft); padding-top:13px; margin-top:15px; }
.allowlist-box p { color:var(--muted); font-size:9px; line-height:1.7; margin-top:6px; overflow-wrap:anywhere; }
.export-card .card-heading { padding:19px 20px 14px; }
.export-card h2 { font-size:14px; }
.export-card .card-heading p { font-size:10px; }
.card-body { padding:0 20px 20px; }
.export-card a + a { margin-top:8px; }
.simulation-section { border-top:1px solid var(--line-soft); margin-top:18px; padding-top:15px; }
.simulation-label { display:inline-block; color:var(--muted-strong); background:var(--surface-soft); border:1px solid var(--line); padding:2px 6px; border-radius:4px; font:650 8px/1.5 ui-monospace,"Cascadia Code",Consolas,monospace; letter-spacing:1px; }
.simulation-section p { color:var(--muted); font-size:10px; line-height:1.7; margin:7px 0 12px; }
.technical-note { margin-top:20px; padding:14px 17px; color:var(--muted); border:1px solid var(--line); border-radius:9px; }
.technical-note summary { display:flex; align-items:center; gap:8px; list-style:none; font-size:11px; font-weight:600; }
.technical-note summary::-webkit-details-marker { display:none; }
.technical-note summary::after { content:"+"; margin-left:auto; font-size:16px; font-weight:400; }
.technical-note[open] summary::after { content:"−"; }
.technical-note .icon { width:15px; height:15px; }
.technical-note > div { margin:12px 0 2px 23px; max-width:1100px; }
.technical-note p { font-size:11px; line-height:1.8; margin-top:6px; }
.footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 20px; padding:20px 1px 0; color:var(--muted); font-size:9px; }
dialog { width:min(780px,calc(100vw - 32px)); max-height:88vh; max-height:88dvh; padding:0; border:1px solid var(--line); border-radius:16px; background:var(--surface); color:var(--ink); box-shadow:0 24px 90px #00000030; }
dialog::backdrop { background:#09233480; backdrop-filter:blur(3px); }
.dialog-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:19px 23px; border-bottom:1px solid var(--line); }
.dialog-heading h2 { font-size:18px; }
.dialog-heading .simulation-label { margin-bottom:7px; }
.dialog-body { padding:22px 24px 25px; }
.dialog-message { color:var(--muted); font-size:12px; line-height:1.8; margin-bottom:21px; overflow-wrap:anywhere; }
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px 25px; margin:0 0 24px; }
.detail-grid dt { color:var(--muted); font-size:10px; margin-bottom:4px; }
.detail-grid dd { font-size:12px; line-height:1.65; margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.raw-details { border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.raw-details summary { color:var(--muted-strong); font-size:11px; font-weight:600; background:var(--surface-soft); padding:12px 14px; }
pre { margin:0; padding:15px; max-height:340px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font:11px/1.7 ui-monospace,"Cascadia Code",Consolas,monospace; color:var(--muted-strong); border-top:1px solid var(--line); }
.test-checks { list-style:none; padding:0; margin:14px 0; display:flex; flex-direction:column; gap:8px; }
.test-checks li { display:flex; align-items:flex-start; gap:10px; background:var(--surface-soft); border:1px solid var(--line); border-radius:8px; padding:11px 13px; font-size:12px; }
.test-checks .check-mark { color:var(--teal); font-weight:750; }
.test-checks strong { display:block; font-size:12px; font-weight:600; }
.test-checks small { display:block; color:var(--muted); line-height:1.65; margin-top:3px; overflow-wrap:anywhere; }
.test-checks li.failed { border-color:var(--red-line); background:var(--red-soft); }
.test-checks li.failed .check-mark { color:var(--red); }
.noscript { padding:16px 25px; margin:20px; border:1px solid var(--amber-line); background:var(--amber-soft); color:var(--amber); border-radius:10px; }
@media (min-width:1600px) { .shell { padding-top:35px; } .empty-state { min-height:340px; } }
@media (max-width:1150px) {
  .workspace-grid { grid-template-columns:minmax(0,1fr) 280px; gap:16px; }
  .metric { padding:14px 12px; }
  .metric-label { font-size:10px; min-height:28px; }
  .metric-note { font-size:8px; }
  .status-side { display:none; }
  .tabs { padding-inline:15px; gap:3px; }
  .tab { font-size:11px; padding-inline:7px; }
  .secondary-metrics { gap:6px 17px; }
  .login-shell { gap:65px; }
}
@media (max-width:930px) {
  .topbar-inner { padding:17px 22px; }
  .shell { padding:25px 22px 20px; }
  .metric-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .metric { padding:15px 17px; }
  .metric-label { min-height:0; font-size:11px; }
  .metric-note { font-size:9px; }
  .workspace-grid { grid-template-columns:minmax(0,1fr); }
  .sidebar { display:grid; grid-template-columns:1fr 1fr; align-items:start; }
  .secondary-metrics .counter-scope { margin-left:0; }
  .empty-state { min-height:250px; }
  .login-shell { gap:36px; padding:60px 24px; }
  .login-intro h1 { font-size:36px; }
  .login-card { padding:26px; }
}
@media (max-width:680px) {
  .topbar-inner { min-height:76px; padding:15px 17px; gap:12px; }
  .brand { gap:9px; }
  .brand-mark { width:36px; height:36px; border-radius:9px; }
  .brand-mark svg { width:25px; height:25px; }
  .brand-name { font-size:15px; letter-spacing:2px; }
  .brand-subtitle { font-size:9px; }
  .version-tag { font-size:8px; }
  .environment-tag,.username,.theme-button > span { display:none; }
  .topbar-actions { gap:4px; }
  .account-actions { padding-left:6px; gap:5px; }
  .account-actions .button { font-size:10px; padding:6px 8px; min-height:31px; }
  .theme-button { padding:6px; min-height:33px; }
  .shell { padding:23px 16px 18px; }
  h1 { font-size:25px; }
  .page-heading { display:block; margin-bottom:18px; }
  .page-heading .eyebrow { font-size:8px; }
  .page-heading p { font-size:10px; }
  .text-divider { margin-inline:6px; }
  .refresh-area { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:5px 12px; text-align:left; margin-top:17px; }
  .poll-state { justify-content:flex-start; font-size:10px; }
  .refresh-meta { font-size:9px; min-height:25px; margin:0; }
  .device-status { padding:18px 16px; gap:12px; }
  .status-symbol { width:38px; height:42px; border-radius:10px; }
  .status-symbol .icon { width:24px; height:24px; }
  .status-copy h2 { font-size:16px; }
  .status-copy > p { font-size:11px; }
  .status-overline { font-size:8px; }
  .last-seen { display:block; margin-top:12px; font-size:9px; }
  .last-seen > span { display:block; margin-top:5px; }
  .last-seen strong { margin-left:4px; }
  .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .metric { padding:13px 14px; }
  .metric-value { font-size:29px; margin:5px 0; }
  .metric-label { font-size:10px; }
  .metric-note { font-size:8px; }
  .secondary-metrics { font-size:9px; gap:7px 17px; padding:12px 2px 17px; }
  .secondary-metrics .counter-scope { flex-basis:100%; font-size:8px; }
  .card-heading { padding:17px 16px 14px; }
  .card-heading h2 { font-size:15px; }
  .card-heading p { font-size:10px; }
  .card-heading > .pill { font-size:8px; }
  .tabs { padding-inline:15px; gap:4px; }
  .tab { padding:10px 5px; font-size:10px; gap:5px; }
  .tab-count { font-size:8px; min-width:16px; padding:1px 4px; }
  .table-toolbar { padding:13px 15px; gap:8px; }
  .search-wrap input { font-size:10px; }
  .filtered-count { font-size:9px; }
  .empty-state { min-height:265px; padding:35px 22px; }
  .empty-state strong { font-size:13px; }
  .empty-state p { font-size:11px; }
  .table-note { padding:11px 16px; font-size:9px; }
  .sidebar { grid-template-columns:minmax(0,1fr); gap:14px; }
  .settings-card > summary { padding:18px 18px; }
  .settings-body { padding:0 18px 18px; }
  .address-line code { font-size:13px; }
  .technical-note { padding:13px 14px; margin-top:16px; }
  .technical-note summary { font-size:10px; }
  .technical-note > div { margin-left:0; }
  .technical-note p { font-size:10px; }
  .footer { justify-content:flex-start; font-size:8px; gap:6px 15px; }
  .footer > span:last-child { flex-basis:100%; }
  .login-shell { grid-template-columns:minmax(0,1fr); min-height:auto; gap:26px; padding:32px 23px; max-width:490px; }
  .login-intro h1 { font-size:31px; margin-top:9px; margin-bottom:12px; }
  .login-intro > p { font-size:12px; }
  .login-domain { margin:15px 0 0; font-size:10px; }
  .login-features { display:none; }
  .login-card { padding:24px; }
  .login-card-icon { width:36px; height:36px; margin-bottom:15px; }
  .login-card h2 { font-size:21px; }
  .login-card > .muted { margin-bottom:21px; }
  .dialog-heading { padding:16px 18px; }
  .dialog-heading h2 { font-size:16px; }
  .dialog-body { padding:19px 18px 22px; }
  .detail-grid { gap:15px 17px; }
}
@media (max-width:380px) { .tabs { padding-inline:10px; } .tab { font-size:9px; gap:4px; } .tab-count { font-size:8px; } .page-heading p { max-width:260px; line-height:1.8; } .detail-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
