@font-face {
  font-family: Rethink;
  src: url('/font.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #0d0e11;
  --surface: #15161b;
  --raised: #1c1d24;
  --border: #353640;
  --text: #f3f3f6;
  --muted: #aaaab8;
  --accent: #ed8293;
  --green: #6cdeb0;
  --amber: #f1c777;
  --red: #ff9ca8;
  font-family: Rethink, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  scroll-padding-top: 24px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button, input { color: inherit; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { color: white; background: #9a2943; }
[hidden] { display: none !important; }
button { border: 0; }
.site-header { border-bottom: 1px solid var(--border); }
.header-inner, main, .footer-inner { width: min(100% - 64px, 1000px); margin-inline: auto; }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 650; text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; color: var(--muted); }
nav a:hover, footer a:hover { color: var(--text); text-decoration: underline; }
nav .support-link { color: var(--text); padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; }
.support-link span { color: var(--accent); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 0 22px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-weight: 650; letter-spacing: .12em; font-size: 14px; }
h1 { margin: 0; font-size: 36px; line-height: 1.2; font-weight: 650; letter-spacing: -1px; }
.page-description { margin: 9px 0 0; color: var(--muted); }
.button { min-height: 44px; display: inline-flex; gap: 9px; align-items: center; justify-content: center; padding: 9px 14px; border-radius: 8px; font-size: 14px; font-weight: 550; white-space: nowrap; }
.secondary { background: var(--surface); border: 1px solid var(--border); }
.secondary:hover:not(:disabled) { background: var(--raised); border-color: var(--muted); }
.text-button { background: transparent; color: var(--accent); padding-inline: 10px; }
.text-button:hover { background: #ed82930d; }
#refresh-icon { font-size: 22px; line-height: 1; }
.overview { border: 1px solid #345549; border-radius: 12px; background: #14231e; overflow: hidden; }
.overview-main { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.overall-symbol { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; color: var(--green); background: #6cdeb016; border: 1px solid #6cdeb040; border-radius: 50%; font-size: 25px; }
.overview h2 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.3px; }
.overview p { margin: 5px 0 0; color: #c0d2c9; font-size: 15px; }
.overview-footer { padding: 11px 24px; border-top: 1px solid #ffffff14; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; color: #c0d2c9; font-size: 14px; }
.separator { margin: 0 5px; }
.overview.unknown { border-color: #4d4d62; background: #1b1c27; }
.overview.unknown .overall-symbol { color: #cccce0; border-color: #cccce040; background: #cccce014; }
.overview.unknown p, .overview.unknown .overview-footer { color: #c1c1d1; }
.overview.degraded { border-color: #675435; background: #282216; }
.overview.degraded .overall-symbol { color: var(--amber); background: #f1c77716; border-color: #f1c77740; }
.overview.down { border-color: #74414b; background: #2e1b20; }
.overview.down .overall-symbol { color: var(--red); background: #ff9ca816; border-color: #ff9ca840; }
.overview.down p, .overview.down .overview-footer, .overview.degraded p, .overview.degraded .overview-footer { color: #ded2c8; }
.notice { padding: 18px 20px; margin-top: 16px; border: 1px solid #7b623c; border-radius: 10px; background: #2b2419; color: #f1d399; }
.notice button { min-height: 44px; background: none; color: inherit; text-decoration: underline; padding-inline: 8px; }
section[id=services], section[id=incidents] { margin-top: 26px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-heading h2, .active-incidents>h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.4px; }
.section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.product { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 10px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.product>summary { min-height: 80px; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 10px; }
.product>summary:hover { background: #ffffff04; }
.product-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.product-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #62404c; background: #c3294012; border-radius: 9px; color: var(--accent); flex-shrink: 0; }
.product-icon svg { width: 21px; height: 21px; }
.product-name { font-size: 18px; font-weight: 600; line-height: 1.3; display: block; }
.product-count { font-size: 14px; color: var(--muted); display: block; margin-top: 4px; }
.product-status { display: flex; align-items: center; gap: 24px; }
.chevron { width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin: -4px 3px 0; flex-shrink: 0; }
.product[open]>summary .chevron { transform: rotate(225deg); margin-top: 4px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--green); }
.status.degraded { color: var(--amber); }
.status.down { color: var(--red); }
.status.unknown { color: #c0bed4; }
.status-symbol { width: 16px; text-align: center; font-weight: 700; flex-shrink: 0; }
.product-body { border-top: 1px solid var(--border); padding: 0 22px 20px; }
.endpoint-table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
.endpoint-table th { font-size: 14px; color: var(--muted); font-weight: 500; padding: 14px 0 8px; }
.endpoint-table th:first-child { width: 47%; }
.endpoint-table th:nth-child(2) { width: 33%; }
.endpoint-table td { padding: 15px 0; vertical-align: middle; border-bottom: 1px solid #ffffff0c; }
.endpoint-link { font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; }
.endpoint-link:hover { color: var(--accent); text-decoration: underline; }
.external-icon { color: var(--muted); font-size: 14px; }
.endpoint-url { display: block; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; margin-top: 2px; }
.response-time { font-variant-numeric: tabular-nums; }
.endpoint-note { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.endpoint-note.error { color: var(--amber); }
.history-details { margin-top: 12px; }
.history-details>summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--accent); font-size: 14px; font-weight: 550; }
.history-title { display: flex; gap: 8px; align-items: center; }
.history-value { color: var(--text); font-variant-numeric: tabular-nums; }
.history-content { padding-top: 12px; }
.history-description { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.history-chart { display: grid; grid-template-columns: repeat(90,minmax(0,1fr)); gap: 3px; height: 28px; }
.day-bar { background: #747480; border-radius: 2px; }
.day-bar.operational { background: #57bd92; }
.day-bar.degraded { background: #daa94e; }
.day-bar.down { background: #ec8795; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; margin-top: 7px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch { height: 10px; width: 10px; border-radius: 2px; background: #57bd92; }
.legend-swatch.interrupted { background: #daa94e; }
.legend-swatch.empty { background: #747480; }
.date-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.date-controls label { font-size: 14px; font-weight: 550; }
.date-input-group { display: flex; gap: 8px; align-items: center; }
input[type=date] { min-height: 44px; min-width: 170px; border-radius: 7px; border: 1px solid #656572; background: var(--background); padding: 7px 10px; font-size: 16px; }
.day-step { min-width: 44px; padding: 8px; font-size: 22px; }
.day-result { margin-top: 18px; padding: 16px; background: var(--background); border-radius: 8px; }
.day-result h4 { margin: 0; font-size: 16px; font-weight: 550; }
.day-result>p { margin: 3px 0 12px; font-size: 14px; color: var(--muted); }
.daily-endpoints { list-style: none; margin: 0; padding: 0; }
.daily-endpoints li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.daily-endpoints li>span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.section-note { margin: 13px 0 0; color: var(--muted); font-size: 14px; }
.active-incidents { margin-top: 26px; }
.active-incidents>h2 { margin-bottom: 12px; }
.incident { padding: 20px 22px; border-bottom: 1px solid var(--border); }
.incident:last-child { border-bottom: 0; }
.active-incidents .incident { border: 1px solid #74414b; border-left: 3px solid var(--red); border-radius: 10px; background: #281b20; margin-bottom: 12px; }
.incident-list { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.incident-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.incident h3 { font-size: 16px; font-weight: 600; margin: 0; }
.incident-label { color: var(--green); font-size: 14px; }
.active-incidents .incident-label { color: var(--red); }
.incident p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.incident a { color: var(--accent); display: inline-block; min-height: 44px; padding-block: 12px 4px; font-size: 14px; }
.empty-state, .loading-state { padding: 24px; color: var(--muted); }
.loading-state { border: 1px solid var(--border); border-radius: 10px; }
.empty-state strong { color: var(--text); display: block; font-weight: 550; margin-bottom: 4px; }
.empty-state p { font-size: 14px; margin: 0; }
#show-incidents { margin-top: 8px; }
.methodology { margin: 28px 0 42px; border-top: 1px solid var(--border); }
.methodology>summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.methodology>summary span { font-size: 23px; padding-inline: 12px; }
.methodology[open]>summary span { transform: rotate(45deg); }
.methodology-body { max-width: 800px; color: var(--muted); font-size: 14px; padding-bottom: 8px; }
.methodology-body p { margin: 0 0 14px; }
.methodology-body li { margin-bottom: 8px; }
.methodology-body strong { color: var(--text); font-weight: 550; }
.methodology-body a { color: var(--accent); }
footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; color: var(--muted); font-size: 14px; }
.footer-inner>div { display: flex; gap: 22px; }
footer a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; text-decoration: none; }
.skip { position: fixed; top: -80px; left: 16px; padding: 12px 18px; background: #8b2038; color: white; z-index: 10; border-radius: 7px; }
.skip:focus { top: 12px; }
@media(max-width:700px) {
  .header-inner, main, .footer-inner { width: calc(100% - 40px); }
  .header-inner { min-height: 76px; }
  nav { gap: 12px; }
  nav>a:not(.support-link) { display: none; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 29px; height: 29px; }
  nav .support-link { padding-inline: 10px; }
  .page-heading { align-items: flex-end; padding-top: 28px; gap: 12px; }
  h1 { font-size: 30px; }
  .page-description { font-size: 14px; }
  .page-heading>.button { align-self: flex-start; margin-top: 25px; padding-inline: 10px; }
  .overview-main { padding: 20px; gap: 12px; align-items: flex-start; }
  .overview h2 { font-size: 20px; }
  .overview-footer { padding: 12px 20px; flex-direction: column; gap: 5px; }
  .overall-symbol { width: 34px; height: 34px; font-size: 21px; }
  .section-heading { gap: 8px; }
  .product>summary { padding: 17px 16px; gap: 12px; }
  .product-identity { gap: 10px; }
  .product-icon { display: none; }
  .product-name { font-size: 17px; }
  .product-status { gap: 10px; }
  .product-status .status { font-size: 14px; gap: 5px; white-space: normal; max-width: 124px; line-height: 1.35; }
  .product-body { padding-inline: 16px; }
  .endpoint-table thead { display: none; }
  .endpoint-table, .endpoint-table tbody { display: block; }
  .endpoint-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-bottom: 1px solid var(--border); padding-block: 17px; }
  .endpoint-table td { display: block; border: 0; padding: 0; }
  .endpoint-table td:first-child { grid-column: 1/-1; }
  .endpoint-table td:last-child { text-align: right; }
  .history-details>summary { flex-wrap: wrap; padding-block: 10px; }
  .history-chart { gap: 2px; }
  .date-controls { align-items: flex-start; }
  .date-input-group { width: 100%; }
  input[type=date] { min-width: 0; flex: 1; width: 100%; }
  .day-result { padding: 13px; }
  .incident, .empty-state { padding: 20px 17px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 6px; }
}
@media(max-width:360px) {
  .header-inner, main, .footer-inner { width: calc(100% - 32px); }
  .brand { font-size: 15px; }
  .page-heading { flex-wrap: wrap; }
  .page-heading>.button { margin-top: 0; }
  h1 { font-size: 28px; }
  .section-heading h2 { font-size: 21px; }
  .product-status { gap: 7px; }
  .product-name { font-size: 16px; }
}
@media(prefers-reduced-motion:no-preference) {
  #refresh[aria-busy=true] #refresh-icon { animation: spin 1s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mobile-label { display: none; }
@media(max-width:700px) { .mobile-label { display: block; color: var(--muted); font-size: 14px; } }
