@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/inter.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --radius: 0.325rem;
  --radius-sm: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --content: oklch(0.97 0 0);
  --card: oklch(1 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: #454545;
  --border: #c8c8cc;
  --primary: oklch(0.51 0.26 285);
  --accent: oklch(0.95 0.02 285);
  --accent-foreground: oklch(0.3 0.15 285);
  --success: #006b45;
  --glass-green: rgb(217 247 230 / 78%);
  --glass-green-border: #83b79a;
  --glass-red: rgb(255 230 235 / 82%);
  --glass-neutral: rgb(238 238 241 / 82%);
  --destructive: oklch(0.65 0.23 15);
  --destructive-text: oklch(0.5 0.2 15);
  --mark-surface: oklch(0.18 0 0);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--content);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-sm); }
h1, h2, p { margin: 0; }

.topbar { background: var(--background); border-bottom: 1px solid var(--border); }
.topbar-inner { max-width: 880px; height: 52px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
/* The supplied wordmark is drawn in white for dark backgrounds. */
.brand-wordmark { display: block; width: 104px; height: auto; filter: brightness(0); }
.brand-product { font-size: 14px; font-weight: 600; padding-left: 12px; border-left: 1px solid var(--border); }
.nav-item { margin-left: auto; font-size: 13px; font-weight: 600; line-height: 28px; padding: 0 10px; border-radius: var(--radius-lg); color: var(--muted-foreground); background: var(--glass-neutral); border: 1px solid var(--border); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

.nav-item.operational { color: var(--success); background: var(--glass-green); border-color: var(--glass-green-border); box-shadow: inset 0 1px 0 rgb(255 255 255 / 85%); }
.nav-item.outage { color: var(--destructive-text); background: var(--glass-red); }

main { max-width: 880px; margin: 0 auto; padding: 24px; }
.page-title { margin-bottom: 16px; }
h1 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.page-title p { color: var(--muted-foreground); font-size: 13px; }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 1px 2px oklch(0 0 0 / 4%); overflow: hidden; }

.summary { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.summary > .indicator { margin-top: 6px; }
.summary h2 { font-size: 14px; font-weight: 600; }
.summary p { color: var(--muted-foreground); font-size: 13px; }

.indicator { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--muted-foreground); }
.operational .indicator { background: var(--success); }
.outage .indicator { background: var(--destructive); }

.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 16px; background: var(--muted); border-bottom: 1px solid var(--border); }
.panel-heading h2 { font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.panel-heading > span { font-size: 12px; color: var(--muted-foreground); }

ul { padding: 0; margin: 0; list-style: none; }
li.service { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
li.service + li.service { border-top: 1px solid var(--border); }
.service-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.service-name { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.service-component { font-size: 12px; color: var(--muted-foreground); }

.badge { flex-shrink: 0; width: 24px; height: 24px; display: grid; place-items: center; background: var(--mark-surface); border-radius: var(--radius-sm); perspective: 120px; }
.coin { position: relative; width: 13px; height: 12.5px; transform-style: preserve-3d; animation: spin 16s linear infinite; animation-delay: var(--delay, 0s); }
.face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.back { transform: rotateY(180deg); }
@keyframes spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

.service-state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.service-state.operational { color: var(--success); }
.service-state.outage { color: var(--destructive-text); }
.service-state .indicator { width: 6px; height: 6px; }

footer { margin-top: 12px; color: var(--muted-foreground); font-size: 12px; }
footer p + p { margin-top: 2px; }
.notice { margin-top: 16px; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }

.incidents, .report { margin-top: 16px; }
#incidents { padding: 14px 16px; }
#incidents article + article { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }
#incidents h3 { font-size: 14px; margin: 0 0 8px; }
#incidents h4 { font-size: 12px; margin: 12px 0 4px; color: var(--muted-foreground); }
#incidents p { white-space: pre-wrap; overflow-wrap: anywhere; }
#report-form { display: grid; gap: 12px; padding: 14px 16px; }
#report-form label { display: grid; gap: 4px; font-weight: 500; }
#report-form input, #report-form select, #report-form textarea { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; background: var(--card); color: var(--foreground); }
#report-submit { justify-self: start; border: 0; border-radius: var(--radius-sm); background: var(--primary); color: white; padding: 8px 12px; font: inherit; cursor: pointer; }
#report-submit:disabled { opacity: .6; cursor: default; }
#report-form .honeypot { display: none; }

@media (prefers-reduced-motion: reduce) {
  .coin { animation: none; }
}
@media (max-width: 560px) {
  .topbar-inner { padding: 0 16px; }
  .nav-item { font-size: 11px; padding: 0 6px; }
  .brand-product { font-size: 12px; padding-left: 8px; }
  .topbar-inner { gap: 8px; }
  main { padding: 16px; }
  .panel-heading { flex-wrap: wrap; }
  li.service { flex-wrap: wrap; }
  .service-state { flex-basis: 100%; padding-left: 36px; }
}
