:root {
  color-scheme: light;
  --paper: #f6f9fd;
  --surface: #fff;
  --ink: #16213d;
  --muted: #6b7890;
  --line: #dfe7f2;
  --blue: #3568d4;
  --blue-soft: #eaf2ff;
  --mint: #35b494;
  --warn: #efac3d;
  --down: #e65d6f;
  --unknown: #a2adbd;
  --shell: min(1180px, calc(100vw - 48px));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans SC", sans-serif; -webkit-font-smoothing: antialiased; }
button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
.sub-shell { width: var(--shell); margin-inline: auto; }
.sub-header { position: sticky; z-index: 100; top: 12px; display: flex; align-items: center; width: var(--shell); height: 74px; margin: 12px auto 0; padding: 0 14px; background: rgba(246,249,253,.9); border: 1px solid rgba(39,69,128,.13); border-radius: 18px; box-shadow: 0 12px 36px rgba(43,68,120,.09); backdrop-filter: blur(20px) saturate(1.14); }
.sub-brand { display: flex; align-items: center; gap: 10px; }
.sub-brand > span { display: grid; place-items: center; width: 42px; height: 42px; }
.sub-brand > span img { display: block; width: 42px; height: 42px; object-fit: contain; }
.sub-brand > div { display: grid; }.sub-brand b { font-size: 14px; }.sub-brand small { color: #8b97aa; font: 500 7px "DM Mono"; letter-spacing: .13em; }
.sub-header nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }.sub-header nav > a { color: #67758d; font-size: 10px; font-weight: 600; }
.account-entry { display: inline-flex; align-items: center; gap: 9px; min-width: 150px; max-width: 205px; padding: 6px 9px 6px 7px; background: #fff; border: 1px solid #dce6f2; border-radius: 14px; box-shadow: 0 8px 25px rgba(48,76,133,.06); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.account-entry:hover { border-color: #bfd2ef; box-shadow: 0 11px 30px rgba(48,76,133,.11); transform: translateY(-1px); }
.account-avatar { --avatar-hue: 218; display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; overflow: hidden; color: #fff; background: linear-gradient(145deg, hsl(var(--avatar-hue) 70% 58%), hsl(calc(var(--avatar-hue) + 35) 67% 48%)); border: 1px solid rgba(27,53,102,.1); border-radius: 50%; font: 700 8px "Outfit", "Noto Sans SC"; }
.account-avatar.use-brand-avatar { background-color: #eef5ff; background-image: url("./assets/cat-logo.png"); background-position: center; background-repeat: no-repeat; background-size: 88%; }
.account-meta { display: grid; min-width: 0; gap: 1px; }.account-meta small { color: #8a96a9; font-size: 7px; font-weight: 500; }.account-meta strong { overflow: hidden; color: #273754; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.account-arrow { margin-left: auto; color: var(--blue); font-size: 10px; }
.page-title { display: flex; align-items: end; justify-content: space-between; gap: 35px; padding: 78px 0 45px; }
.page-kicker { color: var(--blue); font: 500 8px "DM Mono"; letter-spacing: .13em; }
.page-title h1 { margin: 10px 0 8px; font-size: 53px; line-height: 1.05; letter-spacing: -.065em; }.page-title p { margin: 0; color: var(--muted); font-size: 12px; }
.data-state { display: flex; align-items: center; gap: 9px; padding: 11px 14px; color: #64758d; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 9px; }.data-state i { width: 7px; height: 7px; background: var(--warn); border-radius: 50%; box-shadow: 0 0 0 4px rgba(239,172,61,.13); }.data-state.live i { background: var(--mint); box-shadow: 0 0 0 4px rgba(53,180,148,.13); }.data-state.error i { background: var(--down); box-shadow: 0 0 0 4px rgba(230,93,111,.13); }
.toolbar { display: flex; align-items: center; min-height: 57px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.range-tabs { display: flex; gap: 4px; }.range-tabs button, #refresh-usage, #refresh-status { padding: 9px 13px; color: #738096; background: transparent; border: 0; border-radius: 9px; font-size: 9px; font-weight: 600; }.range-tabs button.active { color: var(--blue); background: var(--blue-soft); }.toolbar > span { margin-left: auto; color: #99a4b4; font-size: 8px; }.toolbar #refresh-usage { margin-left: 12px; color: var(--blue); background: #edf4ff; }
.notice-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 14px; padding: 18px 20px; background: #fff8e8; border: 1px solid #f2dfb7; border-radius: 14px; }.notice-card strong { font-size: 11px; }.notice-card p { margin: 5px 0 0; color: #876f49; font-size: 9px; }.notice-card a { color: #725725; font-size: 9px; font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.metric-grid article { display: grid; gap: 6px; min-height: 145px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 17px; }.metric-grid small { color: #8793a6; font-size: 8px; }.metric-grid strong { align-self: end; font: 700 28px "Outfit", "Noto Sans SC"; letter-spacing: -.03em; }.metric-grid span { color: #97a2b2; font-size: 8px; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 12px; margin-top: 12px; }
.panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.panel > header { display: flex; align-items: center; justify-content: space-between; min-height: 69px; padding: 0 22px; border-bottom: 1px solid var(--line); }.panel > header > div:first-child { display: grid; gap: 4px; }.panel > header strong { font-size: 11px; }.panel > header span { color: #929dad; font-size: 8px; }.panel > header a { color: var(--blue); font-size: 8px; font-weight: 700; }
.legend { display: flex !important; flex-direction: row !important; gap: 15px !important; }.legend span, .status-legend span { display: flex; align-items: center; gap: 6px; }.legend i, .status-legend i { width: 7px; height: 7px; border-radius: 50%; }.legend .blue { background: var(--blue); }.legend .mint { background: var(--mint); }
.chart { position: relative; display: flex; align-items: end; gap: 11px; height: 310px; padding: 35px 26px 27px; background-image: linear-gradient(#edf1f6 1px, transparent 1px); background-size: 100% 25%; }
.chart-column { position: relative; display: grid; align-items: end; flex: 1; height: 100%; }.chart-column > i { display: block; width: 100%; height: var(--height); min-height: 2px; background: linear-gradient(to top, var(--blue), #8eb8fa); border-radius: 7px 7px 2px 2px; }.chart-column > b { position: absolute; bottom: -18px; left: 50%; color: #98a3b3; font: 500 7px "DM Mono"; transform: translateX(-50%); white-space: nowrap; }.chart-column:hover::before { content: attr(data-value); position: absolute; z-index: 2; left: 50%; bottom: calc(var(--height) + 8px); padding: 5px 7px; color: #fff; background: var(--ink); border-radius: 6px; font: 500 7px "DM Mono"; transform: translateX(-50%); }
.model-breakdown { display: grid; gap: 18px; padding: 24px; }.model-row { display: grid; grid-template-columns: 1fr auto; gap: 7px 15px; }.model-row b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.model-row span { color: #8290a4; font: 500 8px "DM Mono"; }.model-progress { grid-column: 1 / 3; height: 6px; overflow: hidden; background: #edf1f6; border-radius: 6px; }.model-progress i { display: block; width: var(--width); height: 100%; background: var(--blue); border-radius: inherit; }
.request-panel { margin: 12px 0 80px; }.request-table-wrap { overflow-x: auto; }.request-panel table { width: 100%; border-collapse: collapse; }.request-panel th, .request-panel td { padding: 15px 20px; text-align: left; border-bottom: 1px solid #edf1f5; font-size: 8px; white-space: nowrap; }.request-panel th { color: #8d98aa; font-weight: 600; }.request-panel td { color: #627087; }.request-panel td.model-name { max-width: 240px; overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; }.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 20px; }.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }.status-pill.ok { color: #2a8d76; background: #eaf8f4; }.status-pill.ok::before { background: var(--mint); }.status-pill.fail { color: #b84b5a; background: #fff0f2; }.status-pill.fail::before { background: var(--down); }
.empty { padding: 35px !important; color: #9aa5b5 !important; text-align: center !important; font-size: 9px !important; }

.status-title { align-items: center; }.status-title #refresh-status { color: var(--blue); background: #e9f2ff; border: 1px solid #dbe9fb; }
.overall-card { display: grid; grid-template-columns: 64px 1fr 180px; align-items: center; gap: 22px; min-height: 180px; padding: 34px; color: #e8f0ff; background: #162b56; border-radius: 22px; box-shadow: 0 25px 70px rgba(22,43,86,.18); }.overall-icon { display: grid; place-items: center; width: 58px; height: 58px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }.overall-icon i { width: 16px; height: 16px; background: var(--warn); border-radius: 50%; box-shadow: 0 0 0 8px rgba(239,172,61,.12); }.overall-card.ok .overall-icon i { background: var(--mint); box-shadow: 0 0 0 8px rgba(53,180,148,.12); }.overall-card.down .overall-icon i { background: var(--down); box-shadow: 0 0 0 8px rgba(230,93,111,.12); }.overall-card span { color: #8fa4cd; font-size: 8px; }.overall-card h2 { margin: 7px 0; font-size: 28px; letter-spacing: -.04em; }.overall-card p { margin: 0; color: #91a5c9; font-size: 9px; }.overall-card aside { display: grid; grid-template-columns: 1fr auto; gap: 8px 15px; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }.overall-card aside small { color: #7189b6; font-size: 7px; }.overall-card aside strong { color: #cbdaf5; font: 500 8px "DM Mono"; }
.status-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 14px; }.status-summary article { display: grid; gap: 9px; min-height: 125px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }.status-summary small { color: #8592a6; font-size: 8px; }.status-summary strong { display: flex; align-items: center; gap: 8px; font-size: 12px; }.status-summary strong i { width: 7px; height: 7px; background: var(--unknown); border-radius: 50%; }.status-summary strong.ok i { background: var(--mint); }.status-summary strong.warn i { background: var(--warn); }.status-summary strong.down i { background: var(--down); }.status-summary article > span { color: #98a3b3; font: 500 8px "DM Mono"; }
.status-content { margin-top: 70px; }.status-content > header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 20px; }.status-content h2, .incident-panel h2 { margin: 0; font-size: 27px; letter-spacing: -.04em; }.status-content header p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }.status-legend { display: flex; gap: 14px; color: #7f8c9f; font-size: 8px; }.status-legend .ok { background: var(--mint); }.status-legend .warn { background: var(--warn); }.status-legend .down { background: var(--down); }.status-legend .unknown { background: var(--unknown); }
.service-groups { display: grid; gap: 10px; }.loading-card { padding: 35px; color: #8d98aa; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-align: center; font-size: 9px; }
.service-group { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 17px; }.group-summary { display: grid; grid-template-columns: minmax(200px,1fr) minmax(300px,1.1fr) 100px 26px; align-items: center; gap: 28px; width: 100%; min-height: 92px; padding: 18px 22px; text-align: left; background: transparent; border: 0; }.group-name { display: grid; gap: 4px; }.group-name strong { font-size: 11px; }.group-name span { color: #8b96a7; font-size: 8px; }.group-uptime { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 15px; }.group-uptime span { color: #8491a5; font: 500 8px "DM Mono"; }.uptime-track { grid-column: 1 / 3; display: flex; gap: 2px; height: 22px; }.uptime-track i { min-width: 2px; flex: 1; background: var(--mint); border-radius: 2px; }.uptime-track i.warn { background: var(--warn); }.uptime-track i.down { background: var(--down); }.uptime-track i.unknown { background: #dfe5ed; }.group-state { justify-self: end; display: inline-flex; align-items: center; gap: 7px; color: #2c9179; font-size: 8px; }.group-state i { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; }.group-state.warn { color: #b0781f; }.group-state.warn i { background: var(--warn); }.group-state.down { color: #b94756; }.group-state.down i { background: var(--down); }.group-state.unknown { color: #8491a3; }.group-state.unknown i { background: var(--unknown); }.group-summary > i { justify-self: end; width: 8px; height: 8px; border-right: 1.5px solid #718096; border-bottom: 1.5px solid #718096; transform: rotate(45deg); transition: transform .2s ease; }.service-group.open .group-summary > i { transform: rotate(225deg); }
.group-models { display: none; border-top: 1px solid var(--line); }.service-group.open .group-models { display: block; }.model-status-row { display: grid; grid-template-columns: minmax(230px,1fr) 190px minmax(240px,.9fr) 90px; align-items: center; gap: 25px; padding: 15px 22px; border-bottom: 1px solid #edf1f5; }.model-status-row:last-child { border: 0; }.model-status-row > b { overflow: hidden; font: 600 9px "DM Mono"; text-overflow: ellipsis; white-space: nowrap; }.model-status-row > b > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.model-status-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }.model-status-tags i { padding: 2px 5px; color: #64758d; background: #f1f5fb; border: 1px solid #e1e9f3; border-radius: 4px; font-size: 8px; font-style: normal; font-weight: 500; white-space: nowrap; }.model-status-row > span { color: #8491a3; font-size: 8px; }.model-status-row .mini-track { display: flex; gap: 2px; height: 12px; }.mini-track i { min-width: 1px; flex: 1; background: var(--mint); border-radius: 1px; }.mini-track i.warn { background: var(--warn); }.mini-track i.down { background: var(--down); }.mini-track i.unknown { background: #dfe5ed; }.model-status-row em { justify-self: end; font-size: 8px; font-style: normal; }
.incident-panel { margin: 70px 0 80px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; }.incident-panel > header { display: flex; justify-content: space-between; align-items: center; padding: 22px; border-bottom: 1px solid var(--line); }.incident-panel > header span { color: #8c98aa; font-size: 8px; }.incident-empty { display: flex; align-items: center; gap: 16px; padding: 27px 22px; }.incident-empty > i { width: 12px; height: 12px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 6px rgba(53,180,148,.12); }.incident-empty > span { display: grid; gap: 4px; }.incident-empty strong { font-size: 10px; }.incident-empty small { color: #8995a7; font-size: 8px; }
.incident-empty.unknown > i { background: var(--unknown); box-shadow: 0 0 0 6px rgba(162,173,189,.14); }
.incident-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid #edf1f5; }.incident-row:last-child { border-bottom: 0; }.incident-row > i { width: 10px; height: 10px; background: var(--warn); border-radius: 50%; box-shadow: 0 0 0 5px rgba(239,172,61,.12); }.incident-row.down > i { background: var(--down); box-shadow: 0 0 0 5px rgba(230,93,111,.12); }.incident-row > div { display: grid; gap: 4px; }.incident-row strong { font: 600 9px "DM Mono"; }.incident-row p { margin: 0; color: #7e8b9f; font-size: 8px; }.incident-row time { color: #94a0b2; font: 500 8px "DM Mono"; }

/* Status page readability and interactive 24-hour timeline. */
.status-page .overall-card span { font-size: 10px; }
.status-page .overall-card p { font-size: 11px; line-height: 1.7; }
.status-page .overall-card aside small { font-size: 9px; }
.status-page .overall-card aside strong { font-size: 10px; }
.status-page .status-summary small { font-size: 10px; }
.status-page .status-summary strong { font-size: 14px; }
.status-page .status-summary article > span { font-size: 10px; }
.status-page .status-content header p { font-size: 11px; }
.status-page .status-legend { font-size: 10px; }
.status-page .legend i, .status-page .status-legend i { width: 8px; height: 8px; }
.status-page .group-summary { min-height: 108px; padding: 22px 26px; }
.status-page .group-name { gap: 6px; }
.status-page .group-name strong { font-size: 14px; }
.status-page .group-name span { font-size: 10px; }
.status-page .group-uptime span { font-size: 10px; }
.status-page .group-state { font-size: 10px; font-weight: 600; }
.status-page .group-state i { width: 8px; height: 8px; }
.status-page .model-status-row { min-height: 60px; padding: 17px 26px; }
.status-page .model-status-row > b { font-size: 11px; }
.status-page .model-status-row > span { font-size: 10px; }
.status-page .model-status-row em { font-size: 10px; }
.status-page .model-status-row .mini-track { height: 15px; }
.status-page .uptime-track, .status-page .mini-track { gap: 1px; }
.status-page .model-measures { display: flex; align-items: center; gap: 9px; min-width: 0; }
.status-page .model-measures > small { color: #8491a3; font: 500 10px "DM Mono"; white-space: nowrap; }
.status-page .model-timing { display: inline-flex; align-items: center; gap: 5px; min-width: 0; font-size: 10px; font-weight: 650; white-space: nowrap; }
.status-page .model-timing i { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; }
.status-page .model-timing.ok { color: #278c73; }.status-page .model-timing.ok i { background: var(--mint); }
.status-page .model-timing.warn { color: #ad7317; }.status-page .model-timing.warn i { background: var(--warn); }
.status-page .model-timing.down { color: #bd4354; }.status-page .model-timing.down i { background: var(--down); }
.status-page .model-timing.unknown { color: #8f9bad; }.status-page .model-timing.unknown i { background: var(--unknown); }
.status-page .incident-panel > header span,
.status-page .incident-row p,
.status-page .incident-row time,
.status-page .incident-empty small { font-size: 10px; }
.status-page .incident-row strong,
.status-page .incident-empty strong { font-size: 11px; }
.uptime-track, .mini-track { overflow: visible; }
.uptime-track i, .mini-track i {
  position: relative;
  cursor: help;
  transform-origin: center;
  transition: transform .16s cubic-bezier(.2,.8,.2,1), filter .16s ease, box-shadow .16s ease;
}
.uptime-track i:hover, .mini-track i:hover {
  z-index: 2;
  filter: brightness(1.04) saturate(1.12);
  box-shadow: 0 7px 15px rgba(22,43,86,.18);
  transform: translateY(-3px) scaleY(1.14);
}
.timeline-tooltip {
  position: fixed;
  z-index: 1000;
  display: grid;
  gap: 3px;
  min-width: 188px;
  padding: 11px 13px 12px;
  color: #eef4ff;
  pointer-events: none;
  background: rgba(17,35,72,.97);
  border: 1px solid rgba(255,255,255,.13);
  border-left: 3px solid var(--unknown);
  border-radius: 11px;
  box-shadow: 0 16px 42px rgba(13,30,63,.25);
  opacity: 0;
  transform: translateY(6px) scale(.97);
  transition: opacity .15s ease, transform .18s cubic-bezier(.2,.8,.2,1);
  backdrop-filter: blur(12px);
}
.timeline-tooltip.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.timeline-tooltip.ok { border-left-color: var(--mint); }
.timeline-tooltip.warn { border-left-color: var(--warn); }
.timeline-tooltip.down { border-left-color: var(--down); }
.timeline-tooltip span { color: #93a8cf; font: 500 10px "DM Mono"; }
.timeline-tooltip strong { margin-top: 2px; font-size: 13px; }
.timeline-tooltip small { color: #c5d2e8; font-size: 10px; }
#refresh-usage:disabled, #refresh-status:disabled { cursor: progress; opacity: .62; }
.sub-footer { display: flex; justify-content: space-between; width: var(--shell); margin: auto; padding: 28px 0; color: #929dad; border-top: 1px solid var(--line); font-size: 8px; }.sub-footer code { font: 500 8px "DM Mono"; }

@media (max-width: 820px) {
  :root { --shell: calc(100vw - 32px); }
  .sub-header nav { gap: 0; }.sub-header nav > a:not(.account-entry) { display: none; }.account-entry { min-width: 135px; max-width: 165px; }.page-title { padding-top: 55px; }.page-title h1 { font-size: 45px; }
  .metric-grid, .status-summary { grid-template-columns: 1fr 1fr; }.dashboard-grid { grid-template-columns: 1fr; }
  .overall-card { grid-template-columns: 58px 1fr; }.overall-card aside { grid-column: 1 / 3; grid-template-columns: 1fr auto; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .status-content > header { align-items: flex-start; flex-direction: column; }.group-summary { grid-template-columns: 1fr 1fr 25px; }.group-state { display: none; }.model-status-row { grid-template-columns: 1fr 110px 70px; }.model-status-row > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .uptime-track i, .mini-track i, .timeline-tooltip { transition: none; }
}
@media (max-width: 520px) {
  :root { --shell: calc(100vw - 24px); }.sub-header { top: 8px; height: 66px; margin-top: 8px; padding-inline: 10px; }.sub-brand > div { display: none; }.account-entry { min-width: 0; max-width: 150px; }.account-meta small { display: none; }
  .page-title { align-items: flex-start; flex-direction: column; padding: 45px 0 30px; }.data-state { align-self: stretch; }.toolbar { flex-wrap: wrap; gap: 7px; }.toolbar > span { order: 3; width: 100%; margin: 0 7px 3px; }.metric-grid, .status-summary { grid-template-columns: 1fr; }.metric-grid article { min-height: 120px; }
  .panel > header { align-items: flex-start; flex-direction: column; gap: 12px; padding: 17px; }.chart { height: 245px; gap: 7px; padding-inline: 17px; }.request-panel th, .request-panel td { padding: 13px 15px; }
  .overall-card { grid-template-columns: 1fr; padding: 27px; }.overall-card aside { grid-column: auto; }.status-legend { display: grid; grid-template-columns: 1fr 1fr; }.group-summary { grid-template-columns: 1fr 24px; gap: 15px; }.group-uptime { grid-column: 1 / 3; }.model-status-row { grid-template-columns: 1fr 65px; gap: 14px; }.model-status-row .mini-track { grid-column: 1 / 3; }.incident-panel { margin-bottom: 55px; }.sub-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}
