:root { color-scheme: light; font-family: system-ui, -apple-system, sans-serif; background: #f3f4eb; color: #172e34; line-height: 1.6; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 32px, 680px); margin: 24px auto 48px; }
header { border-top: 5px solid #205a57; padding-top: 18px; margin-bottom: 22px; }
header p { color: #485e62; margin: 4px 0; }
p.label { color: #28605a; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 5vw, 2.55rem); line-height: 1.15; margin: 7px 0 10px; }
h2 { font-size: 1.25rem; margin: 0 0 10px; }
.input-panel, .review { background: #fffdf8; border: 1px solid #c8d3ca; padding: clamp(14px, 4vw, 26px); }
.input-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.review { margin-top: 12px; }
.wide { grid-column: 1 / -1; }
label, .zone { display: grid; gap: 4px; font-weight: 650; min-width: 0; }
.zone code { align-self: start; }
button, select, input { font: inherit; }
select, input[type="datetime-local"] { width: 100%; min-width: 0; min-height: 42px; padding: 7px; background: white; color: inherit; border: 1px solid #7d9596; border-radius: 4px; }
button { cursor: pointer; min-height: 42px; padding: 8px 14px; background: #205a57; color: white; border: 1px solid #205a57; border-radius: 4px; font-weight: 650; }
button.load { align-self: end; color: #184c49; background: #e4eee5; }
button:disabled { background: #e4e7e3; color: #59635e; border-color: #b8c2bb; cursor: default; }
:focus-visible { outline: 3px solid #a95822; outline-offset: 3px; }
fieldset { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
legend { font-weight: 700; margin-bottom: 8px; }
.candidate { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; margin: 7px 0; border: 1px solid #b8cbc4; border-radius: 4px; flex-wrap: wrap; }
.candidate input { margin-top: 6px; }
code { overflow-wrap: anywhere; }
.candidate span code { display: block; }
.receipt { margin-top: 12px; background: #e4eee5; padding: 10px; overflow-wrap: anywhere; }
.receipt p { margin: 3px 0; }
.warning { border-left: 3px solid #a95822; padding-left: 9px; color: #873d16; }
@media (max-width: 490px) { .input-panel { grid-template-columns: minmax(0,1fr); } }
