.tool-shell{--bg:#fafbfc;--card:#fff;--ink:#0f172a;--muted:#475569;--line:#dbe1eb;--accent:#4338ca;--accent-hover:#3730a3;--tint:#eef2ff;--warn:#92400e;--warn-bg:#fffbeb;--radius:18px}
.tool-shell *{box-sizing:border-box}
.tool-shell [hidden]{display:none!important}
.tool-shell{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tool-shell a{color:var(--accent);text-underline-offset:3px}
.tool-shell button,.tool-shell input,.tool-shell select{font:inherit}
.tool-shell button,.tool-shell a,.tool-shell input,.tool-shell select{touch-action:manipulation}
.tool-shell button{cursor:pointer}
.tool-shell a:focus-visible,.tool-shell button:focus-visible,.tool-shell input:focus-visible,.tool-shell select:focus-visible,.tool-shell summary:focus-visible{outline:3px solid #a5b4fc;outline-offset:3px}
.tool-shell .skip{position:absolute;left:12px;top:-60px;background:white;padding:10px 16px;z-index:20}
.tool-shell .skip:focus{top:12px}
.tool-shell .wrap{max-width:1240px;margin:auto;padding:0 28px}
.tool-shell header{background:var(--card);border-bottom:1px solid var(--line)}
.tool-shell .header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:80px}
.tool-shell .brand{text-decoration:none;font-size:15px;font-weight:750;color:var(--ink);display:flex;align-items:center;gap:10px}
.tool-shell .brand-mark{display:grid;place-items:center;background:var(--accent);color:white;font-size:13px;width:31px;height:31px;border-radius:9px}
.tool-shell .nav-link{font-size:14px}
.tool-shell .hero{padding:64px 0 36px;max-width:820px}
.tool-shell .eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.13em;color:var(--accent);font-weight:750;margin:0 0 16px}
.tool-shell h1{font-size:clamp(32px,4.5vw,54px);line-height:1.1;letter-spacing:-.04em;margin:0 0 20px;font-family:Georgia,'Times New Roman',serif;font-weight:400}
.tool-shell h1 span{color:var(--accent)}
.tool-shell .lead{color:var(--muted);font-size:19px;max-width:720px;margin:0 0 20px}
.tool-shell .pills{display:flex;gap:8px;flex-wrap:wrap}
.tool-shell .pill{font-size:12px;background:var(--tint);color:#3730a3;border-radius:30px;padding:5px 11px}
.tool-shell .layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;align-items:start;gap:28px;margin:16px 0 48px}
.tool-shell .card{border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:28px;box-shadow:0 3px 10px #0f172a03}
.tool-shell .section{margin-bottom:24px}
.tool-shell .section:last-child{margin-bottom:0}
.tool-shell .section-head{display:flex;gap:12px;align-items:baseline;margin-bottom:18px}
.tool-shell .step{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--tint);color:var(--accent);font-size:13px;font-weight:700}
.tool-shell h2{font-size:21px;line-height:1.3;letter-spacing:-.02em;margin:0}
.tool-shell h3{font-size:16px;margin:0 0 8px}
.tool-shell .help{font-size:13px;color:var(--muted);margin:8px 0 18px}
.tool-shell .config{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.tool-shell .field label,.tool-shell .field-label{display:block;font-weight:650;font-size:14px;margin-bottom:7px}
.tool-shell select,.tool-shell input[type=number]{border:1px solid #94a3b8;border-radius:9px;background:white;color:var(--ink);width:100%;min-height:46px;padding:10px 12px}
.tool-shell input::placeholder{color:#64748b}
.tool-shell input:disabled{background:#f1f5f9;color:#64748b;border-color:#cbd5e1}
.tool-shell input[aria-invalid=true]{border:2px solid #b91c1c}
.tool-shell .cost-row{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:16px;padding:15px 0;border-bottom:1px solid #edf0f5}
.tool-shell .cost-row:last-child{border:0}
.tool-shell .cost-name{font-size:14px;font-weight:650}
.tool-shell .cost-note{color:var(--muted);font-size:12px;margin:3px 0 7px}
.tool-shell .include-label{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted)}
.tool-shell input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px;margin:0}
.tool-shell .amount{align-self:center}
.tool-shell .money-unit{font-size:11px;display:block;color:var(--muted);margin:4px 2px 0}
.tool-shell .divider{height:1px;background:var(--line);margin:24px 0}
.tool-shell .share-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.tool-shell .callout{border-left:3px solid #a5b4fc;padding:12px 15px;background:#f8faff;color:var(--muted);font-size:13px;margin:18px 0}
.tool-shell .notice{border:1px solid #fde68a;background:var(--warn-bg);color:var(--warn);padding:12px 15px;border-radius:10px;font-size:13px;margin-top:16px}
.tool-shell .notice:empty{display:none}
.tool-shell .summary{position:sticky;top:24px}
.tool-shell .summary .card{border-top:4px solid var(--accent)}
.tool-shell .summary-title{font-size:13px;font-weight:700;color:var(--muted);margin-bottom:12px}
.tool-shell .total{font-size:clamp(32px,3.5vw,43px);line-height:1.15;letter-spacing:-.04em;font-weight:750;overflow-wrap:anywhere}
.tool-shell .total-note{font-size:12px;color:var(--muted);margin:8px 0 22px}
.tool-shell .breakdown{margin:0}
.tool-shell .breakdown div{display:flex;justify-content:space-between;gap:15px;margin:12px 0;font-size:14px}
.tool-shell .breakdown dt{color:var(--muted)}
.tool-shell .breakdown dd{margin:0;font-weight:650;text-align:right;overflow-wrap:anywhere}
.tool-shell .breakdown .strong{border-top:1px solid var(--line);padding-top:12px}
.tool-shell .comparison{width:100%;border-collapse:collapse;font-size:13px;margin:22px 0}
.tool-shell .comparison caption{text-align:left;font-weight:700;margin-bottom:10px}
.tool-shell .comparison td,.tool-shell .comparison th{padding:9px 7px;border-bottom:1px solid #e2e8f0}
.tool-shell .comparison th{text-align:left;color:var(--muted);font-weight:600}
.tool-shell .comparison td{text-align:right;font-variant-numeric:tabular-nums}
.tool-shell .comparison tr.selected{background:var(--tint)}
.tool-shell .btn{display:inline-flex;justify-content:center;align-items:center;min-height:46px;padding:10px 17px;border-radius:9px;border:1px solid var(--line);background:white;color:var(--ink);font-size:14px;font-weight:650;text-decoration:none;transition:background .15s,border-color .15s}
.tool-shell .btn:hover{background:#f1f5f9;border-color:#94a3b8}
.tool-shell .btn:disabled{opacity:.55;cursor:not-allowed}
.tool-shell .primary{background:var(--accent);border-color:var(--accent);color:white}
.tool-shell .primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.tool-shell .actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tool-shell .small-link{border:0;background:none;color:var(--muted);text-decoration:underline;text-underline-offset:3px;font-size:12px;padding:12px 0}
.tool-shell .cta{margin-top:22px;padding-top:22px;border-top:1px solid var(--line)}
.tool-shell .cta p{font-size:13px;color:var(--muted);margin:8px 0 14px}
.tool-shell .cta .btn{width:100%}
.tool-shell .scenario-grid{margin:0 0 42px}
.tool-shell .scenario-grid h2{margin-bottom:10px}
.tool-shell .scenario-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.tool-shell .table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}
.tool-shell .scenario-table{border-collapse:collapse;width:100%;min-width:620px;font-size:14px}
.tool-shell .scenario-table th,.tool-shell .scenario-table td{padding:14px 16px;border-bottom:1px solid var(--line);text-align:left}
.tool-shell .scenario-table th{background:var(--tint);font-weight:650}
.tool-shell .scenario-table td{font-variant-numeric:tabular-nums}
.tool-shell .scenario-table tr:last-child td{border:0}
.tool-shell .method{max-width:850px;margin:0 0 50px}
.tool-shell .method h2{margin:0 0 12px}
.tool-shell .method p,.tool-shell .method li{font-size:14px;color:var(--muted)}
.tool-shell .method ul{padding-left:20px}
.tool-shell .method code{font-size:12px;background:#eef2ff;padding:2px 4px}
.tool-shell .formula{padding:16px;border:1px solid var(--line);border-radius:10px;background:white}
.tool-shell .status{font-size:13px;color:var(--accent);min-height:21px;margin:10px 0 0}
.tool-shell .error{color:#b91c1c;font-size:13px;font-weight:600}
.tool-shell .error:empty{display:none}
.tool-shell .print-only{display:none}
.tool-shell footer{padding:26px 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.tool-shell footer p{margin:6px 0}
.tool-shell .inline-links{display:flex;gap:20px;flex-wrap:wrap}
.tool-shell .zero-warning{color:var(--muted);font-size:13px;margin:12px 0 0}
.tool-shell noscript .notice{max-width:850px;margin:20px 0}
.tool-shell .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1000px){.tool-shell .layout{grid-template-columns:minmax(0,1fr) 330px;gap:20px}
.tool-shell .card{padding:22px}
.tool-shell .cost-row{grid-template-columns:minmax(0,1fr) 135px;gap:12px}
}
@media(max-width:800px){.tool-shell .layout{grid-template-columns:1fr}
.tool-shell .summary{position:static}
.tool-shell .summary .card{max-width:none}
.tool-shell .hero{padding-top:40px}
.tool-shell .wrap{padding:0 20px}
.tool-shell .header-inner{min-height:70px}
.tool-shell .nav-link{display:none}
}
@media(max-width:430px){.tool-shell .wrap{padding:0 16px}
.tool-shell .card{padding:20px}
.tool-shell .config,.tool-shell .share-fields{grid-template-columns:1fr;gap:14px}
.tool-shell .cost-row{grid-template-columns:minmax(0,1fr) 110px;gap:12px}
.tool-shell .lead{font-size:17px}
.tool-shell .hero{padding-bottom:20px}
.tool-shell .amount input{padding:9px 8px}
.tool-shell .total{font-size:35px}
.tool-shell .brand{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.tool-shell *{scroll-behavior:auto!important;transition:none!important}
}
@media print{.tool-shell{background:white;font-size:11px}
.tool-shell .wrap{max-width:none;padding:0}
.tool-shell .header-inner{min-height:40px}
.tool-shell .hero{padding:20px 0 10px}
.tool-shell h1{font-size:26px}
.tool-shell .lead{font-size:12px}
.tool-shell .layout{display:block;margin-bottom:20px}
.tool-shell .summary{position:static}
.tool-shell .card{box-shadow:none;padding:15px;border-radius:0;margin-bottom:18px;break-inside:avoid}
.tool-shell .cost-row{padding:8px 0;grid-template-columns:1fr 160px}
.tool-shell .form-card{break-inside:auto}
.tool-shell .section{break-inside:avoid}
.tool-shell .pills,.tool-shell .actions,.tool-shell .small-link,.tool-shell .cta,.tool-shell .nav-link,.tool-shell .skip,.tool-shell footer,.tool-shell .status{display:none}
.tool-shell .total{font-size:30px}
.tool-shell .print-only{display:block}
.tool-shell .method{margin-bottom:0}
.tool-shell input,.tool-shell select{border:1px solid #ccc!important;min-height:30px!important;padding:4px!important}
.tool-shell .include-label{font-size:10px}
.tool-shell .help,.tool-shell .cost-note,.tool-shell .money-unit{font-size:10px}
.tool-shell .comparison{max-width:550px}
.tool-shell .config,.tool-shell .share-fields{grid-template-columns:1fr 1fr}
}
