:root {
  --ink: #18212f;
  --muted: #697586;
  --muted-2: #94a0af;
  --line: #e3e7ec;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --nav: #101923;
  --nav-soft: #1b2734;
  --accent: #2968e8;
  --accent-soft: #eaf1ff;
  --green: #16845b;
  --green-soft: #e8f7f0;
  --amber: #a86700;
  --amber-soft: #fff4d8;
  --red: #c53b45;
  --red-soft: #ffedef;
  --purple: #7357d7;
  --purple-soft: #f0ecff;
  --shadow: 0 1px 2px rgb(19 33 50 / 4%), 0 8px 28px rgb(19 33 50 / 5%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); }
body { margin: 0; min-height: 100vh; background: var(--canvas); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; }
.sidebar {
  background: var(--nav);
  color: #dce5ef;
  display: flex;
  flex-direction: column;
  inset: 0 auto 0 0;
  padding: 25px 18px 18px;
  position: fixed;
  width: 236px;
  z-index: 20;
}
.brand { align-items: center; display: flex; gap: 11px; padding: 0 8px; }
.brand-mark {
  align-items: center;
  background: linear-gradient(145deg, #4f8cff, #1f5ad2);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 28%), 0 7px 18px rgb(17 88 221 / 24%);
  color: white;
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}
.brand strong { display: block; font-size: 15px; letter-spacing: .01em; }
.brand small { color: #8292a5; display: block; font-size: 11px; margin-top: 2px; }
.nav { margin-top: 35px; }
.nav-label { color: #627386; font-size: 10px; font-weight: 700; letter-spacing: .13em; margin: 26px 11px 8px; text-transform: uppercase; }
.nav-item { align-items: center; border-radius: 9px; color: #9eacbb; display: flex; gap: 11px; margin: 3px 0; min-height: 42px; padding: 0 11px; transition: .15s ease; }
.nav-item:hover { background: #172330; color: #f3f7fb; }
.nav-item.active { background: var(--nav-soft); box-shadow: inset 3px 0 var(--accent); color: white; }
.nav-icon { align-items: center; border: 1px solid #344455; border-radius: 7px; display: inline-flex; font-size: 13px; font-weight: 800; height: 24px; justify-content: center; width: 24px; }
.nav-item b { background: #263647; border-radius: 10px; color: #aebcca; font-size: 10px; margin-left: auto; min-width: 22px; padding: 3px 6px; text-align: center; }
.nav-item b.danger-count { background: #5c2730; color: #ffbdc2; }
.sidebar-footer { border-top: 1px solid #223140; margin-top: auto; padding: 17px 7px 0; }
.user-chip { align-items: center; display: flex; gap: 10px; }
.avatar { align-items: center; background: #26384b; border-radius: 50%; color: white; display: inline-flex; font-weight: 700; height: 34px; justify-content: center; width: 34px; }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { color: #edf3f9; font-size: 12px; }
.user-chip small { color: #708195; font-size: 10px; margin-top: 2px; }
.text-button { background: none; border: 0; color: #6f8194; cursor: pointer; font-size: 11px; margin: 12px 0 0 44px; padding: 0; }
.text-button:hover { color: white; }

.main-content { margin-left: 236px; min-height: 100vh; padding: 34px clamp(24px, 3vw, 48px) 60px; }
.mobile-header { display: none; }
.page-header { align-items: flex-end; display: flex; justify-content: space-between; margin: 0 0 26px; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; margin: 0 0 8px; text-transform: uppercase; }
.eyebrow--light { color: #80aaff; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(27px, 3vw, 38px); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 8px; }
h2 { font-size: 18px; letter-spacing: -.015em; }
h3 { font-size: 14px; }
.page-lede { color: var(--muted); font-size: 14px; margin: 0; }
.header-actions { align-items: center; display: flex; gap: 10px; }
.button { align-items: center; border: 1px solid transparent; border-radius: 8px; cursor: pointer; display: inline-flex; font-size: 12px; font-weight: 700; justify-content: center; min-height: 38px; padding: 0 14px; transition: .15s ease; }
.button--primary { background: var(--accent); color: white; }
.button--primary:hover { background: #1758d5; box-shadow: 0 5px 14px rgb(41 104 232 / 20%); }
.button--secondary { background: white; border-color: #d6dce3; color: #344255; }
.button--secondary:hover { border-color: #b9c3ce; background: #fafbfd; }
.button--wide { width: 100%; }
.live-indicator { align-items: center; background: var(--green-soft); border: 1px solid #cfeede; border-radius: 18px; color: var(--green); display: inline-flex; font-size: 11px; font-weight: 700; gap: 7px; padding: 8px 12px; }
.live-indicator i { animation: pulse 1.8s infinite; background: #23aa77; border-radius: 50%; height: 7px; width: 7px; }
.live-indicator--offline { background: var(--red-soft); border-color: #f4cdd1; color: var(--red); }
.live-indicator--offline i { animation: none; background: var(--red); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgb(35 170 119 / 0); } 50% { box-shadow: 0 0 0 5px rgb(35 170 119 / 15%); } }

.message-stack { display: grid; gap: 8px; margin-bottom: 18px; }
.message { background: white; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; box-shadow: var(--shadow); padding: 12px 15px; }
.message--error { border-left-color: var(--red); }
.message--success { border-left-color: var(--green); }
.system-banner { align-items: center; border: 1px solid; border-radius: 10px; display: flex; gap: 9px; margin: -8px 0 18px; padding: 12px 15px; }
.system-banner strong { font-size: 12px; }
.system-banner span { font-size: 12px; }
.system-banner--warning { background: var(--amber-soft); border-color: #efdb9e; color: #785118; }
.system-banner--danger { background: var(--red-soft); border-color: #f1c9cd; color: #8d2c35; }
.incident-banner { align-items: center; background: #242f3c; border-radius: 12px; box-shadow: var(--shadow); color: white; display: flex; gap: 13px; margin-bottom: 17px; padding: 15px 17px; }
.incident-banner:hover { background: #1c2733; }
.incident-icon { align-items: center; background: #ffdc7c; border-radius: 50%; color: #6f4700; display: inline-flex; font-weight: 900; height: 30px; justify-content: center; width: 30px; }
.incident-banner strong, .incident-banner small { display: block; }
.incident-banner strong { font-size: 13px; }
.incident-banner small { color: #aeb9c4; font-size: 11px; margin-top: 3px; }
.incident-link { color: #c9d7e4; font-size: 11px; margin-left: auto; }

.metric-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.metric-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-height: 122px; padding: 17px 19px; position: relative; }
.metric-card::after { background: var(--accent); border-radius: 3px; content: ""; height: 4px; position: absolute; right: 18px; top: 18px; width: 20px; }
.metric-card--danger::after { background: var(--red); }
.metric-card--active::after { background: var(--green); }
.metric-label { color: var(--muted); display: block; font-size: 11px; font-weight: 650; }
.metric-card > strong { display: block; font-size: 28px; letter-spacing: -.04em; margin-top: 14px; }
.metric-card small { color: var(--muted-2); display: block; font-size: 10px; margin-top: 4px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.panel-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 72px; padding: 15px 19px; }
.panel-header h2 { margin-bottom: 4px; }
.panel-header p { color: var(--muted); font-size: 11px; margin: 0; }
.filters { align-items: center; display: flex; gap: 8px; }
.filters input, .filters select { background: #fbfcfd; border: 1px solid #d9dee5; border-radius: 8px; color: #394659; height: 37px; outline: none; padding: 0 11px; }
.filters input { min-width: 235px; }
.filters input:focus, .filters select:focus { border-color: #8eb2f8; box-shadow: 0 0 0 3px rgb(41 104 232 / 9%); }
.clear-filter { color: var(--muted); font-size: 11px; padding: 8px 4px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { background: #fafbfc; color: #778294; font-size: 9px; font-weight: 800; letter-spacing: .09em; padding: 10px 14px; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { border-top: 1px solid #edf0f3; padding: 15px 14px; vertical-align: top; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fbfcfe; }
.fleet-table th:first-child, .fleet-table td:first-child { padding-left: 19px; }
.fleet-table td:nth-child(1) { min-width: 180px; }
.fleet-table td:nth-child(3) { max-width: 280px; min-width: 230px; }
.fleet-table td:nth-child(4) { max-width: 330px; min-width: 260px; }
.instance-name { color: #1e2c3d; display: inline-block; font-size: 13px; font-weight: 750; margin-bottom: 5px; }
.instance-name:hover { color: var(--accent); }
.cell-meta { color: var(--muted-2); display: block; font-size: 10px; line-height: 1.55; }
.activity-cell > strong { display: block; font-size: 11px; font-weight: 650; line-height: 1.4; margin-bottom: 5px; }
.state-badge { align-items: center; border: 1px solid; border-radius: 14px; display: inline-flex; font-size: 10px; font-weight: 750; gap: 6px; margin-bottom: 6px; padding: 5px 8px; white-space: nowrap; }
.state-badge i { background: currentColor; border-radius: 50%; height: 6px; width: 6px; }
.state--ready { background: var(--green-soft); border-color: #caeadb; color: var(--green); }
.state--generating { background: var(--accent-soft); border-color: #ccdafa; color: var(--accent); }
.state--generating i { animation: pulse 1.5s infinite; }
.state--retrying { background: var(--amber-soft); border-color: #ecd99e; color: var(--amber); }
.state--provisioning, .state--starting, .state--renting { background: var(--purple-soft); border-color: #dbd3fc; color: var(--purple); }
.state--resuming { background: var(--purple-soft); border-color: #dbd3fc; color: var(--purple); }
.state--resuming i { animation: pulse 1.5s infinite; }
.state--stalled, .state--degraded, .state--failed { background: var(--red-soft); border-color: #f2cbd0; color: var(--red); }
.state--paused, .state--stopping, .state--stopped, .state--unknown { background: #f0f2f4; border-color: #dce1e6; color: #697586; }
.diagnosis { border-left: 2px solid; padding: 1px 0 1px 9px; }
.diagnosis strong, .diagnosis span { display: block; line-height: 1.35; }
.diagnosis strong { font-size: 10px; }
.diagnosis span { color: var(--muted); font-size: 9px; margin-top: 4px; }
.diagnosis--error { border-color: var(--red); }
.diagnosis--warning { border-color: var(--amber); }
.healthy { align-items: center; color: var(--green); display: inline-flex; font-size: 10px; font-weight: 650; gap: 6px; }
.healthy i { align-items: center; background: var(--green-soft); border-radius: 50%; display: inline-flex; font-style: normal; height: 20px; justify-content: center; width: 20px; }
.startup-ok { align-items: center; color: var(--purple); display: inline-flex; font-size: 10px; font-weight: 650; gap: 6px; }
.startup-ok i { align-items: center; background: var(--purple-soft); border-radius: 50%; display: inline-flex; font-style: normal; height: 20px; justify-content: center; width: 20px; }
.paused-status { align-items: flex-start; color: #617083; display: inline-flex; font-size: 10px; font-weight: 650; gap: 8px; }
.paused-status > i { align-items: center; background: #eef1f4; border-radius: 50%; color: #647285; display: inline-flex; flex: 0 0 auto; font-size: 9px; font-style: normal; height: 22px; justify-content: center; width: 22px; }
.paused-status > span, .paused-status strong, .paused-status small { display: block; }
.paused-status small { color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.4; margin-top: 3px; }
.rental-clock { color: #758194; margin-top: 4px; }
.link-stack { display: flex; flex-direction: column; gap: 5px; }
.link-stack a, .stats-table a { color: var(--accent); font-size: 10px; font-weight: 650; white-space: nowrap; }
.service-dot { background: #9ca8b5; border-radius: 50%; display: inline-block; height: 6px; margin-right: 5px; width: 6px; }
.service-dot--reachable { background: #1da56f; box-shadow: 0 0 0 3px rgb(29 165 111 / 10%); }
.service-dot--unreachable { background: var(--red); box-shadow: 0 0 0 3px rgb(197 59 69 / 10%); }
.empty-state { align-items: center; color: var(--muted); display: flex; flex-direction: column; padding: 55px 20px; text-align: center; }
.empty-state > span { align-items: center; background: #edf1f5; border-radius: 50%; color: #637186; display: inline-flex; font-size: 20px; height: 48px; justify-content: center; margin-bottom: 12px; width: 48px; }
.empty-state h3 { color: var(--ink); margin: 0 0 4px; }
.empty-state p { font-size: 11px; margin: 0; }
.empty-state--compact { padding: 28px 16px; }
.empty-state--compact > span { font-size: 14px; height: 34px; width: 34px; }

.breadcrumbs { color: var(--muted); display: flex; font-size: 11px; gap: 8px; margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--accent); }
.detail-header { align-items: center; }
.title-row { align-items: center; display: flex; gap: 12px; }
.title-row h1 { margin-bottom: 0; }
.title-row .state-badge { margin: 3px 0 0; }
.hero-diagnosis { align-items: flex-start; background: white; border: 1px solid; border-radius: 12px; box-shadow: var(--shadow); display: flex; gap: 15px; margin-bottom: 18px; padding: 18px 20px; }
.hero-diagnosis--error { background: #fffafb; border-color: #f2c9ce; }
.hero-diagnosis--warning { background: #fffdf8; border-color: #efdda6; }
.hero-diagnosis--healthy { background: #fbfffd; border-color: #cfe9dd; }
.hero-diagnosis--startup { background: #fbfaff; border-color: #ddd5fb; }
.hero-diagnosis--paused { background: #fafbfd; border-color: #d7dde5; }
.hero-diagnosis-icon { align-items: center; background: var(--red-soft); border-radius: 9px; color: var(--red); display: inline-flex; flex: 0 0 auto; font-size: 16px; font-weight: 850; height: 38px; justify-content: center; width: 38px; }
.hero-diagnosis--warning .hero-diagnosis-icon { background: var(--amber-soft); color: var(--amber); }
.hero-diagnosis--healthy .hero-diagnosis-icon { background: var(--green-soft); color: var(--green); }
.hero-diagnosis--startup .hero-diagnosis-icon { background: var(--purple-soft); color: var(--purple); }
.hero-diagnosis--paused .hero-diagnosis-icon { background: #edf1f5; color: #647285; }
.issue-code { color: var(--muted); display: block; font-size: 9px; font-weight: 800; letter-spacing: .1em; margin-bottom: 5px; }
.hero-diagnosis h2 { margin-bottom: 5px; }
.hero-diagnosis p { color: var(--muted); font-size: 12px; margin: 0; }
.copy-action { background: white; border: 1px solid #d8dee5; border-radius: 7px; color: #4c5b6d; cursor: pointer; font-size: 10px; font-weight: 700; margin-left: auto; min-width: 104px; padding: 8px 10px; }
.copy-action:hover { border-color: #aeb9c5; color: var(--ink); }
.detail-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 300px; }
.startup-panel .panel-header { align-items: flex-start; }
.startup-panel .eyebrow { color: var(--purple); margin-bottom: 6px; }
.startup-panel h2 { margin-bottom: 4px; }
.log-status { background: #f0f2f4; border: 1px solid #dce1e6; border-radius: 14px; color: #697586; flex: 0 0 auto; font-size: 9px; font-weight: 750; padding: 5px 8px; }
.log-status--ok { background: var(--green-soft); border-color: #caeadb; color: var(--green); }
.log-status--empty, .log-status--unavailable { background: var(--amber-soft); border-color: #ecd99e; color: var(--amber); }
.log-status--error { background: var(--red-soft); border-color: #f2cbd0; color: var(--red); }
.startup-summary { background: #fbfbfe; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.startup-summary > div { border-bottom: 1px solid #eceef3; border-right: 1px solid #eceef3; min-height: 88px; padding: 15px 19px; }
.startup-summary > div:nth-child(even) { border-right: 0; }
.startup-summary > div:nth-last-child(-n+2) { border-bottom: 0; }
.startup-summary span, .startup-summary strong, .startup-summary small { display: block; }
.startup-summary > div > span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .05em; margin-bottom: 6px; text-transform: uppercase; }
.startup-summary strong { font-size: 11px; line-height: 1.45; }
.startup-summary small { color: var(--muted-2); font-size: 9px; line-height: 1.45; margin-top: 4px; }
.checkpoint-map-header { align-items: center; display: flex; gap: 18px; justify-content: space-between; padding: 18px 19px 12px; }
.checkpoint-map-header > div:first-child { min-width: 0; }
.checkpoint-map-header strong, .checkpoint-map-header small { display: block; }
.checkpoint-map-header strong { font-size: 14px; margin-top: 7px; }
.checkpoint-map-header small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.checkpoint-profile { background: var(--accent-soft); border: 1px solid #cfddfb; border-radius: 12px; color: #245dbf; display: inline-flex; font-size: 8px; font-weight: 800; letter-spacing: .06em; padding: 4px 7px; text-transform: uppercase; }
.checkpoint-counts { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.checkpoint-count { background: #f1f3f5; border: 1px solid #e0e4e8; border-radius: 12px; color: var(--muted); font-size: 8px; font-weight: 750; padding: 4px 7px; }
.checkpoint-count--complete { background: var(--green-soft); border-color: #caeadb; color: var(--green); }
.checkpoint-count--current { background: var(--purple-soft); border-color: #d8d0f7; color: var(--purple); }
.checkpoint-count--paused { background: #f0f2f4; border-color: #dce1e6; color: #697586; }
.checkpoint-count--warning { background: var(--amber-soft); border-color: #ecd99e; color: var(--amber); }
.checkpoint-count--failed { background: var(--red-soft); border-color: #f0cbd0; color: var(--red); }
.checkpoint-notice { align-items: flex-start; background: #f8f7fd; border: 1px solid #e5e1f5; border-radius: 8px; color: #696378; display: flex; gap: 8px; margin: 0 19px 12px; padding: 9px 11px; }
.checkpoint-notice--warning { background: var(--amber-soft); border-color: #ecd99e; color: #865600; }
.checkpoint-notice--paused { background: #f5f7f9; border-color: #dce1e6; color: #657284; }
.checkpoint-notice strong { color: inherit; flex: 0 0 auto; font-size: 9px; }
.checkpoint-notice span { font-size: 9px; line-height: 1.45; }
.checkpoint-groups { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 19px 19px; }
.checkpoint-group { border: 1px solid var(--line); border-radius: 9px; min-width: 0; overflow: hidden; }
.checkpoint-group h3 { align-items: center; background: #fafbfc; border-bottom: 1px solid var(--line); display: flex; font-size: 10px; gap: 7px; margin: 0; padding: 10px 11px; }
.checkpoint-group h3 span { align-items: center; background: #edf1f5; border-radius: 50%; color: #687789; display: inline-flex; font-size: 8px; height: 18px; justify-content: center; width: 18px; }
.checkpoint-group ol { list-style: none; margin: 0; padding: 3px 11px 4px; }
.checkpoint { display: grid; gap: 9px; grid-template-columns: 18px minmax(0, 1fr); min-height: 67px; position: relative; }
.checkpoint-rail { display: flex; justify-content: center; position: relative; }
.checkpoint:not(:last-child) .checkpoint-rail::after { background: #e4e8ec; bottom: -1px; content: ""; left: 8px; position: absolute; top: 25px; width: 2px; }
.checkpoint-marker { align-items: center; background: white; border: 2px solid #cbd2da; border-radius: 50%; color: white; display: inline-flex; font-size: 9px; font-weight: 850; height: 17px; justify-content: center; margin-top: 11px; position: relative; width: 17px; z-index: 1; }
.checkpoint-body { border-bottom: 1px solid #edf0f3; min-width: 0; padding: 10px 0 11px; }
.checkpoint:last-child .checkpoint-body { border-bottom: 0; }
.checkpoint-title { align-items: flex-start; display: flex; gap: 7px; justify-content: space-between; }
.checkpoint-title strong { font-size: 10px; line-height: 1.35; }
.checkpoint-state { background: #f0f2f4; border-radius: 8px; color: #788494; flex: 0 0 auto; font-size: 7px; font-weight: 800; padding: 3px 5px; text-transform: uppercase; }
.checkpoint-body > p { color: var(--muted); font-size: 9px; line-height: 1.45; margin: 5px 0 0; }
.checkpoint-body > time { color: var(--muted-2); display: block; font-size: 8px; margin-top: 5px; }
.checkpoint-body .checkpoint-action { background: var(--red-soft); border-radius: 5px; color: #98313a; margin-top: 7px; padding: 6px 7px; }
.checkpoint--complete .checkpoint-marker { background: var(--green); border-color: var(--green); }
.checkpoint--complete .checkpoint-state { background: var(--green-soft); color: var(--green); }
.checkpoint--complete:not(:last-child) .checkpoint-rail::after { background: #bfe3d4; }
.checkpoint--inferred .checkpoint-marker { background: white; border-style: dashed; color: var(--green); }
.checkpoint--inferred .checkpoint-state { border: 1px dashed #9dcfb9; padding: 2px 4px; }
.checkpoint--current .checkpoint-marker { animation: checkpoint-spin .9s linear infinite; border-color: #d9d2f5; border-top-color: var(--purple); }
.checkpoint--current .checkpoint-state { background: var(--purple-soft); color: var(--purple); }
.checkpoint--current .checkpoint-title strong { color: #49349c; }
.checkpoint--paused .checkpoint-marker { background: #eef1f4; border-color: #cbd2da; color: #687587; font-size: 7px; }
.checkpoint--paused .checkpoint-state { background: #f0f2f4; color: #697586; }
.checkpoint--paused .checkpoint-title strong { color: #657284; }
.checkpoint--paused .checkpoint-body > p { color: #7b8694; }
.checkpoint--failed .checkpoint-marker { background: var(--red); border-color: var(--red); }
.checkpoint--failed .checkpoint-state { background: var(--red-soft); color: var(--red); }
.checkpoint--failed .checkpoint-title strong { color: #a02e38; }
.checkpoint--warning .checkpoint-marker { background: var(--amber); border-color: var(--amber); }
.checkpoint--warning .checkpoint-state { background: var(--amber-soft); color: var(--amber); }
.checkpoint--skipped .checkpoint-marker { border-style: dashed; color: #9aa5b2; }
.checkpoint--skipped .checkpoint-state { background: white; border: 1px dashed #ced4db; color: #8a95a1; padding: 2px 4px; }
.checkpoint--skipped .checkpoint-body > p { color: #8f99a5; }
@keyframes checkpoint-spin { to { transform: rotate(360deg); } }
.technical-milestones { border-top: 1px solid var(--line); margin-top: 0; }
.technical-milestones > summary { color: #5d6978; cursor: pointer; font-size: 9px; font-weight: 750; list-style-position: inside; padding: 12px 19px; }
.technical-milestones > summary span { color: var(--muted-2); font-weight: 500; margin-left: 5px; }
.technical-milestones[open] > summary { background: #fafbfc; border-bottom: 1px solid var(--line); }
.startup-log { padding: 7px 19px 14px; }
.startup-log-row { display: grid; gap: 12px; grid-template-columns: 12px minmax(0, 1fr); position: relative; }
.startup-log-row:not(:last-child)::before { background: #e4e1ef; content: ""; height: calc(100% - 4px); left: 4px; position: absolute; top: 18px; width: 1px; }
.startup-log-marker { background: var(--purple); border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #cfc6ef; height: 10px; margin-top: 16px; width: 10px; z-index: 1; }
.startup-log-row--warning .startup-log-marker { background: var(--amber); box-shadow: 0 0 0 1px #e5c786; }
.startup-log-row--error .startup-log-marker { background: var(--red); box-shadow: 0 0 0 1px #e5aeb4; }
.startup-log-copy { border-bottom: 1px solid #edf0f3; padding: 12px 0 13px; }
.startup-log-row:last-child .startup-log-copy { border-bottom: 0; }
.startup-log-copy > div { align-items: flex-start; display: flex; gap: 14px; justify-content: space-between; }
.startup-log-copy strong { font-size: 11px; line-height: 1.45; }
.startup-log-copy time { color: var(--muted-2); flex: 0 0 auto; font-size: 9px; white-space: nowrap; }
.startup-log-copy p { display: flex; flex-wrap: wrap; gap: 5px; margin: 7px 0 0; }
.startup-log-copy p span { background: #f1f0f7; border-radius: 4px; color: #716b81; font-size: 8px; padding: 3px 5px; }
.startup-empty { color: var(--muted); padding: 22px 0 16px; }
.startup-empty strong { color: var(--ink); display: block; font-size: 11px; margin-bottom: 6px; }
.startup-empty p { font-size: 10px; line-height: 1.55; margin: 4px 0 0; }
.current-panel .panel-header { align-items: flex-start; }
.current-panel .eyebrow { margin-bottom: 6px; }
.current-panel h2 { margin: 0; }
.panel--historical { border-color: #dce1e6; }
.panel--historical .eyebrow { color: #6d7887; }
.historical-note { background: #f5f7f9; border-bottom: 1px solid var(--line); color: #657284; font-size: 10px; line-height: 1.5; margin: 0; padding: 10px 19px; }
.timestamp { color: var(--muted); font-size: 10px; }
.current-meta { display: grid; grid-template-columns: repeat(4, 1fr); padding: 17px 19px; }
.current-meta div { border-right: 1px solid var(--line); padding: 0 14px; }
.current-meta div:first-child { padding-left: 0; }
.current-meta div:last-child { border: 0; }
.current-meta span, .current-meta strong { display: block; }
.current-meta span { color: var(--muted); font-size: 9px; margin-bottom: 5px; text-transform: uppercase; }
.current-meta strong { font-size: 11px; }
.timeline { padding: 6px 19px 15px; }
.timeline-item { display: grid; gap: 12px; grid-template-columns: 16px 1fr; position: relative; }
.timeline-item:not(:last-child)::before { background: #e6eaee; content: ""; height: calc(100% - 8px); left: 5px; position: absolute; top: 19px; width: 1px; }
.timeline-marker { background: #8fa0b1; border: 3px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #cbd3dc; height: 11px; margin-top: 17px; width: 11px; z-index: 1; }
.timeline-item--error .timeline-marker { background: var(--red); box-shadow: 0 0 0 1px #e5aeb4; }
.timeline-item--warning .timeline-marker { background: #d6921c; box-shadow: 0 0 0 1px #e7c98f; }
.timeline-body { border-bottom: 1px solid #edf0f3; padding: 13px 0 15px; }
.timeline-item:last-child .timeline-body { border-bottom: 0; }
.timeline-title { display: flex; gap: 12px; justify-content: space-between; }
.timeline-title strong { font-size: 11px; line-height: 1.4; }
.timeline-title time { color: var(--muted-2); font-size: 9px; white-space: nowrap; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.timeline-tags span { background: #f1f3f6; border-radius: 4px; color: #687587; font-size: 8px; padding: 3px 5px; }
.timeline-tags .tag-error { background: var(--red-soft); color: var(--red); font-weight: 700; }
.timeline-action { background: #f8fafc; border-radius: 6px; color: #566476; font-size: 10px; margin: 9px 0 0; padding: 8px 9px; }
details { margin-top: 8px; }
details summary { color: var(--muted); cursor: pointer; font-size: 9px; }
details code { background: #f6f8fa; border: 1px solid #e6e9ed; border-radius: 5px; color: #586576; display: block; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; line-height: 1.5; margin-top: 7px; overflow-wrap: anywhere; padding: 8px; }
.facts-panel { padding: 17px; }
.facts-panel h3 { border-bottom: 1px solid var(--line); margin-bottom: 8px; padding-bottom: 11px; }
.facts-panel dl { margin: 0; }
.facts-panel dl div { align-items: baseline; border-bottom: 1px solid #eef1f4; display: flex; gap: 10px; justify-content: space-between; padding: 9px 0; }
.facts-panel dl div:last-child { border: 0; }
.facts-panel dt { color: var(--muted); font-size: 10px; }
.facts-panel dd { font-size: 10px; font-weight: 650; margin: 0; max-width: 160px; text-align: right; }
.breakdown-row { align-items: center; border-bottom: 1px solid #eef1f4; display: flex; font-size: 9px; justify-content: space-between; padding: 8px 0; }
.breakdown-row span { color: #5b6777; }
.technical-copy { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.muted { color: var(--muted); }

.issue-row { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 13px; grid-template-columns: 30px 160px minmax(240px, 1fr) 80px 18px; padding: 14px 19px; }
.issue-row:hover { background: #fbfcfd; }
.issue-severity { align-items: center; border-radius: 8px; display: inline-flex; font-weight: 800; height: 30px; justify-content: center; width: 30px; }
.issue-severity--error { background: var(--red-soft); color: var(--red); }
.issue-severity--warning { background: var(--amber-soft); color: var(--amber); }
.issue-identity strong, .issue-identity small, .issue-copy strong, .issue-copy small { display: block; }
.issue-identity strong, .issue-copy strong { font-size: 10px; }
.issue-identity small, .issue-copy small { color: var(--muted); font-size: 9px; line-height: 1.4; margin-top: 3px; }
.issue-time { color: var(--muted-2); font-size: 9px; }
.row-arrow { color: var(--muted-2); }
.compact-event { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: 38px 130px minmax(0, 1fr) 18px; padding: 12px 19px; }
.compact-event:hover { background: #fbfcfd; }
.compact-event time { color: var(--muted-2); font-size: 9px; }
.event-code { background: var(--red-soft); border-radius: 4px; color: var(--red); font-size: 8px; font-weight: 750; padding: 4px 6px; text-align: center; }
.event-copy strong, .event-copy small { display: block; }
.event-copy strong { font-size: 10px; }
.event-copy small { color: var(--muted); font-size: 9px; margin-top: 3px; }

.notice-card { align-items: flex-start; background: #edf3ff; border: 1px solid #d5e1fa; border-radius: 10px; color: #365078; display: flex; gap: 11px; margin-bottom: 18px; padding: 13px 15px; }
.notice-card > span { align-items: center; background: white; border-radius: 50%; display: inline-flex; flex: 0 0 auto; font-size: 11px; font-weight: 800; height: 23px; justify-content: center; width: 23px; }
.notice-card p { font-size: 10px; line-height: 1.5; margin: 0; }
.stats-definitions { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.stats-definitions article { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; }
.stats-definitions strong { display: block; font-size: 10px; margin-bottom: 5px; }
.stats-definitions p { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 0; }
.stats-table td { font-size: 11px; vertical-align: middle; }
.number-good { color: var(--green); font-weight: 750; }
.number-bad { color: var(--red); font-weight: 750; }
.rate { align-items: center; display: flex; gap: 8px; }
.rate > span { background: #e9edf1; border-radius: 4px; height: 5px; overflow: hidden; width: 72px; }
.rate i { background: var(--green); display: block; height: 100%; }
.rate strong { font-size: 9px; }
.rental-row { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: minmax(180px, 1fr) 120px 90px 18px; padding: 13px 19px; }
.rental-row:hover { background: #fbfcfd; }
.rental-row > span:first-child strong, .rental-row > span:first-child small { display: block; }
.rental-row > span:first-child strong { font-size: 11px; }
.rental-row > span:first-child small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.rental-row > span:nth-child(3) { color: var(--muted); font-size: 9px; }
.mini-error { border-bottom: 1px solid var(--line); display: block; padding: 9px 0; }
.mini-error:last-child { border: 0; }
.mini-error span { color: var(--red); display: block; font-size: 8px; font-weight: 750; margin-bottom: 4px; }
.mini-error strong { display: block; font-size: 9px; line-height: 1.4; }
.mini-error small { color: var(--muted-2); display: block; font-size: 8px; margin-top: 4px; }

.login-page { background: var(--nav); }
.login-shell { display: grid; grid-template-columns: minmax(380px, 1.05fr) minmax(400px, .95fr); min-height: 100vh; }
.login-copy { background: radial-gradient(circle at 85% 15%, rgb(62 116 226 / 32%), transparent 36%), linear-gradient(145deg, #111d2b, #0c141e); color: white; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 6vw, 76px); }
.brand--login { padding: 0; }
.login-copy h1 { font-size: clamp(39px, 5vw, 66px); letter-spacing: -.055em; line-height: 1.02; max-width: 640px; }
.login-copy > div:nth-child(2) > p:last-child { color: #9aabba; font-size: 16px; line-height: 1.6; max-width: 570px; }
.login-signal { align-items: center; color: #7890a5; display: flex; font-size: 11px; gap: 8px; }
.login-signal span { background: #38c58c; border-radius: 50%; box-shadow: 0 0 0 5px rgb(56 197 140 / 11%); height: 7px; width: 7px; }
.login-panel { align-items: center; background: #f5f7f9; display: flex; justify-content: center; padding: 40px; }
.login-card { max-width: 390px; width: 100%; }
.login-card h2 { font-size: 30px; margin-bottom: 6px; }
.login-card > .muted { margin-bottom: 25px; }
.login-form { display: flex; flex-direction: column; }
.login-form label { color: #405066; font-size: 11px; font-weight: 700; margin: 14px 0 7px; }
.login-form input { background: white; border: 1px solid #d6dce3; border-radius: 9px; height: 45px; outline: none; padding: 0 13px; }
.login-form input:focus { border-color: #77a2f4; box-shadow: 0 0 0 3px rgb(41 104 232 / 10%); }
.login-form .button { margin-top: 23px; min-height: 45px; }
.form-error { background: var(--red-soft); border: 1px solid #f0cbd0; border-radius: 7px; color: #9c3039; font-size: 10px; margin-bottom: 8px; padding: 10px; }

@media (max-width: 1100px) {
  .sidebar { width: 205px; }
  .main-content { margin-left: 205px; padding-left: 22px; padding-right: 22px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 260px; }
  .filters input { min-width: 170px; }
}

@media (max-width: 820px) {
  .sidebar { display: none; }
  .main-content { margin: 0; padding: 82px 16px 40px; }
  .mobile-header { align-items: center; background: var(--nav); color: white; display: flex; height: 62px; inset: 0 0 auto; justify-content: space-between; padding: 0 17px; position: fixed; z-index: 20; }
  .brand--dark { padding: 0; }
  .brand--dark .brand-mark { height: 31px; width: 31px; }
  .mobile-user { color: #8ea0b2; font-size: 11px; }
  .page-header { align-items: flex-start; flex-direction: column; gap: 16px; }
  .panel-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .filters { flex-wrap: wrap; width: 100%; }
  .filters input { flex: 1 1 200px; min-width: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .startup-summary { grid-template-columns: 1fr; }
  .startup-summary > div, .startup-summary > div:nth-child(even), .startup-summary > div:nth-last-child(-n+2) { border-bottom: 1px solid #eceef3; border-right: 0; }
  .startup-summary > div:last-child { border-bottom: 0; }
  .checkpoint-map-header { align-items: flex-start; flex-direction: column; }
  .checkpoint-counts { justify-content: flex-start; }
  .current-meta { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .current-meta div:nth-child(2) { border-right: 0; }
  .login-shell { grid-template-columns: 1fr; }
  .login-copy { min-height: 44vh; padding: 32px; }
  .login-copy h1 { font-size: 40px; margin-top: 50px; }
  .login-signal { display: none; }
  .login-panel { min-height: 56vh; padding: 35px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .checkpoint--current .checkpoint-marker { animation: none; border-color: var(--purple); }
}

@media (max-width: 540px) {
  .metric-grid, .metric-grid--three, .stats-definitions { grid-template-columns: 1fr; }
  .checkpoint-groups { grid-template-columns: 1fr; }
  .metric-card { min-height: 104px; }
  .incident-banner { align-items: flex-start; }
  .incident-link { display: none; }
  .header-actions { flex-wrap: wrap; }
  .issue-row { grid-template-columns: 30px 1fr 18px; }
  .issue-copy { grid-column: 2 / 4; }
  .issue-time { display: none; }
  .compact-event { grid-template-columns: 38px 1fr 18px; }
  .compact-event .event-code { grid-column: 2; grid-row: 1; justify-self: start; }
  .compact-event .event-copy { grid-column: 2 / 4; }
  .timeline-title { flex-direction: column; gap: 3px; }
  .startup-log-copy > div { flex-direction: column; gap: 3px; }
  .current-meta { grid-template-columns: 1fr; }
  .current-meta div { border-bottom: 1px solid var(--line); border-right: 0; padding: 0 0 12px; }
  .login-copy { min-height: 38vh; }
  .login-copy h1 { font-size: 34px; margin-top: 38px; }
  .login-copy > div:nth-child(2) > p:last-child { font-size: 13px; }
}
