:root {
  color-scheme: dark;
  --canvas: #09090b;
  --sidebar: #0e0e11;
  --surface: #151519;
  --surface-strong: #1b1b20;
  --line: #303037;
  --line-soft: #232329;
  --text: #f7f7f8;
  --muted: #a9a9b3;
  --dim: #73737e;
  --red: #ee3e3e;
  --red-bright: #ff6767;
  --red-wash: #3d1719;
  --green: #5bda9c;
  --amber: #f2bd60;
  --blue: #8eb9ff;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--canvas); color: var(--text); }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section-label { margin: 0; color: var(--red-bright); font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.section-copy { max-width: 70ch; margin: 9px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.section-copy, .network-callout span, .attention-item, .module-grid article > span { overflow-wrap: anywhere; }
.surface-note { margin: 14px 0 0; color: var(--dim); font-size: .74rem; line-height: 1.45; }
.form-error { min-height: 1.25rem; margin: 0; color: var(--red-bright); font-size: .8rem; }

.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.login-panel { width: min(100%, 430px); border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--surface); padding: 34px; }
.login-panel h1 { margin: 10px 0 12px; font-size: 2.1rem; line-height: 1; }
.login-panel > p:not(.section-label) { margin: 0 0 27px; color: var(--muted); line-height: 1.55; }
.login-panel form, .dialog-form { display: grid; gap: 10px; }
.login-panel label, .dialog-form label { display: grid; gap: 7px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.login-panel input, .dialog-form input, .dialog-form select, .dialog-form textarea, .table-toolbar input, .table-toolbar select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 5px; background: #0c0c0f; color: var(--text); padding: 9px 10px; }
.dialog-form textarea { resize: vertical; min-height: 84px; }

.button { min-height: 37px; border: 1px solid var(--line); border-radius: 5px; padding: 0 12px; background: transparent; color: var(--text); font-size: .78rem; font-weight: 800; }
.button-primary { border-color: var(--red); background: var(--red); color: #190606; }
.button-primary:hover { background: var(--red-bright); border-color: var(--red-bright); }
.button-quiet:hover { border-color: var(--red); color: var(--red-bright); }
.text-button { border: 0; padding: 0; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 700; text-align: left; }
.text-button:hover { color: var(--red-bright); }

.app-shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line-soft); background: var(--sidebar); padding: 21px 13px 17px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 28px; color: var(--text); text-decoration: none; }
.brand-mark { display: grid; width: 30px; height: 30px; place-items: center; background: var(--red); color: #170505; font-family: var(--mono); font-size: .92rem; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .94rem; letter-spacing: .02em; }
.brand small { margin-top: 3px; color: var(--dim); font-size: .67rem; }
.nav { display: grid; gap: 13px; }
.nav-group { min-width: 0; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.nav-group:first-child { border-top: 0; padding-top: 0; }
.nav-group summary { display: flex; align-items: center; justify-content: space-between; min-height: 26px; padding: 0 10px; color: var(--dim); cursor: pointer; font-size: .64rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nav-group summary::after { content: "+"; color: var(--dim); font-family: var(--mono); font-size: .8rem; }
.nav-group[open] summary::after { content: "−"; color: var(--red-bright); }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 38px; border: 0; border-left: 2px solid transparent; padding: 0 10px; background: transparent; color: var(--muted); font-size: .8rem; font-weight: 700; text-align: left; }
.nav-button small { color: var(--dim); font-family: var(--mono); font-size: .62rem; }
.nav-button:hover { background: var(--surface); color: var(--text); }
.nav-button.is-current { border-left-color: var(--red); background: var(--red-wash); color: var(--text); }
.nav-button.is-current small { color: var(--red-bright); }
.nav-child { min-height: 33px; padding-left: 20px; color: #898994; font-size: .74rem; font-weight: 650; }
.sidebar-meta { display: grid; gap: 14px; margin-top: auto; padding: 0 8px; }
.sidebar-meta p { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: .71rem; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.workspace { min-width: 0; padding: 30px 38px 54px; }
.topbar, .section-toolbar, .surface-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.topbar { padding-bottom: 21px; border-bottom: 1px solid var(--line-soft); }
.topbar h2 { margin: 8px 0 0; font-size: 1.65rem; line-height: 1.1; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions a.button { display: inline-flex; align-items: center; text-decoration: none; }
.updated-at { color: var(--dim); font-family: var(--mono); font-size: .68rem; white-space: nowrap; }
.app-notice { min-height: 1.25rem; margin: 11px 0 0; color: var(--red-bright); font-size: .78rem; }

.metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 20px; border: 1px solid var(--line); background: var(--surface); }
.metric-strip-provider { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric { min-width: 0; min-height: 126px; padding: 17px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric p { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 750; }
.metric strong { display: block; overflow-wrap: anywhere; margin: 16px 0 7px; font-family: var(--mono); font-size: 1.48rem; }
.metric span { display: block; color: var(--dim); font-size: .72rem; line-height: 1.4; }
.metric:first-child { border-top: 2px solid var(--red); }
.metric-alert { border-top: 2px solid var(--amber); }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(320px, .88fr); gap: 12px; margin-top: 12px; }
.overview-bottom { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.surface { min-width: 0; border: 1px solid var(--line); background: var(--surface); padding: 19px; }
.surface-wide { min-height: 288px; }
.surface-heading h3, .section-toolbar h3 { margin: 6px 0 0; font-size: 1.08rem; line-height: 1.25; }
.surface-heading > strong { color: var(--red-bright); font-family: var(--mono); font-size: .92rem; }
.status { display: inline-flex; align-items: center; min-height: 25px; border-radius: 99px; padding: 0 8px; font-size: .65rem; font-weight: 800; white-space: nowrap; }
.status-live { background: #173524; color: var(--green); }
.status-muted { background: #29292f; color: var(--muted); }
.status-warning { background: #493819; color: var(--amber); }
.status-danger { background: var(--red-wash); color: var(--red-bright); }

.revenue-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 8px; height: 194px; margin-top: 18px; padding-top: 4px; border-bottom: 1px solid var(--line); }
.chart-day { display: grid; grid-template-rows: 20px 1fr 18px; min-width: 0; height: 100%; gap: 4px; }
.chart-day span { overflow: hidden; color: var(--dim); font-family: var(--mono); font-size: .59rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { display: flex; align-items: flex-end; height: 100%; border-top: 1px solid var(--line-soft); }
.bar-fill { width: 100%; min-height: 0; background: var(--red); }
.bar-empty { opacity: .22; }
.health-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 20px 0 0; border-top: 1px solid var(--line-soft); }
.health-list div { min-width: 0; padding: 12px 10px 7px 0; border-bottom: 1px solid var(--line-soft); }
.health-list div:nth-child(odd) { border-right: 1px solid var(--line-soft); padding-right: 12px; }
.health-list div:nth-child(even) { padding-left: 12px; }
.health-list dt, .router-placeholder dt, .system-list dt { color: var(--dim); font-size: .65rem; font-weight: 750; text-transform: uppercase; }
.health-list dd, .router-placeholder dd, .system-list dd { overflow-wrap: anywhere; margin: 7px 0 3px; font-family: var(--mono); font-size: .96rem; font-weight: 800; }
.health-list small { display: block; overflow-wrap: anywhere; color: var(--muted); font-family: var(--mono); font-size: .63rem; line-height: 1.35; }

.rank-list { margin-top: 17px; }
.rank-row { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.rank-row:first-child { border-top: 0; padding-top: 0; }
.rank-index { flex: 0 0 20px; color: var(--red-bright); font-family: var(--mono); font-size: .68rem; }
.rank-detail { min-width: 0; flex: 1; }
.rank-detail strong, .rank-total { display: block; overflow-wrap: anywhere; font-size: .79rem; }
.rank-detail span { display: block; overflow-wrap: anywhere; margin-top: 3px; color: var(--dim); font-family: var(--mono); font-size: .63rem; line-height: 1.35; }
.rank-total { color: var(--red-bright); font-family: var(--mono); text-align: right; }
.router-copy { min-height: 40px; margin: 18px 0 15px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.router-placeholder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.router-placeholder div { min-width: 0; border-top: 1px solid var(--line); padding-top: 9px; }
.router-placeholder dd { color: var(--dim); font-size: .71rem; }

.view-panel { padding-top: 20px; }
.section-toolbar { margin-bottom: 18px; }
.table-toolbar { display: flex; justify-content: space-between; gap: 9px; margin-bottom: 10px; }
.field-search { flex: 1; max-width: 390px; }
.select-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.select-label select { width: auto; }
.table-notice { min-height: 1.2rem; margin: 10px 0; color: var(--dim); font-size: .75rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; min-width: 830px; border-collapse: collapse; text-align: left; }
th { position: relative; padding: 11px 13px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 13px; border-bottom: 1px solid var(--line-soft); vertical-align: top; font-size: .78rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-strong); }
.primary-data { display: block; font-family: var(--mono); font-weight: 800; }
.secondary-data { display: block; overflow-wrap: anywhere; margin-top: 4px; color: var(--dim); font-family: var(--mono); font-size: .65rem; line-height: 1.35; }
.badge { display: inline-flex; align-items: center; min-height: 22px; border-radius: 99px; padding: 0 7px; background: #2a2a30; color: var(--muted); font-size: .63rem; font-weight: 800; white-space: nowrap; }
.badge-completed, .badge-active, .badge-authorized, .badge-connected, .badge-resolved { background: #173524; color: var(--green); }
.badge-pending, .badge-awaiting_router, .badge-attention, .badge-high, .badge-urgent { background: #493819; color: var(--amber); }
.badge-issued, .badge-claimed { background: #1b2d3d; color: var(--blue); }
.badge-failed, .badge-cancelled, .badge-timeout, .badge-revoked, .badge-expired, .badge-disabled, .badge-offline { background: var(--red-wash); color: var(--red-bright); }
.badge-lead, .badge-initiating, .badge-not_ready, .badge-normal { background: #2a2a30; color: var(--blue); }
.table-action { min-height: 29px; border: 1px solid #733031; border-radius: 4px; background: transparent; color: var(--red-bright); font-size: .66rem; font-weight: 800; white-space: nowrap; }
.table-action:hover { background: var(--red-wash); }
td .table-action + .table-action { margin-left: 6px; }

.access-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; border: 1px solid var(--line); background: var(--surface); }
.owner-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.access-summary div { min-width: 0; padding: 14px; border-right: 1px solid var(--line); }
.access-summary div:last-child { border-right: 0; }
.access-summary span, .access-summary strong { display: block; }
.access-summary span { color: var(--dim); font-size: .68rem; text-transform: uppercase; }
.access-summary strong { overflow-wrap: anywhere; margin-top: 8px; font-family: var(--mono); font-size: 1rem; }
.network-callout { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; border-left: 3px solid var(--red); padding: 11px 13px; background: var(--surface); color: var(--muted); font-size: .78rem; line-height: 1.5; }
.network-callout strong { color: var(--text); white-space: nowrap; }
.attention-list { display: grid; gap: 0; margin-bottom: 14px; border: 1px solid var(--line); background: var(--surface); }
.attention-item { display: flex; justify-content: space-between; gap: 12px; padding: 13px; border-bottom: 1px solid var(--line-soft); }
.attention-item:last-child { border-bottom: 0; }
.attention-item strong, .attention-item span { display: block; }
.attention-item strong { font-size: .8rem; }
.attention-item span { margin-top: 4px; color: var(--dim); font-size: .7rem; line-height: 1.35; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.module-grid article { min-width: 0; min-height: 164px; padding: 17px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.module-grid h4 { margin: 10px 0 7px; font-size: .9rem; }
.module-grid article > span { color: var(--muted); font-size: .75rem; line-height: 1.45; }
.module-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.report-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.report-field { display: grid; gap: 5px; min-width: 130px; color: var(--muted); font-size: .7rem; font-weight: 750; }
.report-field input, .report-field select, .report-field textarea { width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 4px; background: #0c0c0f; color: var(--text); padding: 8px 10px; }
.report-field textarea { min-height: 84px; resize: vertical; }
.report-filters .button { min-height: 36px; }
.report-results { min-width: 0; }
.report-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.report-metrics > div { min-width: 0; padding: 14px; border-right: 1px solid var(--line); }
.report-metrics > div:last-child { border-right: 0; }
.report-metrics span, .report-metrics strong { display: block; overflow-wrap: anywhere; }
.report-metrics span { color: var(--dim); font-size: .67rem; text-transform: uppercase; }
.report-metrics strong { margin-top: 7px; font-family: var(--mono); font-size: 1.08rem; }
.report-band { min-width: 0; margin-top: 20px; }
.report-band h4 { margin: 0 0 9px; font-size: .88rem; }
.report-band table { min-width: 640px; }
.operation-note { min-width: 180px; }
.operation-note summary { color: var(--red-bright); cursor: pointer; font-size: .72rem; font-weight: 750; }
.operation-note-form { display: grid; gap: 8px; padding-top: 9px; }
.operation-note-form .button { justify-self: start; min-height: 36px; }
.report-trend-row { display: grid; grid-template-columns: 95px minmax(0, 1fr) 95px; align-items: center; gap: 9px; min-height: 30px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-family: var(--mono); font-size: .7rem; }
.report-trend-bar { display: block; height: 8px; min-width: 2px; background: var(--red); }
.report-trend-row strong { text-align: right; color: var(--text); }
.capability-list { display: grid; gap: 0; margin: 17px 0 0; padding: 0; border-top: 1px solid var(--line-soft); list-style: none; }
.capability-list li { position: relative; padding: 12px 0 12px 18px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: .8rem; line-height: 1.45; }
.capability-list li::before { position: absolute; top: 16px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--red); content: ""; }
.module-state-copy, .dialog-copy { margin: 18px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.dialog-copy { margin: 0 0 4px; font-size: .75rem; }
.system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.system-list { display: grid; gap: 0; margin: 18px 0 0; border-top: 1px solid var(--line-soft); }
.system-list div { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }

dialog { width: min(100% - 30px, 480px); max-height: calc(100vh - 30px); overflow: hidden; border: 1px solid var(--line); border-top: 3px solid var(--red); background: var(--surface); color: var(--text); padding: 0; }
dialog::backdrop { background: rgba(0, 0, 0, .74); }
.dialog-form { padding: 22px; overflow: auto; max-height: calc(100vh - 30px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.dialog-heading h3 { margin: 7px 0 0; font-size: 1.12rem; }
.icon-button { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); font-size: 1.2rem; }
.icon-button:hover { border-color: var(--red); color: var(--red-bright); }
.field-hint { color: var(--dim); font-size: .65rem; font-weight: 500; }
.field-help { display: block; color: var(--dim); font-size: .66rem; font-weight: 500; line-height: 1.4; }
.form-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.router-control-dialog { width: min(100% - 30px, 760px); }
.enrollment-command-dialog { width: min(100% - 30px, 880px); }
.enrollment-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; border: 1px solid var(--line); background: var(--surface); }
.enrollment-steps div { min-width: 0; padding: 14px; border-right: 1px solid var(--line); }
.enrollment-steps div:last-child { border-right: 0; }
.enrollment-steps span, .enrollment-steps strong, .enrollment-steps small { display: block; }
.enrollment-steps span { color: var(--red-bright); font-family: var(--mono); font-size: .65rem; }
.enrollment-steps strong { margin-top: 7px; font-size: .8rem; }
.enrollment-steps small { margin-top: 4px; color: var(--dim); font-size: .67rem; line-height: 1.4; }
.command-warning { margin: 16px 0 10px; border-left: 3px solid var(--amber); padding: 10px 12px; background: #211d15; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.command-shell { max-height: min(52vh, 520px); margin: 0; overflow: auto; border: 1px solid var(--line); background: #08080a; padding: 14px; color: #d7d7dc; font-family: var(--mono); font-size: .69rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.control-status { min-height: 1.25rem; margin: 5px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.control-status.is-error { color: var(--red-bright); }
.control-section { display: grid; grid-template-columns: minmax(180px, .85fr) minmax(180px, 1fr); gap: 12px 18px; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.control-section h4 { margin: 0; font-size: .9rem; }
.control-section p { margin: 6px 0 0; color: var(--dim); font-size: .72rem; line-height: 1.45; }
.control-section > label { align-self: start; }
.control-actions, .control-list { grid-column: 1 / -1; }
.control-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.control-list { border-top: 1px solid var(--line-soft); }
.control-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line-soft); padding: 9px 0; }
.control-row strong, .control-row span { display: block; overflow-wrap: anywhere; }
.control-row strong { font-size: .78rem; }
.control-row span { margin-top: 3px; color: var(--dim); font-family: var(--mono); font-size: .64rem; line-height: 1.4; }

@media (max-width: 1220px) {
  .workspace { padding: 26px 26px 46px; }
  .metric-strip-provider { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-bottom .surface:last-child { grid-column: span 2; }
}

@media (max-width: 920px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; width: 100%; min-width: 0; max-width: 100%; height: auto; min-height: 0; overflow: visible; padding: 13px 16px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .brand { padding: 0 0 11px; }
  .nav { display: grid; width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 0; }
  .nav-button { min-height: 35px; border-left: 2px solid transparent; padding: 0 10px; }
  .nav-button.is-current { border-left-color: var(--red); }
  .sidebar-meta { display: none; }
  .overview-grid { grid-template-columns: 1fr; }
  .surface-wide { min-height: auto; }
}

@media (max-width: 660px) {
  .workspace { padding: 20px 14px 34px; }
  .topbar, .section-toolbar { align-items: flex-start; flex-direction: column; }
  .topbar > div, .section-toolbar > div, .topbar-actions { min-width: 0; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { min-height: 113px; border-bottom: 1px solid var(--line); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(n + 3) { border-bottom: 0; }
  .metric strong { margin-top: 12px; font-size: 1.16rem; }
  .overview-bottom { grid-template-columns: 1fr; }
  .overview-bottom .surface:last-child { grid-column: auto; }
  .surface { padding: 16px; }
  .revenue-chart { gap: 4px; height: 174px; }
  .chart-day span { font-size: .5rem; }
  .health-list { grid-template-columns: 1fr; }
  .health-list div:nth-child(odd) { border-right: 0; padding-right: 0; }
  .health-list div:nth-child(even) { padding-left: 0; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .field-search { max-width: none; }
  .select-label select { flex: 1; }
  .access-summary, .owner-summary, .module-grid, .module-detail-grid, .system-grid, .enrollment-steps { grid-template-columns: 1fr; }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-metrics > div:nth-child(2) { border-right: 0; }
  .report-metrics > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .report-field { flex: 1 1 130px; }
  .access-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
  .access-summary div:last-child { border-bottom: 0; }
  .network-callout { flex-direction: column; }
  .network-callout strong { white-space: normal; }
  .form-split { grid-template-columns: 1fr; }
  .control-section { grid-template-columns: 1fr; }
  .enrollment-steps div { border-right: 0; border-bottom: 1px solid var(--line); }
  .enrollment-steps div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
