:root {
  --background: #ffffff;
  --surface: #ffffff;
  --foreground: #202124;
  --muted: #687078;
  --border: #e1e4e7;
  --border-soft: #eceeef;
  --success: #18ad82;
  --success-soft: #dcf8ef;
  --warning: #e6a118;
  --warning-soft: #fff7df;
  --danger: #d94b4b;
  --danger-soft: #fff0f0;
  --unknown: #c8cdd2;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --content-width: 960px;
}
* { box-sizing: border-box; }
html { min-width: 320px; color-scheme: light; }
body { margin: 0; color: var(--foreground); background: var(--background); font-family: var(--font-ui); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(24, 173, 130, .28); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 8px 12px; border-radius: 6px; color: white; background: var(--foreground); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icon { display: inline-block; width: 20px; height: 20px; flex: none; background: currentColor; mask-position: center; mask-repeat: no-repeat; mask-size: contain; }
.icon-cloud { mask-image: url("../landing/icons/cloud.svg"); }
.icon-check-circle { mask-image: url("./icons/circle-check-big.svg"); }
.icon-alert { mask-image: url("./icons/triangle-alert.svg"); }
.icon-chevron-right { mask-image: url("../landing/icons/arrow-right.svg"); }
.status-header, .status-footer, .status-main { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.status-header { display: flex; align-items: center; justify-content: space-between; min-height: 76px; border-bottom: 1px solid var(--border-soft); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.brand-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: white; background: #222426; }
.brand-icon .icon { width: 18px; height: 18px; }
.live-state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.state-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--unknown); }
.live-state.is-operational .state-dot { background: var(--success); }
.live-state.is-degraded .state-dot { background: var(--warning); }
.live-state.is-outage .state-dot { background: var(--danger); }
.status-main { padding: 28px 0 44px; }
.overall-banner { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 16px; min-height: 108px; padding: 22px 26px; border: 1px solid var(--border); border-radius: 8px; background: #fafbfb; }
.overall-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: white; background: var(--unknown); }
.overall-icon .icon { width: 24px; height: 24px; }
.overall-banner strong { display: block; font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.overall-banner small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.overall-banner.is-operational { border-color: rgba(24, 173, 130, .55); background: var(--success-soft); }
.overall-banner.is-operational .overall-icon { background: var(--success); }
.overall-banner.is-degraded { border-color: rgba(230, 161, 24, .65); background: var(--warning-soft); }
.overall-banner.is-degraded .overall-icon { background: var(--warning); }
.overall-banner.is-outage { border-color: rgba(217, 75, 75, .55); background: var(--danger-soft); }
.overall-banner.is-outage .overall-icon { background: var(--danger); }
.status-surface, .incident-surface { margin-top: 24px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.surface-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; padding: 18px 24px; border-bottom: 1px solid var(--border-soft); }
.surface-header h1, .surface-header h2, .route-details-header h2 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: -.025em; }
.surface-header p, .route-details-header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.range-control { color: var(--muted); font-size: 13px; white-space: nowrap; }
.status-loading { padding: 28px 24px; color: var(--muted); text-align: center; }
.status-row { border-bottom: 1px solid var(--border-soft); }
.status-row:last-child { border-bottom: 0; }
.status-row-main { display: grid; grid-template-columns: 32px minmax(150px, .9fr) minmax(300px, 2fr) 92px; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 12px 22px; text-align: left; }
.service-state-icon { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: white; background: var(--unknown); }
.service-state-icon .icon { width: 15px; height: 15px; }
.status-row.is-operational .service-state-icon { background: var(--success); }
.status-row.is-degraded .service-state-icon { background: var(--warning); }
.status-row.is-outage .service-state-icon { background: var(--danger); }
.service-name { display: grid; gap: 2px; }
.service-name strong { font-size: 14px; font-weight: 650; }
.service-name small { color: var(--muted); font-size: 12px; }
.history-strip { display: grid; grid-template-columns: repeat(30, minmax(3px, 1fr)); gap: 3px; min-width: 0; }
.history-day { height: 17px; border-radius: 1px; background: var(--unknown); }
.history-day.is-operational { background: var(--success); }
.history-day.is-degraded { background: var(--warning); }
.history-day.is-outage { background: var(--danger); }
.history-day.is-no_data { background: #e8eaec; }
.availability { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.status-row.is-degraded .availability { color: #9c6b08; }
.status-row.is-outage .availability { color: var(--danger); }
.incident-header { min-height: 70px; }
.incident-item, .incident-empty { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 20px 24px; border-bottom: 1px solid var(--border-soft); }
.incident-item:last-child, .incident-empty:last-child { border-bottom: 0; }
.incident-date { color: var(--muted); font: 12px/1.6 var(--font-mono); }
.incident-copy { display: grid; gap: 4px; }
.incident-copy strong { font-size: 14px; }
.incident-copy small { color: var(--muted); font-size: 12px; }
.incident-status { width: fit-content; margin-bottom: 2px; color: #9c6b08; font-size: 11px; font-weight: 700; }
.incident-empty { grid-template-columns: 12px 1fr; color: var(--muted); font-size: 13px; }
.incident-empty::before { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--success); content: ""; }
.status-footer { display: flex; align-items: flex-start; padding: 24px 0 42px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 12px; }
.status-footer > span:first-child { display: grid; }
.status-footer strong { color: var(--foreground); }
.status-footer small { margin-top: 3px; }
@media (max-width: 760px) {
  .status-header, .status-footer, .status-main { width: calc(100% - 28px); }
  .status-header { min-height: 64px; }
  .brand { font-size: 15px; }
  .brand-icon { width: 30px; height: 30px; }
  .status-main { padding-top: 18px; }
  .overall-banner { grid-template-columns: 36px 1fr; min-height: 96px; padding: 18px; }
  .overall-icon { width: 36px; height: 36px; }
  .overall-banner strong { font-size: 18px; }
  .overall-banner small { font-size: 12px; }
  .surface-header { align-items: flex-start; padding: 16px; }
  .surface-header h1, .surface-header h2 { font-size: 18px; }
  .range-control { font-size: 11px; }
  .status-row-main { grid-template-columns: 26px minmax(105px, 1fr) 76px; min-height: 64px; padding: 10px 14px; gap: 9px; }
  .service-state-icon { width: 22px; height: 22px; }
  .service-name small, .history-strip { display: none; }
  .availability { font-size: 12px; }
  .incident-item { grid-template-columns: 1fr; gap: 8px; padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
