/* KW Console styles. Colours are tokens on :root; dark is the default, light via data-theme. */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070B13; --nav: #0A101B; --card: #0F1623; --card-hi: #141D2D; --sunk: #080D16; --chip: #162133; --line: #1C2738; --row: #141E2E; --line2: #2B394F; --hover: #151F30;
  --text: #EAF0F8; --text2: #CBD5E1; --muted: #94A3B8; --navfg: #B6C2D4; --dim: #7E8EA6; --strong: #FFFFFF;
  --accent: #38BDF8; --accent-text: #38BDF8; --on-accent: #05111C; --accent-soft: rgba(56,189,248,.14); --accent-ring: rgba(56,189,248,.40);
  --ok: #6EE7B7; --ok-bg: rgba(52,211,153,.14); --ok-dot: #34D399;
  --warn: #FCD34D; --warn-bg: rgba(251,191,36,.14); --warn-dot: #FBBF24; --warn-line: #523F13;
  --bad: #FCA5A5; --bad-bg: rgba(248,113,113,.15); --bad-dot: #F87171;
  --idle: #CBD5E1; --idle-bg: rgba(148,163,184,.14); --idle-dot: #94A3B8;
  --live-bg: #0D221A; --live-line: #1F4535;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px -12px rgba(0,0,0,.65);
  --shadow-lg: 0 22px 54px -12px rgba(0,0,0,.72);
  --glow: radial-gradient(950px 500px at 95% -5%, rgba(56,189,248,.11), transparent 62%), radial-gradient(750px 460px at -5% 105%, rgba(99,102,241,.07), transparent 60%);
  --glass: rgba(10,16,27,.82);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393A1B5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F5F9; --nav: #FFFFFF; --card: #FFFFFF; --card-hi: #FFFFFF; --sunk: #F1F4F8; --chip: #E8EDF4; --line: #E1E6EE; --row: #EDF0F5; --line2: #C9D2DE; --hover: #F5F8FB;
  --text: #0F172A; --text2: #334155; --muted: #526072; --navfg: #3B4A5E; --dim: #5B6779; --strong: #0F172A;
  --accent: #38BDF8; --accent-text: #0369A1; --on-accent: #06121D; --accent-soft: rgba(14,165,233,.10); --accent-ring: rgba(14,165,233,.30);
  --ok: #047857; --ok-bg: rgba(52,211,153,.14); --ok-dot: #10B981;
  --warn: #A16207; --warn-bg: rgba(251,191,36,.16); --warn-dot: #D97706; --warn-line: #F2C879;
  --bad: #B91C1C; --bad-bg: rgba(248,113,113,.14); --bad-dot: #DC2626;
  --idle: #475569; --idle-bg: rgba(148,163,184,.16); --idle-dot: #94A3B8;
  --live-bg: #ECFDF5; --live-line: #A7F3D0;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 20px -8px rgba(15,23,42,.10);
  --shadow-lg: 0 20px 50px -12px rgba(15,23,42,.25);
  --glow: radial-gradient(900px 480px at 100% -8%, rgba(56,189,248,.10), transparent 62%);
  --glass: rgba(243,245,249,.82);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23526072' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scrollbar-color: var(--line2) transparent; }
body { margin: 0; background: var(--glow), var(--bg); background-attachment: fixed; color: var(--text); font-family: 'Anuphan', system-ui, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-ring); }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
a:not(.btn), a:not(.btn):visited { color: var(--accent-text); text-decoration: none; }
a:not(.btn):hover, a:not(.btn):focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.num { font-family: 'Space Grotesk', 'Anuphan', sans-serif; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.boot, .center { min-height: 100vh; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* ---------- layout ---------- */
/* align-content keeps the phone layout (menu above page) from spreading out to fill the screen height */
.shell { min-height: 100vh; display: flex; align-items: flex-start; transition: filter .25s ease; }
body.privacy-blur .shell { filter: blur(18px) brightness(.65); pointer-events: none; user-select: none; }
.nav { flex: 1 1 304px; max-width: 320px; align-self: stretch; background: linear-gradient(180deg, rgba(16,24,39,.96), var(--nav)); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; }
:root[data-theme="light"] .nav { background: var(--nav); }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px; }
.logo { position: relative; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #7DD3FC, var(--accent) 55%, #0284C7); color: var(--on-accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px -6px var(--accent-ring); flex: 0 0 auto; }
.logo::after { content: ''; position: absolute; inset: -3px; border-radius: 15px; border: 1.5px dashed var(--accent-ring); animation: spin 16s linear infinite; pointer-events: none; opacity: .7; }
.brand b { font-size: 15.5px; display: block; letter-spacing: .1px; color: var(--strong); }
.brand small { font-size: 11.5px; color: var(--muted); }
.nav .menu-btn { display: none; margin-left: auto; }
.top-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }
.top-sub .mono { font-size: 12px; }
.kv + .bar { margin-top: 6px; }
.shops { display: flex; flex-direction: column; gap: 6px; padding: 0 2px; }
.shops-lbl { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--dim); padding: 0 6px; }
.shop-select-wrap { position: relative; display: flex; align-items: center; width: 100%; }
.shop-select {
  width: 100%; min-height: 40px; padding: 0 32px 0 36px; border-radius: 12px;
  border: 1px solid var(--accent-ring); background: var(--card-hi); color: var(--strong);
  font-size: 12.5px; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none;
  transition: border-color .18s, background-color .18s, box-shadow .18s; box-shadow: 0 2px 8px -2px rgba(0,0,0,.3);
}
.shop-select:hover { border-color: var(--accent); background-color: var(--hover); box-shadow: 0 0 0 1px var(--accent-ring); }
.shop-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.shop-select-ico { position: absolute; left: 11px; pointer-events: none; display: inline-flex; align-items: center; font-size: 15px; }
.shop-select-arr { position: absolute; right: 11px; pointer-events: none; color: var(--accent-text); display: inline-flex; align-items: center; }
.shops select.field { width: 100%; font-weight: 600; border-color: var(--accent-ring); background-color: var(--card-hi); }
.shop-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.shop-card { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line); background: var(--sunk); color: var(--navfg); text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .12s; }
.shop-card:hover { border-color: var(--line2); background: var(--hover); }
.shop-card.on { border-color: var(--accent); background: linear-gradient(145deg, var(--accent-soft), var(--card-hi)); color: var(--strong); box-shadow: 0 6px 16px -8px var(--accent-ring); }
.shop-card-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 12px; font-weight: 700; color: var(--strong); }
.shop-card small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-tools { display: flex; gap: 6px; align-items: center; padding: 0 2px; }
.nav-search { flex: 1 1 auto; position: relative; display: flex; align-items: center; }
.nav-search svg { position: absolute; left: 10px; color: var(--dim); pointer-events: none; }
.nav-search input { width: 100%; min-height: 35px; padding: 0 10px 0 31px; border-radius: 10px; border: 1px solid var(--line); background: var(--sunk); color: var(--text); font-size: 12.5px; transition: border-color .15s, box-shadow .15s; }
.nav-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); background: var(--card); }
.nav-compact-btn { min-height: 35px; padding: 0 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--sunk); color: var(--muted); font-size: 11.5px; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.nav-compact-btn:hover, .nav-compact-btn.on { border-color: var(--accent-ring); color: var(--strong); background: var(--accent-soft); }

.nav-group { display: flex; flex-direction: column; gap: 3px; }
.group-title { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--dim); padding: 5px 8px 3px; cursor: pointer; text-align: left; border-radius: 7px; transition: color .15s, background-color .15s; }
.group-title:hover { color: var(--text); background: var(--hover); }
.group-title .g-cnt { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.nav-group.folded .nav-group-body { display: none; }
.nav-group-body { display: flex; flex-direction: column; gap: 3px; }
.nav-item { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 10px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--navfg); font-size: 13.5px; text-align: left; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .12s; }
.nav-item:hover { background: var(--hover); color: var(--strong); border-color: var(--line); transform: translateX(2px); }
.nav-item.on { background: linear-gradient(90deg, var(--accent-soft), rgba(56,189,248,.03)); border-color: var(--accent-ring); color: var(--strong); font-weight: 600; box-shadow: 0 6px 18px -10px var(--accent-ring); }
.nav-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--sunk); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--muted); transition: color .15s, border-color .15s, background-color .15s; }
.nav-item:hover .nav-ico { color: var(--strong); border-color: var(--line2); }
.nav-item.on .nav-ico { background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 0 12px var(--accent-ring); }
.nav-txt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.nav-txt b { font-size: 13px; font-weight: 600; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-txt small { font-size: 11px; color: var(--dim); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.nav-item.on .nav-txt small { color: var(--text2); }
.nav.compact .nav-txt small { display: none; }
.nav.compact .nav-item { min-height: 36px; padding: 4px 9px; }
.nav.compact .nav-ico { width: 26px; height: 26px; border-radius: 7px; }
.nav-item.on::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3.5px; border-radius: 0 4px 4px 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.nav-item.soon { cursor: default; opacity: .5; }
.soon-note { font-weight: 400; letter-spacing: 0; }
.nav-item.soon:hover { background: transparent; transform: none; }
.nav-item .badge { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); color: var(--muted); flex: 0 0 auto; }
.nav-item.on .badge { background: var(--accent-soft); border-color: var(--accent-ring); color: var(--accent-text); }
.nav-item .badge.b-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.nav-item .badge.b-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.nav-item .badge.b-bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.nav-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.collector { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); }
.collector b { color: var(--text); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.meter { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter > i { display: block; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #0EA5E9, var(--accent)); width: 0; }

.main { flex: 1 1 0; min-width: 0; padding: 20px 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.top h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.2px; color: var(--strong); }
.crumb, .subtitle { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
form.tools, .tools:has(> label.lbl) { align-items: flex-end; } /* align controls below their labels on every page */
.tools > label.lbl { min-width: 0; max-width: 100%; }
.tools > label.lbl > .field, .tools > .tabs { max-width: 100%; }
#lip { width: 290px; min-width: 0; max-width: 100%; } /* hint fits on desktop without forcing a phone wider */

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line2); background: var(--card); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .05s; }
.btn:hover { background: var(--hover); border-color: var(--dim); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 600; box-shadow: 0 6px 18px -8px var(--accent-ring); }
.btn.primary:hover { background: #5CCBFA; }
.btn.small { min-height: 32px; padding: 0 11px; border-radius: 9px; font-size: 12px; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.live { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--live-line); background: var(--live-bg); color: var(--ok); font-size: 13px; font-weight: 600; }
.live.off { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn); }
.live:not(.off) .dot { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.dot { width: 8px; height: 8px; border-radius: 999px; display: inline-block; flex: 0 0 auto; }
.d-ok { background: var(--ok-dot); } .d-warn { background: var(--warn-dot); } .d-bad { background: var(--bad-dot); } .d-idle { background: var(--idle-dot); }
select.field, input.field { min-height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 11px; background-color: var(--card); color: var(--text); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
select.field { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
select.field:hover, input.field:hover { border-color: var(--dim); }
select.field:focus, input.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.field::placeholder { color: var(--dim); }
label.lbl { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: var(--muted); }

/* ---------- surfaces ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: border-color .18s ease; }
.card:hover { border-color: var(--line2); }
.card h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--strong); overflow-wrap: anywhere; }
.row { display: flex; flex-wrap: wrap; gap: 18px; }
.row > .card { flex: 1 1 300px; }
.row > .card.wide { flex: 2 1 460px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.kpi { position: relative; background: linear-gradient(180deg, rgba(56,189,248,.03), transparent 70%), var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 15px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; overflow: hidden; transition: border-color .18s ease, transform .15s ease; }
.kpi:hover { border-color: var(--line2); transform: translateY(-1px); }
.kpi span:first-child { font-size: 12px; color: var(--muted); }
.kpi .v { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 600; line-height: 1.2; color: var(--strong); overflow-wrap: anywhere; }
.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; }
.kpi .n { font-size: 12px; color: var(--muted); }
.kpi-val { font-size: 16px; font-weight: 600; color: var(--strong); margin-top: 4px; overflow-wrap: anywhere; }
.kpi-val.muted { font-size: 14px; font-weight: 500; color: var(--muted); }
.kpi-sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.c-ok { background: var(--ok-bg); color: var(--ok); } .c-warn { background: var(--warn-bg); color: var(--warn); }
.c-bad { background: var(--bad-bg); color: var(--bad); } .c-idle { background: var(--idle-bg); color: var(--idle); }
.c-new { background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-ring); }
.talker-list { display: flex; flex-direction: column; gap: 9px; }
.talker-item { display: flex; flex-direction: column; gap: 4px; padding: 9px 11px; border-radius: 11px; background: var(--sunk); border: 1px solid var(--line); }
.audit-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: 11px; background: var(--sunk); border: 1px solid var(--line); font-size: 12px; }
.audit-cmd { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--accent-text); display: block; margin-top: 2px; }

.wan { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 220px; background: var(--card); box-shadow: var(--shadow); }
.wan.inuse { border-color: var(--accent-ring); background: linear-gradient(180deg, var(--accent-soft), transparent 55%), var(--card); }
.wan .big { font-family: 'Space Grotesk', sans-serif; font-size: 34px; font-weight: 600; line-height: 1; color: var(--strong); }
.spark { width: 100%; height: 40px; }
.health { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ring { position: relative; width: 132px; height: 132px; }
.ring div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.kv { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .2px; color: var(--muted); padding: 11px 12px; background: var(--sunk); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--row); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color .12s; }
tbody tr:hover { background: var(--hover); }
td.mono { font-size: 13px; color: var(--text2); }
.bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #0EA5E9, var(--accent)); width: 0; }
.stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--sunk); }
.stack > i { display: block; height: 14px; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 16px; font-size: 13px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.event { display: flex; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--row); }
.event > :not(.t) { min-width: 0; overflow-wrap: anywhere; }
.event:last-child { border-bottom: 0; }
.event .t { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }
.empty { color: var(--muted); font-size: 14px; padding: 18px; text-align: center; border: 1px dashed var(--line2); border-radius: 12px; }
.err { color: var(--bad); font-size: 14px; background: var(--bad-bg); border-radius: 10px; padding: 10px 14px; }
.err:empty { display: none; }
.note { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.updbar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 520px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 16px; border: 1px solid var(--accent-ring); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--text); font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); }
.sub { font-family: 'Anuphan', system-ui, sans-serif; font-size: 12px; color: var(--muted); line-height: 1.3; margin-top: 2px; white-space: normal; }
td.mono, td.nw, span.nw { white-space: nowrap; }
td > .mono:not(.small) { white-space: nowrap; } /* dates, groups and counts stay on one line; long rule text (.small) still wraps */
td.site { word-break: break-all; min-width: 180px; }
td.app { min-width: 170px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.chips .chip { white-space: normal; word-break: break-all; font-weight: 500; border-color: var(--line); }
.risk { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--row); }
.risk:last-child { border-bottom: 0; }
/* finished items are toned down with readable grey text, not opacity (which fails contrast) */
.risk.done .title, .risk.done .title b { text-decoration: line-through; color: var(--muted); }
.risk.done .chip { background: var(--idle-bg); color: var(--idle); }
.risk input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--accent); margin: 12px; }
.chart { width: 100%; height: 190px; }

/* ---------- phase 2 pages ---------- */
.small { font-size: 12px; }
.ports { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; background: var(--sunk); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.port { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--card); display: flex; flex-direction: column; gap: 6px; min-width: 0; transition: border-color .15s; }
.port:hover { border-color: var(--line2); }
.port.warn { border-color: var(--warn-line); }
.port.down { background: var(--sunk); border-style: dashed; }
.port.down .port-name, .port.down b { color: var(--muted); }
.port-name { font-size: 13px; color: var(--text2); min-height: 38px; overflow-wrap: anywhere; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); }
.tab { min-height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; transition: background-color .15s, color .15s; }
.tab:hover { color: var(--strong); }
.tab.on { background: var(--card); color: var(--strong); font-weight: 600; box-shadow: var(--shadow); }
.tl-row { display: flex; align-items: center; gap: 12px; }
.tl-day { width: 48px; flex: 0 0 auto; font-size: 13px; color: var(--text2); }
.tl { position: relative; flex: 1 1 auto; height: 18px; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.tl .seg { position: absolute; top: 0; bottom: 0; display: block; }
.topo { align-items: center; text-align: center; }
.topo > * { flex: 0 0 auto; }
.nodes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
.node { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left; min-width: 170px; max-width: 260px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--sunk); }
.node b { display: flex; align-items: center; gap: 8px; }
.node.main { border: 2px solid var(--accent); align-items: center; text-align: center; background: var(--accent-soft); }
.lm { overflow-x: auto; }
.lm svg { display: block; width: 100%; max-width: 640px; min-width: 520px; height: auto; margin: 0 auto; }
.lm svg.wide { max-width: 940px; min-width: 760px; }
.lm-box { fill: var(--sunk); stroke: var(--line2); stroke-width: 1.5; }
.lm-box.k-rt { fill: var(--accent-soft); stroke: var(--accent); }
.lm-t { fill: var(--strong); font-size: 14px; font-weight: 600; }
.lm-s { fill: var(--muted); font-size: 11.5px; }
.lm-l { fill: none; stroke: var(--idle-dot); stroke-width: 2.5; }
.lm-l.ok { stroke: var(--ok-dot); } .lm-l.bad { stroke: var(--bad-dot); stroke-dasharray: 7 5; } .lm-l.q { stroke-dasharray: 2 6; }
.lm-lab { fill: var(--text); font-size: 11.5px; }
.lm-labbg { fill: var(--card); stroke: var(--line); }
.lm-key { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.vline { width: 2px; height: 24px; background: var(--line2); }
.pools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px 24px; }
.days-card { flex: 1 1 220px !important; max-width: 320px; gap: 4px; }
.day { display: block; width: 100%; text-align: left; min-height: 40px; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--navfg); cursor: pointer; font-size: 13px; overflow-wrap: anywhere; transition: background-color .15s; }
.day:hover { background: var(--hover); }
.day.on { background: var(--accent-soft); color: var(--strong); font-weight: 600; }
.diff { border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.diff > div { padding: 3px 12px; white-space: pre; font-size: 12.5px; }
.diff-sec { background: var(--sunk); color: var(--muted); }
.diff-plus { background: var(--ok-bg); color: var(--ok); }
.diff-minus { background: var(--bad-bg); color: var(--bad); }
pre.raw { margin: 0; padding: 14px; background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.5; color: var(--text2); white-space: pre; }
.bar.grow { flex: 1 1 auto; }
.pre { white-space: pre-line; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text2); }
label.risk { cursor: pointer; }

/* ---------- sign-in ---------- */
:root[data-accent="emerald"] { --accent: #34D399; --accent-text: #34D399; --accent-soft: rgba(52,211,153,.14); --accent-ring: rgba(52,211,153,.42); }
:root[data-accent="violet"]  { --accent: #A78BFA; --accent-text: #A78BFA; --accent-soft: rgba(167,139,250,.15); --accent-ring: rgba(167,139,250,.42); }
:root[data-accent="amber"]   { --accent: #FBBF24; --accent-text: #FBBF24; --accent-soft: rgba(251,191,36,.14); --accent-ring: rgba(251,191,36,.42); }
:root[data-accent="rose"]    { --accent: #FB7185; --accent-text: #FB7185; --accent-soft: rgba(251,113,133,.15); --accent-ring: rgba(251,113,133,.42); }

#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .75; }

.auth { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 18px; overflow: hidden; gap: 14px; perspective: 1200px; z-index: 1; }
.auth::before, .auth::after { content: ''; position: fixed; border-radius: 999px; pointer-events: none; z-index: 0; filter: blur(72px); opacity: .5; animation: authFloat 11s ease-in-out infinite alternate; }
.auth::before { width: 420px; height: 420px; top: -110px; left: -80px; background: radial-gradient(circle, var(--accent-ring), transparent 70%); }
.auth::after { width: 460px; height: 460px; bottom: -130px; right: -90px; background: radial-gradient(circle, rgba(16,185,129,.18), var(--accent-soft) 55%, transparent 72%); animation-delay: -5.5s; }
@keyframes authFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(26px, -22px) scale(1.08); } }

.auth-shell { position: relative; z-index: 2; width: 100%; max-width: 950px; display: grid; grid-template-columns: 1.08fr 1fr; border-radius: 26px; border: 1px solid var(--line2); background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 65%), var(--card); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(56,189,248,.08); overflow: hidden; animation: authIn .42s cubic-bezier(.16,1,.3,1); transform-style: preserve-3d; transition: transform .1s ease-out, filter .25s ease, border-color .25s; }
.auth-shell:hover { border-color: var(--accent-ring); }
.auth-shell.blurred { filter: blur(18px) brightness(.7); pointer-events: none; user-select: none; }
@keyframes authIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.scan-laser { position: absolute; left: 0; right: 0; top: -10%; height: 4px; background: linear-gradient(90deg, transparent, var(--accent), #34D399, var(--accent), transparent); box-shadow: 0 0 22px 4px var(--accent); z-index: 30; opacity: 0; pointer-events: none; }
.auth-shell.scanning .scan-laser { opacity: 1; animation: laserScan .72s ease-in-out infinite alternate; }
@keyframes laserScan { 0% { top: 4%; } 100% { top: 96%; } }

.auth-hero { position: relative; padding: 28px 28px; background: radial-gradient(560px 320px at 15% 15%, var(--accent-soft), transparent 70%), linear-gradient(160deg, var(--sunk), transparent); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; overflow: hidden; }
.auth-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(148,163,184,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(148,163,184,.06) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at 50% 45%, #000 45%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 45%, transparent 85%); pointer-events: none; }
.auth-hero > * { position: relative; z-index: 1; }
.auth-hero-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.auth-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--live-line); background: var(--live-bg); color: var(--ok); font-size: 12px; font-weight: 600; letter-spacing: .2px; }
.auth-pill .dot { animation: pulse 2.4s ease-out infinite; }
.auth-clock { font-size: 11.5px; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.auth-title h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--strong); letter-spacing: -.3px; }
.auth-title h2 span { background: linear-gradient(90deg, var(--accent), #34D399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-title p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.auth-viz { width: 100%; height: auto; display: block; padding: 2px 0; }
.av-line { stroke: var(--line2); stroke-width: 2; stroke-dasharray: 6 5; }
.av-flow { stroke: var(--accent); animation: avDash 14s linear infinite; transition: stroke-width .2s; }
.av-flow.d2 { animation-direction: reverse; stroke: #34D399; }
.av-flow.d3 { animation-duration: 11s; }
.av-flow.d4 { animation-direction: reverse; animation-duration: 16s; stroke: #34D399; }
.av-flow.boost { stroke-width: 3.5; animation-duration: 2s !important; }
@keyframes avDash { to { stroke-dashoffset: -220; } }
.av-node { cursor: pointer; }
.av-node rect { fill: var(--card); stroke: var(--line2); stroke-width: 1.5; transition: stroke .2s, fill .2s; }
.av-node:hover rect, .av-node.active rect { stroke: var(--accent); fill: var(--card-hi); }
.av-dot-ok { fill: var(--ok-dot); }
.av-t { fill: var(--strong); font-size: 12.5px; font-weight: 700; }
.av-s { fill: var(--muted); font-size: 10.5px; }
.av-hub { cursor: pointer; }
.av-radar { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 26 60; transform-origin: 210px 78px; animation: spin 5s linear infinite; opacity: .75; }
.av-pulse { fill: var(--accent-soft); stroke: var(--accent-ring); stroke-width: 1.5; transform-origin: 210px 78px; animation: avPulse 3s ease-in-out infinite; }
@keyframes avPulse { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.12); opacity: .25; } }
.av-core { fill: var(--card-hi); stroke: var(--accent); stroke-width: 2.2; transition: transform .2s; transform-origin: 210px 78px; }
.av-hub:hover .av-core { transform: scale(1.08); }
.av-ct { fill: var(--strong); font-size: 11.5px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; letter-spacing: .5px; }
.av-cs { fill: var(--accent-text); font-size: 9.5px; font-family: 'JetBrains Mono', monospace; }
.av-pkt { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }
.av-pkt.g { fill: #34D399; filter: drop-shadow(0 0 4px #34D399); }

.hb-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 13px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); font-size: 12px; }
.hb-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; flex-wrap: wrap; }
.hb-spark { width: 52px; height: 20px; flex: 0 0 auto; }
.hb-spark polyline { fill: none; stroke: var(--ok-dot); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hb-text { color: var(--muted); line-height: 1.35; }
.hb-text b { color: var(--strong); }
.hb-ms { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: var(--ok-bg); border: 1px solid var(--live-line); color: var(--ok); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ping-btn { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--accent-ring); background: var(--accent-soft); color: var(--accent-text); font-size: 11.5px; font-weight: 600; cursor: pointer; white-space: nowrap; flex: 0 0 auto; transition: transform .12s, background-color .15s, color .15s; }
.ping-btn:hover { background: var(--accent); color: var(--on-accent); }
.ping-btn:active { transform: scale(.96); }

.auth-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-feat { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 12px; transition: border-color .18s, transform .18s; }
.auth-feat:hover { border-color: var(--accent-ring); transform: translateY(-1px); }
.auth-feat svg { color: var(--accent-text); flex: 0 0 auto; margin-top: 2px; }
.auth-feat b { display: block; font-size: 12px; color: var(--strong); margin-bottom: 1px; }
.auth-feat span { color: var(--muted); font-size: 11px; }

.auth-box.card { border: 0; border-radius: 0; box-shadow: none; padding: 28px 32px; gap: 14px; justify-content: center; background: transparent; position: relative; }
.auth-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.auth-tools { display: flex; align-items: center; gap: 5px; margin-left: auto; flex-wrap: wrap; }
.auth-tools .btn.small { min-height: 29px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; gap: 5px; }

.swatches { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); }
.swatch { width: 13px; height: 13px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform .15s, border-color .15s; }
.swatch:hover { transform: scale(1.2); }
.swatch.on { border-color: var(--strong); transform: scale(1.15); }
.sw-cyan { background: #38BDF8; }
.sw-emerald { background: #34D399; }
.sw-violet { background: #A78BFA; }
.sw-amber { background: #FBBF24; }
.sw-rose { background: #FB7185; }

.auth-brand { padding: 2px 0 4px; gap: 14px; }
.auth-brand .logo { position: relative; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), #0284C7); box-shadow: 0 10px 24px -6px var(--accent-ring); }
.auth-brand .logo::after { content: ''; position: absolute; inset: -3px; border-radius: 17px; border: 1.5px dashed var(--accent-ring); animation: spin 12s linear infinite; pointer-events: none; }
.auth-brand h1 { margin: 0; font-size: 22px; font-weight: 700; color: var(--strong); letter-spacing: -.2px; }
.auth-brand small { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }

.lbl-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lbl-right { display: inline-flex; align-items: center; gap: 8px; }
.pw-count { font-size: 11px; color: var(--dim); }
.caps-warn { color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600; }

.eq-wrap { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.eq-bar { width: 3px; height: 4px; border-radius: 99px; background: var(--dim); transition: height .12s ease, background-color .12s; }
.eq-bar.on { background: var(--accent); }
.pw-meter { height: 3px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 2px; }
.pw-meter > i { display: block; height: 100%; width: 0%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #34D399); transition: width .2s ease; }

.inp-wrap { position: relative; display: flex; align-items: center; width: 100%; }
.inp-ico { position: absolute; left: 13px; color: var(--dim); display: inline-flex; pointer-events: none; transition: color .15s; }
.inp-wrap:focus-within .inp-ico { color: var(--accent-text); }
.auth input.field { width: 100%; min-height: 46px; border-radius: 12px; background: var(--sunk); }
.auth input.field:focus { background: var(--card); }
.auth input.field.has-ico { padding-left: 40px; }
.auth input.field.has-act { padding-right: 42px; }
.inp-act { position: absolute; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .15s, color .15s; }
.inp-act:hover, .inp-act.on { background: var(--hover); color: var(--accent-text); }

.auth-submit { min-height: 48px; border-radius: 12px; font-size: 15px; font-weight: 700; letter-spacing: .1px; background: linear-gradient(135deg, var(--accent), #0284C7); box-shadow: 0 10px 24px -8px var(--accent-ring); margin-top: 2px; transition: transform .15s, box-shadow .15s, filter .15s; }
.auth-submit:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 14px 28px -8px var(--accent-ring); }
.auth-submit svg { transition: transform .18s ease; }
.auth-submit:hover:not(:disabled) svg { transform: translateX(4px); }
.spin { width: 16px; height: 16px; border-radius: 999px; border: 2.2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .65s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.shake { animation: authShake .38s cubic-bezier(.36,.07,.19,.97); }
@keyframes authShake { 10%, 90% { transform: translateX(-3px); } 20%, 80% { transform: translateX(5px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }

.auth-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--dim); flex-wrap: wrap; }
.kbd { display: inline-block; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line2); background: var(--sunk); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted); }

.shield-msg { position: fixed; inset: 0; z-index: 40; display: none; align-items: center; justify-content: center; flex-direction: column; gap: 12px; background: rgba(7,11,19,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; }
.shield-msg.on { display: flex; }
.shield-box { padding: 18px 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--accent-ring); box-shadow: var(--shadow-lg); text-align: center; }
.shield-title { font-size: 16px; font-weight: 700; color: var(--strong); margin-bottom: 4px; }

/* ---------- Cyber-NOC telemetry command bar, LED matrix, DDM & inline rename ---------- */
.cmd-bar { flex: 1 1 100%; min-width: 0; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(90deg, var(--sunk), var(--card)); box-shadow: var(--shadow); }
.vitals-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.vital-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 7px; max-width: 100%; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-hi); font-size: 12px; color: var(--text2); overflow-wrap: anywhere; }
.vital-pill b { color: var(--strong); font-weight: 700; }
.vital-pill .sep { color: var(--dim); }
.cmd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-left: auto; }
.btn.icon-pill { min-height: 34px; padding: 0 11px; border-radius: 999px; font-size: 12px; gap: 6px; }
.btn.icon-pill.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }

/* Card spotlight & subtle glow */
.card, .kpi, .wan { position: relative; overflow: hidden; }
.card::after, .kpi::after, .wan::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, -200px) var(--my, -200px), rgba(56,189,248,.07), transparent 60%); opacity: 0; transition: opacity .25s; }
.card:hover::after, .kpi:hover::after, .wan:hover::after { opacity: 1; }
.card-hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.card-hd h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15.5px; font-weight: 700; color: var(--strong); }

/* Switch Port LED Matrix Strip */
.sw-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 8px 0 16px; }
@media (max-width: 1220px) {
  .sw-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .sw-strip { grid-template-columns: 1fr; }
}
.sw-mini { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--sunk); display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: border-color .18s, transform .15s, background-color .18s; text-align: left; }
.sw-mini:hover { border-color: var(--accent-ring); background: var(--card-hi); transform: translateY(-2px); }
.sw-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sw-mini-top b { font-size: 13.5px; color: var(--strong); display: flex; align-items: center; gap: 6px; }
.led-grid { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 2px; }
.led { width: 15px; height: 15px; border-radius: 4px; background: var(--line); border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 8.5px; color: var(--dim); position: relative; }
.led.up { background: rgba(52,211,153,.22); border-color: var(--ok-dot); color: var(--ok); box-shadow: 0 0 6px rgba(52,211,153,.35); }
.led.fast { background: rgba(56,189,248,.24); border-color: var(--accent); color: var(--accent-text); box-shadow: 0 0 8px var(--accent-ring); }
.led.poe::after { content: ''; position: absolute; top: -2px; right: -2px; width: 5px; height: 5px; border-radius: 99px; background: #FBBF24; }

/* Per-Core CPU & SFP+ Optical DDM */
.core-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.core-box { padding: 8px 10px; border-radius: 11px; border: 1px solid var(--line); background: var(--sunk); display: flex; flex-direction: column; gap: 4px; }
.core-box-top { display: flex; justify-content: space-between; font-size: 12px; }
.opt-card { padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--sunk); display: flex; flex-direction: column; gap: 6px; }
.opt-bar { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #EF4444 0%, #F59E0B 22%, #10B981 35%, #10B981 82%, #F59E0B 92%, #EF4444 100%); }
.opt-bar > .opt-pin { position: absolute; top: -3px; width: 6px; height: 14px; border-radius: 3px; background: #FFFFFF; border: 1.5px solid #0F172A; box-shadow: 0 0 6px rgba(0,0,0,.7); transform: translateX(-50%); }

/* Watchlist Cards */
.watch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); gap: 10px; }
.watch-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 13px; border-radius: 13px; border: 1px solid var(--line); background: var(--sunk); transition: border-color .15s, background-color .15s; }
.watch-item:hover { border-color: var(--line2); background: var(--hover); }
.watch-item.off { border-color: var(--bad-dot); background: var(--bad-bg); }
.watch-info { min-width: 0; flex: 1 1 auto; }
.watch-info b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-info small { display: block; font-size: 11.5px; color: var(--muted); }

/* Inline Custom Rename Button & Modal */
.edit-btn { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; margin-left: 5px; border-radius: 6px; border: 1px solid var(--line2); background: var(--sunk); color: var(--muted); font-size: 11px; font-weight: 500; cursor: pointer; vertical-align: middle; transition: background-color .15s, color .15s, border-color .15s, transform .1s; }
.edit-btn:hover { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent-ring); transform: scale(1.04); }
.custom-tag { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-text); font-size: 10.5px; font-weight: 600; margin-left: 4px; }
.rename-backdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(7,11,19,.68); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadeIn .15s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.rename-dialog { width: 100%; min-width: 0; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 20px; border: 1px solid var(--accent-ring); background: var(--card); box-shadow: var(--shadow-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.rename-dialog h3 { margin: 0; font-size: 17px; color: var(--strong); display: flex; align-items: center; gap: 8px; }
.rename-dialog .field { width: 100%; }
.rename-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ---------- Cyber-NOC Bento Grid & Deep Telemetry Showcase ---------- */
.bento-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); gap: 14px; }
.bento-hero.wans-2 { grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); }
.health-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.health-grid > .ring { flex: 0 0 132px; }
.health-list { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-score { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; line-height: 1; color: var(--strong); }

.wan-card { position: relative; overflow: hidden; }
.wan-card.inuse { border-color: var(--accent-ring); background: radial-gradient(280px circle at 90% 0%, var(--accent-soft), transparent 70%), var(--card); }
.wan-card.inuse::before { content: 'เส้นหลักตอนนี้'; position: absolute; top: 0; right: 0; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; padding: 2px 9px; border-radius: 0 0 0 10px; }
.wan-metrics { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; padding: 8px 10px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line); }
.wan-m-lbl { font-size: 10.5px; color: var(--muted); }
.wan-m-val { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; color: var(--strong); line-height: 1.2; }
.wan-speeds { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.spd-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wan-quota { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); padding-top: 4px; border-top: 1px dashed var(--line); }

.section-divider {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border-radius: 14px;
  background: linear-gradient(90deg, var(--accent-soft), transparent 85%);
  border-left: 4px solid var(--accent); margin: 16px 0 10px;
  flex-wrap: wrap;
}
.section-divider b { font-size: 14.5px; color: var(--strong); display: flex; align-items: center; gap: 8px; }
.section-divider span { font-size: 12px; color: var(--muted); }

.sw-mini.active-sw { border-color: var(--accent); background: var(--card-hi); box-shadow: 0 0 0 1px var(--accent-ring); }
.sw-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-tab-btn {
  padding: 7px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--sunk);
  font-size: 12.5px; font-weight: 600; color: var(--text2); cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 7px;
}
.sw-tab-btn:hover { background: var(--hover); color: var(--strong); }
.sw-tab-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--strong); box-shadow: 0 4px 12px -4px var(--accent-ring); }
.sw-panel { display: flex; flex-direction: column; gap: 14px; }

.faceplate {
  padding: 14px 16px; border-radius: 14px; background: var(--sunk); border: 1px solid var(--line2);
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}
.fp-port {
  width: 52px; padding: 6px 4px; border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; position: relative;
}
.fp-port.up { border-color: var(--live-line); background: rgba(16,185,129,.09); }
.fp-port.poe { border-color: var(--warn-line); }
.fp-port b { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--strong); }
.fp-port .w-tag { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--warn); font-weight: 600; }
.fp-port .s-tag { font-size: 9px; color: var(--ok); }

.sfp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sfp-box { padding: 11px 13px; border-radius: 13px; background: var(--sunk); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.sfp-box .lbl { font-size: 11px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; }
.sfp-box .val { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--strong); overflow-wrap: anywhere; }
.opt-meter { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #EF4444 0%, #F59E0B 25%, #10B981 50%, #10B981 85%, #F59E0B 100%); margin-top: 4px; }
.opt-meter > .opt-pin { position: absolute; top: -3px; width: 4px; height: 14px; border-radius: 2px; background: #fff; box-shadow: 0 0 6px #000; transform: translateX(-50%); }

.core-grid.ccr-36 { grid-template-columns: repeat(9, 1fr); gap: 5px; }
.core-cell { padding: 8px 10px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; }
.core-grid.ccr-36 .core-cell { padding: 4px 6px; font-size: 10px; text-align: center; }

.row-equal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.donuts-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; align-items: start; }
@media (max-width: 900px) {
  .donuts-grid-2 { grid-template-columns: minmax(0, 1fr); }
}

.kpi-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.kpi-pill { background: var(--sunk); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.kpi-pill b { color: var(--strong); }
.kpi-pill span { color: var(--muted); }

.chart-tele-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.chart-tele-strip .c-tele-item { display: flex; flex-direction: column; gap: 2px; }
.chart-tele-strip .c-tele-lbl { font-size: 11px; color: var(--muted); }
.chart-tele-strip .c-tele-item b { font-size: 12.5px; color: var(--strong); font-family: 'JetBrains Mono', monospace; }
@media (max-width: 600px) {
  .chart-tele-strip { grid-template-columns: repeat(2, 1fr); }
}

.talker-list-compact { display: flex; flex-direction: column; gap: 6px; }
.talker-row-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--sunk);
  border: 1px solid var(--line);
  font-size: 12px;
  transition: all .15s;
}
.talker-row-compact:hover { background: var(--hover); border-color: var(--accent-ring); }
.talker-rank { font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; color: var(--dim); width: 22px; flex-shrink: 0; }
.talker-id-col { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1.2; }
.talker-id-col b { font-size: 12px; color: var(--strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talker-id-col small { font-size: 10.5px; color: var(--muted); }
.talker-bar-col { flex: 1; min-width: 50px; }
.talker-val-col { font-size: 11.5px; font-weight: 600; text-align: right; min-width: 65px; flex-shrink: 0; }

.vlan-donut-layout { display: flex; align-items: center; gap: 24px; padding: 10px 0; }
.donut-svg-wrap { position: relative; width: 136px; height: 136px; flex-shrink: 0; }
.donut-svg { transform: rotate(-90deg); overflow: visible; }
.donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.donut-center-val { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; color: var(--strong); line-height: 1; display: block; }
.donut-center-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.vlan-legend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; flex: 1; }
.vlan-legend-card { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); }
.vlan-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.vlan-info { display: flex; flex-direction: column; min-width: 0; }
.vlan-info b { font-size: 12px; color: var(--strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px) {
  .vlan-donut-layout { flex-direction: column; align-items: flex-start; }
}

.tbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--sunk); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; text-align: left; }
table.tbl th { padding: 9px 12px; font-size: 11px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); white-space: nowrap; }
table.tbl td { padding: 8.5px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: var(--hover); }

.label-input {
  background: var(--card); border: 1px dashed var(--line2); border-radius: 7px;
  padding: 3px 8px; font-size: 12px; color: var(--strong); width: 175px;
}
.label-input:focus { outline: none; border-style: solid; border-color: var(--accent); }

.fs-10 { font-size: 10px; }
.fs-10-5 { font-size: 10.5px; }
.fs-11 { font-size: 11px; }
.fs-11-5 { font-size: 11.5px; }
.fs-12 { font-size: 12px; }
.fs-12-5 { font-size: 12.5px; }
.fs-13 { font-size: 13px; }
.fs-15 { font-size: 15px; }
.fs-17 { font-size: 17px; }
.fs-18 { font-size: 18px; }
.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.c-strong { color: var(--strong); }
.c-ok-text { color: var(--ok); }
.c-warn-text { color: var(--warn); }
.c-accent-text { color: var(--accent-text); }
.c-muted { color: var(--muted); }
.c-amber { color: var(--warn); }
.gap-14 { gap: 14px; }
.kpi-4 { grid-template-columns: repeat(4, 1fr) !important; }
.h-44 { width: 100%; height: 44px; display: block; }
.h-175 { width: 100%; height: 175px; display: block; }
.border-accent { border-color: var(--accent-ring) !important; }
.bg-warn-soft { background: rgba(251,191,36,.07); }
.mt-2 { margin-top: 2px; }
.mt-4 { margin-top: 4px; }
.mr-6 { margin-right: 6px; }
.chip-xs { font-size: 10px; padding: 1px 6px; }

@media (max-width: 1220px) {
  .bento-hero, .bento-hero.wans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-2, .row-equal { grid-template-columns: 1fr; }
}

/* ---------- wide screens: menu and page header stay in view ---------- */
@media (min-width: 821px) {
  .nav { flex: 0 0 304px; position: sticky; top: 0; height: 100vh; overflow-y: auto; align-self: flex-start; scrollbar-width: thin; }
  .top { position: sticky; top: 0; z-index: 20; margin: -20px -28px 0; padding: 16px 28px 14px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
}

/* ---------- phones and narrow windows (menu sits above the page): it folds away behind a button ---------- */
@media (max-width: 820px) {
  .shell { flex-direction: column; }
  .main { width: 100%; flex: 1 1 auto; }
  .nav { flex: 0 0 auto; width: 100%; max-width: none; padding: 12px 12px 14px; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav .menu-btn { display: inline-flex; }
  .nav:not(.open) > div:not(.brand) { display: none; }
  .nav-item.on::before { left: -12px; }
  .auth-shell { grid-template-columns: 1fr; max-width: 480px; }
  .auth-hero { padding: 24px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-box.card { padding: 24px 22px; }
  .auth-feats { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .main { padding: 16px; }
  .tools > label.lbl { flex: 1 1 100%; }
  .tools > label.lbl > .field { width: 100%; }
  form.tools > .btn { flex: 1 1 100%; }
  .top h1 { font-size: 22px; }
  .card { padding: 16px; border-radius: 16px; }
  .kpi .v { font-size: 24px; }
  .bento-hero, .bento-hero.wans-2 { grid-template-columns: minmax(0, 1fr); }
  .sfp-grid { grid-template-columns: minmax(0, 1fr); }
  .core-grid.ccr-36 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Multi-Site Onboarding Wizard & Telemetry Banners ---------- */
.wizard-backdrop { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5,9,18,.75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadeIn .15s ease-out; }
.wizard-dialog { width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto; border-radius: 20px; border: 1px solid var(--accent-ring); background: var(--card); box-shadow: var(--shadow-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.wizard-dialog h3 { margin: 0; font-size: 18px; color: var(--strong); display: flex; align-items: center; justify-content: space-between; }
.wizard-steps-bar { display: flex; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line); overflow: hidden; margin-bottom: 6px; }
.w-step-item { flex: 1; padding: 8px 10px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 6px; }
.w-step-item:last-child { border-right: none; }
.w-step-item.current { color: var(--accent); background: var(--card); border-bottom: 2px solid var(--accent); font-weight: 700; }
.w-step-item.done { color: var(--ok); }
.w-step-num { width: 18px; height: 18px; border-radius: 50%; background: var(--line2); font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
.w-step-item.current .w-step-num { background: var(--accent); color: var(--on-accent); }
.w-step-item.done .w-step-num { background: var(--ok); color: #041019; }
.wizard-body { display: flex; flex-direction: column; gap: 14px; font-size: 13px; }
.wizard-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.fingerprint-card { background: var(--sunk); border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent-text); display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }

.banner-offline { border-radius: 14px; padding: 14px 18px; background: var(--bad-bg); border: 1px solid var(--bad-border, rgba(248,113,113,.35)); color: var(--bad); display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.banner-stale { border-radius: 14px; padding: 14px 18px; background: var(--warn-bg); border: 1px solid var(--warn-border, rgba(251,191,36,.35)); color: var(--warn); display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; box-shadow: var(--shadow); }


/* Keep readiness fingerprints and onboarding controls inside narrow screens. */
.readiness-card .note { overflow-wrap: anywhere; }
.wizard-dialog { min-width: 0; overflow-x: hidden; }
.wizard-body, .wizard-body > div, .wizard-body select, .wizard-body input { min-width: 0; max-width: 100%; }
.wizard-dialog pre { overflow-x: auto; max-width: 100%; }
@media (max-width: 600px) {
  .wizard-dialog { padding: 16px; }
  .w-step-item { min-width: 0; padding: 6px 2px; flex-direction: column; font-size: 10px; gap: 3px; }
  .wizard-dialog .field { width: 100%; }
  .wizard-actions { gap: 8px; flex-wrap: wrap; }
}

/* Phone: summary tiles two per row (was one tile per row, a long scroll) */
@media (max-width: 650px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .kpi-grid .kpi { padding: 12px 13px; }
  .kpi-grid .kpi .v { font-size: 21px; }
}

.disk-capacity{display:block;width:100%;height:8px;border:0;border-radius:8px;overflow:hidden;appearance:none;background:var(--line);accent-color:#22c55e}.disk-capacity::-webkit-progress-bar{background:var(--line)}.disk-capacity::-webkit-progress-value{background:#22c55e}.disk-capacity::-moz-progress-bar{background:#22c55e}.disk-capacity.warn{accent-color:#f59e0b}.disk-capacity.full{accent-color:#ef4444}.disk-capacity.warn::-webkit-progress-value{background:#f59e0b}.disk-capacity.full::-webkit-progress-value{background:#ef4444}.disk-capacity.unknown{opacity:.4}.disk-scale{font-size:10px}

/* Traffic shares use the full byte total, including items outside the top five. */
.usage-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 8px 0; }
.usage-chart { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--sunk); display: flex; flex-direction: column; gap: 18px; }
.usage-chart h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--strong); }
.usage-chart p { margin: 5px 0 0; }
.usage-chart-body { display: grid; grid-template-columns: minmax(130px, .85fr) minmax(0, 1.15fr); gap: 20px; align-items: center; }
.usage-donut { display: block; width: 100%; max-width: 220px; height: auto; margin: auto; overflow: visible; }
.usage-track, .usage-slice { fill: none; stroke-width: 23; }
.usage-track { stroke: var(--line); }
.usage-slice { stroke: var(--usage-color); transition: stroke-width .15s; }
.usage-slice:hover { stroke-width: 29; }
.usage-total { fill: var(--strong); font-family: 'Space Grotesk', 'Anuphan', sans-serif; font-size: 23px; font-weight: 700; }
.usage-caption { fill: var(--muted); font-size: 11px; }
.usage-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.usage-key { display: flex; align-items: center; gap: 10px; min-width: 0; }
.usage-swatch { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; background: var(--usage-color); }
.usage-key-name { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 12px; overflow-wrap: anywhere; }
.usage-key-name b, .usage-key-name a { font-weight: 500; color: var(--text); }
.usage-key-name a:hover { color: var(--accent-text); }
.usage-key-name > span { color: var(--muted); font-size: 11px; }
.usage-percent { color: var(--strong); font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; white-space: nowrap; }
.usage-percent small { font-size: 10px; margin-left: 2px; color: var(--muted); }
.usage-footnote { font-size: 11px; color: var(--muted); margin-top: auto !important; }
.usage-tone-0 { --usage-color: #38BDF8; }
.usage-tone-1 { --usage-color: #A78BFA; }
.usage-tone-2 { --usage-color: #34D399; }
.usage-tone-3 { --usage-color: #FBBF24; }
.usage-tone-4 { --usage-color: #FB7185; }
.usage-tone-5 { --usage-color: #94A3B8; }
@media (max-width: 1220px) { .usage-charts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .usage-chart { padding: 16px; }
  .usage-chart-body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
/* UniFi shares the console's type, palette and table breakpoints. */
.unifi-select,.unifi-sensors{display:flex;flex-wrap:wrap;gap:10px;margin-block:12px}
.unifi-select .btn{max-width:100%;overflow-wrap:anywhere;white-space:normal;text-align:left}
.unifi-sensors>span{padding:10px 14px;border:1px solid var(--line);border-radius:10px}
.unifi-json{max-width:100%;max-height:560px;overflow:auto;font-size:12px;line-height:1.6;white-space:pre}

.ap-metric-chart{display:block;width:100%;height:auto;max-height:220px}

/* Readable AP insights, responsive within the existing console layout. */
.ap-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.ap-chart-grid>section{min-width:0}.ap-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin-block:10px;font-size:12px;color:var(--text2)}.ap-legend>span{display:inline-flex;align-items:center;gap:5px;overflow-wrap:anywhere}.ap-timeline{list-style:none;padding-left:12px;border-left:2px solid var(--line2);margin-top:20px}.ap-timeline li{padding:0 0 18px 12px;overflow-wrap:anywhere}.card meter{width:150px;max-width:100%;height:18px}@media(max-width:1100px){.ap-chart-grid{grid-template-columns:1fr}}

/* ==================== MODERN DE-CLUTTERED DASHBOARD & DONUT ANALYTICS ==================== */
.kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 8px; }
.kpi-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; transition: all .2s; position: relative; overflow: hidden; }
.kpi-card:hover { border-color: var(--accent-ring); transform: translateY(-2px); }
.kpi-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.kpi-card.ok::before { background: var(--ok-dot); }
.kpi-card.warn::before { background: var(--warn-dot); }
.kpi-card.purple::before { background: #8B5CF6; }
.kpi-info { display: flex; flex-direction: column; gap: 3px; }
.kpi-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi-value { font-family: 'Space Grotesk', 'Anuphan', sans-serif; font-size: 24px; font-weight: 700; color: var(--strong); line-height: 1.1; }
.kpi-sub { font-size: 11.5px; color: var(--dim); display: flex; align-items: center; gap: 5px; }
.kpi-sub.up { color: var(--ok-dot); }
.kpi-badge { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpi-card.ok .kpi-badge { background: var(--ok-bg); color: var(--ok-dot); }
.kpi-card.warn .kpi-badge { background: var(--warn-bg); color: var(--warn-dot); }
.kpi-card.purple .kpi-badge { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }

.donuts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0; }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; position: relative; }
.chart-header { display: flex; justify-content: space-between; align-items: flex-start; }
.chart-header h3 { font-size: 15px; font-weight: 600; color: var(--strong); margin: 0; }
.chart-header p { font-size: 11.5px; color: var(--muted); margin: 2px 0 0; }
.chart-tag { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-ring); white-space: nowrap; }

.donut-layout { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 6px 0; }
.donut-svg-wrap { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.donut-svg { transform: rotate(-90deg); overflow: visible; }
.donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.donut-center-val { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: var(--strong); display: block; line-height: 1.1; }
.donut-center-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

.donut-legend { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.legend-item { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding: 3px 6px; border-radius: 6px; transition: background .15s; }
.legend-item:hover { background: var(--hover); }
.legend-left { display: flex; align-items: center; gap: 7px; min-width: 0; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-name { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.legend-val { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.split-row { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 16px; margin: 8px 0; }
.split-row > *, .chart-card, .switch-board, .ports-faceplate { min-width:0; max-width:100%; }
.switch-tabs { max-width:100%; }
.switch-board { display: flex; flex-direction: column; gap: 12px; }
.switch-tabs { display: flex; flex-wrap:wrap; gap:6px; border-bottom:1px solid var(--line); padding-bottom:10px; }
.switch-tab-btn { min-width:0; max-width:100%; min-height:44px; padding:8px 12px; border-radius:8px; background:var(--sunk); border:1px solid var(--line); color:var(--muted); font-size:12px; font-weight:600; cursor:pointer; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:6px; transition:background .15s,border-color .15s; text-align:left; }
.switch-tab-label { min-width:0; overflow-wrap:anywhere; }
.switch-tab-count { white-space:nowrap; }
.switch-tab-btn:hover { background: var(--hover); color: var(--strong); }
.switch-tab-btn.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: 0 2px 8px var(--accent-ring); }

.ports-faceplate { background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ports-grid-compact { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(44px,100%),1fr)); gap:6px; }
.mini-port { min-width:0; min-height:44px; aspect-ratio:1; padding:4px; border-radius:6px; background:rgba(255,255,255,.04); border:1px solid var(--line); display:flex; flex-direction:column; align-items:center; justify-content:center; font-family:'JetBrains Mono',monospace; font-size:11px; line-height:1.3; color:var(--muted); cursor:pointer; position:relative; transition:border-color .15s,background .15s; }
.mini-port-label { display:block; min-width:0; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.mini-port:hover { border-color:var(--accent); }
.mini-port[aria-pressed="true"] { box-shadow:inset 0 0 0 2px var(--accent); }
.port-preview { margin:0; font-size:12px; color:var(--muted); overflow-wrap:anywhere; min-width:0; }
.mini-port.up { background: var(--ok-bg); border-color: var(--ok-dot); color: var(--ok-dot); }
.mini-port.poe { background: var(--warn-bg); border-color: var(--warn-dot); color: var(--warn-dot); }
.mini-port.sfp { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }
.mini-port.sfp-slot { border-style: dashed; border-color: var(--accent); }
.mini-port.sfp-slot.up, .mini-port.sfp-slot.poe, .mini-port.sfp-slot.sfp { border-style: solid; }
.mini-port .p-kind { display:block; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:8px; line-height:1.1; letter-spacing:.02em; color:var(--accent-text); }
.p-leg-sfp { display:inline-block; width:10px; height:10px; border:1px dashed var(--accent); border-radius:2px; }
.mini-port .p-led { width: 3.5px; height: 3.5px; border-radius: 50%; background: currentColor; margin-top: 1.5px; }
.ports-footer { display:flex; flex-wrap:wrap; gap:10px 16px; justify-content:space-between; align-items:center; font-size:11px; color:var(--muted); padding-top:6px; border-top:1px dashed var(--line); }
.port-legend { display:flex; flex-wrap:wrap; gap:6px 12px; min-width:0; }
.p-leg { display:flex; align-items:center; gap:4px; white-space:nowrap; }
.ports-footer>a { min-width:0; overflow-wrap:anywhere; padding-block:8px; }

/* Interaction light: no scaling of port cells or motion during telemetry refresh. */
.chart-card,.gauge-box,.branch-card { position:relative; }
.chart-card::after,.kpi-card::after,.gauge-box::after,.branch-card::after { content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background:radial-gradient(300px circle at var(--mx,50%) var(--my,0%),var(--accent-soft),transparent 65%); opacity:0; transition:opacity .2s ease; }
.chart-card:focus-within::after,.gauge-box:focus-within::after { opacity:.6; }
.mini-port { transition:border-color .18s,background-color .18s,box-shadow .18s,filter .18s; }
.mini-port.up .p-led,.mini-port.poe .p-led,.mini-port.sfp .p-led { box-shadow:0 0 6px currentColor; }
.mini-port[aria-pressed="true"] { border-color:var(--accent); box-shadow:inset 0 0 0 2px var(--accent),0 0 12px var(--accent-soft); }
.switch-tab-btn { transition:background-color .18s,border-color .18s,box-shadow .18s; }
.btn:active:not(:disabled),.switch-tab-btn:active { filter:brightness(1.12); }
@media(hover:hover) and (pointer:fine) {
  .chart-card:hover::after,.kpi-card:hover::after,.gauge-box:hover::after,.branch-card:hover::after { opacity:1; }
  .mini-port:hover { box-shadow:inset 0 0 0 1px var(--accent-ring),0 0 14px var(--accent-soft);filter:brightness(1.08); }
  .switch-tab-btn:hover { box-shadow:0 3px 12px var(--accent-soft); }
}
@media(prefers-reduced-motion:reduce) {
  .chart-card::after,.kpi-card::after,.gauge-box::after,.branch-card::after { background:none; }
}

.gauges-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gauge-box { background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gauge-title { font-size: 11.5px; color: var(--muted); font-weight: 500; width: 100%; text-align: left; }
.semi-gauge-wrap { width: 120px; height: 62px; position: relative; overflow: hidden; display: flex; justify-content: center; }
.gauge-center-text { position: absolute; bottom: 0; text-align: center; }
.gauge-center-val { font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700; color: var(--strong); line-height: 1; }
.gauge-center-status { font-size: 9.5px; color: var(--ok-dot); font-weight: 600; display: block; margin-top: 2px; }

.alerts-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); min-width:0; max-width:100%; flex:1 1 300px; }
.alerts-header { display: flex; flex-wrap:wrap; gap:10px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.alerts-header > div { min-width:0; flex:1 1 180px; overflow-wrap:anywhere; }
.alerts-list { display: flex; flex-direction: column; gap: 8px; }
.alert-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 10px; background: var(--sunk); border: 1px solid var(--line); gap: 12px; transition: all .15s; }
.alert-row:hover { border-color: var(--accent-ring); background: var(--hover); }
.alert-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.alert-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 13px; font-weight: 700; }
.alert-icon.ok { background: var(--ok-bg); color: var(--ok-dot); }
.alert-icon.warn { background: var(--warn-bg); color: var(--warn-dot); }
.alert-icon.info { background: var(--accent-soft); color: var(--accent-text); }
.alert-text b { font-size: 12.5px; color: var(--strong); display: block; }
.alert-text span { font-size: 11px; color: var(--muted); }
.alert-meta { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--dim); white-space: nowrap; }

@media (max-width: 1220px) {
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donuts-row { grid-template-columns: minmax(0, 1fr); }
  .split-row { grid-template-columns: minmax(0, 1fr); }
}

/* ==================== COMPACT SPACE-OPTIMIZED TELEMETRY & TALKERS ==================== */
.chart-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.c-tele-item { display: flex; flex-direction: column; gap: 2px; }
.c-tele-lbl { font-size: 10.5px; color: var(--muted); }
.c-tele-item b { font-size: 12.5px; color: var(--strong); }

.talker-compact-list { display: flex; flex-direction: column; gap: 6px; }
.talker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--sunk);
  border: 1px solid var(--line);
  font-size: 12px;
  transition: all .15s;
}
.talker-row:hover { background: var(--hover); border-color: var(--accent-ring); }
.talker-rank { font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 700; color: var(--dim); width: 20px; flex-shrink: 0; }
.talker-col-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1.2; }
.talker-col-info b { font-size: 12px; color: var(--strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talker-col-info small { font-size: 10.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.talker-col-bar { flex: 1; min-width: 60px; }
.talker-bytes { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--accent-text); font-weight: 600; white-space: nowrap; text-align: right; min-width: 65px; }

.member-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}.member-form .lbl{min-width:0}.member-form .field{width:100%;min-width:0}.member-form fieldset{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:12px 20px;border:1px solid var(--line2);border-radius:10px;padding:16px;min-width:0}.member-form fieldset label{display:flex;align-items:center;gap:8px}.member-form .note{grid-column:1/-1;overflow-wrap:anywhere}@media(max-width:640px){.member-form{grid-template-columns:1fr}}

/* MFA secrets stay local to the authenticated page; wrap on narrow screens. */
.mfa-codes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:10px;margin:16px 0}.mfa-codes code,.mfa-secret{overflow-wrap:anywhere;user-select:all}.mfa-codes code{display:block;padding:10px;border:1px solid var(--line);border-radius:8px}

/* Fleet Multi-Site Grid & Branch Cards */
.fleet-section { margin-top: 14px; margin-bottom: 14px; }
.fleet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.branch-card { padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; border-top: 3px solid var(--accent); transition: all .2s; }
.branch-card:hover { border-top-color: var(--ok); transform: translateY(-2px); box-shadow: var(--shadow); }
.branch-hd { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.branch-body { background: var(--sunk); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 12px; }
.branch-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.branch-drill-btn { font-size: 11.5px; font-weight: 600; padding: 5px 12px; color: var(--accent-text); border-color: var(--accent); cursor: pointer; }
.branch-drill-btn:hover { background: var(--accent-bg); }
.c-ok-text { color: var(--ok); font-weight: 600; }
.c-warn-text { color: var(--warn); font-weight: 600; }

.mfa-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.mfa-form>.note,.mfa-form>.mfa-ack{grid-column:1/-1}.mfa-form .mfa-ack{display:flex;flex-direction:row;align-items:flex-start;gap:10px}.mfa-form .mfa-ack input{flex:0 0 auto;margin-top:4px}.mfa-form>.btn{justify-self:start}@media(max-width:760px){.mfa-form{grid-template-columns:minmax(0,1fr)}}

/* Static presentation extracted from trusted templates for strict CSP compatibility. */
[data-static-css="s00f75804ea16"]{background:var(--sunk); border:1px solid var(--line); border-radius:12px; padding:12px;}
[data-static-css="s0560631d2804"]{font-size:13px; font-weight:600; color:var(--strong); margin-top:2px;}
[data-static-css="s097ae647c22f"]{color:var(--accent)}
[data-static-css="s0cd38a099221"]{font-size:14px; font-weight:700; color:var(--strong); margin-top:2px;}
[data-static-css="s0ee7f66ad9c0"]{margin-top:12px}
[data-static-css="s1d436efc1f88"]{margin-top:6px;}
[data-static-css="s2e31e1243752"]{display:grid; grid-template-columns:2fr 1fr; gap:10px;}
[data-static-css="s311c619ca0b6"]{display:flex;align-items:center;gap:6px}
[data-static-css="s315dd25e8a93"]{display:flex; justify-content:space-between; color:var(--muted); font-size:11px;}
[data-static-css="s33ee29812798"]{font-size:11px}
[data-static-css="s3a07a2839079"]{display:flex; justify-content:space-between; align-items:center; background:var(--sunk); padding:12px 14px; border-radius:12px; border:1px solid var(--line);}
[data-static-css="s3a64ce5c1ab1"]{display:grid; grid-template-columns:3fr 1fr; gap:10px;}
[data-static-css="s3b8c3e7bd728"]{font-size:12px;padding:4px 12px}
[data-static-css="s3d20931827cd"]{font-size:11px;min-width:68px}
[data-static-css="s3ffece8a251d"]{color:var(--accent-text);text-decoration:none;font-weight:600}
[data-static-css="s43a97fe4943c"]{margin-top:8px}
[data-static-css="s4ac55f75094a"]{display:flex; flex-direction:column; gap:10px;}
[data-static-css="s4c35263b0aec"]{display:flex; flex-direction:column; gap:12px;}
[data-static-css="s554faac64ded"]{display:grid; grid-template-columns:2fr 1fr; gap:8px;}
[data-static-css="s5574ae352acc"]{color:var(--warn-dot)}
[data-static-css="s6b4e3a04dc25"]{font-size:10px;padding:2px 6px}
[data-static-css="s6b9936f25395"]{font-size:13px;color:var(--muted)}
[data-static-css="s6d936361de22"]{display:flex; gap:14px; margin:6px 0;}
[data-static-css="s795d1d2d5c8f"]{display:flex;justify-content:space-between;font-size:11px}
[data-static-css="s79ab00ef111b"]{font-size:10px;}
[data-static-css="s7b8fb0261aa6"]{display:flex; align-items:center; gap:6px; cursor:pointer;}
[data-static-css="s83725d2c6e00"]{flex:1}
[data-static-css="s8a2c7566c231"]{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
[data-static-css="s8a9c212d4e9c"]{display:grid;grid-template-columns:repeat(3, 1fr);gap:6px;margin-bottom:8px}
[data-static-css="s8b8522c0b7f1"]{font-size:11px; color:var(--dim);}
[data-static-css="s8e26c5f7a105"]{margin-bottom:8px}
[data-static-css="s98bc2e8d8c70"]{color:var(--warn)}
[data-static-css="s9ccc4ca9d661"]{width:100%;}
[data-static-css="s9d0b23f5fa44"]{font-size:13px;font-weight:700}
[data-static-css="s9ecde7be31e8"]{height:130px}
[data-static-css="s9f836306f300"]{padding:4px 8px; font-size:12px;}
[data-static-css="sa25c06091ac1"]{grid-column:1/-1;text-align:center;padding:12px}
[data-static-css="sa3970b9f8a9d"]{font-size:15px}
[data-static-css="sa6fb384a88ae"]{margin-top:12px;border-top:1px dashed var(--line);padding-top:8px}
[data-static-css="sad90a0345598"]{margin:0;padding:12px 14px}
[data-static-css="sb0455c230f23"]{color:var(--dim)}
[data-static-css="sb0ac710e00f5"]{font-size:12.5px; font-weight:600; color:var(--ok); cursor:pointer;}
[data-static-css="sb0f3435cf6fd"]{color:var(--ok)}
[data-static-css="sb385a625d938"]{font-size:12px; margin-top:4px; opacity:.95;}
[data-static-css="sb887bfd5436e"]{display:flex; gap:8px;}
[data-static-css="sbe74bc7ba3b6"]{color:var(--accent-text)}
[data-static-css="sc517046751a3"]{font-weight:700; font-size:14px; display:flex; align-items:center; gap:8px;}
[data-static-css="scab27a3ff9dd"]{background:var(--sunk); border:1px solid var(--line); border-radius:12px; padding:12px; display:flex; align-items:center; gap:10px;}
[data-static-css="scca1159ec37a"]{font-size:12.5px; font-weight:600; color:var(--strong);}
[data-static-css="scdcf30d38bbd"]{background:var(--ok-bg);color:var(--ok);border-color:var(--ok)}
[data-static-css="sd1dc646165e3"]{margin-top:2px;}
[data-static-css="sd6a0e87fb27c"]{color:var(--text2); margin-top:2px;}
[data-static-css="sd7283bb72a2c"]{font-size:10.5px;color:var(--muted)}
[data-static-css="sd9e1420b52d2"]{background:var(--ok-bg);color:var(--ok)}
[data-static-css="sdaa6981aa970"]{display:grid;grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));gap:12px;margin-bottom:14px}
[data-static-css="sddffdebfebd7"]{font-size:14px; font-weight:700; color:var(--accent); word-break:break-all;}
[data-static-css="sdf05155ff054"]{display:flex;flex-direction:column;gap:4px;margin-bottom:8px}
[data-static-css="sdf928149c547"]{margin-top:10px}
[data-static-css="se17251c59279"]{font-weight:400;color:var(--dim)}
[data-static-css="se1f5ccbf016f"]{background:var(--sunk); border:1px solid var(--line); border-radius:10px; padding:12px;}
[data-static-css="se3d2bd01039d"]{width:18px; height:18px; cursor:pointer;}
[data-static-css="se826290d5793"]{background:var(--sunk); border:1px solid var(--line); border-radius:12px; padding:12px; line-height:1.5;}
[data-static-css="sf8e66ac4922d"]{display:flex; gap:16px; margin-top:8px;}
[data-static-css="sff611a7cc059"]{font-size:13px;color:var(--ok)}
[data-probe-result]{border-radius:12px;padding:14px;border:1px solid}[data-probe-result="ok"]{background:var(--ok-bg);color:var(--ok);border-color:var(--ok)}[data-probe-result="bad"]{background:var(--bad-bg);color:var(--bad);border-color:var(--bad)}
.disk-capacity.unknown{opacity:.55}.collector .kv{gap:8px}.collector .kv>span:last-child{overflow-wrap:anywhere}.branch-body{min-width:0}.branch-body .kv{flex-wrap:wrap;gap:8px}.branch-body .note{overflow-wrap:anywhere}
.fleet-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));min-width:0}.fleet-grid>.branch-card{min-width:0;max-width:100%}
.alert-text{min-width:0;overflow-wrap:anywhere}.alert-text b{overflow-wrap:anywhere}
