* { box-sizing: border-box }
:root { color-scheme: light; font-family: system-ui, sans-serif; color: #142f2a; background: #f2f5ed }
body { margin: 0 }
.bar { background: #12372d; color: white }
.bar div { max-width: 1080px; padding: 1rem 1.25rem; margin: auto; display: flex; gap: 1rem; justify-content: space-between; align-items: center }
.bar strong { font-size: 1.3rem }
.bar span { font-size: .85rem; border: 1px solid #91b5a3; border-radius: 2rem; padding: .35rem .7rem }
main { max-width: 1080px; padding: 2.5rem 1.25rem; margin: auto }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.055em; margin: 0 }
h2 { margin-top: 0 }
.intro p, .muted { color: #46625a }
.notice { padding: .9rem 1rem; border-left: 4px solid #7b9e57; background: #e4edd7; border-radius: .3rem; margin: 1.6rem 0 }
.layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start }
.card { padding: clamp(.85rem, 3vw, 1.6rem); background: #fff; border-radius: 1rem; border: 1px solid #d4dfd3 }
nav { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.2rem }
button, select, input { font: inherit; min-height: 2.8rem; border: 1px solid #9eafa5; border-radius: .55rem; padding: .55rem .75rem; color: inherit; background: #fff }
select, input, .primary { width: 100% }
button { cursor: pointer }
button:disabled { opacity: .6; cursor: default }
nav button[aria-pressed=true], .primary { background: #18583e; border-color: #18583e; color: white }
label { display: grid; gap: .35rem; font-weight: 600; margin-bottom: .85rem }
label :is(input, select) { font-weight: 400; min-width: 0 }
:focus-visible { outline: 3px solid #a26b21; outline-offset: 2px }
.amount { font-size: 2rem; font-weight: 700; margin: .3rem 0 }
#result { overflow-wrap: anywhere }
#result:not(:empty) { border-top: 1px solid #d4dfd3; margin-top: 1.4rem; padding-top: 1rem }
#feedback { min-height: 1.5em; color: #75401f }
@media (max-width: 690px) { .layout { grid-template-columns: minmax(0,1fr) } main { padding-top: 1.6rem } }
