:root {
  color-scheme: light;
  --ink: #111a35;
  --muted: #667085;
  --canvas: #fffaf2;
  --card: #ffffff;
  --line: #e9e5dc;
  --cobalt: #2548d8;
  --cobalt-soft: #eef1ff;
  --mint: #2b8a67;
  --coral: #d94c5c;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: inherit; }
.site-header { min-height: 72px; padding: 14px clamp(18px, 4vw, 56px); display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 2; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: white; background: var(--cobalt); border-radius: 11px; font-size: 22px; }
nav { display: flex; align-items: center; gap: 18px; flex: 1; }
nav a, .link-button { color: var(--muted); font: inherit; font-weight: 700; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 8px 0; }
nav a:hover, .link-button:hover { color: var(--cobalt); }
.page-shell { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 42px 0 72px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin-bottom: 8px; }
h2 { font-size: 1.05rem; margin-bottom: 5px; }
h3 { font-size: .9rem; margin-top: 20px; }
.eyebrow { color: var(--cobalt); font-size: .75rem; font-weight: 850; letter-spacing: .16em; margin-bottom: 9px; }
.muted, .meta { color: var(--muted); }
.meta { font-size: .8rem; margin-bottom: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 32px rgba(30, 40, 70, .06); }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.metric-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
.metric { padding: 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.metric strong { font-size: 2rem; color: var(--cobalt); }
.metric small { color: var(--muted); }
.metric.urgent { border-color: #f5b7bf; background: #fff7f8; }
.metric.urgent strong { color: var(--coral); }
.metric.pending { background: var(--cobalt-soft); }
.cost-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 46px; }
.cost-summary .metric strong { font-size: 1.45rem; }
.total-cost { background: var(--cobalt-soft); }
.cost-section { scroll-margin-top: 96px; margin-top: 46px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2 { font-size: 1.5rem; margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading > strong { color: var(--cobalt); font-size: 1.2rem; }
.cost-section .list-card h3 { font-size: 1.05rem; margin: 0 0 5px; }
.list-stack { display: grid; gap: 14px; }
.list-card, .detail-card { display: block; padding: 20px 22px; text-decoration: none; }
a.list-card:hover { border-color: #b9c4ff; transform: translateY(-1px); }
.list-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.badge { display: inline-flex; width: max-content; padding: 5px 9px; border-radius: 999px; color: var(--cobalt); background: var(--cobalt-soft); font-size: .72rem; font-weight: 850; white-space: nowrap; }
.badge.danger { color: white; background: var(--coral); }
.issue-list { display: grid; gap: 10px; }
.issue { padding: 13px; border-left: 4px solid var(--coral); background: #fff7f8; border-radius: 10px; }
.issue p { margin: 5px 0; }
code { display: block; margin-top: 5px; overflow-wrap: anywhere; }
details { margin-top: 18px; }
summary { cursor: pointer; font-weight: 800; color: var(--cobalt); }
pre { padding: 16px; background: #10172a; color: #eaf0ff; border-radius: 12px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.preserve { white-space: pre-wrap; }
.empty-state, .narrow-card { padding: 28px; }
.narrow-card { max-width: 560px; margin: 10vh auto; }
.login-shell { min-height: calc(100vh - 150px); display: grid; place-items: center; }
.login-card { width: min(440px, 100%); padding: 30px; }
label { display: block; font-weight: 750; margin: 16px 0 7px; }
input { width: 100%; padding: 13px 14px; border: 1px solid #ccd2df; border-radius: 12px; font: inherit; color: var(--ink); background: white; }
input:focus { outline: 3px solid #cdd5ff; border-color: var(--cobalt); }
.primary-button { display: inline-flex; justify-content: center; width: 100%; margin-top: 20px; padding: 13px 18px; border: 0; border-radius: 13px; color: white; background: var(--cobalt); font: inherit; font-weight: 850; text-decoration: none; cursor: pointer; }
.error { margin-top: 14px; padding: 11px; border-radius: 10px; color: #8d1f2e; background: #fff0f2; }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; gap: 10px 20px; }
  nav { order: 3; width: 100%; overflow-x: auto; }
  .site-header form { margin-left: auto; }
  .metric-grid, .cost-summary { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .page-shell { width: min(100% - 24px, 1120px); padding-top: 26px; }
  .page-heading { align-items: start; flex-direction: column; }
  .metric-grid, .metric-grid.compact { grid-template-columns: 1fr; }
  .list-card-heading { align-items: start; flex-direction: column; gap: 10px; }
}
