:root {
  color-scheme: light dark;
  --canvas: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --surface-subtle: #f9f9fb;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #8e8e93;
  --line: rgba(0, 0, 0, 0.075);
  --line-strong: rgba(0, 0, 0, 0.13);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --healthy: #28a745;
  --warning: #e58b00;
  --critical: #e5484d;
  --neutral: #8e8e93;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.055), 0 2px 8px rgba(0, 0, 0, 0.025);
  --radius-large: 28px;
  --radius-medium: 20px;
  --radius-small: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { background: var(--canvas); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.9), transparent 34rem),
    var(--canvas);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.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;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.header-inner,
.page-shell,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.wordmark-mark,
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--canvas);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.wordmark-mark { width: 28px; height: 28px; border-radius: 9px; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.live-clock {
  margin-right: 8px;
  color: var(--secondary);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.icon-button,
.view-toggle,
.quiet-button,
.segment {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: var(--surface-solid);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 560;
}

.view-toggle {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 11px 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--secondary);
  cursor: pointer;
  font-size: 12px;
  font-weight: 570;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.view-toggle:hover { background: rgba(128, 128, 128, 0.11); }
.view-toggle:active { transform: scale(0.98); }
.view-toggle.is-active { color: var(--text); }

.toggle-track {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(120, 120, 128, 0.24);
  transition: background 200ms ease;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.view-toggle.is-active .toggle-track { background: var(--accent); }
.view-toggle.is-active .toggle-thumb { transform: translateX(14px); }

.icon-button:hover,
.quiet-button:hover { background: rgba(128, 128, 128, 0.11); }
.icon-button:active,
.quiet-button:active,
.primary-button:active { transform: scale(0.98); }
.icon-button:disabled { cursor: wait; opacity: 0.55; }

.refresh-symbol { display: inline-block; font-size: 18px; line-height: 1; }
.is-spinning .refresh-symbol { animation: spin 700ms linear infinite; }

.quiet-button { padding: 0 13px; color: var(--secondary); font-size: 13px; }

.page-shell { padding: 84px 0 120px; }

body.advanced-enabled .header-inner,
body.advanced-enabled .page-shell,
body.advanced-enabled .site-footer {
  width: min(1360px, calc(100% - 48px));
}

body.advanced-enabled .page-shell { padding-top: 54px; }
body.advanced-enabled .hero { max-width: 1040px; padding: 34px 0 52px; }
body.advanced-enabled .hero h1 { font-size: clamp(42px, 5vw, 64px); }
body.advanced-enabled .hero-copy { max-width: 820px; font-size: clamp(17px, 1.8vw, 21px); }
body.advanced-enabled .section-block { margin-top: 58px; }

.hero {
  max-width: 850px;
  padding: 54px 0 92px;
}

.hero-status,
.status-pill,
.detail-value {
  display: inline-flex;
  align-items: center;
}

.hero-status {
  gap: 9px;
  margin-bottom: 24px;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 560;
}

.status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neutral);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--neutral) 12%, transparent);
}

.state-healthy .status-dot { background: var(--healthy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--healthy) 12%, transparent); }
.state-warning .status-dot { background: var(--warning); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 12%, transparent); }
.state-critical .status-dot { background: var(--critical); box-shadow: 0 0 0 3px color-mix(in srgb, var(--critical) 12%, transparent); }
.state-neutral .status-dot { background: var(--neutral); }

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 660;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--secondary);
  font-size: clamp(18px, 2.2vw, 23px);
  letter-spacing: -0.018em;
  line-height: 1.38;
}

.freshness { margin: 19px 0 0; color: var(--tertiary); font-size: 13px; }

.advanced-console {
  scroll-margin-top: 82px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.advanced-console-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--line);
}

.advanced-console-header h2 { margin: 0; font-size: 27px; font-weight: 640; letter-spacing: -0.035em; }
.advanced-console-header p:last-child { margin: 8px 0 0; color: var(--secondary); font-size: 13px; }
.console-live { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 999px; background: var(--surface-subtle); color: var(--secondary); font-size: 11px; font-weight: 580; }
.console-live .status-dot { width: 6px; height: 6px; background: var(--healthy); box-shadow: none; }

.advanced-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-subtle) 68%, transparent);
}

.filter-control,
.compact-select { display: flex; flex-direction: column; gap: 6px; }
.filter-control > span,
.compact-select > span,
.console-context > span { color: var(--tertiary); font-size: 9px; font-weight: 720; letter-spacing: .09em; text-transform: uppercase; }
.filter-control select,
.compact-select select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
  background: var(--surface-solid);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
}
.filter-control select { min-width: 220px; padding: 0 12px; }
.compact-select select { min-width: 130px; padding: 0 10px; }
.console-context { display: flex; flex-direction: column; gap: 5px; text-align: right; }
.console-context strong { color: var(--secondary); font-size: 11px; font-weight: 540; }

.technical-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.technical-metric { min-width: 0; padding: 22px 20px 24px; }
.technical-metric + .technical-metric { border-left: 1px solid var(--line); }
.technical-metric > span { display: block; color: var(--secondary); font-size: 10px; font-weight: 640; text-transform: uppercase; letter-spacing: .07em; }
.technical-metric strong { display: block; margin-top: 9px; overflow: hidden; font-size: 24px; font-weight: 620; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.technical-metric small { display: block; margin-top: 5px; overflow: hidden; color: var(--tertiary); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.section-block { margin-top: 88px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.compact-heading { margin-bottom: 18px; }
.eyebrow { margin: 0 0 8px; color: var(--secondary); font-size: 11px; font-weight: 720; letter-spacing: 0.12em; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 3.3vw, 38px); font-weight: 640; letter-spacing: -0.04em; line-height: 1.05; }
.section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.section-actions .icon-button { color: var(--text); white-space: nowrap; }
.section-actions .icon-button:disabled { cursor: wait; opacity: .55; }
.action-feedback { color: var(--secondary); font-size: 12px; }
.action-feedback.is-success { color: var(--healthy); }
.action-feedback.is-error { color: var(--critical); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.metric-card,
.detail-list,
.container-panel,
.alerts-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-card {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-radius: var(--radius-large);
  transition: border-color 180ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.service-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 18px 46px rgba(0, 0, 0, 0.075); }
.service-card-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.service-glyph { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; background: var(--surface-subtle); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; font-weight: 650; }

.status-pill {
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--secondary);
  font-size: 11px;
  font-weight: 650;
}

.status-pill .status-dot { width: 6px; height: 6px; box-shadow: none; }
.service-name { margin: 0; font-size: 22px; font-weight: 640; letter-spacing: -0.032em; }
.service-description { margin: 4px 0 0; color: var(--secondary); }
.service-detail-row { display: flex; min-height: 22px; align-items: end; justify-content: space-between; gap: 12px; color: var(--secondary); font-size: 12px; }
.service-detail-row p { margin: 0; }
.service-detail-row span { flex: 0 0 auto; color: var(--tertiary); font-variant-numeric: tabular-nums; }
.service-tech { display: none; padding-top: 12px; border-top: 1px solid var(--line); color: var(--tertiary); font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.service-tech strong { overflow: hidden; color: var(--secondary); font-weight: 560; text-align: right; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.service-grid-empty { grid-column: 1 / -1; padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-large); color: var(--secondary); text-align: center; }
.service-grid-empty strong { color: var(--text); }
.service-grid-empty p { margin: 5px 0 0; font-size: 12px; }

body.advanced-enabled .service-card { min-height: 214px; padding: 18px; border-radius: var(--radius-medium); box-shadow: 0 8px 24px rgba(0, 0, 0, .04); }
body.advanced-enabled .service-glyph { width: 36px; height: 36px; border-radius: 11px; font-size: 13px; }
body.advanced-enabled .service-name { font-size: 18px; }
body.advanced-enabled .service-description { font-size: 11px; }
body.advanced-enabled .service-detail-row { font-size: 10px; }
body.advanced-enabled .service-tech { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.skeleton-card { min-height: 238px; overflow: hidden; position: relative; }
.skeleton-card::after { position: absolute; inset: 0; content: ""; background: linear-gradient(100deg, transparent 25%, rgba(128,128,128,.09) 45%, transparent 65%); animation: shimmer 1.4s infinite linear; }

.performance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric-card { min-width: 0; padding: 24px 24px 16px; overflow: hidden; border-radius: var(--radius-large); }
.metric-topline { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.metric-name { margin: 0 0 7px; color: var(--secondary); font-size: 13px; font-weight: 560; }
.metric-value { margin: 0; font-size: 42px; font-weight: 620; letter-spacing: -0.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric-value small { margin-left: 2px; color: var(--tertiary); font-size: 20px; font-weight: 500; }
.metric-context { margin: 3px 0 0; color: var(--tertiary); font-size: 11px; text-align: right; }
.sparkline { display: block; width: calc(100% + 48px); height: 102px; margin: 22px -24px -16px; }

.segment-control { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(128, 128, 128, 0.11); }
.segment { min-width: 50px; min-height: 30px; padding: 0 13px; color: var(--secondary); font-size: 12px; font-weight: 560; }
.segment.is-active { background: var(--surface-solid); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.11); }

.count-badge { display: grid; min-width: 30px; height: 30px; padding: 0 9px; place-items: center; border-radius: 999px; background: rgba(128,128,128,.11); color: var(--secondary); font-size: 12px; font-weight: 650; }
.alerts-panel { overflow: hidden; border-radius: var(--radius-medium); }
.empty-state { display: flex; align-items: center; gap: 16px; padding: 23px 25px; }
.empty-check { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--healthy) 12%, transparent); color: var(--healthy); font-size: 17px; font-weight: 700; }
.empty-state strong, .alert-row strong { font-size: 14px; font-weight: 620; }
.empty-state p, .alert-row p { margin: 3px 0 0; color: var(--secondary); font-size: 12px; }
.alert-row { display: flex; align-items: start; gap: 14px; padding: 20px 24px; }
.alert-row + .alert-row { border-top: 1px solid var(--line); }
.alert-row .status-dot { margin-top: 6px; }

.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border-radius: var(--radius-large); }
.detail-row { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 24px; }
.detail-row:nth-child(odd) { border-right: 1px solid var(--line); }
.detail-row:nth-child(n+3) { border-top: 1px solid var(--line); }
.detail-label { margin: 0; font-weight: 580; }
.detail-note { margin: 3px 0 0; color: var(--tertiary); font-size: 11px; }
.detail-value { flex: 0 0 auto; gap: 9px; color: var(--secondary); font-size: 12px; text-align: right; }
.detail-value .status-dot { width: 6px; height: 6px; box-shadow: none; }

.section-summary { color: var(--secondary); font-size: 13px; }
.container-panel { overflow: hidden; border-radius: var(--radius-large); }
.container-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.container-filters { display: flex; gap: 10px; }
.search-field { display: flex; width: min(360px, 100%); min-height: 38px; align-items: center; gap: 8px; padding: 0 13px; border-radius: 11px; background: rgba(128, 128, 128, 0.1); color: var(--tertiary); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 13px; }
.search-field input::placeholder { color: var(--tertiary); }
.container-row { border-bottom: 1px solid var(--line); }
.container-row:last-child { border-bottom: 0; }
.container-row summary { display: grid; min-height: 70px; grid-template-columns: 10px minmax(0, 1fr) auto 20px; align-items: center; gap: 15px; padding: 13px 24px; cursor: pointer; list-style: none; transition: background 160ms ease; }
.container-row summary::-webkit-details-marker { display: none; }
.container-row summary:hover { background: rgba(128,128,128,.055); }
.container-row summary .status-dot { width: 7px; height: 7px; box-shadow: none; }
.container-identity { display: flex; min-width: 0; flex-direction: column; }
.container-identity strong { overflow: hidden; font-size: 14px; font-weight: 590; text-overflow: ellipsis; white-space: nowrap; }
.container-identity small { margin-top: 2px; color: var(--tertiary); font-size: 11px; }
.container-state { color: var(--secondary); font-size: 12px; }
.disclosure { color: var(--tertiary); transition: transform 180ms ease; }
.container-row[open] .disclosure { transform: rotate(180deg); }
.container-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 0 24px 20px 49px; }
.container-details div { display: flex; flex-direction: column; gap: 3px; }
.container-details span { color: var(--tertiary); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.container-details strong { font-size: 13px; font-weight: 560; }
.no-results { padding: 42px 24px; text-align: center; }
.no-results p { margin: 4px 0 0; color: var(--secondary); font-size: 12px; }

.notice { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border: 1px solid color-mix(in srgb, var(--warning) 32%, transparent); border-radius: var(--radius-medium); background: color-mix(in srgb, var(--warning) 8%, var(--surface-solid)); }
.notice strong { font-size: 13px; }
.notice p { margin: 2px 0 0; color: var(--secondary); font-size: 12px; }
.is-hidden { display: none !important; }
[hidden] { display: none !important; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 48px; border-top: 1px solid var(--line); color: var(--tertiary); font-size: 11px; }
.site-footer p { margin: 0; }

.login-page { min-height: 100vh; }
.login-shell { display: grid; min-height: 100vh; padding: 32px 20px; place-items: center; }
.login-card { width: min(430px, 100%); padding: 45px; border: 1px solid var(--line); border-radius: 34px; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.09); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.brand-mark { width: 52px; height: 52px; margin-bottom: 32px; border-radius: 15px; font-size: 15px; }
.login-card h1 { margin: 0; font-size: 38px; font-weight: 650; letter-spacing: -.045em; line-height: 1; }
.login-copy { margin: 15px 0 32px; color: var(--secondary); font-size: 15px; line-height: 1.5; }
.login-form { display: grid; gap: 13px; }
.password-field { display: flex; min-height: 54px; align-items: center; padding: 0 8px 0 17px; border: 1px solid var(--line-strong); border-radius: 15px; background: var(--surface-solid); transition: border-color 160ms ease, box-shadow 160ms ease; }
.password-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); }
.password-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.password-field input::placeholder { color: var(--tertiary); }
.password-toggle { min-width: 52px; min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--accent); cursor: pointer; font-size: 12px; font-weight: 580; }
.password-toggle:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.primary-button { display: flex; min-height: 54px; align-items: center; justify-content: space-between; padding: 0 18px; border: 0; border-radius: 15px; background: var(--accent); color: white; cursor: pointer; font-weight: 600; transition: background 180ms ease, transform 180ms ease, opacity 180ms ease; }
.primary-button:hover { background: var(--accent-hover); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.form-message { min-height: 18px; margin: -3px 2px -3px; color: var(--critical); font-size: 12px; }
.login-footnote { margin: 28px 0 0; color: var(--tertiary); font-size: 11px; line-height: 1.5; text-align: center; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

@media (max-width: 900px) {
  .service-grid, .performance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-top: 30px; }
  .technical-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .technical-metric:nth-child(4) { border-left: 0; }
  .technical-metric:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (min-width: 1100px) {
  body.advanced-enabled .service-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 680px) {
  .header-inner, .page-shell, .site-footer { width: min(100% - 28px, 1180px); }
  body.advanced-enabled .header-inner,
  body.advanced-enabled .page-shell,
  body.advanced-enabled .site-footer { width: min(100% - 28px, 1360px); }
  .header-inner { min-height: 58px; }
  .wordmark > span:last-child, .live-clock, .button-label { display: none; }
  .header-actions { gap: 2px; }
  .view-toggle { padding-inline: 8px; gap: 7px; }
  .icon-button { width: 40px; padding: 0; justify-content: center; }
  .quiet-button { padding-inline: 10px; }
  .page-shell { padding-top: 44px; padding-bottom: 80px; }
  .hero { padding: 28px 2px 62px; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-copy { margin-top: 22px; font-size: 18px; }
  .section-block { margin-top: 66px; }
  .service-grid, .performance-grid, .detail-list { grid-template-columns: 1fr; }
  body.advanced-enabled .page-shell { padding-top: 34px; }
  body.advanced-enabled .hero { padding: 24px 2px 44px; }
  .advanced-console-header, .advanced-controls { align-items: stretch; flex-direction: column; padding-inline: 20px; }
  .section-heading { align-items: flex-start; }
  .section-actions { align-items: flex-end; flex-direction: column-reverse; gap: 7px; }
  .console-live { align-self: flex-start; }
  .console-context { text-align: left; }
  .filter-control select { width: 100%; }
  .technical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .technical-metric:nth-child(odd) { border-left: 0; }
  .technical-metric:nth-child(even) { border-left: 1px solid var(--line); }
  .technical-metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .service-card { min-height: 212px; }
  .detail-row:nth-child(odd) { border-right: 0; }
  .detail-row:nth-child(n+2) { border-top: 1px solid var(--line); }
  .detail-row { min-height: 82px; padding-inline: 20px; }
  .container-row summary { padding-inline: 18px; }
  .container-toolbar { align-items: stretch; flex-direction: column; }
  .container-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-select select { width: 100%; min-width: 0; }
  .container-details { grid-template-columns: repeat(2, 1fr); row-gap: 16px; padding-left: 43px; }
  .container-state { display: none; }
  .container-row summary { grid-template-columns: 10px minmax(0,1fr) 20px; }
  .site-footer { flex-direction: column; }
  .login-card { padding: 34px 25px; border-radius: 28px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #000000;
    --surface: rgba(28, 28, 30, 0.84);
    --surface-solid: #1c1c1e;
    --surface-subtle: #242426;
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --tertiary: #7d7d82;
    --line: rgba(255, 255, 255, 0.085);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #2997ff;
    --accent-hover: #40a2ff;
    --healthy: #32d74b;
    --warning: #ff9f0a;
    --critical: #ff453a;
    --shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  }
  body { background: radial-gradient(circle at 20% 0%, rgba(44, 44, 48, .7), transparent 34rem), var(--canvas); }
}

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