:root {
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
  color: #172033;
  background: #eef1f5;
  font-synthesis: none;
  --surface: rgba(255, 255, 255, 0.92);
  --line: rgba(32, 45, 67, 0.12);
  --muted: #697386;
  --ok: #177245;
  --ok-bg: #e8f7ef;
  --warning: #9a5b00;
  --warning-bg: #fff4d6;
  --failure: #b42318;
  --failure-bg: #ffebe9;
  --shadow: 0 18px 50px rgba(38, 49, 68, 0.08);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 20% 0%, #fff 0, transparent 32rem), #eef1f5; }
a { color: inherit; }
.site-head, .site-footer, main { width: min(1440px, calc(100% - 40px)); margin-inline: auto; }
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 18px; color: var(--muted); }
.site-head > div { display: flex; align-items: center; gap: 10px; color: #172033; }
.site-head p, .site-footer { font-size: 12px; letter-spacing: .06em; }
.mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border-radius: 10px; background: #172033; color: #fff; font-weight: 800; }
main { padding-bottom: 48px; }
.overview, .loading, .load-error { border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.overview { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 32px; padding: 36px; border-top: 5px solid var(--ok); }
.overview-warning { border-top-color: var(--warning); }
.overview-failure { border-top-color: var(--failure); }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 52px); line-height: 1.08; letter-spacing: -.04em; }
.overview p:not(.eyebrow), .load-error p { color: var(--muted); line-height: 1.6; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--warning-bg); color: var(--warning) !important; font-size: 13px; }
.overview-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.overview-stats div { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); }
.overview-stats dt, .metric dt { color: var(--muted); font-size: 11px; }
.overview-stats dd { margin: 6px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.tile { min-height: 265px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 28px rgba(38,49,68,.05); border-top: 4px solid var(--ok); }
.tile-warning { border-top-color: var(--warning); }
.tile-failure { border-top-color: var(--failure); }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tile-head > div { display: flex; gap: 7px; }
.badge, .status { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; background: #edf0f4; color: var(--muted); font-size: 11px; font-weight: 800; }
.badge-required { background: #e7ecf5; color: #30466d; }
.status-ok { background: var(--ok-bg); color: var(--ok); }
.status-warning { background: var(--warning-bg); color: var(--warning); }
.status-failure { background: var(--failure-bg); color: var(--failure); }
.source { font-size: 11px; color: var(--muted); }
.tile h2 { margin: 22px 0 10px; font-size: 20px; letter-spacing: -.02em; }
.summary { min-height: 66px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.metric { min-width: 0; padding: 10px; border-radius: 12px; background: #f4f6f8; }
.metric dd { margin: 4px 0 0; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.tile footer { display: grid; gap: 6px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.tile code, .load-error code { overflow-wrap: anywhere; }
.loading, .load-error { padding: 48px; }
.load-error { border-top: 5px solid var(--failure); }
.site-footer { padding: 0 0 28px; color: var(--muted); text-align: center; }

@media (max-width: 1120px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .overview { grid-template-columns: 1fr; padding: 26px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .site-head, .site-footer, main { width: min(100% - 24px, 1440px); }
  .site-head { align-items: flex-start; gap: 16px; }
  .site-head p { max-width: 46%; overflow-wrap: anywhere; text-align: right; }
  .overview { border-radius: 20px; }
  .overview-stats, .tiles { grid-template-columns: 1fr; }
  .tile { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media (prefers-color-scheme: dark) {
  :root { color: #edf2f8; background: #111722; --surface: rgba(25, 33, 47, .94); --line: rgba(255,255,255,.12); --muted: #aab4c3; }
  body { background: radial-gradient(circle at 20% 0%, #283247 0, transparent 32rem), #111722; }
  .site-head > div { color: #edf2f8; }
  .mark { background: #edf2f8; color: #172033; }
  .overview-stats div, .metric { background: rgba(255,255,255,.05); }
  .badge { background: rgba(255,255,255,.08); }
}
