:root{--ink:#202a30;--muted:#51615c;--deep:#173d35;--accent:#c5a572;--cream:#f7f5ef;--paper:#fff;--line:#ccd7ce;--wash:#e8f0e9;--field:#fff;--result:#edf3ed;--focus:#176b55;--link:#235d4a}
:root[data-theme="dark"]{color-scheme:dark;--ink:#f3f1ea;--muted:#b5c6be;--deep:#a9c5b2;--accent:#e4bc79;--cream:#0f171a;--paper:#162226;--line:#41564e;--wash:#223a30;--field:#101a1c;--result:#233a31;--focus:#a9c5b2;--link:#b6d7be;--danger:#ffaca2}
body{background:var(--cream)}
a,a:hover{color:var(--link)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.site-header{position:sticky;top:0;z-index:4}
.skip{background:var(--paper);color:var(--ink)}
.brand{color:var(--ink)}
.theme-control{background:var(--paper);color:var(--deep);border-color:var(--line)}
.header-row nav a{color:var(--ink)}
.tool-head .kicker,.kicker{color:var(--deep)}
.tool-head{padding-top:clamp(1.2rem,3vw,2.6rem)}
.tool-head h1{font-weight:500}
.tool-body{border-radius:1.35rem;box-shadow:0 14px 40px rgb(16 43 37 / .08)}
.calculator input,.calculator select,input,select{background:var(--field);border-color:var(--line)}
.results,[data-result],output{background:var(--result)}
button,.button{background:#173d35;border-color:#173d35;color:#f7f5ef}
.theme-control,.calculator button[type=button]{background:var(--wash);color:var(--ink);border-color:var(--line)}
.theme-control{font-size:.82rem}
.tool-switcher{display:flex;gap:.5rem;flex-wrap:wrap;padding:0;margin:.25rem 0 1.3rem}
.tool-switcher a{background:var(--paper);border:1px solid var(--line);border-radius:999px;padding:.45rem .8rem;text-decoration:none;min-height:40px;display:inline-flex;align-items:center}
.tool-switcher a[aria-current="page"]{background:#173d35;border-color:#173d35;color:#fff}
.site-footer{background:#102b25;color:#e3ece4}
.site-footer a{color:#c2d7c8}
@media(max-width:565px){.header-row nav{order:3;width:100%;gap:.65rem 1rem}.header-row nav a{min-height:37px;align-content:center}.header-row{align-items:center}.tool-switcher{overflow-x:auto;flex-wrap:nowrap;padding:.25rem .15rem .6rem}.tool-switcher a{flex:none}.tool-head h1{overflow-wrap:anywhere}}
@media print{.tool-switcher,.tool-head,.site-header,.site-footer,.rail{display:none!important}}
