:root { font-family: system-ui, -apple-system, sans-serif; color: #192f43; background: #edf3f7; line-height: 1.55; }
* { box-sizing: border-box; }
body { margin: 0; padding: clamp(16px, 4vw, 48px); }
.calculator { max-width: 820px; margin: auto; padding: clamp(20px, 4vw, 44px); background: white; border: 1px solid #cbd8e2; border-radius: 16px; }
h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.15; margin: 12px 0; }
h2 { font-size: 1.15rem; }
p { margin: 10px 0; }
.brand { font-size: .75rem; font-weight: 750; letter-spacing: .09em; color: #315c78; }
header { margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
label { display: block; font-weight: 650; margin-bottom: 8px; }
input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #667f92; border-radius: 6px; font: inherit; color: inherit; background: white; }
input::placeholder { color: #576879; }
small { display: block; color: #475c6c; font-size: .82rem; margin-top: 6px; }
button { min-height: 48px; padding: 12px 20px; border: 1px solid #075783; border-radius: 6px; background: #075783; color: white; font: inherit; font-weight: 650; cursor: pointer; }
button:hover { background: #063f60; }
button.secondary { background: white; color: #075783; }
button.secondary:hover { background: #edf3f7; }
:focus-visible { outline: 3px solid #995000; outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.error { color: #a21d24; font-size: .9rem; }
.error:empty { display: none; }
[aria-invalid="true"] { border: 2px solid #a21d24; }
#status { font-size: .9rem; }
#results { margin: 28px 0; padding: 20px; background: #edf6fa; border-radius: 8px; }
.result-grid { display: grid; gap: 18px; margin-bottom: 0; }
dt { font-size: .9rem; }
dd { margin: 2px 0 0; font-size: 1.4rem; font-weight: 700; overflow-wrap: anywhere; }
.primary-result dd { font-size: clamp(1.8rem, 5vw, 2.6rem); color: #075783; }
aside { border-top: 1px solid #cbd8e2; margin-top: 28px; padding-top: 12px; font-size: .9rem; }
.disclaimer { font-weight: 600; }
footer { margin-top: 24px; font-size: .8rem; color: #475c6c; }
[hidden] { display: none !important; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .actions > button { width: 100%; } }
