main.status-main.footer-page-main { max-width: 1280px; }
body.sidebar-open main.status-main.footer-page-main {
  width: min(calc(100% - var(--sidebar-width)), 1280px);
  margin-left: max(var(--sidebar-width), calc(var(--sidebar-width) + (100vw - var(--sidebar-width) - 1280px) / 2));
}
.status-main > :not(.site-map) { max-width: 900px; margin-left: auto; margin-right: auto; }
.status-main [data-status-timestamp] { white-space: pre-line; }
.status-statistics .stats-kpi-grid { gap: 14px; margin-block: 12px 28px; }
.status-statistics .stats-kpi {
  min-height: 0; padding: 20px; border: 1px solid var(--border2);
  border-radius: 8px; background: var(--surface);
}
.status-statistics .stats-kpi > span { font-size: 28px; font-weight: 650; letter-spacing: 0; margin-bottom: 9px; }
.status-statistics .stats-kpi h2 { font-size: 14px; font-weight: 500; }
.status-statistics .stats-kpi p { font-size: 12px; line-height: 1.5; }
.status-statistics .stats-chart-grid { gap: 16px; }
.status-statistics .stats-panel {
  background: var(--surface); border: 1px solid var(--border2); border-radius: 8px; padding: 22px;
}
.status-statistics .stats-panel-head h2 { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.status-statistics .stats-panel-head > span { padding: 0; border: 0; border-radius: 0; font-size: 13px; font-weight: 400; }
.status-statistics .stats-panel-copy { font-size: 13px; }
.status-statistics .stats-chart-legend li { font-size: 14px; }
.status-statistics .stats-chart-legend strong { font-weight: 500; }
.status-statistics .stats-detail-grid { gap: 14px; margin-top: 28px; }
.status-statistics .stats-detail { background: var(--surface); border: 1px solid var(--border2); border-radius: 8px; padding: 20px; }
.status-statistics .stats-detail > p { letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 500; }
.status-statistics .stats-detail strong { font-size: 20px; font-weight: 600; letter-spacing: 0; }
.status-statistics .stats-detail > span { font-size: 13px; line-height: 1.5; }
.status-statistics .stats-status { font-weight: 400; font-size: 13px; }
.status-list .status-row-heading h2 { display: flex; align-items: center; gap: 10px; }
.status-health-dot { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-health-dot.is-healthy { background: #55be83; animation: status-health-pulse 2s ease-out infinite; }
.status-health-dot.is-warning { background: #e2b655; }
.status-health-dot.is-error { background: #e37575; }
@keyframes status-health-pulse {
  0% { box-shadow: 0 0 0 0 rgb(85 190 131 / 28%); }
  75%, 100% { box-shadow: 0 0 0 7px rgb(85 190 131 / 0%); }
}
@media (prefers-reduced-motion: reduce) {
  .status-health-dot.is-healthy { animation: none; }
}
.site-map {
  margin-block: 48px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.map-toolbar { margin: 20px 0 30px; }
.map-toolbar label { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.map-toolbar select { width: min(320px, 80%); min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.site-map-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); gap: 60px; padding: 24px 0; align-items: start; }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-lines path { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .45; }
.map-column, .map-focus { position: relative; min-width: 0; }
.map-column h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 18px; font-size: 14px; font-weight: 500; color: var(--muted); }
.map-column h3 span { font-size: 13px; font-variant-numeric: tabular-nums; }
.map-page { display: flex; align-items: center; min-height: 50px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.map-page button { flex: 1; min-width: 0; padding: 13px 14px; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; line-height: 1.4; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.map-page a { padding: 13px 12px; color: var(--muted); text-decoration: none; }
.map-page:hover { border-color: var(--accent); }
.map-page a:hover { color: var(--accent); }
.map-focus { align-self: center; }
.map-current { padding: 22px; background: var(--surface); border: 1px solid var(--accent); border-radius: 6px; }
.map-current strong { display: block; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
.map-page-type { display: block; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.map-current p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.map-current a { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 14px; }
.map-subjects summary { cursor: pointer; padding: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; font-size: 16px; color: var(--text); }
.map-subjects > div { margin-top: 10px; }
.map-empty { font-size: 14px; color: var(--muted); }
@media (max-width: 850px) {
  .site-map-layout { gap: 32px; }
}
@media (max-width: 700px) {
  body.sidebar-open main.status-main.footer-page-main { width: 100%; margin-left: auto; }
  .site-map { padding: 18px; }
}
@media (max-width: 649px) {
  .site-map-layout { display: flex; flex-direction: column; gap: 24px; }
  .map-focus { order: -1; align-self: stretch; }
  .map-column { width: 100%; }
  .map-lines { display: none; }
  .map-current strong { font-size: 24px; }
}
