:root{scroll-behavior:smooth}body{background:#f4f6f4}body>header{height:88px}.back-link{font-size:12px;color:var(--brand);white-space:nowrap}#cost-nav{position:fixed;left:0;top:88px;bottom:0;width:186px;background:white;border-right:1px solid #e2e9e3;padding:24px 12px;display:flex;flex-direction:column;gap:10px;z-index:9}#cost-nav button{border:0;background:transparent;display:flex;align-items:center;gap:12px;text-align:left;font-size:12px;color:#718077;padding:14px;border-radius:9px}#cost-nav button>span{font-size:23px;width:24px;text-align:center;color:var(--brand)}#cost-nav button[aria-current]{background:#eaf2ec;color:var(--brand);font-weight:700}body>#cost-editor{margin:26px 0 0 186px;padding:0 26px;display:grid;grid-template-columns:minmax(0,1fr) 305px;max-width:1700px;gap:22px}#cost-editor>section,#cost-editor>aside{min-width:0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading h1{font-size:24px;letter-spacing:-.6px}.page-heading p{margin:8px 0 0}.eyebrow{font-size:9px;letter-spacing:1.5px;color:var(--brand);font-weight:700}.card{padding:22px;border-radius:14px}label{font-size:12px}.full{grid-column:1/-1}.grid>div{min-width:0}input,select{min-height:43px}input[type=number]{font-variant-numeric:tabular-nums}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px;flex-wrap:wrap}.section-heading h2{margin:0 0 5px}.section-heading button{font-size:12px;padding:9px 12px}.table-scroll{max-width:100%;overflow-x:auto}table{min-width:580px}td:first-child{width:30%;min-width:165px}td input,td select{min-width:86px}th{font-size:10px;white-space:nowrap}td small{font-size:10px}.remove-row{padding:4px 9px;color:#b44649;border-color:transparent;font-size:20px}.section-total{display:flex;align-items:center;justify-content:space-between;margin-top:18px;font-size:12px;color:#738378}.section-total strong{color:var(--brand)}.inline-note{font-size:11px;line-height:1.6;color:#7a8a7f;margin-top:15px}.cost-summary{position:sticky;top:108px}.cost-summary h2{margin-top:13px}.metric{margin:20px 0}.metric>span{display:block;font-size:12px;color:#718478;margin-bottom:8px}.metric>strong{font-size:25px;color:var(--brand)}.hero-metric{background:#f0f5f1;padding:18px;border:1px solid #e0e9e2;border-radius:12px}.hero-metric>strong{font-size:32px}.hero-metric small{display:block;color:#7b8a80;font-size:10px;margin-top:6px}.summary-lines{font-size:11px}.summary-lines>div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #edf1ed;color:#7d8a80}.summary-lines b{color:#314d3b;font-variant-numeric:tabular-nums;text-align:right}.cost-summary button{display:block;width:100%;margin-top:10px;font-size:12px}.cost-chart{display:flex;height:7px;border-radius:10px;overflow:hidden;margin:22px 0 15px;background:#eef2ee}.cost-legend>div{display:flex;justify-content:space-between;font-size:10px;color:#7c8a7d;margin:8px 0}.cost-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px}.cost-summary #status{font-size:12px;line-height:1.5}.cost-summary>small{display:block;font-size:10px;margin-top:12px}.negative{color:#b32f3c!important}.comparison{padding:15px;background:#eff4ef;border-radius:8px;font-size:12px;line-height:1.7}#validation{font-size:12px;color:#a6323c;line-height:1.6;margin-bottom:12px}#materials,#labor,#pricing{scroll-margin-top:110px}#cost-history{margin:30px 28px 40px 214px}.history-tools{display:flex;gap:15px;align-items:center;margin-bottom:24px}.history-tools input{max-width:480px}.import-button{cursor:pointer;display:block;white-space:nowrap;border:1px solid #d4e0d8;border-radius:8px;background:#fff;padding:12px 15px;font-size:12px;margin:0}.history-item{background:#fff;border:1px solid #dfe7e1;border-radius:13px;padding:22px;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:20px}.history-item h3{font-size:18px;margin:8px 0 10px}.history-item b{color:var(--brand)}.history-actions{display:flex;gap:8px;flex-wrap:wrap}.history-actions button{font-size:12px}.cost-footer{margin:30px 26px 30px 212px;padding:20px 0;border-top:1px solid #dfe7e0;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#849083;font-size:11px}.cost-footer a{color:var(--brand)}@media(max-width:1150px){body>#cost-editor{grid-template-columns:minmax(0,1fr) 270px;padding:0 18px;gap:16px}.card{padding:18px}.page-heading{flex-wrap:wrap}.page-heading h1{font-size:22px}.hero-metric>strong{font-size:27px}}@media(max-width:980px){body>#cost-editor{grid-template-columns:1fr}.cost-summary{position:static}.summary-lines{font-size:12px}}@media(max-width:700px){body>header{height:80px;padding-left:18px;padding-right:18px}.back-link{font-size:10px}#cost-nav{top:auto;bottom:0;width:100%;height:auto;min-height:75px;left:0;right:0;flex-direction:row;gap:0;padding:7px 4px calc(7px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid #dce5de;box-shadow:0 -4px 18px #26483308;justify-content:space-around}#cost-nav button{flex-direction:column;justify-content:center;gap:3px;padding:5px 2px;font-size:10px;flex:1}#cost-nav button>span{font-size:22px}body>#cost-editor{margin:23px 0 0;width:100%;max-width:100%;padding:0 18px calc(110px + env(safe-area-inset-bottom));gap:18px}
  body>#cost-editor>aside{order:-1}.page-heading{gap:12px;margin-bottom:23px}.page-heading h1{font-size:23px;line-height:1.3}.grid{grid-template-columns:1fr 1fr!important;gap:14px 12px}.grid input,.grid select{font-size:16px;min-width:0}.card{padding:18px;width:100%;min-width:0}.card h2{font-size:16px}.cost-summary .metric>strong{font-size:30px}.cost-summary .hero-metric>strong{font-size:36px}.cost-footer{margin:10px 18px calc(105px + env(safe-area-inset-bottom));font-size:10px}#cost-history{margin:25px 18px calc(110px + env(safe-area-inset-bottom))}.history-item{padding:18px;flex-wrap:wrap}.history-actions{width:100%}.history-actions button{flex:1;padding:10px 7px}.history-tools{flex-wrap:wrap}.import-button{width:100%;text-align:center}.section-heading button{font-size:11px}#materials,#labor,#pricing{scroll-margin-top:100px}}@media(prefers-reduced-motion:reduce){:root{scroll-behavior:auto}}
