:root {
  color-scheme: light;
  font-family: Inter, "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: #172235;
  background: #f3f5f9;
  --text: #172235;
  --muted: #617087;
  --border: #e2e7ef;
  --white: #fff;
  --teal: #087f78;
  --teal-light: #dcf3ee;
  --purple: #7053ce;
  --navy: #111c2d;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, canvas:focus-visible { outline: 3px solid #12a99c; outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); padding: 12px; z-index: 5; background: white; }
.skip-link:focus { transform: none; }
.shell { display: grid; grid-template-columns: 242px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 27px 16px 20px; background: var(--navy); color: #d7e1ef; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 6px 25px; text-decoration: none; }
.brand strong { display: block; color: #f4f7fd; font-size: 1rem; letter-spacing: -.025em; white-space: nowrap; }
.brand small { display: block; color: #a1afc3; margin-top: 4px; font-size: .78rem; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: flex; gap: 3px; justify-content: center; align-items: end; padding-bottom: 10px; background: #21b8a5; }
.brand-mark i { width: 3px; background: #102a31; border-radius: 2px; height: 8px; }
.brand-mark i:nth-child(2) { height: 12px; }.brand-mark i:nth-child(3) { height: 10px; }.brand-mark i:nth-child(4) { height: 17px; }
.sidebar nav { display: grid; gap: 5px; padding-top: 19px; border-top: 1px solid #293548; }
.sidebar nav a { color: #b4c0d2; border: 1px solid transparent; padding: 11px 12px; min-height: 44px; border-radius: 8px; font-size: .89rem; font-weight: 650; text-decoration: none; display: flex; align-items: center; gap: 11px; }
.sidebar nav a span { font: 1.18rem system-ui, sans-serif; width: 21px; text-align: center; line-height: 1; color: #a6b8cf; }
.sidebar nav a:hover { background: #1c293d; color: white; }
.sidebar nav a[aria-current="page"] { background: #1d3344; color: #e9fffa; border-color: #284652; }
.sidebar nav a[aria-current="page"] span { color: #56dfcb; }
.sidebar-foot { margin-top: auto; padding: 15px 8px 4px; border-top: 1px solid #293548; display: flex; align-items: flex-start; gap: 9px; color: #a8b7ca; font-size: .78rem; line-height: 1.75; }
.sidebar-foot b { color: #e0e7f1; font-weight: 600; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; margin-top: 7px; background: #30c8ad; }
.workspace { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px clamp(18px, 3vw, 44px); min-height: 64px; background: #fff; border-bottom: 1px solid var(--border); font-size: .85rem; font-weight: 650; }
.breadcrumb { color: #354157; }.breadcrumb span { margin-inline: 5px; color: #a0adbd; }
.top-right { display: flex; align-items: center; justify-content: end; gap: 13px; color: var(--muted); text-align: right; }
.quiet-button, .primary-button { transition: background .14s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 12px; text-decoration: none; white-space: nowrap; border: 1px solid #dbe3ec; background: white; color: #293750; border-radius: 8px; font-size: .86rem; font-weight: 650; }
.quiet-button:hover { background: #f1f6f9; }.primary-button { background: #087b73; color: white; border-color: #087b73; }.primary-button:hover { background: #076962; }
main { width: min(100%, 1510px); margin-inline: auto; padding: 34px clamp(18px, 3vw, 44px) 36px; flex: 1; outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 24px; }
h1, h2, h3, p { margin: 0; } h1 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.06; letter-spacing: -.055em; font-weight: 790; }
.page-heading p { color: var(--muted); font-size: 1rem; line-height: 1.65; margin-top: 10px; }
.range label { display: block; font-size: .80rem; font-weight: 650; color: var(--muted); margin-bottom: 5px; }
.range select, .raw-controls select { min-height: 40px; min-width: 134px; border: 1px solid #dbe3ec; border-radius: 8px; color: var(--text); background: #fff; padding: 6px 11px; font-size: .88rem; font-weight: 650; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.metric, .panel { background: #fff; border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 2px 4px #263c5b06; min-width: 0; }
.metric { position: relative; overflow: hidden; padding: 16px 16px 15px; min-height: 129px; }
.metric::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--tone, #11a292); }
.metric:nth-child(2n) { --tone: #7c64d7; }.metric:nth-child(3) { --tone: #4c75bc; }
.metric h2 { font-size: .83rem; font-weight: 730; color: #4f6076; line-height: 1.45; }
.metric .value { margin: 8px 0 5px; display: block; font-weight: 790; letter-spacing: -.04em; font-size: clamp(1.45rem, 2.65vw, 2.18rem); line-height: 1.1; }
.metric .detail { font-size: .79rem; color: var(--muted); line-height: 1.5; }
.metric-change { margin-top: 7px; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.metric-change strong { margin-inline-start: 3px; white-space: nowrap; font-weight: 760; }
.metric-change .up { color: #08776d; }
.metric-change .down { color: #ad3140; }
.metric-change .flat { color: #485873; }
.metrics:empty { display: none; }
.content-grid { display: grid; grid-template-columns: minmax(0, 2.45fr) minmax(255px, 1fr); gap: 16px; align-items: stretch; }
.stack { display: grid; align-content: start; gap: 16px; }
.panel { padding: 20px; }
.panel h2 { font-size: 1.19rem; letter-spacing: -.028em; line-height: 1.35; }.panel h3 { font-size: .95rem; }
.panel p, .panel li { color: var(--muted); line-height: 1.62; font-size: .88rem; }
.panel-sub { margin-top: 5px; }.panel-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.source-label { padding: 5px 8px; border-radius: 6px; color: #38526d; background: #eff4fa; white-space: nowrap; font-size: .79rem; font-weight: 650; }
.chart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; margin: 17px 0 11px; }
.segments { display: inline-flex; align-items: center; gap: 3px; background: #f0f3f7; border-radius: 8px; padding: 3px; flex-wrap: wrap; }
.segments:empty { display: none; }.segments button { min-height: 32px; border: 0; background: transparent; border-radius: 6px; padding: 5px 9px; color: #53627a; white-space: nowrap; font-size: .78rem; font-weight: 700; }
.segments button:hover { color: #11354a; }.segments button[aria-pressed="true"] { background: #fff; color: #13364a; box-shadow: 0 1px 3px #1b2c4b22; }
.chart-surface { position: relative; min-height: 280px; }.chart-surface canvas { display: block; width: 100%; height: 280px; touch-action: pan-y; }
.tooltip { position: absolute; z-index: 2; top: 8px; color: #f5f7fc; background: #132237; padding: 8px 10px; border-radius: 8px; font-size: .78rem; pointer-events: none; box-shadow: 0 5px 16px #17223532; max-width: calc(100% - 12px); }
.tooltip b, .tooltip span { display: block; line-height: 1.5; }.tooltip b { margin-bottom: 2px; }
.empty-chart { padding: 45px 10px; text-align: center; }.empty-chart[hidden] { display: none; }
.chart-surface canvas[hidden] { display: none; }.legend { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 3px; }
.legend span { font-size: .78rem; color: #4d5c73; display: inline-flex; align-items: center; gap: 6px; font-weight: 640; }
.legend i, .share-row i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--series); }
.chart-note { margin-top: 12px; }.source-list { margin-top: 12px; }
.source-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 12px 0; border-bottom: 1px solid #ecf0f5; }
.source-row:last-child { border-bottom: 0; padding-bottom: 0; }.source-row a { text-decoration: none; font-size: .9rem; font-weight: 720; }.source-row a:hover { text-decoration: underline; }
.source-row small { color: var(--muted); font-size: .78rem; line-height: 1.5; }.source-row small:last-child { grid-column: 1 / -1; }
.share-row { margin-top: 15px; }.share-row div:first-child { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; margin-bottom: 7px; gap: 9px; }.share-row span { font-weight: 650; }.share-row i { margin-right: 5px; }.share-track { height: 8px; background: #edf1f5; border-radius: 99px; overflow: hidden; }.share-track b { display: block; height: 100%; border-radius: inherit; background: var(--series); }
.wide { margin-top: 16px; }.table-scroll { overflow: auto; max-width: 100%; }.table-scroll table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .86rem; min-width: 480px; }
th, td { text-align: left; padding: 10px 9px; border-bottom: 1px solid #e8edf3; white-space: nowrap; } th { color: #52637b; background: #f5f7fa; font-size: .8rem; } tr:last-child td { border-bottom: 0; }
.lab-ranking { max-height: 485px; }
.lab-ranking th[scope="col"] { position: sticky; top: 0; }
.lab-ranking th[scope="row"] { background: #fff; color: var(--text); font-size: .86rem; }
.lab-ranking td:nth-child(n+3), .lab-ranking th:nth-child(n+3) { text-align: right; }
.lab-ranking td:last-child, .lab-ranking th:last-child { text-align: center; }
.lab-toggle { width: 17px; height: 17px; margin: 0; vertical-align: middle; accent-color: var(--teal); }
.model-picker { margin: 0 0 9px; gap: 12px; }
.model-picker select { min-width: min(245px, 80vw); max-width: 100%; }
.model-coverage { color: var(--muted); font-size: .86rem; margin-bottom: 16px; }
.model-metrics, .model-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.model-charts { gap: 16px; margin-bottom: 16px; }
.raw-layout { display: grid; gap: 17px; }.raw-controls { display: flex; flex-wrap: wrap; gap: 9px; align-items: end; margin-top: 13px; }.raw-controls label { font-size: .82rem; font-weight: 700; color: var(--muted); display: grid; gap: 6px; }.raw-controls + p { margin-top: 10px; }.upload { margin-top: 12px; max-width: 100%; color: var(--text); font-size: .86rem; }.upload::file-selector-button { margin-right: 9px; border: 1px solid #dbe3ec; background: #fff; border-radius: 7px; padding: 7px 10px; cursor: pointer; }.file-status { margin-top: 10px; min-height: 1.5em; }
.data-link { color: #05736a; text-underline-offset: 3px; }.note { color: #506277; border-left: 3px solid #69bbac; background: #eaf5f2; padding: 11px 13px; border-radius: 0 7px 7px 0; margin-bottom: 14px; font-size: .86rem; line-height: 1.6; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; padding: 15px clamp(18px, 3vw, 44px); gap: 8px; border-top: 1px solid var(--border); font-size: .77rem; color: #5c6d84; }
.loading { padding: 40px 0; color: var(--muted); }
@media (max-width: 1130px) { .shell { grid-template-columns: 208px minmax(0, 1fr); }.content-grid { grid-template-columns: minmax(0, 1fr); }.content-grid aside.stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 815px) { .shell { display: block; }.sidebar { position: static; padding: 13px 16px 11px; height: auto; }.brand { padding: 0 0 10px; }.brand-mark { width: 34px; height: 34px; flex-basis: 34px; padding-bottom: 8px; }.sidebar nav { display: flex; overflow: auto; padding: 7px 0 1px; }.sidebar nav a { white-space: nowrap; padding: 7px 9px; min-height: 39px; }.sidebar-foot { display: none; }.topbar { min-height: 54px; }main { padding-top: 23px; }.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 815px) { .model-charts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .top-right .quiet-button { display: none; }.topbar { font-size: .78rem; }.page-heading { display: block; }.range { margin-top: 12px; }.range label { display: inline; margin-right: 7px; }.metric { padding: 12px 11px; min-height: 108px; }.panel { padding: 13px; }.panel-top { flex-wrap: wrap; }.content-grid aside.stack { grid-template-columns: minmax(0, 1fr); }.chart-surface canvas { height: 232px; }.chart-surface { min-height: 232px; }.segments button { padding-inline: 7px; } }
