:root {
  color-scheme: light;
  --page: #f3f7f5;
  --surface: #ffffff;
  --surface-soft: #f7faf8;
  --surface-strong: #eaf1ed;
  --ink: #18352f;
  --ink-soft: #60756e;
  --ink-faint: #879891;
  --line: #e1eae5;
  --line-strong: #d3e0d9;
  --accent: #147d68;
  --accent-strong: #0c6757;
  --accent-soft: #e2f3ed;
  --accent-glow: rgba(20, 125, 104, .12);
  --good: #19845d;
  --good-soft: #e4f5ec;
  --warn: #a96713;
  --warn-soft: #fff3dc;
  --bad: #b44340;
  --bad-soft: #fff0ed;
  --neutral: #697b75;
  --neutral-soft: #edf2ef;
  --shadow: 0 18px 50px rgba(28, 65, 52, .06);
  --radius: 18px;
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #111a17;
  --surface: #18231f;
  --surface-soft: #1c2924;
  --surface-strong: #26362f;
  --ink: #e7f1ec;
  --ink-soft: #a4b5ad;
  --ink-faint: #82968c;
  --line: #2c3c35;
  --line-strong: #3a4d44;
  --accent: #55c5a5;
  --accent-strong: #74d9b7;
  --accent-soft: #1f3b32;
  --accent-glow: rgba(85, 197, 165, .12);
  --good: #6fd3a1;
  --good-soft: #1d3a2d;
  --warn: #e4b65d;
  --warn-soft: #3b3020;
  --bad: #f08379;
  --bad-soft: #3d2928;
  --neutral: #a3b0aa;
  --neutral-soft: #293630;
  --shadow: 0 18px 50px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); transition: background .2s ease, color .2s ease; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.topbar { height: 68px; padding: 0 max(20px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand > span:last-child { display: grid; line-height: 1.1; }
.brand strong { font-size: 15px; letter-spacing: .03em; }
.brand small { margin-top: 5px; color: var(--ink-faint); font-size: 10px; letter-spacing: .08em; }
.brand-mark { width: 34px; height: 34px; display: inline-flex; align-items: end; justify-content: center; gap: 3px; border-radius: 11px; background: var(--accent-soft); padding: 8px; flex: none; }
.brand-mark span { display: block; width: 4px; border-radius: 4px; background: var(--accent); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .65; }
.brand-mark span:nth-child(2) { height: 15px; }
.brand-mark span:nth-child(3) { height: 11px; opacity: .8; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.connection-state { color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; font-size: 12px; white-space: nowrap; }
.connection-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); box-shadow: 0 0 0 3px var(--neutral-soft); }
.connection-state.is-online i { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.connection-state.is-offline i { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.connection-state.is-paused i { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.icon-button, .quiet-button { min-width: 40px; min-height: 40px; border: 1px solid transparent; border-radius: 12px; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
.icon-button:hover, .quiet-button:hover { background: var(--surface-soft); border-color: var(--line); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="light"] .moon-icon, :root:not([data-theme="dark"]) .moon-icon { display: none; }
:root[data-theme="dark"] .sun-icon { display: none; }
.quiet-button { padding: 0 12px; color: var(--ink-soft); font-size: 12px; }

.main-content { width: min(100% - 40px, 1160px); margin: 0 auto; padding: 34px 0 52px; }
.demo-banner { position: sticky; top: 68px; z-index: 15; margin: -17px 0 24px; min-height: 40px; padding: 9px 14px; display: flex; align-items: center; gap: 9px; color: #654514; background: #fff3d9; border: 1px solid #f0d99f; border-radius: 12px; box-shadow: 0 8px 24px rgba(98, 72, 22, .08); font-size: 12px; }
:root[data-theme="dark"] .demo-banner { color: #f1d392; background: #382f20; border-color: #594b2c; }
.demo-banner strong { font-size: 12px; }
.demo-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #d59121; box-shadow: 0 0 0 3px rgba(213, 145, 33, .15); }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 4px 0 27px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .15em; }
h1, h2, h3, p { margin-top: 0; }
.page-heading h1 { margin: 0; font-size: clamp(30px, 5vw, 40px); line-height: 1.1; letter-spacing: -.045em; font-weight: 650; }
.heading-period { color: var(--accent); }
.subheading { margin: 9px 0 0; color: var(--ink-soft); font-size: 13px; }
.refresh-button, .primary-button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 0; border-radius: 12px; padding: 0 15px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 650; cursor: pointer; transition: transform .15s, background .15s, opacity .15s; }
:root[data-theme="dark"] .refresh-button, :root[data-theme="dark"] .primary-button { color: #10211b; }
.refresh-button:hover, .primary-button:hover { background: var(--accent-strong); transform: translateY(-1px); }
.refresh-button:disabled, .primary-button:disabled { cursor: wait; opacity: .62; transform: none; }
.refresh-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.notice-banner { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; margin: 0 0 14px; border: 1px solid; border-radius: 14px; }
.notice-banner strong { display: block; font-size: 12px; }
.notice-banner p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.notice-error-list { margin: 6px 0 0; padding-left: 16px; font-size: 11px; line-height: 1.55; }
.notice-error-list li { margin: 3px 0; overflow-wrap: anywhere; }
.notice-warning { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, var(--line)); }
.notice-error { color: var(--bad); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 25%, var(--line)); }
.notice-icon { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 700; }

.section-block { margin-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.section-meta { color: var(--ink-faint); font-size: 11px; text-align: right; overflow-wrap: anywhere; }
.summary-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.summary-item { padding: 13px 14px; min-height: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.summary-item .summary-label { display: block; color: var(--ink-soft); font-size: 10px; }
.summary-item strong { display: block; margin-top: 8px; font-size: 20px; letter-spacing: -.03em; font-weight: 650; }
.summary-item.is-good strong { color: var(--good); }
.summary-item.is-warning strong { color: var(--warn); }
.summary-item.is-bad strong { color: var(--bad); }

.exceptions-section { margin: 18px 0 20px; }
.subsection-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.subsection-heading h3 { margin: 0; font-size: 13px; }
.count-pill { min-width: 21px; height: 21px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 20px; color: var(--bad); background: var(--bad-soft); font-size: 10px; font-weight: 700; }
.exception-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.exception-card { min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 13px; background: var(--surface); }
.exception-card.is-critical { border-left-color: var(--bad); }
.exception-card.is-unknown { border-left-color: var(--neutral); }
.exception-copy { min-width: 0; }
.exception-copy strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.exception-copy p { margin: 4px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.exception-indicator { width: 8px; height: 8px; flex: none; margin-top: 4px; border-radius: 50%; background: var(--warn); }
.exception-card.is-critical .exception-indicator { background: var(--bad); }
.exception-card.is-unknown .exception-indicator { background: var(--neutral); }

.containers-list { display: grid; gap: 10px; }
.container-card, .panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.container-card { overflow: hidden; }
.container-card.is-stale { border-color: color-mix(in srgb, var(--warn) 34%, var(--line)); }
.container-head { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 17px; }
.container-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.container-symbol { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.container-symbol svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.container-title-wrap { min-width: 0; }
.container-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.container-name { max-width: 100%; margin: 0; font-size: 14px; line-height: 1.25; font-weight: 650; overflow-wrap: anywhere; }
.container-subtitle { max-width: 100%; margin: 5px 0 0; color: var(--ink-faint); font-size: 10px; overflow-wrap: anywhere; }
.state-badge, .health-badge, .check-badge, .severity-badge { min-height: 22px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.state-badge::before, .health-badge::before, .check-badge::before, .severity-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tone-good { color: var(--good); background: var(--good-soft); }
.tone-warn { color: var(--warn); background: var(--warn-soft); }
.tone-bad { color: var(--bad); background: var(--bad-soft); }
.tone-neutral { color: var(--neutral); background: var(--neutral-soft); }
.container-actions { display: flex; align-items: center; gap: 7px; }
.metric-chip { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 10px; white-space: nowrap; }
.metric-chip b { color: var(--ink); font-size: 11px; font-weight: 650; }
.expand-button { width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-soft); cursor: pointer; transition: transform .2s, background .15s; }
.expand-button:hover { background: var(--surface-soft); }
.expand-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.container-card.is-open .expand-button svg { transform: rotate(180deg); }
.container-details { border-top: 1px solid var(--line); padding: 16px 17px 18px; background: var(--surface-soft); }
.detail-state-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.detail-state-line .detail-label { color: var(--ink-faint); margin-right: 1px; font-size: 10px; }
.stale-tag { color: var(--warn); font-size: 10px; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.detail-cell { min-width: 0; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.detail-cell span { display: block; color: var(--ink-faint); font-size: 9px; }
.detail-cell strong { display: block; margin-top: 6px; font-size: 11px; line-height: 1.45; font-weight: 600; overflow-wrap: anywhere; }
.check-list { margin-top: 16px; }
.check-list h4, .detail-chart-heading h4, .logs-heading h4 { margin: 0; font-size: 11px; }
.check-rows { display: grid; gap: 7px; margin-top: 8px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.check-row-copy { min-width: 0; flex: 1; }
.check-row-copy strong { display: block; font-size: 10px; overflow-wrap: anywhere; }
.check-row-copy p { margin: 3px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.check-latency { flex: none; color: var(--ink-faint); font-size: 9px; white-space: nowrap; }
.checks-unconfigured { margin: 8px 0 0; padding: 10px; color: var(--neutral); border: 1px dashed var(--line-strong); border-radius: 10px; font-size: 10px; }
.detail-chart { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-chart-heading, .logs-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.detail-chart-heading p, .logs-heading p { margin: 3px 0 0; color: var(--ink-faint); font-size: 9px; }
.logs-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.logs-button { min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink-soft); background: var(--surface); font-size: 10px; cursor: pointer; }
.logs-button:hover { border-color: var(--accent); color: var(--accent); }
.logs-button:disabled { opacity: .58; cursor: not-allowed; }
.logs-output { max-height: 310px; overflow: auto; margin: 10px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--page); color: var(--ink-soft); font: 10px/1.6 Consolas, "Cascadia Code", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.logs-note { margin: 7px 0 0; color: var(--ink-faint); font-size: 9px; }

.empty-state { margin: 0; padding: 19px; color: var(--ink-faint); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 14px; font-size: 12px; text-align: center; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.metric-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.metric-card-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.metric-card-top span { color: var(--ink-soft); font-size: 11px; }
.metric-card-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--accent); background: var(--accent-soft); font-size: 13px; }
.metric-value { margin: 12px 0 0; font-size: clamp(18px, 3vw, 24px); line-height: 1.1; font-weight: 650; letter-spacing: -.035em; overflow-wrap: anywhere; }
.metric-caption { min-height: 14px; margin: 7px 0 0; color: var(--ink-faint); font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.meter-track { width: 100%; height: 4px; margin-top: 12px; overflow: hidden; border-radius: 10px; background: var(--surface-strong); }
.meter-fill { height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s; }
.meter-fill.is-warn { background: var(--warn); }
.meter-fill.is-bad { background: var(--bad); }
.meter-fill.is-stale { background: var(--neutral); }
.chart-panel { margin-top: 13px; padding: 16px 17px 10px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-heading h3 { margin: 0; font-size: 12px; }
.muted-copy { margin: 5px 0 0; color: var(--ink-faint); font-size: 10px; }
.chart-legend { display: flex; align-items: center; gap: 13px; color: var(--ink-soft); font-size: 9px; white-space: nowrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.legend-cpu { background: var(--accent); }
.legend-memory { background: #5b83c6; }
.chart-wrap { min-width: 0; min-height: 190px; margin-top: 10px; position: relative; }
.chart-svg { width: 100%; height: 190px; overflow: visible; display: block; }
.chart-empty { display: grid; min-height: 170px; place-items: center; padding: 20px; color: var(--ink-faint); font-size: 11px; text-align: center; }
.chart-tooltip { position: absolute; z-index: 2; max-width: 190px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-size: 9px; line-height: 1.55; pointer-events: none; }
.updated-at { margin: 10px 2px 0; color: var(--ink-faint); font-size: 10px; text-align: right; }

.incidents-list { display: grid; gap: 8px; }
.incident-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 11px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.incident-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: var(--neutral); background: var(--neutral-soft); font-size: 13px; }
.incident-mark.is-warning { color: var(--warn); background: var(--warn-soft); }
.incident-mark.is-critical { color: var(--bad); background: var(--bad-soft); }
.incident-copy { min-width: 0; }
.incident-copy h3 { margin: 0; font-size: 11px; overflow-wrap: anywhere; }
.incident-copy p { margin: 4px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.incident-copy p.incident-source { color: var(--ink-faint); font-size: 9px; }
.incident-meta { display: flex; align-items: center; flex-direction: column; gap: 6px; color: var(--ink-faint); text-align: right; font-size: 9px; white-space: nowrap; }
.severity-badge { min-height: 20px; font-size: 8px; }
.page-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 33px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 9px; }
.toast { position: fixed; z-index: 50; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: min(90vw, 460px); padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font-size: 11px; text-align: center; }

.login-view { min-height: calc(100vh - 170px); display: grid; place-items: center; padding: 22px 0; }
.login-card { width: min(100%, 420px); padding: 33px clamp(22px, 7vw, 38px) 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 24px 70px rgba(23, 67, 52, .09); }
.login-emblem { display: flex; justify-content: center; margin: 0 auto 18px; }
.login-emblem .brand-mark { width: 48px; height: 48px; border-radius: 16px; gap: 4px; padding: 11px; }
.login-emblem .brand-mark span { width: 5px; }
.login-emblem .brand-mark span:nth-child(1) { height: 12px; }
.login-emblem .brand-mark span:nth-child(2) { height: 22px; }
.login-emblem .brand-mark span:nth-child(3) { height: 16px; }
.login-card .eyebrow { text-align: center; }
.login-card h1 { margin: 0; text-align: center; font-size: 27px; letter-spacing: -.04em; }
.login-intro { margin: 10px 0 24px; color: var(--ink-soft); text-align: center; font-size: 12px; line-height: 1.6; }
.field-label { display: block; margin: 15px 0 7px; color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.login-card input { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 11px; outline: none; background: var(--surface-soft); color: var(--ink); font-size: 13px; }
.login-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-error { margin: 12px 0 0; padding: 9px 10px; border-radius: 9px; background: var(--bad-soft); color: var(--bad); font-size: 11px; line-height: 1.5; }
.login-submit { width: 100%; margin-top: 20px; }
.login-submit span:first-child { flex: 1; text-align: center; padding-left: 16px; }
.login-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 20px 0 0; color: var(--ink-faint); font-size: 9px; }
.lock-mark { width: 15px; height: 15px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 10px; }

@media (max-width: 760px) {
  .topbar { height: 60px; padding: 0 18px; }
  .main-content { width: min(100% - 32px, 640px); padding-top: 25px; }
  .demo-banner { top: 60px; margin-top: -10px; }
  .summary-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-item { min-height: 68px; padding: 11px 12px; }
  .summary-item strong { font-size: 18px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .main-content { width: calc(100% - 28px); padding-top: 21px; }
  .topbar { padding: 0 14px; }
  .brand-mark { width: 31px; height: 31px; }
  .connection-state { font-size: 10px; }
  .topbar-actions { gap: 5px; }
  .quiet-button { padding: 0 8px; }
  .page-heading { align-items: center; margin-bottom: 22px; }
  .page-heading h1 { font-size: 31px; }
  .subheading { max-width: 230px; font-size: 11px; line-height: 1.5; }
  .refresh-button { width: 43px; padding: 0; flex: none; }
  .refresh-button span { display: none; }
  .refresh-button svg { width: 18px; height: 18px; }
  .section-block { margin-top: 27px; }
  .section-heading h2 { font-size: 19px; }
  .section-meta { max-width: 42%; font-size: 9px; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .summary-item:last-child:nth-child(odd) { grid-column: span 2; }
  .summary-item { min-height: 64px; }
  .exception-list { grid-template-columns: 1fr; }
  .container-head { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 13px 12px; }
  .container-identity { gap: 8px; }
  .container-symbol { width: 32px; height: 32px; border-radius: 10px; }
  .container-name { font-size: 12px; }
  .container-subtitle { max-width: 180px; font-size: 9px; }
  .container-actions { gap: 6px; }
  .metric-chip { display: none; }
  .expand-button { width: 42px; height: 42px; }
  .container-details { padding: 13px 12px 15px; }
  .state-badge, .health-badge { font-size: 8px; padding: 3px 6px; }
  .detail-grid { gap: 7px; }
  .detail-cell { padding: 9px; }
  .detail-cell strong { font-size: 10px; }
  .metric-card { padding: 12px; }
  .metric-card-top span { font-size: 10px; }
  .metric-value { font-size: 19px; }
  .chart-panel { padding: 14px 11px 8px; }
  .chart-svg { height: 166px; }
  .chart-wrap { min-height: 166px; }
  .chart-legend { gap: 8px; font-size: 8px; }
  .incident-row { grid-template-columns: 29px minmax(0, 1fr); gap: 9px; padding: 11px; }
  .incident-mark { width: 28px; height: 28px; }
  .incident-meta { grid-column: 2; flex-direction: row; justify-content: space-between; text-align: left; }
  .demo-banner { top: 60px; gap: 7px; padding: 8px 10px; font-size: 10px; }
  .demo-banner strong { font-size: 10px; }
  .page-footer { font-size: 8px; }
}
@media (max-width: 360px) {
  .main-content { width: calc(100% - 22px); }
  .brand small { font-size: 9px; }
  .connection-state { gap: 5px; }
  .connection-state span { max-width: 56px; overflow: hidden; text-overflow: ellipsis; }
  .container-subtitle { max-width: 130px; }
  .summary-item { padding: 10px; }
  .metric-grid { gap: 8px; }
  .panel-heading { gap: 6px; }
  .chart-legend { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
