:root {
  --ink: #172b28;
  --ink-soft: #49605b;
  --paper: #f3f1e9;
  --surface: #fbfaf5;
  --surface-strong: #ffffff;
  --line: #d8d9cf;
  --line-dark: #b8c0b8;
  --teal: #147d74;
  --teal-bright: #34b7a7;
  --teal-pale: #d8eee8;
  --orange: #e9713d;
  --orange-pale: #f7dfd2;
  --yellow: #e6c455;
  --danger: #c84d38;
  --shadow: 0 24px 60px rgba(26, 54, 49, .09);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 11% 10%, rgba(52, 183, 167, .09), transparent 21rem),
    radial-gradient(circle at 91% 40%, rgba(233, 113, 61, .07), transparent 25rem),
    var(--paper);
  font-family: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  padding: .7rem 1rem; color: white; background: var(--ink); border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.app-shell { width: min(1480px, 100%); min-height: 100vh; margin: 0 auto; }
.topbar {
  height: 84px;
  padding: 0 clamp(22px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(23, 43, 40, .13);
}

.brand { display: inline-flex; width: fit-content; align-items: center; gap: 12px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.brand-mark { position: relative; width: 37px; height: 37px; display: block; transform: rotate(-15deg); }
.brand-mark i { position: absolute; display: block; border: 2px solid var(--teal); border-radius: 50% 45% 55% 50%; }
.brand-mark i:nth-child(1) { inset: 2px 10px 10px 2px; }
.brand-mark i:nth-child(2) { inset: 8px 3px 3px 9px; border-color: var(--orange); }
.brand-mark i:nth-child(3) { width: 7px; height: 7px; left: 15px; top: 15px; border: 0; background: var(--ink); }
.brand > span:last-child { display: grid; line-height: 1.05; }
.brand strong { font-size: 18px; letter-spacing: -.035em; }
.brand small { margin-top: 5px; color: var(--ink-soft); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

.primary-nav { display: flex; align-self: stretch; gap: 34px; }
.nav-item { position: relative; border: 0; padding: 2px 0 0; color: #687873; background: none; font-size: 14px; font-weight: 650; cursor: pointer; }
.nav-item::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 0; height: 3px; background: var(--teal); transform: translateX(-50%); transition: width .2s ease; }
.nav-item:hover, .nav-item.is-active { color: var(--ink); }
.nav-item.is-active::after { width: 100%; }
.service-status { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #a1aaa7; box-shadow: 0 0 0 4px rgba(161,170,167,.15); }
.service-status.is-ready .status-dot { background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(52,183,167,.14); }
.service-status.is-error .status-dot { background: var(--danger); box-shadow: 0 0 0 4px rgba(200,77,56,.14); }

main { min-height: calc(100vh - 164px); }
.view { animation: view-in .35s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hero-grid {
  min-height: 435px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
  padding: 68px clamp(22px, 7vw, 105px) 52px;
}
.eyebrow, .panel-kicker { margin: 0 0 16px; color: var(--teal); font-size: 11px; font-weight: 850; letter-spacing: .17em; }
.eyebrow span { display: inline-grid; place-items: center; width: 27px; height: 27px; margin-right: 10px; color: var(--surface); background: var(--ink); border-radius: 50%; letter-spacing: 0; }
h1, h2, p { overflow-wrap: break-word; }
h1 { margin: 0; font-size: clamp(44px, 6vw, 82px); line-height: 1.04; letter-spacing: -.065em; font-weight: 760; }
h1 em { color: var(--teal); font-style: normal; font-weight: 500; }
.hero-description, .section-heading > p:last-child { max-width: 610px; margin: 28px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 34px; }
.button { min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 14px; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { color: white; background: var(--ink); box-shadow: 0 12px 24px rgba(23,43,40,.14); }
.button-primary:hover:not(:disabled) { background: var(--teal); box-shadow: 0 14px 28px rgba(20,125,116,.18); }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button span[aria-hidden] { margin-left: 18px; }
.text-link { color: var(--ink); text-underline-offset: 6px; font-size: 13px; font-weight: 800; }

.scope-card { position: relative; min-height: 292px; overflow: hidden; color: white; background: var(--ink); border-radius: 30px; box-shadow: var(--shadow); }
.scope-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,.04)); pointer-events: none; }
.scope-orbit { position: absolute; width: 240px; height: 240px; right: -25px; top: -35px; }
.orbit, .egg-core { position: absolute; border-radius: 50%; }
.orbit-one { inset: 25px; border: 1px solid rgba(95, 227, 210, .25); }
.orbit-two { inset: 55px; border: 1px dashed rgba(255,255,255,.18); }
.egg-core { width: 66px; height: 84px; left: 87px; top: 76px; background: var(--orange); border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; transform: rotate(15deg); box-shadow: 0 0 50px rgba(233,113,61,.4); }
.egg-core::after { content: ""; position: absolute; width: 18px; height: 30px; left: 14px; top: 12px; background: rgba(255,255,255,.22); border-radius: 50%; transform: rotate(28deg); }
.scope-content { position: absolute; left: 28px; right: 28px; bottom: 25px; z-index: 2; }
.scope-label { color: var(--teal-bright); font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.scope-content strong { display: block; margin-top: 5px; font-size: 25px; letter-spacing: -.04em; }
.scope-content p { margin: 4px 0 0; color: #aec0bc; font-size: 12px; }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(251,250,245,.5); }
.report-state-notice { display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: center; margin: 0 clamp(22px, 4vw, 58px) 18px; padding: 12px 15px; color: #65483c; background: #f4ded2; border: 1px solid #e4bba6; border-radius: 13px; font-size: 10px; }
.report-state-notice > span { display: grid; place-items: center; width: 25px; height: 25px; color: white; background: #a84220; border-radius: 50%; font-weight: 900; }
.report-state-notice p { margin: 0; }
.report-state-notice strong, .report-state-notice p span { display: block; }
.report-state-notice p span { margin-top: 1px; }
.metric-card { position: relative; min-height: 174px; padding: 25px clamp(22px, 3vw, 44px); border-right: 1px solid var(--line); }
.metric-card:last-child { border-right: 0; }
.metric-index { display: block; color: #7b8b87; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.metric-card strong { display: block; margin-top: 10px; font-size: 42px; line-height: 1; letter-spacing: -.06em; }
.metric-card sup { margin-left: 3px; font-size: 17px; }
.metric-card p { margin: 9px 0 2px; font-size: 13px; font-weight: 800; }
.metric-card small { color: #82908d; font-size: 11px; }
.accent-card::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--orange); }
.accent-card strong { color: var(--orange); }

.content-grid, .validation-grid, .settings-grid, .operations-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .85fr); gap: 20px; padding: 20px clamp(22px, 4vw, 58px) 0; }
.panel { background: var(--surface); border: 1px solid rgba(23,43,40,.11); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(26,54,49,.035); }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px 30px 18px; }
.panel-header.compact { padding-bottom: 12px; }
.panel-header h2, .table-head h2, .update-flow h2, .operations-grid h2, .preflight-card h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.panel-kicker { margin-bottom: 5px; font-size: 9px; }
.chart-legend { display: flex; gap: 18px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.chart-legend span, .band-key span { display: inline-flex; align-items: center; gap: 7px; }
.legend-line { display: inline-block; width: 18px; height: 2px; }
.normal-line { background: var(--teal); }
.abnormal-line { background: var(--orange); }
.chart-wrap { position: relative; height: 350px; padding: 0 16px; }
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #84928f; font-size: 12px; }
.band-key { display: flex; align-items: center; gap: 18px; padding: 7px 30px 24px; color: var(--ink-soft); font-size: 10px; }
.band-key small { margin-left: auto; color: #8c9895; }
.band-swatch { width: 10px; height: 10px; border-radius: 3px; }
.baseline-swatch { background: rgba(52,183,167,.24); border: 1px solid rgba(20,125,116,.34); }
.signal-swatch { background: rgba(233,113,61,.2); border: 1px solid rgba(233,113,61,.34); }

.rule-panel { padding-bottom: 23px; }
.model-badge, .ready-badge { padding: 7px 10px; color: var(--teal); background: var(--teal-pale); border-radius: 20px; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.formula-card { margin: 7px 26px 20px; padding: 20px; color: white; background: var(--ink); border-radius: 17px; }
.formula-name { display: block; margin-bottom: 11px; color: var(--teal-bright); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.formula { display: grid; justify-items: center; width: fit-content; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.formula i { display: block; width: 100%; height: 1px; margin: 5px 0; background: rgba(255,255,255,.48); }
.threshold-rule { margin: 0 26px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.threshold-rule > span { color: var(--ink-soft); font-size: 11px; font-weight: 750; }
.threshold-rule > strong { float: right; color: var(--orange); font-size: 24px; letter-spacing: -.04em; }
.threshold-rule p { clear: both; margin: 13px 0 0; color: var(--ink-soft); font-size: 11px; }
.reason-steps { display: grid; gap: 13px; margin: 20px 26px 0; padding: 0; list-style: none; }
.reason-steps li { display: grid; grid-template-columns: 27px 1fr; gap: 10px; align-items: start; }
.reason-steps li > span { display: grid; place-items: center; width: 26px; height: 26px; color: var(--teal); background: var(--teal-pale); border-radius: 50%; font-size: 10px; font-weight: 900; }
.reason-steps strong { display: block; font-size: 11px; }
.reason-steps p { margin: 1px 0 0; color: #72827e; font-size: 10px; }

.validation-grid { grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); padding-bottom: 20px; }
.distribution-chart { position: relative; min-height: 158px; margin: 5px 30px 0; border-bottom: 1px solid var(--line-dark); }
.distribution-axis { position: absolute; left: 0; right: 0; bottom: -22px; display: flex; justify-content: space-between; color: #85918e; font-size: 9px; }
.distribution-threshold { position: absolute; top: 0; bottom: 0; width: 1px; border-left: 1px dashed var(--orange); }
.distribution-threshold::before { content: "T"; position: absolute; top: -4px; left: -7px; display: grid; place-items: center; width: 15px; height: 15px; color: white; background: var(--orange); border-radius: 50%; font-size: 7px; font-weight: 900; }
.distribution-row { position: absolute; left: 0; right: 0; height: 50%; }
.distribution-row.normal { top: 3px; border-bottom: 1px dashed rgba(23,43,40,.09); }
.distribution-row.abnormal { top: 50%; }
.distribution-row-label { position: absolute; left: 0; top: 10px; color: var(--ink-soft); font-size: 9px; font-weight: 800; }
.distribution-point { position: absolute; top: 33px; width: 11px; height: 11px; border: 2px solid var(--surface); border-radius: 50%; transform: translateX(-50%); box-shadow: 0 2px 6px rgba(0,0,0,.14); }
.distribution-row.normal .distribution-point { background: var(--teal); }
.distribution-row.abnormal .distribution-point { background: var(--orange); }
.gap-caption { margin: 30px 30px 24px; color: var(--ink-soft); font-size: 11px; }
.gap-caption b { color: var(--ink); }
.micro-note, .point-count { color: #87938f; font-size: 9px; }
.icon-button { padding: 7px 11px; border: 1px solid var(--line); background: transparent; border-radius: 9px; font-size: 10px; font-weight: 800; cursor: pointer; }
.confusion-layout { position: relative; margin: 2px 30px 0; padding-left: 23px; }
.confusion-axis { position: absolute; left: -1px; top: 57%; color: #899591; font-size: 9px; transform: rotate(-90deg); }
.confusion-matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.matrix-label { padding-bottom: 3px; color: #7c8b87; text-align: center; font-size: 9px; }
.matrix-cell { min-height: 63px; display: grid; place-content: center; text-align: center; background: #ecece5; border-radius: 11px; }
.matrix-cell.correct { background: var(--teal-pale); }
.matrix-cell.abnormal-cell { background: var(--orange-pale); }
.matrix-cell strong { font-size: 21px; line-height: 1; }
.matrix-cell small { margin-top: 6px; color: #71807c; font-size: 8px; }
.validation-notice { margin: 18px 30px 24px; padding: 10px 12px; color: #7d6458; background: #f8eee5; border-radius: 9px; font-size: 9px; }
.validation-detail { margin: 0 clamp(22px, 4vw, 58px) 30px; padding: 25px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.table-head > span { color: var(--ink-soft); font-size: 10px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: #75847f; font-size: 9px; letter-spacing: .05em; }
.table-status { display: inline-flex; padding: 3px 7px; color: var(--teal); background: var(--teal-pale); border-radius: 10px; font-size: 8px; font-weight: 900; }

.section-heading { padding: 68px clamp(22px, 7vw, 105px) 42px; border-bottom: 1px solid var(--line); }
.section-heading h1 { font-size: clamp(43px, 5vw, 68px); }
.predict-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 20px; padding: 28px clamp(22px, 7vw, 105px); }
.upload-card, .preflight-card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.drop-zone { min-height: 285px; display: grid; place-items: center; align-content: center; border: 1.5px dashed #9bb0aa; border-radius: 18px; background: linear-gradient(145deg, rgba(216,238,232,.42), rgba(255,255,255,.25)); cursor: pointer; transition: border .2s, background .2s, transform .2s; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--teal); background: var(--teal-pale); transform: translateY(-2px); }
.drop-zone:focus-within { outline: 3px solid rgba(20,125,116,.38); outline-offset: 3px; border-color: var(--teal); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { position: relative; width: 50px; height: 54px; margin-bottom: 15px; border: 2px solid var(--teal); border-radius: 13px 13px 16px 16px; }
.upload-icon::before { content: "CSV"; position: absolute; left: 8px; bottom: 7px; color: var(--teal); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.upload-icon i:first-child { position: absolute; left: 23px; top: 8px; width: 2px; height: 18px; background: var(--orange); }
.upload-icon i:last-child { position: absolute; left: 18px; top: 8px; width: 12px; height: 12px; border-left: 2px solid var(--orange); border-top: 2px solid var(--orange); transform: rotate(45deg); }
.drop-zone strong { font-size: 17px; letter-spacing: -.03em; }
.drop-zone p { margin: 4px 0 12px; color: var(--ink-soft); font-size: 12px; }
.drop-zone small { padding: 4px 9px; color: #768681; background: white; border-radius: 11px; font-size: 9px; }
.selected-file { grid-template-columns: 42px 1fr 30px; align-items: center; gap: 12px; margin-top: 14px; padding: 11px 13px; background: #ecefe9; border-radius: 12px; }
.selected-file:not([hidden]) { display: grid; }
.file-glyph { display: grid; place-items: center; width: 40px; height: 40px; color: white; background: var(--teal); border-radius: 9px; font-size: 8px; font-weight: 900; }
.selected-file strong, .selected-file small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-file strong { font-size: 11px; }
.selected-file small { color: #778680; font-size: 9px; }
.selected-file button { border: 0; color: #74827e; background: transparent; font-size: 21px; cursor: pointer; }
.analyze-button { width: 100%; margin-top: 14px; }
.analyze-button.is-loading .button-label { opacity: 0; }
.button-loader { display: none; width: 18px; height: 18px; margin: 0 !important; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.analyze-button.is-loading .button-loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.privacy-note { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 13px; color: #677a75; background: rgba(216,238,232,.45); border-radius: 11px; }
.privacy-note > span { color: var(--teal); font-size: 24px; }
.privacy-note p { margin: 0; font-size: 9px; }
.privacy-note strong { display: block; color: var(--ink); font-size: 10px; }
.preflight-card { padding: 30px; color: white; background: var(--ink); border: 0; }
.preflight-card h2 { font-size: 22px; }
.check-list { display: grid; gap: 20px; margin: 28px 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 11px; }
.check-list i { display: grid; place-items: center; width: 26px; height: 26px; color: var(--teal-bright); background: rgba(52,183,167,.13); border-radius: 50%; font-style: normal; font-size: 10px; }
.check-list strong, .check-list span { display: block; }
.check-list strong { font-size: 11px; }
.check-list span { color: #a9bbb7; font-size: 9px; }
.scope-warning { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 13px; color: #d6c0b6; background: rgba(233,113,61,.12); border: 1px solid rgba(233,113,61,.18); border-radius: 11px; font-size: 9px; }
.scope-warning > span { display: grid; place-items: center; width: 22px; height: 22px; color: var(--orange); border: 1px solid var(--orange); border-radius: 50%; font-weight: 900; }
.scope-warning p { margin: 0; }

.result-section { padding: 4px clamp(22px, 4vw, 58px) 35px; }
.result-hero { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 27px 34px; color: white; background: var(--ink); border-radius: var(--radius); }
.result-hero.is-abnormal { background: #3c2b27; }
.result-title-row { display: flex; align-items: center; gap: 12px; }
.result-title-row h2 { margin: 0; font-size: 35px; letter-spacing: -.05em; }
.result-title-row span { padding: 5px 9px; color: var(--teal-bright); background: rgba(52,183,167,.12); border-radius: 12px; font-size: 9px; font-weight: 850; }
.result-hero.is-abnormal .result-title-row span { color: #ffad85; background: rgba(233,113,61,.15); }
.result-copy > p:not(.panel-kicker) { margin: 7px 0 4px; color: #b5c4c1; font-size: 11px; }
.result-file { color: #869b96; font-size: 9px; }
.result-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.result-model { color: #a9bbb7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; }
.score-gauge { --score: 0; display: grid; grid-template-columns: 76px auto; align-items: center; gap: 13px; }
.score-gauge > div { position: relative; width: 76px; height: 76px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle at center, var(--ink) 57%, transparent 59%), conic-gradient(var(--teal-bright) calc(var(--score) * 1%), rgba(255,255,255,.12) 0); }
.result-hero.is-abnormal .score-gauge > div { background: radial-gradient(circle at center, #3c2b27 57%, transparent 59%), conic-gradient(var(--orange) calc(var(--score) * 1%), rgba(255,255,255,.12) 0); }
.score-gauge strong { font-size: 20px; line-height: 1; }
.score-gauge small { color: #8da19c; font-size: 8px; }
.score-gauge > span { max-width: 55px; color: #a7bab5; font-size: 9px; font-weight: 700; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr); gap: 20px; margin-top: 20px; }
.result-chart-wrap { height: 315px; }
.evidence-panel { padding-bottom: 24px; }
.evidence-primary { margin: 6px 27px 20px; }
.evidence-primary > span { color: var(--ink-soft); font-size: 10px; }
.evidence-primary > strong { float: right; font-size: 25px; line-height: 1; }
.threshold-track { position: relative; clear: both; height: 6px; margin-top: 24px; background: linear-gradient(90deg, var(--teal), #dfd6aa 50%, var(--orange)); border-radius: 6px; }
.threshold-track i { position: absolute; left: 50%; top: -5px; width: 2px; height: 16px; background: var(--ink); }
.threshold-track b { position: absolute; left: 50%; top: -4px; width: 14px; height: 14px; background: white; border: 3px solid var(--ink); border-radius: 50%; transform: translateX(-50%); transition: left .4s ease; }
.track-labels { display: flex; justify-content: space-between; margin-top: 8px; color: #8b9693; font-size: 7px; }
.track-labels span:nth-child(2) { color: var(--ink); font-weight: 800; }
.evidence-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 27px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.evidence-stats > div { padding: 12px 10px; border-right: 1px solid var(--line); }
.evidence-stats > div:last-child { border-right: 0; }
.evidence-stats span, .evidence-stats strong, .evidence-stats small { display: block; }
.evidence-stats span { color: #73817d; font-size: 8px; }
.evidence-stats strong { margin: 4px 0; font-size: 14px; }
.evidence-stats small { color: #95a09d; font-size: 7px; }
.explanation-list { display: grid; gap: 8px; margin: 18px 27px 0; padding: 0; list-style: none; }
.explanation-list li { position: relative; padding-left: 15px; color: var(--ink-soft); font-size: 9px; }
.explanation-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; background: var(--teal); border-radius: 50%; }
.result-notice { margin: 13px 0 0; color: #7b6358; background: #f8e9df; border-radius: 9px; padding: 10px 13px; font-size: 9px; }

.settings-heading { background: linear-gradient(110deg, rgba(20,125,116,.06), transparent 50%); }
.settings-grid { grid-template-columns: 1fr 1fr; padding-top: 28px; }
.active-model-card, .config-card { padding-bottom: 28px; }
.ready-badge { display: inline-flex; align-items: center; gap: 6px; }
.ready-badge i { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.ready-badge.is-degraded { color: var(--danger); background: var(--orange-pale); }
.ready-badge.is-degraded i { background: var(--danger); }
.model-identity { display: grid; grid-template-columns: 65px 1fr; gap: 16px; align-items: center; margin: 6px 30px 24px; }
.model-cube { position: relative; width: 58px; height: 58px; display: grid; place-items: center; background: var(--ink); border-radius: 17px; transform: rotate(4deg); }
.model-cube::before, .model-cube::after, .model-cube span { content: ""; position: absolute; border: 1px solid var(--teal-bright); border-radius: 50%; }
.model-cube::before { width: 32px; height: 18px; }
.model-cube::after { width: 18px; height: 32px; }
.model-cube span { width: 7px; height: 7px; background: var(--orange); border: 0; }
.model-identity strong, .model-identity span { display: block; }
.model-identity strong { font-size: 17px; letter-spacing: -.03em; }
.model-identity span { color: var(--teal); font-family: ui-monospace, monospace; font-size: 9px; }
.model-identity p { margin: 5px 0 0; color: var(--ink-soft); font-size: 10px; }
.model-properties { margin: 0 30px; border-top: 1px solid var(--line); }
.model-properties > div { display: grid; grid-template-columns: 110px 1fr; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.model-properties dt { color: #778783; }
.model-properties dd { margin: 0; overflow-wrap: anywhere; text-align: right; font-family: ui-monospace, monospace; font-weight: 700; }
.config-path { color: var(--ink-soft); font-family: ui-monospace, monospace; font-size: 9px; }
.code-window { margin: 8px 30px 16px; overflow: hidden; background: #142622; border-radius: 15px; box-shadow: 0 15px 30px rgba(23,43,40,.13); }
.code-dots { display: flex; gap: 5px; padding: 12px 14px; background: rgba(255,255,255,.04); }
.code-dots i { width: 6px; height: 6px; background: #566b66; border-radius: 50%; }
.code-dots i:first-child { background: var(--orange); }
.code-window pre { margin: 0; padding: 10px 22px 24px; color: #cddbd8; font-size: 10px; line-height: 1.8; overflow-x: auto; }
.code-window span { color: #75dacd; }
.code-window b { color: #f3b18e; font-weight: 500; }
.code-window em { color: #ead781; font-style: normal; }
.config-caption { margin: 0 30px; color: var(--ink-soft); font-size: 10px; }
.update-flow { margin: 20px clamp(22px, 4vw, 58px); padding: 28px 31px; color: white; background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.update-flow header { display: flex; align-items: flex-start; justify-content: space-between; }
.update-flow header > span { padding: 6px 10px; color: var(--teal-bright); background: rgba(52,183,167,.12); border-radius: 12px; font-size: 9px; font-weight: 800; }
.update-flow ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.update-flow li { display: grid; grid-template-columns: 31px 1fr; gap: 11px; padding-right: 20px; border-right: 1px solid rgba(255,255,255,.1); }
.update-flow li:last-child { border-right: 0; }
.update-flow li > span { color: var(--orange); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 800; }
.update-flow strong { font-size: 12px; }
.update-flow p { min-height: 32px; margin: 4px 0 9px; color: #9eb2ad; font-size: 9px; }
.update-flow code { color: var(--teal-bright); font-size: 8px; }
.operations-grid { grid-template-columns: 1fr 1fr; padding-top: 0; padding-bottom: 34px; }
.operations-grid > article { padding: 27px 30px; }
.contract-list, .limitation-card ul { margin: 20px 0 0; padding: 0; list-style: none; }
.contract-list li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.contract-list span { color: var(--teal); font-family: ui-monospace, monospace; }
.contract-list b { text-align: right; }
.limitation-card ul { display: grid; gap: 10px; }
.limitation-card li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: 10px; }
.limitation-card li::before { content: "!"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 13px; height: 13px; color: white; background: var(--orange); border-radius: 50%; font-size: 7px; font-weight: 900; }

footer { min-height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 5vw, 72px); color: #73827e; border-top: 1px solid var(--line); font-size: 10px; }
footer b { color: var(--teal); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: min(390px, calc(100vw - 48px)); padding: 13px 16px; color: white; background: #432d28; border-left: 4px solid var(--orange); border-radius: 10px; box-shadow: var(--shadow); font-size: 11px; animation: toast-in .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .primary-nav { position: fixed; z-index: 20; left: 50%; bottom: 14px; transform: translateX(-50%); height: 56px; align-items: center; gap: 5px; padding: 5px; background: rgba(23,43,40,.96); border-radius: 18px; box-shadow: 0 14px 35px rgba(0,0,0,.22); }
  .nav-item { align-self: stretch; padding: 0 15px; color: #9db0ab; border-radius: 13px; font-size: 11px; white-space: nowrap; }
  .nav-item.is-active { color: white; background: rgba(255,255,255,.09); }
  .nav-item::after { display: none; }
  .hero-grid, .content-grid, .validation-grid, .predict-grid, .result-grid, .settings-grid, .operations-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 48px; }
  .scope-card { min-height: 230px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-card:nth-child(2) { border-right: 0; }
  .metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .update-flow ol { grid-template-columns: 1fr; }
  .update-flow li { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding: 0 0 16px; }
  footer { padding-bottom: 85px; }
}

@media (max-width: 560px) {
  .topbar { height: 70px; padding-inline: 18px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand small { display: none; }
  .service-status { font-size: 10px; }
  .hero-grid, .section-heading { padding-inline: 20px; }
  .hero-grid { min-height: 0; gap: 30px; }
  h1 { font-size: 43px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 15px; }
  .metric-card { min-height: 144px; padding: 21px 20px; }
  .metric-card strong { font-size: 33px; }
  .content-grid, .validation-grid, .predict-grid, .settings-grid, .operations-grid, .result-section { padding-left: 12px; padding-right: 12px; }
  .panel-header { padding: 22px 20px 14px; }
  .chart-legend { flex-direction: column; gap: 5px; }
  .chart-wrap { height: 280px; padding-inline: 5px; }
  .band-key { align-items: flex-start; flex-wrap: wrap; padding-inline: 20px; }
  .band-key small { width: 100%; margin-left: 0; }
  .result-hero { align-items: flex-start; flex-direction: column; }
  .score-gauge { align-self: flex-end; }
  .evidence-stats { grid-template-columns: 1fr; }
  .evidence-stats > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .model-properties > div { grid-template-columns: 85px 1fr; }
  .update-flow { margin-inline: 12px; }
  .update-flow header { gap: 12px; flex-direction: column; }
  .primary-nav { width: calc(100% - 24px); justify-content: space-around; }
  .nav-item { flex: 1; padding-inline: 5px; }
  .settings-grid > *, .operations-grid > *, .content-grid > *, .validation-grid > *, .result-grid > * { min-width: 0; }
  .code-window, .code-window pre { max-width: 100%; }
  .model-properties dd { min-width: 0; }
}

/* 작은 보조 문구도 WCAG AA 대비를 확보한다. */
.metric-index,
.metric-card small,
.chart-loading,
.band-key small,
.micro-note,
.point-count,
.distribution-axis,
.confusion-axis,
.matrix-label,
.table-head > span,
.drop-zone small,
.selected-file small,
.track-labels,
.evidence-stats span,
.evidence-stats small,
.model-properties dt,
footer { color: #586b66; }
.validation-notice { color: #60483d; }
.privacy-note { color: #4f635e; }
.result-file { color: #a9bbb7; }
.predict-grid > *, .selected-file > div:nth-child(2) { min-width: 0; }
.model-badge, .ready-badge { color: #0d625b; }
.threshold-rule > strong { color: #a84220; }
.reason-steps p { color: #586b66; }
.matrix-cell small { color: #455b56; }
.preflight-card .panel-kicker, .result-hero .panel-kicker { color: #70dacc; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
