/* netwatch · shared visual system. Values follow the supplied dashboard reference. */
:root {
  color-scheme: dark;
  --bg: #0c0d0e; --bg-elevated: #121416; --surface: #171a1c;
  --surface-hover: #1f2325; --surface-raised: #272c2f;
  --border: #2e3539; --border-strong: #48545b;
  --text: #eff2f3; --text-muted: #b4bdc2; --text-faint: #97a4ac;
  --accent: #55d99a; --accent-hover: #8cebb9; --accent-soft: #55d99a26;
  --ok: #55d99a; --ok-soft: #55d99a20; --warn: #ffca52; --warn-soft: #c9901626;
  --critical: #ff7c8c; --critical-soft: #ff617c20; --info: #b3c9bd; --info-soft: #b3c9bd20;
  --offline: #92a498; --offline-soft: #92a4981a;
  --font-ui: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: ui-monospace, Consolas, monospace;
  --radius: 12px; --radius-sm: 7px; --sidebar-w: 250px;
  --on-accent:#092015; --shadow:0 14px 38px #00000012; --motion:180ms ease;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: radial-gradient(ellipse at 80% 5%, #29343b25, transparent 60%), var(--bg); color: var(--text); font: 14px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.mono, .num { font-variant-numeric: tabular-nums; }
code, .mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); } .faint { color: var(--text-faint); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .critical { color: var(--critical); }
.offline { color: var(--offline); }
.info { color: var(--info); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 10px; background: var(--surface); }
.skip-link:focus { top: 10px; }
.app-shell { min-height: 100vh; }
.sidebar { width: var(--sidebar-w); position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; background: linear-gradient(165deg, #14171a, #0d0f11); border-right: 1px solid var(--border); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 22px 20px 20px; }
.sidebar-brand > svg { color: var(--accent-hover); width: 25px; height: 25px; }
.sidebar-brand strong { font-size: 18px; font-weight: 600; letter-spacing: -.5px; }
.brand-caption { color: var(--text-faint); font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; margin-left: auto; }
.workspace-card { margin: 0 16px 18px; border: 1px solid var(--border-strong); border-radius: 7px; padding: 10px 12px; }
.workspace-card strong { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.workspace-card small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11px; }
.sidebar-nav { padding: 0 12px; overflow: auto; }
.sidebar-nav a { display: flex; align-items: center; gap: 14px; min-height: 43px; margin-bottom: 3px; padding: 10px 15px; color: var(--text-muted); font-size: 12.5px; border-radius: 7px; position: relative; }
.sidebar-nav a:hover { background: var(--surface-hover); color: var(--text); }
.sidebar-nav a.active { color: #effbf3; background:var(--accent-soft); }
.sidebar-nav a.active::before { content: ''; position: absolute; inset: 5px auto 5px 0; width: 2px; background: var(--accent); border-radius: 2px; }
.nav-section-label { color: var(--text-faint); text-transform: uppercase; letter-spacing: 1.3px; font-size: 9px; padding: 26px 16px 10px; }
.sidebar-footer { margin-top: auto; padding: 18px 20px; }
.sidebar-user { display: flex; gap: 10px; align-items: center; }
.user-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-hover); font-size: 12px; }
.sidebar-user-name { font-size: 12px; } .sidebar-user-role { font-size: 10px; color: var(--text-faint); }
.sidebar-footer form { margin: 0 0 0 auto; }
.sidebar-footer button { padding: 6px; background: transparent; border-color: transparent; color: var(--text-muted); }
.sidebar-footer button:hover { color: var(--critical); }
.main { margin-left: var(--sidebar-w); min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 24px 32px 18px; }
.topbar h1 { margin: 0; font-size: 30px; line-height: 1.25; letter-spacing: -.75px; font-weight: 650; color: var(--text); }
.topbar-sub { font-size: 14px; color: var(--text-muted); margin-top: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 20px; flex-shrink: 0; flex-wrap: wrap; }
.page { padding: 0 32px 30px; max-width: 1800px; }
.status-pill { border: 1px solid #166146; border-radius: 30px; color: var(--ok); background: #0a30251c; display: inline-flex; align-items: center; gap: 9px; font-size: 11px; padding: 8px 12px; white-space: nowrap; }
.status-pill.warn { border-color: #675025; color: var(--warn); } .status-pill.offline { border-color: var(--border-strong); color: var(--text-muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; flex-shrink: 0; }
.status-dot.ok { box-shadow: 0 0 10px #55d99a1c; } .status-dot.warn { box-shadow: 0 0 10px #ffca5229; }
.range-control { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border-strong); border-radius: 7px; }
.range-control button { min-width: 42px; border: 0; background: transparent; color: var(--text-muted); padding: 6px 9px; font-size: 11px; }
.range-control button[aria-pressed='true'] { background:var(--accent);color:var(--on-accent);box-shadow:0 1px 8px var(--accent-soft); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 15px; margin-bottom: 20px; }
.dashboard-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
.totals-note { margin: -4px 0 20px; max-width: 110ch; font-size: 12px; line-height: 1.6; }
.alert-controls { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.alert-controls label { display: flex; align-items: center; gap: 8px; }
#alerts { max-height: 440px; overflow-y: auto; }
.alert-row.is-read { opacity: .7; }
.alert-meta .small-button { margin-top: 8px; max-width: 148px; white-space: normal; }
.stat-card, .panel, .chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-card { padding: 19px 20px 16px; position: relative; min-width: 0; }
.stat-label { display: flex; align-items: center; gap: 16px; color: var(--text-muted); font-size: 13px; margin-bottom: 10px; }
.stat-label svg { color: var(--text-muted); }
.stat-value { font-size: 26px; line-height: 1.3; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.45px; }
.stat-sub { margin-top: 7px; color: var(--text-muted); font-size: 10.5px; }
.stat-sub .status-dot { width: 6px; height: 6px; margin-right: 4px; }
.stat-spark { position: absolute; right: 16px; top: 50px; width: 44%; height: 40px; }
.stat-spark svg { width: 100%; height: 100%; }
.stat-card.has-spark .stat-value { max-width: 56%; }
.dashboard-row { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 20px; margin-bottom: 20px; }
.dashboard-row.secondary { grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); }
.panel { margin-bottom: 20px; overflow: hidden; min-width: 0; }
.dashboard-row > .panel { margin-bottom: 0; }
.panel-header { min-height: 50px; padding: 13px 19px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border); }
.panel-header h2 { display: flex; align-items: center; gap: 16px; margin: 0; font-size: 14px; font-weight: 600; }
.panel-header h2 svg { color: var(--text-muted); }
.panel-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-hover); font-size: 10.5px; }
.panel-link:hover { color: #b1f3ce; } .panel-link svg { width: 14px; height: 14px; }
.panel-body { padding: 4px 0; } .padded, .panel-body.padded { padding: 20px; }
.chart-wrap { height: 232px; position: relative; margin: 12px 20px 17px; }
.chart-legend { display: flex; align-items: center; gap: 18px; font-size: 10px; color: var(--text-muted); }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.chart-legend .blue { background: var(--info); }
.health-list { padding: 0 18px; max-height: 262px; overflow-y: auto; }
.health-row { min-height: 65px; padding: 10px 2px; display: grid; grid-template-columns: 12px minmax(65px,1.15fr) minmax(60px,1fr) minmax(60px,.85fr); align-items: center; gap: 13px; border-bottom: 1px solid var(--border); }
.health-row:last-child { border-bottom: 0; }
.health-row:hover { background: #ffffff03; }
.health-row strong { display: block; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.health-row small { color: var(--text-muted); font-size: 10px; }
.health-metric { font-size: 10px; color: var(--text-muted); }
.health-metric b { font-weight: 400; color: var(--text); margin-left: 5px; }
.health-metric .progress-bar { margin-top: 6px; max-width: 90px; }
.health-uptime { padding-left: 13px; border-left: 1px solid var(--border); }
.progress-bar { height: 7px; border-radius: 10px; background: var(--surface-raised); overflow: hidden; }
.progress-bar > div { height: 100%; border-radius: inherit; background:var(--accent);transition:width 350ms ease; }
.storage-list { padding: 0 18px; max-height: 238px; overflow-y: auto; }
.storage-row { display: grid; grid-template-columns: 24px minmax(85px,.85fr) minmax(120px,1.5fr) minmax(65px,.8fr) minmax(82px,.8fr); align-items: center; gap: 14px; min-height: 94px; padding: 17px 1px; border-bottom: 1px solid var(--border); }
.storage-row:last-child { border-bottom: 0; }
.storage-row > svg { width: 24px; height: 24px; color: var(--text-muted); }
.storage-name strong { font-size: 13px; display: block; overflow-wrap: anywhere; } .storage-name small { font-size: 10px; color: var(--text-muted); }
.storage-capacity { font-size: 10px; }
.storage-caption { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; color: var(--text-muted); }
.storage-capacity .progress-bar { margin-top: 6px; height: 8px; }
.storage-detail { font-size: 10px; color: var(--text-muted); border-left: 1px solid var(--border); padding-left: 17px; }
.storage-detail strong { display: block; font-weight: 400; color: var(--text); margin-top: 6px; }
.alert-list { padding: 0 18px; }
.alert-row { display: grid; grid-template-columns: 12px minmax(0,1fr) auto; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 11px; align-items: start; }
.alert-row:last-child { border-bottom: none; }
.alert-row .status-dot { margin-top: 6px; }
.alert-row small { color: var(--text-muted); display: block; font-size: 10px; margin-top: 3px; }
.alert-meta { text-align: right; }
.alert-meta .badge { margin-top: 4px; }
.summary-strip { display: grid; grid-template-columns: repeat(6,1fr); margin-bottom: 20px; gap: 1px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); }
.summary-item { display: flex; flex-direction: column; justify-content: center; padding: 11px 16px; background: var(--surface); font-size: 10px; color: var(--text-muted); }
.summary-item strong { font-size: 16px; font-weight: 600; margin-top: 2px; color: var(--text); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 18px; font-size: 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-size: 10px; font-weight: 500; white-space: nowrap; }
td { overflow-wrap: anywhere; } tbody tr:last-child td { border-bottom: none; }
tbody tr.clickable { cursor: pointer; } tbody tr.clickable:hover { background: var(--surface-hover); }
td a:hover { color: var(--accent-hover); }
.table-wrap { width: 100%; overflow-x: auto; }
.table-wrap table { min-width: 660px; }
.empty-row { padding: 30px 20px; color: var(--text-muted); font-size: 12px; text-align: center; }
.empty-row a { color: var(--accent-hover); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.critical { background: var(--critical-soft); color: var(--critical); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.offline { background: var(--offline-soft); color: var(--offline); }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; padding: 8px 13px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); color: var(--text); background: var(--surface-raised); font-size: 12px; font-weight: 500; transition: background .15s,border-color .15s; }
button:hover, .btn:hover { background: var(--surface-hover); border-color: var(--accent); }
button.danger:hover { color: var(--critical); border-color: var(--critical); }
button.small { font-size: 10.5px; padding: 5px 9px; }
button:disabled { cursor: wait; opacity: .5; }
input:not([type]), input[type='text'], input[type='email'], input[type='password'], input[type='number'], input[type='search'], input[type='url'], input[type='time'], input[type='datetime-local'], select { width: 100%; min-width: 0; max-width: 100%; background: var(--bg-elevated); border: 1px solid var(--border-strong); color: var(--text); border-radius: 6px; padding: 9px 11px; font-size: 12px; }
input::placeholder { color: var(--text-faint); } input:focus,select:focus { border-color: var(--accent); }
label { display: block; color: var(--text-muted); font-size: 12px; margin-bottom: 6px; }
.field { margin-bottom: 16px; } .form-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 140px; margin-bottom: 0; }
.reveal-box { margin-top: 18px; padding: 16px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius-sm); }
.reveal-box p { color: var(--text-muted); font-size: 12px; margin: 0 0 10px; }
.reveal-box code { display: block; padding: 10px; background: var(--bg); border-radius: 4px; word-break: break-all; margin-bottom: 10px; }
.tabs { display: flex; overflow-x: auto; gap: 5px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 11px 15px; background: transparent; color: var(--text-muted); white-space: nowrap; }
.tabs button.active { border-bottom-color: var(--accent); color: var(--accent-hover); }
.tab-panel { display: none; } .tab-panel.active { display: block; }
.chart-card { padding: 18px; margin-bottom: 16px; min-width: 0; }
.chart-card h3 { font-size: 12px; font-weight: 500; color: var(--text-muted); margin: 0 0 14px; }
.chart-card canvas { max-height: 220px; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr)); gap: 16px; }
.event-feed { list-style: none; margin: 0; padding: 0 18px; max-height: 330px; overflow-y: auto; }
.event-feed li { display: grid; grid-template-columns: 135px 10px minmax(0,1fr) 90px; gap: 16px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 10.5px; }
.event-feed li:last-child { border-bottom: 0; }
.event-feed .empty-row { display: block; padding: 26px 0; }
.event-time { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.event-host { color: var(--text-muted); text-align: right; overflow-wrap: anywhere; }
.event-label { overflow-wrap: anywhere; }
.error-box { padding: 12px 16px; border-radius: 6px; background: var(--critical-soft); color: var(--critical); margin-bottom: 16px; font-size: 12px; }
.notice { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(420px,calc(100vw - 32px)); padding: 13px 18px; color: var(--text); background: var(--surface-raised); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: 0 12px 40px #0005; }
.notice.error { border-color: var(--critical); }
.page-meta { color: var(--text-faint); font-size: 10px; display: flex; justify-content: space-between; gap: 16px; margin-top: -4px; }
.mobile-bar, .sidebar-backdrop { display: none; }
.login-card button[type='submit'] { width: 100%; margin-top: 8px; padding: 10px; }
@media (min-width: 1700px) { .page { max-width: none; } .chart-wrap { height: 310px; } .health-list { max-height: 340px; } }
@media (max-width: 1250px) {
  :root { --sidebar-w: 208px; }
  .topbar,.page { padding-left: 24px; padding-right: 24px; }
  .topbar h1 { font-size: 27px; } .topbar-actions { gap: 10px; }
  .dashboard-row,.dashboard-row.secondary { grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 16px; }
  .storage-row { grid-template-columns: 22px minmax(65px,.8fr) minmax(100px,1.2fr); gap: 10px; }
  .storage-detail { display: none; }
  .health-row { gap: 9px; } .health-uptime { padding-left: 8px; }
  .stat-card { padding: 17px 14px; } .stat-spark { width: 35%; right: 12px; }
  .stat-label { gap: 9px; font-size: 11px; } .stat-value { font-size: 24px; }
  .summary-item { padding: 10px; }
}
@media (max-width: 1050px) {
  .dashboard-row,.dashboard-row.secondary { grid-template-columns: 1fr; }
  .health-row { grid-template-columns: 12px 1.2fr 1fr 1fr; }
  .health-list { max-height: 305px; } .storage-row { grid-template-columns: 24px 1fr 1.8fr 1fr 1fr; }
  .storage-detail { display: block; } .summary-strip { grid-template-columns: repeat(3,1fr); }
  .topbar { align-items: flex-start; flex-direction: column; gap: 14px; }
  .topbar-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; width: 240px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { display: block; position: fixed; inset: 0; z-index: 35; border: 0; border-radius: 0; background: #020703a8; }
  .main { margin-left: 0; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
  .mobile-bar button { padding: 6px; background: transparent; }
  .mobile-bar strong { font-weight: 500; } .mobile-bar > svg { margin-left: auto; color: var(--accent-hover); }
  .page { padding: 0 16px 24px; } .topbar { padding: 20px 16px 18px; }
  .topbar h1 { font-size: 27px; } .topbar-sub { font-size: 12px; }
  .dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .stat-card { padding: 15px; } .stat-label { font-size: 12px; }
  .stat-sub { font-size: 10px; } .stat-spark { width: 35%; top: 46px; }
  .chart-wrap { margin: 10px 10px 14px; height: 235px; }
  .panel-header { padding: 12px 15px; } .panel-header h2 { font-size: 13px; gap: 10px; }
  .event-feed li { grid-template-columns: 10px minmax(0,1fr) 70px; gap: 10px; padding: 10px 0; }
  .event-time { display: block; grid-column: 2; grid-row: 2; font-size: 9px; }
  .event-feed li .event-label { grid-column: 2; grid-row: 1; }
  .event-feed li .status-dot { grid-column: 1; grid-row: 1; }
  .event-feed li .event-host { grid-column: 3; grid-row: 1; }
  .storage-row { grid-template-columns: 22px minmax(70px,.8fr) minmax(100px,1.2fr); }
  .storage-detail { display: none; } .storage-caption { flex-wrap: wrap; }
  .summary-item { font-size: 9px; } .health-list,.storage-list { padding: 0 14px; }
  .health-row { gap: 8px; font-size: 10px; } .health-uptime { padding-left: 8px; }
  .tabs button { padding: 10px 12px; } .form-row { gap: 12px; }
  .range-control button { min-width: 35px; padding: 6px 7px; }
  .status-pill { font-size: 10px; padding: 7px 9px; gap: 6px; }
  .page-meta { flex-wrap: wrap; } .alert-row { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; animation: none !important; } }

/* Shared account, support and theme components. */
:root[data-theme="light"] { color-scheme:light; --bg:#f3f5f6;--bg-elevated:#fff;--surface:#fff;--surface-hover:#edf0f2;--surface-raised:#e3e8eb;--border:#d4dce1;--border-strong:#adbcc5;--text:#20272b;--text-muted:#4a5962;--text-faint:#586d79;--ok:#087747;--warn:#936000;--critical:#bd2545;--info:#1d68bf;--offline:#53675a;--accent:#177749;--accent-hover:#12623b;--accent-soft:#36885c1c; }
:root[data-accent="blue"] {--accent:#498eeb;--accent-hover:#7db5ff;--accent-soft:#498eeb22;}
:root[data-accent="teal"] {--accent:#25bba5;--accent-hover:#56dfc5;--accent-soft:#25bba522;}
:root[data-theme="light"][data-accent="blue"] {--accent:#2164bd;--accent-hover:#164b93;}
:root[data-theme="light"][data-accent="teal"] {--accent:#087d70;--accent-hover:#05665c;}
[data-theme="light"] .sidebar {background:var(--surface);}
[data-theme="light"] .sidebar-nav a.active,[data-theme="light"] .topbar h1 {color:var(--text);}
[data-theme="light"] .stat-card,[data-theme="light"] .panel,[data-theme="light"] .chart-card {background:var(--surface);box-shadow:0 3px 14px #193c2606;}
[data-theme="light"] .progress-bar {background:var(--surface-raised);}
.settings-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start;}
.settings-grid>.panel {margin-bottom:0;} .settings-grid+.panel {margin-top:20px;}
.page>.actions {margin:18px 0;} .field small {display:block;color:var(--text-faint);margin-top:6px;}
.field p {margin:4px 0 14px;} .block {display:block;} .actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
textarea {width:100%;resize:vertical;min-height:100px;background:var(--bg-elevated);color:var(--text);border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:10px 12px;font:inherit;}
button.danger {color:var(--critical);border-color:var(--critical);} .danger-panel {border-color:var(--critical-soft);}
.action-dialog {width:min(480px,calc(100% - 32px));max-height:85vh;overflow:auto;padding:26px;background:var(--surface);color:var(--text);border:1px solid var(--border-strong);border-radius:12px;box-shadow:0 24px 90px #0007;}
.action-dialog::backdrop {background:#030c06aa;backdrop-filter:blur(3px);} .action-dialog h2 {margin-top:0;font-size:21px;}
.action-dialog .actions {justify-content:flex-end;margin-top:24px;}
.auth-links {display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:22px;font-size:12px;color:var(--accent-hover);}
.success-box {padding:14px;border:1px solid var(--ok);border-radius:var(--radius);color:var(--ok);background:var(--ok-soft);margin:16px 0;}
.cookie-settings {position:fixed;right:20px;bottom:44px;width:min(450px,calc(100% - 32px));padding:22px;border:1px solid var(--border-strong);border-radius:12px;background:var(--surface);box-shadow:0 12px 50px #0004;z-index:80;max-height:70vh;overflow:auto;}
.cookie-settings h2 {font-size:17px;margin:0 0 8px;} .cookie-settings p {font-size:12px;color:var(--text-muted);}
.cookie-toggle {position:fixed;right:16px;bottom:8px;padding:3px 7px;font-size:10px;color:var(--text-faint);background:var(--bg);border:1px solid var(--border);z-index:45;}
.check-field {display:flex;gap:9px;align-items:center;font-size:12px;margin:14px 0;} .check-field input {width:auto;min-height:auto;}
.command,.secret-code {display:block;overflow-wrap:anywhere;white-space:pre-wrap;border:1px solid var(--border);background:var(--bg);padding:14px;border-radius:7px;font-size:12px;margin-bottom:12px;}
.session-row {display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--border);font-size:12px;margin-bottom:12px;}
.ticket-layout {display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;}
.ticket-compose {max-width:900px;} .ticket-thread {padding:0 20px;}
.ticket-message {padding:20px 0;border-bottom:1px solid var(--border);} .ticket-message:last-child {border:0;}
.message-meta {display:flex;align-items:center;gap:12px;font-size:12px;margin-bottom:12px;flex-wrap:wrap;} .message-meta time {color:var(--text-faint);margin-left:auto;}
.message-body {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;}
.internal-note {background:var(--warn-soft);padding:16px;border-radius:8px;margin:14px 0;}
.attachments {display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;} .attachments .btn {font-size:11px;}
.timeline-item {border-left:2px solid var(--border-strong);padding:0 0 18px 12px;font-size:12px;}
.table-link {color:var(--accent-hover);} .inventory-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:18px;}
.inventory-grid dt {font-size:11px;color:var(--text-faint);margin-bottom:5px;} .inventory-grid dd {margin:0;overflow-wrap:anywhere;}
.chart-toolbar {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px;}
.network-summary {margin-bottom:20px;} .host-select {max-width:100%;}
@media(max-width:1050px){.ticket-layout{grid-template-columns:1fr;} .ticket-layout>aside{display:grid;grid-template-columns:1fr 1fr;gap:20px;}}
@media(max-width:760px){.settings-grid,.ticket-layout>aside{grid-template-columns:1fr;} .action-dialog{padding:20px;} .cookie-settings{right:16px;} .page{padding-bottom:52px;} .panel-header form,.panel-header>.actions{flex-wrap:wrap;} .panel-header input{max-width:180px;} .session-row{flex-wrap:wrap;}}

:root[data-accent="violet"] {--accent:#a398e8;--accent-hover:#c4bbee;--accent-soft:#a398e820;--on-accent:#211b39;}
:root[data-theme="light"] {--on-accent:#fff;}
:root[data-theme="light"][data-accent="violet"] {--accent:#7056ad;--accent-hover:#5f459a;--on-accent:#fff;}
[data-accent="blue"],[data-accent="teal"] {--on-accent:#071a22;}
[data-theme="light"][data-accent="blue"],[data-theme="light"][data-accent="teal"] {--on-accent:#fff;}
button.primary,.btn.primary {color:var(--on-accent);border-color:var(--accent);background:var(--accent);}
button.primary:hover,.btn.primary:hover {background:var(--accent-hover);}
[data-theme="light"] body {background:var(--bg);}
input[type="file"] {max-width:100%;font-size:12px;color:var(--text-muted);}
input[type="file"]::file-selector-button {background:var(--surface-raised);color:var(--text);border:1px solid var(--border-strong);border-radius:6px;padding:8px 12px;margin-right:10px;cursor:pointer;}
.chart-toolbar label {display:flex;gap:10px;align-items:center;}
.chart-toolbar select {width:auto;max-width:220px;}
.notice {bottom:44px;}

.chart-legend i.teal {background:var(--ok);}

/* Platform components follow the shared InfraSight-inspired surface hierarchy. */
.brand-mark {width:30px;height:30px;flex:none;}
.sidebar-nav {overflow-y:auto;min-height:0;scrollbar-width:thin;}
.sidebar-brand {flex-shrink:0;} .sidebar-footer {flex-shrink:0;}
fieldset {min-width:0;border:0;margin:0 0 20px;padding:0;}
legend {font-size:12px;color:var(--text-muted);margin-bottom:8px;}
fieldset:disabled {opacity:.65;}
.choice-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px;}
.choice-grid .check-field {margin:5px 0;min-height:30px;}
.choice-grid input {flex:none;}
.filter-bar {display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;padding:20px;border-bottom:1px solid var(--border);}
.filter-bar .field {flex:1 1 130px;margin:0;} .filter-bar .field:first-child {flex-grow:2;}
.filter-bar input,.filter-bar select {width:100%;}
.pagination {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-top:1px solid var(--border);font-size:12px;color:var(--text-muted);}
.text-button {padding:0;background:none;border:0;color:var(--accent-hover);font-weight:600;text-align:left;}
.detail-dialog {width:min(740px,calc(100% - 32px));}
.dialog-heading {display:flex;align-items:start;justify-content:space-between;gap:16px;}
.channel-row {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--border);}
.channel-row:first-child {padding-top:0;} .channel-row .actions {justify-content:flex-end;}
.channel-row small {margin-top:5px;overflow-wrap:anywhere;}
.coverage-list {margin:0;} .coverage-list>div {display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid var(--border);font-size:12px;}
.coverage-list dt {color:var(--text-muted);} .coverage-list dd {margin:0;text-align:right;}
.secret-panel {border-color:var(--accent);}
.announcement-stack {display:grid;gap:12px;margin-bottom:20px;}
.announcement-stack:empty {display:none;}
.announcement-card {padding:16px 20px;border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:var(--radius);background:var(--surface);}
.announcement-card.incident {border-left-color:var(--critical);} .announcement-card.maintenance {border-left-color:var(--warn);}
.announcement-card h2 {font-size:14px;margin:0 0 7px;} .announcement-card p {white-space:pre-wrap;margin:0;line-height:1.6;font-size:12px;color:var(--text-muted);}
.announcement-card small {display:block;color:var(--text-faint);margin-top:9px;}
#main-content {animation:surface-in .24s ease-out;}
@keyframes surface-in {from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
button {transition:background-color .15s,border-color .15s,opacity .15s;}
button:disabled {cursor:default;opacity:.6;}
:focus-visible {outline:2px solid var(--accent-hover);outline-offset:3px;}
#reset-scope,#cleanup-preview {margin-top:20px;} #reset-scope>button,#cleanup-preview>button {margin-top:16px;}
@media(max-width:760px){.filter-bar{padding:16px;gap:12px}.filter-bar .field{flex-basis:140px}.channel-row{align-items:start;flex-direction:column}.channel-row .actions{justify-content:flex-start}.pagination{padding:14px;font-size:11px}.choice-grid{grid-template-columns:1fr 1fr}.form-row{flex-wrap:wrap}.coverage-list>div{gap:12px}}
@media(prefers-reduced-motion:reduce){.panel,.stat-card{animation:none}button{transition:none}}

/* Shared interactive controls, monitoring views and source navigation. */
* {scrollbar-width:thin;scrollbar-color:var(--border-strong) var(--bg-elevated);}
::-webkit-scrollbar {width:9px;height:9px;}
::-webkit-scrollbar-track {background:var(--bg-elevated);}
::-webkit-scrollbar-thumb {background:var(--border-strong);border:2px solid var(--bg-elevated);border-radius:8px;}
::-webkit-scrollbar-thumb:hover {background:var(--text-faint);}
select {appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%238da294' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;cursor:pointer;min-height:38px;}
select option,select optgroup {color:var(--text);background:var(--surface);padding:9px;}
select[multiple] {background-image:none;min-height:120px;padding:6px;}
select[multiple] option {border-radius:5px;margin:2px 0;padding:8px 10px;}
select option:checked {background:var(--accent-soft);color:var(--accent-hover);}
input[type="checkbox"],input[type="radio"] {appearance:none;display:inline-grid;place-content:center;width:18px;height:18px;min-width:18px;min-height:18px;margin:0;background:var(--bg-elevated);border:1px solid var(--border-strong);border-radius:5px;cursor:pointer;accent-color:var(--accent);transition:background-color var(--motion),border-color var(--motion);}
input[type="radio"] {border-radius:50%;}
input[type="checkbox"]::before {content:"";width:9px;height:5px;border:solid var(--on-accent);border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg) scale(0);}
input[type="radio"]::before {content:"";width:8px;height:8px;border-radius:50%;background:var(--on-accent);transform:scale(0);}
input[type="checkbox"]:checked,input[type="radio"]:checked {background:var(--accent);border-color:var(--accent);}
input[type="checkbox"]:checked::before {transform:translateY(-1px) rotate(-45deg) scale(1);}
input[type="radio"]:checked::before {transform:scale(1);}
input:disabled,select:disabled,textarea:disabled {opacity:.55;cursor:not-allowed;}
input[type="date"],input[type="datetime-local"] {color-scheme:inherit;}
input[type="range"] {accent-color:var(--accent);}
.check-field {cursor:pointer;line-height:1.5;}
.actions>select {width:auto;max-width:100%;}
.actions>label {margin:0;}
.sidebar-nav {flex:1;}
.workspace-card {padding:0;flex:none;margin-bottom:12px;background:var(--bg-elevated);}
.workspace-card summary {padding:12px;cursor:pointer;color:var(--text);list-style:none;border-radius:var(--radius-sm);}
.workspace-card summary::-webkit-details-marker {display:none;}
.workspace-card summary::after {content:'⌄';position:absolute;right:30px;top:94px;color:var(--text-muted);transition:transform var(--motion);}
.workspace-card[open] summary::after {transform:rotate(180deg);}
.workspace-card summary:hover {background:var(--surface-hover);}
.sidebar-hosts {max-height:26vh;overflow:auto;padding:4px 7px 8px;border-top:1px solid var(--border);}
.sidebar-hosts a {display:flex;gap:8px;align-items:center;padding:8px;border-radius:5px;font-size:12px;color:var(--text-muted);transition:background-color var(--motion),color var(--motion);}
.sidebar-hosts a:hover {background:var(--surface-hover);color:var(--text);}
.sidebar-hosts a[aria-current] {background:var(--accent-soft);color:var(--accent-hover);box-shadow:inset 2px 0 var(--accent);}
.sidebar-hosts a span:last-child {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sidebar-hosts .status-dot {width:6px;height:6px;}
.sidebar-host-search {padding:0 9px 9px;}
.sidebar-host-search input {font-size:11px;min-height:32px;padding:6px 8px;}
.sidebar-nav a {transition:background-color var(--motion),color var(--motion);}
.sidebar-brand {padding-top:20px;}
.sidebar-footer {padding-bottom:16px;}
.service-timeline {list-style:none;padding:0;margin:0;max-height:320px;overflow:auto;}
.service-timeline li {display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px;border-left:2px solid var(--border-strong);border-bottom:1px solid var(--border);font-size:12px;}
.service-timeline time,.service-timeline small {color:var(--text-muted);}
.chart-container {position:relative;height:240px;padding:14px;}
#tab-monitoring .panel-header h3 {font-size:13px;margin:0;}
#service-list table {min-width:1080px;}
#service-list td {vertical-align:top;min-width:130px;}
#service-list td:nth-child(1),#service-list td:nth-child(2) {min-width:170px;}
#service-list td:nth-child(3) {min-width:210px;}
#service-list td:last-child {min-width:230px;}
#service-list .actions {flex-wrap:nowrap;}
#service-list button {white-space:nowrap;}
#monitor-source a {color:var(--accent-hover);text-decoration:underline;text-underline-offset:3px;}
#report-status strong {display:block;font-size:13px;}
.skeleton {position:relative;min-height:100px;background:linear-gradient(100deg,var(--surface) 15%,var(--surface-raised) 40%,var(--surface) 65%);background-size:250% 100%;animation:skeleton 1.6s ease infinite;color:var(--text-muted);}
@keyframes skeleton {to {background-position:-250% 0;}}
.numeric-value {font-variant-numeric:tabular-nums;display:inline-block;min-width:1ch;}
dialog[open] {animation:surface-in .18s ease-out;}
@media(max-width:760px){.workspace-card summary::after{top:94px}.sidebar-hosts{max-height:23vh}.choice-grid{grid-template-columns:1fr}#tab-monitoring .actions{align-items:stretch;width:100%}#tab-monitoring .actions>select{flex:1;min-width:110px}.service-timeline li{padding:10px;gap:8px}}
@media(forced-colors:active){input[type="checkbox"],input[type="radio"],select{appearance:auto;}input[type="checkbox"]::before,input[type="radio"]::before{display:none;}.status-dot{border:1px solid CanvasText;}}
@media(prefers-reduced-motion:reduce){.skeleton{animation:none;background:var(--surface-raised);}html{scroll-behavior:auto;}*,*::before,*::after{animation:none!important;transition:none!important;}}
/* Shared interaction, layout and surface tokens. */
:root { --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:24px; --space-6:32px; --text-xs:12px; --text-sm:13px; --text-base:14px; --text-lg:18px; --text-title:28px; --glow:color-mix(in srgb,var(--accent) 3%,transparent); --gridline:color-mix(in srgb,var(--border) 6%,transparent); --shadow-raised:0 12px 36px #0003; }
* { scrollbar-width:thin; scrollbar-color:var(--border-strong) transparent; }
*::-webkit-scrollbar { width:8px; height:8px; }
*::-webkit-scrollbar-thumb { background:var(--border-strong); border:2px solid transparent; background-clip:padding-box; border-radius:12px; }
*::-webkit-scrollbar-track { background:transparent; }
body { background:radial-gradient(ellipse at 88% 0,var(--glow),transparent 48%),linear-gradient(120deg,var(--bg),var(--bg-elevated)); background-attachment:fixed; }
.panel { background:linear-gradient(145deg,color-mix(in srgb,var(--surface) 94%,var(--text) 6%),var(--surface) 45%); box-shadow:var(--shadow); border-radius:var(--radius); }
.panel-header { min-height:54px; padding:var(--space-4) var(--space-5); }
.panel-header h2 { font-size:var(--text-base); }
.padded,.panel-body.padded { padding:var(--space-5); }
.topbar { gap:var(--space-4); }
.topbar h1 { font-size:var(--text-title); line-height:1.2; letter-spacing:-.65px; }
.field { min-width:0; }
.field label { font-size:var(--text-sm); font-weight:500; }
.field small { font-size:var(--text-xs); line-height:1.6; }
button,.btn { min-height:36px; border-radius:var(--radius-sm); transition:background var(--motion),border-color var(--motion),box-shadow var(--motion); }
button:disabled { cursor:wait; opacity:.55; }
button[disabled][data-action="rename"] { cursor:not-allowed; }
button:active:not(:disabled),.btn:active { transform:translateY(1px); }
input,textarea { border-radius:var(--radius-sm); background:var(--bg-elevated); color:var(--text); min-height:40px; }
input[type="checkbox"],input[type="radio"] { appearance:none; width:17px; height:17px; min-height:17px; padding:0; border:1px solid var(--border-strong); border-radius:4px; display:inline-grid; place-content:center; flex-shrink:0; vertical-align:middle; }
input[type="radio"] { border-radius:50%; }
input[type="checkbox"]:checked,input[type="radio"]:checked { background:var(--accent); border-color:var(--accent); }
input[type="file"] { padding:8px; }
input::file-selector-button { font:inherit; border:1px solid var(--border-strong); background:var(--surface-raised); color:var(--text); padding:6px 10px; margin-right:12px; border-radius:var(--radius-sm); cursor:pointer; }
.badge { font-size:var(--text-xs); padding:3px 9px; min-height:24px; border:1px solid color-mix(in srgb,currentColor 18%,transparent); gap:6px; }
.badge::before { width:6px; height:6px; }
.table-wrap { overflow-x:auto; overscroll-behavior-x:contain; }
th { font-size:var(--text-xs); color:var(--text-muted); font-weight:500; }
td { font-size:var(--text-sm); }
td .actions { gap:6px; }
td .actions button { padding:5px 9px; font-size:var(--text-xs); }
.empty-row { padding:40px 24px; color:var(--text-muted); text-align:center; }
.empty-row h3 { margin:0 0 8px; font-size:16px; color:var(--text); }
.empty-row p { max-width:480px; margin:0 auto; }
.skeleton-row { min-height:120px; display:grid; place-items:center; color:var(--text-faint); background:linear-gradient(100deg,transparent,var(--surface-hover),transparent); background-size:200% 100%; animation:skeleton 2s ease-in-out infinite; }
@keyframes skeleton { to { background-position:-200% 0; } }
.select-control { position:relative; display:block; min-width:0; width:100%; }
.select-native { position:absolute !important; inset:0; opacity:0; pointer-events:none; width:1px !important; height:1px !important; padding:0 !important; }
.select-trigger { width:100%; min-height:40px; display:flex; align-items:center; justify-content:space-between; text-align:left; gap:12px; padding:9px 12px; background:var(--bg-elevated); color:var(--text); overflow:hidden; }
.select-trigger::after { content:''; width:7px; height:7px; border:1.5px solid var(--text-muted); border-left:0; border-top:0; transform:rotate(45deg) translateY(-2px); flex-shrink:0; }
.select-trigger[aria-expanded="true"] { border-color:var(--accent); }
.select-popover { position:fixed; z-index:200; overflow:auto; padding:6px; background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--radius-sm); box-shadow:var(--shadow-raised); animation:control-in 120ms ease-out; }
.select-popover [role="option"] { padding:9px 11px; border-radius:5px; cursor:pointer; font-size:13px; overflow-wrap:anywhere; }
.select-popover [role="option"]:hover,.select-popover .highlighted { background:var(--surface-hover); outline:1px solid var(--border-strong); }
.select-popover [aria-selected="true"] { color:var(--accent); background:var(--accent-soft); }
.select-popover [aria-disabled="true"] { opacity:.45; cursor:not-allowed; }
@keyframes control-in { from { opacity:0; translate:0 -3px; } to { opacity:1; translate:0 0; } }
.language-switch { color:var(--text-muted); font-size:12px; background:var(--surface); border:1px solid var(--border); min-width:92px; padding:7px 12px; }
.sidebar-footer > .language-switch { margin-bottom:12px; width:100%; }
.setup-steps { padding-left:20px; margin:0 0 16px; }
.setup-steps li { padding:4px 0 4px 4px; }
.setup-steps li::marker { color:var(--accent); font-weight:600; }
.keys-table { min-width:930px; }
.keys-table td:first-child { min-width:190px; max-width:270px; overflow-wrap:anywhere; }
.keys-table td:last-child { min-width:215px; }
.secret-code { overflow-wrap:anywhere; }
.action-dialog { border:1px solid var(--border-strong); box-shadow:var(--shadow-raised); border-radius:var(--radius); max-height:85dvh; animation:control-in 160ms ease-out; }
.action-dialog::backdrop { background:#050a08b3; backdrop-filter:blur(5px); }
.login-page { display:block; padding:0; min-height:100dvh; }
.auth-layout { width:100%; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(420px,1fr); min-height:100dvh; }
.auth-scene { position:relative; display:flex; flex-direction:column; justify-content:space-between; padding:40px clamp(32px,5vw,86px); border-right:1px solid var(--border); background:radial-gradient(ellipse at 45% 55%,var(--glow),transparent 65%); overflow:hidden; }
.auth-brand { display:flex; gap:12px; align-items:center; width:fit-content; }
.auth-brand strong { font-size:22px; letter-spacing:-.5px; }
.auth-brand > span { color:var(--text-faint); font-size:12px; letter-spacing:1.2px; }
.auth-intro { padding:50px 0 28px; max-width:550px; }
.eyebrow { color:var(--accent); font-size:11px; letter-spacing:2px; font-weight:600; }
.auth-intro h2 { font-size:clamp(32px,3.1vw,50px); line-height:1.16; letter-spacing:-1.5px; margin:20px 0; font-weight:600; }
.auth-intro > p { color:var(--text-muted); font-size:15px; line-height:1.8; max-width:420px; }
.auth-footer { font-size:12px; color:var(--text-faint); }
.auth-form-side { position:relative; display:grid; align-content:center; padding:88px 40px; }
.auth-tools { position:absolute; right:32px; top:32px; }
.login-card { width:100%; max-width:420px; margin:0 auto; background:transparent; border:0; box-shadow:none; padding:0; }
.login-card h1 { margin:0 0 5px; font-weight:600; font-size:26px; line-height:1.3; letter-spacing:-.6px; }
.login-card > p,.login-card #auth-content > p { margin:12px 0 28px; color:var(--text-muted); }
.login-card .login-brand { display:none; }
.login-card .field { margin-bottom:20px; }
.login-card input { height:46px; }
.login-card .primary { min-height:44px; }
.auth-links { gap:16px; flex-wrap:wrap; font-size:13px; }
.auth-diagram { max-width:410px; margin:34px 0 0; padding:24px; background:linear-gradient(135deg,var(--surface),var(--bg-elevated)); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); text-align:center; }
.diagram-node { margin:auto; width:150px; display:flex; align-items:center; justify-content:center; gap:24px; padding:9px; font-size:12px; border:1px solid var(--border-strong); border-radius:var(--radius-sm); }
.diagram-connector { width:1px; height:25px; background:var(--accent); margin:auto; opacity:.4; }
.diagram-center { display:flex; gap:12px; align-items:center; justify-content:center; margin:auto; width:180px; padding:15px; border:1px solid color-mix(in srgb,var(--accent) 40%,var(--border)); border-radius:var(--radius-sm); background:var(--accent-soft); }
.diagram-branches { display:flex; justify-content:space-between; gap:12px; border-top:1px solid var(--border-strong); margin:25px 8px 0; padding-top:16px; }
.diagram-branches > span { border:1px solid var(--border); border-radius:5px; padding:7px 9px; color:var(--text-muted); font-size:11px; }
.diagram-signal { display:flex; align-items:end; gap:7px; height:38px; margin-top:20px; opacity:.55; }
.diagram-signal i { flex:1; height:30%; background:var(--accent); border-radius:3px 3px 0 0; }
.diagram-signal i:nth-child(3n) { height:60%; }
.diagram-signal i:nth-child(4n) { height:85%; }
.diagram-signal i:nth-child(5n) { height:45%; }
@media(min-width:1700px) { .page,.topbar { max-width:1700px; margin-inline:auto; } }
@media(max-width:1100px) { .auth-layout { grid-template-columns:minmax(0,1fr) minmax(380px,1fr); } .auth-scene { padding:30px; } .auth-form-side { padding:88px 30px; } }
@media(max-width:760px) { .auth-layout { display:block; } .auth-scene { padding:24px; border:0; } .auth-intro,.auth-footer { display:none; } .auth-form-side { padding:36px 24px 90px; } .auth-tools { top:-56px; right:24px; } .panel-header,.padded,.panel-body.padded { padding:16px; } .topbar h1 { font-size:25px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; scroll-behavior:auto !important; } }

.profile-hint { display:block; margin:16px 32px 0; padding:10px 16px; border:1px solid var(--border-strong); border-radius:var(--radius-sm); background:var(--accent-soft); color:var(--text); font-size:13px; }
.tag-list { display:flex; flex-wrap:wrap; gap:6px; max-height:180px; overflow:auto; margin-top:12px; }
.tag-list code { font-size:11px; padding:3px 7px; border-radius:5px; background:var(--surface-hover); color:var(--text-muted); }
.metadata-services summary { cursor:pointer; color:var(--text-muted); font-size:12px; }
.date-control { position:relative; display:flex; width:100%; min-width:0; }
.date-control input { padding-right:44px; width:100%; }
.date-trigger { position:absolute; right:4px; top:4px; bottom:4px; padding:0 10px; border:0; min-height:28px; font-size:20px; color:var(--text-muted); background:transparent; }
.field-format { color:var(--text-faint); font-size:11px; margin-top:5px; display:block; }
.field-popover { position:fixed; z-index:1200; max-height:min(420px,80dvh); overflow:auto; background:var(--surface); color:var(--text); border:1px solid var(--border-strong); border-radius:var(--radius-sm); box-shadow:var(--shadow-raised); padding:8px; }
.field-popover [role="option"] { padding:10px 12px; border-radius:5px; font-size:13px; cursor:pointer; }
.field-popover [role="option"]:hover,.field-popover .highlighted { background:var(--accent-soft); color:var(--accent); }
.calendar-header,.calendar-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:4px; }
.calendar-header strong { font-size:13px; }
.calendar-header button { font-size:20px; padding:2px 12px; }
.calendar-grid [role="row"] { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); }
.calendar-grid [role="columnheader"] { font-size:10px; text-align:center; color:var(--text-faint); padding:10px 0; }
.calendar-grid button { border:1px solid transparent; background:transparent; border-radius:5px; padding:6px 0; min-height:34px; font-size:12px; }
.calendar-grid button:hover,.calendar-grid [aria-selected="true"] { background:var(--accent-soft); color:var(--accent); }
.calendar-grid [aria-current="date"] { border-color:var(--accent); }
.calendar-grid .adjacent-month { color:var(--text-faint); }
.calendar-footer { border-top:1px solid var(--border); margin-top:8px; padding-top:10px; }
.calendar-footer button { padding:5px 9px; font-size:11px; }
.panel-tooltip { position:fixed; z-index:1400; max-width:320px; width:max-content!important; padding:8px 12px; font-size:12px; line-height:1.5; color:var(--text); background:var(--surface); border:1px solid var(--border-strong); border-radius:6px; box-shadow:var(--shadow-raised); pointer-events:none; }
#host-metadata { border-bottom:1px solid var(--border); }
.docs-search { display:flex; align-items:center; gap:16px; padding:18px 22px; margin-bottom:24px; }
.docs-search label { font-weight:500; font-size:13px; }
.docs-search input { max-width:520px; flex:1; min-width:140px; }
.docs-search [role="status"] { margin-left:auto; font-size:12px; white-space:nowrap; }
.docs-layout { display:grid; grid-template-columns:260px minmax(0,1fr); gap:24px; align-items:start; }
.docs-nav { padding:8px; position:sticky; top:20px; max-height:calc(100dvh - 40px); overflow:auto; }
.docs-nav a { display:block; border-radius:var(--radius-sm); padding:12px; margin-bottom:3px; border:1px solid transparent; }
.docs-nav a strong { display:block; font-size:13px; font-weight:500; }
.docs-nav a small { display:block; font-size:11px; color:var(--text-faint); margin-top:4px; line-height:1.5; }
.docs-nav a:hover { background:var(--surface-hover); }
.docs-nav a[aria-current="page"] { color:var(--accent); background:var(--accent-soft); border-color:color-mix(in srgb,var(--accent) 24%,transparent); }
.docs-article { min-width:0; overflow:hidden; }
.docs-article-heading { padding:30px 32px 24px; border-bottom:1px solid var(--border); }
.docs-article-heading h2 { font-size:26px; line-height:1.25; margin:12px 0; letter-spacing:-.5px; }
.docs-article-heading p { color:var(--text-muted); margin:0; }
.docs-section { padding:24px 32px; border-bottom:1px solid var(--border); }
.docs-section h3 { margin:0 0 12px; font-size:17px; font-weight:600; }
.docs-section p,.docs-section li { font-size:14px; line-height:1.85; color:var(--text-muted); overflow-wrap:anywhere; max-width:900px; }
.docs-section p { margin:0; }
.docs-section li { margin-block:8px; }
.docs-code { margin-top:20px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-elevated); overflow:hidden; }
.docs-code-header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 14px; background:var(--surface-hover); border-bottom:1px solid var(--border); font-size:11px; color:var(--text-faint); }
.docs-code-header button { font-size:11px; min-height:30px; padding:4px 9px; }
.docs-code pre { margin:0; padding:18px; overflow-x:auto; line-height:1.85; font-size:12px; }
.code-command { color:var(--accent); font-weight:600; }.code-string { color:var(--warn); }.code-flag { color:var(--info); }
.docs-article-footer { padding:24px 32px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
@media(max-width:1100px) { .docs-layout { grid-template-columns:210px minmax(0,1fr); gap:16px; } .docs-section,.docs-article-heading,.docs-article-footer { padding:22px; } .docs-search { flex-wrap:wrap; } .docs-search label { flex-basis:100%; } }
@media(max-width:760px) { .docs-layout { display:block; } .docs-nav { position:static; max-height:220px; margin-bottom:20px; } .docs-nav a small { display:none; } .docs-nav a { padding:9px 12px; } .docs-search { padding:16px; gap:10px; } .docs-search input { max-width:none; width:100%; flex-basis:100%; } .docs-search [role="status"] { margin-left:0; } .docs-section,.docs-article-heading,.docs-article-footer { padding:20px 16px; } }

/* Monitoring, onboarding and notification surfaces. */
.host-toolbar,.inbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}.infrastructure-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:20px}.infrastructure-grid.is-empty{display:block}.host-card{min-width:0;align-self:start}.host-card .panel-header h2{font-size:18px;overflow-wrap:anywhere}.host-compute{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:20px 0}.host-compute>section{min-width:0}.host-compute h3{font-size:14px;color:var(--text-muted);margin:0 0 12px}.host-cpu{font-size:30px;font-weight:600}.host-compute small,.gpu-metric small{display:block;color:var(--text-muted);font-size:12px;margin-top:8px}.gpu-metric{display:flex;flex-direction:column;gap:5px;margin-bottom:18px;font-size:14px}.gpu-metric strong{font-size:14px;overflow-wrap:anywhere}.gpu-metric .progress-bar>div{background:#cc79a7}.host-last-seen{font-size:12px;margin:0}.welcome-host{padding:36px;border:1px solid var(--border-strong);border-radius:12px;background:var(--surface);margin-bottom:24px}.welcome-host h2{font-size:26px;margin:16px 0}.welcome-host p{font-size:16px;color:var(--text-muted)}.welcome-host ol{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;padding-left:22px;margin:28px 0}.welcome-host li{padding-left:4px}.welcome-host li span{display:block;font-size:14px;color:var(--text-muted);margin-top:8px}.welcome-icon svg{width:34px;height:34px;color:var(--accent)}.netwatch-tour{max-width:520px;width:calc(100% - 32px)}.netwatch-tour h2{font-size:24px;margin:16px 0}.netwatch-tour p{font-size:16px;line-height:1.6}.netwatch-tour .actions{margin-top:26px;flex-wrap:wrap}.tour-highlight{outline:3px solid var(--accent)!important;outline-offset:3px}.notification-inbox{margin-bottom:26px}.notification-inbox .panel-header p{margin:8px 0 0;font-size:14px}.inbox-toolbar{justify-content:flex-start;border-bottom:1px solid var(--border);margin:0}.inbox-toolbar label{display:flex;align-items:center;gap:12px;font-size:14px}.inbox-item{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:24px;border-bottom:1px solid var(--border);border-left:3px solid transparent}.inbox-item.is-unread{border-left-color:var(--info);background:var(--surface-hover)}.inbox-item .badge{margin-right:8px}.inbox-item h3{font-size:18px;line-height:1.4;margin:12px 0 6px}.inbox-item p{font-size:16px;color:var(--text-muted);margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere}.inbox-item small{font-size:12px;color:var(--text-faint)}.inbox-item button{flex-shrink:0}.inbox-more{display:block;margin:18px auto}#signature{width:100%;font:inherit;line-height:1.6;margin:16px 0}.chart-legend i{background:#56b4e9;border-radius:0;width:16px;height:2px}.chart-legend i.blue{background:none;border-top:2px dashed #e69f00}.chart-legend i.teal{background:none;border-top:2px dotted #cc79a7}
@media(max-width:760px){.welcome-host{padding:24px}.welcome-host ol{grid-template-columns:1fr;gap:18px}.inbox-item{flex-direction:column;align-items:flex-start;gap:14px}.notification-inbox .panel-header{flex-wrap:wrap;gap:16px}.host-compute{gap:16px}}

:root{--chart-cpu:#76c7ff;--chart-ram:#ffbb70;--chart-load:#c8a2ff;--chart-gpu:#c8a2ff}
:root[data-theme="light"]{--chart-cpu:#0069a8;--chart-ram:#975700;--chart-load:#8649bb;--chart-gpu:#8649bb}
.chart-legend i{background:var(--chart-cpu)}.chart-legend i.blue{border-color:var(--chart-ram)}.chart-legend i.teal{border-color:var(--chart-load)}.gpu-metric .progress-bar>div{background:var(--chart-gpu)}
.notification-settings>summary{cursor:pointer;padding:20px 0;font-size:18px;font-weight:600}.notification-settings[open]>summary{margin-bottom:12px}.inbox-toolbar label{margin:0}.host-toolbar{justify-content:flex-start}.host-toolbar>[data-start-tour]{margin-left:auto}

.auth-legal{display:flex;justify-content:center;gap:10px 20px;flex-wrap:wrap;max-width:440px;margin:28px auto 0;color:var(--text-muted,#a1afa6);font-size:11px}.auth-legal a{display:inline-flex;align-items:center;min-height:44px}

.outage-alert{margin:18px 24px 0;padding:16px 20px;border:1px solid #b44747;border-radius:8px;background:#361d20;color:#ffd6d6}.outage-alert summary{cursor:pointer;margin-top:8px}.outage-alert li{margin:8px 0}.outage-alert a{color:inherit;text-decoration:underline}@media(max-width:600px){.outage-alert{margin-inline:12px}}
