:root {
  --blue: #2b5fac; --blue-dark: #204c88; --blue-light: #edf3fc;
  --navy: #183454; --ink: #21324a; --muted: #65758b;
  --line: #e0e7ef; --paper: #fff; --green: #237952; --green-light: #edf7f1;
  --amber: #94630e; --red: #b13d51;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none; color: var(--ink); background: #f5f7fb;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #5284cb; outline-offset: 4px; }
[hidden] { display: none !important; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, main, footer { max-width: 1120px; margin: auto; padding-left: 40px; padding-right: 40px; }
.header-inner { height: 88px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; }
.brand img { width: 146px; height: auto; display: block; }
.brand-label { border-left: 1px solid #d7e0ea; padding-left: 22px; font-size: 14px; font-weight: 500; color: #78869a; }
nav { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
nav a { padding: 10px 17px; border-radius: 7px; }
nav a[aria-current="page"] { background: var(--blue-light); color: var(--blue-dark); }
nav a:hover { color: var(--blue); background: #f5f8fc; }
main { padding-top: 38px; padding-bottom: 40px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 1.6px; color: var(--blue); margin: 0 0 9px; }
h1 { margin: 0; font-size: 31px; line-height: 1.2; font-weight: 650; letter-spacing: -1px; }
#last-updated { color: var(--muted); font-size: 11px; line-height: 1.6; padding-bottom: 3px; font-variant-numeric: tabular-nums; }
.status-summary { border: 1px solid #d8e2ef; border-radius: 16px; background: #fff; box-shadow: 0 5px 18px #1d355606; overflow: hidden; }
.overview { --status: #c0cbd9; position: relative; isolation: isolate; display: flex; align-items: center; gap: 20px; padding: 32px; min-height: 144px; background: var(--navy); color: #fff; overflow: hidden; }
.overview::after { content: ""; position: absolute; z-index: -1; right: -4px; top: -100px; width: 310px; height: 310px; border: 1px solid #ffffff09; border-radius: 50%; box-shadow: 0 0 0 32px #ffffff03,0 0 0 64px #ffffff03,0 0 0 96px #ffffff03; pointer-events: none; }
.overview.is-operational { --status: #a8e6c3; }
.overview.is-degraded { --status: #f5d18c; }
.overview.is-down { --status: #ffacb9; }
.overview-icon { width: 52px; height: 52px; display: grid; place-items: center; flex-shrink: 0; background: #ffffff09; border: 1px solid #ffffff25; border-radius: 50%; color: var(--status); font-size: 28px; font-weight: 400; }
.overview.is-operational .overview-icon { background: #77d7a514; border-color: #9de5bd40; }
.overview-copy { flex: 1; min-width: 0; }
.overview-eyebrow { display: block; text-transform: uppercase; font-size: 10px; letter-spacing: 1.6px; color: #b2c5dc; margin-bottom: 9px; font-weight: 600; }
.overview h2 { color: var(--status); margin: 0; font-size: 23px; font-weight: 550; letter-spacing: -.5px; line-height: 1.3; }
.overview p { margin: 8px 0 0; color: #d6e1ee; font-size: 12px; line-height: 1.6; }
.overview-total { padding-left: 28px; margin-left: 10px; border-left: 1px solid #ffffff21; text-align: right; min-width: 145px; }
.overview-count { display: block; font-size: 37px; font-weight: 550; letter-spacing: -1.6px; font-variant-numeric: tabular-nums; line-height: 1; }
.overview-count small { color: #a4bbd5; font-size: 22px; font-weight: 400; letter-spacing: -.5px; }
.overview-total-label { display: block; margin-top: 10px; font-size: 11px; color: #b2c5dc; }
.metrics { display: grid; grid-template-columns: repeat(3,1fr); padding: 24px 0; }
.metrics > div { padding: 0 32px; border-right: 1px solid var(--line); }
.metrics > div:last-child { border: 0; }
.metric-label { display: block; font-size: 12px; color: var(--muted); }
.metrics strong { display: block; margin: 10px 0 7px; font-size: 29px; font-weight: 600; letter-spacing: -.9px; font-variant-numeric: tabular-nums; line-height: 1.1; }
#metric-uptime { color: var(--blue-dark); }
.metric-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.services-section { margin-top: 34px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-title { display: flex; align-items: center; gap: 10px; }
.section-heading h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.4px; }
.section-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border: 1px solid #dce4ef; border-radius: 6px; color: #61738d; background: #ecf1f8; font-size: 11px; }
.period-control { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.period-control select { background: #fff; color: var(--ink); border: 1px solid #d8e1ed; border-radius: 7px; padding: 8px 11px; font-size: 12px; cursor: pointer; }
.service-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; align-items: start; }
.service-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 21px 23px 0; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.service-card:hover { border-color: #bfcfe4; box-shadow: 0 4px 14px #1d355606; }
.service-top { display: flex; align-items: center; gap: 11px; margin-bottom: 21px; }
.service-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; color: #55789e; background: #f0f4fa; border: 1px solid #e7edf5; border-radius: 9px; }
.service-icon svg { width: 19px; height: 19px; }
.service-top h3 { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; margin: 0; letter-spacing: -.2px; overflow-wrap: anywhere; }
.service-top h3 a:hover { color: var(--blue); }
.external-arrow { display: inline-block; color: #9aa9bc; font-size: 12px; margin-left: 5px; font-weight: 400; }
.state-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; white-space: nowrap; color: var(--green); font-weight: 500; }
.service-top > .state-label { padding: 5px 8px; border-radius: 5px; background: var(--green-light); }
.state-label.down { color: var(--red); }
.state-label.degraded { color: var(--amber); }
.state-label.unknown { color: var(--muted); }
.service-top > .state-label.down { background: #fceff1; }
.service-top > .state-label.degraded { background: #fff5e2; }
.service-top > .state-label.unknown { background: #f0f3f7; }
.state-label i, .legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.availability-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; font-size: 11px; color: var(--muted); }
.service-availability { font-size: 15px; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.history-bars { display: grid; grid-template-columns: repeat(30,minmax(0,1fr)); gap: 3px; height: 25px; }
.history-bars[data-days="7"] { grid-template-columns: repeat(7,minmax(0,1fr)); }
.history-bars[data-days="90"] { grid-template-columns: repeat(90,minmax(0,1fr)); gap: 1px; }
.day-bar { min-width: 0; width: 100%; height: 25px; padding: 0; border: 0; border-radius: 2px; background: #e5eaf1; transition: filter .12s, transform .12s; }
.day-bar.operational, .legend-dot.operational { background: #399771; }
.day-bar.down, .legend-dot.down { background: #ce5c70; }
.day-bar.degraded, .legend-dot.degraded { background: #d7a446; }
.day-bar.unknown { background: repeating-linear-gradient(135deg,#e9eef5 0 3px,#f2f5f9 3px 5px); }
.legend-dot.unknown { background: #c9d2df; }
.day-bar:hover, .day-bar:focus-visible { filter: brightness(.85); transform: translateY(-2px); outline: 2px solid var(--blue); outline-offset: 1px; }
.service-bottom { display: flex; justify-content: space-between; gap: 8px; margin: 8px 0 16px; color: #6c7d93; font-size: 10px; line-height: 1.4; }
.service-details { border-top: 1px solid #edf1f6; font-size: 11px; color: var(--muted); }
.service-details summary { display: flex; justify-content: space-between; align-items: center; list-style: none; min-height: 39px; font-size: 11px; color: #637a96; }
.service-details summary::-webkit-details-marker { display: none; }
.service-details summary:hover { color: var(--blue); }
.detail-chevron { font-size: 17px; line-height: 1; transition: transform .15s; }
.service-details[open] .detail-chevron { transform: rotate(180deg); }
.probe-list { display: grid; gap: 12px; padding: 6px 0; }
.probe-item { display: flex; align-items: baseline; gap: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.probe-item .state-label { min-width: 77px; font-size: 10px; }
.service-details > p { margin: 10px 0 20px; font-size: 10px; line-height: 1.8; }
.history-legend, .history-notes { display: flex; justify-content: space-between; gap: 14px; font-size: 11px; color: var(--muted); margin-top: 18px; line-height: 1.6; }
.history-legend > div { display: flex; flex-wrap: wrap; gap: 18px; }
.history-legend > div > span { display: flex; align-items: center; gap: 6px; }
.history-notes { font-size: 10px; margin-top: 8px; }
.history-notes a { color: var(--blue); font-size: 11px; white-space: nowrap; }
.history-notes a:hover { text-decoration: underline; text-underline-offset: 4px; }
.history-notes a span { margin-left: 5px; }
.incidents-section, .admin-section { margin-top: 38px; scroll-margin-top: 24px; }
.subtle { color: var(--muted); font-size: 12px; }
.empty-incidents { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 27px 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.empty-check { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #dfe9e4; border-radius: 50%; color: var(--green); background: #f4f9f6; font-size: 20px; }
.empty-incidents h3 { font-size: 13px; font-weight: 550; margin: 0; }
.empty-incidents p { font-size: 11px; color: var(--muted); margin: 6px 0 0; }
.incident-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 25px 28px; margin-bottom: 12px; }
.incident-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 11px; margin-bottom: 16px; }
.incident-status { color: var(--red); background: #fceff1; padding: 5px 9px; border-radius: 5px; font-size: 11px; font-weight: 500; }
.incident-status.resolved { color: var(--green); background: var(--green-light); }
.incident-status.monitoring { color: var(--amber); background: #fff5e2; }
.incident-card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; }
.incident-card p { color: #566980; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.incident-services { font-size: 11px; color: var(--muted); }
.incident-card details { margin-top: 18px; font-size: 12px; }
.incident-card summary { color: var(--blue); }
.updates { list-style: none; border-left: 1px solid var(--line); margin: 20px 0 0 5px; padding: 0 0 0 20px; }
.updates li { padding-bottom: 16px; }
.updates time { color: var(--muted); font-size: 11px; }
.updates p { margin: 6px 0 0; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-links { display: flex; gap: 20px; }
footer a:hover, footer a[aria-current="page"] { color: var(--blue); }
.connection-error { padding: 14px 18px; background: #fff7e6; border: 1px solid #eedbb4; border-radius: 9px; color: #805b16; font-size: 12px; line-height: 1.6; margin-bottom: 20px; }
.loading { font-size: 13px; padding: 24px; color: var(--muted); }
.skip-link { position: absolute; top: -100px; background: white; padding: 12px; z-index: 10; }
.skip-link:focus { top: 0; }
.text-button { border: 0; background: none; color: var(--blue); padding: 8px 0; font-size: 12px; }
.admin-panel { display: grid; grid-template-columns: 1fr 1.3fr; gap: 36px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.admin-panel h3 { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.admin-panel p { color: var(--muted); font-size: 13px; line-height: 1.7; }
form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: #566980; margin-bottom: 18px; }
form input, form select, form textarea { width: 100%; padding: 12px; border: 1px solid #d4deea; border-radius: 7px; background: #fff; color: var(--ink); font-size: 14px; }
form textarea { resize: vertical; }
.primary-button { background: var(--blue); color: #fff; border: 0; border-radius: 7px; padding: 12px 18px; font-size: 13px; }
.primary-button:hover { background: var(--blue-dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { border: 1px solid var(--line); border-radius: 7px; padding: 16px; margin: 0 0 18px; }
legend { padding: 0 6px; color: var(--muted); font-size: 12px; }
.checkboxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkboxes label { flex-direction: row; align-items: center; gap: 8px; margin: 0; }
.checkboxes input { width: auto; margin: 0; accent-color: var(--blue); }
.incident-editor { margin-top: 18px; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.incident-editor h3 { font-size: 15px; }
.incident-editor p, .form-message, .method-note { color: var(--muted); font-size: 12px; line-height: 1.7; }
.form-message { color: var(--blue); }
.form-message.error { color: var(--red); }
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 28px; width: calc(100% - 36px); max-width: 440px; color: var(--ink); background: #fff; box-shadow: 0 24px 80px #142b4b33; }
dialog::backdrop { background: #132b4c70; backdrop-filter: blur(3px); }
dialog > .text-button { float: right; }
dialog h2 { font-size: 24px; letter-spacing: -.6px; font-weight: 600; margin: 16px 0; }
dialog .eyebrow { display: inline-block; margin-top: 10px; }
dialog dl { display: grid; grid-template-columns: 1fr auto; gap: 17px; font-size: 13px; margin: 28px 0; }
dialog dt { color: var(--muted); }
dialog dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 820px) {
  .header-inner, main, footer { padding-left: 24px; padding-right: 24px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .overview { padding: 28px 24px; gap: 16px; }
  .overview h2 { font-size: 21px; }
  .overview-total { min-width: 115px; padding-left: 20px; }
  .metrics > div { padding: 0 24px; }
  .service-card { padding-left: 18px; padding-right: 18px; }
  .service-top { gap: 9px; flex-wrap: wrap; }
  .service-top h3 { font-size: 13px; }
  .service-top > .state-label { font-size: 10px; }
  .service-icon { width: 31px; height: 31px; }
  .external-arrow { display: none; }
}
@media (max-width: 620px) {
  .header-inner, main, footer { padding-left: 20px; padding-right: 20px; }
  .header-inner { height: 76px; gap: 14px; }
  .brand img { width: 122px; }
  .brand-label { display: none; }
  nav { gap: 2px; font-size: 12px; }
  nav a { padding: 9px 11px; }
  main { padding-top: 28px; padding-bottom: 30px; }
  h1 { font-size: 27px; letter-spacing: -.8px; }
  .eyebrow { font-size: 9px; }
  .page-heading { margin-bottom: 22px; gap: 10px; }
  #last-updated { font-size: 10px; }
  .status-summary { border-radius: 12px; }
  .overview { padding: 25px 20px; min-height: 132px; gap: 13px; flex-wrap: wrap; }
  .overview-icon { width: 40px; height: 40px; font-size: 24px; }
  .overview h2 { font-size: 20px; line-height: 1.35; }
  .overview-copy { flex-basis: calc(100% - 60px); }
  .overview-eyebrow { font-size: 9px; margin-bottom: 6px; }
  .overview-total { display: flex; align-items: center; gap: 8px; border: 0; text-align: left; min-width: 0; padding: 0; margin: 3px 0 0 53px; }
  .overview-count { font-size: 15px; letter-spacing: 0; }
  .overview-count small { font-size: 13px; letter-spacing: 0; }
  .overview-total-label { font-size: 10px; margin: 0; }
  .metrics { padding: 21px 0; }
  .metrics > div { padding: 0 12px; }
  .metric-label { min-height: 28px; font-size: 10px; line-height: 1.4; }
  .metrics strong { font-size: 22px; margin: 8px 0 6px; letter-spacing: -.7px; }
  .metric-note { font-size: 9px; line-height: 1.5; display: block; }
  .services-section { margin-top: 28px; }
  .section-heading h2 { font-size: 18px; }
  .period-control { font-size: 11px; gap: 7px; }
  .period-control select { font-size: 11px; }
  .service-list { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .service-card { padding: 19px 20px 0; }
  .service-top { gap: 10px; margin-bottom: 18px; flex-wrap: nowrap; }
  .service-top h3 { font-size: 14px; }
  .service-top > .state-label { font-size: 10px; }
  .service-icon { width: 34px; height: 34px; }
  .history-legend { flex-direction: column; gap: 8px; margin-top: 16px; font-size: 10px; }
  .history-legend > div { gap: 14px; }
  .history-notes { flex-direction: column; gap: 10px; font-size: 10px; }
  .incidents-section, .admin-section { margin-top: 30px; }
  .subtle { font-size: 10px; }
  .empty-incidents { padding: 24px 18px; }
  .empty-incidents h3 { font-size: 12px; }
  .incident-card { padding: 22px 20px; }
  footer { flex-wrap: wrap; gap: 16px; font-size: 10px; }
  footer > span:nth-child(2) { order: 3; width: 100%; }
  .footer-links { gap: 15px; }
  .admin-panel { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .checkboxes { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .header-inner, main, footer { padding-left: 14px; padding-right: 14px; }
  .service-card { padding-left: 15px; padding-right: 15px; }
  .service-icon { display: none; }
  .metrics > div { padding: 0 9px; }
  .metrics strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
