.tool-page{background:#f5f8fc;min-height:100vh}
.tool-page .topbar{margin-bottom:28px}.tool-page .topbar nav{margin-left:auto}
.tools-main{max-width:1120px;padding:18px 0 70px}
.tools-back{display:inline-block;margin-bottom:26px;color:#53647b;text-decoration:none;font-size:14px;font-weight:600}
.tools-intro{max-width:780px;margin-bottom:32px}.tools-intro .eyebrow{color:#718198;font-size:12px;font-weight:800;letter-spacing:.12em}
.tools-intro h1{color:#10243d;font-size:clamp(36px,4.5vw,56px);line-height:1.08;letter-spacing:-1.8px;margin:10px 0 14px}
.tools-intro>p{color:#53647b;font-size:17px;line-height:1.65;margin:0}
.tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.tool-card{position:relative;min-height:250px;padding:24px;border:1px solid #e0e7ef;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(10,30,55,.05);text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}
.tool-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(10,30,55,.1)}
.tool-index{position:absolute;right:22px;top:20px;color:#9aa8b8;font-size:12px;font-weight:800}
.tool-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#fff2d0;color:#a97800;font-size:24px;font-weight:800}
.tool-card h2{color:#142b46;font-size:21px;margin:18px 0 8px}.tool-card p{color:#62748a;font-size:14px;line-height:1.6;min-height:45px;margin:0 0 19px}.tool-link{color:#9b6d00;font-size:13px;font-weight:800}
.tools-note{margin-top:24px;padding:17px 20px;border-radius:12px;border:1px solid #e3e9f0;background:#fff;color:#66778b;font-size:13px;line-height:1.6}.tools-note strong{color:#263b54}
.tools-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #dfe6ef;padding:20px 0 28px;font-size:13px}.tools-footer a{color:#52647a;text-decoration:none;font-weight:600}
.tool-calc-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:24px;align-items:start}
.tool-calc-form,.tool-result{padding:28px 30px;background:#fff;border:1px solid #e0e7ef;border-radius:18px;box-shadow:0 12px 30px rgba(10,30,55,.06)}
.tool-calc-form fieldset{display:grid;grid-template-columns:1fr 1fr;gap:0 15px;border:0;padding:0;margin:0 0 24px}.tool-calc-form legend{grid-column:1/-1;width:100%;margin-bottom:9px;padding:0 0 12px;border-bottom:1px solid #edf1f5;color:#152c47;font-size:18px;font-weight:700}
.tool-calc-form label{grid-column:1/-1;margin:11px 0 6px;color:#263b54;font-size:14px;font-weight:600}.tool-calc-form label span{color:#718198;font-weight:400}
.tool-calc-form input{grid-column:1/-1;width:100%;min-height:46px;padding:10px 12px;border:1px solid #cfd8e4;border-radius:9px;background:#fff;color:#172b43;font:inherit;font-size:16px}
.tool-calc-form input:focus{outline:3px solid rgba(246,178,25,.24);border-color:#e4a70d}.tool-calc-form small{grid-column:1/-1;margin-top:6px;color:#738399;font-size:12px;line-height:1.5}
.tool-result{position:sticky;top:24px;background:#10243d;color:#fff}.tool-result .eyebrow{margin:0;color:#bdc9d7;font-size:11px;font-weight:800;letter-spacing:.12em}.tool-result h2{margin:8px 0 20px;font-size:23px}
.tool-result-primary{margin:0 0 22px;color:#ffc23a;font-size:clamp(42px,5vw,62px);font-weight:800;line-height:1;letter-spacing:-1.5px}.tool-result-primary span{font-size:17px;font-weight:600;letter-spacing:0;color:#e1e8f0}
.tool-result-lines{margin:0;padding:0;list-style:none;border-top:1px solid rgba(255,255,255,.16)}.tool-result-lines li{display:flex;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.13);font-size:13px}.tool-result-lines span{color:#c0ccda}.tool-result-lines strong{text-align:right}
.tool-result-note{margin:18px 0 0;color:#c0ccda;font-size:12px;line-height:1.6}.tool-back-home{display:inline-block;margin:20px 0 0;color:#ffcc56;text-decoration:none;font-size:13px;font-weight:700}
.work-estimator{margin-top:28px;padding:28px 30px;background:#fff;border:1px solid #e0e7ef;border-radius:18px;box-shadow:0 12px 30px rgba(10,30,55,.06)}
.estimate-heading{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;padding-bottom:20px;border-bottom:1px solid #edf1f5}.estimate-heading .eyebrow{font-size:11px;letter-spacing:.12em;font-weight:800;color:#9b6d00}.estimate-heading h2{margin:7px 0;color:#142b46;font-size:24px}.estimate-heading p{margin:0;color:#62748a;font-size:14px;line-height:1.55}.estimate-level{min-width:170px;color:#52647a;font-size:12px;font-weight:700}.estimate-level select{display:block;width:100%;margin-top:6px;min-height:42px;padding:8px 10px;border:1px solid #cfd8e4;border-radius:9px;background:#fff;color:#172b43;font:inherit;font-size:14px}
.estimate-line{display:grid;grid-template-columns:minmax(220px,2fr) minmax(120px,.8fr) minmax(140px,.9fr) minmax(100px,.7fr) 38px;gap:12px;align-items:end;padding:16px 0;border-bottom:1px solid #edf1f5}.estimate-line label{display:block;color:#52647a;font-size:12px;font-weight:700}.estimate-line label span{color:#8391a2;font-weight:500}.estimate-line select,.estimate-line input{display:block;width:100%;margin-top:6px;min-height:42px;padding:8px 10px;border:1px solid #cfd8e4;border-radius:8px;background:#fff;color:#172b43;font:inherit;font-size:13px}.estimate-line-total{padding-bottom:11px;text-align:right;color:#172b43;font-size:14px}.estimate-remove{width:36px;height:38px;border:1px solid #e1e7ef;border-radius:8px;background:#fff;color:#8a5260;font-size:21px;cursor:pointer}.estimate-actions{display:flex;align-items:center;gap:18px;padding:17px 0}.estimate-add{padding:10px 14px;border:1px solid #e8c35e;border-radius:9px;background:#fff8e5;color:#785900;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.estimate-actions>a{color:#536b86;text-decoration:none;font-size:13px;font-weight:700}.estimate-breakdown{display:grid;gap:0;border-radius:12px;overflow:hidden;background:#f3f6fa}.estimate-breakdown>div:not(.estimate-total){display:flex;justify-content:space-between;gap:18px;padding:11px 15px;border-bottom:1px solid #e1e7ef;color:#52647a;font-size:13px}.estimate-breakdown>div strong{color:#172b43}.estimate-total{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 20px;background:#10243d;color:#fff}.estimate-total span{font-size:14px}.estimate-total strong{color:#ffcc56;font-size:25px}.estimate-footnote{margin:14px 0 0;color:#78879a;font-size:11px;line-height:1.55}
@media(max-width:850px){.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-calc-layout{grid-template-columns:1fr}.tool-result{position:static}}
@media(max-width:700px){.estimate-heading{flex-direction:column}.estimate-level{width:100%}.estimate-line{grid-template-columns:1fr 1fr;gap:10px}.estimate-line label:first-child{grid-column:1/-1}.estimate-line-total{text-align:left}.estimate-remove{justify-self:end}.work-estimator{padding:22px 18px}}
@media(max-width:520px){.tool-page .topbar{height:auto;min-height:72px;margin-bottom:12px}.tool-page .topbar nav,.tool-page .top-actions{display:none}.tools-main{padding-top:12px}.tools-intro h1{letter-spacing:-1px}.tools-intro>p{font-size:15px}.tools-grid{grid-template-columns:1fr;gap:12px}.tool-card{min-height:0;padding:20px}.tool-card p{min-height:0}.tools-footer{flex-direction:column}.tool-calc-form,.tool-result{padding:22px 19px}.estimate-total{align-items:flex-start;flex-direction:column}.estimate-total strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){.tool-card{transition:none}}
.estimate-offer-link{display:inline-flex;margin-top:15px;padding:12px 16px;border-radius:9px;background:#ffb000;color:#071a33;text-decoration:none;font-size:13px;font-weight:800}.estimate-offer-link:hover{background:#ffc33d}

.estimate-document-link{display:inline-flex;margin:15px 0 0 12px;color:#174c31;font-size:13px;font-weight:700;text-underline-offset:3px}
@media(max-width:560px){.estimate-document-link{margin-left:0}}

.estimate-job-link{display:inline-flex;margin:15px 0 0 12px;padding:12px 16px;border:1px solid #174c31;border-radius:9px;background:#fff;color:#174c31;font:700 13px Arial,sans-serif;cursor:pointer}
@media(max-width:560px){.estimate-job-link{margin-left:0}}
