@font-face {
  font-family: "SUIT";
  src: url("assets/fonts/SUIT-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #202c35;
  --muted: #596a76;
  --line: #d6dee3;
  --paper: #fff;
  --canvas: #f5f7f8;
  --blue: #155d78;
  --blue-hover: #10495f;
  --blue-soft: #edf5f7;
  --red: #9d2727;
  --red-soft: #fff1f0;
  --amber: #765300;
  --amber-soft: #fff8df;
  font-family: "SUIT", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, select { font: inherit; }
.shell { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 0 0 56px; }
.masthead { min-height: 58px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-size: 15px; font-weight: 800; text-decoration: none; letter-spacing: -.025em; }
.privacy-label { color: #355766; font-size: 13px; font-weight: 650; }
.privacy-label span { display: inline-block; width: 7px; height: 7px; margin: 0 6px 1px 0; border-radius: 50%; background: #278064; }
.intro { max-width: 690px; padding: 38px 0 26px; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 13px; font-weight: 750; }
h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); line-height: 1.28; letter-spacing: -.04em; }
.intro > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.workbench, .results { background: var(--paper); border: 1px solid var(--line); }
.workbench { padding: 22px 24px 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.mode-control { display: flex; align-items: center; gap: 10px; color: #344650; font-size: 13px; font-weight: 650; }
select { min-height: 39px; padding: 0 34px 0 10px; border: 1px solid #aebbc3; border-radius: 3px; color: var(--ink); background: white; }
.file-picker { min-height: 104px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px dashed #8599a4; background: #fbfcfd; cursor: pointer; }
.file-picker:hover, .file-picker.is-over { border-color: var(--blue); background: var(--blue-soft); }
.file-copy { display: grid; gap: 4px; }
.file-copy strong { font-size: 15px; }
.file-copy span { color: var(--muted); font-size: 13px; }
#csv-file { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.choose-button { padding: 9px 13px; border: 1px solid #9eafb8; border-radius: 3px; color: var(--ink); background: white; font-size: 13px; font-weight: 700; white-space: nowrap; }
.file-picker:focus-within, button:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #1780a5; outline-offset: 3px; }
.file-name { min-height: 20px; margin: 8px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.action-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.status { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.status.error { color: var(--red); }
.status.success { color: #176445; }
.button { min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 700; cursor: pointer; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.primary { color: white; background: var(--blue); }
.primary:not(:disabled):hover { background: var(--blue-hover); }
.secondary { border-color: #90a4ae; color: #174f65; background: white; }
.secondary:not(:disabled):hover { background: var(--blue-soft); }
.results { margin-top: 18px; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 14px; }
.result-head .eyebrow { margin-bottom: 4px; }
.summary { display: flex; flex-wrap: wrap; gap: 0; padding: 0 24px 16px; }
.metric { min-width: 140px; margin-right: 24px; padding-left: 12px; border-left: 2px solid #b9c8cf; }
.metric strong { display: block; font-size: 20px; line-height: 1.3; }
.metric span { color: var(--muted); font-size: 12px; }
.metric.errors { border-color: #ba4343; }
.metric.errors strong { color: var(--red); }
.metric.warnings { border-color: #ad8215; }
.metric.warnings strong { color: var(--amber); }
.truncated-note { margin: 0 24px 12px; color: var(--muted); font-size: 13px; }
.table-wrap { max-height: 520px; overflow: auto; border-top: 1px solid var(--line); }
table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 13px; border-bottom: 1px solid #e5eaed; text-align: left; vertical-align: top; }
td { overflow-wrap: anywhere; }
th:nth-child(1), td:nth-child(1) { width: 74px; }
th:nth-child(2), td:nth-child(2) { width: 64px; }
th:nth-child(3), td:nth-child(3) { width: 145px; }
th { position: sticky; top: 0; color: #4e616d; background: #f4f7f8; font-size: 12px; font-weight: 700; }
td:nth-child(2) { white-space: nowrap; }
td:nth-child(1) { white-space: nowrap; }
.badge { display: inline-block; min-width: 35px; color: var(--red); font-size: 12px; font-weight: 750; }
.badge.warning { color: var(--amber); }
.finding-title { display: block; margin-bottom: 3px; font-weight: 700; overflow-wrap: anywhere; }
.finding-detail { display: block; color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
.empty { padding: 20px; color: #176445; white-space: normal !important; }
.limitation { margin: 0; padding: 13px 24px 17px; color: var(--muted); font-size: 12px; line-height: 1.55; }
footer { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.55; }
footer p { margin: 0; }
footer a { color: #174f65; white-space: nowrap; }
.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: 620px) {
  .shell { width: calc(100% - 28px); padding-bottom: 32px; }
  .masthead { min-height: 52px; }
  .privacy-label { font-size: 11px; }
  .intro { padding: 27px 0 20px; }
  .intro > p:last-child { font-size: 14px; }
  .workbench { padding: 17px 15px 16px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 13px; }
  .mode-control { width: 100%; justify-content: space-between; }
  .mode-control select { flex: 1; max-width: 220px; }
  .file-picker { min-height: 91px; padding: 13px 12px; }
  .file-copy strong { font-size: 14px; }
  .file-copy span { font-size: 12px; }
  .choose-button { padding: 8px 10px; }
  .action-row { align-items: stretch; flex-direction: column; gap: 10px; }
  .button { min-height: 44px; }
  .result-head { align-items: flex-start; flex-direction: column; padding: 17px 15px 13px; }
  .result-head .button { width: 100%; }
  .summary { padding: 0 15px 14px; gap: 12px 0; }
  .metric { min-width: 42%; margin-right: 8%; }
  .truncated-note { margin-right: 15px; margin-left: 15px; }
  th, td { padding: 9px 8px; }
  th:nth-child(2), td:nth-child(2) { display: none; }
  th:nth-child(1), td:nth-child(1) { width: 58px; }
  th:nth-child(3), td:nth-child(3) { width: 90px; }
  .limitation { padding: 12px 15px 15px; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
