/* An editorial pearl and copper mode with the same scientific visual language. */
body.light{--bg:#efeee8;--surface:#fffaf4;--surface2:#ebe5dc;--ink:#19363a;--muted:#3f6266;--soft:#49666a;--line:rgba(26,80,78,.26);--accent:#a25942;--mint:#176b66;--warning:#7c412e;background:radial-gradient(ellipse at 82% 2%,#e7cfc0 0%,transparent 45%),radial-gradient(ellipse at 0 75%,#d9e8e1,transparent 52%),var(--bg);color:var(--ink)}
body.light .sidebar{background:linear-gradient(180deg,#0c313a,#123e47 65%,#0b3037);border-right-color:#4b8285}
body.light .topbar{background:#f1eee7ee;backdrop-filter:blur(20px);position:sticky;top:0;z-index:8;border-bottom-color:#698b8255}
body.light .question-card{background:linear-gradient(155deg,#fffdf9,#f0ece5);border-color:#bda99880;box-shadow:0 12px 34px #644d3716}
body.light .choice{background:#fffaf5;border-color:#8fada36c;color:#22484b}
body.light .choice:hover{background:#eee5da;border-color:#96765f}
body.light .choice:has(input:checked){background:#ead6c5;border-color:#9c5e46;box-shadow:inset 0 0 0 1px #9c5e46}
body.light .choice input{accent-color:#9e5c45}
body.light .step-counter,body.light .secondary-button,body.light .icon-button{background:#fffaf4;border-color:#96aaa1;color:#214c4c}
body.light .primary-button{background:#20545a;color:#fffaf3}
body.light .primary-button:hover{background:#153f45}
body.light .intro-visual{background:#0d343c}
body.light .visual-halo{background:linear-gradient(90deg,#efeee8,transparent 30%,transparent 65%,#08272a46)}
body.light .research-context{background:linear-gradient(125deg,#fffaf4,#eadbd0);color:#254b4c;border:1px solid #a88975;box-shadow:0 3px 18px #7f60401c;font-weight:750}
body.light .research-context:hover,body.light .research-context:focus-visible{background:#e7cebb;border-color:#a05c44;outline-color:#27696a}
body.light .research-dialog{background:#f0fbfa;color:#143f45;border-color:#72a5a2;box-shadow:0 25px 95px #153f4266}
body.light .research-dialog h2,body.light .research-dialog strong{color:#153f45}
body.light .research-dialog p,body.light .research-dialog li{color:#325c60}
body.light .research-dialog a{color:#136d79}
body.light .research-dialog .research-kind{color:#447e7d}
body.light .research-dialog .research-limits{border-color:#6a9b9880;color:#386268}
body.light .research-dialog .research-close{background:#164d55;color:#f0faf7}
@media(prefers-reduced-motion:reduce){body.light .topbar{backdrop-filter:none}}
.intro-buttons{display:flex;flex-wrap:wrap;gap:12px}.draft-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:25px}.draft-actions .secondary-button{min-height:43px}.draft-actions .text-button{background:none;border:none;color:var(--muted);text-decoration:underline}.exit-dialog{width:min(560px,calc(100vw - 28px));background:radial-gradient(circle at 90% 0,#23484c,#0b242d 60%);border:1px solid #b0d4bf7c;border-radius:18px;color:#f4f7f1;padding:clamp(25px,5vw,48px);box-shadow:0 24px 100px #0009}.exit-dialog::backdrop{background:#031217bb;backdrop-filter:blur(7px)}.exit-dialog h2{font:400 clamp(2rem,5vw,3.2rem)/1.1 Georgia,serif;letter-spacing:-.05em;margin:15px 0 20px}.exit-dialog p{color:#c1d6cf;line-height:1.7}.exit-dialog small{display:block;color:#a7c3b7;margin-top:24px}.exit-controls{display:flex;flex-wrap:wrap;gap:9px;margin-top:25px}.exit-controls .primary-button,.exit-controls .secondary-button{min-height:45px}.exit-controls .secondary-button{color:#f0f7ee;border-color:#799d92;background:#16353a}body.light .exit-dialog{background:radial-gradient(circle at 90% 0,#d6f0e9,#eef9f7 65%);color:#144850;border-color:#74a7a5}body.light .exit-dialog p,body.light .exit-dialog small{color:#47747a}body.light .exit-controls .secondary-button{color:#16464b;border-color:#74a9a4;background:#e4f4f0}
@media(max-width:920px){.topbar-actions{flex-wrap:wrap;justify-content:flex-end}.topbar-actions .source-button{padding:7px 10px}.question-card.full-width .choice-stack{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:530px){.question-card.full-width .choice-stack{grid-template-columns:1fr}.draft-actions{flex-direction:column;align-items:stretch}}
