:root {
  color-scheme: light; --paper: #f6f5ed; --white: #fffefa; --ink: #1c3025;
  --muted: #506151; --line: #d7ddcb; --green: #214f39; --sage: #ebefdf; --rust: #94391d;
  font-family: system-ui, sans-serif; color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
button, select { font: inherit; }
button, label.button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #8e501d; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.bar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; font-weight: 780; font-size: 1.18rem; text-decoration: none; letter-spacing: -.04em; }
.brand > span:last-child { color: #4a6945; }
.mark { display: inline-grid; place-items: center; margin-right: .55rem; width: 35px; height: 35px; border-radius: 50%; background: var(--green); color: white; font: 1.6rem Georgia, serif; }
.store { font-size: .88rem; font-weight: 650; }
.intro { padding: clamp(2.4rem, 5vw, 4.2rem) 0 2.2rem; }
.eyebrow { margin: 0 0 .45rem; color: #456348; letter-spacing: .12em; font-weight: 760; text-transform: uppercase; font-size: .75rem; }
h1, h2, h3 { margin: 0; font-family: Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); line-height: 1.05; letter-spacing: -.055em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); line-height: 1.15; letter-spacing: -.035em; }
h3 { font-size: 1.28rem; }
.intro > p:last-child { max-width: 62ch; font-size: 1.1rem; line-height: 1.55; margin: .85rem 0 0; color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.panel, .guide { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.panel { padding: clamp(1rem, 3.2vw, 2rem); background: var(--white); }
.drop { position: relative; display: grid; justify-items: center; min-height: 222px; padding: 20px; margin: 20px 0; gap: 14px; align-content: center; text-align: center; border: 1px dashed #7e9b7c; border-radius: 14px; background: #f0f3e8; }
.drop.drag { background: #dfebd5; border-color: var(--green); }
#preview { width: 100%; max-height: 270px; object-fit: contain; border-radius: 8px; }
.upload-info { display: grid; justify-items: center; gap: 5px; }
.upload-info > span:last-child { font-size: .83rem; color: var(--muted); }
.photo-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #acc1a2; border-radius: 50%; font-size: 1.5rem; color: var(--green); margin-bottom: 5px; }
.actions, .submit-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; gap: 14px; align-items: center; justify-content: center; min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-size: .9rem; font-weight: 690; }
.secondary { background: var(--white); border-color: #b6c4ac; color: var(--green); }
.secondary:hover { background: #e6ecdc; }
.actions:has(input:focus-visible) label { outline: 2px solid #8e501d; outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields label { display: grid; gap: 7px; color: var(--ink); font-size: .9rem; font-weight: 660; }
select { width: 100%; min-height: 46px; border: 1px solid #b6c4ac; color: var(--ink); border-radius: 8px; padding: 9px 10px; background: var(--white); font-size: .88rem; }
.submit-row { justify-content: flex-start; margin-top: 21px; gap: 11px 16px; }
.primary { background: var(--green); color: white; min-height: 48px; }
.primary:hover { background: #153a29; }
button:disabled { opacity: .7; cursor: wait; }
.link-button { background: transparent; padding: 8px 0; border: 0; text-decoration: underline; text-underline-offset: .22em; color: var(--green); font-size: .88rem; font-weight: 650; }
#status { color: var(--muted); font-size: .88rem; margin-bottom: 0; }
#status:empty { display: none; }
#status.error { color: var(--rust); }
.guide { background: var(--sage); }
figure { margin: 0; position: relative; }
figure img { width: 100%; height: auto; display: block; aspect-ratio: 1.48; object-fit: cover; background: #394d33; }
figcaption { padding: 9px 14px; background: #223b2c; color: #f5f8ee; font-size: .76rem; }
.guide-text { padding: 23px; }
.guide h2 { font-size: 1.65rem; }
.guide ol { margin: .8rem 0 0; padding-left: 1.2rem; font-size: .9rem; line-height: 1.5; color: #394e3d; }
.guide li + li { margin-top: .5rem; }
.result { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; scroll-margin-top: 20px; }
.result p { line-height: 1.5; }
.check, .recommendation { background: #ecf1e4; border-radius: 10px; padding: 15px; margin-top: 15px; }
.check p, .recommendation p { margin: .4rem 0 0; }
.recommendation .button { margin-top: 10px; }
.recommendation article + article { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.confirm { display: flex; gap: 8px; font-size: .92rem; font-weight: 650; align-items: center; margin: 16px 0 8px; }
.confirm input { width: 18px; height: 18px; accent-color: var(--green); flex: 0 0 auto; }
#confirmation-help { font-size: .86rem; color: var(--muted); }
footer { margin: 26px 0; color: var(--muted); font-size: .82rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 750px) { .layout { grid-template-columns: 1fr; } .wrap { width: min(100% - 32px, 560px); } .intro p:last-child { font-size: 1rem; } }
@media (max-width: 380px) { .fields { grid-template-columns: 1fr; } .store { font-size: .78rem; } }
.recommendation h4 { font-size: 1rem; margin: .85rem 0 0; }
.recommendation .button { margin-right: .25rem; }
#manual { margin-top: 16px; }
#manual summary { color: var(--green); cursor: pointer; font-size: .92rem; font-weight: 650; }
#manual label { display: block; margin: 10px 0 6px; font-size: .88rem; }
