:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif; background: #f5f4f0; color: #143039; }
* { box-sizing: border-box; }
body { margin: 0; }
.shell { max-width: 1000px; margin: 0 auto; padding: clamp(20px, 4vw, 56px); }
.eyebrow { font-size: .73rem; letter-spacing: .12em; font-weight: 750; color: #55757a; }
header { margin: 3rem 0 2rem; }
.kicker { color: #4c7771; font-weight: 700; }
h1 { font-size: clamp(2.05rem, 4.5vw, 3.5rem); line-height: 1.15; letter-spacing: -.035em; margin: .6rem 0 1.2rem; }
.intro { max-width: 730px; font-size: 1.04rem; line-height: 1.9; color: #486268; }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
fieldset { min-width: 0; border: 1px solid #d6dfdd; padding: 24px; border-radius: 16px; background: white; }
legend { padding: 0 8px; font-size: 1.1rem; font-weight: 800; }
label { display: flex; flex-direction: column; gap: 7px; margin: 16px 0; font-size: .89rem; font-weight: 700; }
input { width: 100%; padding: 12px 14px; border: 1px solid #bacbc8; border-radius: 8px; font: inherit; color: #12333a; background: #fff; }
input:focus-visible, button:focus-visible { outline: 3px solid #54a9b6; outline-offset: 3px; }
.period { margin-top: 20px; border-radius: 16px; border: 1px solid #d6dfdd; background: #fff; padding: 15px 24px; }
.period label { max-width: 310px; }
.period p, .subtle, .notice p { color: #526970; font-size: .9rem; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
button { border: 0; cursor: pointer; border-radius: 9px; padding: 14px 24px; background: #153a43; color: #fff; font: inherit; font-weight: 800; }
button.secondary { background: #e3e8e6; color: #24464d; }
.error { color: #ad2525; font-weight: 700; }
.result { margin: 30px 0; padding: 28px; border-radius: 18px; background: #e4eee8; }
.totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.totals > div { padding: 16px; background: #fff; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }
.totals span { font-weight: 750; font-size: .86rem; }
.totals strong { font-size: clamp(1.4rem, 3vw, 2.15rem); overflow-wrap: anywhere; }
.verdict { font-size: 1.17rem; font-weight: 850; }
.notice { border-top: 1px solid #bdcbc8; padding-top: 20px; }
footer { color: #71868b; font-size: .78rem; padding-top: 35px; }
@media (max-width: 650px) { .panels, .totals { grid-template-columns: 1fr; } header { margin-top: 2rem; } fieldset { padding: 18px; } .shell { padding: 20px 16px; } .result { padding: 20px; } }
