:root { color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: #111827; font: 16px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 820px; margin: 0 auto; padding: 40px 24px 64px; }
header a { color: inherit; font-weight: 700; text-decoration: none; }
h1 { margin: 24px 0; font-size: 1.875rem; line-height: 1.2; }
h2 { margin: 32px 0 12px; font-size: 1.125rem; }
h3 { margin: 16px 0 8px; font-size: 0.9375rem; }
p { margin: 8px 0; }
.overview { padding: 20px 24px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 5%); }
#summary { margin: 0 0 6px; font-size: 1.125rem; font-weight: 600; }
#impact { color: #4b5563; }
#updated, time { color: #6b7280; font-size: 0.875rem; }
#fetch-error { color: #b91c1c; }
button { padding: 8px 16px; border: 0; border-radius: 8px; background: #f3f4f6; color: inherit; font: inherit; font-weight: 500; cursor: pointer; }
button:hover { background: #e5e7eb; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #0284c7; outline-offset: 4px; }
@media (max-width: 520px) {
  main { padding: 24px 16px 40px; }
  .overview { padding: 16px; }
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 36px; height: 36px; background: #111827; border-radius: 8px; }
.brand-icon img { display: block; filter: brightness(0) invert(1); }
.brand strong { display: block; font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.brand-name { display: block; color: #6b7280; font-size: 0.75rem; line-height: 1rem; font-weight: 400; }

ul, ol { margin: 0; padding: 0; list-style: none; }
#services, #incidents, #history > li { border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / 5%); }
#services > details + details { border-top: 1px solid #e5e7eb; }
summary { padding: 16px 18px; border-radius: 11px; cursor: pointer; font-weight: 600; }
summary:hover { background: #f9fafb; }
summary .status { float: right; margin-left: 16px; }
summary::after { content: ""; display: block; clear: both; }
#services ul { padding: 0 18px 8px; border-top: 1px solid #e5e7eb; }
#services li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
#services li + li { border-top: 1px solid #f3f4f6; }
.status { font-size: 0.8125rem; font-weight: 600; }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: currentColor; }
.status[data-status="operational"], #summary[data-status="operational"] { color: #15803d; }
.status[data-status="partial"], #summary[data-status="partial"] { color: #b45309; }
.status[data-status="outage"], #summary[data-status="outage"] { color: #b91c1c; }
.status[data-status="unknown"], #summary[data-status="unknown"] { color: #6b7280; }
#history > li + li { margin-top: 12px; }
#history > li:not([data-day]) { padding: 16px 18px; color: #6b7280; }
.incident-groups { padding: 0 18px 18px; }
.incident-group + .incident-group { margin-top: 20px; }
.incident-detail { padding: 10px 0; }
.incident-detail + .incident-detail { border-top: 1px solid #f3f4f6; }
.incident-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.incident-detail time { display: block; margin-top: 2px; }
#older-incidents { margin-top: 16px; }
@media (max-width: 520px) {
  summary .status { float: none; display: block; margin: 4px 0 0 18px; }
  #services li { align-items: flex-start; }
  #services li .status { text-align: right; }
}
