:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e2e8f0;
  background: #0f141b;
  line-height: 1.6;
  --muted: #a0adbe;
  --border: #2b3747;
  --panel: #171f2a;
  --green: #6ee7b7;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 80% 0%, #162331 0, transparent 45%); min-height: 100vh; }
main { max-width: 1440px; padding: 0 40px; margin: auto; }
a { color: #93c5fd; text-decoration: none; }
a:hover { color: #bfdbfe; }
:focus-visible { outline: 2px solid #93c5fd; outline-offset: 5px; border-radius: 3px; }
h1,h2,h3,h4,p { margin: 0; }
h1,h2,h3,h4 { color: #f1f5f9; line-height: 1.3; }
h1 { font-size: clamp(1.65rem, 3vw, 2.5rem); font-weight: 650; letter-spacing: -.045em; display: flex; align-items: center; gap: 16px; }
h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.025em; }
h3 { font-size: 1rem; font-weight: 600; }
h4 { font-size: .8rem; margin: 20px 0 10px; }
.masthead { min-height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.brand { display: flex; align-items: center; gap: 10px; color: #f1f5f9; font-weight: 650; font-size: 1.1rem; letter-spacing: -.025em; }
.brand-mark { color: #6ee7b7; background: #153c32; border: 1px solid #296249; border-radius: 9px; width: 33px; height: 33px; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; }
.brand-divider { color: #536174; padding: 0 3px; font-weight: 400; }
.brand-label { color: var(--muted); font-weight: 450; }
.portfolio-link { font-size: .85rem; color: var(--muted); display: flex; gap: 10px; }
.overview { margin-bottom: 42px; background: transparent; color: inherit; }
.overview-main { position: relative; padding: 8px 0 28px; }
.eyebrow { text-transform: uppercase; font-size: .65rem; letter-spacing: .16em; font-weight: 650; color: var(--muted); margin-bottom: 10px; }
.status-orb { width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; background: var(--status-color); box-shadow: 0 0 0 6px color-mix(in srgb, var(--status-color) 10%, transparent), 0 0 24px color-mix(in srgb, var(--status-color) 20%, transparent); }
.overview-description { color: var(--muted); margin-top: 12px; font-size: .9rem; }
.update-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.update-time { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.refresh { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border); background: #1a2430; color: #dce6f2; font-size: .75rem; display: flex; gap: 12px; align-items: center; }
.refresh:hover { background: #243143; border-color: #536174; }
.overview-stats { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.overview-stats > div { display: flex; flex-direction: column; gap: 5px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 10px; background: linear-gradient(125deg,#1b2531,#151d27); box-shadow: 0 4px 16px #00000012; position: relative; }
.stat-value { font-size: 1.85rem; line-height: 1.2; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .75rem; color: var(--muted); }
.healthy-text { color: var(--green); }
.degraded-text { color: #fbbf24; }
.down-text { color: #fb7185; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-note { color: var(--muted); font-size: .75rem; }
.count { font-size: .7rem; padding: 2px 8px; margin-left: 10px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); vertical-align: middle; }
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: start; }
.service-card { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(135deg,#19232f 0%,#151d27 100%); color: #e2e8f0; box-shadow: 0 8px 24px #00000016; overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease; }
.service-card:hover { border-color: #46566b; box-shadow: 0 8px 30px #00000026; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 22px 0; flex-wrap: wrap; }
.service-identity { display: flex; gap: 11px; align-items: center; min-width: 0; }
.service-identity > div { min-width: 0; }
.service-identity h3 { overflow-wrap: anywhere; }
.service-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; font-size: .75rem; font-weight: 600; color: #93c5fd; background: #213249; border: 1px solid #354e6b; border-radius: 9px; }
.service-id { font-size: .7rem; color: var(--muted); font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.operational { --status-color: #6ee7b7; --status-bg: #174b384d; }
.degraded { --status-color: #fde68a; --status-bg: #65451470; }
.down { --status-color: #fda4af; --status-bg: #682b3566; }
.unknown { --status-color: #b1bdce; --status-bg: #34415580; }
.badge { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: .65rem; font-weight: 550; padding: 4px 8px; border-radius: 5px; color: var(--status-color); background: var(--status-bg); text-transform: capitalize; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.stale-note { margin: 16px 22px 0; padding: 8px 10px; background: #34415550; color: #c5cfdb; border-left: 2px solid #8292a8; font-size: .7rem; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 22px 20px; }
.metrics > div { display: flex; flex-direction: column; min-width: 0; }
.metrics > div + div { border-left: 1px solid var(--border); padding-left: 20px; }
.metric-label { font-size: .7rem; color: var(--muted); margin-bottom: 5px; }
.metric-value { font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 600; letter-spacing: -.05em; line-height: 1.4; font-variant-numeric: tabular-nums; }
.metric-value small { color: var(--muted); font-size: .8rem; font-weight: 450; padding-left: 4px; letter-spacing: 0; }
.metric-caption { font-size: .65rem; color: var(--muted); margin-top: 3px; }
.card-history { padding: 0 22px 18px; }
.history-heading,.history-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .65rem; }
.history { display: flex; gap: 3px; margin: 10px 0 8px; }
.history > span { flex: 1; min-width: 0; height: 27px; border-radius: 2px; background: var(--status-color); opacity: .8; transition: opacity .15s ease; }
.history > .unknown { background: #344155; opacity: 1; }
.history > span:hover { opacity: 1; outline: 1px solid #ced8e7; outline-offset: 2px; }
.history-axis { color: #8c9aaf; font-size: .6rem; }
.sparkline { display: block; width: 100%; height: 48px; margin-bottom: 10px; color: #6ee7b7; }
.sparkline line { stroke: currentColor; stroke-width: 1.7; vector-effect: non-scaling-stroke; }
.sparkline circle { fill: currentColor; }
.sparkline .chart-grid { stroke: #344155; stroke-width: 1; }
.sparkline-label { font-size: .6rem; color: var(--muted); margin-bottom: 8px; }
.last-check { padding: 12px 22px; border-top: 1px solid var(--border); font-size: .6rem; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #a0adbe; font-variant-numeric: tabular-nums; }
.last-check time { text-align: right; }
.card-details { border-top: 1px solid var(--border); }
summary { cursor: pointer; }
.card-details > summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px; list-style: none; font-size: .7rem; color: #aebdd0; }
.card-details > summary::-webkit-details-marker { display: none; }
.card-details > summary:hover { color: #e2e8f0; background: #ffffff03; }
.card-details > summary > span { font-size: 1rem; transition: transform .15s; }
.card-details[open] > summary > span { transform: rotate(45deg); }
.details-content { padding: 0 22px 20px; }
dl { margin: 0; }
dd { margin: 3px 0 0; font-size: .7rem; overflow-wrap: anywhere; }
dt { color: var(--muted); font-size: .65rem; }
.check-times { display: grid; gap: 12px; }
.table-wrap { overflow: auto; max-height: 340px; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; font-size: .65rem; }
th,td { text-align: left; padding: 8px 9px; border-bottom: 1px solid var(--border); white-space: nowrap; font-variant-numeric: tabular-nums; }
th { color: #b6c3d4; font-weight: 500; }
td { color: #a0adbe; }
.daily-details { margin-top: 16px; font-size: .7rem; color: #b6c3d4; }
.daily-details summary { margin-bottom: 8px; }
.history-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 20px 0 8px; font-size: .65rem; color: var(--muted); }
.history-legend > span { display: flex; align-items: center; gap: 7px; }
.history-legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--status-color); }
.method-note { color: var(--muted); font-size: .7rem; line-height: 1.7; }
.incidents-section { margin-top: 42px; }
.empty-state { display: flex; align-items: center; gap: 18px; padding: 28px; border: 1px solid var(--border); border-radius: 10px; background: #171f2a; }
.empty-state h3 { margin-bottom: 4px; font-size: .9rem; }
.empty-state p { color: var(--muted); font-size: .75rem; }
.empty-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #174b384d; color: var(--green); font-size: 1.1rem; border: 1px solid #286449; }
.incident-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.incident { padding: 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.incident-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.incident-times { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 16px; }
.methodology { margin-top: 20px; font-size: .7rem; color: var(--muted); }
.methodology p { margin-top: 12px; max-width: 85ch; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding: 22px 0; border-top: 1px solid var(--border); color: #91a0b5; font-size: .7rem; }
.footer-divider { padding: 0 8px; color: #536174; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 1199px) {
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  main { padding: 0 28px; }
  .overview-stats > div { padding: 18px; }
}
@media (max-width: 719px) {
  main { padding: 0 18px; }
  .masthead { min-height: 72px; margin-bottom: 26px; }
  .service-grid,.incident-list { grid-template-columns: minmax(0,1fr); }
  .overview-stats { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
  .overview-stats > div { padding: 14px; }
  .stat-value { font-size: 1.5rem; }
  .stat-label { font-size: .65rem; }
  .section-heading { align-items: start; flex-direction: column; gap: 6px; }
  .update-row { align-items: start; }
  .update-time { max-width: 24ch; line-height: 1.8; }
  .overview { margin-bottom: 30px; }
  .card-heading { padding-top: 20px; }
  .metric-value { font-size: 1.8rem; }
  .empty-state { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; } }
