@import "./tokens.css";

@font-face {
  font-family: Manrope;
  src: url("./vendor/Manrope.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("./vendor/JetBrainsMono.ttf") format("truetype");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --paper: var(--panel2);
  --sub: var(--ink2);
  --muted: var(--ink3);
  --accent: var(--acc);
  --accentsoft: var(--accSoft);
  --neutral: var(--nodata);
  --neutralbg: var(--nodataSoft);
  --chart1: var(--d1);
  --chart2: var(--d4);
  --chart3: var(--d5);
  --cpu-peak: var(--needle);
  --side: 240px;
  font: 13px/1.4 var(--font-ui);
  color-scheme: light;
}
:root[data-theme=dark] { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); }
button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--needle); outline-offset: 2px; }
[hidden] { display: none !important; }
p, h1, h2, h3, h4, dl, dt, dd, ul { margin: 0; }
h1 { font-size: 26px; line-height: 32px; letter-spacing: -.02em; }
h2 { font-size: 17px; line-height: 22px; }
h3 { font-size: 15px; line-height: 20px; }
h4 { font-size: 12px; margin: 8px 0 5px; }
small, time, .empty { color: var(--muted); font-size: 11px; }
time, .mono, .big, .reading dd, .kpi-value, .quota-value strong, .machine-values strong, .top-clock, .wall-time {
  font-family: var(--font-num);
  font-weight: 500;
}
.icon {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.row, .between, .brand, .tool, .nav-link, .panel-title, .detail-link, .machine-link,
.sort, .metadata, .section-head, .segments, .primary, .menu-button { display: flex; align-items: center; gap: 8px; }
.between, .section-head { justify-content: space-between; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--acc);
  color: var(--needle); display: grid; place-items: center; flex: none;
}
.logo-mark .icon { width: 22px; height: 22px; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); padding: 20px 14px 18px;
  z-index: 5; display: flex; flex-direction: column; overflow-y: auto;
  background: var(--panel); border-right: 1px solid var(--line);
}
.side-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 8px 16px; }
.brand { font-size: 15px; font-weight: 800; line-height: 17px; }
.brand-name { max-width: 112px; }
.nav-link { padding: 0 12px; gap: 11px; min-height: 39px; width: 100%; border-radius: 10px; font-size: 14px; font-weight: 650; text-align: left; }
.nav-link:hover, .tool:hover { background: var(--accSoft); }
.nav-link[aria-current=page] { background: var(--acc); color: var(--onacc); }
.nav-label { padding: 12px 12px 4px; color: var(--ink3); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.side-foot { margin-top: auto; padding-top: 17px; }
.side-foot .preferences { margin: 0 0 8px; }
.side-foot small { display: block; padding: 8px 12px 0; }
.preferences { display: flex; align-items: center; gap: 8px; }
.tool, .menu-button, .menu-close, .chart-control {
  min-height: 44px; min-width: 44px; justify-content: center; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--panel2);
}
.menu-button, .menu-close, .mask { display: none; }
.main { margin-left: var(--side); min-width: 0; }
.canvas { max-width: 1800px; margin: auto; padding: 20px 28px 28px; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.page-head h1 { margin-right: auto; overflow-wrap: anywhere; }
.top-clock { color: var(--ink3); white-space: nowrap; font-size: 10px; text-align: right; }
.segments { padding: 3px; gap: 2px; min-width: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 11px; }
.segments button { padding: 0 12px; min-height: 34px; white-space: nowrap; color: var(--ink2); font-weight: 650; border-radius: 8px; }
.segments button[aria-pressed=true], .chart-control[aria-pressed=true] { color: var(--onacc); background: var(--acc); }
.notice:not(:empty), .login-message:not(:empty) {
  color: var(--alarm); background: var(--alarmSoft); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
}
.stack { display: grid; gap: 14px; }
.stack, .stack > * { min-width: 0; }
.stack:empty, .short-tasks:empty { display: none; }
.two, .three, .overview-analysis, .kpis, .overview-cards, .overview-servers { display: grid; gap: 12px; }
.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.two:has(> :only-child), .three:has(> :only-child) { grid-template-columns: minmax(0,1fr); }
.panel, .card, .kpi {
  min-width: 0; position: relative; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-card);
}
.panel, .card { padding: 16px 18px; }
.panel-title, .section-head { margin-bottom: 10px; }
.detail-link { width: fit-content; font-size: 12px; font-weight: 750; }
.detail-link:hover, .text-button:hover { text-decoration: underline; }
.kpis { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.kpi { padding: 8px 12px 9px; min-height: 78px; }
.kpi-value { display: block; font-size: 25px; line-height: 1.35; letter-spacing: -.04em; overflow-wrap: anywhere; }
.kpi-label { color: var(--ink3); font-size: 11px; font-weight: 650; display: flex; gap: 5px; align-items: center; }
.kpi-label .icon { width: 13px; height: 13px; }
.kpi-foot { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
.kpi .mini { position: absolute; bottom: 6px; right: 7px; width: 34%; }
.kpi .mini .graph { height: 20px; }
.overview .stack { gap: 10px; }
.overview .page-head { margin-bottom: 12px; }
.overview .panel, .overview .card { padding: 11px 12px; }
.overview-analysis { grid-template-columns: minmax(0,1.55fr) repeat(2,minmax(0,1fr)); }
.overview-analysis .graph { height: 152px; }
.overview-analysis .panel-title { margin-bottom: 3px; }
.overview-analysis .short-tasks, .overview-analysis .alerts { max-height: 151px; overflow: auto; }
.overview-cards { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; }
.overview-cards .between { align-items: flex-start; flex-wrap: wrap; gap: 3px; }
.overview-cards .machine-link { align-items: flex-start; }
.overview-cards .machine-link h3, .overview-cards .quota-card h3 { font-size: 13px; line-height: 17px; }
.overview-cards .machine-values { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.overview-cards .machine-values strong { font-size: 11px; }
.overview-cards .machine-values small { font-size: 10px; }
.overview-cards .quota-value { margin: 5px 0; }
.overview-cards .quota-value strong { font-size: 21px; }
.overview-cards .mini .graph { height: 23px; }
.overview-servers { grid-template-columns: repeat(7,minmax(0,1fr)); gap: 10px; }
.overview-servers .card { border-radius: 14px; display: grid; gap: 4px; }
.server-name, .technical, .text-button { overflow-wrap: anywhere; }
.verdict { display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 750; }
.verdict.warn { color: var(--warn); }
.verdict.missing { color: var(--nodata); }

.badge { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 2px 8px; border-radius: 999px; background: var(--nodataSoft); color: var(--nodata); font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge .icon { width: 13px; height: 13px; }
.badge.ok { color: var(--ok); background: var(--okSoft); }
.badge.warn, .signal.warn { color: var(--warn); background: var(--warnSoft); }
.badge.alarm, .signal.alarm { color: var(--alarm); background: var(--alarmSoft); }
.badge.sleep { color: var(--sleep); background: var(--sleepSoft); }
.badge.stale { color: var(--stale); background: var(--staleSoft); outline: 1px dashed var(--stale); outline-offset: -1px; }
.badge.done, .badge.healthy { color: var(--ok); background: var(--okSoft); }
.badge.failed, .badge.unhealthy, .badge.dead { color: var(--alarm); background: var(--alarmSoft); }
.badge.silent, .badge.restarting { color: var(--warn); background: var(--warnSoft); }
.dimmed { opacity: .7; }
.alerts, .event-feed, .short-tasks, .vps-addresses { list-style: none; padding: 0; }
.alert-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line2); }
.alert-row:first-child, .short-tasks li:first-child { border: 0; }
.alert-row time { margin-left: auto; white-space: nowrap; }
.alert-row strong, .alert-row small { display: block; overflow-wrap: anywhere; }
.alert-row .text-button { display: block; }
.signal, .icon-tile { display: inline-grid; place-items: center; flex: none; width: 25px; height: 25px; border-radius: 7px; background: var(--panel2); }
.signal .icon, .icon-tile .icon, .machine-link > .icon { width: 14px; height: 14px; }
.quiet { font-size: 12px; color: var(--ok); padding: 8px 0; }
.sample-line, .quota-foot { display: block; margin-top: 4px; }
.machine-values { display: flex; gap: 4px 10px; margin: 7px 0; }
.machine-values strong, .machine-values small { display: block; }
.spark-line { display: grid; gap: 2px; }
.spark-line > small { font-size: 10px; }
.quota-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0; }
.quota-value strong, .big { font-size: 27px; line-height: 1.2; letter-spacing: -.04em; }
.remainder { color: var(--ink3); font-size: 11px; }
.meter { position: relative; height: 7px; margin: 8px 0; border-radius: 5px; background: var(--free); }
.meter-fill { display: block; height: 100%; border-radius: inherit; background: var(--needle); }
.meter.stale .meter-fill { background: var(--stale); }
.meter-mark { position: absolute; width: 2px; height: 13px; top: -3px; background: var(--ink); }
.metadata { flex-wrap: wrap; color: var(--ink2); font-size: 12px; }
.readings { display: flex; align-items: start; flex-wrap: wrap; gap: 8px 20px; }
.reading { min-width: 0; }
.reading dt { color: var(--ink3); font-size: 11px; }
.reading dd { font-size: 14px; overflow-wrap: anywhere; }
.quota-card .readings { display: grid; gap: 5px; margin-top: 12px; }
.quota-card .reading { display: flex; justify-content: space-between; gap: 8px; }
.quota-card .reading dd { text-align: right; font-size: 12px; }
.cpu-readings { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: 4px 0 8px; }
.cpu-readings strong, .cpu-reading-details > small { display: block; }
.cores { display: flex; gap: 4px; flex-wrap: wrap; }
.cores span { display: grid; gap: 5px; min-width: 60px; background: var(--panel2); padding: 4px 6px; border-radius: 6px; font-size: 10px; color: var(--ink3); }
.cores b { color: var(--ink); font-family: var(--font-num); font-weight: 500; }
.dial { display: flex; align-items: center; gap: 14px; }
.dial svg { width: 100px; height: 65px; flex: none; }
.dial-track { fill: none; stroke: var(--free); stroke-width: 7; }
.dial-ticks { stroke: var(--ink3); stroke-width: 1; }
.dial-needle { stroke: var(--needle); stroke-width: 3; stroke-linecap: round; }
.dial-hub { fill: var(--needle); }
.dial-even { stroke: var(--ink); stroke-width: 2; }
.dial-projection { fill: none; stroke: var(--needle); stroke-width: 3; stroke-dasharray: 2 3; }
.short-tasks li { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: 12px; border-top: 1px solid var(--line2); padding: 5px 0; }
.short-tasks li > div { min-width: 0; }
.short-tasks small { display: block; }
.text-button { color: var(--ink); text-align: left; font-weight: 750; }
.task-name { display: inline-block; max-width: min(32ch,100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.card-open { position: absolute; inset: 0; overflow: hidden; text-indent: -9999px; border-radius: inherit; }
.card:has(.card-open):hover, .kpi:has(.card-open):hover, a.card:hover, a.kpi:hover { border-color: var(--ink3); }
.card .text-button, .card .mini, .kpi .mini, .card .services { z-index: 1; }
.card .services { position: relative; }
.services { margin-top: 12px; }
details summary { cursor: pointer; font-weight: 700; }
.agent-name small { display: block; overflow-wrap: anywhere; }

.table-wrap { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line2); white-space: nowrap; }
th { color: var(--ink3); font-size: 11px; font-weight: 700; }
tbody tr:last-child td { border: 0; }
td[data-numeric] { font-family: var(--font-num); font-size: 12px; }
.sort { font-size: inherit; font-weight: inherit; gap: 3px; }
.sort .icon { width: 12px; height: 12px; }
.empty { padding: 10px 0; }
.search, .password, select { border: 1px solid var(--line); background: var(--panel2); border-radius: var(--radius-control); padding: 8px 10px; max-width: 100%; }
.search { width: min(360px,100%); margin-bottom: 8px; }
.filters, .allocation-legend { display: flex; align-items: end; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 8px; }
.select-field { display: inline-grid; gap: 4px; }
.direction-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 10px; }
.direction-item { display: grid; gap: 3px; border-left: 1px solid var(--line); padding-left: 10px; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 3px; flex: none; }
.stream { display: inline-flex; align-items: center; gap: 5px; }
.allocation { height: 13px; display: flex; overflow: hidden; background: repeating-linear-gradient(135deg,var(--panel) 0 3px,var(--line) 3px 5px); border-radius: 5px; margin: 5px 0; }
.allocation i { height: 100%; }
.allocation-legend { font-size: 11px; margin: 0; }
.allocation-row + .allocation-row { margin-top: 12px; }
.vps-addresses { margin: 6px 0; }
.vps-addresses li { flex-wrap: wrap; margin: 4px 0; }
.vps-card .between { flex-wrap: wrap; }
.vps-card .readings { margin-top: 10px; }
.vps-card .reading dd { font-size: 13px; }

.plot { position: relative; min-width: 0; isolation: isolate; }
.graph { width: 100%; height: 172px; min-width: 0; }
.plot-frame { position: relative; min-width: 0; }
.plot-tools { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.expand-plot { display: flex; align-items: center; gap: 4px; color: var(--ink3); margin-left: auto; font-size: 10px; min-height: 24px; }
.expand-plot .icon { width: 14px; height: 14px; }
.plot.mini { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; pointer-events: none; }
.mini .plot-tools { grid-column: 2; grid-row: 1; }
.mini .plot-frame { grid-column: 1; grid-row: 1; }
.mini .expand-plot { font-size: 0; justify-content: center; min-width: 24px; pointer-events: auto; }
.plot.mini .graph { height: 38px; }
.mini[data-empty=true], .spark-line:has(.mini[data-empty=true]), .history-since:empty, .comparison:empty, .plot-message:empty { display: none; }
.history-since, .comparison { display: block; font-size: 10px; color: var(--ink3); }
.event-overlay, .event-tip { position: absolute; pointer-events: none; }
.event-overlay { z-index: 1; }
.event-line { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--ok); opacity: .75; }
.event-line::after { content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; position: absolute; bottom: 3px; left: -4px; }
.event-line { color: var(--ok); }
.event-line.warn { color: var(--warn); border-color: var(--warn); }
.event-line.alarm { color: var(--alarm); border-color: var(--alarm); }
.event-tip { top: 4px; z-index: 3; max-width: 100%; max-height: 100%; overflow: auto; white-space: pre-line; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink); padding: 5px 8px; }
.plot-message { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: var(--ink3); background: var(--panel); pointer-events: none; text-align: center; }
.reset-zoom { position: absolute; right: 2px; bottom: 0; background: var(--panel); padding: 3px 5px; border: 1px solid var(--line); border-radius: 6px; font-size: 10px; display: flex; align-items: center; gap: 3px; }
.reset-zoom .icon { width: 12px; height: 12px; }
.panel:has(> .optional-history[data-empty=true]), .two:has(> .panel:only-of-type > .optional-history[data-empty=true]),
.quota-history > [data-empty=true], .panel:has(> .quota-history):not(:has(> .quota-history > [data-empty=false])) { display: none; }
.two:has(> .panel > .optional-history[data-empty=true]) { grid-template-columns: repeat(auto-fit,minmax(min(300px,100%),1fr)); }
.chart-dialog {
  position: fixed; inset: 0; margin: auto; width: calc(100% - 56px); height: calc(100dvh - 56px);
  max-width: 1380px; max-height: none; padding: 0; overflow: hidden; color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px; background: var(--panel);
}
.chart-dialog-content { height: 100%; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; gap: 8px; padding: 20px 24px; }
.chart-dialog-header, .chart-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.chart-dialog-header h2 { margin-right: auto; font-size: 21px; overflow-wrap: anywhere; }
.chart-control { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; }
.chart-control:hover { background: var(--accSoft); }
.chart-dialog-plot { display: flex; flex-direction: column; min-height: 0; }
.chart-dialog-plot .plot-frame { flex: 1; min-height: 0; }
.chart-dialog-plot .graph { position: absolute; inset: 0; height: 100%; touch-action: none; }
.chart-dialog-plot .graph * { touch-action: none; }
.chart-hint { color: var(--ink3); }
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px,100vw); height: 100dvh; max-width: none;
  max-height: none; border: 0; border-left: 1px solid var(--line); padding: 22px 24px; overflow: auto;
  background: var(--panel); color: var(--ink);
}
dialog::backdrop { background: #14141388; }
.drawer header { margin-bottom: 18px; }
.drawer header h2 { overflow-wrap: anywhere; font-size: 20px; }
.drawer .readings { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.drawer .reading { background: var(--panel2); border-radius: 10px; padding: 9px 10px; }
.drawer .detail-link { margin-top: 14px; }
.detail-close { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; font-weight: 700; flex: none; }

.initial, .login { min-height: 100dvh; display: grid; place-items: center; }
.initial { place-content: center; gap: 10px; }
.login { padding: 72px 20px 55px; }
.login-tools { position: absolute; top: 22px; right: 28px; }
.login-form { width: min(420px,100%); padding: 34px; display: grid; gap: 15px; }
.login-form .logo-mark { width: 56px; height: 56px; border-radius: 17px; }
.login-form .logo-mark .icon { width: 35px; height: 35px; }
.login-brand { display: flex; align-items: center; gap: 14px; }
.login-brand h1 { font-size: 22px; font-weight: 800; line-height: 1.16; }
.login-form label { font-weight: 750; margin-bottom: -8px; }
.login-form .login-message { margin: 0; }
.password, .primary { min-height: 48px; }
.primary { justify-content: center; border-radius: var(--radius-control); background: var(--acc); color: var(--onacc); font-weight: 800; padding: 0 14px; }
.login-zone { position: absolute; bottom: 18px; }

.wall, .wall * { cursor: none !important; }
.wall .main { margin: 0; }
.wall .canvas { max-width: none; padding: 26px 36px; }
.wall .page-head { margin-bottom: 18px; }
.wall .page-head h1 { font-size: 32px; }
.wall .page-head .logo-mark { width: 44px; height: 44px; }
.wall .top-clock { white-space: normal; }
.wall-time { display: block; font-size: 36px; line-height: 1.1; color: var(--ink); }
.wall .kpis { grid-template-columns: repeat(9,minmax(0,1fr)); }
.wall .kpi { padding: 12px 14px; }
.wall .kpi-value { font-size: 37px; }
.wall .kpi-label, .wall .machine-values strong, .wall .server-name { font-size: 16px; }
.wall .overview .stack { gap: 15px; }
.wall .overview .card, .wall .overview .panel { padding: 14px 17px; }
.wall .overview-cards h3, .wall .panel-title { font-size: 20px; line-height: 1.25; }
.wall .overview-analysis .graph { height: 253px; }
.wall .overview-analysis .short-tasks, .wall .overview-analysis .alerts { max-height: 254px; }
.wall .short-tasks li, .wall .short-tasks small, .wall .alert-row strong, .wall .verdict { font-size: 16px; }
.wall .overview-cards .quota-value strong { font-size: 31px; }
.wall .expand-plot, .wall .reset-zoom, .wall .detail-link, .wall .card-open { display: none; }

@media (max-width: 1200px) {
  :root { --side: 206px; }
  .canvas { padding-inline: 19px; }
  .overview-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .overview-servers { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .wall .overview-cards { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .main { margin-left: 0; }
  .side { width: min(100%,390px); visibility: hidden; transform: translateX(-100%); }
  .menu-open .side { visibility: visible; transform: none; }
  .menu-open .mask { display: block; position: fixed; inset: 0; z-index: 4; background: #14141388; }
  .menu-open { overflow: hidden; }
  .menu-button, .menu-close { display: inline-flex; align-items: center; }
  .menu-button { font-size: 0; }
  .side-brand { margin: 0 0 10px; }
  .nav-link { min-height: 48px; font-size: 15px; }
  .page-head { gap: 8px; }
}
@media (max-width: 640px) {
  .canvas { padding: 0 16px 24px; }
  .page-head { position: sticky; z-index: 3; top: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; padding: 10px 0; margin-bottom: 8px; background: var(--bg); }
  .page-head h1 { font-size: 21px; line-height: 25px; }
  .top-clock { max-width: 90px; white-space: normal; font-size: 9px; }
  .page-head .segments { grid-column: 1/-1; }
  .segments button { min-height: 44px; flex: 1; padding: 0 4px; font-size: 11px; }
  .two, .three, .overview-analysis { grid-template-columns: minmax(0,1fr); }
  .kpis, .overview-cards, .overview-servers { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .panel, .card { padding: 14px; }
  .chart-dialog { width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .chart-dialog-content { padding: 12px; }
  .chart-dialog-header .segments { order: 3; width: 100%; }
  .drawer { width: 100%; padding: 16px; }
  .drawer .readings { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .drawer .reading { display: grid; align-items: baseline; grid-template-columns: 1fr 1.4fr; gap: 8px; }
  .search, select { min-height: 44px; }
  .table-wrap { overflow: visible; }
  table, tbody, tr { display: block; }
  thead { display: none; }
  thead:has(.sort), thead:has(.sort) th { display: block; }
  thead:has(.sort) tr { display: flex; flex-wrap: wrap; gap: 4px; }
  thead:has(.sort) th { padding: 0 4px; border: 0; }
  .sort { min-height: 44px; }
  tbody tr { padding: 8px 0; border-bottom: 1px solid var(--line2); }
  tbody td { display: grid; grid-template-columns: minmax(0,35%) minmax(0,1fr); gap: 8px; border: 0; padding: 3px 0; white-space: normal; overflow-wrap: anywhere; }
  td::before { content: attr(data-label); font: 600 11px var(--font-ui); color: var(--ink3); }
  .login-tools { right: 16px; top: 16px; }
  .login-form { padding: 20px; }
  .login-brand h1 { font-size: 19px; }
  .wall .page-head { position: static; }
}
@media (pointer: coarse) {
  .expand-plot, .mini .expand-plot { min-width: 44px; min-height: 44px; }
  .overview-servers a, .detail-link { min-height: 44px; }
}

.nav-state { display: inline-flex; margin-left: auto; }
.nav-state.alarm { color: var(--alarm); }
.nav-state.warn { color: var(--warn); }
.nav-state.sleep { color: var(--sleep); }
.nav-state.stale { color: var(--stale); }
[aria-current=page] .nav-state { color: inherit; }
.dial-alarm, .dial-warn { fill: none; stroke-width: 7; }
.dial-alarm { stroke: var(--alarm); }
.dial-warn { stroke: var(--warnZone); }
.overview-cards .dial { gap: 5px; }
.overview-cards .dial svg { width: 60px; height: 42px; }
.local-models { list-style: none; padding: 0; margin-top: 8px; }
.local-models li { overflow-wrap: anywhere; margin-bottom: 5px; }
.local-models small { display: block; }
.filters .search { margin-bottom: 0; }
.overview .alert-row .text-button { font-size: 11px; }
.wall .alert-row .text-button { font-size: 16px; }
:root { --cpu-peak-fill: #FF5A1F22; }
:root[data-theme=dark] { --cpu-peak-fill: #FF6A2E33; }
.top-clock { display: inline-flex; align-items: center; justify-content: end; gap: 4px; }
.connection { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.connection.offline { background: var(--alarm); }
.wall .top-clock { display: block; }
.select-field { justify-self: start; }
