/* Prospector Pro · customer-facing status */
:root {
  color-scheme: light;
  --brand: #2d175c;
  --brand-hover: #4a2b83;
  --ink: #23202c;
  --ink-soft: #625e6d;
  --ink-muted: #77727f;
  --page: #faf9fc;
  --surface: #ffffff;
  --surface-soft: #f5f3f8;
  --line: #e8e5ee;
  --line-strong: #d7d1e1;
  --green: #23734d;
  --green-bg: #f0f8f3;
  --green-line: #d4e9dc;
  --amber: #8d5b13;
  --amber-bg: #fff8eb;
  --amber-line: #f0dfbc;
  --shadow: 0 2px 3px rgb(34 20 57 / 2%), 0 10px 35px rgb(34 20 57 / 3%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 15px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand-hover); outline-offset: 5px; border-radius: 4px; }
::selection { background: #e4d9f6; color: #2d175c; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; }
svg { flex-shrink: 0; vertical-align: middle; }
button[hidden], [hidden] { display: none !important; }
.shell { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.icon { display: inline-block; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: absolute; z-index: 20; top: -80px; left: 20px; padding: 10px 18px; border-radius: 5px; background: var(--brand); color: #fff; }
.skip-link:focus { top: 16px; }
.demo-strip { padding: 8px 20px; background: var(--brand); text-align: center; color: #f4edff; font-size: 12px; letter-spacing: .01em; }
.demo-tag { display: inline-block; margin-right: 8px; padding: 0 6px; border: 1px solid #8e7aa9; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 106px; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 720; font-size: 16px; letter-spacing: -.025em; white-space: nowrap; }
.brand-mark { display: grid; width: 39px; height: 39px; place-items: center; background: var(--brand); color: #fff; border-radius: 11px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%); }
.brand-divider { margin-inline: 13px; font-weight: 400; color: var(--line-strong); }
.brand-section { font-weight: 450; color: var(--ink-soft); }
.header-nav a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 12px; font-weight: 550; }
.header-nav a:hover { color: var(--brand-hover); }
.header-nav .icon { width: 14px; }
.live-notice { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--amber-line); border-radius: 10px; background: var(--amber-bg); color: var(--amber); }
.live-notice a { text-decoration: underline; font-weight: 650; }
.main-content { padding-top: 65px; padding-bottom: 80px; min-height: calc(100vh - 219px); }
.page-intro { margin-bottom: 38px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 10px; font-weight: 750; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-line { width: 19px; height: 2px; background: var(--brand); }
.page-intro h1 { margin-top: 17px; font-size: clamp(32px, 3.65vw, 45px); letter-spacing: -.052em; line-height: 1.16; font-weight: 650; }
.intro-copy { margin-top: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.overall-status { display: flex; align-items: center; gap: 17px; padding: 25px 27px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.overall-icon { display: grid; flex-shrink: 0; width: 43px; height: 43px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: var(--surface-soft); }
.overall-icon svg { width: 24px; height: 24px; }
.status-operational { border-color: var(--green-line); background: linear-gradient(110deg, var(--green-bg), var(--surface) 72%); }
.status-operational .overall-icon { color: var(--green); background: var(--surface); border-color: var(--green-line); }
.status-degraded { border-color: var(--amber-line); background: linear-gradient(110deg, var(--amber-bg), var(--surface) 72%); }
.status-degraded .overall-icon { color: var(--amber); background: var(--surface); border-color: var(--amber-line); }
.overall-copy { flex: 1; min-width: 0; }
.overall-copy h2 { font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.overall-copy p { margin-top: 4px; color: var(--ink-soft); font-size: 12px; }
.overall-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-left: 15px; font-size: 10px; }
.checked-label { color: var(--ink-muted); text-align: right; }
.refresh-link { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); font-weight: 600; }
.refresh-link:hover { color: var(--brand-hover); }
.refresh-link.is-refreshing svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.freshness-warning { display: flex; align-items: flex-start; gap: 13px; padding: 16px 19px; margin-bottom: 22px; background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-line); border-radius: 9px; font-size: 12px; }
.freshness-warning strong { display: block; font-size: 13px; font-weight: 650; }
.freshness-warning p { margin-top: 3px; }
.warning-symbol { display: inline-flex; padding-top: 1px; }
.status-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 44px; margin-top: 42px; align-items: start; }
.incident-sections { min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 17px; }
.section-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.count { display: inline-grid; min-width: 21px; height: 21px; padding-inline: 5px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--ink-muted); background: var(--surface); font-size: 10px; line-height: 1; letter-spacing: 0; font-weight: 550; }
.section-label { color: var(--ink-muted); font-size: 10px; white-space: nowrap; }
.empty-state { display: flex; gap: 13px; align-items: center; padding: 25px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.empty-icon { display: grid; flex-shrink: 0; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft); background: var(--surface-soft); }
.empty-state h3 { font-size: 13px; font-weight: 600; }
.empty-state p { margin-top: 4px; color: var(--ink-muted); font-size: 11px; line-height: 1.7; }
.history-section { margin-top: 43px; scroll-margin-top: 30px; }
.history-empty { padding: 36px 22px; border: 1px dashed var(--line-strong); border-radius: 10px; text-align: center; }
.history-empty-mark { display: inline-grid; place-items: center; width: 31px; height: 31px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink-muted); }
.history-empty h3 { font-size: 12px; font-weight: 550; color: var(--ink-soft); }
.history-empty p { margin-top: 5px; color: var(--ink-muted); font-size: 11px; }
.incident-list { display: grid; gap: 15px; }
.incident-card { min-width: 0; padding: 22px 23px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 2px 4px rgb(34 20 57 / 2%); }
.incident-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pill { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid transparent; border-radius: 5px; font-size: 9px; line-height: 1.5; font-weight: 650; }
.pill-warning { border-color: var(--amber-line); color: var(--amber); background: var(--amber-bg); }
.pill-success { border-color: var(--green-line); color: var(--green); background: var(--green-bg); }
.status-dot { display: inline-block; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.incident-date { color: var(--ink-muted); font-size: 10px; text-align: right; }
.incident-card h3 { margin-top: 15px; font-size: 17px; letter-spacing: -.025em; font-weight: 620; overflow-wrap: anywhere; }
.incident-card h3 a { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.incident-card h3 a:hover { color: var(--brand-hover); }
.incident-arrow { display: inline-flex; flex-shrink: 0; color: var(--ink-muted); }
.incident-message { margin-top: 9px; color: var(--ink-soft); font-size: 12px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.incident-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 10px; }
.incident-card-footer > span { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.incident-card-footer > span .icon { margin-right: 2px; width: 13px; height: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 11px; font-weight: 600; }
.text-link:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
.text-link .icon { width: 13px; height: 13px; }
.services-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.panel-heading { padding: 20px 21px 17px; }
.panel-heading .eyebrow { color: var(--ink-muted); font-size: 9px; }
.panel-heading h2 { margin-top: 6px; font-size: 15px; letter-spacing: -.02em; font-weight: 650; }
.service-list { list-style: none; padding: 0; margin: 0 21px; }
.service-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; border-top: 1px solid var(--line); padding-block: 15px; }
.service-name { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.service-state { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-muted); font-size: 9px; }
.service-state-operational { color: var(--green); }
.service-state-degraded { color: var(--amber); }
.service-note { display: flex; gap: 7px; padding: 14px 20px; background: var(--surface-soft); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 10px; line-height: 1.7; }
.service-note > span { display: inline-flex; padding-top: 2px; }
.service-note .icon { width: 13px; height: 13px; }
.panel-empty { padding: 0 21px 20px; color: var(--ink-muted); font-size: 12px; }
.transparency-note { margin: 25px 3px 0; }
.note-rule { display: block; width: 24px; height: 2px; margin-bottom: 14px; background: var(--line-strong); }
.transparency-note h3 { color: var(--ink-soft); font-size: 12px; font-weight: 550; }
.transparency-note p { margin-top: 6px; color: var(--ink-muted); font-size: 11px; line-height: 1.8; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 27px 33px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 10px; }
.footer-brand { color: var(--ink-soft); font-weight: 650; }
.footer-brand span { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line-strong); color: var(--ink-muted); font-weight: 400; }

/* Incident permalink */
.incident-page { padding-top: 35px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 35px; color: var(--ink-soft); font-size: 11px; }
.back-link:hover { color: var(--brand-hover); }
.back-arrow { display: inline-flex; transform: rotate(180deg); }
.back-arrow svg { width: 14px; }
.incident-header { max-width: 820px; }
.incident-heading-meta { display: flex; align-items: center; gap: 12px; }
.incident-heading-type { color: var(--ink-muted); font-size: 10px; }
.incident-header h1 { margin-top: 20px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.2; letter-spacing: -.045em; font-weight: 650; overflow-wrap: anywhere; }
.incident-lead { margin-top: 18px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.incident-header-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; margin-top: 24px; color: var(--ink-muted); font-size: 10px; }
.incident-header-meta > span:first-child { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.incident-header-meta .icon { width: 14px; height: 14px; }
.copy-link { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--brand); cursor: pointer; font-size: 10px; font-weight: 600; }
.copy-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.copy-link:disabled { cursor: default; }
.incident-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 56px; margin-top: 45px; padding-top: 31px; border-top: 1px solid var(--line); align-items: start; }
.timeline-section { min-width: 0; }
.timeline { padding: 5px 0 0; margin: 0; list-style: none; }
.timeline-entry { position: relative; margin-left: 12px; padding: 0 0 32px 32px; border-left: 1px solid var(--line-strong); }
.timeline-entry:last-child { padding-bottom: 6px; border-left-color: transparent; }
.timeline-node { position: absolute; display: grid; place-items: center; width: 25px; height: 25px; left: -13px; top: -1px; border: 1px solid var(--amber-line); border-radius: 50%; color: var(--amber); background: var(--amber-bg); box-shadow: 0 0 0 5px var(--page); }
.timeline-node > span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.timeline-resolved .timeline-node { color: var(--green); border-color: var(--green-line); background: var(--green-bg); }
.timeline-node svg { width: 15px; height: 15px; }
.timeline-entry-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 16px; padding-top: 2px; }
.timeline-entry-heading h3 { color: var(--ink); font-size: 13px; font-weight: 650; }
.timeline-entry-heading time { color: var(--ink-muted); font-size: 10px; }
.timeline-message { margin-top: 11px; color: var(--ink-soft); font-size: 13px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.incident-summary { padding: 21px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.incident-summary .eyebrow { color: var(--ink-muted); font-size: 9px; }
.incident-summary h2 { margin-top: 6px; font-size: 15px; font-weight: 650; letter-spacing: -.02em; }
.incident-summary dl { margin: 20px 0 0; }
.incident-summary dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.incident-summary dt { color: var(--ink-muted); font-size: 10px; }
.incident-summary dd { margin: 3px 0 0; color: var(--ink-soft); font-size: 11px; }
.incident-summary .detail-status { display: flex; align-items: center; gap: 6px; color: var(--amber); font-weight: 600; }
.incident-summary .detail-resolved { color: var(--green); }
.detail-note { margin-top: 7px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 10px; }

@media (min-width: 1440px) {
  .main-content { padding-top: 78px; }
  .incident-page { padding-top: 40px; }
}
@media (max-width: 950px) {
  .shell { width: calc(100% - 64px); }
  .status-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 26px; }
  .incident-detail-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; }
  .overall-status { padding: 22px; }
  .overall-meta { max-width: 150px; }
  .incident-card-top { align-items: flex-start; }
  .incident-card { padding: 20px 18px 15px; }
  .section-label { display: none; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 40px); }
  .site-header { min-height: 84px; }
  .brand { gap: 10px; font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand-divider { margin-inline: 8px; }
  .header-nav a { font-size: 11px; }
  .header-nav .icon { display: none; }
  .main-content { padding-top: 39px; padding-bottom: 50px; }
  .page-intro { margin-bottom: 28px; }
  .page-intro h1 { font-size: 37px; }
  .intro-copy { font-size: 13px; }
  .overall-status { flex-wrap: wrap; gap: 13px; padding: 20px; }
  .overall-copy { flex-basis: calc(100% - 60px); }
  .overall-copy h2 { font-size: 17px; }
  .overall-meta { flex: 1; flex-direction: row; align-items: center; justify-content: space-between; max-width: none; margin-top: 2px; padding: 12px 0 0; border-top: 1px solid var(--line); }
  .checked-label { text-align: left; }
  .status-layout { display: flex; flex-direction: column; gap: 32px; margin-top: 31px; }
  .incident-sections, .service-sidebar { width: 100%; }
  .section-label { display: initial; }
  .history-section { margin-top: 32px; }
  .service-sidebar { display: grid; grid-template-columns: 1fr; }
  .transparency-note { display: none; }
  .service-list li { gap: 12px; }
  .service-state { font-size: 10px; }
  .site-footer { align-items: flex-start; padding-block: 23px 28px; font-size: 9px; }
  .footer-brand span { display: block; margin: 3px 0 0; padding: 0; border: 0; }
  .site-footer p { padding-top: 1px; }
  .incident-page { padding-top: 25px; }
  .back-link { margin-bottom: 27px; }
  .incident-detail-layout { display: flex; flex-direction: column; gap: 31px; margin-top: 30px; padding-top: 25px; }
  .timeline-section, .incident-summary { width: 100%; }
  .incident-header h1 { font-size: 32px; }
  .incident-lead { font-size: 14px; }
  .incident-summary dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
}
@media (max-width: 390px) {
  .shell { width: calc(100% - 32px); }
  .brand-section, .brand-divider { display: none; }
  .page-intro h1 { font-size: 32px; }
  .desktop-break { display: none; }
  .overall-status { padding: 17px; }
  .overall-icon { width: 35px; height: 35px; }
  .overall-copy { flex-basis: calc(100% - 50px); }
  .overall-copy h2 { font-size: 16px; }
  .incident-card-top { flex-wrap: wrap; }
  .incident-date { text-align: left; }
  .incident-card-footer { align-items: flex-start; flex-direction: column; gap: 9px; }
  .incident-summary dl { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: #c8b3ee;
    --brand-hover: #e0cffc;
    --ink: #eeebf4;
    --ink-soft: #b7b0c5;
    --ink-muted: #978fa6;
    --page: #15111d;
    --surface: #1c1725;
    --surface-soft: #221c2d;
    --line: #30283d;
    --line-strong: #463a57;
    --green: #89cea8;
    --green-bg: #17271f;
    --green-line: #2c4939;
    --amber: #e0bb79;
    --amber-bg: #2c2317;
    --amber-line: #51412b;
    --shadow: 0 2px 12px rgb(0 0 0 / 8%);
  }
  .brand-mark, .demo-strip { background: #2d175c; }
  .brand-mark { color: #fff; }
  .skip-link { background: #2d175c; color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  :root { color-scheme: light; --page: #fff; --surface: #fff; --ink: #000; --ink-soft: #333; --ink-muted: #555; --line: #ddd; }
  .shell { width: 100%; }
  .site-header { min-height: 70px; }
  .header-nav, .refresh-link, .copy-link, .back-link, .transparency-note { display: none; }
  .main-content { padding-block: 25px; }
  .status-layout, .incident-detail-layout { display: block; }
  .service-sidebar, .incident-summary { margin-top: 25px; }
  .incident-card, .timeline-entry, .services-panel, .incident-summary { break-inside: avoid; box-shadow: none; }
  .site-footer { padding-block: 15px; }
}
