:root {
  color-scheme: light;
  --paper: #f6f5ef;
  --surface: #fbfaf6;
  --ink: #233831;
  --muted: #68746e;
  --line: #ddded4;
  --green: #227354;
  --mint: #d9eddf;
  --amber: #886121;
  --red: #a34739;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.5; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #3d8168; outline-offset: 4px; }
p, h1, h2, dl, dd { margin: 0; }
.page-shell { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.masthead { height: 106px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { letter-spacing: -5px; font-size: 34px; line-height: 1; font-weight: 600; }
.brand-mark span { color: #a6b4a8; font-weight: 300; padding-inline: 5px; }
.brand-name { font-size: 12px; font-weight: 750; letter-spacing: .14em; line-height: 1.45; }
.brand-name > span { display: block; font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .02em; }
.view-only { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.view-only > span { color: #8b998e; font-size: 14px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-block: 45px 28px; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .12em; margin-bottom: 8px; }
.eyebrow > span { color: #a4ada2; margin-inline: 7px; }
h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 500; letter-spacing: -.055em; line-height: 1.12; }
.heading-dot { color: var(--green); }
.intro-copy { color: var(--muted); font-size: 13px; margin-top: 12px; }
.refresh-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 40px; padding: 9px 14px; border: 1px solid #cdd3c8; border-radius: 7px; background: transparent; color: var(--ink); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.refresh-button:hover { background: #e9ede3; border-color: #b1bcad; }
.refresh-button:disabled { cursor: wait; opacity: .65; }
.refresh-button svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.status-strip { --tone: var(--muted); background: #eeeee6; border: 1px solid #e2e2d8; border-radius: 8px; min-height: 65px; padding: 13px 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.status-strip[data-tone="good"] { --tone: var(--green); background: #eaf1e8; border-color: #dce5d7; }
.status-strip[data-tone="warning"] { --tone: var(--amber); background: #f5eedf; border-color: #e9ddbf; }
.status-strip[data-tone="error"] { --tone: var(--red); background: #f6eae4; border-color: #e9d7ca; }
.status-message { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.status-dot { background: var(--tone); width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; flex: 0 0 7px; }
.status-label { color: var(--tone); font-weight: 650; font-size: 13px; }
.status-detail { color: var(--muted); font-size: 12px; margin-top: 2px; }
.received-at { color: var(--muted); font-size: 11px; text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.overview { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(190px, .7fr); gap: 35px; padding-block: 34px 36px; border-bottom: 1px solid var(--line); align-items: center; }
.metric-label { display: block; color: var(--muted); font-size: 12px; }
.letter-metric { display: flex; flex-direction: column; align-items: center; gap: 9px; border-right: 1px solid var(--line); padding-right: 35px; }
.letter-display { background: var(--mint); color: #26583e; border-radius: 9px; width: 100px; height: 100px; display: grid; place-items: center; font-size: 66px; line-height: 1; font-weight: 400; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.letter-display[data-empty="true"] { background: #e8eae1; color: #8a968a; }
.sequence-value { font-variant-numeric: tabular-nums; font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -.045em; line-height: 1.25; margin-top: 8px; overflow-wrap: anywhere; }
.metric-note { color: var(--muted); font-size: 11px; margin-top: 9px; }
.rate-value { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.rate-value > span:first-child { font-size: 39px; line-height: 1.3; letter-spacing: -.04em; overflow-wrap: anywhere; min-width: 0; }
.rate-unit { color: var(--muted); font-size: 12px; white-space: nowrap; }
.load-section { padding-block: 24px 19px; border-bottom: 1px solid var(--line); }
.load-section .section-heading { margin-bottom: 17px; }
.load-metrics { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 26px; }
.load-metrics > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.load-metrics dt { color: var(--muted); font-size: 11px; }
.load-metrics dd { margin-top: 4px; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.035em; overflow-wrap: anywhere; }
.load-freshness { margin-top: 13px; font-size: 10px; color: var(--muted); }
.load-section[data-stale="true"] .load-freshness { color: var(--amber); }
.database-metrics-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.database-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.database-metrics > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.database-metrics dt { color: var(--muted); font-size: 11px; }
.database-metrics dd { margin-top: 4px; font-size: 20px; font-variant-numeric: tabular-nums; letter-spacing: -.035em; overflow-wrap: anywhere; }
.database-metrics .database-description { color: var(--muted); font-size: 10px; margin-top: 5px; letter-spacing: normal; font-variant-numeric: normal; }
.database-freshness { color: var(--muted); font-size: 10px; margin-top: 13px; }
.database-metrics-section[data-stale="true"] .database-freshness { color: var(--amber); }
.database-units { color: var(--muted); font-size: 10px; margin-top: 3px; }
.speed-control { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.8fr); align-items: center; gap: 28px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.target-note { color: var(--muted); font-size: 12px; margin-top: 7px; }
.target-note strong { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.control-hint { color: var(--muted); font-size: 10px; margin-top: 4px; }
.speed-form { min-width: 0; }
.speed-fields { display: flex; align-items: end; justify-content: flex-end; gap: 10px; }
.speed-fields label { display: block; font-size: 10px; color: var(--muted); margin-bottom: 5px; }
.speed-select-field { flex: 1 1 150px; max-width: 185px; min-width: 120px; }
.control-key-field { flex: 1 1 150px; min-width: 80px; max-width: 220px; }
.speed-fields select, .speed-fields input { display: block; width: 100%; min-height: 40px; border: 1px solid #cdd3c8; border-radius: 7px; color: var(--ink); background: var(--surface); padding: 8px 10px; font-size: 12px; }
.speed-fields select { padding-right: 24px; }
.speed-fields input:disabled, .speed-fields select:disabled { color: var(--muted); background: #eeeee7; cursor: not-allowed; }
.apply-button { flex: 0 0 auto; min-height: 40px; padding: 9px 15px; border: 1px solid var(--ink); border-radius: 7px; background: var(--ink); color: #fff; font-size: 12px; cursor: pointer; transition: background .15s ease; }
.apply-button:hover:not(:disabled) { background: #355646; }
.apply-button:disabled { color: #7a837b; background: #e5e8de; border-color: #d9ded2; cursor: not-allowed; }
.speed-feedback { color: var(--muted); font-size: 10px; min-height: 15px; margin-top: 9px; text-align: right; overflow-wrap: anywhere; }
.speed-feedback[data-tone="good"] { color: var(--green); }
.speed-feedback[data-tone="warning"] { color: var(--amber); }
.speed-feedback[data-tone="error"] { color: var(--red); }
.middle-grid, .bottom-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 42px; }
.middle-grid { padding-block: 28px 27px; border-bottom: 1px solid var(--line); }
.bottom-grid { padding-block: 29px 26px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 19px; }
h2 { font-size: 14px; font-weight: 600; letter-spacing: -.015em; }
.section-meta { color: var(--muted); font-size: 10px; text-align: right; }
.chart { height: 156px; position: relative; padding-right: 34px; }
.chart > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-point { fill: var(--green); }
.chart-ceiling, .chart-floor { position: absolute; right: 0; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-ceiling { top: 12px; }
.chart-floor { bottom: 12px; }
.chart-empty { position: absolute; inset: 0 34px 0 0; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.chart-axis { display: flex; justify-content: space-between; padding-right: 34px; color: var(--muted); font-size: 10px; }
.chart-note { font-size: 10px; color: var(--muted); margin-top: 13px; }
.writer-section, .system-section { border-left: 1px solid var(--line); padding-left: 30px; min-width: 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 14px; margin-top: 13px; font-size: 12px; }
.detail-list dt { color: var(--muted); flex-shrink: 0; }
.detail-list dd { text-align: right; min-width: 0; font-variant-numeric: tabular-nums; }
.detail-list .last-write-row { margin-top: 23px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-sub { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .9em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; font-variant-numeric: tabular-nums; }
th { color: var(--muted); font-size: 10px; font-weight: 400; padding: 0 0 9px; text-align: left; border-bottom: 1px solid var(--line); }
th:first-child { width: 39%; }
th:nth-child(2) { width: 19%; }
th:last-child, td:last-child { text-align: right; }
td { height: 38px; padding: 8px 0; border-bottom: 1px solid #e7e7de; overflow-wrap: anywhere; }
td:first-child { padding-right: 12px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 11px; }
td:last-child { color: var(--muted); font-size: 11px; }
.event-letter { display: inline-grid; place-items: center; border-radius: 4px; background: #e7ecdf; color: #49634c; min-width: 26px; height: 23px; font-size: 11px; font-weight: 600; }
.event-letter[data-letter="X"] { background: #e9e7dc; color: #645e48; }
.empty-row td { height: 93px; text-align: center; color: var(--muted); font: 12px / 1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; padding: 16px; }
.table-note { color: var(--muted); font-size: 10px; margin-top: 13px; }
.run-details { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 17px; }
.run-details .metric-label { font-size: 10px; }
.run-details p { font-size: 10px; overflow-wrap: anywhere; margin-top: 5px; line-height: 1.7; }
.storage-note { font-size: 10px; color: var(--muted); margin-top: 15px; }
.error-note { margin-top: 10px; padding: 14px 17px; border-left: 2px solid #ba8a64; background: #f0ebe1; border-radius: 0 6px 6px 0; }
.error-note > span { font-size: 11px; font-weight: 600; }
.error-note > p { font-size: 12px; margin-top: 5px; color: #785f4d; overflow-wrap: anywhere; white-space: pre-wrap; }
.noscript-note { border: 1px solid var(--line); padding: 16px; }
.footer { border-top: 1px solid var(--line); margin-top: 26px; padding-block: 20px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 10px; color: var(--muted); }
.footer-divider { color: #a5afa2; margin-inline: 9px; }
.footer .mono { font-size: 9px; overflow-wrap: anywhere; text-align: right; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; top: -70px; left: 16px; padding: 10px 16px; background: var(--ink); color: white; border-radius: 6px; }
.skip-link:focus { top: 12px; }

@media (min-width: 1300px) { .page-shell { width: min(1120px, calc(100% - 120px)); } }
@media (max-width: 900px) {
  .page-shell { width: calc(100% - 48px); }
  .overview { grid-template-columns: 136px minmax(0, 1fr) minmax(170px, .7fr); gap: 24px; }
  .letter-metric { padding-right: 24px; }
  .middle-grid, .bottom-grid { gap: 26px; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .writer-section, .system-section { padding-left: 23px; }
  .rate-value > span:first-child { font-size: 34px; }
  .detail-list > div { gap: 8px; font-size: 11px; }
  .speed-control { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .speed-fields { justify-content: flex-start; }
  .speed-feedback { text-align: left; }
}
@media (max-width: 680px) {
  .page-shell { width: calc(100% - 36px); }
  .masthead { height: 84px; }
  .view-only { max-width: 115px; text-align: right; font-size: 10px; }
  .intro { padding-top: 29px; align-items: center; gap: 12px; }
  .intro-copy { font-size: 11px; max-width: 220px; }
  .eyebrow { font-size: 10px; }
  .refresh-button { min-width: 42px; width: 42px; height: 42px; padding: 10px; }
  .refresh-button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .status-strip { align-items: flex-start; flex-direction: column; gap: 8px; padding: 12px 13px; }
  .received-at { text-align: left; padding-left: 17px; font-size: 10px; }
  .status-label { font-size: 12px; }
  .status-detail { font-size: 11px; }
  .overview { grid-template-columns: 94px minmax(0, 1fr); column-gap: 21px; row-gap: 20px; padding-block: 25px; }
  .letter-metric { padding-right: 19px; gap: 9px; grid-row: 1 / 3; align-self: stretch; justify-content: center; }
  .letter-display { width: 73px; height: 82px; font-size: 53px; }
  .letter-metric .metric-label { font-size: 10px; white-space: nowrap; }
  .metric-label { font-size: 11px; }
  .sequence-value { font-size: 34px; margin-top: 5px; }
  .metric-note { margin-top: 4px; font-size: 10px; }
  .rate-value { margin-top: 3px; gap: 7px; }
  .rate-value > span:first-child { font-size: 28px; }
  .rate-unit { font-size: 11px; }
  .load-section { padding-block: 22px 18px; }
  .load-metrics { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 13px; }
  .load-metrics > div + div { padding-left: 13px; }
  .load-metrics dt { font-size: 9px; min-height: 27px; }
  .load-metrics dd { font-size: 15px; letter-spacing: -.04em; }
  .database-metrics { gap: 13px; }
  .database-metrics > div + div { padding-left: 13px; }
  .database-metrics dd { font-size: 18px; }
  .speed-control { padding-block: 22px; }
  .speed-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .speed-select-field { min-width: 0; max-width: none; grid-column: 1; }
  .control-key-field { max-width: none; grid-column: 1; grid-row: 2; }
  .apply-button { grid-column: 2; grid-row: 1; }
  .speed-form[data-mode="token"] .speed-select-field { grid-column: 1 / -1; }
  .speed-form[data-mode="token"] .apply-button { grid-row: 2; }
  .speed-feedback { margin-top: 10px; }
  .middle-grid, .bottom-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .middle-grid { padding-block: 25px; }
  .bottom-grid { padding-block: 25px 12px; }
  .writer-section, .system-section { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 23px; }
  .detail-list > div { font-size: 12px; gap: 15px; }
  .detail-list .last-write-row { margin-top: 16px; }
  .chart { height: 142px; }
  .section-heading { margin-bottom: 16px; }
  .run-details { margin-top: 18px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 23px; }
  .footer .mono { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
