:root {
  color-scheme: light;
  --ink: #14122b;
  --muted: #6f6f85;
  --border: #e3e3ee;
  --green: #4d974a;
  --orange: #d08a14;
  --grey: #b8b8c8;
  --accent: #0d0082;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #f7f7fb;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  padding: 40px 20px 56px;
}
[hidden] {
  display: none !important;
}
.page {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
header,
footer,
.section-heading,
.tool-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
}
.brand .muted {
  font-weight: 400;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.muted {
  color: var(--muted);
}
.domain,
.since,
.tool-state,
.legend,
#days-hint {
  font-size: 12px;
}
.surface {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
}
h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
#updated {
  margin: 2px 0 0;
  font-size: 13px;
}
#updated:empty {
  display: none;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.summary .dot {
  width: 12px;
  height: 12px;
}
.operational {
  background: var(--green);
}
.disrupted {
  background: var(--orange);
}
.maintenance,
.neutral {
  background: var(--grey);
}
.incidents {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.incidents:empty {
  display: none;
}
.incident {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-wrap: anywhere;
}
.incident-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.tool-name {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.incident .tool-name {
  font-size: 15px;
  font-weight: 600;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.badge .dot {
  width: 6px;
  height: 6px;
}
.incident-line {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.expected {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}
.section-heading {
  align-items: baseline;
  margin-bottom: 12px;
}
.section-heading h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.tool-row {
  padding: 14px 18px;
  border-bottom: 1px solid #ebebf3;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-state {
  color: #55556a;
}
.days {
  display: flex;
  gap: 3px;
}
.bar {
  flex: 1;
  min-width: 0;
  height: 26px;
  border-radius: 2px;
}
.legend {
  margin: 0;
  padding: 12px 18px;
  line-height: 1.6;
}
footer {
  align-items: baseline;
  font-size: 13px;
  line-height: 1.6;
}
a {
  display: inline-block;
  color: var(--accent);
  transition:
    transform 160ms ease-out,
    opacity 160ms ease-out;
}
a:active:not(:focus-visible) {
  transform: scale(0.97);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  a {
    transition: opacity 160ms ease-out;
  }
  a:active:not(:focus-visible) {
    transform: none;
    opacity: 0.7;
  }
}

@media (max-width: 400px) {
  body {
    padding: 28px 16px 40px;
  }
  .summary {
    padding: 18px;
  }
  .brand {
    font-size: 14px;
    gap: 8px;
  }
  .tool-row {
    padding: 14px;
  }
}
