:root {
  color-scheme: light;
  --ink: #1a1e26;
  --muted: #5c6673;
  --line: #d7dde5;
  --surface: #ffffff;
  --canvas: #faf9f5;
  --accent: #0f766e;
  --accent-dark: #0b5a54;
  --accent-soft: #e3f0ee;
  --green: #2f7a4f;
  --amber: #b5720e;
  --rose: #b0416a;
  --shadow: 0 1px 2px rgba(20,30,45,.06), 0 4px 16px rgba(20,30,45,.06);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
.shell { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 60px; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: #fff; background: var(--accent); font-size: 15px; font-weight: 700; }
.topbar h1 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.trust-tag { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 3px 10px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent-dark); background: var(--accent-soft); font-size: 11.5px; font-weight: 600; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.lede { margin: 0 0 18px 46px; color: var(--muted); font-size: 13.5px; }
.steps { display: flex; gap: 6px; margin: 0 0 20px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 12.5px; }
.step span { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: #eef1f5; font-size: 11px; font-weight: 700; }
.step b { font-weight: 600; }
.step.active { border-color: var(--accent); color: var(--ink); }
.step.active span { color: #fff; background: var(--accent); }
.step-line { display: none; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.card-kicker { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h2 { margin: 10px 0 8px; font-size: 27px; letter-spacing: -.035em; }
.muted { margin: 0 0 26px; color: var(--muted); line-height: 1.55; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.upload-zone { position: relative; display: flex; min-height: 170px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--line); border-radius: 10px; background: #eef1f5; text-align: center; transition: .18s ease; }
.upload-zone:hover, .upload-zone:focus-within { border-color: var(--accent); background: var(--accent-soft); box-shadow: none; }
.upload-zone.has-file { border-style: solid; border-color: var(--green); background: #f1f8f4; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.disabled-zone { cursor: not-allowed; opacity: .55; }
.upload-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 10px; color: var(--accent); background: var(--accent-soft); font-size: 20px; font-weight: 500; }
.upload-title { font-size: 14px; font-weight: 700; }
.upload-hint, .file-name { color: var(--muted); font-size: 12px; }
.file-name { max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remove-file { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 11px; }
.remove-file:hover { border-color: var(--rose); color: var(--rose); }
.privacy-note { display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 9px; color: var(--ink); background: var(--accent-soft); font-size: 12px; line-height: 1.5; }
.privacy-note strong { color: var(--accent-dark); }
.lock-icon { color: var(--accent); font-size: 22px; line-height: 1; }
code { padding: 2px 5px; border-radius: 5px; color: var(--accent-dark); background: var(--accent-soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; }
.helper { color: var(--muted); font-size: 12px; }
.button { border: 1px solid var(--line); border-radius: 9px; padding: 9px 16px; cursor: pointer; font-weight: 650; transition: .18s ease; }
.button.primary { color: white; border-color: var(--accent); background: var(--accent); box-shadow: none; }
.button.primary:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 20px 4px; color: #9aa3b3; font-size: 11px; }
.step.complete { color: var(--green); }
.step.complete span { color: white; border-color: var(--green); background: var(--green); }
.button.secondary { color: var(--ink); border: 1px solid var(--line); background: white; }
.button.secondary:hover { border-color: var(--accent); color: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { color: var(--muted); background: #eef1f5; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.data-table th, .data-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.badge.warning { color: #896118; background: #fff5d7; }
.badge.success { color: #167653; background: #e4f7ee; }
.badge.danger { color: #a23f49; background: #ffebed; }
.mapping-box { margin-top: 20px; }
.section-label { margin-bottom: 9px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.confirm { display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.confirm input { margin-top: 2px; accent-color: var(--accent); }
.processing { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 13px; color: #46527b; border-radius: 10px; background: #f4f6ff; font-size: 12px; }
.spinner { width: 13px; height: 13px; border: 2px solid #cdd3ff; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-summary { display: flex; justify-content: space-between; gap: 14px; margin: 18px 0; padding: 14px 16px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12px; }
.result-summary strong { color: var(--ink); }
.grade { color: var(--accent); font-size: 17px; font-weight: 850; }
.export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.disclaimer { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
@media (max-width: 650px) { .shell { width: min(100% - 24px, 560px); padding-top: 16px; } .topbar h1 { font-size: 17px; } .trust-tag { font-size: 10px; } .lede { margin-left: 0; } .upload-grid { grid-template-columns: 1fr; } .steps { justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; } .step b { display: none; } .step-line { width: 28px; margin: 0 7px; } .card { border-radius: 10px; } footer { flex-direction: column; } .actions, .result-summary { align-items: stretch; flex-direction: column; } }
