:root { font: 100%/1.55 system-ui, sans-serif; color: #172933; background: #eef4f7; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
header { background: #163849; }
nav, main, footer { max-width: 65rem; margin: auto; padding: 1rem clamp(1rem,4vw,2.5rem); }
nav { display: flex; justify-content: space-between; }
nav a { color: white; font-weight: 700; }
a { color: #085872; text-underline-offset: .18em; }
h1 { font-size: clamp(1.8rem,5vw,3rem); margin: 1rem 0 .55rem; line-height: 1.15; }
h2 { font-size: 1.4rem; }
.layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; align-items:start; }
form, .result { background: white; padding: 1rem; border: 1px solid #c2d5de; border-radius: .8rem; }
form { display: grid; gap: .8rem; }
label { display: grid; gap: .3rem; font-weight: 600; }
input, select { min-width: 0; width: 100%; min-height: 44px; font: inherit; border: 1px solid #6a818d; border-radius: .4rem; padding: .45rem; background: white; color: inherit; }
.check { display: flex; align-items: center; gap: .55rem; min-height: 44px; }
.check input { width: 1.25rem; height: 1.25rem; min-height: 0; flex: none; }
.result h2 { margin-top: 0; }
dl div { display:flex; justify-content:space-between; gap: .6rem; padding: .36rem 0; }
dd { margin: 0; white-space: nowrap; }
.total { border-top: 1px solid #c2d5de; font-weight: 750; }
#condition { background: #fff0d2; color: #654708; padding: .55rem; border-radius: .35rem; }
table { border-collapse: collapse; width: 100%; text-align: left; background: white; }
th, td { border: 1px solid #c2d5de; padding: .45rem; }
:focus-visible { outline: 3px solid #0c7293; outline-offset: 2px; }
@media (max-width: 42rem) { .layout { grid-template-columns: 1fr; } }
