:root {
  color-scheme: light;
  --ink: #17231f;
  --muted: #60716a;
  --line: #cfdcd5;
  --line-strong: #aebfb6;
  --paper: #ffffff;
  --wash: #f3f7f4;
  --accent: #12684f;
  --accent-dark: #0b4b39;
  --accent-soft: #dff2e9;
  --warning: #8a5a00;
  --warning-soft: #fff4d6;
  --danger: #a43d36;
  --danger-soft: #fff0ee;
  --shadow: 0 22px 70px rgba(24, 60, 48, 0.10);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--wash); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background:
  radial-gradient(circle at 10% -10%, rgba(130, 194, 166, .28), transparent 30rem),
  linear-gradient(180deg, #f7faf8 0%, #edf4f0 100%);
  min-height: 100vh;
}
button, select, input { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(174,191,182,.75); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; letter-spacing: -.01em; }
.brand-mark { width: 31px; height: 31px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 5px; border: 1px solid var(--accent); border-radius: 9px; transform: rotate(-4deg); }
.brand-mark i { display: block; background: var(--accent); border-radius: 2px; }
.header-meta { display: flex; align-items: center; gap: 12px; }
.language-switcher { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); }
.language-switcher a { padding: 6px 10px; border-radius: 999px; text-decoration: none; font-size: .78rem; font-weight: 700; color: var(--muted); }
.language-switcher a[aria-current="page"] { color: var(--ink); background: white; box-shadow: 0 1px 5px rgba(20,50,40,.1); }
.privacy-badge { display: inline-flex; gap: 8px; align-items: center; color: var(--accent-dark); font-size: .82rem; font-weight: 700; padding: 8px 12px; background: rgba(223,242,233,.82); border-radius: 999px; }
.privacy-dot { width: 8px; height: 8px; background: #23a26d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(35,162,109,.12); }
main { padding: 68px 0 60px; }
.hero { max-width: 900px; margin-bottom: 42px; }
.eyebrow, .step-label { margin: 0 0 10px; color: var(--accent); text-transform: uppercase; font-size: .74rem; letter-spacing: .16em; font-weight: 850; }
h1 { margin: 0; max-width: 830px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .95; font-weight: 520; letter-spacing: -.055em; }
.hero-copy { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.65; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 26px 0 0; list-style: none; }
.trust-list li { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #45564f; background: rgba(255,255,255,.66); font-size: .82rem; font-weight: 700; }
.workspace-card, .repair-card, .plan-card { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 25px; padding: 28px; box-shadow: var(--shadow); margin-bottom: 22px; }
.section-heading, .options-heading, .results-heading, .preview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: 1.22rem; }
.section-note, .options-heading > p, .preview-heading > p, .results-heading p { margin: 4px 0 0; color: var(--muted); max-width: 440px; line-height: 1.5; }
.small-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.text-button { border: 0; background: transparent; color: var(--accent); font-weight: 800; padding: 8px; }
.text-button.danger { color: var(--danger); }
.text-button:disabled { opacity: .4; cursor: default; }
.file-drop { min-height: 138px; margin-top: 22px; border: 1.5px dashed var(--line-strong); border-radius: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 24px; background: #fbfdfb; transition: border-color .18s, background .18s, transform .18s; }
.file-drop:hover { border-color: var(--accent); background: #f4faf6; transform: translateY(-1px); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-dark); font-size: .74rem; font-weight: 900; letter-spacing: .06em; }
.file-copy { display: grid; gap: 7px; min-width: 0; }
.file-copy strong { font-size: 1.05rem; }
.file-copy span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-action { padding: 10px 15px; background: var(--ink); color: white; border-radius: 10px; font-weight: 800; }
.status-message { margin-top: 16px; min-height: 48px; display: flex; align-items: center; border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 12px 15px; border-radius: 4px 12px 12px 4px; color: var(--accent-dark); line-height: 1.45; }
.status-message[data-type="warning"] { border-color: var(--warning); background: var(--warning-soft); color: #684400; }
.status-message[data-type="error"] { border-color: var(--danger); background: var(--danger-soft); color: #7d2d28; }
.interpretation { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.interpretation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.field-card { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--wash); }
.field-card > span, .field-card small { color: var(--muted); font-size: .78rem; }
.field-card label { font-weight: 800; font-size: .84rem; margin-top: 4px; }
select { width: 100%; min-height: 43px; padding: 8px 34px 8px 11px; border: 1px solid var(--line-strong); border-radius: 9px; background: white; color: var(--ink); }
.legacy-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.legacy-preview article { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfb; }
.legacy-preview pre { max-height: 150px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #405149; }
.legacy-preview small { color: var(--warning); }
.repair-grid { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 14px; margin-top: 20px; }
fieldset { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 16px; padding: 17px; background: #fbfdfb; }
legend { padding: 0 6px; font-weight: 850; }
fieldset > label:not(.check-row) { display: grid; gap: 7px; margin-bottom: 12px; font-size: .82rem; font-weight: 750; }
.check-row { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; line-height: 1.35; }
.check-row input, .column-options input { accent-color: var(--accent); width: 17px; height: 17px; flex: none; }
.column-fieldset p { margin: 0 0 8px; color: var(--muted); font-size: .82rem; }
.column-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px 10px; max-height: 190px; overflow: auto; padding-right: 4px; }
.column-options label { display: flex; gap: 7px; align-items: center; min-width: 0; font-size: .84rem; overflow: hidden; }
.column-options label { text-overflow: ellipsis; white-space: nowrap; }
.action-stack { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.primary-button, .secondary-button { border-radius: 11px; padding: 12px 16px; font-weight: 850; border: 1px solid var(--accent); }
.primary-button { background: var(--accent); color: white; }
.secondary-button { background: white; color: var(--accent-dark); }
.primary-button:disabled, .secondary-button:disabled { opacity: .42; cursor: default; }
.blocker-list { margin: 18px 0 0; padding: 14px 14px 14px 34px; border-radius: 12px; background: var(--danger-soft); color: #7d2d28; }
.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 22px; }
.summary-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--wash); }
.summary-grid span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 7px; }
.summary-grid strong { font-size: 1.65rem; }
.preview-heading { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; margin-top: 15px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; }
th { background: #edf4f0; color: #405149; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { color: #3d4e47; font-size: .88rem; max-width: 430px; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
.next-tools { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: start; margin-top: 52px; padding: 34px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.next-tools p:not(.step-label) { color: var(--muted); line-height: 1.55; }
.next-grid { display: grid; gap: 9px; }
.next-grid a { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center; padding: 15px 17px; border: 1px solid var(--line); background: rgba(255,255,255,.72); border-radius: 13px; text-decoration: none; transition: border-color .18s, transform .18s; }
.next-grid a:hover { border-color: var(--accent); transform: translateX(2px); }
.next-grid span { color: var(--muted); font-size: .76rem; }
.next-grid strong { grid-column: 1; }
.next-grid i { grid-column: 2; grid-row: 1 / span 2; font-style: normal; color: var(--accent); }
footer { min-height: 100px; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--muted); font-size: .82rem; }
footer a { color: var(--accent-dark); font-weight: 800; }
:focus-visible { outline: 3px solid rgba(18,104,79,.32); outline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 860px) {
  .repair-grid, .next-tools { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2,1fr); }
  .next-tools { gap: 12px; padding-inline: 10px; }
}
@media (max-width: 620px) {
  .page-shell { width: min(100% - 24px, 1180px); }
  .site-header { align-items: flex-start; padding: 15px 0; }
  .header-meta { align-items: flex-end; flex-direction: column; }
  .privacy-badge { font-size: .7rem; padding: 6px 9px; }
  main { padding-top: 42px; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.3rem); }
  .workspace-card, .repair-card, .plan-card { padding: 19px; border-radius: 19px; }
  .section-heading, .options-heading, .results-heading, .preview-heading { flex-direction: column; }
  .file-drop { grid-template-columns: auto 1fr; padding: 18px; }
  .file-action { grid-column: 1 / -1; text-align: center; }
  .interpretation-grid, .legacy-preview { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .action-stack { width: 100%; justify-content: stretch; }
  .action-stack button { width: 100%; }
  .column-options { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

