:root { color-scheme:light; --ink:#20211f; --muted:#60665f; --line:#d7ddd7; --paper:#f6f8f5; --accent:#e5f574; --green:#175b49; }
* { box-sizing:border-box; letter-spacing:0; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,input,select,textarea { font:inherit; }
button { border:1px solid var(--ink); border-radius:5px; background:var(--ink); color:white; padding:11px 16px; font-weight:650; cursor:pointer; min-height:44px; }
button:hover { background:var(--green); }
button:disabled { cursor:default; opacity:.4; }
:focus-visible { outline:3px solid #b14e32; outline-offset:3px; }
a { color:var(--green); }
.topbar { display:flex; align-items:center; gap:24px; max-width:1184px; margin:auto; padding:22px 28px; border-bottom:1px solid var(--line); }
.brand { color:var(--ink); font-size:30px; font-weight:800; text-decoration:none; white-space:nowrap; }
.brand span { color:#bc422b; }
.edition { color:var(--muted); font-size:12px; flex:1; }
.topbar>button { background:var(--accent); color:var(--ink); }
main { max-width:1184px; margin:auto; padding:0 28px 32px; }
.heading-band { display:flex; justify-content:space-between; gap:24px; align-items:flex-end; padding:38px 0 30px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:40px; line-height:1.15; }
h2 { font-size:20px; }
h3 { font-size:22px; line-height:1.2; overflow-wrap:anywhere; }
.eyebrow { font-size:12px; color:var(--muted); margin-bottom:10px; }
.check { display:flex; align-items:center; gap:9px; font-size:14px; }
input[type=checkbox] { accent-color:var(--green); width:18px; height:18px; flex-shrink:0; }
.board-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 0; border-top:1px solid var(--line); }
#counterLine { color:var(--muted); font-size:13px; }
.grid,.comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.card { display:flex; flex-direction:column; min-width:0; border:1px solid var(--line); border-radius:7px; overflow:hidden; background:white; }
.visual { aspect-ratio:2.15; background:#e7ece7; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.visual canvas { display:block; width:100%; height:100%; }
.visual img { display:block; width:100%; height:100%; object-fit:cover; object-position:top; }
.visual.placeholder { color:var(--muted); font-size:14px; }
.card-copy { padding:20px; display:flex; flex-direction:column; gap:12px; flex:1; }
.card-copy>p { color:var(--muted); font-size:15px; line-height:1.55; min-height:47px; overflow-wrap:anywhere; }
.sample-label { font-size:12px; font-weight:650; color:#8e3424; }
.actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:auto; padding-top:8px; }
.actions a { font-size:14px; font-weight:650; text-underline-offset:4px; margin-right:auto; overflow-wrap:anywhere; }
.actions button { background:white; color:var(--ink); font-size:13px; }
.actions button.secondary { border-color:#a7b2a8; color:var(--muted); }
.actions button.secondary:hover { border-color:var(--ink); color:var(--ink); }
.empty { grid-column:1/-1; padding:60px 24px; text-align:center; border-top:1px dashed var(--line); border-bottom:1px dashed var(--line); }
.empty p { margin:12px 0 22px; color:var(--muted); }
.compare-strip { border-top:1px solid var(--line); margin-top:32px; padding:24px 0; display:flex; justify-content:space-between; align-items:center; gap:24px; }
.selects { display:grid; grid-template-columns:minmax(120px,1fr) minmax(120px,1fr) auto; gap:12px; align-items:end; }
label { display:grid; gap:7px; font-size:13px; color:var(--muted); }
input,select,textarea { border:1px solid #a7b2a8; background:white; border-radius:4px; width:100%; padding:11px; color:var(--ink); min-width:0; }
select { max-width:240px; }
textarea { min-height:88px; resize:vertical; }
.result,.error { line-height:1.5; font-size:14px; margin:14px 0; overflow-wrap:anywhere; }
.error { color:#9a311f; }
footer { display:flex; justify-content:space-between; gap:16px; padding-top:32px; font-size:12px; color:var(--muted); }
dialog { border:1px solid var(--line); border-radius:8px; padding:24px; width:min(500px,calc(100% - 32px)); max-height:calc(100vh - 40px); }
dialog::backdrop { background:rgb(20 25 20 / 45%); }
.dialog-title { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:24px; }
.dialog-title h2 { min-width:0; overflow-wrap:anywhere; }
#closeSubmit,#closeReport { width:44px; flex:0 0 44px; padding:0; background:white; color:var(--ink); font-size:24px; }
form { display:grid; gap:16px; }
@media(max-width:650px) {
 .topbar { padding:18px 16px; gap:12px; flex-wrap:wrap; }
 .brand { font-size:27px; margin-right:auto; }
 .edition { display:none; }
 main { padding:0 16px 24px; }
 .heading-band { padding:26px 0; align-items:flex-start; flex-direction:column; gap:18px; }
 h1 { font-size:34px; }
 .grid,.comparison { grid-template-columns:1fr; }
 .compare-strip { align-items:stretch; flex-direction:column; }
 .selects { grid-template-columns:1fr; }
 .selects button { grid-column:1/-1; }
 select { max-width:none; }
 .board-head,footer { align-items:flex-start; flex-direction:column; gap:8px; }
 .card-copy { padding:18px; }
}
