:root {
  color-scheme: light;
  --ink: #18342c;
  --muted: #536960;
  --green: #255b49;
  --green-dark: #173e32;
  --sage: #dce9df;
  --cream: #f7f5ed;
  --paper: #fffefa;
  --line: #d6ded5;
  --gold: #b78335;
  --error: #9c3026;
  --print-page: letter portrait;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; line-height: 1.55; }
.site-header { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.9rem max(1rem,calc((100% - 1180px)/2)); color:#fff; background:var(--green-dark); }
.brand { color:#fff; font-weight:800; text-decoration:none; letter-spacing:.01em; }
.header-note { color:#d8e7de; font-size:.9rem; }
main, footer { width:min(1180px,calc(100% - 2rem)); margin-inline:auto; }
.intro { max-width:850px; padding:3.2rem 0 1.8rem; }
.eyebrow { margin:0 0 .35rem; color:var(--green); font-size:.74rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
h1,h2,h3 { color:var(--ink); line-height:1.17; }
h1 { max-width:780px; margin:0 0 .8rem; font-size:clamp(2.2rem,5.2vw,4rem); letter-spacing:-.05em; }
h2 { margin:0; font-size:1.5rem; letter-spacing:-.025em; }
h3 { margin:0 0 .75rem; font-size:1.17rem; }
.intro > p:not(.eyebrow) { max-width:790px; color:var(--muted); font-size:1.08rem; }
.privacy-callout { padding:.8rem 1rem; border-left:4px solid var(--gold); background:#fff9e9; font-size:.94rem !important; }
.workspace-grid { display:grid; grid-template-columns:minmax(320px,.94fr) minmax(0,1.06fr); align-items:start; gap:1rem; }
.panel,.method-section { min-width:0; border:1px solid var(--line); border-radius:16px; background:var(--paper); box-shadow:0 8px 25px rgb(24 52 44 / 5%); }
.panel { padding:1.35rem; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1.1rem; }
.section-heading h2 { max-width:25rem; }
.text-button { min-height:40px; padding:.48rem .72rem; border:1px solid var(--green); border-radius:8px; background:transparent; color:var(--green); font:inherit; font-size:.84rem; font-weight:750; cursor:pointer; }
.text-button:hover { background:var(--sage); }
.file-grid { display:grid; gap:.9rem; }
.csv-field { display:grid; gap:.4rem; }
label { display:grid; gap:.35rem; color:var(--ink); font-size:.9rem; font-weight:750; }
input,textarea,select { width:100%; min-height:44px; padding:.62rem .7rem; border:1px solid #aabbb0; border-radius:8px; background:#fff; color:var(--ink); font:inherit; font-size:.96rem; }
textarea { min-height:130px; resize:vertical; font-family:ui-monospace,"Cascadia Code",Consolas,monospace; font-size:.8rem; line-height:1.45; tab-size:2; }
input[type=file] { min-height:auto; padding:.45rem; font-size:.82rem; }
input[type=number] { font-variant-numeric:tabular-nums; }
input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible { outline:3px solid #d2a149; outline-offset:2px; }
.field-help,.print-instructions,.print-caution,.method-section p,footer p { color:var(--muted); }
.visually-hidden { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
.field-help { margin:.65rem 0 1rem; font-size:.82rem; }
code { padding:.05rem .24rem; border-radius:4px; background:#eeede3; color:var(--ink); }
.compare-controls { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:.75rem; }
button:not(.text-button) { min-height:45px; padding:.68rem .95rem; border:0; border-radius:9px; background:var(--green); color:#fff; font:inherit; font-weight:800; cursor:pointer; }
button:not(.text-button):hover:not(:disabled) { background:var(--green-dark); }
button:disabled { cursor:not-allowed; opacity:.48; }
.error { margin:.7rem 0 0; color:var(--error); font-weight:750; }
.status-message { min-height:1.2em; margin:.55rem 0 0; color:var(--muted); font-size:.82rem; }
.state-pill { flex:none; padding:.3rem .58rem; border-radius:99px; background:#efeee6; color:#5e6256; font-size:.72rem; font-weight:800; }
.state-pill.ready { background:#e1efe5; color:#1c6047; }
.summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.5rem; margin-bottom:.65rem; }
.summary-item { padding:.58rem .65rem; border:1px solid var(--line); border-radius:9px; background:#fcfbf6; }
.summary-item strong { display:block; color:var(--green-dark); font-size:1.28rem; line-height:1.1; }
.summary-item span { color:var(--muted); font-size:.76rem; }
.schema-note { margin:.55rem 0 .8rem; padding:.6rem .7rem; border-left:3px solid var(--gold); background:#fff9e9; color:#654c26; font-size:.82rem; }
.card-list { display:grid; gap:.5rem; max-height:330px; overflow:auto; }
.selection-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:.6rem; padding:.62rem .68rem; border:1px solid var(--line); border-radius:9px; background:#fff; }
.selection-row input { width:20px; min-height:20px; margin:.1rem 0 0; accent-color:var(--green); }
.selection-copy { min-width:0; }
.selection-copy strong { display:block; overflow-wrap:anywhere; font-size:.91rem; }
.selection-copy small { display:block; color:var(--muted); font-size:.75rem; overflow-wrap:anywhere; }
.change-badge { padding:.18rem .43rem; border-radius:99px; background:#e5f0e8; color:#285c43; font-size:.67rem; font-weight:800; text-transform:uppercase; }
.change-badge.added { background:#e4ecef; color:#355b6c; }
.print-settings { margin-top:1.1rem; padding-top:1.1rem; border-top:1px solid var(--line); }
.settings-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.72rem; }
.settings-grid label { font-size:.78rem; }
.settings-grid input,.settings-grid select { min-height:42px; font-size:.88rem; }
.print-instructions { margin:.75rem 0; font-size:.8rem; }
.overflow-note { margin:.55rem 0; padding:.55rem .65rem; border-left:3px solid #c77738; background:#fff3e5; color:#774321; font-size:.8rem; font-weight:700; }
.layout-summary { min-height:1.2em; color:var(--green-dark); font-size:.83rem; font-weight:750; }
.print-settings > button { width:100%; }
.print-caution { margin:.65rem 0 0; font-size:.77rem; }
.empty-state { margin:1rem 0; padding:1rem; border:1px dashed #bdc9bf; border-radius:10px; color:var(--muted); text-align:center; font-size:.86rem; }
.method-section { margin:1.1rem 0 2rem; padding:1.5rem; }
.method-section .eyebrow { margin-top:0; }
.method-section p { max-width:900px; }
.limits-note { margin-top:1.1rem; padding:.85rem 1rem; border-left:4px solid var(--gold); background:#fff9e9; }
.limits-note h3 { font-size:.98rem; }
.limits-note p { margin-bottom:0; font-size:.9rem; }
footer { padding:0 0 2rem; font-size:.81rem; }
footer a { color:var(--green); font-weight:750; }
.print-output { display:none; }
.print-output.measure { position:absolute; z-index:-1; top:0; left:-30000px; display:block; visibility:hidden; }
.print-sheet { position:relative; width:215.9mm; height:279.4mm; margin:0 auto; overflow:hidden; background:#fff; break-after:page; page-break-after:always; }
.print-sheet:last-child { break-after:auto; page-break-after:auto; }
.print-card { position:absolute; display:flex; flex-direction:column; overflow:hidden; border:1px dashed #47554e; border-radius:1.3mm; padding:3mm; color:#18342c; background:#fffefa; }
.print-card.front { gap:2mm; }
.print-card.back { align-items:center; justify-content:center; text-align:center; }
.print-card-id { flex:none; max-width:100%; overflow:hidden; color:#536960; font:600 7pt/1.15 ui-monospace,Consolas,monospace; text-overflow:ellipsis; white-space:nowrap; }
.print-card-title { max-height:23%; overflow:hidden; overflow-wrap:anywhere; color:#18342c; font-size:11pt; font-weight:800; line-height:1.15; }
.print-card-body { flex:1; min-height:0; overflow:hidden; overflow-wrap:anywhere; color:#263e35; font-size:9pt; line-height:1.25; }
.print-card.back .print-card-id { position:absolute; top:3mm; left:3mm; right:3mm; text-align:center; }
.print-card-back-text { max-height:75%; overflow:hidden; overflow-wrap:anywhere; color:#244c3d; font-size:13pt; font-weight:800; line-height:1.2; }
.overflow-warning { outline:2px solid #c77738; outline-offset:-2px; }
@media(max-width:900px) { .workspace-grid { grid-template-columns:minmax(0,1fr); } .intro { padding-top:2.35rem; } .card-list { max-height:420px; } }
@media(max-width:560px) {
  main,footer { width:calc(100% - 1rem); }
  .site-header { padding:.78rem .65rem; }
  .header-note { max-width:10rem; text-align:right; font-size:.72rem; }
  .intro { padding:1.75rem 0 1.1rem; }
  .panel,.method-section { padding:1rem; border-radius:12px; }
  .section-heading { align-items:flex-start; }
  .section-heading h2 { font-size:1.25rem; }
  .text-button { padding:.42rem .5rem; font-size:.76rem; }
  .compare-controls { grid-template-columns:minmax(0,1fr); }
  .summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .settings-grid { grid-template-columns:1fr 1fr; gap:.55rem; }
  .selection-row { padding:.55rem; }
}
@page { margin:0; }
@media print {
  html,body { width:auto !important; min-width:0 !important; margin:0 !important; padding:0 !important; background:#fff !important; }
  .site-header,main > :not(.print-output),footer { display:none !important; }
  main { display:block !important; width:auto !important; margin:0 !important; padding:0 !important; }
  .print-output { display:block !important; width:auto !important; margin:0 !important; padding:0 !important; }
  .print-sheet { margin:0 !important; box-shadow:none !important; }
  .print-card { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}
