:root {
  color-scheme: light;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-subtle: #fafaf8;
  --surface-muted: #f0f0ed;
  --ink: #1d1d1f;
  --ink-soft: #3c3c43;
  --muted: #6e6e73;
  --muted-light: #8c8c91;
  --line: #e3e3df;
  --line-strong: #d4d4d0;
  --blue: #0071e3;
  --blue-strong: #0064c9;
  --blue-soft: #eaf3ff;
  --green: #1f8f5f;
  --green-soft: #e9f7ef;
  --amber: #9b681b;
  --amber-soft: #fff6e2;
  --red: #c84141;
  --red-soft: #fff0ef;
  --radius: 8px;
  --shadow: 0 10px 32px rgba(30, 30, 28, .06), 0 1px 3px rgba(30, 30, 28, .04);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--bg); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(0, 113, 227, .22); outline-offset: 2px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: 0; line-height: 1.15; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h2 { font-size: 19px; font-weight: 650; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 14px; height: 14px; }
.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; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted-light); font-size: 11px; font-weight: 700; letter-spacing: .105em; line-height: 1.4; text-transform: uppercase; }

/* Login */
.login-screen { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 20px 24px; background: radial-gradient(circle at 50% 0%, #fff 0, rgba(255, 255, 255, .2) 38%, transparent 65%), var(--bg); }
.login-wrap { width: min(100%, 410px); margin: auto; }
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-lockup strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.brand-lockup span { display: block; color: var(--muted-light); font-size: 10px; letter-spacing: .08em; line-height: 1.25; text-transform: uppercase; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--ink); border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.brand-mark .icon { width: 20px; height: 20px; stroke-width: 1.6; }
.brand-lockup-login { margin-bottom: 72px; }
.login-copy { margin-bottom: 28px; }
.login-copy h1 { margin-top: 7px; font-size: 38px; letter-spacing: -.04em; }
.login-copy > p:last-child { max-width: 290px; margin-top: 12px; color: var(--muted); font-size: 15px; }
.login-form { padding: 24px; border: 1px solid rgba(227, 227, 223, .9); border-radius: var(--radius); background: rgba(255, 255, 255, .86); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.login-form .field + .field { margin-top: 17px; }
.button-wide { width: 100%; justify-content: center; margin-top: 23px; }
.login-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 19px; color: var(--muted-light); font-size: 11px; }
.login-footer { margin: 24px auto 0; color: var(--muted-light); font-size: 11px; text-align: center; }

/* Shared controls */
.field { min-width: 0; }
.field label { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px 11px; color: var(--ink); background: var(--surface); font-size: 14px; line-height: 1.35; transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.field textarea { min-height: 70px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #acacae; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #bcbcb8; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, .12); outline: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid transparent; border-radius: 6px; padding: 9px 14px; cursor: pointer; font-size: 13px; font-weight: 650; white-space: nowrap; transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .52; transform: none; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 3px 8px rgba(0, 113, 227, .18); }
.button-primary:hover { background: var(--blue-strong); }
.button-secondary { border-color: var(--line-strong); color: var(--ink-soft); background: var(--surface); }
.button-secondary:hover { border-color: #b7b7b4; background: var(--surface-subtle); }
.button-quiet { border-color: transparent; color: var(--muted); background: transparent; }
.button-quiet:hover { color: var(--ink); background: var(--surface-muted); }
.text-button { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; }
.text-button:hover { color: var(--blue-strong); }
.icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; transition: color .16s ease, background-color .16s ease, transform .16s ease; }
.icon-button:hover { color: var(--ink); background: var(--surface-muted); }
.icon-button:active { transform: scale(.96); }
.icon-button-small { width: 30px; height: 30px; }
.form-message { margin: 0; color: var(--muted); font-size: 13px; }
.form-message-error { color: var(--red); }
.form-message-success { color: var(--green); }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 8px; border-radius: 20px; color: var(--muted); background: var(--surface-muted); font-family: var(--mono); font-size: 11px; font-weight: 650; }
.count-badge-large { min-width: auto; height: 30px; padding: 0 11px; }
.secure-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 650; }
.set-badge { display: inline-flex; align-items: center; min-height: 18px; padding: 0 6px; border-radius: 4px; color: var(--muted-light); background: var(--surface-muted); font-size: 10px; font-weight: 600; }
.set-badge.is-set { color: var(--green); background: var(--green-soft); }
.check-label { display: flex !important; align-items: center !important; gap: 7px !important; margin: 8px 0 0 !important; color: var(--muted) !important; font-size: 11px !important; font-weight: 500 !important; }
.check-label input { width: 14px; height: 14px; accent-color: var(--blue); }

/* App shell */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 25px 14px 18px; border-right: 1px solid var(--line); background: rgba(250, 250, 248, .84); }
.sidebar-top > .brand-lockup { padding: 0 10px; }
.workspace-chip { display: inline-flex; align-items: center; gap: 7px; margin: 32px 10px 13px; color: var(--muted); font-size: 11px; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: currentColor; }
.status-dot-green { color: var(--green); }
.status-dot-red { color: var(--red); }
.status-dot-amber { color: var(--amber); }
.nav-list { display: grid; gap: 3px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 6px; padding: 10px 11px; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; text-align: left; transition: color .16s ease, background-color .16s ease; }
.nav-item:hover { color: var(--ink); background: var(--surface-muted); }
.nav-item.is-active { color: var(--ink); background: #e9e9e6; }
.nav-item .icon { width: 17px; height: 17px; }
.nav-item-quiet { margin-top: 11px; color: var(--muted-light); }
.sidebar-account { display: flex; align-items: center; gap: 10px; padding: 0 10px 9px; }
.sidebar-account .avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #4b4b52; font-size: 12px; font-weight: 700; }
.sidebar-account strong, .sidebar-account span:not(.avatar) { display: block; line-height: 1.35; }
.sidebar-account strong { font-size: 12px; }
.sidebar-account span:not(.avatar) { color: var(--muted-light); font-size: 10px; }
.main-content { min-width: 0; width: min(100%, 1360px); padding: 0 clamp(18px, 4vw, 58px) 58px; }
.topbar { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.topbar-kicker { color: var(--muted-light); font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: .12em; }
.topbar-title h2 { margin-top: 4px; font-size: 18px; letter-spacing: -.015em; }
.topbar-actions { display: flex; align-items: center; gap: 5px; }
.connection-state { display: inline-flex; align-items: center; gap: 7px; margin-right: 8px; color: var(--muted); font-size: 11px; }
.mobile-menu-button { display: none; }
.offline-banner { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; border: 1px solid #f0c7c5; border-radius: 6px; padding: 10px 12px; color: var(--red); background: var(--red-soft); font-size: 12px; }
.offline-banner .text-button { margin-left: auto; color: var(--red); }
.view { padding-top: 37px; animation: view-in .24s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.view-heading h1 { margin-top: 6px; }
.view-heading .muted { margin-top: 10px; font-size: 13px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 30px; border: 1px solid var(--line); border-radius: 20px; padding: 0 10px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 650; }
.status-pill-success { border-color: #bde4ce; color: var(--green); background: var(--green-soft); }
.status-pill-error { border-color: #efc4c2; color: var(--red); background: var(--red-soft); }
.status-pill-warning { border-color: #f1d99e; color: var(--amber); background: var(--amber-soft); }
.status-pill-neutral { color: var(--muted); background: var(--surface-subtle); }

/* Overview */
.status-hero { display: flex; align-items: stretch; justify-content: space-between; gap: 28px; min-height: 152px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; background: var(--surface); box-shadow: var(--shadow); }
.status-hero-success { border-color: #cce8d7; background: linear-gradient(110deg, #fff 0%, #f9fdfb 100%); }
.status-hero-error { border-color: #f0cbca; background: linear-gradient(110deg, #fff 0%, #fffafa 100%); }
.status-hero-warning { border-color: #f1dda8; background: linear-gradient(110deg, #fff 0%, #fffdf7 100%); }
.status-hero-main { display: flex; align-items: center; gap: 15px; min-width: 0; }
.status-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--blue); background: var(--blue-soft); }
.status-hero-success .status-icon { color: var(--green); background: var(--green-soft); }
.status-hero-error .status-icon { color: var(--red); background: var(--red-soft); }
.status-hero-warning .status-icon { color: var(--amber); background: var(--amber-soft); }
.status-hero h2 { margin-top: 5px; font-size: 23px; letter-spacing: -.025em; }
.status-description { max-width: 480px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.status-hero-meta { display: grid; grid-template-columns: repeat(3, minmax(88px, 1fr)); align-self: center; gap: 23px; min-width: min(48%, 390px); }
.status-hero-meta div { min-width: 0; }
.status-hero-meta span, .status-hero-meta strong { display: block; }
.status-hero-meta span { color: var(--muted-light); font-size: 10px; }
.status-hero-meta strong { margin-top: 5px; overflow: hidden; color: var(--ink-soft); font-family: var(--mono); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.metric-card { min-width: 0; min-height: 130px; border: 1px solid var(--line); border-radius: var(--radius); padding: 17px 17px 15px; background: var(--surface); }
.metric-card-accent { border-color: #cfe3f9; background: var(--blue-soft); }
.metric-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-card-accent .metric-label { color: #376a9d; }
.metric-symbol { width: 16px; color: currentColor; font-family: var(--mono); font-size: 15px; line-height: 1; }
.metric-value { margin-top: 16px; color: var(--ink); font-family: var(--mono); font-size: 31px; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.metric-value-small { margin-top: 19px; font-size: 19px; letter-spacing: -.025em; }
.metric-note { margin-top: 9px; overflow: hidden; color: var(--muted-light); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.content-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.content-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; background: var(--surface); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 19px; }
.panel-heading h2 { margin-top: 4px; }
.panel-caption { color: var(--muted-light); font-size: 11px; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-feedback { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 12px; }
.summary-content { min-height: 69px; }
.empty-inline { display: flex; align-items: center; min-height: 69px; color: var(--muted-light); font-size: 13px; }
.check-summary-line, .email-summary-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.check-summary-line:first-child, .email-summary-line:first-child { border-top: 0; padding-top: 0; }
.summary-title { min-width: 0; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.summary-subtitle { margin-top: 3px; color: var(--muted-light); font-size: 11px; }
.summary-value { color: var(--ink-soft); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.error-list { display: grid; gap: 0; }
.error-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.error-item:first-child { border-top: 0; padding-top: 0; }
.error-icon { color: var(--red); }
.error-message { overflow: hidden; color: var(--ink-soft); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.error-time { margin-top: 3px; color: var(--muted-light); font-family: var(--mono); font-size: 10px; }

/* History */
.filter-strip { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 13px; border-bottom: 1px solid var(--line); }
.filter-label { margin-right: 3px; color: var(--muted-light); font-size: 11px; font-weight: 600; }
.filter-chip { padding: 5px 9px; border-radius: 5px; color: var(--muted); font-size: 11px; }
.filter-chip.is-active { color: var(--ink); background: var(--surface-muted); font-weight: 650; }
.filter-spacer { flex: 1; }
.timeline-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.timeline-item { position: relative; display: grid; grid-template-columns: 72px 18px minmax(0, 1fr) auto; gap: 13px; align-items: start; min-height: 74px; padding: 16px 18px; border-top: 1px solid var(--line); }
.timeline-item:first-child { border-top: 0; }
.timeline-time { color: var(--muted-light); font-family: var(--mono); font-size: 10px; line-height: 1.35; }
.timeline-time strong { display: block; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.timeline-marker { position: relative; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); }
.timeline-marker::after { content: ""; position: absolute; top: 18px; left: 8px; width: 1px; height: 54px; background: var(--line); }
.timeline-item:last-child .timeline-marker::after { display: none; }
.timeline-marker .icon { width: 12px; height: 12px; stroke-width: 2; }
.timeline-marker.error { color: var(--red); background: var(--red-soft); }
.timeline-marker.warning { color: var(--amber); background: var(--amber-soft); }
.timeline-main { min-width: 0; }
.timeline-title { overflow: hidden; color: var(--ink-soft); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.timeline-detail { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 4px; color: var(--muted-light); font-size: 11px; }
.timeline-detail span { display: inline-flex; align-items: center; gap: 4px; }
.timeline-error { color: var(--red); }
.timeline-result { align-self: center; color: var(--ink-soft); font-family: var(--mono); font-size: 12px; font-weight: 650; white-space: nowrap; }
.timeline-result.success { color: var(--green); }
.timeline-result.error { color: var(--red); }
.timeline-result.warning { color: var(--amber); }
.status-text-error { color: var(--red); }
.loading-placeholder { min-height: 130px; display: grid; place-items: center; color: var(--muted-light); font-size: 13px; }
.history-empty { display: grid; place-items: center; min-height: 180px; padding: 24px; color: var(--muted-light); text-align: center; }
.history-empty strong { display: block; color: var(--ink-soft); font-size: 14px; }
.history-empty span { display: block; margin-top: 5px; font-size: 12px; }

/* Settings */
.settings-form { display: grid; gap: 14px; }
.settings-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 23px 22px 24px; background: var(--surface); }
.settings-section-heading { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.settings-section-heading h2 { font-size: 17px; }
.settings-section-heading p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.section-index { color: var(--muted-light); font-family: var(--mono); font-size: 11px; }
.settings-fields { display: grid; gap: 17px; }
.settings-fields-two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; }
.field-wide { grid-column: 1 / -1; }
.toggle-field { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding-top: 5px; border-top: 1px solid var(--line); }
.toggle-field label:first-child { margin: 0; }
.toggle-field p { margin-top: 3px; color: var(--muted-light); font-size: 11px; }
.switch { position: relative; display: block; width: 42px; height: 25px; flex: 0 0 auto; margin: 0 !important; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch-track { position: absolute; inset: 0; border-radius: 20px; background: #d5d5d2; transition: background-color .16s ease; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .16s ease; }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track::after { transform: translateX(17px); }
.settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 15px; min-height: 50px; }
.settings-actions .form-message { margin-right: auto; }

/* Loading */
.page-loading { padding-top: 38px; }
.loading-line, .loading-grid span { position: relative; overflow: hidden; background: #e9e9e6; }
.loading-line::after, .loading-grid span::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .78), transparent); animation: shimmer 1.4s infinite; }
.loading-line { width: 34%; height: 14px; margin-bottom: 10px; border-radius: 4px; }
.loading-line-wide { width: 56%; height: 35px; }
.loading-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.loading-grid span { min-height: 130px; border-radius: var(--radius); }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Feedback */
.toast-region { position: fixed; z-index: 30; right: 18px; bottom: 20px; display: grid; gap: 8px; width: min(360px, calc(100% - 36px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 7px; padding: 12px 13px; color: var(--ink-soft); background: rgba(255, 255, 255, .96); box-shadow: 0 9px 28px rgba(0, 0, 0, .12); font-size: 12px; pointer-events: auto; animation: toast-in .22s ease both; }
.toast.success { border-color: #c8e7d5; color: var(--green); }
.toast.error { border-color: #efc6c4; color: var(--red); }
.toast.warning { border-color: #efdcad; color: var(--amber); }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.bottom-nav { display: none; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .main-content { padding-right: 28px; padding-left: 28px; }
  .status-hero { gap: 18px; padding: 21px; }
  .status-hero-meta { min-width: 44%; gap: 13px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  .login-screen { padding: 25px 17px 19px; }
  .brand-lockup-login { margin-bottom: 54px; }
  .login-copy h1 { font-size: 34px; }
  .login-form { padding: 20px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main-content { width: 100%; padding: 0 15px calc(88px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 68px; }
  .topbar-kicker { font-size: 8px; }
  .topbar-title h2 { font-size: 17px; }
  .connection-state { margin-right: 0; }
  .connection-state span:last-child { display: none; }
  .mobile-menu-button { display: inline-grid; }
  .view { padding-top: 28px; }
  .view-heading { margin-bottom: 20px; }
  .view-heading h1 { font-size: 30px; }
  .view-heading .muted { max-width: 260px; font-size: 12px; }
  .status-pill { min-height: 27px; padding: 0 8px; font-size: 10px; }
  .status-hero { display: block; min-height: 0; padding: 19px; }
  .status-hero-main { align-items: flex-start; }
  .status-hero h2 { font-size: 21px; }
  .status-description { font-size: 12px; }
  .status-hero-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; margin-top: 21px; padding-top: 16px; border-top: 1px solid var(--line); }
  .status-hero-meta strong { font-size: 11px; }
  .metric-grid { gap: 8px; margin-bottom: 8px; }
  .metric-card { min-height: 119px; padding: 14px; }
  .metric-value { margin-top: 14px; font-size: 28px; }
  .metric-value-small { margin-top: 16px; font-size: 16px; }
  .metric-note { margin-top: 8px; font-size: 9px; }
  .content-grid-two { grid-template-columns: 1fr; gap: 8px; margin-bottom: 8px; }
  .panel { padding: 19px 17px 18px; }
  .panel-heading { margin-bottom: 16px; }
  .action-row { display: grid; grid-template-columns: 1fr 1fr; }
  .action-row .button { width: 100%; }
  .action-row .button-quiet { grid-column: 1 / -1; }
  .filter-strip { overflow-x: auto; margin-right: -1px; }
  .filter-chip { flex: 0 0 auto; }
  .timeline-item { grid-template-columns: 55px 18px minmax(0, 1fr); gap: 9px; padding: 14px 12px; }
  .timeline-result { grid-column: 3; grid-row: 2; margin-top: 1px; justify-self: start; }
  .timeline-marker::after { height: 62px; }
  .timeline-title { font-size: 12px; }
  .timeline-detail { font-size: 10px; }
  .settings-section { padding: 19px 16px 20px; }
  .settings-fields-two { grid-template-columns: 1fr; }
  .settings-actions { align-items: stretch; flex-direction: column-reverse; gap: 10px; }
  .settings-actions .button { width: 100%; }
  .settings-actions .form-message { width: 100%; margin: 0; }
  .bottom-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 64px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(250, 250, 248, .94); box-shadow: 0 -8px 28px rgba(24, 24, 22, .05); backdrop-filter: blur(18px); }
  .bottom-nav-item { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border: 0; border-radius: 6px; color: var(--muted-light); background: transparent; cursor: pointer; font-size: 10px; font-weight: 600; }
  .bottom-nav-item .icon { width: 18px; height: 18px; }
  .bottom-nav-item.is-active { color: var(--blue); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
