/* Customer portal. System sans throughout; chart colours follow the validated reference palette. */

:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --ink-3: #898781;
  --line: #e1e0d9;
  --axis: #c3c2b7;
  --ring: rgba(11, 11, 11, 0.1);
  --accent: #2a78d6;
  --accent-ink: #ffffff;
  --accent-hover: #256abf;
  --good: #0ca30c;
  --good-text: #006300;
  --critical: #d03b3b;
  --warn-bg: #fff4d6;
  --warn-ink: #5b4300;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --muted-fill: #ecebe6;
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --line: #2c2c2a;
    --axis: #383835;
    --ring: rgba(255, 255, 255, 0.1);
    --accent: #3987e5;
    --accent-hover: #5598e7;
    --good-text: #0ca30c;
    --critical: #e66767;
    --warn-bg: #3a2f10;
    --warn-ink: #f3d98b;
    --series-1: #3987e5;
    --series-2: #d95926;
    --muted-fill: #262624;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --line: #2c2c2a;
  --axis: #383835;
  --ring: rgba(255, 255, 255, 0.1);
  --accent: #3987e5;
  --accent-hover: #5598e7;
  --good-text: #0ca30c;
  --critical: #e66767;
  --warn-bg: #3a2f10;
  --warn-ink: #f3d98b;
  --series-1: #3987e5;
  --series-2: #d95926;
  --muted-fill: #262624;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 650; }
h1 { font-size: 1.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; }
h3 { font-size: 0.95rem; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 20px; padding: 20px 14px;
  background: var(--surface); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; font-size: 0.98rem; padding: 4px 10px; overflow-wrap: anywhere; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; line-height: 1.15; }
.brand-name { font-weight: 750; color: var(--brand-primary, var(--ink)); }
.brand-tagline { color: var(--ink-2); font-size: 0.61rem; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.nav { display: grid; gap: 2px; }
.nav a { padding: 9px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 550; }
.nav a:hover { background: var(--muted-fill); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--muted-fill); }
.side-foot { margin-top: auto; padding: 0 10px; font-size: 0.8rem; color: var(--ink-3); }
.main-col { min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 16px; padding: 0 24px; height: 56px;
  border-bottom: 1px solid var(--line); background: var(--page);
}
.spacer { flex: 1; }
.whoami { text-align: right; line-height: 1.25; font-size: 0.85rem; color: var(--ink-2); }
.whoami strong { display: block; color: var(--ink); font-size: 0.9rem; }

main { max-width: 1120px; margin: 0 auto; padding: 28px 24px 64px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { color: var(--ink-2); margin-top: 4px; }
.crumb { font-size: 0.85rem; margin-bottom: 8px; }

.banner {
  padding: 10px 14px; border-radius: 8px; margin-bottom: 20px;
  background: var(--warn-bg); color: var(--warn-ink);
}

/* ---------- summary ---------- */
.summary {
  display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--surface); border: 1px solid var(--ring); border-radius: 10px;
  margin-bottom: 24px;
}
.summary > div { padding: 16px 18px; border-left: 1px solid var(--line); }
.summary > div:first-child { border-left: 0; }
.figure { font-size: 1.7rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.figure small { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); margin-left: 4px; letter-spacing: 0; }
.label { color: var(--ink-2); font-size: 0.85rem; }

/* ---------- tables ---------- */
.panel { background: var(--surface); border: 1px solid var(--ring); border-radius: 10px; overflow: hidden; }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { font-weight: 550; font-size: 0.85rem; color: var(--ink-2); background: transparent; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr.row-link { cursor: pointer; }
tbody tr.row-link:hover { background: var(--muted-fill); }
.vm-name { font-weight: 600; color: var(--ink); }
.vm-name:hover { text-decoration: underline; }
.empty { padding: 40px 18px; text-align: center; color: var(--ink-2); }

/* ---------- status ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 550; white-space: nowrap; }
.status svg { width: 12px; height: 12px; flex: none; }
.status.running { color: var(--good-text); }
.status.running svg { fill: var(--good); }
.status.stopped { color: var(--ink-2); }
.status.stopped svg { fill: none; stroke: var(--ink-3); stroke-width: 2; }
.status.unknown { color: var(--ink-2); }
.status.unknown svg { fill: none; stroke: var(--ink-3); stroke-width: 2; }

/* ---------- buttons ---------- */
button, .btn {
  font: inherit; font-weight: 550; cursor: pointer;
  padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--axis); background: var(--surface); color: var(--ink);
}
button:hover:not(:disabled) { background: var(--muted-fill); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
button.danger { background: var(--critical); border-color: var(--critical); color: #fff; }
button.danger:hover:not(:disabled) { filter: brightness(0.93); background: var(--critical); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }

/* ---------- vm detail ---------- */
.specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0;
  background: var(--surface); border: 1px solid var(--ring); border-radius: 10px; margin-bottom: 24px;
}
.specs > div { padding: 16px 18px; border-left: 1px solid var(--line); min-width: 0; }
.specs > div:first-child { border-left: 0; }
.specs .value { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; }
.specs .note { font-size: 0.85rem; color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.meter { height: 6px; border-radius: 3px; background: var(--muted-fill); margin-top: 8px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--series-1); border-radius: 3px; }

.section-title { display: flex; align-items: center; gap: 12px; margin: 28px 0 12px; flex-wrap: wrap; }
.range { display: inline-flex; border: 1px solid var(--axis); border-radius: 8px; overflow: hidden; background: var(--surface); }
.range button { border: 0; border-radius: 0; padding: 6px 12px; background: transparent; }
.range button + button { border-left: 1px solid var(--axis); }
.range button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.range button[aria-pressed="true"]:hover { background: var(--ink); }

.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-card { background: var(--surface); border: 1px solid var(--ring); border-radius: 10px; padding: 14px 16px 12px; min-width: 0; }
.chart-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; }
.chart-head .legend { margin-left: auto; display: flex; gap: 14px; color: var(--ink-2); font-size: 0.85rem; }
.legend i { display: inline-block; width: 14px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 6px; }
.legend i.s1 { border-color: var(--series-1); }
.legend i.s2 { border-color: var(--series-2); }
.legend i.dash { border-top-style: dashed; border-color: var(--ink-3); }
.chart-head button.link { margin-left: 8px; padding: 2px 8px; font-size: 0.8rem; font-weight: 500; color: var(--ink-2); border-color: transparent; background: transparent; }
.chart-head button.link:hover:not(:disabled) { color: var(--ink); background: var(--muted-fill); }
.chart-wrap { position: relative; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-empty { height: 150px; display: grid; place-items: center; color: var(--ink-2); text-align: center; padding: 0 16px; }
.chart-card.na .chart-empty { height: 120px; }
.chart-card table { font-size: 0.85rem; }
.chart-card th, .chart-card td { padding: 6px 8px; }
.chart-scroll { max-height: 200px; overflow: auto; }

svg .grid { stroke: var(--line); stroke-width: 1; }
svg .baseline { stroke: var(--axis); stroke-width: 1; }
svg text { fill: var(--ink-3); font-size: 11px; font-family: inherit; }
svg .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
svg .line.s1 { stroke: var(--series-1); }
svg .line.s2 { stroke: var(--series-2); }
svg .line.dash { stroke: var(--ink-3); stroke-dasharray: 5 4; stroke-width: 1.5; }
svg .area { fill: var(--series-1); opacity: 0.1; stroke: none; }
svg .cross { stroke: var(--ink-3); stroke-width: 1; }
svg .dot { stroke: var(--surface); stroke-width: 2; }
svg .dot.s1 { fill: var(--series-1); }
svg .dot.s2 { fill: var(--series-2); }
svg .hit { fill: transparent; cursor: crosshair; }
.tip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 150px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--axis); border-radius: 8px;
  padding: 8px 10px; font-size: 0.85rem; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.tip .when { color: var(--ink-2); margin-bottom: 4px; }
.tip .row { display: flex; align-items: center; gap: 8px; }
.tip .row b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.tip i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.tip i.s1 { background: var(--series-1); }
.tip i.s2 { background: var(--series-2); }
.tip i.dash { background: var(--ink-3); }

/* ---------- console ---------- */
.console-connection-indicator {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px;
  background: var(--muted-fill); color: var(--ink-2); font-size: 0.84rem; font-weight: 700;
}
.console-connection-dot { display: inline-block; width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: var(--ink-3); }
.console-connection-indicator[data-state="connected"] { background: #e8f7ec; border-color: #86d29a; color: #166534; }
.console-connection-indicator[data-state="connected"] .console-connection-dot { background: #15803d; box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.14); }
.console-connection-indicator[data-state="connecting"] { background: var(--warn-bg); border-color: #d6b34b; color: var(--warn-ink); }
.console-connection-indicator[data-state="connecting"] .console-connection-dot { background: #b45309; animation: console-connecting-pulse 1.2s ease-in-out infinite; }
.console-connection-indicator[data-state="disconnected"] { background: #fff0f0; border-color: #e7a0a0; color: #991b1b; }
.console-connection-indicator[data-state="disconnected"] .console-connection-dot { background: #b91c1c; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .console-connection-indicator[data-state="connected"] { background: #12301a; border-color: #277640; color: #a8e2b0; }
  :root:where(:not([data-theme="light"])) .console-connection-indicator[data-state="connecting"] { background: #3a2f10; border-color: #80651d; color: #f3d98b; }
  :root:where(:not([data-theme="light"])) .console-connection-indicator[data-state="disconnected"] { background: #351719; border-color: #8c383d; color: #ffb7b7; }
}
:root[data-theme="dark"] .console-connection-indicator[data-state="connected"] { background: #12301a; border-color: #277640; color: #a8e2b0; }
:root[data-theme="dark"] .console-connection-indicator[data-state="connecting"] { background: #3a2f10; border-color: #80651d; color: #f3d98b; }
:root[data-theme="dark"] .console-connection-indicator[data-state="disconnected"] { background: #351719; border-color: #8c383d; color: #ffb7b7; }
@keyframes console-connecting-pulse { 50% { opacity: 0.35; } }
.resource-summary-note { margin: 4px 0 12px; max-width: 1000px; }
.resource-summary-warning { margin-top: 12px; color: var(--warn-ink); background: var(--warn-bg); padding: 9px 12px; border-radius: 8px; }
.console-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.console-bar .status-text { color: var(--ink-2); margin-right: auto; }
.console-stage {
  background: #000; border-radius: 10px; overflow: hidden; height: min(70vh, 720px);
  display: flex; align-items: center; justify-content: center;
}
.console-stage > div { width: 100%; height: 100%; }
.console-power-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.console-placeholder {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 380px;
  padding: 24px;
  color: var(--ink-2);
  background: #000;
  text-align: center;
}
@media (max-width: 640px) {
  .console-power-actions { width: 100%; }
  .console-bar .status-text { flex-basis: 100%; }
}


/* ---------- login ---------- */
.login { max-width: 380px; margin: 12vh auto 0; padding: 0 20px; }
.login h1 { margin-bottom: 6px; }
.login .sub { color: var(--ink-2); margin-bottom: 24px; }
.login form { display: grid; gap: 14px; }
.login label { display: grid; gap: 6px; font-weight: 550; }
input {
  font: inherit; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--axis);
  background: var(--surface); color: var(--ink);
}
input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.error { color: var(--critical); min-height: 1.4em; }
.demo-note { margin-top: 28px; padding: 12px 14px; border-radius: 8px; background: var(--muted-fill); font-size: 0.85rem; color: var(--ink-2); }
.demo-note code { color: var(--ink); }

/* ---------- toast + dialog ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 20; }
.toast {
  background: var(--ink); color: var(--surface); padding: 10px 14px; border-radius: 8px; max-width: 360px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.toast.bad { background: var(--critical); color: #fff; }
dialog { border: 1px solid var(--axis); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 22px; max-width: 420px; }
dialog::backdrop { background: rgba(0, 0, 0, 0.4); }
dialog p { margin: 8px 0 20px; color: var(--ink-2); }
dialog .buttons { display: flex; justify-content: flex-end; gap: 8px; }

.result-ok { color: var(--good-text); }
.result-bad { color: var(--critical); }
.result-muted { color: var(--ink-2); }

@media (max-width: 860px) {
  .charts { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .summary > div { border-left: 0; border-top: 1px solid var(--line); }
  .summary > div:nth-child(-n + 2) { border-top: 0; }
  .summary > div:nth-child(even) { border-left: 1px solid var(--line); }
  .summary > div:last-child:nth-child(odd) { grid-column: span 2; }
  .specs > div { border-left: 0; border-top: 1px solid var(--line); }
  .specs > div:first-child { border-top: 0; }
  th.hide-sm, td.hide-sm { display: none; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { display: flex; flex-wrap: wrap; }
  .nav a { padding: 6px 9px; font-size: 0.9rem; }
  .side-foot { display: none; }
  .gauges { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 8px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .whoami { display: none; }
  .topbar button { white-space: nowrap; }
  main { padding: 20px 14px 56px; }
  .actions { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------- tabs, gauges, facts ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--ink-2); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.gauge { background: var(--surface); border: 1px solid var(--ring); border-radius: 10px; padding: 18px 16px; text-align: center; }
.gauge-ring {
  --pct: 0%; --fill: var(--series-1);
  width: 124px; height: 124px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--fill) var(--pct), var(--muted-fill) 0);
}
.gauge-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--surface); }
.gauge-val { position: relative; font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.gauge.warm .gauge-ring { --fill: #c98a00; }
.gauge.hot .gauge-ring { --fill: var(--critical); }
.gauge-label { font-weight: 600; }
.gauge-sub { color: var(--ink-2); font-size: 0.85rem; margin-top: 2px; overflow-wrap: anywhere; }

.panel.pad { padding: 16px 18px; margin-bottom: 20px; }
.panel.narrow { max-width: 460px; }
.panel.pad h2 { margin-bottom: 12px; }
.facts { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.stack { display: grid; gap: 14px; }
.stack label { display: grid; gap: 6px; font-weight: 550; }
.form-msg { min-height: 1.4em; color: var(--good-text); }
.form-msg.bad { color: var(--critical); }
.support { color: var(--ink-3); font-size: 0.85rem; margin-top: 14px; }
.login-brand { font-weight: 700; color: var(--brand-primary, var(--ink-2)); margin-bottom: 18px; }
button.quiet-danger { color: var(--critical); border-color: var(--critical); background: transparent; }
button.quiet-danger:hover:not(:disabled) { background: var(--critical); color: #fff; }
.chart-card + .chart-card.na, .charts + .chart-card.na { margin-top: 16px; }

/* ---------- staff screens, dropdowns, dialogs ---------- */
select {
  font: inherit; padding: 8px 32px 8px 11px; border-radius: 8px; border: 1px solid var(--axis);
  background: var(--surface); color: var(--ink); max-width: 100%;
}
select:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.range-wrap { margin-left: auto; }
.range-pick { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 550; }
.toolbar { display: flex; gap: 10px; margin: 0 0 14px; }
.summary.four { grid-template-columns: repeat(4, 1fr); }
.figure.good { color: var(--good-text); }
.figure.bad { color: var(--critical); }
.muted { color: var(--ink-2); }
.small { font-size: 0.8rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.wrapcell { max-width: 360px; overflow-wrap: anywhere; }
.rowactions { text-align: right; white-space: nowrap; }
.rowactions button { padding: 5px 10px; font-size: 0.85rem; margin-left: 6px; }
.banner.ok { background: #e3f4e3; color: #0b4d0b; }
.hint { color: var(--ink-3); font-size: 0.85rem; font-weight: 400; }
dialog.wide { width: min(560px, calc(100vw - 32px)); max-width: none; }
dialog form.stack { margin: 0; }
dialog .stack label { display: grid; gap: 6px; font-weight: 550; }
dialog input[type="text"], dialog input[type="email"] { width: 100%; }
.copyrow { display: flex; gap: 8px; margin-bottom: 16px; }
.copyrow input { flex: 1; min-width: 0; }
.picklist { display: grid; gap: 8px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.pickrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pickrow select { flex: none; }
dialog h2 { margin-bottom: 10px; }
dialog .stack > p { margin: 0; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .banner.ok { background: #12301a; color: #a8e2b0; }
}
@media (max-width: 860px) {
  .summary.four { grid-template-columns: repeat(2, 1fr); }
  .range-wrap { margin-left: 0; }
  .rowactions { white-space: normal; }
}

/* ---- v4: audit page, auth screens, branding ---- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.filters label { display: grid; gap: 4px; font-size: 13px; font-weight: 550; min-width: 150px; }
.filters .buttons { display: flex; gap: 8px; align-items: center; margin: 0; }
.filters [hidden] { display: none; }
.panel.scroll { overflow-x: auto; }
.panel.scroll table { min-width: 960px; }
.pager { display: flex; gap: 8px; align-items: center; margin: 12px 0 24px; }
.pager .muted { margin-right: auto; }
a.button { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 550; }
a.button:hover { background: var(--muted-fill); }
.login .forgot { margin: 4px 0 0; font-size: 14px; }
.login a.primary-link { display: inline-block; margin-top: 12px; font-weight: 600; }
.brand-logo { max-height: 36px; max-width: 70px; width: auto; height: auto; display: block; flex: none; margin: 0; }
.login-logo { max-height: 62px; max-width: 170px; width: auto; height: auto; display: block; margin-bottom: 8px; }
.banner.info { background: color-mix(in srgb, var(--accent) 11%, var(--surface)); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 450; }
label.check input { width: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.small { font-size: 12px; }
dialog p { max-width: 46ch; }
.panel.scroll th, .panel.scroll td { white-space: nowrap; }
.panel.scroll td.wrapcell { white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.panel.scroll table { min-width: 1100px; }

/* Multi-VM company assignment: comfortable, keyboard-accessible checkbox rows. */
.multi-vm-list {
  display: grid;
  gap: 0;
  max-height: min(52vh, 440px);
  overflow: auto;
  border: 1px solid var(--line, #d7dce2);
  border-radius: 0.65rem;
}
.multi-vm-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line, #d7dce2);
  cursor: pointer;
}
.multi-vm-row:last-child { border-bottom: 0; }
.multi-vm-row > input { flex: 0 0 auto; margin-top: 0.25rem; }
.multi-vm-row > span { display: flex; min-width: 0; flex-direction: column; gap: 0.15rem; }
.multi-vm-row:hover { background: var(--panel-hover, rgba(127, 127, 127, 0.08)); }
