:root {
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  color-scheme: dark;
  --bg: oklch(15.184% 0.01557 251.872);
  --bg-soft: oklch(17.469% 0.01994 252.266);
  --panel: oklch(20.206% 0.02101 254.940);
  --panel-soft: oklch(18.432% 0.02147 254.984);
  --panel-hover: oklch(22.744% 0.02523 253.806);
  --border: oklch(28.483% 0.02847 252.955);
  --border-strong: oklch(33.871% 0.03238 250.538);
  --text: oklch(96.377% 0.00836 236.560);
  --muted: oklch(66.138% 0.03572 248.366);
  --accent: oklch(81.363% 0.11871 182.866);
  --accent-2: oklch(76.939% 0.09754 232.616);
  --success: oklch(81.604% 0.13794 167.023);
  --warning: oklch(82.958% 0.12417 78.418);
  --danger: oklch(72.389% 0.17317 15.603);
  --info: oklch(76.098% 0.10478 243.372);
  --shadow: 0 18px 55px oklch(0.000% 0.00000 0.000 / 0.220);
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --card-bg: var(--panel, oklch(20.206% 0.02101 254.940));
  --bg-input: oklch(18.432% 0.02147 254.984);
  --border-subtle: var(--border, oklch(28.483% 0.02847 252.955));
}
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
*:hover,
*:focus-within {
  scrollbar-color: oklch(100.000% 0.00000 0.000 / 0.160) transparent;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
*:hover::-webkit-scrollbar-thumb,
*:focus-within::-webkit-scrollbar-thumb {
  background: oklch(100.000% 0.00000 0.000 / 0.140);
}
*:hover::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
  background: oklch(100.000% 0.00000 0.000 / 0.320);
}
*:hover::-webkit-scrollbar-thumb:active,
::-webkit-scrollbar-thumb:active {
  background: var(--brand-primary, oklch(78.452% 0.13253 181.912));
}
::-webkit-scrollbar-corner {
  background: transparent;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  background: linear-gradient(180deg, oklch(16.921% 0.02096 248.761) 0, var(--bg) 240px);
  color: var(--text);
  font:
    14px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a {
  color: var(--accent);
}
code,
.mono {
  font-family: var(--mono);
}
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(15.184% 0.01557 251.872 / 0.940);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.appbar-inner {
  max-width: 1360px;
  margin: auto;
  min-height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid oklch(81.363% 0.11871 182.866 / 0.400);
  border-radius: 10px;
  color: var(--accent);
  font-weight: 800;
  box-shadow: 0 0 28px oklch(81.363% 0.11871 182.866 / 0.120);
}
.brand-sub {
  color: oklch(79.088% 0.02483 244.214);
  font-weight: 500;
}
.main-nav {
  display: flex;
  align-self: stretch;
  gap: 2px;
  overflow: auto;
}
.nav-item {
  border: 0;
  background: transparent;
  color: oklch(71.636% 0.03388 246.846);
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-item:hover {
  color: var(--text);
}
.nav-item.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.system-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: var(--text-xs);
  white-space: nowrap;
}
.app-shell {
  max-width: 1360px;
  margin: auto;
  padding: 32px 24px 72px;
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.banner {
  position: sticky;
  top: 68px;
  z-index: 40;
  max-width: 1360px;
  margin: 0 auto;
  padding: 12px 24px;
  background: oklch(23.470% 0.03041 349.949);
  border-bottom: 1px solid oklch(36.494% 0.06120 3.320);
  color: oklch(85.088% 0.08303 10.571);
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 8px 0 24px;
}
.page-head h1 {
  font-size: var(--text-3xl);
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.025em;
}
.page-head p {
  margin: 0;
  color: var(--muted);
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: oklch(60.758% 0.04026 248.491);
  font-weight: 700;
}
.btn {
  border: 1px solid var(--border-strong);
  background: oklch(21.460% 0.02557 253.850);
  border-radius: 9px;
  padding: 8px 12px;
  color: oklch(91.669% 0.01532 241.783);
}
.btn:hover {
  background: oklch(24.406% 0.02717 253.382);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: oklch(16.239% 0.01580 188.107);
  font-weight: 700;
  box-shadow: 0 8px 28px oklch(81.363% 0.11871 182.866 / 0.160);
}
.btn.ghost {
  background: transparent;
}
.btn.small {
  padding: 8px 8px;
  font-size: var(--text-xs);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.inline-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.status-online,
.sev-info,
.job-completed {
  color: var(--success);
}
.status-offline,
.sev-error,
.job-failed,
.job-timeout {
  color: var(--danger);
}
.sev-warn,
.job-cancelled {
  color: var(--warning);
}
.job-queued,
.job-claimed,
.job-running {
  color: var(--info);
}
.status-badge,
.tag,
.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: oklch(18.795% 0.02211 251.913);
}
.tag {
  font-weight: 600;
  text-transform: none;
  color: oklch(75.481% 0.03345 246.813);
}
.source-badge {
  border-radius: 5px;
  color: var(--accent);
  font-family: var(--mono);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.metric-card,
.panel,
.host-card,
.chart-card,
.detail-card {
  background: linear-gradient(180deg, var(--panel), oklch(19.324% 0.02124 254.960));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 oklch(100.000% 0.00000 0.000 / 0.015);
}
.metric-card {
  padding: 16px;
  min-height: 112px;
}
.metric-label {
  font-size: var(--text-xs);
  color: oklch(61.093% 0.04021 248.486);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.metric-value {
  font-size: var(--text-3xl);
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-top: 12px;
}
.metric-note {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-top: 4px;
}
.panel {
  padding: 20px;
}
.section-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 16px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.section-title h2,
.section-title h3 {
  font-size: var(--text-base);
  margin: 0;
}
.panel + .panel {
  margin-top: 16px;
}
.empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 28px;
}
.empty.compact {
  min-height: 72px;
}
.error-box {
  border: 1px solid oklch(38.097% 0.06539 1.706);
  background: oklch(22.163% 0.03010 353.530);
  color: oklch(84.337% 0.08827 9.439);
  padding: 12px 16px;
  border-radius: 9px;
}
.success-box {
  border: 1px solid oklch(81.604% 0.13794 167.023 / 0.350);
  background: oklch(81.604% 0.13794 167.023 / 0.070);
  color: oklch(89.770% 0.08014 168.853);
  padding: 12px 16px;
  border-radius: 9px;
}
.host-list {
  display: grid;
  gap: 12px;
}
.host-card {
  padding: 16px 20px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.host-card.clickable {
  cursor: pointer;
}
.host-card.clickable:hover {
  border-color: oklch(41.829% 0.04678 241.324);
  transform: translateY(-1px);
}
.host-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.host-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-base);
  font-weight: 700;
}
.host-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--text-xs);
}
.host-meta b {
  color: oklch(84.770% 0.02573 236.888);
  font-family: var(--mono);
  font-weight: 500;
}
.host-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kebab {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: oklch(18.795% 0.02211 251.913);
  border-radius: 8px;
  color: var(--muted);
}
.table-shell {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-soft);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th,
td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid oklch(26.397% 0.02738 251.054);
  vertical-align: top;
}
th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: oklch(21.051% 0.02325 254.321);
  color: oklch(61.055% 0.03900 247.175);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-xs);
}
tbody tr:hover {
  background: oklch(100.000% 0.00000 0.000 / 0.015);
}
tbody tr:last-child td {
  border-bottom: 0;
}
.cell-main {
  color: oklch(91.942% 0.01437 238.020);
}
.cell-sub {
  color: var(--muted);
  font-size: var(--text-xs);
  margin-top: 4px;
}
.clip {
  max-width: 520px;
}
.clip-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.clip.open .clip-text {
  -webkit-line-clamp: unset;
}
.toggle-row {
  border: 0;
  background: transparent;
  color: var(--accent-2);
  font-size: var(--text-xs);
  padding: 4px 0;
}
.code-output {
  font: 12px/1.5 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: oklch(83.218% 0.02584 236.899);
  background: oklch(15.564% 0.01633 247.625);
  border: 1px solid oklch(25.963% 0.02979 250.987);
  border-radius: 8px;
  padding: 12px;
  max-height: 320px;
  overflow: auto;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.filters input,
.filters select,
.field input,
.field select {
  background: oklch(17.469% 0.01994 252.266);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
}
.filters input {
  min-width: 220px;
  flex: 1;
}
.filters select {
  min-width: 144px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: var(--text-xs);
  color: oklch(71.889% 0.03163 243.583);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--text-xs);
}

.chart-card {
  padding: 16px;
}
.chart-wrap {
  width: 100%;
  min-height: 252px;
  overflow: hidden;
}
.chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
}
.chart-grid {
  stroke: oklch(27.797% 0.02934 244.996);
  stroke-width: 1;
}
.chart-axis {
  fill: oklch(57.343% 0.03958 247.235);
  font-size: var(--text-xs);
}
.chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--text-xs);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.chart-completed {
  stroke: var(--accent);
  fill: none;
}
.chart-failed {
  stroke: var(--danger);
  fill: none;
}
.chart-timeout {
  stroke: var(--warning);
  fill: none;
}
.chart-point {
  stroke-width: 0;
  fill: currentColor;
}
.rank-list {
  display: grid;
  gap: 8px;
}
.rank-row {
  display: grid;
  grid-template-columns: minmax(130px, 210px) 1fr 90px;
  gap: 12px;
  align-items: center;
  font-size: var(--text-xs);
}
.rank-name {
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-track {
  height: 8px;
  border-radius: 999px;
  background: oklch(25.552% 0.02989 251.009);
  overflow: hidden;
}
.rank-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), oklch(79.141% 0.09956 230.430));
  border-radius: 999px;
}
.rank-value {
  text-align: right;
  color: oklch(78.271% 0.02817 241.264);
}
.error-list {
  display: grid;
  gap: 8px;
}
.error-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: oklch(18.879% 0.02135 254.972);
}
.error-count {
  font-size: var(--text-lg);
  color: var(--danger);
  font-weight: 750;
}
.client-headline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.client-title {
  font-size: var(--text-3xl);
  margin: 0;
}
.detail-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin: 20px 0 16px;
  overflow: auto;
}
.detail-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 12px;
  border-bottom: 2px solid transparent;
}
.detail-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.detail-pane {
  display: none;
}
.detail-pane.active {
  display: block;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.kv-list {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 8px 16px;
}
.kv-list dt {
  color: var(--muted);
}
.kv-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.recent-stack {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.timeline {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.timeline-node {
  font-size: var(--text-xs);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: oklch(64.170% 0.04067 243.569);
}
.timeline-node.on {
  border-color: oklch(81.363% 0.11871 182.866 / 0.450);
  color: var(--accent);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.settings-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.settings-card h2 {
  font-size: var(--text-base);
  margin: 0 0 16px;
}
.config-table {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(100px, auto);
  gap: 8px 16px;
  font-size: var(--text-xs);
}
.config-table div:nth-child(odd) {
  color: var(--muted);
}
.agent-guide {
  margin-top: 16px;
}
.agent-guide details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: oklch(18.879% 0.02135 254.972);
}
.agent-guide summary {
  cursor: pointer;
  padding: 12px 16px;
  color: oklch(83.251% 0.02678 239.140);
}
.guide-body {
  padding: 0 16px 16px;
}
.guide-section {
  margin-top: 16px;
}
.guide-section h3 {
  font-size: var(--text-sm);
}
.copy-block {
  position: relative;
  margin: 8px 0;
}
.copy-block pre {
  margin: 0;
  padding: 12px 72px 12px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: oklch(15.564% 0.01633 247.625);
  color: oklch(86.581% 0.09144 179.967);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.55 var(--mono);
}
.copy-block .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}
.planned {
  opacity: 0.55;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: oklch(10.965% 0.01770 236.437 / 0.780);
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal {
  width: min(720px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: oklch(18.879% 0.02135 254.972);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  font-size: var(--text-lg);
  margin: 0;
}
.modal-body {
  padding: 20px;
}
.platform-picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}
.platform-pick {
  border: 1px solid var(--border);
  background: oklch(17.469% 0.01994 252.266);
  border-radius: 9px;
  padding: 12px;
  text-align: left;
}
.platform-pick.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.support {
  font-size: var(--text-xs);
  color: var(--success);
  text-transform: uppercase;
}
.support.planned {
  color: var(--muted);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.close-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-xl);
}
.stat-layout {
  display: grid;
  gap: 16px;
}
.stats-duo {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
}
.stats-trio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.host-summary-table td:first-child {
  font-family: var(--mono);
  color: var(--accent);
}
.small-note {
  font-size: var(--text-xs);
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.spacer {
  height: 16px;
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .section-grid,
  .stats-duo {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .appbar-inner {
    padding: 0 16px;
    gap: 16px;
    flex-wrap: wrap;
    min-height: auto;
  }
  .brand {
    height: 56px;
  }
  .main-nav {
    order: 3;
    width: 100%;
    height: 44px;
  }
  .system-meta {
    font-size: var(--text-xs);
  }
  .app-shell {
    padding: 24px 16px 60px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid,
  .field-grid,
  .stats-trio {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 120px 1fr 70px;
  }
  .kv-list {
    grid-template-columns: 120px 1fr;
  }
  .banner {
    top: 100px;
    padding: 8px 16px;
  }
}
@media (max-width: 520px) {
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric-card {
    min-height: 96px;
    padding: 12px;
  }
  .metric-value {
    font-size: var(--text-2xl);
  }
  .host-top {
    flex-direction: column;
  }
  .host-actions {
    width: 100%;
    justify-content: space-between;
  }

  .platform-picks {
    grid-template-columns: 1fr;
  }
  .rank-row {
    grid-template-columns: 100px 1fr;
  }
  .rank-value {
    grid-column: 2;
  }
  .system-meta {
    display: none;
  }
}

/* NC control-plane shell v2 */
body {
  background: oklch(16.829% 0.02194 245.515);
  min-height: 100vh;
}

.side-health {
  display: flex;
  align-items: center;
  gap: 12px;
  color: oklch(79.853% 0.02529 238.495);
}
.side-health div {
  display: grid;
}
.side-health b {
  font-size: var(--text-xs);
}
.side-health small {
  font-size: var(--text-xs);
  color: oklch(55.868% 0.03932 244.639);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(81.416% 0.12856 171.564);
  box-shadow: 0 0 12px oklch(81.416% 0.12856 171.564 / 0.700);
}
.side-version {
  margin-top: 12px;
  color: oklch(44.454% 0.03791 247.294);
  font: 9px var(--mono);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: oklch(16.829% 0.02194 245.515 / 0.880);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid oklch(26.045% 0.02910 241.058);
}
.topbar-copy {
  display: grid;
}
.topbar-copy strong {
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
}
.top-kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(49.952% 0.04228 245.032);
  font-weight: 800;
  margin-bottom: 4px;
}
.topbar .system-meta {
  margin-left: 0;
  padding: 8px 12px;
  border: 1px solid oklch(29.897% 0.03424 239.317);
  border-radius: 9px;
  background: oklch(18.268% 0.02300 249.190);
  color: oklch(63.835% 0.03776 241.786);
}

.page-head {
  margin: 0 0 24px;
  align-items: center;
}
.page-head h1 {
  font-size: 25px;
  font-weight: 720;
}
.page-head p {
  font-size: var(--text-xs);
  color: oklch(60.572% 0.03746 243.046);
}
.page-actions {
  gap: 8px;
}
.btn {
  min-height: 36px;
  background: oklch(20.379% 0.02566 246.846);
  border-color: oklch(32.876% 0.03477 245.748);
  border-radius: 8px;
  box-shadow: none;
}
.btn:hover {
  background: oklch(24.036% 0.03094 243.701);
  border-color: oklch(41.766% 0.04752 240.421);
}
.btn.primary {
  background: oklch(77.033% 0.11960 181.300);
  border-color: oklch(77.033% 0.11960 181.300);
  color: oklch(16.139% 0.01749 188.677);
  box-shadow: 0 7px 24px oklch(77.033% 0.11960 181.300 / 0.120);
}
.metric-grid {
  gap: 12px;
  margin-bottom: 20px;
}
.metric-card {
  min-height: 100px;
  padding: 16px 16px;
  background: linear-gradient(180deg, oklch(20.455% 0.02488 249.126), oklch(18.714% 0.02289 249.135));
  border-color: oklch(28.056% 0.03087 241.607);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.metric-card:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, oklch(78.629% 0.12386 181.813 / 0.500), transparent 65%);
}
.metric-label {
  font-size: var(--text-xs);
  color: oklch(54.770% 0.04024 243.486);
  letter-spacing: 0.12em;
}
.metric-value {
  font-size: 25px;
  margin-top: 8px;
  color: oklch(97.322% 0.00668 233.640);
}
.metric-note {
  font-size: var(--text-xs);
  color: oklch(57.162% 0.03985 243.428);
}
.panel,
.host-card,
.chart-card,
.detail-card,
.settings-card {
  background: linear-gradient(180deg, oklch(20.455% 0.02488 249.126), oklch(18.714% 0.02289 249.135));
  border-color: oklch(28.056% 0.03087 241.607);
  border-radius: 10px;
}
.panel {
  padding: 16px;
}
.section-title {
  margin-bottom: 12px;
}
.section-title h2,
.section-title h3 {
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
}
.section-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.75fr);
  gap: 16px;
}
.host-list {
  gap: 8px;
}
.host-card {
  padding: 16px 16px;
}
.host-card.clickable:hover {
  border-color: oklch(44.072% 0.05205 206.365);
  background: oklch(22.028% 0.02606 244.512);
  transform: none;
}
.host-name {
  font-size: var(--text-sm);
}
.host-meta {
  margin-top: 8px;
  gap: 8px 12px;
  font-size: var(--text-xs);
}
.host-actions .tag {
  background: oklch(18.577% 0.02210 243.487);
}
.inline-status {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.status-dot {
  width: 8px;
  height: 8px;
}
.tag,
.source-badge {
  font-size: var(--text-xs);
  padding: 4px 8px;
}
.kebab {
  width: 28px;
  height: 28px;
}
.table-shell {
  border-color: oklch(27.654% 0.03096 241.650);
  border-radius: 8px;
  background: oklch(17.756% 0.02148 246.116);
}
th,
td {
  padding: 8px 12px;
  border-bottom-color: oklch(26.045% 0.02910 241.058);
}
th {
  background: oklch(20.397% 0.02327 246.392);
  color: oklch(53.295% 0.04314 242.744);
  font-size: var(--text-xs);
}
tbody tr:hover {
  background: oklch(20.740% 0.02636 244.694);
}
.cell-sub {
  font-size: var(--text-xs);
}
.filters {
  margin-bottom: 12px;
}
.filters input,
.filters select,
.field input,
.field select {
  background: oklch(18.128% 0.02223 243.486);
  border-color: oklch(29.188% 0.03146 239.962);
  border-radius: 7px;
  padding: 8px 8px;
  font-size: var(--text-xs);
}

.chart-card {
  padding: 16px;
}
.chart-wrap {
  min-height: 220px;
}
.rank-track {
  height: 8px;
  background: oklch(24.810% 0.02934 241.219);
}
.error-item {
  padding: 8px;
  background: oklch(18.637% 0.02369 246.624);
  border-color: oklch(28.056% 0.03087 241.607);
}
.error-count {
  font-size: var(--text-base);
}
.detail-tabs {
  margin: 16px 0 16px;
}
.detail-tab {
  font-size: var(--text-xs);
  padding: 8px 12px;
}
.kv-list {
  font-size: var(--text-xs);
  grid-template-columns: 145px 1fr;
}
.code-output {
  background: oklch(15.070% 0.01670 246.578);
  border-color: oklch(26.045% 0.02910 241.058);
}

.modal-backdrop {
  background: oklch(12.273% 0.01626 232.534 / 0.840);
  backdrop-filter: blur(6px);
}
.modal {
  background: oklch(19.080% 0.02358 246.555);
  border-color: oklch(33.143% 0.03412 242.407);
  border-radius: 12px;
}
.modal-head {
  padding: 16px 16px;
}
.modal-body {
  padding: 16px;
}
.settings-grid {
  gap: 16px;
}
.settings-card {
  padding: 16px;
}
.config-table {
  font-size: var(--text-xs);
}
.copy-block pre {
  background: oklch(15.455% 0.01751 243.001);
  border-color: oklch(26.437% 0.03120 241.795);
  color: oklch(84.213% 0.09122 184.198);
}
@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .section-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 860px) {
  .topbar {
    height: 60px;
    padding: 0 16px;
  }
  .topbar-copy .top-kicker {
    display: none;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .topbar-copy {
    display: none;
  }
  .topbar {
    justify-content: flex-end;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric-card {
    min-height: 88px;
  }
  .metric-value {
    font-size: var(--text-xl);
  }
  .page-head h1 {
    font-size: var(--text-2xl);
  }
  .page-actions {
    width: 100%;
  }
  .page-actions .btn.primary {
    flex: 1;
  }
  .host-top {
    gap: 12px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard overflow / height correction */
.section-grid {
  align-items: start;
}
.section-grid > .panel {
  min-width: 0;
  height: auto;
  align-self: start;
}

#view-dashboard .section-grid > .panel {
  max-height: 432px;
  overflow: hidden;
}
#view-dashboard .section-grid > .panel:first-child {
  max-height: none;
}
@media (max-width: 1180px) {
  #view-dashboard .section-grid > .panel {
    max-height: none;
  }
}

/* Stats/dashboard compact activity containment */
.section-grid,
.stats-trio,
.stats-duo {
  align-items: start;
}
.section-grid > .panel,
.stats-trio > .panel,
.stats-duo > .panel {
  min-width: 0;
}

#view-dashboard .section-grid > .panel,
#view-stats .stats-trio > .panel {
  height: auto;
  align-self: start;
}
#view-stats .stats-trio {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}
#view-stats .stats-trio .table-shell {
  max-height: 420px;
}
@media (max-width: 1100px) {
  #view-stats .stats-trio {
    grid-template-columns: 1fr;
  }
  .compact-activity {
    max-height: 320px;
  }
}

.chart-bar-completed {
  fill: oklch(81.604% 0.13794 167.023);
  background: oklch(81.604% 0.13794 167.023);
}
.chart-bar-failed {
  fill: oklch(72.389% 0.17317 15.603);
  background: oklch(72.389% 0.17317 15.603);
}
.chart-bar-timeout {
  fill: oklch(82.958% 0.12417 78.418);
  background: oklch(82.958% 0.12417 78.418);
}

/* NC product shell v3 — Sentinel-inspired, admin-capable */
.sentinel-shell {
  background: oklch(15.564% 0.01633 247.625);
  min-height: 100vh;
}
.product-header {
  border-bottom: 1px solid oklch(26.676% 0.02654 246.634);
  background: oklch(16.483% 0.01854 248.549);
}
.product-header-inner {
  max-width: 1240px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.product-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0;
}
.product-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: oklch(28.784% 0.03837 184.358);
  border: 1px solid oklch(46.925% 0.06812 184.238);
  color: oklch(82.939% 0.11240 183.089);
  font-weight: 800;
}
.product-name {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: var(--text-base);
}
.product-name span {
  color: oklch(74.813% 0.02952 243.232);
  font-weight: 500;
}
.product-status {
  font-size: var(--text-xs);
  color: oklch(61.280% 0.03850 244.532);
  padding: 8px 12px;
  border: 1px solid oklch(28.530% 0.02998 243.190);
  border-radius: 8px;
  background: oklch(18.207% 0.02135 246.139);
}
.product-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.product-intro {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.product-intro h1 {
  font-size: 25px;
  letter-spacing: -0.025em;
  margin: 4px 0 0;
}
.header-health {
  display: flex;
  align-items: center;
  gap: 8px;
  color: oklch(66.249% 0.03485 242.616);
  font-size: var(--text-xs);
}
.product-nav {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid oklch(27.392% 0.02942 245.029);
  margin-bottom: 24px;
  overflow: auto;
}
.product-nav .nav-item {
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: oklch(67.923% 0.03281 242.226);
  font-size: var(--text-xs);
  font-weight: 600;
}
.product-nav .nav-item:hover {
  color: oklch(93.929% 0.01357 226.565);
}
.product-nav .nav-item.active {
  color: oklch(96.575% 0.01829 184.272);
  border-bottom-color: oklch(79.868% 0.11816 182.038);
}
.product-content.app-shell {
  max-width: none;
  margin: 0;
  padding: 0;
}
.product-content .page-head {
  margin-top: 0;
}
.product-content .banner {
  position: static;
  margin: 0 0 16px;
  padding: 12px 12px;
  border-radius: 8px;
}
.management-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid oklch(27.392% 0.02942 245.029);
  margin: -4px 0 20px;
  overflow: auto;
}
.management-tab {
  border: 0;
  background: transparent;
  color: oklch(65.592% 0.03493 242.626);
  padding: 12px 12px;
  border-bottom: 2px solid transparent;
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}
.management-tab:hover {
  color: oklch(92.372% 0.01523 228.972);
}
.management-tab.active {
  color: oklch(96.446% 0.01601 187.338);
  border-bottom-color: oklch(79.868% 0.11816 182.038);
}
.management-body {
  min-width: 0;
}
.management-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  align-items: start;
}
.management-wide {
  min-width: 0;
}
.tool-card-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border: 1px solid oklch(28.056% 0.03087 241.607);
  border-radius: 8px;
  background: oklch(18.637% 0.02369 246.624);
}
.security-note {
  padding: 12px;
  border: 1px solid oklch(29.795% 0.03179 234.722);
  border-radius: 8px;
  background: oklch(18.128% 0.02223 243.486);
  color: oklch(71.782% 0.03134 240.367);
  line-height: 1.6;
}
.chart-bar-completed {
  fill: var(--accent);
  background: var(--accent);
}
.chart-bar-failed {
  fill: var(--danger);
  background: var(--danger);
}
.chart-bar-timeout {
  fill: var(--warning);
  background: var(--warning);
}
@media (max-width: 900px) {
  .product-header-inner,
  .product-main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .product-intro {
    min-height: 88px;
  }
  .management-grid {
    grid-template-columns: 1fr;
  }
  .product-status {
    display: none;
  }
}
@media (max-width: 560px) {
  .product-intro {
    align-items: flex-start;
    padding: 20px 0;
    min-height: auto;
  }
  .header-health {
    display: none;
  }
  .product-nav .nav-item {
    padding: 0 12px;
  }
  .product-main {
    padding-bottom: 44px;
  }
}

/* Product health summaries */
.control-strip {
  margin-top: 16px;
  padding: 16px 16px;
  border: 1px solid oklch(28.056% 0.03087 241.607);
  border-radius: 10px;
  background: linear-gradient(180deg, oklch(19.902% 0.02182 243.283), oklch(18.207% 0.02135 246.139));
}
.control-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.control-strip-head h2 {
  font-size: var(--text-sm);
  margin: 2px 0 0;
}
.control-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: oklch(27.267% 0.02886 240.920);
  border: 1px solid oklch(27.267% 0.02886 240.920);
  border-radius: 8px;
  overflow: hidden;
}
.control-health-item {
  display: grid;
  gap: 4px;
  padding: 12px 12px;
  background: oklch(18.577% 0.02210 243.487);
  min-width: 0;
}
.control-health-item span {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(55.798% 0.04007 243.460);
  font-weight: 700;
}
.control-health-item b {
  font-size: var(--text-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.control-health-item small {
  font-size: var(--text-xs);
  color: oklch(60.307% 0.03675 244.301);
}
.host-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 16px;
  border: 1px solid oklch(27.267% 0.02886 240.920);
  border-radius: 9px;
  overflow: hidden;
  background: oklch(27.267% 0.02886 240.920);
}
.host-overview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  background: oklch(19.020% 0.02201 243.410);
}
.host-overview span {
  font-size: var(--text-xs);
  color: oklch(58.479% 0.03851 241.894);
}
.host-overview b {
  font-size: var(--text-sm);
}
@media (max-width: 800px) {
  .control-health-grid,
  .host-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .control-strip-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .control-health-grid,
  .host-overview {
    grid-template-columns: 1fr;
  }
}

/* Web-shell extracted inline styles (Tier-2 Wave 1b) — verbatim values, no !important */
.shell-title-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.shell-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 4px;
}
.shell-grid-toolchain {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.shell-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.shell-card-heading {
  font-size: var(--text-xl);
  margin-bottom: 8px;
}
.shell-value-blue {
  font-size: var(--text-base);
  font-weight: 600;
  color: oklch(75.351% 0.13899 232.661);
  font-family: monospace;
}
.shell-not-scanned {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.shell-card-caption {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 8px;
}
.shell-value-green {
  font-size: var(--text-base);
  font-weight: 600;
  color: oklch(80.035% 0.18206 151.711);
  font-family: monospace;
}
.shell-value-amber {
  font-size: var(--text-base);
  font-weight: 600;
  color: oklch(86.056% 0.17311 91.936);
  font-family: monospace;
}
.shell-value-neutral {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  font-family: monospace;
}
.shell-alert-tc {
  display: none;
  padding: 12px;
  border-radius: 6px;
  font-size: var(--text-sm);
  margin-top: 12px;
}
.shell-grid-sessions {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.shell-card-heading-sm {
  font-size: var(--text-lg);
  margin-bottom: 8px;
}
.shell-apps-wrap {
  font-size: var(--text-sm);
  color: var(--text-primary);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.shell-section-gap {
  margin-top: 20px;
  margin-bottom: 12px;
}
.shell-active-console {
  color: oklch(80.035% 0.18206 151.711);
}
.shell-alert-sess {
  display: none;
  padding: 12px;
  border-radius: 6px;
  font-size: var(--text-sm);
  margin-top: 16px;
}
