/* vpspanel — Dob Burger brand, Arabic RTL, light/dark. No inline styles anywhere (strict CSP). */

@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --brand-red: #FF1515; --brand-red-dark: #DD0B0B; --brand-orange: #F58A1F; --brand-amber: #FF9D27; --brand-yellow: #FFD400;

  --bg: #f7f4f1; --surface: #ffffff; --surface-2: #faf8f6; --border: #e8e2dc; --border-strong: #d6cdc4;
  --text: #1f1a17; --text-2: #5e554e; --text-3: #8a8078;
  --primary: #DD0B0B; --primary-hover: #b90808; --primary-text: #ffffff; --primary-soft: #fde8e6;
  --accent: #F58A1F;
  --ok: #17864f; --ok-soft: #e3f4ea; --warn: #a55a00; --warn-soft: #fff1d6; --danger: #c4100c; --danger-soft: #fde6e4;
  --info: #1f5fa8; --info-soft: #e5eefa;
  --focus: #F58A1F;
  --shadow: 0 1px 2px rgb(31 26 23 / .06), 0 4px 16px rgb(31 26 23 / .05);
  --radius: 14px; --radius-sm: 9px;
  --nav-w: 248px; --top-h: 56px;
  /* charts: validated categorical slots 1-2 (blue, orange) + recessive chrome */
  --series-1: #2a78d6; --series-2: #eb6834; --chart-grid: #ece8e3; --chart-axis: #d6cdc4;
  --status-good: #0ca30c; --status-warning: #fab219; --status-critical: #d03b3b;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #121010; --surface: #1c1918; --surface-2: #231f1d; --border: #332d2a; --border-strong: #463e3a;
    --text: #f4efeb; --text-2: #c2b8b0; --text-3: #8f857d;
    --primary: #ff3b30; --primary-hover: #ff5a50; --primary-text: #ffffff; --primary-soft: #3a1614;
    --ok: #4cc585; --ok-soft: #13301f; --warn: #ffb547; --warn-soft: #362610; --danger: #ff6b61; --danger-soft: #3d1614;
    --info: #7fb2ff; --info-soft: #14243b;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 20px rgb(0 0 0 / .25);
    --series-1: #3987e5; --series-2: #d95926; --chart-grid: #2c2a28; --chart-axis: #3a3532;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121010; --surface: #1c1918; --surface-2: #231f1d; --border: #332d2a; --border-strong: #463e3a;
  --text: #f4efeb; --text-2: #c2b8b0; --text-3: #8f857d;
  --primary: #ff3b30; --primary-hover: #ff5a50; --primary-text: #ffffff; --primary-soft: #3a1614;
  --ok: #4cc585; --ok-soft: #13301f; --warn: #ffb547; --warn-soft: #362610; --danger: #ff6b61; --danger-soft: #3d1614;
  --info: #7fb2ff; --info-soft: #14243b;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 6px 20px rgb(0 0 0 / .25);
  --series-1: #3987e5; --series-2: #d95926; --chart-grid: #2c2a28; --chart-axis: #3a3532;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.65 "Plex Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.08rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .9em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .input-mono, .secret { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
/* line icons only (24x24 viewBox) — must not touch the QR code SVG */
svg[viewBox="0 0 24 24"] { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--text-2); } .small { font-size: .86rem; } .center { text-align: center; }
.nowrap { white-space: nowrap; }
.text-ok { color: var(--ok); } .text-warn { color: var(--warn); }
.row { display: flex; align-items: center; } .gap { gap: .6rem; } .wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: .9rem; }

/* ---------- layout ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top-h); z-index: 30;
  display: flex; align-items: center; gap: .75rem; padding: 0 1rem;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.topbar::after { /* brand stripe */
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-amber), var(--brand-orange), var(--brand-red), var(--brand-red-dark));
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.host-chip { font-size: .78rem; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); padding: .1rem .55rem; border-radius: 99px; }
.topbar-end { margin-inline-start: auto; display: flex; gap: .4rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); }
.nav-toggle { display: none; }

.sidebar {
  position: fixed; top: var(--top-h); bottom: 0; inset-inline-start: 0; width: var(--nav-w); z-index: 20;
  background: var(--surface); border-inline-end: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 1rem .75rem; overflow-y: auto;
}
.nav-user { display: flex; align-items: center; gap: .65rem; padding: .4rem .5rem 1rem; border-bottom: 1px solid var(--border); margin-bottom: .6rem; }
.nav-user-name { font-weight: 700; }
.nav-user-role { font-size: .8rem; color: var(--text-2); }
.avatar {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-red)); color: #fff; font-weight: 700;
}
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-list a, .nav-list .nav-soon span {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 10px; color: var(--text-2); font-weight: 500;
}
.nav-list a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-list a.active { background: var(--primary-soft); color: var(--primary); }
.nav-soon span { opacity: .55; cursor: default; }
.nav-soon small { margin-inline-start: auto; font-size: .7rem; background: var(--surface-2); border: 1px solid var(--border); padding: 0 .4rem; border-radius: 99px; }
.nav-sep { font-size: .75rem; color: var(--text-3); padding: .9rem .7rem .3rem; font-weight: 700; }
.nav-logout { margin-top: auto; padding-top: 1rem; }
.nav-foot { font-size: .72rem; color: var(--text-3); text-align: center; padding-top: .6rem; }
.scrim { display: none; }

.content { padding: calc(var(--top-h) + 1.5rem) 1.75rem 3rem; margin-inline-start: var(--nav-w); max-width: calc(1180px + var(--nav-w)); }
.content-bare { margin: 0 auto; padding-top: 2rem; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.page-head h1 { margin: 0; }

.grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- components ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.25rem; box-shadow: var(--shadow); margin-bottom: 1rem; min-width: 0; }
.grid > .card { margin-bottom: 0; }
.card.narrow { max-width: 560px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.card-head h2 { margin: 0; }

.stat-label { font-size: .82rem; color: var(--text-2); margin-bottom: .3rem; }
.stat-value { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .8rem; color: var(--text-2); font-weight: 500; }
.stat-value.small-value { font-size: 1rem; }

.notice-card { display: flex; gap: 1rem; align-items: flex-start; border-inline-start: 4px solid var(--brand-orange); }
.notice-card p { margin: 0; }
.notice-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--warn-soft); color: var(--brand-orange); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px;
  padding: .5rem 1.05rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-3); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 34px; padding: .3rem .75rem; font-size: .86rem; }
.btn.is-disabled { opacity: .45; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; font-size: .92rem; min-width: 0; }
.input {
  width: 100%; min-height: 44px; padding: .55rem .8rem; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; min-width: 0;
}
input[type="date"].input { min-width: 0; max-width: 100%; }
.ts { white-space: nowrap; unicode-bidi: isolate; }
.auth-card form + p { margin-top: 1rem; }
.input:focus { border-color: var(--brand-orange); outline: 3px solid color-mix(in srgb, var(--brand-orange) 25%, transparent); outline-offset: 0; }
select.input { appearance: auto; }
.input-code { font-family: ui-monospace, Consolas, monospace; font-size: 1.5rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: center; gap: .5rem; margin: 1rem 0; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }

.alert { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid transparent; font-size: .94rem; }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-error { background: var(--danger-soft); color: var(--danger); }

.badge { display: inline-flex; align-items: center; padding: .05rem .55rem; border-radius: 99px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.badge-brand { background: var(--primary-soft); color: var(--primary); }

.kv { display: grid; gap: .1rem; margin-bottom: 1rem; }
.kv > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed var(--border); }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--text-2); }
.kv b { font-weight: 500; text-align: end; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: start; font-weight: 700; color: var(--text-2); font-size: .8rem; padding: .55rem .6rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .6rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .ua { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .details { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; color: var(--text-2); max-width: 280px; overflow-wrap: anywhere; }

.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.activity li:last-child { border-bottom: 0; }
.activity-main { font-weight: 500; }
.activity-meta { margin-inline-start: auto; font-size: .82rem; color: var(--text-2); }

.disclosure { margin: 1rem 0; border: 1px solid var(--border); border-radius: 10px; padding: .1rem .9rem; background: var(--surface-2); }
.disclosure > summary { cursor: pointer; padding: .6rem 0; font-weight: 500; color: var(--text-2); }
.disclosure[open] > summary { margin-bottom: .4rem; }
.disclosure > form, .disclosure > .kv { padding-bottom: .9rem; }

.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; align-items: end; }
.filters .field { font-size: .82rem; }
.filters-actions { grid-column: 1 / -1; display: flex; gap: .5rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; padding-top: 1rem; }

.user-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.user-list .card { margin: 0; }
.user-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; flex-wrap: wrap; }
.user-name { font-weight: 700; }
.user-id { min-width: 0; }
.user-badges { display: flex; gap: .3rem; flex-wrap: wrap; margin-inline-start: auto; }

/* ---------- auth pages ---------- */
.auth-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
  background:
    radial-gradient(1200px 500px at 110% -10%, color-mix(in srgb, var(--brand-yellow) 22%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--brand-red) 14%, transparent), transparent 60%),
    var(--bg); }
.auth-main { width: 100%; padding: 1.5rem 16px; }
.auth-card { width: 100%; max-width: 420px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.6rem 1.5rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-yellow), var(--brand-orange), var(--brand-red)); }
.auth-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.3rem; }
.auth-title { font-weight: 700; font-size: 1.1rem; }
.auth-sub { font-size: .8rem; color: var(--text-2); text-align: end; }
.auth-theme { margin-inline-start: auto; }
.auth-h { font-size: 1.3rem; }
.steps { padding-inline-start: 1.3rem; margin: .5rem 0; color: var(--text-2); }
.steps li { margin-bottom: .3rem; }
.qr { display: grid; place-items: center; margin: .8rem 0; }
.qr svg { width: 220px; height: 220px; max-width: 100%; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.secret { font-size: .9rem; letter-spacing: .05em; overflow-wrap: anywhere; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; padding: 0; margin: 1rem 0; list-style: none; counter-reset: rc; }
.codes li { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .45rem .3rem; text-align: center; font-size: clamp(.8rem, 3.6vw, 1rem); white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }
  .host-chip { display: none; }
  .sidebar { transform: translateX(100%); transition: transform .2s ease; width: min(84vw, 300px); box-shadow: var(--shadow); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: var(--top-h) 0 0 0; background: rgb(0 0 0 / .35); z-index: 15; }
  .content { margin-inline-start: 0; padding: calc(var(--top-h) + 1rem) 16px 2.5rem; }
  .cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* tables become stacked cards: label (from data-label) on the right, value on the left */
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { border: 1px solid var(--border); border-radius: 10px; padding: .35rem .75rem; margin-bottom: .6rem; background: var(--surface-2); }
  .table-stack td { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--border); text-align: end; }
  .table-stack td:last-child { border-bottom: 0; }
  .table-stack td::before { content: attr(data-label); color: var(--text-2); font-size: .8rem; font-weight: 700; flex: none; text-align: start; }
  .table-stack td:not([data-label])::before { content: none; }
  .table-stack td:empty, .table-stack td:has(> bdi:empty) { display: none; }
  .table-stack .ua, .table-stack .details { max-width: none; white-space: normal; }
  .table-wrap:has(.table-stack) { margin: 0; padding: 0; overflow: visible; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters > .field:last-of-type { grid-column: 1 / -1; }
  .cards-4 { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .card { padding: 1rem; }
  .table-wrap { margin: 0 -1rem; padding: 0 1rem; }
  .stat-value { font-size: 1.1rem; }
  .filters { grid-template-columns: 1fr 1fr; }
  .user-list { grid-template-columns: 1fr; }
  .activity-meta { margin-inline-start: 0; width: 100%; }
  h1 { font-size: 1.25rem; }
}

/* ---------- monitoring ---------- */
.stat-value { font-variant-numeric: normal; }
.stat-value small { margin-inline-start: .15rem; }
.stat-value-sm { font-size: 1.05rem; }
.stat-sub { font-size: .8rem; color: var(--text-2); margin-top: .35rem; }
.stat-link { color: inherit; text-decoration: none; display: block; }
.stat-link:hover { text-decoration: none; border-color: var(--border-strong); }
.dir-in { color: var(--series-1); font-weight: 700; } .dir-out { color: var(--series-2); font-weight: 700; }
.meter { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--series-1) 16%, var(--surface)); overflow: hidden; margin-top: .5rem; }
.meter-fill { display: block; height: 100%; border-radius: 99px; background: var(--series-1); transition: width .4s ease; }
.meter-warn { background: color-mix(in srgb, var(--status-warning) 22%, var(--surface)); } .meter-warn .meter-fill { background: var(--status-warning); }
.meter-crit { background: color-mix(in srgb, var(--status-critical) 18%, var(--surface)); } .meter-crit .meter-fill { background: var(--status-critical); }
.meter-w-0 { width: 0%; } .meter-w-5 { width: 5%; } .meter-w-10 { width: 10%; } .meter-w-15 { width: 15%; } .meter-w-20 { width: 20%; } .meter-w-25 { width: 25%; } .meter-w-30 { width: 30%; } .meter-w-35 { width: 35%; } .meter-w-40 { width: 40%; } .meter-w-45 { width: 45%; } .meter-w-50 { width: 50%; } .meter-w-55 { width: 55%; } .meter-w-60 { width: 60%; } .meter-w-65 { width: 65%; } .meter-w-70 { width: 70%; } .meter-w-75 { width: 75%; } .meter-w-80 { width: 80%; } .meter-w-85 { width: 85%; } .meter-w-90 { width: 90%; } .meter-w-95 { width: 95%; } .meter-w-100 { width: 100%; }
.sev { gap: .3rem; } .sev-icon { font-size: .7em; }
.sev-critical { background: var(--danger-soft); color: var(--danger); }
.sev-warning { background: var(--warn-soft); color: var(--warn); }
.sev-info { background: var(--info-soft); color: var(--info); }
.incidents-card { border-inline-start: 4px solid var(--status-critical); }
.incident-list { list-style: none; margin: 0; padding: 0; }
.incident-list li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.incident-list li:last-child { border-bottom: 0; }
.incident-title { font-weight: 500; }
.range-bar { display: flex; align-items: center; gap: .4rem; margin: .4rem 0 .9rem; flex-wrap: wrap; }
.seg { font: inherit; font-size: .88rem; padding: .35rem .85rem; border-radius: 99px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer; min-height: 36px; }
.seg:hover { background: var(--surface-2); color: var(--text); }
.seg.is-active { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 700; }
.charts { transition: opacity .2s; } .charts.is-loading { opacity: .55; }
.chart-card { margin: 0; padding-bottom: .6rem; }
.chart-card figcaption { font-weight: 700; margin-bottom: .4rem; display: flex; gap: .5rem; align-items: baseline; }
.chart { position: relative; width: 100%; min-height: 180px; }
.chart .u-over { cursor: crosshair; }
.legend { font-size: .8rem; color: var(--text-2); display: flex; align-items: center; gap: .35rem; margin-bottom: .2rem; }
.key { display: inline-block; width: 14px; height: 2px; border-radius: 2px; vertical-align: middle; margin-inline: .2rem; }
.key-1 { background: var(--series-1); } .key-2 { background: var(--series-2); }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: .35rem .55rem; font-size: .78rem; box-shadow: var(--shadow); white-space: nowrap; direction: rtl; }
.chart-tip-time { color: var(--text-2); font-size: .72rem; margin-bottom: .15rem; direction: ltr; text-align: right; }
.chart-tip-row { display: flex; align-items: center; gap: .35rem; }
.chart-tip-row b { direction: ltr; unicode-bidi: isolate; }
.disclosure-card > summary { cursor: pointer; font-weight: 500; color: var(--text-2); }
.disclosure-card[open] > summary { margin-bottom: .6rem; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; margin-bottom: 1rem; }
.toolbar .field { min-width: 150px; flex: 1 1 150px; }
.toolbar .btn { flex: none; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; }
.logbox { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; line-height: 1.55; direction: ltr; text-align: left;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: .6rem .8rem; max-height: 70vh; overflow: auto; }
.logline { white-space: pre-wrap; overflow-wrap: anywhere; padding: .1rem 0; border-bottom: 1px dashed var(--border); }
.logline:last-child { border-bottom: 0; }
.logline .lt { color: var(--text-3); } .logline .li { color: var(--series-1); font-weight: 700; }
.logline.p-err { color: var(--danger); } .logline.p-warn { color: var(--warn); }
.note { font-size: .86rem; color: var(--text-2); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 10px; padding: .6rem .8rem; }
.num { font-variant-numeric: tabular-nums; }
.site-card .site-url { font-size: .82rem; color: var(--text-2); overflow-wrap: anywhere; }
.settings-group { margin-bottom: 1.2rem; }
.settings-row { display: grid; grid-template-columns: 1fr 9rem; gap: .8rem; align-items: center; padding: .5rem 0; border-bottom: 1px dashed var(--border); }
.settings-row:last-child { border-bottom: 0; }
.settings-row .input { text-align: center; }
.input-unit { display: flex; align-items: center; gap: .4rem; }
.input-unit span { font-size: .8rem; color: var(--text-2); white-space: nowrap; }
.mono-strong { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: .88em; }
.proc-cmd { max-width: 420px; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: .74rem; }
.inline-details { margin-top: .35rem; }
.inline-details > summary { cursor: pointer; font-size: .8rem; color: var(--text-2); }
.inline-details form { margin-top: .5rem; min-width: 200px; }
.mount-row { padding: .6rem 0; border-bottom: 1px dashed var(--border); }
.mount-row:last-child { border-bottom: 0; }
.mount-head { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.mount-num { margin-inline-start: auto; font-size: .86rem; color: var(--text-2); }
fieldset.settings-group { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
fieldset.settings-group legend { padding: 0; }
.settings-form .check { margin: 0; }@media (max-width: 560px) {
  .settings-row { grid-template-columns: 1fr; gap: .3rem; }
  .chart { min-height: 160px; }
}
@media print {
  .topbar, .sidebar, .btn, .check, .alert { display: none !important; }
  .content { margin: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
