:root {
  --bg: #f4f6f9;
  --panel: #ffffff;
  --panel-2: #eef1f5;
  --text: #17202b;
  --muted: #5d6b7c;
  --border: #dde3ea;
  --accent: #2563eb;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --off: #6b7280;
  --off-bg: #e5e7eb;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --crit: #b91c1c;
  --crit-bg: #fee2e2;
  --spark: #2563eb;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --panel: #161b22;
    --panel-2: #1f2630;
    --text: #e6edf3;
    --muted: #8b98a8;
    --border: #2a323d;
    --accent: #58a6ff;
    --ok: #3fb950;
    --ok-bg: #12301b;
    --off: #8b949e;
    --off-bg: #262c35;
    --warn: #e3b341;
    --warn-bg: #3a2e0d;
    --crit: #ff7b72;
    --crit-bg: #3d1414;
    --spark: #58a6ff;
    --shadow: none;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
header.top {
  position: sticky; top: 0; z-index: 5; background: var(--panel); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; padding: 10px 20px; flex-wrap: wrap;
}
header.top .brand { font-weight: 700; font-size: 16px; letter-spacing: .2px; color: var(--text); }
header.top nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
header.top nav a { padding: 6px 10px; border-radius: 6px; color: var(--muted); }
header.top nav a.active, header.top nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
main { padding: 20px; max-width: 1900px; margin: 0 auto; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .summary { color: var(--muted); margin-left: auto; }
input[type=text], input[type=password], input[type=search], select {
  background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font: inherit; min-width: 0;
}
input[type=search] { width: 340px; max-width: 100%; }
button, .btn {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 12px; font: inherit; cursor: pointer; display: inline-block;
}
button:hover, .btn:hover { border-color: var(--accent); text-decoration: none; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { color: var(--crit); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.card { position: relative; gap: 8px; }
.card:hover { border-color: var(--accent); }
.card .cover { position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.card.picked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.card .topline { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 20px; margin-bottom: -4px; }
.card .topline .pick { position: relative; z-index: 2; display: flex; order: -1; }
.card .topline .badges { margin-left: auto; }
.card .topline .pick input { width: 18px; height: 18px; cursor: pointer; margin: 0; }
.tmv-id { font: 700 16px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; letter-spacing: .3px; }
.card-kv { gap: 2px 14px; }
.head-kv { margin-top: 8px; gap: 2px 14px; }
.head-kv dt { min-width: 64px; }
.card-kv dt { min-width: 64px; }
.tmv-id.sm { font-size: 13px; padding: 0 6px; }
tr.picked td { background: var(--panel-2); }
.fwpick { display: flex; flex-direction: column; gap: 8px; }
.fwpick input[type=search] { width: 100%; }
.fwpick select { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; padding: 4px; }
.fwpick select option { padding: 4px 6px; }
table.timeline td { vertical-align: top; }
.kind { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); white-space: nowrap; }
.kind.k-firmware, .kind.k-update { color: var(--accent); }
.kind.k-terminal { color: var(--ok); }
.kind.k-wan { color: var(--warn); }
.panel.unit-head { padding-bottom: 0; overflow: visible; position: relative; z-index: 3; }
.uh-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.uh-name { min-width: 0; flex: 1 1 300px; }
.uh-asset { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.uh-asset[hidden], #asset-form[hidden] { display: none; }
#asset-form input[type=text] { font-size: 20px; font-weight: 700; width: 340px; max-width: 100%; }
.tiny-btn { padding: 3px 10px; font-size: 12.5px; }
.refresh-box { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.rf-ok { color: var(--ok); font-weight: 600; }
.rf-warn { color: var(--warn); font-weight: 600; }
.tiny-btn.busy { opacity: .6; cursor: progress; }
.spinner { display: inline-block; width: 11px; height: 11px; margin-right: 6px; vertical-align: -1px; border: 2px solid var(--muted); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kind.k-refresh { color: var(--muted); }
.unit-head .tabs { margin-top: 12px; border-bottom: 0; }
.overview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0 16px; }
.detail-kv { gap: 5px 16px; font-size: 13.5px; }
.detail-kv dt { min-width: 100px; }
.charts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.charts2 .chart { min-width: 0; }
.charts2 .chart h3 { font-size: 13px; margin: 0 0 4px; color: var(--text); }
.uplot-host { position: relative; width: 100%; }
.u-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--panel); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 7px; border-radius: 6px; white-space: pre; z-index: 5; }
.u-tip[hidden] { display: none; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; padding: 5px 12px; background: var(--panel); }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.active { background: var(--accent); color: #fff; }
@media (max-width: 900px) { .charts2 { grid-template-columns: 1fr; } }
.cv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.cv-bar select { width: 16em; }
.cv-panes { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; }
.cv-pane { min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.cv-pane h3 { margin: 0 0 8px; font-size: 14px; display: flex; justify-content: space-between; }
.cv-pane h3 .muted { font-weight: 400; font-size: 12.5px; }
.cv-scroll { height: 60vh; min-height: 320px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cv-raw { table-layout: fixed; font-size: 12px; }
.cv-raw th, .cv-raw td { padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-raw th { position: sticky; top: 0; background: var(--panel-2); z-index: 1; }
.cv-raw th.sortable { cursor: pointer; user-select: none; }
.cv-raw td.data { white-space: pre; }
.cv-raw .num { text-align: right; }
.cv-raw td.id { color: var(--accent); }
.cv-raw td.type { color: var(--muted); }
.cv-raw tbody tr:hover td, .canview .sig-row:hover { background: var(--panel-2); }
.canview .sig-msg { margin: 10px 0 2px; padding: 0 8px; font-weight: 700; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.canview .sig-msg:first-child { margin-top: 6px; }
.canview .sig-row { display: flex; justify-content: space-between; gap: 12px; padding: 1px 8px 1px 20px; }
.canview .sig-name { color: var(--muted); }
.canview .sig-val { color: var(--text); text-align: right; white-space: nowrap; }
.canview .sig-val.stale { opacity: .45; }
.canview .sig-unit { color: var(--ok); }
.cv-empty { padding: 10px; }
@media (max-width: 1000px) { .cv-panes { grid-template-columns: minmax(0, 1fr); } }
.fwtable-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.fwtable { font-size: 13px; }
.fwtable th, .fwtable td { padding: 6px 10px; }
.fwtable th.sel, .fwtable td.sel { width: 34px; text-align: center; }
.fwtable tr.grp th { background: var(--panel-2); color: var(--text); font-weight: 700; font-size: 12.5px; padding: 5px 10px; text-transform: none; }
.fwtable tr.grp th .muted { font-weight: 400; margin-left: 6px; }
.fwtable tr.fwrow { cursor: pointer; }
.fwtable tr.fwrow:hover td { background: var(--panel-2); }
.fwtable tr.fwrow.picked td { background: var(--warn-bg); }
.fwtable tr.fwrow.current td:nth-child(2), .fwtable tr.fwrow.current td:nth-child(3) { font-weight: 600; }
.fwtable td .pill + .pill { margin-left: 4px; }
.fwtable { width: 100%; }
.fwtable td, .fwtable th { white-space: nowrap; }
.fwtable td.notes, .fwtable th.notes { max-width: 0; width: 100%; }
.fwtable tr.fwlog td { white-space: normal; }
.fwtable .trunc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fwtable tr.fwlog td { border-bottom: 1px solid var(--border); padding-top: 0; }
.fwtable tr.fwlog pre { margin: 0; }
.fwtable tbody[hidden], .fwtable tr[hidden] { display: none; }
@media (max-width: 700px) { .fwtable .notes { display: none; } .fwtable tr.fwlog td:last-child { white-space: normal; } }
dialog.fw-modal { max-width: none; width: min(560px, 96vw); max-height: 92vh; overflow: auto; padding: 18px 20px; }
.fwm-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.fwm-head h2 { margin: 0; color: var(--text); font-size: 18px; }
a.btn.primary-btn { background: var(--accent); border-color: var(--accent); color: #fff; }
a.btn.primary-btn:hover { text-decoration: none; filter: brightness(1.05); }
.fw-jobline { color: var(--warn); font-size: 13px; }
.fw-jobline[hidden] { display: none; }
.ok-text { background: var(--ok-bg); color: var(--ok); padding: 8px 10px; border-radius: 8px; }
#fwm-progress p { margin: 8px 0; }
@media (max-width: 600px) {
  dialog.fw-modal { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; padding: 12px; }
}
.fwl-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.fwl-tools input[type=search] { width: 340px; max-width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.inline-edit.compact tbody.fwrow tr.log { display: none; }
.inline-edit.compact tbody.fwrow.open tr.log, .inline-edit.compact tbody.fwrow.editing tr.log { display: table-row; }
.inline-edit.compact tbody.fwrow tr.main { cursor: pointer; }
.inline-edit.compact tbody.fwrow tr.main td { border-bottom: 1px solid var(--border); padding-bottom: 7px; }
.inline-edit.compact tbody.fwrow.open tr.main td, .inline-edit.compact tbody.fwrow.editing tr.main td { border-bottom: 0; }
.inline-edit.compact tbody.fwrow tr.main:hover td { background: var(--panel-2); }
.inline-edit.compact td.notes { max-width: 0; width: 100%; color: var(--muted); }
.inline-edit.compact td.chev, .inline-edit.compact th.chev { width: 22px; padding-right: 0; }
.inline-edit.compact .trunc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { display: inline-block; width: 0; height: 0; border: 5px solid transparent; border-left: 6px solid var(--muted); transition: transform .15s; }
tbody.fwrow.open .chevron { transform: rotate(90deg) translate(2px, -2px); }
tbody.fwrow[hidden] { display: none; }
.small { font-size: 12px; }
.bm-units { margin: 0 0 10px; }
#bm-select { max-width: 420px; }
.rollout-bar .bm-error { padding: 4px 10px; }
.bm-stock { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--crit); border-radius: 8px; background: var(--crit-bg); color: var(--crit); }
.bm-stock input[type=text] { color: var(--text); }
#bulk-modal #bm-filter { width: 100%; margin-bottom: 8px; }
.tb { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.tb-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.tb-field { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); }
.tb-field select { min-width: 150px; }
.tb-search { flex: 1 1 320px; }
.tb-search input[type=search] { width: 100%; }
.tb-toggles { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; min-height: 36px; }
.tb-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); white-space: nowrap; }
.tb-row .summary { align-self: center; color: var(--muted); font-size: 13px; }
.tb-act { align-items: center; min-height: 46px; padding: 6px 12px; }
.tb-act.has-sel { border-color: var(--accent); }
.tb-idle, .tb-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tb-idle[hidden], .tb-sel[hidden] { display: none; }
.tb-sep { width: 1px; align-self: stretch; background: var(--border); }
.tb-act .refresh-box { display: inline-flex; align-items: center; gap: 8px; }
.tb-act .tb-msg { margin-left: auto; font-size: 12.5px; }
.bm-confirm-text { white-space: pre-wrap; }
.view-toggle { align-self: flex-end; margin-left: auto; }
.tb-selrow { align-items: center; padding: 6px 12px; border-color: var(--accent); background: var(--panel); }
.tb-selrow[hidden] { display: none; }
.tb-selall { padding-left: 12px; border-left: 1px solid var(--border); }
.view-toggle button { padding: 7px 10px; line-height: 0; }
.view-toggle svg { fill: currentColor; }
.ulist-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.ulist { font-size: 13px; }
.ulist th, .ulist td { padding: 8px 10px; white-space: nowrap; }
.ulist th.sel, .ulist td.sel { width: 30px; }
.ulist tr.urow { cursor: pointer; }
.ulist tr.urow:hover td { background: var(--panel-2); }
.ulist tr.urow.picked td { background: var(--warn-bg); }
.ulist tr.urow.offline td { color: var(--muted); }
.ulist tr.grp th { background: var(--panel-2); color: var(--text); font-size: 13px; font-weight: 700; }
.ulist tr.grp th .muted { font-weight: 400; margin-left: 6px; }
.ulist .asset-link { font-weight: 600; color: var(--text); }
.ulist td.warn { color: var(--warn); } .ulist td.crit { color: var(--crit); }
.card.removed { opacity: .9; border-style: dashed; }
.card .removed-actions { position: relative; z-index: 2; }
.card .card-links { position: relative; z-index: 2; margin-top: 8px; }
.removed-group h2 { color: var(--crit); }
.more-menu { position: relative; display: inline-block; }
.more-menu summary { list-style: none; cursor: pointer; padding: 2px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); font-weight: 700; line-height: 1.4; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 210px; padding: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); display: flex; flex-direction: column; gap: 4px; }
.more-list form, .more-list button { width: 100%; text-align: left; }
@media (max-width: 600px) {
  .tb-field, .tb-search { flex: 1 1 100%; }
  .tb-field select { width: 100%; }
  .tb-row .summary { margin-left: 0; width: 100%; }
  .tb-act .refresh-box { margin-left: 0; }
  #bm-select { width: 100%; max-width: 100%; }
}
.job-bar { height: 6px; background: var(--panel-2); border-radius: 3px; margin-top: 6px; max-width: 420px; overflow: hidden; }
.job-bar > div { height: 100%; background: var(--accent); transition: width .4s; }
.job-bar[hidden] { display: none; }
.chart.big { grid-column: 1 / -1; }
.chart.big svg { height: 220px; }
pre.changelog-pre { white-space: pre-wrap; background: var(--panel-2); padding: 10px 12px; border-radius: 8px; font-size: 12.5px; margin: 0 0 14px; }
@media (max-width: 600px) { .overview-grid { grid-template-columns: 1fr; } }
.kv2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.kv2 dt { color: var(--muted); font-size: 11.5px; }
.kv2 dd { margin: 0; overflow-wrap: anywhere; }
.card .foot { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.card.offline { opacity: .82; }
.card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.card .asset { font-size: 22px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; color: var(--text); }
.card .asset.unset { color: var(--muted); font-style: italic; }
.card .sub { color: var(--muted); font-size: 12.5px; }
.card .tmv { font-size: 15px; margin-top: 2px; color: var(--text); }
.card .tmv b { font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.card .tmv.unset { color: var(--muted); font-style: italic; font-size: 13px; }
.card .tmv .pill { vertical-align: 2px; margin-left: 4px; }
.card .site { color: var(--muted); font-size: 12.5px; margin-bottom: 2px; }
.card .site .nw { white-space: nowrap; }
.groups { display: flex; flex-direction: column; gap: 22px; }
.group h2 { font-size: 16px; margin: 0 0 10px; }
.group h2 .muted { font-weight: 400; font-size: 13px; margin-left: 6px; }
.toolbar label input[type=checkbox] { vertical-align: -2px; }
.pill { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; display: inline-block; }
.pill.on { background: var(--ok-bg); color: var(--ok); }
.pill.off { background: var(--off-bg); color: var(--off); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.crit { background: var(--crit-bg); color: var(--crit); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; align-self: flex-start; }
.temp { display: flex; align-items: center; gap: 12px; }
.temp .val { font-size: 20px; font-weight: 650; min-width: 70px; }
.temp .val.warn { color: var(--warn); }
.temp .val.crit { color: var(--crit); }
.temp svg { flex: 1; height: 34px; min-width: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.links { display: flex; gap: 8px; flex-wrap: wrap; }
.copy { display: flex; gap: 6px; align-items: center; background: var(--panel-2); border-radius: 8px; padding: 4px 4px 4px 10px; }
.copy code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy button { padding: 3px 8px; font-size: 12px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; overflow-x: auto; }
.panel h2 { margin: 0 0 12px; font-size: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td form { display: inline; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.chart h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.chart svg { width: 100%; height: 120px; }
.flash { background: var(--panel-2); border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; margin-bottom: 14px; }
.empty { color: var(--muted); padding: 40px; text-align: center; }
.login { max-width: 360px; margin: 10vh auto; }
.login form { display: flex; flex-direction: column; gap: 10px; }
pre.conf { background: var(--panel-2); padding: 12px; border-radius: 8px; overflow-x: auto; }
.qr { background: #fff; display: inline-block; padding: 8px; border-radius: 8px; }
.muted { color: var(--muted); }
.card .wan { font: 700 20px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--accent); margin-top: 3px; letter-spacing: .2px; }
.card .wan.unset { color: var(--muted); font-weight: 400; font-size: 13px; font-style: italic; }
.wan-big { font-size: 22px; font-weight: 700; color: var(--accent); margin: 2px 0; }
details.editbox { margin-top: 6px; }
details.editbox summary { cursor: pointer; color: var(--accent); font-size: 12.5px; }
.asset-big { font-size: 26px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.wrap { overflow-wrap: anywhere; }
.nw { white-space: nowrap; }
.tabs { display: flex; gap: 4px; margin-top: 14px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.term { height: 62vh; min-height: 320px; box-sizing: border-box; background: #0d1117; border-radius: 8px; padding: 6px; }
.rollout-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 14px;
  background: var(--panel); border: 1px solid var(--accent); border-radius: 10px; }
.rollout-bar[hidden] { display: none; }
.panel .rollout-bar { border-color: var(--border); background: var(--panel-2); }
.stock-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px;
  padding: 10px 12px; border: 1px solid var(--crit); border-radius: 8px; background: var(--crit-bg); }
.btn.danger, button.danger { color: var(--crit); }
.btn[aria-disabled=true] { opacity: .5; cursor: not-allowed; }
button.danger-solid { background: var(--crit); border-color: var(--crit); color: #fff; }
button:disabled { opacity: .5; cursor: not-allowed; }
dialog { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text); max-width: 520px; width: calc(100% - 32px); padding: 18px; }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
dialog h2 { margin-top: 0; font-size: 18px; color: var(--crit); }
.warn-text { background: var(--crit-bg); color: var(--crit); padding: 8px 10px; border-radius: 8px; }
.sub-h { font-size: 14px; margin: 18px 0 8px; }
.history-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0 16px; }
.upload { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 14px; }
.upload label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12.5px; }
.upload .full { grid-column: 1 / -1; }
textarea { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; width: 100%; }
.combo { position: relative; display: inline-flex; min-width: 150px; }
.combo input { width: 100%; padding-right: 30px; }
.combo-arrow { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 28px; padding: 0; border: 0; border-left: 1px solid var(--border); border-radius: 0 8px 8px 0; background: var(--panel-2); }
.combo-arrow::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -2px 0 0 -5px; border: 5px solid transparent; border-top-color: var(--text); border-bottom: 0; }
.combo-list { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; max-height: 260px; overflow-y: auto;
  background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); font-size: 13px; }
.combo-list li { padding: 6px 8px; border-radius: 6px; cursor: pointer; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.combo-list li:hover { background: var(--panel-2); }
.combo-list li.combo-new { font-family: inherit; color: var(--accent); border-top: 1px solid var(--border); margin-top: 4px; }
.upload label .combo { width: 100%; }
.panel.ovf { overflow: visible; }
@media (max-width: 900px) { .panel.ovf.fwlist { overflow-x: auto; } }
.inline-edit tbody.fwrow .edit { display: none; }
.inline-edit tbody.fwrow.editing .edit { display: block; }
.inline-edit tbody.fwrow.editing span.edit { display: inline-flex; }
.inline-edit tbody.fwrow.editing .view { display: none; }
.inline-edit tbody.fwrow.editing { background: var(--panel-2); }
.inline-edit tr.main td { border-bottom: 0; padding-bottom: 4px; }
.inline-edit tr.log td { padding-top: 0; }
.inline-edit tr.log pre { white-space: pre-wrap; margin: 0; font-size: 12.5px; background: var(--panel-2); padding: 8px 10px; border-radius: 8px; }
.inline-edit tbody.fwrow.editing tr.log pre { display: none; }
.inline-edit input[type=text] { width: 100%; }
.inline-edit .combo { width: 100%; min-width: 0; }
.inline-edit th.actions, .inline-edit td.actions { text-align: right; white-space: nowrap; width: 1%; }
.inline-edit td.actions .row-actions { justify-content: flex-end; flex-wrap: nowrap; }
.inline-edit tbody.addrow { background: var(--panel-2); }
.inline-edit tbody.addrow tr.main td { border-top: 2px solid var(--border); }
.inline-edit .addhint { margin-top: 6px; font-size: 12px; }
.inline-edit tbody.hl { outline: 2px solid var(--warn); }
td.changelog { min-width: 300px; }
td.changelog pre { white-space: pre-wrap; margin: 0 0 4px; font-size: 12.5px; background: var(--panel-2); padding: 8px 10px; border-radius: 8px; }
td.changelog .edit { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; align-items: flex-start; }
button.tiny { padding: 1px 6px; font-size: 11px; margin-left: 6px; }
tr.hl td { background: var(--warn-bg); }
@media (max-width: 600px) {
  .history-grid { grid-template-columns: 1fr; }
  main { padding: 12px; }
  header.top { padding: 8px 12px; gap: 8px; }
  .grid { grid-template-columns: 1fr; }
  input[type=search] { width: 100%; }
  .toolbar .summary { margin-left: 0; }
}
.me { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.me-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; color: var(--text); }
.me-link:hover, .me-link.active { background: var(--panel-2); text-decoration: none; }
.me-name { font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-tag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.role-tag.r-admin { color: var(--crit); border-color: var(--crit); background: var(--crit-bg); }
.role-tag.r-supervisor { color: var(--accent); border-color: var(--accent); }
.login label.field, .stack-form label.field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.login input[type=email], .login input[type=password] { width: 100%; }
.login-err { white-space: normal; text-align: center; padding: 6px 10px; }
input[type=email] { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font: inherit; min-width: 0; }
.stack-form { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 16px; }
.users-head { justify-content: space-between; margin-bottom: 10px; }
.users-head h2 { margin: 0; }
.users-wrap, .peers-wrap { overflow-x: auto; }
table.users > thead th.chev, table.users td.chev { width: 22px; padding-right: 0; }
table.users th.actions, table.users td.actions, .peers-table th.actions, .peers-table td.actions { text-align: right; width: 1%; white-space: nowrap; }
table.users td.actions .row-actions, .peers-table td.actions .row-actions { justify-content: flex-end; flex-wrap: nowrap; }
table.users tbody.ub tr.main { cursor: pointer; }
table.users tbody.ub tr.main:hover td { background: var(--panel-2); }
table.users tbody.ub tr.edit-row, table.users tbody.ub tr.peers-row { display: none; }
table.users tbody.ub.editing tr.edit-row, table.users tbody.ub.open tr.peers-row { display: table-row; }
table.users tbody.ub.open tr.main td, table.users tbody.ub.editing tr.main td { border-bottom: 0; background: var(--panel-2); }
table.users tbody.ub.open .chevron { transform: rotate(90deg) translate(2px, -2px); }
table.users tbody.ub.disabled tr.main td { color: var(--muted); }
table.users tr.edit-row td, table.users tr.peers-row td { background: var(--panel-2); }
.user-edit { padding: 4px 0 8px; }
.user-add input, .user-add select, .user-edit input, .user-edit select { width: 100%; }
.peers { padding: 4px 0 8px; }
.peers-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
table.peers-table { font-size: 13px; width: max-content; min-width: 520px; max-width: 100%; }
table.peers-table td.pname { min-width: 140px; }
.peers-table td { padding: 4px 18px 4px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.peers-table td.actions { padding-right: 0; }
.peers-table tr.peer.revoked { display: none; }
.show-revoked .peers-table tr.peer.revoked { display: table-row; }
.peers-table tr.peer.revoked td { color: var(--muted); opacity: .65; }
.peers-table tr.peer.revoked td b { font-weight: 500; text-decoration: line-through; }
.peer-more summary { padding: 1px 8px; font-size: 12px; }
.peer-more .more-list { min-width: 190px; }
button.linkish { background: none; border: 0; padding: 0; font-size: 12.5px; text-decoration: underline; }
dialog.peer-dlg { max-width: 920px; width: calc(100% - 32px); }
dialog.peer-dlg h2 { color: var(--text); font-size: 17px; }
dialog.peer-dlg pre.conf { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.peer-add { margin-top: 8px; }
.peer-add input[type=text] { width: 280px; max-width: 100%; }
.show-sm { display: none; }
.activity tr.act-bad td { background: var(--crit-bg); }
.kind.k-login, .kind.k-logout { color: var(--ok); }
.kind.k-denied { color: var(--crit); }
.kind.k-user, .kind.k-peer, .kind.k-account, .kind.k-password { color: var(--accent); }
@media (max-width: 700px) {
  .hide-sm { display: none; }
  .show-sm { display: block; }
  .me { gap: 6px; }
  .me-name { max-width: 110px; }
  header.top nav { flex: 1 1 100%; order: 3; }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  table.users > thead, .peers-table > thead { display: none; }
  table.users, table.users > tbody, table.users tr, table.users td, .peers-table, .peers-table tbody, .peers-table tr, .peers-table td { display: block; width: auto; }
  table.users tbody.ub { border-bottom: 1px solid var(--border); }
  table.users tbody.ub tr.main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 4px; }
  table.users tbody.ub tr.main td { border: 0; padding: 0; background: none; }
  table.users tbody.ub tr.main td:nth-child(2) { flex: 1 1 calc(100% - 34px); }
  table.users tbody.ub tr.main td.actions { flex-basis: 100%; width: auto; }
  table.users td.hide-sm { display: none; }
  table.users td.actions .row-actions, .peers-table td.actions .row-actions { justify-content: flex-start; flex-wrap: wrap; }
  table.users tbody.ub.open tr.peers-row, table.users tbody.ub.editing tr.edit-row { display: block; }
  table.users tr.edit-row > td:first-child, table.users tr.peers-row > td:first-child { display: none; }
  table.users tr.edit-row > td, table.users tr.peers-row > td { border: 0; padding: 4px 8px 10px; }
  table.users td[data-label]::before, .peers-table td[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: 11.5px; }
  table.peers-table { min-width: 0; width: 100%; }
  table.peers-table td.pname { min-width: 0; }
  .peers-table tr.peer { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
  .peers-table tr.peer.revoked { display: none; }
  .show-revoked .peers-table tr.peer.revoked { display: flex; }
  .peers-table td { border: 0; padding: 0; }
  .peers-table td.pname { flex-basis: 100%; }
  table.users .peers-table td.actions, .peers-table td.actions { margin-left: auto; width: auto; }
}
dialog.pw-dlg { max-width: 440px; }
dialog.pw-dlg h2 { color: var(--text); margin: 0 0 4px; }
dialog.pw-dlg .stack-form { max-width: none; }
dialog.pw-dlg input[type=password] { width: 100%; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; flex-shrink: 0; letter-spacing: .3px; }
.avatar-sm { width: 26px; height: 26px; font-size: 11px; }
.avatar-lg { width: 80px; height: 80px; font-size: 26px; }
.me-link { gap: 8px; }
.acct { max-width: 768px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; font-size: 14px; }
.acct > .flash { margin: 0; }
.acct-title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 4px 0 0; }
.acard { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 24px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08); }
@media (prefers-color-scheme: dark) { .acard { box-shadow: 0 1px 3px rgba(0, 0, 0, .35); } }
.acard-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.acard-h { font-size: 14px; font-weight: 600; margin: 0; }
.acard-h .muted { font-weight: 400; }
.acard-form { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.pw-dlg .acard-form { margin-top: 0; }
.fld label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.fld input { width: 100%; font-size: 14px; }
.msg-ok { color: var(--ok); margin: 0; }
.msg-err { color: var(--crit); margin: 0; }
.msg-err[hidden] { display: none; }
.acct-id { display: flex; align-items: flex-start; gap: 20px; }
.acct-avatar-col { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.acct-who { flex: 1; min-width: 0; padding-top: 6px; }
.acct-name { font-size: 20px; font-weight: 600; }
.acct-email { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-meta { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.acct-hint { color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }
.pw-dlg .acct-hint { margin: 0; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); font-size: 14px; padding: 7px 14px; }
.btn-outline:hover { background: var(--panel-2); border-color: var(--border); }
.acard .peers { padding: 0; margin-top: 12px; }
.acard .peer-add input[type=text] { flex: 1 1 220px; width: auto; }
@media (max-width: 600px) {
  .acard { padding: 18px; }
  .acct-id { flex-wrap: wrap; gap: 14px; }
  .acct-id .btn-outline { flex-basis: 100%; }
}
.acard table.peers-table { width: 100%; }

.acct-who { padding-top: 0; }
.acct-who input[readonly] { background: var(--bg); color: var(--muted); cursor: default; }
.acct-who input[readonly]:focus { outline: none; box-shadow: none; }

.users-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.pw-dlg select { width: 100%; }

.uh-pills { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* CAN Send drawer (CAN Viewer tab), laid out like the router's Live View drawer */
.cv-note { color: var(--crit); font-size: 12.5px; }
.cv-note[hidden] { display: none; }
.cv-bar .cv-send-open { margin-left: auto; }
.kind.k-cansend { color: var(--warn); }
.cv-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 100vw; z-index: 50; overflow-y: auto;
  padding: 16px 18px; background: var(--panel); color: var(--text); border-left: 1px solid var(--border);
  box-shadow: -4px 0 18px rgba(0, 0, 0, .25); transform: translateX(110%); transition: transform .25s ease; visibility: hidden;
}
.cv-drawer.open { transform: none; visibility: visible; }
.cv-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 14px;
  padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.cv-drawer-head h3 { margin: 0; font-size: 16px; }
.cv-drawer .cv-flabel { display: block; margin: 0 0 6px; }
.cv-drawer textarea#cv-frames { display: block; min-height: 16em; margin: 0 0 12px; white-space: pre; resize: vertical; font-size: 13px; }
.cv-drawer .cv-drow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cv-drawer .cv-preset-row select { flex: 1 1 12em; min-width: 0; }
.cv-drawer .cv-inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.cv-drawer .cv-all { white-space: nowrap; }
.cv-drawer input[type=number] { width: 6.5em; background: var(--panel); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 8px; font: inherit; }
.cv-drawer .cv-hint { margin: -4px 0 12px; font-size: 12px; }
.cv-drawer .cv-hint[hidden] { display: none; }
.cv-drawer .cv-hint code { font-size: 12px; padding: 0 3px; background: var(--panel-2); border-radius: 4px; }
.cv-drawer .cv-result { margin-top: 4px; font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cv-drawer .cv-summary { margin-bottom: 4px; font-weight: 700; }
.cv-drawer .cv-rrow { display: flex; align-items: center; gap: 8px; padding: 2px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.cv-drawer .cv-rid { min-width: 6.5em; color: var(--accent); }
.cv-drawer .cv-rdetail { overflow: hidden; text-overflow: ellipsis; white-space: pre; }
.cv-drawer .cv-rdetail.err { color: var(--crit); white-space: pre-wrap; }
.cv-drawer .cv-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--off); }
.cv-drawer .cv-dot.sent { background: var(--ok); }
.cv-drawer .cv-dot.skipped { background: var(--warn); }
.cv-drawer .cv-dot.failed { background: var(--crit); }
@media (max-width: 600px) { .cv-drawer { width: 100vw; border-left: 0; padding: 12px; } }

/* CAN Send drawer: the Frames box fills the free height, like the router drawer */
.cv-drawer { display: flex; flex-direction: column; box-sizing: border-box; }
.cv-drawer > * { flex: 0 0 auto; }
.cv-drawer > textarea#cv-frames { flex: 1 1 auto; min-height: 8em; resize: none; }
.cv-drawer > .cv-result { max-height: 30vh; overflow: auto; }

/* update modals: progress bar spans the full width */
.fw-modal .job-bar { max-width: none; width: 100%; height: 8px; }

/* icon close (x) in modal headers */
button.icon-close { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--muted);
  font-size: 22px; line-height: 1; border-radius: 8px; cursor: pointer; flex: 0 0 auto; }
button.icon-close:hover { background: var(--panel-2); color: var(--text); }
button.icon-close:focus { outline: none; box-shadow: none; }
button.icon-close:focus-visible { background: var(--panel-2); color: var(--text); }

/* Sites view (TMV site cards and the per router drill down) */
.sites-mode [data-nosites] { display: none !important; }
.seg button { display: inline-flex; align-items: center; gap: 6px; }
.seg button svg { fill: currentColor; }
.seg-label { font-size: 13px; }
.site-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.site-card { gap: 6px; padding: 14px 16px 12px; cursor: pointer; }
.site-card .site-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.site-card .site-title { font-size: 17px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.site-card.unassigned .site-title { color: var(--muted); font-style: italic; }
.site-card .site-count { color: var(--muted); font-size: 12.5px; white-space: nowrap; padding-top: 2px; }
.site-meta { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.tmv-id.xs { font-size: 11.5px; font-weight: 600; padding: 0 5px; }
.site-status { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; font-weight: 600; margin: 4px 0 2px; }
.site-status .sep { color: var(--muted); font-weight: 400; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--off); }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.dot.crit { background: var(--crit); box-shadow: 0 0 0 3px var(--crit-bg); }
.st-warn { color: var(--warn); }
.st-crit { color: var(--crit); }
.tl { position: relative; z-index: 2; display: flex; gap: 1px; height: 22px; margin-top: 6px; }
.tl-seg { flex: 1 1 0; min-width: 0; border-radius: 1.5px; background: var(--panel-2); }
.tl-seg.ok { background: var(--ok); opacity: .85; }
.tl-seg.warn { background: var(--warn); }
.tl-seg.crit { background: var(--crit); }
.tl-seg.none { background: var(--off-bg); }
.tl-seg:hover { opacity: 1; outline: 1px solid var(--text); outline-offset: 1px; }
.tl-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: -1px; }
.tl-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--panel); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 9px; font-size: 12.5px; max-width: 320px; box-shadow: 0 4px 16px rgba(0, 0, 0, .18); }
.tl-tip[hidden] { display: none; }
.tl-tip .tip-crit { color: var(--crit); }
.tl-tip .tip-warn { color: var(--warn); }
.dev-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); min-height: 41px; }
.dev { position: relative; z-index: 2; display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); }
.dev:hover { border-color: var(--accent); text-decoration: none; }
.dev svg, .dev-ico svg { width: 20px; height: 20px; }
.dev.st-ok, .dev-ico.st-ok { color: var(--ok); }
.dev.st-warn, .dev-ico.st-warn { color: var(--warn); }
.dev.st-off, .dev-ico.st-off { color: var(--crit); }
.dev-ico { display: inline-flex; flex: 0 0 auto; }
.dev-ico svg { width: 24px; height: 24px; }
.model-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; padding: 1px 6px; border-radius: 5px; background: var(--panel-2);
  border: 1px solid var(--border); color: var(--muted); }
.ind-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.ind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 8px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.ind svg { width: 13px; height: 13px; }
.ind b { color: var(--text); font-weight: 600; }
.ind.ok svg { color: var(--ok); }
.ind.warn svg { color: var(--warn); }
.ind.crit { border-color: var(--crit); }
.ind.crit svg { color: var(--crit); }
.ind.none { opacity: .6; }
.sites-wrap { display: flex; flex-direction: column; gap: 14px; }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 16px; }
.crumbs b { font-size: 18px; }
.crumb-sep { color: var(--muted); }
.crumb-meta { color: var(--muted); font-size: 12.5px; }
.crumb-status { margin: 0 0 0 auto; }
@media (max-width: 600px) {
  .site-grid { grid-template-columns: minmax(0, 1fr); }
  .seg-label { display: none; }
  .crumb-status { margin-left: 0; width: 100%; }
}
.site-status .st-sub { font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); }
.site-status .st-sub.st-crit { color: var(--crit); background: var(--crit-bg); border-color: transparent; }

/* Cudd branding */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 26px; width: auto; display: block; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 12px; }
.login-brand .brand-logo { height: 34px; }
