
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #203a55;
  background: #f6f9fc;
  font-synthesis: none;
  --ink: #203a55;
  --body: #455f79;
  --muted: #506b84;
  --blue: #315f91;
  --blue-dark: #244c78;
  --blue-pale: #eaf2fa;
  --line: #cfdeea;
  --paper: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.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; }
:focus-visible { outline: 3px solid #6c9bc9; outline-offset: 3px; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1220px; min-height: 72px; margin: auto; padding: 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.brand { display: inline-flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.brand strong { color: var(--ink); font-size: 17px; letter-spacing: -.45px; }
.brand strong span { color: #6389ad; padding: 0 3px; }
.brand small { color: var(--blue); border-left: 1px solid #a8bfd5; padding-left: 12px; font-size: 12px; font-weight: 700; }
.site-nav { align-self: stretch; display: flex; align-items: stretch; gap: 27px; }
.site-nav a { position: relative; display: flex; align-items: center; color: #4b657d; font-size: 14px; font-weight: 600; }
.site-nav a:hover { color: var(--blue-dark); }
.site-nav a[aria-current="page"] { color: var(--blue-dark); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--blue); }

.page { width: min(100%, 1220px); margin: auto; padding: 0 28px; }
.page-intro { display: flex; justify-content: space-between; align-items: end; gap: 28px; padding: 41px 0 30px; }
.context-label { margin: 0 0 11px; color: var(--blue); font-size: 13px; font-weight: 700; }
.page-intro h1 { margin: 0 0 9px; color: var(--ink); font-size: clamp(32px, 3vw, 40px); line-height: 1.12; letter-spacing: -1.45px; }
.page-intro p:not(.context-label) { max-width: 720px; margin: 0; color: var(--body); font-size: 15px; line-height: 1.55; }
.text-link { flex: none; color: var(--blue-dark); border-bottom: 1px solid #89a9c7; padding-bottom: 4px; font-size: 14px; font-weight: 700; }
.text-link:hover { border-color: var(--blue-dark); }
.text-link span { margin-left: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 5px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.button-primary { color: #fff; background: var(--blue); border: 1px solid var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--blue-dark); background: #fff; border: 1px solid #a7bfd6; }
.button-secondary:hover { background: #f0f6fc; }
.button-quiet { color: var(--body); background: transparent; border: 1px solid var(--line); }
.button-quiet:hover { background: #eaf2fa; }
.monitor-actions { display: flex; align-items: center; gap: 10px; }

.current-state { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(240px,.65fr); gap: 28px; align-items: center; padding: 24px 28px; border: 1px solid #c7d9ea; border-left: 4px solid #5a88b5; border-radius: 7px; background: var(--blue-pale); }
.current-state-copy { display: flex; align-items: flex-start; gap: 15px; }
.state-mark { width: 9px; height: 9px; flex: none; margin-top: 8px; border-radius: 50%; background: #b16d28; }
.section-overline { margin: 0 0 4px; color: #3b648b; font-size: 12px; font-weight: 700; }
.current-state h2 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.4px; }
.current-state p:not(.section-overline) { max-width: 670px; margin: 0; color: #405d78; font-size: 14px; line-height: 1.55; }
.api-check { display: grid; gap: 5px; padding-left: 25px; border-left: 1px solid #c3d5e6; }
.api-check-label { color: #4e6e8d; font-size: 13px; font-weight: 700; }
.api-check strong { color: var(--blue-dark); font-size: 17px; }
.api-check strong.ok { color: #24694f; }
.api-check strong.error { color: #963b43; }
.api-check span:last-child { color: #4d6780; font-size: 12px; line-height: 1.45; }

.readiness-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.8fr); gap: 20px; margin-top: 29px; }
.work-list, .foundation { border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.section-heading { padding: 24px 27px 17px; }
.section-heading h2, .foundation h2, .module-note h2, .panel-head h2, .reconciliation h2 { margin: 0 0 5px; font-size: 19px; letter-spacing: -.35px; }
.section-heading p, .module-note > div:first-child p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.work-row { display: grid; grid-template-columns: 9px minmax(0,1fr) auto; gap: 13px; align-items: start; padding: 17px 27px; border-top: 1px solid #e0e9f1; }
.work-indicator { width: 8px; height: 8px; margin-top: 5px; border: 2px solid #9b6a2a; border-radius: 50%; }
.work-row h3 { margin: 0 0 4px; color: var(--ink); font-size: 14px; }
.work-row p { max-width: 570px; margin: 0; color: var(--body); font-size: 13px; line-height: 1.55; }
.work-state { color: #85591e; border: 1px solid #e4cda8; border-radius: 4px; background: #fff8ec; padding: 5px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.foundation { padding: 24px 26px; background: #f0f6fc; }
.foundation ul { margin: 19px 0 16px; padding: 0; list-style: none; }
.foundation li { position: relative; padding: 0 0 12px 20px; color: #36536f; font-size: 13px; line-height: 1.5; }
.foundation li::before { content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #427baa; }
.foundation p { padding-top: 13px; border-top: 1px solid #cbdceb; color: #405d78; font-size: 13px; line-height: 1.5; }
.foundation .button { margin-top: 5px; }
.module-note { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 28px; margin-top: 32px; padding-top: 27px; border-top: 1px solid var(--line); }
.module-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
.module-grid div { display: grid; gap: 4px; padding: 11px 0; border-bottom: 1px solid #dce6ef; }
.module-grid strong { color: var(--ink); font-size: 13px; }
.module-grid span { color: var(--body); font-size: 13px; line-height: 1.45; }
.footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 34px; padding: 21px 0 30px; border-top: 1px solid var(--line); color: #4f6980; font-size: 12px; }

.access-gate { width: min(100%, 500px); margin: 68px auto 110px; padding: 31px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.access-gate h1 { margin: 0 0 9px; font-size: 31px; letter-spacing: -.8px; }
.access-gate > p:not(.context-label) { margin: 0 0 20px; color: var(--body); font-size: 14px; line-height: 1.55; }
.access-gate form { display: grid; gap: 9px; }
.access-gate label { color: var(--ink); font-size: 13px; font-weight: 700; }
.access-gate input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #9fb8d0; border-radius: 5px; outline: 0; background: #fff; color: var(--ink); font-size: 14px; }
.password-field { position: relative; }
.password-field input { padding-right: 50px; }
.password-toggle { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #536e87; }
.password-toggle:hover { background: var(--blue-pale); color: var(--blue-dark); }
.password-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.access-gate input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #dceaf8; }
.access-gate input::placeholder { color: #607990; }
.access-gate form .button { margin-top: 5px; }
.access-gate #access-message { min-height: 20px; margin: 16px 0; color: var(--body); font-size: 13px; }
.access-gate #access-message.error { color: #963b43; }

.preview-notice { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 13px 17px; border: 1px solid #b8d2e9; border-left: 4px solid var(--blue); border-radius: 6px; background: #e9f3fc; color: var(--ink); font-size: 13px; }
.preview-notice strong { white-space: nowrap; }
.preview-notice span { flex: 1; }
.preview-notice a { color: var(--blue-dark); text-decoration: underline; font-weight: 700; white-space: nowrap; }
.monitor-intro { padding-bottom: 12px; }
.monitor-intro h1 { font-size: 36px; }
.read-time { margin: 0 0 19px; color: var(--muted); font-size: 13px; }
.metric-band { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.metric-band div { display: grid; gap: 5px; padding: 19px 23px; }
.metric-band div + div { border-left: 1px solid var(--line); }
.metric-band span { color: var(--body); font-size: 13px; font-weight: 700; }
.metric-band strong { color: var(--ink); font-size: 36px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.metric-band small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.monitor-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr); gap: 19px; margin-top: 20px; }
.records-panel, .status-panel { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.status-panel { align-self: start; }
.side-stack { display: grid; align-content: start; gap: 19px; min-width: 0; }
.health-panel { border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.health-list { margin: 0; padding: 0; list-style: none; }
.health-list li { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 13px 20px; border-bottom: 1px solid #e3ebf2; }
.health-list li div { display: grid; gap: 3px; min-width: 0; }
.health-list strong { color: var(--ink); font-size: 13px; }
.health-list li div span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.health-time { margin: 0; padding: 11px 20px 14px; color: var(--muted); font-size: 12px; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 20px 23px; border-bottom: 1px solid #dce6ef; }
.panel-head h2 { font-size: 17px; }
.panel-head span:not(.outline-badge) { color: var(--body); font-size: 12px; white-space: nowrap; }
.outline-badge { display: inline-block; flex: none; padding: 5px 8px; border: 1px solid #c8d9e8; border-radius: 4px; color: #486988; background: #f4f8fc; font-size: 12px; font-weight: 700; }
.panel-sub { margin: 0; color: var(--muted); font-size: 12px; }
.records-filter { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 14px; padding: 16px 23px; border-bottom: 1px solid #dce6ef; background: #f8fbfd; }
.records-filter label { display: grid; gap: 5px; min-width: 0; }
.records-filter label span { color: var(--muted); font-size: 12px; font-weight: 700; }
.records-filter select, .records-filter input { width: 100%; height: 38px; padding: 0 10px; border: 1px solid #b5c9dc; border-radius: 5px; background: #fff; color: var(--ink); font-size: 13px; }
.records-filter select:focus, .records-filter input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #dceaf8; outline: 0; }
.filter-search, .filter-actions { grid-column: 1 / -1; }
.filter-actions { display: flex; gap: 10px; }
.filter-actions .button { min-height: 38px; }
.records-message { min-height: 32px; margin: 0; padding: 12px 23px 0; color: var(--muted); font-size: 12px; }
.records-message.error { color: #963b43; }
.records-more { padding: 4px 23px 18px; }
.case-link { padding: 0; border: 0; background: none; color: var(--ink); font-weight: 700; text-align: left; text-decoration: underline; text-decoration-color: #a8bfd5; text-underline-offset: 3px; overflow-wrap: anywhere; }
.case-link:hover { color: var(--blue-dark); text-decoration-color: currentColor; }
.case-flag { margin: 0 0 12px; padding: 7px 10px; border-left: 3px solid #a97728; background: #fff8ec; color: #6d4a17; font-size: 12px; line-height: 1.45; }
.case-row { padding: 18px 23px 16px; }
.case-row + .case-row { border-top: 1px solid #dce6ef; }
.case-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.case-type { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.case-top h3 { margin: 0; color: var(--ink); font-size: 16px; letter-spacing: -.2px; }
.case-status { flex: none; padding: 5px 8px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.case-status.review { color: #85591e; background: #fff8ec; border: 1px solid #e4cda8; }
.case-status.failed { color: #963b43; background: #fff0f1; border: 1px solid #e7bfc3; }
.case-status.success { color: #24694f; background: #eef8f3; border: 1px solid #bfdccd; }
.case-status.waiting { color: #6a4f7d; background: #f6f1fa; border: 1px solid #d8c9e3; }
.case-status.neutral { color: #4b6378; background: #f2f6f9; border: 1px solid #cfdbe5; }
.case-status.active { color: #285f8a; background: #edf5fc; border: 1px solid #bcd5ea; }
.case-summary { margin: 12px 0; color: var(--body); font-size: 13px; line-height: 1.5; }
.case-next { display: flex; gap: 14px; padding-top: 10px; border-top: 1px solid #e5edf4; font-size: 12px; line-height: 1.5; }
.case-next span { flex: 0 0 128px; color: var(--muted); white-space: nowrap; }
.case-next strong { color: var(--ink); font-weight: 650; }
.case-time { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.status-panel table { width: 100%; border-collapse: collapse; }
.status-panel thead { background: #f3f7fb; }
.status-panel th, .status-panel td { height: 42px; padding: 0 20px; border-bottom: 1px solid #e3ebf2; font-size: 13px; }
.status-panel thead th { color: var(--muted); text-align: left; font-size: 12px; }
.status-panel thead th:last-child, .status-panel td { text-align: right; }
.status-panel tbody th { color: var(--ink); text-align: left; white-space: nowrap; font-weight: 600; }
.status-panel tbody td { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.status-panel td, .status-panel thead th:last-child { width: 82px; }
.status-panel tbody tr:last-child th, .status-panel tbody tr:last-child td { border-bottom: 0; }
.status-marker { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; vertical-align: middle; background: #6b8298; }
.status-marker.danger { background: #ad4650; }
.status-marker.caution { background: #a97728; }
.status-marker.waiting { background: #876a9b; }
.status-marker.neutral { background: #667e94; }
.status-marker.active { background: #3d7bab; }
.status-marker.success { background: #2c7b61; }
.record-dialog { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); box-shadow: 0 18px 48px rgba(22,48,76,.22); }
.record-dialog::backdrop { background: rgba(23,43,64,.42); }
body:has(.record-dialog[open]) { overflow: hidden; }
.detail-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #dce6ef; background: var(--paper); }
.detail-head h2 { margin: 0; font-size: 20px; letter-spacing: -.3px; overflow-wrap: anywhere; }
.detail-body { padding: 18px 24px 22px; }
.detail-loading { margin: 0; color: var(--muted); font-size: 13px; }
.detail-loading:empty { display: none; }
.detail-issue { display: grid; justify-items: start; gap: 8px; padding: 14px 16px; border: 1px solid #dce6ef; border-radius: 6px; background: #f8fbfd; }
.detail-reason, .detail-next { margin: 0; color: var(--body); font-size: 13px; line-height: 1.5; }
.detail-next span { color: var(--muted); }
.detail-next strong { color: var(--ink); font-weight: 650; }
.detail-issue .case-flag { margin: 0; }
.detail-grid { display: grid; grid-template-columns: 170px minmax(0,1fr); margin: 18px 0 0; border-top: 1px solid #e3ebf2; }
.detail-grid dt, .detail-grid dd { padding: 9px 0; border-bottom: 1px solid #e3ebf2; font-size: 13px; }
.detail-grid dt { color: var(--muted); font-weight: 700; }
.detail-grid dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.detail-subtitle { margin: 22px 0 4px; font-size: 15px; }
.detail-note { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; border: 1px solid #dce6ef; border-radius: 6px; }
.attempts-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 12px; }
.attempts-table th { padding: 9px 10px; background: #f3f7fb; color: var(--muted); text-align: left; white-space: nowrap; }
.attempts-table td { padding: 9px 10px; border-top: 1px solid #e3ebf2; color: var(--ink); vertical-align: top; line-height: 1.45; }
.attempts-table .case-status { display: inline-block; white-space: nowrap; }
.detail-footnote { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.reconciliation { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-top: 27px; padding: 22px 0; border-top: 1px solid var(--line); }
.reconciliation p { margin: 0; color: var(--body); font-size: 13px; line-height: 1.5; }

@media (max-width: 900px) {
  .readiness-grid, .monitor-grid { grid-template-columns: 1fr; }
  .current-state { grid-template-columns: 1fr; gap: 18px; }
  .api-check { padding: 15px 0 0 24px; border-left: 0; border-top: 1px solid #c3d5e6; }
  .module-note { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 600px) {
  .header-inner { display: block; padding: 0 18px; }
  .brand { height: 59px; align-items: center; }
  .site-nav { height: 45px; justify-content: space-between; gap: 12px; }
  .site-nav a { font-size: 13px; }
  .page { padding: 0 18px; }
  .page-intro { display: block; padding: 28px 0 24px; }
  .page-intro h1 { font-size: 32px; }
  .page-intro p:not(.context-label) { font-size: 14px; }
  .page-intro .text-link { display: inline-block; margin-top: 18px; }
  .current-state { padding: 20px; }
  .work-row { grid-template-columns: 9px minmax(0,1fr); padding: 16px 19px; }
  .work-state { grid-column: 2; justify-self: start; margin-top: 4px; }
  .section-heading { padding: 21px 19px 16px; }
  .foundation { padding: 21px; }
  .module-grid { grid-template-columns: 1fr; }
  .footer { display: block; }
  .footer span { display: block; margin-bottom: 5px; }
  .access-gate { margin: 30px auto 55px; padding: 22px; }
  .preview-notice { align-items: start; flex-wrap: wrap; }
  .preview-notice span { flex-basis: 100%; order: 2; }
  .preview-notice a { margin-left: auto; }
  .monitor-actions { margin-top: 17px; }
  .metric-band { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-band div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .metric-band div:nth-child(2) { border-left: 0; }
  .metric-band div { padding: 15px 17px; }
  .metric-band strong { font-size: 31px; }
  .panel-head { flex-wrap: wrap; padding: 18px; }
  .case-row { padding: 18px; }
  .records-filter { grid-template-columns: 1fr; padding: 16px 18px; }
  .records-message { padding: 12px 18px 0; }
  .records-more { padding: 4px 18px 18px; }
  .record-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .detail-head, .detail-body { padding-left: 18px; padding-right: 18px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid dt { padding-bottom: 0; border-bottom: 0; }
  .case-next { display: block; }
  .case-next span, .case-next strong { display: block; }
  .case-next strong { margin-top: 3px; }
  .status-panel th, .status-panel td { padding-left: 16px; padding-right: 16px; }
  .reconciliation { display: block; }
  .reconciliation .outline-badge { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
