:root {
  color-scheme: light;
  --bg: #f5f6f7;
  --surface: #ffffff;
  --surface-subtle: #f8f9fa;
  --sidebar: #17191d;
  --sidebar-soft: #24272c;
  --sidebar-active: #383c44;
  --text: #222427;
  --muted: #727984;
  --border: #dfe3e7;
  --border-dark: #cfd4d9;
  --danger: #e3293d;
  --danger-soft: #fcebed;
  --positive: #0b8f64;
  --positive-soft: #e7f5ef;
  --warning: #b96d08;
  --warning-soft: #fff2df;
  --shadow: 0 1px 1px rgba(19, 24, 31, 0.02);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); font-size: 13px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #4a7fd1; outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: 29px; line-height: 1.18; letter-spacing: -0.02em; }
h2 { margin-bottom: 4px; font-size: 16px; line-height: 1.25; letter-spacing: -0.01em; }
p { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: 224px; min-height: 100vh; padding: 34px 20px 18px; flex-direction: column; color: #aeb4bd; background: var(--sidebar); }
.brand { display: flex; padding: 0 4px; flex-direction: column; color: white; }
.brand strong { font-size: 24px; letter-spacing: 0.015em; }
.brand span { margin-top: -1px; color: #a7acb4; font-size: 8px; font-weight: 600; letter-spacing: 0.02em; }
.site-select { display: flex; margin-top: 26px; padding: 11px 12px 10px; flex-direction: column; border-radius: 8px; background: var(--sidebar-soft); }
.site-select span, .nav-heading { color: #9299a3; font-size: 8px; font-weight: 600; letter-spacing: 0.04em; }
.site-select select { width: 100%; margin-top: 4px; padding: 0; color: white; border: 0; outline: 0; background: transparent; font-size: 13px; font-weight: 600; }
.nav-heading { display: block; margin: 33px 4px 10px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link, .support-link { display: flex; width: 100%; min-height: 44px; padding: 0 12px; align-items: center; gap: 12px; border: 0; border-radius: 7px; color: #aeb4bd; background: transparent; text-align: left; }
.nav-link:hover, .support-link:hover { color: white; background: #24272c; }
.nav-link.is-active { color: white; background: var(--sidebar-active); }
.nav-link svg, .support-link svg { flex: 0 0 auto; }
.nav-count { display: inline-grid; min-width: 24px; height: 24px; margin-left: auto; padding: 0 6px; place-items: center; color: #ffc4ca; border-radius: 7px; background: #62333a; font-size: 11px; font-weight: 700; }
.sidebar-support { margin-top: auto; }
.sidebar-support .nav-heading { margin-top: 20px; }
.team-block { display: flex; margin-top: 30px; padding: 16px 4px 0; flex-direction: column; border-top: 1px solid #30343a; }
.team-block strong { color: white; font-size: 11px; }
.team-block span { font-size: 9px; }
.nav-scrim { display: none; }

.main-column { min-height: 100vh; margin-left: 224px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; height: 64px; padding: 0 28px; align-items: center; border-bottom: 1px solid #f0f1f2; background: rgba(255,255,255,.97); }
.breadcrumb { color: #858c95; font-size: 11px; }
.top-actions { display: flex; margin-left: auto; align-items: center; gap: 24px; font-size: 11px; font-weight: 600; }
.demo-control { display: flex; align-items: center; gap: 7px; }
.demo-control select { padding: 2px 0; border: 0; background: transparent; color: #626a74; font-size: 11px; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: #818891; }
.language, .avatar { color: #31343a; }
.menu-button { display: none; width: 36px; height: 36px; margin-right: 8px; padding: 0; place-items: center; border: 0; border-radius: 6px; background: transparent; }

main { width: 100%; min-height: calc(100vh - 64px); padding: 26px 28px 14px; }
.page-header { display: flex; min-height: 64px; margin-bottom: 16px; align-items: flex-start; justify-content: space-between; gap: 20px; }
.page-header p { margin: 0; font-size: 12px; }
.card { border: 1px solid var(--border); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.kpi-grid { display: grid; margin-bottom: 18px; gap: 16px; }
.four-col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-card { display: flex; min-height: 109px; padding: 16px; flex-direction: column; transition: border-color .15s, transform .15s; }
a.kpi-card:hover { border-color: var(--border-dark); transform: translateY(-1px); }
.kpi-label { color: #606873; font-weight: 600; }
.kpi-value { margin: 4px 0 1px; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.kpi-detail { color: #8a919a; font-size: 10px; }
.tone-positive { color: var(--positive); }
.tone-danger { color: var(--danger); }
.tone-warning { color: var(--warning); }
.tone-muted { color: #444a51; }

.button { display: inline-flex; min-height: 36px; padding: 0 14px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border); border-radius: 6px; background: white; font-size: 12px; font-weight: 650; white-space: nowrap; }
.button:hover { background: #f7f8f9; }
.button:disabled { cursor: not-allowed; color: #9299a3; background: #f3f4f5; }
.button-primary { color: white; border-color: #202327; background: #202327; }
.button-primary:hover { background: #30343a; }
.button-success { color: white; border-color: var(--positive); background: var(--positive); }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.icon-button, .row-action { display: inline-grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 0; border-radius: 6px; background: transparent; }
.text-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; }

.section-heading { display: flex; padding: 17px 17px 11px; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-heading h2, .section-heading p { margin-bottom: 0; }
.section-heading p { margin-top: 3px; font-size: 10px; }
.overview-grid { display: grid; margin-bottom: 18px; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .9fr); gap: 16px; }
.condition-card { min-height: 194px; }
.condition-score { display: flex; padding: 2px 17px 11px; align-items: baseline; gap: 10px; }
.condition-score strong { font-size: 31px; }
.condition-score span { color: var(--muted); }
.condition-bar { display: flex; height: 10px; margin: 0 17px 12px; overflow: hidden; border-radius: 3px; background: #edf0f2; gap: 2px; }
.condition-bar span { display: block; height: 100%; }
.bar-normal { background: var(--positive); }
.bar-danger { background: var(--danger); }
.bar-muted { background: #aab0b8; }
.condition-legend { display: flex; padding: 0 17px; gap: 26px; color: #727984; font-size: 10px; flex-wrap: wrap; }
.condition-legend span { display: inline-flex; align-items: center; gap: 6px; }
.condition-legend i { width: 6px; height: 6px; border-radius: 50%; }
.legend-normal { background: var(--positive); }.legend-danger { background: var(--danger); }.legend-muted { background: #aab0b8; }
.fine-print { margin: 13px 17px 15px; font-size: 9px; }
.metric-list { margin: 0; padding: 0 17px 10px; list-style: none; }
.metric-list li { display: grid; min-height: 45px; align-items: center; grid-template-columns: 36px 1fr; border-top: 1px solid #eceef0; }
.metric-list strong { font-size: 20px; }
.metric-list span { color: #5f6670; font-size: 11px; }
.priority-card { margin-bottom: 18px; }
.network-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.network-card { display: flex; min-height: 83px; padding: 13px 15px; flex-direction: column; }
.network-card span { color: #5f6670; font-size: 11px; }.network-card strong { font-size: 20px; }.network-card small { color: #8a919a; font-size: 9px; }

.filter-bar, .report-toolbar { display: flex; min-height: 61px; margin-bottom: 18px; padding: 10px 14px; align-items: center; gap: 12px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { color: var(--muted); font-size: 10px; font-weight: 600; }
.field select, .search-field input, .form-grid input, .form-grid select, .preference-list select { height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; background: white; font-size: 12px; font-weight: 600; }
.filter-bar .field select { min-width: 155px; }
.compact-field select { min-width: 150px; }
.search-field { flex: 1 1 240px; }
.search-field input { width: 100%; }
.push-right { margin-left: auto; }
.table-card { overflow: hidden; }
.responsive-table { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { color: #747b85; background: #f6f7f8; font-size: 10px; text-align: left; }
th { height: 36px; padding: 0 17px; font-weight: 600; white-space: nowrap; }
td { height: 59px; padding: 9px 17px; border-top: 1px solid #e4e7ea; color: #5f6670; white-space: nowrap; }
td strong { color: var(--text); font-weight: 650; }
.clickable-row, .selectable-row { cursor: pointer; }
.clickable-row:hover, .selectable-row:hover, .selectable-row.is-selected { background: #fafbfb; }
.selectable-row.is-selected { box-shadow: inset 3px 0 0 var(--text); }
.row-note { display: block; margin-top: 2px; color: var(--warning); font-size: 9px; }
.stale-value { color: #777f88; font-style: italic; }
.trend-cell { display: inline-flex; align-items: center; gap: 8px; }.trend-cell strong { color: var(--danger); font-size: 10px; }.sparkline { width: 52px; height: 20px; }
.table-footer { display: flex; min-height: 49px; padding: 9px 17px; align-items: center; justify-content: space-between; color: #7d848d; border-top: 1px solid #e4e7ea; font-size: 10px; }
.pagination { display: flex; gap: 3px; }
.page-button { display: inline-grid; min-width: 28px; height: 28px; padding: 0 7px; place-items: center; border: 1px solid transparent; border-radius: 5px; background: transparent; }
.page-button.is-active { color: white; background: #24272c; }.page-button:disabled { opacity: .35; cursor: default; }
.empty-state { display: grid; min-height: 250px; padding: 34px; place-items: center; align-content: center; text-align: center; }
.empty-state p { margin: 4px 0 0; }.empty-icon { display: inline-grid; width: 45px; height: 45px; margin-bottom: 10px; place-items: center; color: #7c838c; border-radius: 50%; background: #f0f2f3; }

.status { display: inline-flex; min-height: 24px; padding: 3px 9px; align-items: center; gap: 6px; border-radius: 5px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-normal, .status-online, .status-resolved, .status-completed, .status-running { color: #087a56; background: var(--positive-soft); }
.status-attention, .status-open { color: #cf1f34; background: var(--danger-soft); }
.status-unavailable, .status-draft, .status-unknown { color: #656d76; background: #edf0f2; }
.status-acknowledged, .status-learning, .status-stopped { color: #9a5a04; background: var(--warning-soft); }

.detail-title-row { display: flex; margin-bottom: 14px; align-items: flex-start; justify-content: space-between; }
.back-link { display: inline-flex; margin-bottom: 5px; align-items: center; gap: 3px; color: #737a84; font-size: 10px; }
.title-with-status { display: flex; align-items: center; gap: 14px; }.title-with-status h1, .title-with-status h2 { margin: 0; }
.detail-title-row p { margin: 5px 0 0; }
.detail-summary { display: grid; min-height: 100px; margin-bottom: 16px; padding: 17px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.detail-summary > div { display: flex; flex-direction: column; gap: 8px; }.detail-summary > div > span:first-child { color: #7c838c; font-size: 11px; }.detail-summary strong { font-size: 17px; }
.point-toolbar { display: flex; min-height: 58px; margin-bottom: 16px; padding: 9px 14px; align-items: center; gap: 16px; }
.point-toolbar > span { color: #6c737d; font-size: 11px; font-weight: 650; }
.segmented { display: flex; gap: 8px; }
.segmented button { min-height: 34px; padding: 0 14px; border: 1px solid var(--border); border-radius: 5px; background: white; font-size: 11px; font-weight: 650; }
.segmented button.is-active { color: white; border-color: #202327; background: #202327; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; }
.chart-card { min-width: 0; min-height: 268px; }
.chart-wrap { position: relative; width: 100%; padding: 0 13px 8px; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: #e3e6e9; stroke-width: 1; }.chart-axis { fill: #858c94; font-size: 9px; }.chart-line { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; }.baseline-line { stroke: #78b7a2; stroke-width: 1.2; }.baseline-label { fill: #4d8b76; font-size: 8px; }.chart-hit { fill: transparent; pointer-events: all; }.chart-point { fill: white; stroke: #e3293d; stroke-width: 1.8; pointer-events: none; }.chart-crosshair { stroke: #9aa0a8; stroke-dasharray: 3 3; }.chart-tooltip { position: absolute; top: 4px; left: 50%; z-index: 2; padding: 5px 8px; transform: translateX(-50%); color: white; border-radius: 4px; background: #202327; font-size: 9px; pointer-events: none; }
.gap-flag { padding: 3px 7px; color: var(--warning); border-radius: 4px; background: var(--warning-soft); font-size: 9px; }
.condition-panel, .activity-panel { display: flex; padding: 17px; flex-direction: column; align-items: flex-start; }
.condition-panel .condition-value { margin-top: 16px; font-size: 30px; }.condition-panel > span:not(.status) { color: var(--muted); font-size: 10px; }.condition-panel p { margin: 14px 0 16px; }.activity-panel .section-heading { width: 100%; padding: 0 0 10px; }
.activity-list { width: 100%; margin-bottom: auto; }.activity-item { display: flex; padding: 9px 0; flex-direction: column; border-bottom: 1px solid #e7e9eb; }.activity-item span { color: #8a919a; font-size: 9px; }.activity-item strong { margin-top: 3px; font-size: 11px; }
.activity-panel .button { margin-top: 15px; }.detail-disclaimer { margin: 13px 0 0; font-size: 9px; }

.alert-detail { display: flex; min-height: 151px; margin-top: 16px; padding: 17px; align-items: flex-end; justify-content: space-between; gap: 20px; }
.alert-detail-main { min-width: 0; }.alert-detail-main > p { margin: 12px 0 7px; }.evidence-row { display: flex; color: #858c95; gap: 18px; flex-wrap: wrap; font-size: 10px; }.alert-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.alert-notes { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eceef0; }.alert-notes p { display: flex; margin: 6px 0 0; gap: 8px; }.alert-notes p span { color: #959ba3; font-size: 9px; }

.sensor-toolbar .segmented { margin-right: 6px; }.sensor-toolbar .search-field { max-width: 260px; }
.report-toolbar > span { margin-right: 8px; color: #747b85; font-weight: 650; }
.report-preview-grid { display: grid; margin-bottom: 18px; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; }
.report-summary, .coverage-card { min-height: 219px; padding: 18px; }
.report-summary > p { font-size: 11px; }.report-summary ul { margin: 14px 0 16px; padding-left: 17px; color: #5f6670; line-height: 2; }
.coverage-card { display: flex; flex-direction: column; }.coverage-card strong { margin-top: 18px; font-size: 34px; }.coverage-card span { color: #747b85; }.coverage-bar { height: 12px; margin: 20px 0 12px; overflow: hidden; border-radius: 4px; background: #e8ebed; }.coverage-bar i { display: block; height: 100%; background: var(--positive); }.coverage-card p { margin-top: 0; font-size: 10px; }

.settings-tabs { display: flex; margin-bottom: 16px; padding: 8px; gap: 8px; overflow-x: auto; }
.settings-tabs button { flex: 0 0 auto; min-width: 112px; }
.settings-grid { display: grid; margin-bottom: 16px; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; }
.settings-card { margin-bottom: 16px; padding: 18px; }.settings-grid .settings-card { margin-bottom: 0; }
.settings-card > p { margin-bottom: 16px; font-size: 11px; }
.form-grid { display: grid; margin: 15px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.form-grid label { display: flex; flex-direction: column; color: #777e87; gap: 5px; font-size: 10px; }.form-grid input:disabled { color: #30343a; background: #f8f9fa; opacity: 1; }
.team-summary { display: flex; flex-direction: column; align-items: flex-start; }.team-summary strong { margin-top: 13px; }.team-summary span { color: var(--muted); }.team-summary p { margin: 10px 0 20px; }
.preference-list { display: grid; }.preference-list label { display: flex; min-height: 44px; align-items: center; justify-content: space-between; border-top: 1px solid #eceef0; }.preference-list label > span { display: flex; flex-direction: column; }.preference-list small { color: var(--muted); font-size: 10px; }.preference-list input[type="checkbox"] { width: 34px; height: 18px; accent-color: #202327; }.preference-list.large label { min-height: 66px; }
.support-card { min-height: 110px; }.support-card .button { margin-top: -4px; }
.member-list { margin: 16px 0; }.member-list > div { display: grid; min-height: 68px; align-items: center; grid-template-columns: 38px 1fr auto; gap: 11px; border-top: 1px solid #eceef0; }.member-avatar { display: inline-grid; width: 34px; height: 34px; place-items: center; color: white; border-radius: 50%; background: #3d4249; font-size: 10px; }.member-list p { display: flex; margin: 0; flex-direction: column; }.member-list p span { color: var(--muted); font-size: 10px; }

.scenario-state { display: grid; min-height: calc(100vh - 160px); place-items: center; align-content: center; }.skeleton { overflow: hidden; border-radius: 7px; background: linear-gradient(90deg,#eceff1 25%,#f7f8f9 50%,#eceff1 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }.skeleton-title { width: 260px; height: 34px; margin-bottom: 20px; }.skeleton-grid { display: grid; width: min(900px,100%); margin-bottom: 16px; grid-template-columns: repeat(4,1fr); gap: 14px; }.skeleton-card { height: 105px; }.skeleton-table { width: min(900px,100%); height: 280px; }.scenario-state > p { margin-top: 18px; }.error-state { text-align: center; }.error-state h2 { margin-top: 15px; }.error-state p { max-width: 480px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; padding: 18px; place-items: center; background: rgba(12,14,17,.48); }.modal { width: min(520px, 100%); max-height: 90vh; overflow: auto; border-radius: 10px; background: white; box-shadow: 0 24px 70px rgba(0,0,0,.22); }.modal > header, .modal > footer { display: flex; padding: 16px 18px; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8eaec; }.modal > header h2 { margin: 0; }.modal > footer { justify-content: flex-end; border-top: 1px solid #e8eaec; border-bottom: 0; gap: 9px; }.modal-body { padding: 18px; }.modal-field { display: flex; flex-direction: column; gap: 7px; font-weight: 650; }.modal-field textarea { width: 100%; padding: 10px; resize: vertical; border: 1px solid var(--border); border-radius: 6px; }.modal-note { margin: 10px 0 0; font-size: 10px; }.report-demo-label { color: var(--danger); font-size: 9px; font-weight: 800; letter-spacing: .08em; }.report-modal h3 { margin: 6px 0 15px; }.report-modal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.report-modal-grid div { display: flex; padding: 12px; flex-direction: column; border-radius: 7px; background: #f4f6f7; }.report-modal-grid strong { font-size: 22px; }.report-modal-grid span { color: var(--muted); font-size: 9px; }.report-modal p { margin: 16px 0 0; }
.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: grid; gap: 8px; }.toast { max-width: 360px; padding: 12px 15px; color: white; border-radius: 7px; background: #22262b; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: 11px; }
.concept-footer { margin-top: 20px; color: #7c838c; font-size: 8px; letter-spacing: .04em; }

@media (min-width: 1280px) {
  main { padding-right: 32px; padding-left: 32px; }
}

@media (max-width: 1080px) {
  .four-col { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .85fr); }
  .point-toolbar { align-items: flex-start; flex-wrap: wrap; }.point-toolbar .push-right { margin-left: 0; }
  .detail-summary { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 18px 0 45px rgba(0,0,0,.18); }
  .nav-open .sidebar { transform: translateX(0); }
  .nav-scrim { position: fixed; inset: 0; z-index: 25; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.34); }
  .nav-open .nav-scrim { display: block; }
  .main-column { margin-left: 0; }
  .menu-button { display: inline-grid; }
  .topbar { height: 58px; padding: 0 16px; }.top-actions { gap: 12px; }.breadcrumb { display: none; }
  main { min-height: calc(100vh - 58px); padding: 20px 16px 12px; }
  .overview-grid, .detail-grid, .report-preview-grid, .settings-grid { grid-template-columns: 1fr; }
  .network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .network-grid > :last-child { grid-column: 1 / -1; }
  .alert-detail { align-items: flex-start; flex-direction: column; }
  .detail-summary { grid-template-columns: repeat(2, 1fr); }
  .report-toolbar .push-right { margin-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 12px; }
  h1 { font-size: 25px; }
  main { padding: 16px 12px 12px; }
  .page-header { min-height: auto; margin-bottom: 12px; flex-direction: column; gap: 12px; }.page-header > .button, .page-header > .field { width: 100%; }.page-header select { width: 100%; }
  .kpi-grid { margin-bottom: 14px; }
  .four-col, .three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .three-col > :last-child { grid-column: 1 / -1; }
  .kpi-card { min-width: 0; min-height: 84px; padding: 12px; }
  .kpi-label { font-size: 10px; line-height: 1.2; }
  .kpi-value { margin-top: 3px; font-size: 23px; }
  .kpi-detail { font-size: 9px; line-height: 1.25; }
  .network-grid { gap: 8px; }
  .network-card { min-width: 0; min-height: 76px; padding: 11px 12px; }
  .network-card span { font-size: 10px; }.network-card strong { font-size: 19px; }.network-card small { line-height: 1.25; }
  .condition-legend { gap: 12px; }
  .filter-bar, .report-toolbar { align-items: stretch; flex-direction: column; }.filter-bar .field select, .search-field, .sensor-toolbar .search-field { width: 100%; max-width: none; }
  .segmented { width: 100%; overflow-x: auto; }.segmented button { flex: 0 0 auto; }
  .point-toolbar { align-items: stretch; flex-direction: column; }.point-toolbar .field select { width: 100%; }
  .detail-summary { grid-template-columns: 1fr 1fr; gap: 16px; }
  .detail-summary > div:last-child { grid-column: 1 / -1; }
  .condition-panel .condition-value { font-size: 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .top-actions .language { display: none; }.demo-control select { max-width: 105px; }
  .table-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
  .responsive-table { overflow: visible; padding: 0 10px 10px; }
  .responsive-table table, .responsive-table tbody { display: block; width: 100%; }
  .responsive-table thead { display: none; }
  .responsive-table tbody { display: grid; gap: 9px; }
  .responsive-table tr { position: relative; display: grid; padding: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
  .responsive-table td { display: block; min-width: 0; height: auto; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  .responsive-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; color: #8a919a; font-size: 8px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
  .responsive-table td:first-child { grid-column: 1 / -1; padding-right: 20px; }
  .responsive-table td:first-child strong { font-size: 14px; }
  .responsive-table td[data-label=""] { display: none; }
  .responsive-table .trend-cell { display: flex; white-space: normal; }
  .priority-card .section-heading { padding-bottom: 13px; }
  .report-modal-grid { grid-template-columns: 1fr; }
  .skeleton-grid { grid-template-columns: 1fr 1fr; }
}

/* Operational hierarchy and mobile navigation */
.overview-condition{grid-template-columns:1fr}
.history-card,.shift-card{margin-bottom:18px}
.history-chart{display:flex;align-items:stretch;gap:4px;height:160px;padding:12px 17px 0}
.history-column{display:flex;flex-direction:column;flex:1;min-width:0;overflow:hidden;border-radius:3px 3px 0 0;background:#edf0f2}
.history-column span{min-height:0}
.history-normal{background:var(--positive)}
.history-attention{background:var(--danger)}
.history-unknown{background:#a1a8b1}
.history-axis{display:flex;justify-content:space-between;padding:8px 17px 12px;color:var(--muted);font-size:12px}
.history-card .condition-legend{padding-bottom:15px}
.history-card .section-heading>strong{font-size:22px;padding-left:12px}
.availability-chart{height:90px}
.report-comparison{display:grid;gap:8px;padding:8px 17px 18px}
.report-comparison span{display:flex;justify-content:space-between}
.report-comparison div{height:12px;border-radius:5px;background:#edf0f2;overflow:hidden}
.report-comparison i{display:block;height:100%;background:var(--danger)}
.report-comparison i.resolved{background:var(--positive)}
.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}
.mobile-bottom-nav{display:none}
@media(max-width:820px){
 main{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
 .mobile-bottom-nav{display:flex;position:fixed;z-index:20;bottom:0;left:0;right:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--border);box-shadow:0 -4px 20px #00000008}
 .mobile-bottom-nav a,.mobile-bottom-nav button{display:flex;flex:1;min-width:0;min-height:50px;align-items:center;justify-content:center;gap:3px;flex-direction:column;background:none;border:0;font-size:11px;color:#626a74;font-weight:650;text-decoration:none}
 .mobile-bottom-nav .is-active{color:var(--danger)}
 .button,.segmented button,.field select,.search-field input,.page-button{min-height:44px}
 .alert-detail{scroll-margin-top:14px}
}
@media(max-width:560px){
 body{font-size:14px}
 .kpi-label,.kpi-detail,.section-heading p,.responsive-table td::before,.row-note,.condition-legend{font-size:11px}
 .kpi-label,.kpi-detail{overflow-wrap:anywhere}
 .responsive-table td:first-child strong{font-size:15px}
 .responsive-table td{font-size:13px}
 .history-chart{height:140px;gap:2px;padding-inline:12px}
 .history-axis{padding-inline:12px}
 .availability-chart{height:80px}
 .history-card .condition-legend{gap:8px;padding-inline:12px}
 .detail-metrics .kpi-card{overflow-wrap:anywhere}
 .filter-bar .field select{font-size:14px}
}
