:root {
  color-scheme: light;
  --ink: #111820;
  --muted: #5e6875;
  --line: #e2e7ec;
  --soft: #f5f7f8;
  --accent: #13885e;
  --accent-hover: #0b704c;
  --danger: #af2838;
  --danger-soft: #fff3f4;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; word-break: keep-all; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select { font: inherit; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
button, input, select { min-width: 0; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
input, select { width: 100%; border: 1px solid #cdd5de; border-radius: .25rem; background: #fff; color: var(--ink); min-height: 2.75rem; padding: .55rem .7rem; font-size: .9375rem; }
input[type="date"] { appearance: none; min-width: 0; max-width: 100%; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #51b98f; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: 2rem; line-height: 1.35; letter-spacing: -.04em; font-weight: 750; overflow-wrap: anywhere; }
h2 { font-size: 1.125rem; line-height: 1.5; letter-spacing: -.025em; font-weight: 700; overflow-wrap: anywhere; }
svg { display: block; }
.copy { white-space: pre-line; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: .8125rem; }
.skip-link { position: absolute; left: 1rem; top: -8rem; z-index: 5; padding: .6rem; background: #fff; }
.skip-link:focus { top: 1rem; }
.shell { width: min(100% - 4rem, 1120px); margin-inline: auto; min-width: 0; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; padding-block: 1rem; }
.brand { display: block; text-decoration: none; min-width: 0; flex: 1 1 7rem; }
.brand strong { font-size: 1rem; display: block; line-height: 1.4; letter-spacing: -.025em; }
.brand small { display: block; font-size: .6875rem; color: var(--muted); margin-top: .1rem; }
.text-button { border: 0; background: transparent; color: var(--ink); padding: .65rem 0 .65rem .5rem; font-size: .8125rem; flex-shrink: 0; }
.button { border: 1px solid var(--accent); border-radius: .25rem; background: var(--accent); color: #fff; padding: .6rem 1.35rem; min-height: 2.75rem; font-size: .9375rem; line-height: 1.5; font-weight: 650; }
.button:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.button-secondary { background: #fff; color: var(--accent); }
.button-secondary:hover:not(:disabled) { background: #edf8f2; color: var(--accent-hover); }
.dashboard { padding-block: 1.75rem 1.25rem; }
.page-intro { margin-bottom: 1.3rem; }
.page-intro p { color: var(--muted); margin-top: .5rem; font-size: .9375rem; }
.filters { display: grid; grid-template-columns: minmax(8rem, 1.1fr) minmax(9rem, 1fr) minmax(9rem, 1fr) auto; align-items: end; gap: .875rem; max-width: 850px; }
.field { min-width: 0; }
.field label { display: block; color: #424b58; font-size: .8125rem; font-weight: 600; margin-bottom: .35rem; }
.filter-note { margin-top: .65rem; color: var(--muted); font-size: .75rem; }
.data-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; color: var(--muted); font-size: .75rem; margin-block: 1.05rem .75rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); border: 1px solid var(--line); border-radius: .25rem; padding: 1.4rem .6rem; margin: 0 0 1.25rem; }
.metric { padding-inline: 1.25rem; min-width: 0; }
.metric + .metric { border-left: 1px solid #d2d9e0; }
.metric dt { color: #505c6b; font-size: .8125rem; font-weight: 600; }
.metric dd { margin: .25rem 0 0; font-size: 1.5rem; line-height: 1.35; font-weight: 750; letter-spacing: -.035em; overflow-wrap: anywhere; }
.panel { border: 1px solid var(--line); border-radius: .25rem; padding: 1rem 1.1rem; min-width: 0; margin-bottom: 1.25rem; }
.panel-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: .8rem; }
.legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .75rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: .3rem; }
.legend i { display: inline-block; width: 1rem; height: .15rem; background: var(--accent); }
.legend .play-line { background: #65788f; }
.chart { position: relative; min-width: 0; }
.chart svg { width: 100%; height: 13.125rem; overflow: visible; }
.chart text { fill: #66717e; font-family: inherit; font-size: .75rem; }
.chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem; color: var(--muted); font-size: .875rem; text-align: center; }
.chart-caption { color: var(--muted); font-size: .75rem; margin-top: .5rem; }
.daily-details { margin-top: .85rem; padding-top: .8rem; border-top: 1px solid var(--line); }
summary { cursor: pointer; color: #475465; font-size: .8125rem; width: fit-content; max-width: 100%; }
.daily-details[open] summary { margin-bottom: .75rem; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; font-size: .8125rem; font-variant-numeric: tabular-nums; }
th, td { padding: .65rem .75rem; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
th { color: #535f6d; font-weight: 600; background: var(--soft); }
th:first-child, td:first-child { text-align: left; }
tbody th { color: var(--ink); background: transparent; font-weight: 500; }
.numeric-table { min-width: 39rem; }
.numeric-table th, .numeric-table td { white-space: nowrap; }
.source-table { min-width: 30rem; }
.source-table th:not(:first-child), .source-table td { white-space: nowrap; }
.source-table th:first-child { min-width: 9rem; }
.source-name { max-width: 13rem; overflow-wrap: anywhere; }
.scroll-hint { display: none; font-size: .75rem; color: var(--muted); margin: .65rem 0 0; }
.lower-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; }
.lower-grid .panel { margin-bottom: 0; }
.empty-section { min-height: 9.5rem; display: grid; place-content: center; color: var(--muted); font-size: .875rem; text-align: center; padding: 1rem; }
.definitions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .4rem 1rem; margin: .8rem 0 0; font-size: .8125rem; }
.definitions dt { color: #3d4856; font-weight: 650; }
.definitions dd { color: var(--muted); margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.methodology-note { padding-top: .8rem; margin-top: .85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.notice { border: 1px solid var(--line); border-radius: .25rem; padding: .95rem 1rem; margin-top: 1rem; font-size: .875rem; }
.notice-error { color: var(--danger); background: var(--danger-soft); border-color: #f4cdd2; }
.notice strong { display: block; font-weight: 650; }
.notice p { margin-top: .15rem; }
.notice .button { margin-top: .75rem; font-size: .8125rem; min-height: 2.5rem; }
.loading { min-height: 18rem; display: grid; place-content: center; text-align: center; color: var(--muted); font-size: .875rem; }
.loading::before { content: ""; width: 1.4rem; height: 1.4rem; margin: 0 auto .8rem; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.site-footer { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-block: 1.1rem; color: var(--muted); font-size: .6875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .55rem 1rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.login-main { width: min(100% - 3rem, 360px); margin: clamp(2.5rem, 10vh, 7rem) auto 3rem; }
.login-main h1 { font-size: 1.625rem; }
.login-intro { margin-top: .5rem; color: var(--muted); font-size: .875rem; }
.login-form { display: grid; gap: 1rem; margin-top: 1.8rem; }
.login-form .button { width: 100%; margin-top: .25rem; }
.login-footer { width: min(100% - 3rem, 720px); margin-inline: auto; }
.policy { max-width: 760px; padding-block: 2rem 3rem; overflow-wrap: anywhere; }
.policy h1 { margin-bottom: 1rem; }
.policy h2 { margin-top: 2rem; margin-bottom: .65rem; }
.policy p { margin-block: .9rem; }
.policy .definitions { margin-block: 1.5rem; gap: .7rem 1.5rem; }
.policy-footer { border-top: 1px solid var(--line); padding-block: 1.25rem 2rem; color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.policy-footer nav { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; margin-bottom: 1.25rem; }
.policy-footer nav a { text-decoration: none; }
.policy-footer nav a:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .metrics { row-gap: 1.25rem; }
  .metric:nth-child(4) { border-left: 0; }
  .lower-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 2rem); }
  .dashboard { padding-top: 1.25rem; }
  h1 { font-size: 1.625rem; }
  .filters { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); padding: .9rem 0; row-gap: 1.2rem; border-width: 1px 0; border-radius: 0; }
  .metric { padding-inline: .8rem; }
  .metric:nth-child(odd) { border-left: 0; }
  .metric:nth-child(even) { border-left: 1px solid #d2d9e0; }
  .metric dd { font-size: 1.375rem; }
  .panel { padding: .9rem .85rem; }
  .chart svg { height: 10.9375rem; }
  .chart.is-empty svg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .chart-empty { position: static; min-height: 9rem; padding: 1rem .2rem; }
  .scroll-hint { display: block; }
  .definitions { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .definitions dd + dt { margin-top: .4rem; }
  .source-table { min-width: 30rem; }
  .data-meta { margin-top: .8rem; }
  .site-footer { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .loading::before { animation: none; } }
