@font-face {
  font-family: "Fira Sans";
  src: url("/static/fonts/fira-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/static/fonts/fira-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Fira Sans";
  src: url("/static/fonts/fira-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fira Code";
  src: url("/static/fonts/fira-code-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f3f6f6;
  --elev: #fff;
  --elev-2: #e7efef;
  --line: #d5e0e1;
  --text: #1a2d34;
  --muted: #50666e;
  --faint: #586f78;
  --accent: #17666b;
  --accent-ink: #fff;
  --focus: #176e73;
  --up: #28765b;
  --up-bg: #e9f4ee;
  --down: #b83c48;
  --down-bg: #fbeef0;
  --warn: #8a6119;
  --warn-bg: #faf2df;
  --shadow: 0 16px 60px #192d4433;
  --sans: "Fira Sans", "Segoe UI", sans-serif;
  --mono: "Fira Code", ui-monospace, monospace;
  --radius: 6px;
  --rail: #192e37;
  --rail-text: #f0f7f6;
  --rail-muted: #afc4cc;
  --rail-accent: #9bddd1;
}

:root {
  --action-hover: #104f54;
  --control-border: #afc3c7;
  --danger-border: #e8c7cc;
  --warning-border: #ead8ad;
  --rail-border: #344b53;
  --rail-hover: #263f49;
  --rail-selected: #2b4a53;
  --row-hover: #eef5f4;
  --subtle: #f1f6f6;
  --chart-up: #579779;
  --chart-down: #c9616b;
  --chart-empty: #c6d3e1;
  --overlay: #152c4580;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121c22;
  --elev: #1a282f;
  --elev-2: #24363d;
  --line: #354a53;
  --text: #f1f6f5;
  --muted: #b2c4c9;
  --faint: #9cb2bb;
  --accent: #9bddd1;
  --accent-ink: #132e30;
  --focus: #9bddd1;
  --up: #91d2b2;
  --up-bg: #1b3d37;
  --down: #f6a1af;
  --down-bg: #442b3d;
  --warn: #edcb8f;
  --warn-bg: #3c3540;
  --shadow: 0 18px 64px #0005;
  --rail: #101a20;
  --action-hover: #b9e8df;
  --control-border: #58747e;
  --danger-border: #885366;
  --warning-border: #887454;
  --rail-hover: #1e333a;
  --rail-selected: #26434a;
  --row-hover: #22343b;
  --subtle: #18252b;
  --chart-up: #81bb9b;
  --chart-down: #e18e9d;
  --chart-empty: #4f6680;
  --overlay: #030b19aa;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button {
  border: 0;
}
svg {
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.25;
}
h1 {
  font-size: 32px;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
h3 {
  font-size: 15px;
  margin-bottom: 10px;
}
p {
  margin-bottom: 16px;
}
code,
pre {
  font-family: var(--mono);
}
code {
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
[inert] {
  pointer-events: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -200px;
  padding: 12px 18px;
  z-index: 30;
  background: var(--text);
  color: var(--bg);
  border-radius: 4px;
}
.skip:focus {
  top: 10px;
}
.btn,
.ghost,
button.danger,
a.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  max-width: 100%;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  white-space: normal;
}
.btn {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}
.btn:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
  text-decoration: none;
}
.ghost {
  color: var(--text);
  background: var(--elev);
  border-color: var(--line);
}
.ghost:hover {
  background: var(--elev-2);
  border-color: var(--control-border);
  text-decoration: none;
}
button.danger,
a.danger {
  color: var(--down);
  background: var(--elev);
  border-color: var(--danger-border);
}
button.danger:hover,
a.danger:hover {
  background: var(--down-bg);
}
.btn .nav-icon,
.ghost .nav-icon {
  width: 16px;
  height: 16px;
}
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.text-link,
.linkish {
  color: var(--accent);
  background: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.meta,
.hint,
.lede,
.sub {
  color: var(--muted);
}
.meta,
.hint {
  font-size: 12px;
  line-height: 1.6;
}
.hint {
  margin: 8px 0 16px;
}
.lede {
  font-size: 14px;
  max-width: 72ch;
  margin: 8px 0 0;
}
.sub {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: none;
}
.page-head .eyebrow {
  display: none;
}
.error,
.form-error {
  color: var(--down);
  overflow-wrap: anywhere;
}
.form-error,
.toast {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.form-error {
  border: 1px solid var(--danger-border);
  background: var(--down-bg);
}
.toast {
  color: var(--up);
  background: var(--up-bg);
  border-left: 3px solid var(--up);
}
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  margin: 0 0 20px;
  border-left: 3px solid var(--warn);
  background: var(--warn-bg);
  color: var(--text);
  border-radius: 0 5px 5px 0;
  font-size: 13px;
}
.banner a {
  white-space: nowrap;
}
.banner.stale {
  background: var(--warn-bg);
}
.empty {
  padding: 36px 24px;
  background: var(--elev);
  color: var(--muted);
  border: 1px dashed var(--control-border);
  border-radius: 6px;
}
.empty h2 {
  color: var(--text);
}

/* The rail is the only large dark surface. Workspace content has daylight. */
.app {
  min-height: 100svh;
  --feature-color: var(--accent);
  --feature-surface: var(--elev-2);
}
.console-sidebar {
  --focus: var(--rail-accent);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: 232px;
  padding: 24px 12px 16px;
  background: var(--rail);
  color: var(--rail-text);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--rail-border) transparent;
}
.sidebar-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 24px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand-emblem {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--rail-selected);
}
.logo {
  display: block;
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.brand-emblem .logo {
  color: var(--rail-accent);
}
.brand-copy {
  min-width: 0;
}
.brand-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.brand-copy small {
  display: block;
  font-size: 10px;
  color: var(--rail-muted);
  margin-top: 4px;
}
.sidebar-scope {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 8px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--rail-border);
  border-bottom: 1px solid var(--rail-border);
}
.scope-indicator {
  width: 7px;
  height: 7px;
  border: 1px solid var(--rail-muted);
  border-radius: 2px;
  flex-shrink: 0;
}
.sidebar-scope strong,
.sidebar-scope small {
  display: block;
}
.sidebar-scope strong {
  font-size: 12px;
  font-weight: 500;
}
.sidebar-scope small {
  font-size: 10px;
  color: var(--rail-muted);
  margin-top: 4px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: min-content;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 4px;
  color: var(--rail-muted);
  text-decoration: none;
  font-size: 13px;
}
.nav a:hover {
  color: var(--rail-text);
  background: var(--rail-hover);
}
.nav a[aria-current="page"] {
  background: var(--rail-selected);
  color: var(--rail-text);
  font-weight: 500;
}
.nav a[aria-current="page"] .nav-icon {
  color: var(--rail-accent);
}
.nav-section {
  display: block;
  padding: 15px 12px 7px;
  font-size: 11px;
  color: var(--rail-muted);
}
.nav-section:first-child {
  padding-top: 0;
}
.nav-label {
  flex: 1;
  min-width: 0;
}
.nav-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.badge {
  display: inline-flex;
  justify-content: center;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--down);
  background: var(--down-bg);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--rail-muted);
  text-align: left;
  font-size: 12px;
  background: none;
  border-radius: 4px;
}
.nav-group-toggle:hover {
  color: var(--rail-text);
  background: var(--rail-hover);
}
.nav-group-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(-45deg);
}
.nav-group-toggle[aria-expanded="true"]::after {
  transform: rotate(45deg);
}
.nav-checks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 6px 20px;
  padding-left: 8px;
  border-left: 1px solid var(--rail-border);
}
.nav-checks a {
  font-size: 12px;
  min-height: 36px;
}
.public-status-link {
  margin-top: 14px;
}
.console-sidebar .ghost {
  color: var(--rail-text);
  border-color: var(--rail-border);
  background: var(--rail-hover);
}
.sidebar-account {
  margin-top: 24px;
  padding: 16px 10px 0;
  border-top: 1px solid var(--rail-border);
}
.account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}
.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--rail-hover);
  color: var(--rail-text);
  font-size: 11px;
}
.account-copy {
  min-width: 0;
}
.account-copy strong,
.account-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-copy strong {
  font-size: 12px;
  font-weight: 500;
}
.account-copy small {
  color: var(--rail-muted);
  font-size: 10px;
  margin-top: 3px;
}
.sidebar-account > .ghost {
  width: 100%;
  min-height: 34px;
  background: transparent;
  border-color: var(--rail-border);
  color: var(--rail-text);
  font-size: 12px;
}
.nav-toggle,
.mobile-signout {
  display: none;
}
.console-workspace {
  margin-left: 232px;
  min-width: 0;
}
.workspace-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 12px 34px;
  background: var(--elev);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 12px;
}
.breadcrumb a {
  max-width: 22ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb-divider {
  color: var(--faint);
}
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.refresh-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.refresh-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--up);
}
.refresh-status.interrupted {
  color: var(--warn);
}
.refresh-status.interrupted i {
  background: var(--warn);
}
.wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 34px 34px 64px;
  min-width: 0;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-head > div {
  min-width: 0;
}
.page-head > .btn {
  flex-shrink: 0;
  margin-top: 4px;
}
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.section-heading {
  margin: 26px 0 14px;
}
.section-heading h2 {
  margin: 0;
  font-size: 17px;
}

/* Readings are grouped by job: summary strip, monitor rows, then history. */
.operations-health {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  margin: 0 0 22px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-left: 4px solid var(--health-color);
  border-radius: 6px;
  --health-color: var(--up);
}
.operations-health.down {
  --health-color: var(--down);
}
.operations-health.pending {
  --health-color: var(--warn);
}
.health-emblem {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 36px;
  color: var(--health-color);
}
.health-emblem .nav-icon {
  width: 25px;
  height: 25px;
}
.operations-health > div {
  flex: 1;
  min-width: 0;
}
.operations-health strong {
  font-size: 19px;
  font-weight: 500;
}
.operations-health p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.operations-health .eyebrow {
  display: none;
}
.operations-health > .ghost {
  border: 0;
  color: var(--accent);
  padding-right: 0;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0 0 26px;
  overflow: hidden;
}
.kpi {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
}
.kpi:last-child {
  border-right: 0;
}
.kpi > span {
  color: var(--muted);
  font-size: 12px;
}
.kpi strong {
  display: block;
  font-size: 31px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.04em;
  margin: 7px 0 2px;
  font-variant-numeric: tabular-nums;
}
.kpi small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.kpi.ok strong {
  color: var(--up);
}
.kpi.danger strong {
  color: var(--down);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 25px 0 16px;
}
.toolbar > .field {
  flex: 0 1 300px;
  margin: 0;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.filter-tabs .ghost {
  border-color: transparent;
  background: none;
  font-size: 12px;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--muted);
}
.filter-tabs .ghost[aria-pressed="true"] {
  background: var(--elev);
  color: var(--text);
  border-color: var(--control-border);
}
.filter-count {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.monitor-list-tools {
  display: flex;
  align-items: center;
  gap: 15px;
}
.monitor-list-tools .field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
}
.monitor-list-tools .field > span {
  font-size: 11px;
  margin: 0;
}
.monitor-list-tools select {
  width: auto;
  min-height: 34px;
  padding: 4px 28px 4px 10px;
  font-size: 12px;
}
.list {
  overflow: hidden;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.monitor {
  display: grid;
  grid-template-columns:
    82px minmax(160px, 1.5fr) minmax(100px, 1fr)
    128px 100px 134px;
  gap: 14px;
  align-items: center;
  min-height: 83px;
  padding: 15px 20px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.monitor:last-child {
  border-bottom: 0;
}
.monitor:not(.monitor-head):hover {
  background: var(--row-hover);
  text-decoration: none;
}
.monitor-head {
  min-height: 40px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 10px;
}
.monitor > span {
  min-width: 0;
}
.monitor .name {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.monitor .sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.monitor .name strong {
  display: block;
  font-weight: 500;
}
.monitor .name .meta,
.last-check {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.where {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.latency,
.uptime {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.uptime .meta {
  font-size: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1.4;
  background: var(--elev-2);
  color: var(--muted);
}
.pill.up,
.pill.ok {
  color: var(--up);
  background: var(--up-bg);
}
.pill.down {
  color: var(--down);
  background: var(--down-bg);
}
.pill.pending,
.pill.degraded {
  color: var(--warn);
  background: var(--warn-bg);
}
.pill.paused,
.pill.unknown {
  color: var(--muted);
  background: var(--elev-2);
}
.mark {
  display: inline-block;
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.mark.pending,
.mark.paused {
  height: 2px;
  border-radius: 0;
}
.ribbon {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
}
.cell {
  flex: 1;
  min-width: 2px;
  height: 21px;
  border-radius: 2px;
  background: var(--line);
}
.cell.up {
  background: var(--chart-up);
}
.cell.down {
  background: var(--chart-down);
}
.cell.pending,
.cell.unknown {
  background: var(--chart-empty);
}
.spark {
  display: block;
  width: 100%;
  height: 55px;
}
.spark polyline {
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.overview-insights {
  margin-top: 30px;
}
.overview-insights > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.overview-insights > summary::before {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
}
.overview-insights[open] > summary::before {
  content: "−";
}
.overview-insights > summary::-webkit-details-marker {
  display: none;
}
.overview-insights > summary span {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.overview-pulse {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
  gap: 20px;
  margin: 12px 0 22px;
}
.signal-panel {
  min-width: 0;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}
.signal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.signal-heading h2 {
  font-size: 16px;
  margin: 0;
}
.signal-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.activity-totals {
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.activity-totals strong {
  font-size: 24px;
  font-weight: 500;
}
.activity-totals span {
  font-size: 11px;
  color: var(--muted);
}
.activity-figure {
  margin: 0;
}
.activity-figure svg {
  display: block;
  width: 100%;
  height: 115px;
}
.activity-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.activity-up {
  fill: var(--chart-up);
}
.activity-down {
  fill: var(--down);
}
.activity-unknown {
  fill: var(--chart-empty);
}
.check-activity[data-stale="true"] rect {
  fill: var(--faint);
}
.activity-axis,
.activity-footer,
.activity-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}
.activity-footer {
  margin-top: 16px;
  flex-wrap: wrap;
}
.activity-legend {
  justify-content: flex-start;
}
.activity-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--up);
}
.legend-dot.down {
  background: var(--down);
}
.legend-dot.unknown {
  background: var(--chart-empty);
}
.attention-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.attention-list li + li {
  border-top: 1px solid var(--line);
}
.attention-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: inherit;
  text-decoration: none;
}
.attention-list a > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.attention-list strong {
  font-size: 13px;
  font-weight: 500;
}
.attention-list small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.queue-count {
  font-size: 11px;
  color: var(--muted);
}
.queue-arrow {
  color: var(--accent);
}
.queue-empty {
  padding: 20px 0;
  color: var(--muted);
}
.queue-empty strong {
  color: var(--text);
  display: block;
}
.queue-empty p {
  font-size: 12px;
  margin: 5px 0;
}
.queue-footer {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.fleet-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--elev);
  margin-bottom: 20px;
}
.fleet-summary > div {
  min-width: 0;
}
.fleet-summary > div > strong,
.fleet-summary > div > .meta {
  display: block;
}
.fleet-summary > div > strong {
  margin: 6px 0;
  font-size: 15px;
  font-weight: 500;
}
.fleet-summary h2 {
  margin: 0 0 6px;
  font-size: 16px;
}
.fleet-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.fleet-summary .stats {
  display: flex;
  gap: 24px;
}
.fleet-summary .stats strong {
  display: block;
  font-size: 21px;
  font-weight: 500;
}
.fleet-summary .stats span {
  color: var(--muted);
  font-size: 11px;
}
.workspace-tools,
.platform-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin: 20px 0;
}
.workspace-tools a,
.platform-shortcuts a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}
.workspace-tools a:last-child,
.platform-shortcuts a:last-child {
  border-right: 0;
}
.workspace-tools a:hover,
.platform-shortcuts a:hover {
  background: var(--elev-2);
}
.workspace-tools a > span,
.platform-shortcuts a > span {
  flex: 1;
  min-width: 0;
}
.workspace-tools strong,
.platform-shortcuts strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.workspace-tools small,
.platform-shortcuts small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.workspace-tools .nav-icon,
.platform-shortcuts .nav-icon {
  color: var(--accent);
}
.workspace-tools a > .nav-icon:last-child,
.platform-shortcuts a > .nav-icon:last-child {
  display: none;
}

/* Settings, inventory and reporting share controls, not identical tile layouts. */
.panel {
  min-width: 0;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  margin: 22px 0;
}
.panel .panel {
  background: var(--subtle);
  box-shadow: none;
}
.panel-heading {
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  font-size: 17px;
  margin: 0;
}
.panel-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 0;
  max-width: 70ch;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  gap: 18px;
}
.card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--elev);
}
.card h2 {
  margin-bottom: 10px;
  font-size: 17px;
}
.card:hover {
  border-color: var(--control-border);
}
.card .meta {
  overflow-wrap: anywhere;
}
.card-link {
  display: block;
  margin-top: 18px;
  font-size: 12px;
  color: var(--accent);
}
.feature-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
.feature-emblem {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 42px;
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}
.feature-emblem .nav-icon {
  width: 24px;
  height: 24px;
}
.feature-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 220px;
  justify-content: center;
}
.feature-empty h2,
.feature-empty p {
  margin: 0;
}
.feature-empty p {
  max-width: 65ch;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 18px;
  min-width: 0;
}
.field > span:first-child,
.field > label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  background: var(--elev);
  border: 1px solid var(--control-border);
  border-radius: 4px;
  color: var(--text);
  line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
  color: var(--faint);
  opacity: 1;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--muted);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
textarea {
  min-height: 108px;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 2px 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  margin: 12px 0;
  min-width: 0;
}
.check input {
  margin-top: 3px;
}
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.split .field {
  min-width: 0;
}
fieldset {
  min-width: 0;
  margin: 12px 0 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
legend {
  padding: 0 7px;
  font-size: 13px;
  font-weight: 500;
}
.locations {
  max-width: 100%;
}
.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}
.loc-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
  min-width: 0;
}
.loc-choice strong,
.loc-choice small {
  display: block;
}
.loc-choice small {
  font-size: 11px;
  color: var(--muted);
}
.loc-choice span {
  min-width: 0;
}
.loc-row,
.loc-head {
  display: grid;
  grid-template-columns: minmax(130px, 1.4fr) minmax(100px, 1fr) 100px 90px;
  gap: 16px;
  padding: 13px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.loc-head {
  font-size: 11px;
  color: var(--muted);
}
.loc-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.loc-manage {
  padding: 18px 0;
}
.setup-hint,
.execution-settings {
  padding: 15px 17px;
  margin: 16px 0;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--subtle);
}
.setup-hint {
  background: var(--warn-bg);
  border-color: var(--warning-border);
}
.setup-hint p {
  font-size: 12px;
  margin: 7px 0 12px;
}
.execution-settings .setup-hint {
  margin-bottom: 0;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
  min-width: 0;
  scrollbar-width: thin;
}
.panel.table-wrap {
  padding: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
caption {
  text-align: left;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 500;
}
th {
  padding: 12px 14px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--row-hover);
}
td a {
  font-weight: 500;
}
td .danger,
td .ghost {
  min-height: 32px;
  padding: 4px 9px;
  font-size: 11px;
}
.user-form {
  max-width: 660px;
}
.platform-page {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.platform-page > .page-head,
.platform-page > .kpis,
.platform-page > .panel,
.platform-shortcuts {
  margin: 0;
}
.platform-workspace-grid {
  display: grid;
  gap: 24px;
  min-width: 0;
  align-items: start;
}
.platform-workspace-grid > .panel {
  margin: 0;
}
.platform-configuration {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
#workspace-form {
  grid-column: 1;
  grid-row: 1 / span 2;
}
#settings-form {
  grid-column: 2;
  grid-row: 1;
}
.platform-configuration > section {
  grid-column: 2;
  grid-row: 2;
}
.platform-configuration > .panel {
  margin: 0;
}
.platform-workspaces table {
  min-width: 540px;
}
.platform-workspaces td {
  vertical-align: middle;
}
.platform-audit .table-wrap {
  max-height: 480px;
}
.platform-audit th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.workspace-plan,
.audit-result {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
}
.audit-result.tone-up {
  color: var(--up);
  background: var(--up-bg);
  border-color: transparent;
}
.audit-result.tone-down {
  color: var(--down);
  background: var(--down-bg);
  border-color: transparent;
}
.audit-result.tone-warn {
  color: var(--warn);
  background: var(--warn-bg);
  border-color: transparent;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.resource-card {
  min-width: 0;
  padding: 22px;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.resource-card > strong {
  display: block;
  font-size: 34px;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 10px 0 16px;
  font-variant-numeric: tabular-nums;
}
.resource-card h2 {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.resource-card.resource-hot {
  border-color: var(--danger-border);
}
.meter-row {
  display: grid;
  grid-template-columns: 55px 1fr 44px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  font-size: 11px;
}
.meter {
  height: 5px;
  background: var(--line);
  overflow: hidden;
  border-radius: 3px;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.resource-hot .meter > span {
  background: var(--warn);
}
.system-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.system-facts dt {
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 6px;
}
.system-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.history-card {
  min-width: 0;
  padding: 16px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.history-card h3 {
  font-size: 13px;
  color: var(--muted);
}
.resource-chart {
  display: block;
  width: 100%;
  height: 112px;
  border-bottom: 1px solid var(--control-border);
  background: repeating-linear-gradient(
    to top,
    transparent 0 27px,
    var(--line) 27px 28px
  );
}
.resource-chart polyline {
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  fill: none;
}
.resource-chart circle {
  fill: var(--accent);
}
.smart-drive {
  border-top: 1px solid var(--line);
}
.smart-drive summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
}
.smart-drive summary::-webkit-details-marker {
  display: none;
}
.smart-drive summary::before {
  content: "+";
  color: var(--accent);
  font-size: 18px;
}
.smart-drive[open] summary::before {
  content: "−";
}
.smart-drive-name {
  flex: 1;
  min-width: 0;
}
.smart-drive-name strong,
.smart-drive-name small {
  display: block;
  overflow-wrap: anywhere;
}
.smart-drive-name strong {
  font-size: 14px;
  font-weight: 500;
}
.smart-drive-name small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.smart-temperature {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.smart-drive-body {
  padding-bottom: 22px;
}
.smart-drive-body .table-wrap {
  max-height: 360px;
}
.smart-drive-body td {
  white-space: nowrap;
}
.smart-drive-body .system-facts {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.raid-controller {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.raid-history {
  max-height: 240px;
  overflow: auto;
  padding-left: 20px;
  font-size: 12px;
  color: var(--muted);
}
.data-warning {
  color: var(--warn);
}
.status-ok {
  color: var(--up);
}
.status-bad {
  color: var(--down);
}
.command-block {
  margin: 16px 0;
  padding: 16px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.8 var(--mono);
}
.software-updates h3 {
  margin-top: 24px;
}
.update-check {
  margin: 20px 0;
}
.update-identity {
  margin-top: 22px;
  color: var(--muted);
}
.update-identity summary {
  padding: 12px 0;
}
.update-identity form {
  padding-top: 16px;
  max-width: 480px;
}
.public-agent-form {
  display: grid;
  grid-template-columns:
    minmax(140px, 1fr) minmax(180px, 1.2fr) minmax(160px, 1fr)
    auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.public-agent-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.public-agent-form .field {
  margin: 0;
}
.public-agent-switch {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.sharing-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 4px 12px;
}
.sharing-group {
  min-inline-size: 0;
  margin: 20px 0;
}
.sharing-group .check {
  align-items: start;
  margin: 0;
  padding: 5px 0;
}
.page-channel-existing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.public-page-settings h3 {
  margin-top: 24px;
}
.publication-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.publication-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.publication-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.publication-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 11px 0;
  overflow-wrap: anywhere;
}
.publication-list li:last-child {
  padding-bottom: 0;
}
.publication-list small {
  display: block;
}
.publication-list .ghost {
  font-size: 12px;
  min-height: 34px;
}
.publication-visibility-form {
  padding-top: 12px;
  margin: 0 0 14px;
  border-top: 1px solid var(--line);
}
.publication-workspaces {
  padding-left: 20px;
  overflow-wrap: anywhere;
}
@media (max-width: 850px) {
  .publication-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* Entry is an application screen: identity on the left, a focused form on the right. */
.auth-entry {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(24px, 6vw, 88px);
  background: var(--bg);
  border-top: 5px solid var(--rail);
}
.entry-header,
.entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1120px;
  margin: auto;
}
.entry-header {
  min-height: 100px;
  border-bottom: 1px solid var(--line);
}
.entry-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.entry-brand .logo {
  color: var(--text);
  width: 29px;
  height: 32px;
}
.entry-caption {
  font-size: 12px;
  color: var(--muted);
}
.entry-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 390px);
  align-items: center;
  gap: 96px;
  flex: 1;
  width: 100%;
  max-width: 940px;
  margin: auto;
  padding: 64px 0 80px;
}
.entry-intro {
  min-width: 0;
  padding: 0 0 30px;
  border-bottom: 0;
  align-self: center;
}
.entry-kicker {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.entry-intro h1 {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0;
  max-width: 12ch;
}
.entry-description {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 34ch;
}
.entry-form {
  width: 100%;
  min-width: 0;
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px;
}
.entry-form h2 {
  font-size: 17px;
  margin: 0 0 8px;
}
.entry-form-lead {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 26px;
}
.entry-form .field {
  margin-bottom: 20px;
}
.entry-form input {
  min-height: 46px;
  background: var(--subtle);
}
.passline {
  position: relative;
  display: flex;
  align-items: center;
}
.passline input {
  padding-right: 66px !important;
}
.passline .ghost {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: var(--accent);
}
.entry-form > .btn {
  width: 100%;
  min-height: 45px;
  margin-top: 4px;
}
.entry-form .error {
  padding: 12px;
  border-left: 3px solid var(--down);
  background: var(--down-bg);
  font-size: 12px;
}
.entry-form > p {
  overflow-wrap: anywhere;
}
.entry-recovery {
  margin: 22px 0 0;
  font-size: 12px;
}
.entry-recovery a {
  color: var(--muted);
}
.entry-footer {
  min-height: 74px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.entry-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  padding: 14px 0;
}
.entry-footer .nav-icon {
  width: 13px;
  height: 13px;
}
.auth {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  background: var(--bg);
  border-top: 5px solid var(--rail);
}
.auth-card {
  min-width: 0;
  width: min(100%, 460px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--elev);
}
.auth-card h1 {
  font-size: 29px;
}
.auth-card .lede {
  font-size: 14px;
  margin: 14px 0 26px;
}
.auth-card > .btn {
  width: 100%;
  margin-top: 8px;
}
.recovery-brand {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 30px;
}
.entry-return {
  display: block;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.recovery-shell {
  width: min(100%, 900px);
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  gap: 90px;
  align-items: center;
}
.recovery-shell > .recovery-context {
  min-width: 0;
}
.recovery-context .entry-brand {
  margin-bottom: 24px;
}
.recovery-context p {
  max-width: 32ch;
  color: var(--muted);
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  background: var(--overlay);
  padding: 40px 24px;
}
.dialog {
  min-width: 0;
  width: min(100%, 650px);
  max-height: calc(100svh - 80px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--elev);
  border: 1px solid var(--control-border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.dialog h2 {
  font-size: 23px;
  margin-bottom: 8px;
}
.dialog > .hint {
  margin-bottom: 24px;
}
.dialog > .actions {
  position: sticky;
  bottom: -28px;
  margin: 24px -28px -28px;
  padding: 18px 28px;
  background: var(--elev);
  border-top: 1px solid var(--line);
}
.dialog > .row-between {
  align-items: flex-start;
}
.dialog .split {
  gap: 16px;
}

/* A theme switch changes only presentation, preserving active fields and focus. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 38px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--control-border);
  border-radius: 7px;
  background: var(--elev);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
}
.theme-toggle:hover {
  background: var(--elev-2);
}
.theme-toggle .nav-icon {
  width: 16px;
  height: 16px;
}
.theme-toggle .theme-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .theme-sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .theme-moon {
  display: none;
}
.standalone-theme {
  position: fixed;
  right: 24px;
  top: 20px;
  z-index: 6;
}
.entry-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.entry-header {
  border-bottom: 0;
}
.entry-form {
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 5px 24px #172a4108;
}
.entry-intro h1 {
  font-size: 48px;
  letter-spacing: -0.05em;
}
.console-sidebar {
  border-right: 1px solid var(--rail-border);
}
.console-sidebar .nav a[aria-current="page"] {
  box-shadow: inset 2px 0 var(--rail-accent);
}
.console-sidebar .nav a:hover,
.nav-group-toggle:hover {
  color: var(--rail-text);
}
:root[data-theme="dark"] .btn {
  color: var(--accent-ink);
}
.workspace-header {
  background: var(--elev);
  border-bottom-color: var(--line);
}
.workspace-header .breadcrumb {
  font-size: 12px;
}
.overview-heading {
  margin-bottom: 22px;
}
.overview-heading .lede {
  max-width: 60ch;
  font-size: 13px;
}
.overview-page > .operations-health {
  padding: 14px 16px;
  margin-bottom: 16px;
  border-left-width: 3px;
  border-radius: 9px;
}
.overview-page > .operations-health strong {
  font-size: 16px;
}
.overview-page > .operations-health .health-emblem {
  flex-basis: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--health-color) 11%, var(--elev));
}
.overview-page > .operations-health .health-emblem .nav-icon {
  width: 20px;
  height: 20px;
}
.overview-page > .kpis {
  border-radius: 10px;
  margin-bottom: 26px;
}
.overview-page > .kpis .kpi {
  padding: 14px 18px 16px;
  min-height: 0;
  border-color: var(--line);
}
.overview-page > .kpis .kpi strong {
  font-size: 32px;
  margin: 3px 0;
}
.overview-page > .kpis .kpi small {
  font-size: 10px;
}
.overview-page .toolbar {
  gap: 10px 16px;
  margin-top: 0;
  padding: 8px;
  background: var(--elev-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.overview-page .list {
  border-radius: 9px;
}
.overview-page .monitor-head {
  padding-right: 64px;
}
.monitor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.monitor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  border-bottom: 1px solid var(--line);
}
.monitor-shell:last-child {
  border-bottom: 0;
}
.monitor-shell .monitor {
  border: 0;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.monitor-shell.selected {
  background: var(--elev-2);
  box-shadow: inset 2px 0 var(--accent);
}
.monitor-shell:hover {
  background: var(--row-hover);
}
.monitor-shell .monitor:hover {
  background: none;
}
.monitor-inspect {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  border-radius: 0;
}
.monitor-inspect:hover,
.monitor-inspect[aria-expanded="true"] {
  color: var(--accent);
  background: var(--elev-2);
}
.monitor-inspect:focus-visible {
  outline-offset: -5px;
}
.monitor-inspector {
  min-width: 0;
  background: var(--elev);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 9px;
  padding: 20px;
  position: sticky;
  top: 78px;
}
.inspector-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
}
.inspector-top .ghost {
  min-height: 32px;
  padding: 4px 9px;
  font-size: 11px;
}
.monitor-inspector h2 {
  margin: 14px 0 8px;
  font-size: 23px;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.inspector-target {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.inspector-readings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 14px;
  padding: 22px 0;
  margin: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.inspector-readings dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.inspector-readings dd {
  font-size: 18px;
  margin: 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.monitor-inspector h3 {
  font-size: 12px;
  font-weight: 500;
  margin: 22px 0 12px;
}
.inspector-history .cell {
  height: 30px;
}
.monitor-inspector[data-stale="true"] .cell {
  background: var(--chart-empty);
}
.monitor-inspector .hint,
.monitor-inspector .data-warning {
  margin-top: 12px;
  font-size: 11px;
}
.inspector-location {
  color: var(--muted);
  font-size: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.inspector-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 12px;
}
@media (min-width: 1101px) {
  .monitor-workspace.has-inspector {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .has-inspector .monitor {
    grid-template-columns: 80px minmax(100px, 1fr) 92px 92px;
    gap: 10px;
    padding-left: 14px;
    padding-right: 10px;
  }
  .has-inspector .monitor-head {
    padding-right: 54px;
  }
  .has-inspector .monitor > .where,
  .has-inspector .monitor > .ribbon,
  .has-inspector .monitor-head > span:nth-child(3),
  .has-inspector .monitor-head > span:nth-child(6) {
    display: none;
  }
}
@media (max-width: 1100px) {
  .monitor-inspector {
    position: static;
    grid-row: 1;
  }
}
@media (max-width: 640px) {
  .workspace-actions {
    gap: 8px;
  }
  .workspace-header .theme-toggle [data-theme-label] {
    display: none;
  }
  .workspace-header .theme-toggle {
    padding: 7px;
  }
  .entry-header-actions .entry-caption {
    display: none;
  }
  .entry-header-actions {
    gap: 8px;
  }
  .entry-intro h1 {
    font-size: 34px;
  }
  .overview-page > .kpis .kpi {
    padding: 12px;
  }
  .overview-page > .kpis .kpi:first-child {
    padding-left: 12px;
  }
  .overview-page > .kpis .kpi strong {
    font-size: 25px;
  }
  .overview-page > .operations-health .ghost {
    margin-left: 52px;
  }
  .monitor-inspector {
    top: auto;
  }
}
@media (max-width: 1280px) {
  .monitor {
    grid-template-columns: 88px minmax(150px, 1fr) 120px 105px 125px;
  }
  .monitor > .where,
  .monitor-head > span:nth-child(3) {
    display: none;
  }
  .platform-configuration {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-tools,
  .platform-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-tools a:nth-child(2),
  .platform-shortcuts a:nth-child(2) {
    border-right: 0;
  }
  .workspace-tools a:nth-child(-n + 2),
  .platform-shortcuts a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .public-agent-form {
    grid-template-columns: 1fr 1fr;
  }
  .overview-pulse {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1050px) {
  #workspace-form,
  #settings-form,
  .platform-configuration > section {
    grid-column: auto;
    grid-row: auto;
  }

  .monitor {
    grid-template-columns: 88px minmax(120px, 1fr) 108px 105px;
  }
  .monitor > .ribbon,
  .monitor-head > span:nth-child(6) {
    display: none;
  }
  .wrap {
    padding: 28px 24px 56px;
  }
  .workspace-header {
    padding: 12px 24px;
  }
  .resource-grid {
    grid-template-columns: 1fr;
  }
  .system-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .entry-body {
    gap: 48px;
  }
  .kpi {
    padding: 17px;
  }
  .platform-configuration {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 760px) {
  .console-sidebar {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 0 20px;
    overflow: visible;
  }
  .sidebar-brandbar {
    min-height: 70px;
  }
  .console-sidebar .brand {
    padding: 0;
  }
  .brand-copy small {
    display: none;
  }
  .brand-copy strong {
    font-size: 17px;
  }
  .brand-emblem {
    flex-basis: 26px;
  }
  .sidebar-scope,
  .sidebar-account {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    min-height: 40px;
    color: var(--rail-text);
    background: none;
    border-color: var(--rail-border);
  }
  .console-sidebar .nav {
    display: none;
    padding: 12px 0 20px;
    max-height: 70svh;
    overflow-y: auto;
  }
  .console-sidebar .nav.is-open {
    display: flex;
  }
  .console-sidebar .nav a,
  .nav-group-toggle {
    min-height: 44px;
  }
  .console-workspace {
    margin-left: 0;
  }
  .workspace-header {
    min-height: 57px;
    padding: 10px 24px;
  }
  .mobile-signout {
    display: inline-flex;
    font-size: 11px;
    min-height: 34px;
    padding: 5px 10px;
  }
  .refresh-status {
    font-size: 10px;
  }
  .wrap {
    padding-top: 26px;
  }
  .monitor {
    grid-template-columns: 88px minmax(160px, 1fr) 76px 115px;
  }
  .entry-body {
    max-width: 780px;
    gap: 38px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  }
  .entry-intro h1 {
    font-size: 37px;
  }
}
@media (max-width: 640px) {
  .workspace-header {
    flex-wrap: wrap;
  }

  h1 {
    font-size: 27px;
  }
  .wrap {
    padding: 24px 16px 40px;
  }
  .page-head {
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }
  .page-head > .btn {
    margin: 0;
  }
  .page-head .lede {
    font-size: 13px;
  }
  .workspace-header {
    padding: 10px 16px;
    gap: 10px;
  }
  .breadcrumb {
    gap: 8px;
    font-size: 11px;
  }
  .breadcrumb a {
    max-width: 13ch;
  }
  .refresh-status:not(.interrupted) {
    display: none;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
  }
  .kpi {
    padding: 15px 17px;
    min-height: 98px;
  }
  .kpi:nth-child(2) {
    border-right: 0;
  }
  .kpi:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .kpi strong {
    font-size: 27px;
  }
  .kpi small {
    font-size: 10px;
  }
  .operations-health {
    flex-wrap: wrap;
    padding: 16px;
    gap: 10px;
  }
  .operations-health > div {
    flex-basis: calc(100% - 40px);
  }
  .operations-health strong {
    font-size: 17px;
  }
  .operations-health > .ghost {
    margin-left: 38px;
    min-height: 32px;
    padding: 0;
  }
  .toolbar {
    align-items: stretch;
    gap: 12px;
  }
  .toolbar > .field {
    flex: 1 1 100%;
    order: -1;
  }
  .filter-tabs {
    width: 100%;
    gap: 3px;
  }
  .filter-tabs .ghost {
    font-size: 11px;
    padding: 7px 9px;
    min-height: 40px;
  }
  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .monitor-list-tools {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .monitor {
    grid-template-columns: 83px minmax(0, 1fr);
    padding: 15px 14px;
    gap: 12px;
    min-height: 82px;
  }
  .monitor .latency,
  .monitor .uptime,
  .monitor-head {
    display: none;
  }
  .monitor .name strong {
    font-size: 13px;
  }
  .monitor .pill {
    font-size: 10px;
  }
  .panel {
    padding: 19px;
    margin-top: 18px;
  }
  .panel-heading {
    margin-bottom: 18px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .fleet-summary {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .workspace-tools,
  .platform-shortcuts {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-tools a,
  .platform-shortcuts a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }
  .workspace-tools a:last-child,
  .platform-shortcuts a:last-child {
    border-bottom: 0;
  }
  .public-agent-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .public-agent-form button {
    justify-self: start;
  }
  .sharing-controls {
    grid-template-columns: minmax(0, 1fr);
  }
  .loc-row,
  .loc-head {
    grid-template-columns: minmax(100px, 1fr) 80px;
    gap: 10px;
  }
  .loc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .system-facts {
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .resource-card {
    padding: 18px;
  }
  .resource-card > strong {
    font-size: 31px;
  }
  .smart-drive summary {
    flex-wrap: wrap;
    gap: 10px;
  }
  .smart-drive-name {
    flex-basis: calc(100% - 28px);
  }
  .smart-temperature {
    margin-left: 20px;
  }
  .entry-header {
    min-height: 78px;
  }
  .entry-brand {
    font-size: 19px;
  }
  .entry-caption {
    font-size: 11px;
  }
  .entry-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 36px 0 48px;
    gap: 26px;
    max-width: 420px;
  }
  .entry-intro {
    padding-bottom: 0;
    border: 0;
  }
  .entry-kicker {
    margin-bottom: 12px;
  }
  .entry-intro h1 {
    font-size: 33px;
    max-width: none;
  }
  .entry-description {
    font-size: 13px;
    margin-top: 12px;
    max-width: none;
  }
  .entry-form {
    padding: 24px;
  }
  .entry-footer {
    flex-wrap: wrap;
    gap: 0;
    min-height: 72px;
    padding: 10px 0;
  }
  .entry-footer a {
    padding: 7px 0;
  }
  .recovery-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .recovery-context .entry-brand {
    margin-bottom: 10px;
  }
  .recovery-context p {
    display: none;
  }
  .auth-card {
    padding: 25px;
  }
  .overlay {
    padding: 16px 10px;
  }
  .dialog {
    padding: 22px;
    max-height: calc(100svh - 32px);
  }
  .dialog > .actions {
    bottom: -22px;
    margin: 22px -22px -22px;
    padding: 16px 22px;
  }
  .dialog h2 {
    font-size: 21px;
  }
  .banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .overview-insights > summary span {
    flex-basis: 100%;
    padding-left: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Measurements are comparable readings, rather than decorative dashboard tiles. */
.measurement-reading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  white-space: normal;
}
.measurement-reading strong {
  font-size: 14px;
  font-weight: 500;
}
.measurement-reading small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.reading-value {
  font-size: 26px;
  margin: 12px 0;
}
.historical-reading {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.measurement-panel summary,
.trace-job summary {
  cursor: pointer;
  color: var(--accent);
  padding: 12px 0;
}
.trace-controls {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 20px;
}
.trace-controls .field {
  flex: 1 1 180px;
}
.trace-controls button {
  margin-bottom: 0;
}
.trace-node-evidence {
  margin: 20px 0;
  border-block: 1px solid var(--line);
  padding: 12px 0;
}
.trace-node-evidence p {
  line-height: 1.7;
}
.trace-job {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.trace-job summary {
  color: var(--text);
  line-height: 1.6;
}
.trace-job .inspector-readings {
  margin: 12px 0;
}
.trace-job table {
  min-width: 540px;
}
@media (max-width: 640px) {
  .measurement-reading small {
    display: none;
  }
  .trace-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px 0;
  margin: 12px 0;
  border-block: 1px solid var(--line);
}
.stats > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.stats strong {
  color: var(--text);
  font-weight: 500;
}
.spark {
  height: 120px;
}

.pill.pending,
.pill.unknown {
  color: var(--muted);
  background: var(--elev-2);
}

@media (max-width: 640px) {
  .monitor .latency.measurement-reading {
    display: flex;
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
  }
  .monitor .measurement-reading small {
    display: block;
    font-size: 10px;
  }
}
