:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202123;
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --muted: #707175;
  --line: #e7e7e9;
  --green: #2bb69b;
  --amber: #e9b52f;
  --red: #ed7865;
  --gray: #d9dbde;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h2, h3, h4 { font-size: inherit; font-weight: 500; }
[hidden] { display: none !important; }

.page { width: 100%; max-width: 768px; margin: 0 auto; padding: 34px 24px 32px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.brand { font-size: 28px; font-weight: 650; letter-spacing: -1px; line-height: 1.2; text-decoration: none; }
.subscribe { padding: 7px 12px; border: 1px solid #323236; border-radius: 6px; background: #27272b; color: #fff; font-size: 13px; font-weight: 450; line-height: 20px; white-space: nowrap; cursor: default; }
:focus-visible { outline: 2px solid #185d8a; outline-offset: 4px; }

.overall { border: 1px solid #d6d8dc; border-radius: 8px; overflow: hidden; }
.overall-heading { display: flex; align-items: center; gap: 9px; padding: 15px 17px; background: #f1f2f3; }
.overall h2 { font-size: 16px; letter-spacing: -0.15px; }
.overall > p { padding: 16px 17px; font-size: 14px; }
.status-icon { flex: 0 0 16px; width: 16px; height: 16px; display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; background: #8a8d93; color: white; font-size: 11px; font-weight: 700; line-height: 1; }
.overall[data-status="operational"] { border-color: #83cdbb; }
.overall[data-status="operational"] .overall-heading { background: #dcf7ee; }
.overall[data-status="operational"] .status-icon, .status-icon.operational { background: var(--green); }
.overall[data-status="degraded"] { border-color: #d8ba67; }
.overall[data-status="degraded"] .overall-heading { background: #fff5d9; }
.overall[data-status="degraded"] .status-icon, .status-icon.degraded { background: #956900; }
.overall[data-status="outage"] { border-color: #e4a294; }
.overall[data-status="outage"] .overall-heading { background: #ffebe5; }
.overall[data-status="outage"] .status-icon, .status-icon.outage { background: #b24431; }

.system-panel { margin-top: 24px; border: 1px solid var(--line); border-radius: 9px; box-shadow: 0 1px 3px #00000006; }
.section-heading { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 18px; row-gap: 4px; padding: 16px 18px; border-bottom: 1px solid #f5f5f6; }
.section-heading h2 { font-size: 16px; letter-spacing: -0.15px; }
.time-range { color: var(--muted); font-size: 13px; }
.models-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 18px 0; }
.models-heading h3 { font-size: 13px; }
.count { color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; font-weight: 400; }
.uptime-heading { color: var(--muted); font-size: 12px; }
.model-row { padding: 17px 18px 15px; min-width: 0; }
.model-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 9px; min-width: 0; }
.model-identity { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.model-identity .status-icon { position: relative; top: 2px; }
.model-name { min-width: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 450; }
.model-meta { display: flex; flex: 0 0 auto; align-items: baseline; gap: 15px; font-size: 12px; }
.model-status { color: var(--muted); }
.model-status.operational { color: #16836c; }
.model-status.degraded, .incident-state.degraded { color: #926600; }
.model-status.outage, .incident-state.outage { color: #b24431; }
.uptime { min-width: 56px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.history { display: grid; grid-template-columns: repeat(288, minmax(0, 1fr)); gap: clamp(0.15px, 0.09vw, 1px); height: 17px; width: 100%; min-width: 0; border-radius: 1px; }
.history[data-bins="144"] { grid-template-columns: repeat(144, minmax(0, 1fr)); }
.history-bar { min-width: 0; height: 100%; border-radius: 0.5px; }
.history-bar.operational, .legend-dot.operational { background: var(--green); }
.history-bar.degraded, .legend-dot.degraded { background: var(--amber); }
.history-bar.outage, .legend-dot.outage { background: var(--red); }
.history-bar.unknown, .legend-dot.unknown { background: var(--gray); }
.chart-axis { display: flex; justify-content: space-between; gap: 16px; margin: 3px 18px 15px; font-size: 11px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 16px; row-gap: 8px; padding: 0 2px; margin: 12px 0 0; list-style: none; color: var(--muted); font-size: 11px; }
.legend li { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 7px; }

.empty-state { color: var(--muted); font-size: 13px; padding: 20px 18px 22px; }
.incidents-section { margin-top: 43px; }
.incidents-section > h2 { font-size: 17px; font-weight: 500; letter-spacing: -0.2px; margin-bottom: 14px; }
#incidents { border-top: 1px solid var(--line); }
#incidents > .empty-state { padding: 20px 0 22px; }
.incident { padding: 19px 0; border-bottom: 1px solid var(--line); }
.incident-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.incident-name { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.incident-state { flex: 0 0 auto; font-size: 12px; }
.incident-resolution { font-size: 12px; margin-top: 6px; font-weight: 500; }
.incident-dates { color: var(--muted); font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.notice { color: var(--muted); margin: 16px 0; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; color: var(--muted); font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 520px) {
  .page { padding: 26px 20px 28px; }
  .site-header { gap: 12px; margin-bottom: 25px; }
  .brand { font-size: 27px; }
  .subscribe { font-size: 12px; padding: 7px 10px; }
  .overall-heading { padding: 14px; align-items: flex-start; }
  .overall-heading .status-icon { margin-top: 4px; }
  .overall > p { padding: 14px; }
  .section-heading { padding: 15px 14px; justify-content: space-between; gap: 8px; }
  .models-heading { padding: 13px 14px 0; }
  .model-row { padding: 16px 14px 14px; }
  .model-heading { flex-direction: column; gap: 5px; }
  .model-meta { width: 100%; padding-left: 24px; justify-content: space-between; }
  .history { height: 20px; }
  .chart-axis { margin-right: 14px; margin-left: 14px; }
  .legend { justify-content: flex-start; column-gap: 14px; }
  .incidents-section { margin-top: 36px; }
  .site-footer { margin-top: 18px; }
}

@media (forced-colors: active) {
  .history-bar { border: 1px solid CanvasText; }
  .status-icon { border: 1px solid CanvasText; }
}
