.hf-calculator{--calc-green:#00796b;margin:36px 0;color:#17333e}
.calc-heading{display:flex;align-items:center;gap:16px;margin-bottom:22px}
.calc-heading h2{margin:0;font-size:clamp(1.5rem,4vw,2.2rem)}
.calc-heading p{margin:6px 0 0;color:#526a73}
.calc-icon{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;align-content:center;width:50px;height:64px;padding:10px;border-radius:12px;background:#153d50;color:#a4f1d9;flex:none;box-sizing:border-box}
.calc-icon::before{content:"HF";grid-column:1/-1;text-align:center;font-weight:800;font-size:13px;line-height:16px;border:1px solid currentColor;border-radius:3px}
.calc-icon i{height:8px;background:currentColor;border-radius:2px}
.calc-shell{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:22px;align-items:start}
.calc-card{background:#fff;border:1px solid #cbdcdd;border-radius:18px;padding:22px;min-width:0}
.calc-card h3{margin:0 0 14px;font-size:1.15rem}
.calc-setup{display:flex;gap:14px;align-items:end;flex-wrap:wrap}
.hf-calculator label{display:flex;flex-direction:column;gap:7px;font-size:.93rem;font-weight:650}
.calc-setup label{flex:1 1 125px}
.hf-calculator input,.hf-calculator select{box-sizing:border-box;width:100%;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #92aab1;border-radius:9px;background:#f8fbfb;color:#17333e;font:inherit}
.hf-calculator button{min-height:44px;padding:10px 15px;border:1px solid #b4d1cc;border-radius:9px;background:#edf6f3;color:#12574e;font:inherit;font-weight:650;cursor:pointer}
.hf-calculator button:disabled{opacity:.45;cursor:default}
.hf-calculator .calc-primary{background:#007467;color:#fff;border-color:#007467}
.calc-hint{color:#536d75;font-size:.87rem;line-height:1.5;margin:12px 0}
.calc-nav{display:flex;gap:7px;overflow-x:auto;padding:8px 2px 14px}
.calc-nav button{flex:none}
.calc-nav [aria-pressed=true]{background:#173e50;color:#fff;border-color:#173e50}
.calc-target-wrap{background:#eef3f2;border-radius:14px;padding:12px}
.hf-calculator .paper-board{display:block;width:100%;height:340px;max-height:55dvh;margin:0 auto;touch-action:manipulation}
.calc-slots{text-align:center;font-weight:650;margin:12px 0}
.calc-letters,.calc-actions{display:flex;flex-wrap:wrap;gap:8px}
.calc-letters button{flex:1}
.calc-mount{margin:18px 0;border-top:1px solid #d7e3e3;padding-top:16px}
.calc-mount summary{cursor:pointer;font-weight:650}
.calc-mount label{margin:14px 0}
.hf-calculator .calc-check{flex-direction:row;align-items:center}
.hf-calculator input[type=checkbox]{width:20px;min-height:20px;height:20px}
.calc-metals{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}
.calc-metals [data-state=A]{background:#d4f2e4;border-color:#4e9e81}
.calc-metals [data-state=M]{background:#ffe1df;color:#8a2930;border-color:#bf797c}
.calc-result{position:sticky;top:20px}
.calc-result output{display:block;font-variant-numeric:tabular-nums}
.calc-result label{margin:16px 0}
.calc-result input{font-size:1.6rem;font-weight:700}
.calc-result .calc-factor{border:0;font-size:1rem}
.calc-value{background:#153d50;color:#a4f1d9;border-radius:13px;padding:22px 16px;margin-top:20px}
.calc-value span{font-size:.9rem}
.calc-value output{font-size:clamp(2rem,5vw,2.7rem);font-weight:800;margin-top:6px;overflow-wrap:anywhere}
.calc-points{display:flex;justify-content:space-between;gap:12px;font-weight:650;margin-top:20px}
.calc-status{font-size:.9rem;line-height:1.5}
.calc-status:empty{display:none}
.home-calculator-link{display:flex;align-items:center;gap:16px;padding:20px 24px;margin:20px 0;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text);text-decoration:none}
.home-calculator-link strong{display:block;font-size:1.12rem}
.home-calculator-link small{display:block;margin-top:5px;color:var(--muted-text);font-size:.9rem}
.home-calculator-link .calc-link-arrow{margin-left:auto;font-size:1.6rem;color:#00796b}
@media(max-width:750px){.calc-shell{grid-template-columns:1fr}.calc-result{position:static}.calc-card{padding:18px}.home-bar-inner{flex-wrap:wrap;padding-block:10px}.home-menu{flex:1 1 260px}.home .public-settings-tabs{flex-wrap:wrap}}
@media print{.hf-calculator button,.calc-mount,.calc-setup{display:none}.calc-result{position:static}}
