/* Civil references only. Match the supplied CBM typography and surface treatment.
   Shared reference.css and the two Logistics pages remain unchanged. */
:root{font-family: inherit;}
.civil-unused-header{height:50px;background:#f8fbff;border-color:#e2e8f1;padding-inline:24px;gap:28px}
header .brand{font-size:19px;font-weight:700;gap:8px;color:#18213a}
header .brand b{width:26px;height:27px;font-size:21px;background:#ffbf19}
header nav{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0))}
header nav a{color:#253858}
.search{background:#fff;border-color:#cdd7e5}
.search input{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0))}
.privacy{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));font-weight:600;background:#ebf8f1;border-color:#bee3ce;color:#147742}
main{padding:10px 24px 9px}
.breadcrumb{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));color:#5b6d89;margin-bottom:8px}
.title{margin-bottom:13px;gap:14px}
h1{font-size:36px;line-height:1.14;letter-spacing:-1px;font-weight:700;color:#152445;margin-bottom:5px}
.title p{font-size:calc(13px + (15px - 13px) * var(--fs-lift, 0));line-height:1.4;color:#586f91}
.reference-tag{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));padding:7px 9px;border-radius:5px;color:#376294;background:#fff;box-shadow:0 1px 3px #18294b06}
h2{font-size:16px;font-weight:700;line-height:1.3;color:#19294d}
h3{font-size:calc(13px + (15px - 13px) * var(--fs-lift, 0));font-weight:700;line-height:1.35;color:#243557}
.workspace{gap:12px;grid-template-columns:minmax(0,1.23fr) minmax(0,1fr)}
.input-card,.visual-card,.results{border-color:#e0e6f0;border-radius:8px;background:#fff;box-shadow:0 1px 3px #17284a0b}
.input-card,.visual-card{padding:12px}
.mode-bar{background:#f6f8fc;border-color:#e5eaf3;margin-bottom:9px}
.mode-bar button{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));font-weight:500;min-height:34px;color:#354970}
.mode-bar button[aria-pressed=true]{background:#1465ef;border-color:#1465ef;color:#fff;font-weight:600;box-shadow:0 1px 2px #0b51cb22}
.mode-bar button[aria-pressed=true] .mode-symbol{color:#fff}
.mode-symbol{color:#38669d}
.unit-row{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));color:#4c5f7e}
.unit-row select{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));height:30px;background:#fff}
.field{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));color:#354563;gap:5px;font-weight:400}
.field>span:first-child{min-height:16px}
input,select,textarea{font-size:calc(13px + (15px - 13px) * var(--fs-lift, 0));color:#26365b;border-color:#d7dfec;border-radius:5px;background:#fff;height:34px;padding:7px 9px}
.field select{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0))}
.suffix{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));color:#5b6f8e;top:10px}
.fields{gap:8px 10px}
.field-group{margin-bottom:9px}
.field-group h3{margin-bottom:7px}
.dimensions{margin-bottom:9px}
.hint{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));color:#627596;line-height:1.45}
.section-head{margin-bottom:8px}
.row-section{margin-top:9px}
.row-count{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));color:#5b6f8e}
.row-head{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));font-weight:600;background:#f6f8fc;color:#415372;padding:5px}
.data-row{border-color:#e9eef5;padding-block:3px}
.data-row input,.data-row select{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));height:31px}
.delete{color:#536484}
button{border-color:#d6e1f3;border-radius:5px;font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));font-weight:500;color:#1063ed}
.small{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));min-height:28px}
.calculate-row{margin-top:10px}
.calculate{background:#ffc126;border-color:#ffbf1d;color:#172337;min-height:38px;font-size:calc(14px + (15px - 14px) * var(--fs-lift, 0));font-weight:600}
.calculate:hover{background:#ffcd4b}
.reset{color:#536989;font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));font-weight:400}
.visual-card .section-head{align-items:center}
.illustrative{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0));color:#5b6f8e}
.dimension-badges span{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));color:#30476b;border-color:#dce4f1;box-shadow:0 1px 3px #24395b0a}
.basis-banner{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));color:#50698d;background:#f0f5ff;border-color:#e6edfa;padding:7px 9px}
.results{margin-top:10px;padding:10px 12px;background:#fff}
.status{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));font-weight:500;color:#167649;background:#eefaf3;border-color:#cae9d7}
.kpis{gap:7px}
.kpi,.kpi:first-child,.kpi:last-child{padding:10px 11px;border:1px solid #e1e7f1;border-radius:6px;background:#fff}
.kpi .name{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));line-height:1.3;color:#53617e;margin-bottom:5px}
.kpi strong,.kpi:first-child strong{font-size:22px;font-weight:700;line-height:1.2;color:#20335d}
.kpi small{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));font-weight:500}
.kpi em{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));color:#5b6f8e;margin-top:4px}
.kpi.money{background:#fff7df;border-color:#ffebaf}
.kpi.money strong{font-size:22px}
.result-lower{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));color:#586e8e;margin-top:7px}
.result-cost{color:#314d78}
.below{gap:10px;margin-top:10px}
.advanced{border-color:#e0e6f0;border-radius:7px;box-shadow:0 1px 2px #17284a05}
.advanced-list .advanced>summary{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));font-weight:600;color:#30486d;min-height:46px;padding:8px 10px;line-height:1.35}
.advanced-body{border-color:#e6ecf4}
.pricing{border-color:#d1e0fc;background:#eef4ff;border-radius:7px}
.pricing>summary{padding:8px 11px;min-height:46px;color:#24385b}
.price-heading{font-size:calc(13px + (15px - 13px) * var(--fs-lift, 0));font-weight:700}
.price-heading small{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0));color:#526988}
.pricing-total{font-size:18px;color:#23395f;font-weight:700}
.pricing-body{background:#fbfdff;border-color:#d9e5f7}
.pricing-note,.pricing-rounding{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));color:#5d7293}
.pricing-breakdown table{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0))}
.output button{font-size:calc(13px + (15px - 13px) * var(--fs-lift, 0));min-height:40px;font-weight:600}
.output .print{background:#ffc126;border-color:#ffbf1d;color:#172337}
.output .copy{background:#fff;color:#1063ed;border-color:#cfdffb}
.warning{border-color:#e0e6f0;background:#fff;color:#35496e;border-radius:7px;box-shadow:0 1px 3px #17284a06;margin-top:9px}
.warning summary{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));min-height:36px;padding:8px 11px}
.warning summary .icon{color:#e69d00}
.utilities{gap:9px;margin-top:9px}
.utilities details{border-color:#e0e6f0}
.utilities summary{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));min-height:36px;color:#253b62}
.utility-body{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));color:#5d7190}
.civil-unused-footer{background:#f3f7fd;border-color:#e0e7f1;padding:8px 24px}
.footer-top .brand{font-size:17px}
.footer-top p,.footer-top nav{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));color:#60728d}
.footer-categories{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0));gap:18px;color:#586d8d}
@media(min-width:701px){
 main{padding-top:8px;padding-bottom:6px}.title{margin-bottom:8px}.input-card,.visual-card{padding:8px 12px}
 .unit-row{top:13px}.mode-bar{margin-right:167px;margin-bottom:7px}
 .field{gap:4px}input,select{height:32px}
 .field-group{margin-bottom:6px}.field-group h3{margin-bottom:4px}
 .dimensions{margin-bottom:6px}.fields{gap:6px 10px}
 .row-section{margin-top:6px}.section-head{margin-bottom:6px}
 .row-head{padding-block:3px}.data-row{padding-block:2px}.data-row input,.data-row select{height:29px}
 .small{min-height:26px}.calculate-row{margin-top:6px}.calculate{min-height:37px}
 .artwork{height:235px}
 .results{padding:7px 12px;margin-top:7px}.kpi,.kpi:first-child,.kpi:last-child{padding:6px 10px}
 .kpi .name{margin-bottom:2px}.kpi em{margin-top:3px}.result-lower{margin-top:4px}
 .below{margin-top:6px}.advanced-list{grid-template-columns:1.05fr 1fr 1fr}
 .advanced-list .advanced>summary{padding:6px 10px;min-height:44px}.pricing>summary{min-height:44px;padding:6px 10px}
 .warning{margin-top:6px}.warning summary{min-height:32px;padding:6px 10px}.utilities{margin-top:6px}.utilities summary{min-height:34px;padding-block:7px}
 .civil-unused-footer{padding-block:6px}.footer-top p,.footer-top nav{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0))}.footer-categories{font-size:calc(9px + (15px - 9px) * var(--fs-lift, 0));padding-top:6px;margin-top:6px}
}
@media(max-width:1100px) and (min-width:701px){.civil-unused-header{gap:18px}.reference-tag{display:none}.workspace{grid-template-columns:1.15fr 1fr}.below{grid-template-columns:1fr 310px}.kpi strong{font-size:20px}.advanced-list .advanced>summary{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0))}}
@media(max-width:700px){
 .civil-unused-header{height:54px;padding-inline:13px;gap:10px}header .brand{font-size:17px}
 main{padding:12px}.breadcrumb{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));margin-bottom:11px}
 .title{margin-bottom:13px}.title h1{font-size:29px;font-weight:700;line-height:1.15;letter-spacing:-.7px;margin-bottom:7px}.title p{font-size:calc(13px + (15px - 13px) * var(--fs-lift, 0));line-height:1.45}
 h2{font-size:16px}h3,.field-group h3{font-size:calc(13px + (15px - 13px) * var(--fs-lift, 0))}.field{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0))}
 .mode-bar{margin:0 0 10px}.mode-bar button{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));min-height:44px}
 input,select,.field select,.data-row input,.data-row select,.unit-row select{font-size:calc(14px + (15px - 14px) * var(--fs-lift, 0));min-height:44px;height:44px}
 .unit-row{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0))}.suffix{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));top:15px}
 .small,.delete{min-height:44px}.small{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0))}
 .data-row label>span{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0))}.data-row{background:#fbfcff;border-color:#e0e6f0}
 .calculate,.reset{min-height:46px;font-size:calc(14px + (15px - 14px) * var(--fs-lift, 0))}.calculate-row{margin-top:13px}
 .visual-card h2{font-size:15px}.visual-card .section-head{flex-wrap:wrap;gap:4px}.illustrative{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0))}
 .artwork{height:232px;min-height:232px}.dimension-badges span{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0))}
 .results h2{font-size:16px}.status{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0))}.kpi{min-height:88px}
 .kpi .name{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0))}.kpi strong,.kpi:first-child strong{font-size:24px;white-space:normal;overflow-wrap:anywhere}.kpi.money strong{font-size:23px}.kpi em{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0))}
 .result-lower{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0))}.pricing>summary{min-height:60px}.price-heading{font-size:calc(14px + (15px - 14px) * var(--fs-lift, 0))}.pricing-total{font-size:22px}
 .pricing-note,.pricing-rounding{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0))}.price-enable,.currency-label{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0))}
 .pricing-breakdown th,.pricing-breakdown td{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0))}
 .advanced-list .advanced>summary,.utilities summary,.warning summary{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));min-height:46px}
 .output button{font-size:calc(13px + (15px - 13px) * var(--fs-lift, 0));min-height:46px}.utilities{margin-top:11px}
 .civil-unused-footer{padding:17px 14px}.footer-categories{gap:9px 14px;font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0))}
}
@media print{body{background:#fff}main{padding:10px}.kpi strong{font-size:22px}}
/* Sample-matched bounded workspace: input stack left, illustration/results right. */
main{max-width:1366px;margin-inline:auto}
.civil-unused-header{padding-inline:max(24px,calc((100vw - 1318px)/2))}
.civil-unused-footer{padding-inline:max(24px,calc((100vw - 1318px)/2))}
.civil-workspace{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px;align-items:start}
.civil-input-column,.civil-result-column{min-width:0;display:flex;flex-direction:column;gap:9px}
.civil-workspace .input-card{padding:13px 12px}
.civil-workspace .input-card>.sr-only{position:static;width:auto;height:auto;clip-path:none;overflow:visible;white-space:normal;margin-bottom:11px;font-size:16px}
.civil-workspace .mode-bar{margin-right:0;margin-top:31px}
.civil-workspace .unit-row{top:42px;right:15px}
.civil-workspace .mode-bar button{font-weight:600}
.civil-workspace .advanced-list{display:flex;flex-direction:column;gap:8px}
.civil-workspace .advanced-list .advanced>summary{font-weight:600;font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0));min-height:40px}
.civil-workspace .pricing>summary{min-height:48px}
.civil-workspace .price-heading{font-size:calc(14px + (15px - 14px) * var(--fs-lift, 0))}
.civil-workspace .visual-card{padding:12px}
.civil-workspace .visual-card .section-head{flex-wrap:wrap;gap:4px;margin-bottom:6px}
.civil-workspace .artwork{height:213px;min-height:213px;flex:none}
.civil-workspace .artwork img{max-height:213px}
.civil-workspace .basis-banner{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0));line-height:1.35;padding:6px 8px}
.civil-workspace .results{margin:0;padding:10px}
.civil-workspace .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.civil-workspace .kpi{padding:7px 9px;min-height:68px}
.civil-workspace .kpi strong,.civil-workspace .kpi:first-child strong{font-size:20px;line-height:1.15;white-space:normal;overflow-wrap:anywhere}
.civil-workspace .kpi .name{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));margin-bottom:4px}
.civil-workspace .kpi em{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0));margin-top:3px}
.civil-workspace .result-lower{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0));line-height:1.4;display:block}
.civil-workspace .output{margin-top:0}
.civil-workspace .output button{min-height:40px;font-size:calc(13px + (15px - 13px) * var(--fs-lift, 0))}
.reference-tag{border:0;box-shadow:none;background:none;color:#536b8b}
@media(min-width:701px){
 .civil-workspace .dimensions .fields{grid-template-columns:repeat(4,minmax(0,1fr))}
 .civil-workspace .fields{gap:7px 9px}
 .civil-workspace .mode-bar button{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));padding-inline:4px}
 .civil-workspace .input-card{padding-top:10px;padding-bottom:10px}
 .civil-workspace .input-card>.sr-only{margin-bottom:7px}
 .civil-workspace .unit-row{top:10px}
 .civil-workspace .mode-bar{margin-top:12px}
 .civil-workspace .kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
 .civil-workspace .kpi{padding:8px 7px;min-height:86px}
 .civil-workspace .kpi strong,.civil-workspace .kpi:first-child strong{font-size:18px;letter-spacing:-.35px}
 .civil-workspace .kpi small{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0));letter-spacing:0}
 .civil-workspace .kpi .name{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0));min-height:26px}
 .civil-workspace .kpi em{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0))}
 body[data-tool=tile-flooring] .civil-workspace .artwork{height:210px;min-height:210px;flex:0 0 210px}
}
@media(max-width:700px){
 .civil-unused-header{padding-inline:13px}.civil-unused-footer{padding-inline:14px}
 .civil-workspace,.civil-input-column,.civil-result-column{display:contents}
 #calculator{display:flex;flex-direction:column;gap:11px}
 .civil-workspace .input-card{order:0;padding:12px}
 .civil-workspace .mode-bar{margin-top:0;order:initial}
 .civil-workspace .unit-row{position:static}
 .civil-workspace .advanced-list{display:contents}
 .civil-workspace .visual-card{order:1}
 .civil-workspace .results{order:2}
 .civil-workspace .pricing{order:3}
 .civil-workspace .output{order:4}
 .civil-workspace .advanced{order:5}
 .civil-workspace .mode-bar button{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0))}
 .civil-workspace .artwork{height:232px;min-height:232px}
 .civil-workspace .kpi{min-height:88px;padding:10px}
 .civil-workspace .kpi strong{font-size:23px}
 .civil-workspace .kpi .name{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0))}.civil-workspace .kpi em{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0))}
 .civil-workspace .advanced-list .advanced>summary,.civil-workspace .output button{min-height:46px}
}
@media print{.civil-workspace,.civil-input-column,.civil-result-column{display:block}.civil-workspace .output{display:none}}
/* Sample icon palette; the equal-width stripe is a category accent, not a quantity chart. */
body{
 --cube-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='m3 7 9-5 9 5v10l-9 5-9-5V7Zm0 0 9 5 9-5M12 12v10M7 5l9 5'/%3E%3C/svg%3E");
 --coins-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cellipse cx='10' cy='6' rx='7' ry='3'/%3E%3Cpath d='M3 6v4c0 4 14 4 14 0V6M3 10v4c0 4 14 4 14 0M3 14v4c0 4 14 4 14 0v-4M19 4c4 1 4 4 0 5m0 0v4c4-1 4-4 0-4m0 4v4c4-1 4-4 0-4'/%3E%3C/svg%3E");
 --measure-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='M3 5h18v14H3zM7 5v5m5-5v3m5-3v5M7 19v-4m5 4v-2m5 2v-4'/%3E%3C/svg%3E");
 --bag-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='m5 7-2 14h18L19 7H5ZM9 8V5a3 3 0 0 1 6 0v3m-3 3v6m-3-3h6'/%3E%3C/svg%3E");
}
@media (min-width: 701px) {
  main{max-width:1440px;padding-inline:20px}
}
.civil-unused-header,.civil-unused-footer{padding-inline:max(20px,calc((100vw - 1400px)/2))}
h1{font-weight:750;color:#142346}
.civil-workspace h2{font-weight:700;color:#19294d;font-size:16px}
.civil-workspace .input-card>.sr-only{display:flex;align-items:center;gap:8px;padding-right:170px;min-height:22px}
.civil-workspace .input-card>.sr-only::before{content:"";width:20px;height:20px;flex:none;background:#1265f5;mask:var(--measure-icon) center/contain no-repeat}
.civil-workspace .visual-card h2{display:flex;align-items:center;gap:7px}
.civil-workspace .visual-card h2::before{content:"";width:20px;height:20px;flex:none;background:#1265f5;mask:var(--cube-icon) center/contain no-repeat}
.civil-workspace .results h2 .icon{color:#1265f5;width:20px;height:20px}
.civil-workspace .pricing>summary::before{content:"";width:25px;height:25px;flex:none;background:#0866ff;mask:var(--coins-icon) center/contain no-repeat;margin-right:3px}
.civil-workspace .pricing{background:linear-gradient(100deg,#edf4ff,#f6f9ff);border-color:#cbdfff}
.civil-workspace .advanced>summary>.icon{color:#1265f5;width:19px;height:19px}
.civil-workspace .calculate{flex:0 1 220px;min-height:38px}
.civil-workspace .calculate-row{justify-content:center}
.civil-workspace .calculate .icon,.civil-workspace .print .icon{color:#14213a;stroke-width:1.9;width:20px;height:20px}
.civil-workspace .copy .icon{color:#0667ff;width:22px;height:22px}
.civil-workspace .output{gap:9px;grid-template-columns:1.05fr 1fr}
.civil-workspace .output button{min-height:42px;font-size:calc(14px + (15px - 14px) * var(--fs-lift, 0))}
.civil-workspace .kpis{position:relative;padding-bottom:12px}
.civil-workspace .kpis::after{content:"";position:absolute;bottom:0;left:1px;right:1px;height:6px;border-radius:3px;background:linear-gradient(to right,#176bff 0% 25%,#26bb7c 25% 50%,#ff963f 50% 75%,#9064ed 75% 100%)}
.civil-workspace .kpi{position:relative;--accent:#11ad63;--metric-icon:var(--cube-icon)}
.civil-workspace .kpi:nth-child(2){--accent:#176bff;--metric-icon:var(--measure-icon)}
.civil-workspace .kpi:nth-child(3){--accent:#f4b000;--metric-icon:var(--bag-icon)}
.civil-workspace .kpi:nth-child(4){--accent:#ff586b;--metric-icon:var(--cube-icon)}
.civil-workspace .kpi.money{--metric-icon:var(--coins-icon)}
.civil-workspace .kpi .name{padding-left:24px;position:relative}
.civil-workspace .kpi .name::before{content:"";position:absolute;left:0;top:1px;width:20px;height:20px;background:var(--accent);mask:var(--metric-icon) center/contain no-repeat}
.warning summary>.icon{width:24px;height:24px;padding:3px;color:#fff;background:#ffba00;border-radius:4px}
.warning summary{font-weight:500}
@media(min-width:701px){
 .civil-workspace .artwork{height:198px;min-height:198px}
 body[data-tool=tile-flooring] .civil-workspace .artwork{height:190px;min-height:190px;flex:0 0 190px}
 .civil-workspace .kpi .name{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0));min-height:27px}
}
@media(max-width:700px){
 main{padding-inline:12px}.civil-unused-header{padding-inline:13px}.civil-unused-footer{padding-inline:14px}
 .civil-workspace .input-card>.sr-only{padding-right:0;line-height:1.35;margin-bottom:12px}
 .civil-workspace .calculate{flex:1;min-height:46px}
 .civil-workspace .output button{font-size:calc(13px + (15px - 13px) * var(--fs-lift, 0));min-height:46px}
 .civil-workspace .kpi .name{min-height:28px}
 .civil-workspace .artwork{height:232px;min-height:232px}
 .civil-workspace .visual-card h2{font-size:15px}
}

body{--cube-white:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='m3 7 9-5 9 5v10l-9 5-9-5V7Zm0 0 9 5 9-5M12 12v10M7 5l9 5'/%3E%3C/svg%3E");--measure-white:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linejoin='round'%3E%3Cpath d='M3 5h18v14H3zM7 5v5m5-5v3m5-3v5M7 19v-4m5 4v-2m5 2v-4'/%3E%3C/svg%3E");--coins-white:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4'%3E%3Cellipse cx='10' cy='6' rx='7' ry='3'/%3E%3Cpath d='M3 6v4c0 4 14 4 14 0V6M3 10v4c0 4 14 4 14 0M3 14v4c0 4 14 4 14 0v-4M19 4c4 1 4 4 0 5m0 0v4c4-1 4-4 0-4m0 4v4c4-1 4-4 0-4'/%3E%3C/svg%3E");}
/* Strong sample-style heading badges and heavier icon strokes. */
h1{font-weight:800;color:#102044}
.civil-workspace h2,.civil-workspace .input-card>.sr-only{font-size:17px;font-weight:750;line-height:1.3;color:#13254a}
.civil-workspace h3,.civil-workspace .field-group h3{font-size:calc(14px + (15px - 14px) * var(--fs-lift, 0));font-weight:700;color:#203657}
.civil-workspace .price-heading{font-size:15px;font-weight:750;color:#182d50}
.civil-workspace .input-card>.sr-only::before{width:28px;height:28px;mask:none;background:#1265f5 var(--measure-white) center/20px 20px no-repeat;border-radius:6px}
.civil-workspace .visual-card h2::before{width:28px;height:28px;mask:none;background:#1265f5 var(--cube-white) center/20px 20px no-repeat;border-radius:6px}
.civil-workspace .results h2{display:flex;gap:7px;align-items:center}
.civil-workspace .results h2 .icon{width:28px;height:28px;padding:5px;background:#1265f5;color:white;border-radius:6px;stroke-width:2.4}
.civil-workspace .pricing>summary::before{width:30px;height:30px;mask:none;background:#1265f5 var(--coins-white) center/23px 23px no-repeat;border-radius:6px}
.civil-workspace .advanced>summary>.icon{width:28px;height:28px;padding:5px;background:#1265f5;color:#fff;border-radius:6px;stroke-width:2.4}
.civil-workspace .advanced>summary{font-weight:700}
.civil-workspace .calculate .icon,.civil-workspace .print .icon{width:27px;height:27px;padding:3px;border-radius:4px;background:#ffffff40;stroke-width:2.4}
.civil-workspace .copy .icon{width:27px;height:27px;padding:3px;border-radius:4px;background:#eaf2ff;stroke-width:2.4}
.civil-workspace .kpi .name{padding-left:31px;min-height:28px;font-weight:500}
.civil-workspace .kpi .name::before{left:3px;top:4px;width:21px;height:21px;z-index:1}
.civil-workspace .kpi .name::after{content:"";position:absolute;left:0;top:1px;width:27px;height:27px;background:color-mix(in srgb,var(--accent) 12%,white);border:1px solid color-mix(in srgb,var(--accent) 25%,white);border-radius:5px;z-index:0}
.utilities summary .icon{width:24px;height:24px;padding:3px;border-radius:5px;background:#eef4ff;stroke-width:2.3}
.utilities details:nth-child(3) .icon,.utilities details:nth-child(5) .icon{background:#f3edfc}
.utilities details:nth-child(4) .icon{background:#ffedf3}
.warning summary>.icon{width:28px;height:28px;padding:4px;stroke-width:2.5}
.warning summary{font-size:calc(13px + (15px - 13px) * var(--fs-lift, 0));font-weight:600}
@media(max-width:700px){
 .civil-workspace .visual-card h2,.civil-workspace .results h2{font-size:16px}
 .civil-workspace .input-card>.sr-only{font-size:16px}
 .civil-workspace .kpi .name{font-weight:500}
}
@media(min-width:701px){
 .civil-workspace .input-card{padding-block:8px}
 .civil-workspace .mode-bar{margin-top:8px}
 .civil-workspace .field-group{margin-bottom:4px}
 .warning summary{padding-block:4px}
 .utilities summary{padding-block:5px}
 .civil-input-column,.civil-result-column{gap:8px}
}
@media(min-width:701px){.civil-workspace .mode-bar{margin-top:4px}}
@media(min-width:701px){.title{margin-bottom:4px}}
/* Summary hierarchy follows the reference: title, metrics, labelled detail section. */
.civil-workspace .results h2{font-size:17px;font-weight:750;line-height:1.25}
.civil-workspace .kpis{padding-bottom:0;align-items:stretch}
.civil-workspace .kpis::after{display:none}
.civil-workspace .kpi .name{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));font-weight:600;line-height:1.3;min-height:30px;color:#405372}
.civil-workspace .kpi strong,.civil-workspace .kpi:first-child strong{font-size:19px;font-weight:700;line-height:1.2;letter-spacing:-.25px;color:#172d53;margin-top:3px}
.civil-workspace .kpi small{font-size:calc(10px + (15px - 10px) * var(--fs-lift, 0));font-weight:500}
.civil-workspace .kpi em{font-size:calc(10.5px + (15px - 10.5px) * var(--fs-lift, 0));line-height:1.35;margin-top:4px;color:#536987}
.civil-workspace h3.calculation-details-heading{font-size:calc(13px + (15px - 13px) * var(--fs-lift, 0));font-weight:700;line-height:1.3;margin:9px 0 5px;color:#1b3156}
.calculation-details-heading::after{content:"";display:block;height:6px;margin-top:6px;border-radius:3px;background:linear-gradient(to right,#176bff 0% 25%,#26bb7c 25% 50%,#ff963f 50% 75%,#9064ed 75% 100%)}
.civil-workspace .result-lower{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));line-height:1.45;margin-top:0;color:#536987}
.results[data-stale=true] .calculation-details-heading{opacity:.38}
@media(max-width:700px){
 .civil-workspace .results h2{font-size:16px}
 .civil-workspace .kpi .name{font-size:calc(12px + (15px - 12px) * var(--fs-lift, 0))}
 .civil-workspace .kpi strong,.civil-workspace .kpi:first-child strong{font-size:22px}
 .civil-workspace .kpi em{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0))}
 .civil-workspace .kpi small{font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0))}
}
@media print{.results[data-stale=true] .calculation-details-heading{display:none}}
@media(min-width:701px){
 .civil-workspace .results{padding-block:8px}
 .civil-workspace .results h3.calculation-details-heading{margin-top:6px}
 .civil-workspace .calculation-details-heading::after{margin-top:4px}
 .civil-workspace .kpi{padding-block:7px}
}

/* Ensure card headings are visible over global .sr-only rules */
.civil-workspace .input-card > .sr-only,
.civil-workspace .input-card > .civil-card-heading {
  position: static !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  white-space: normal !important;
  margin-bottom: 11px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 28px !important;
  font-size: 17px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  color: #13254a !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
@media (min-width: 701px) {
  .civil-workspace .input-card > .sr-only,
  .civil-workspace .input-card > .civil-card-heading {
    padding-right: 170px !important;
  }
}
@media (max-width: 700px) {
  .civil-workspace .input-card > .sr-only,
  .civil-workspace .input-card > .civil-card-heading {
    padding-right: 0 !important;
  }
  .civil-workspace,
  .civil-input-column,
  .civil-result-column,
  .civil-workspace .input-card,
  .civil-workspace .visual-card,
  .civil-workspace .results {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .pricing-breakdown table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: auto !important;
  }
  .pricing-breakdown th,
  .pricing-breakdown td {
    padding: 6px 3px !important;
    font-size: calc(10.5px + (15px - 10.5px) * var(--fs-lift, 0)) !important;
    word-break: break-word !important;
  }
}
.civil-workspace .input-card > .sr-only::before,
.civil-workspace .input-card > .civil-card-heading::before {
  content: "" !important;
  width: 28px !important;
  height: 28px !important;
  flex: none !important;
  mask: none !important;
  background: #1265f5 var(--measure-white) center/20px 20px no-repeat !important;
  border-radius: 6px !important;
}
/* Phone landscape / small tablets: the results column is ~330px wide, so four KPI tiles broke
   numbers mid-digit ("1,22 / 6") and cut labels. Use two columns until there is room for four. */
@media(min-width:701px) and (max-width:1000px){
 .civil-workspace .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .civil-workspace .kpi strong,.civil-workspace .kpi:first-child strong{overflow-wrap:normal}
}
/* Dark theme: these reference sheets paint html/body light and the H1 navy, while the site header,
   breadcrumbs and summary follow the dark theme's light text, so that text became invisible.
   In dark mode the page chrome follows the theme again; the white tool cards keep their own colours. */
@media (prefers-color-scheme:dark){
 :root:not([data-theme=light]),:root:not([data-theme=light]) body{background:var(--color-bg);color:var(--color-text)}
 :root:not([data-theme=light]) .tool-header h1,:root:not([data-theme=light]) .site-header summary{color:var(--color-text)}
}
:root[data-theme=dark],:root[data-theme=dark] body{background:var(--color-bg);color:var(--color-text)}
:root[data-theme=dark] .tool-header h1,:root[data-theme=dark] .site-header summary{color:var(--color-text)}
/* Full screen width on every laptop size (Rajeev: no empty side bands) */
main{max-width:none}
/* Phones: the reference picture sits above the inputs, and the result follows the Calculate button
   directly (no scrolling past the picture to see it). The picture is kept short. */
@media(max-width:700px){
 .civil-workspace .visual-card{order:-1;padding:10px}
 .civil-workspace .input-card{order:0}
 .civil-workspace .results{order:1}
 .civil-workspace .pricing{order:2}
 .civil-workspace .output{order:3}
 .civil-workspace .advanced{order:4}
 .civil-workspace .artwork{height:168px;min-height:168px}
 .civil-workspace .artwork img{height:150px;max-height:150px}
 .civil-workspace .basis-banner{display:none}
 .civil-workspace .field:has(select){grid-column:auto}
}
/* Phones, compact: workflow buttons three per row; each opening on one line. */
@media(max-width:700px){
 .civil-workspace .mode-bar{grid-template-columns:repeat(3,minmax(0,1fr))}
 .civil-workspace .mode-bar button:last-child:nth-child(odd){grid-column:auto}
 .civil-workspace .mode-bar button{min-height:40px;font-size:calc(11px + (15px - 11px) * var(--fs-lift, 0));padding:5px 3px;gap:3px}
 .civil-workspace .row-section[data-rows=openings] .data-row{grid-template-columns:1.35fr 1fr 1fr .75fr;gap:6px;padding:8px 40px 8px 8px}
 .civil-workspace .row-section[data-rows=openings] .data-row label:first-child{grid-column:auto;margin-right:0}
 .civil-workspace .row-section[data-rows=openings] .data-row input{padding:6px;font-size:calc(13px + (15px - 13px) * var(--fs-lift, 0))}
 .civil-workspace .row-section[data-rows=openings] .delete{top:24px;right:0}
}

/* ---- Dark theme completion: light colours that had no dark override (generated, then checked with axe). ---- */
:where(:root[data-theme=dark]) .civil-unused-header {
  background: #11223a;
  border-color: #304564;
}

:where(:root[data-theme=dark]) header .brand {
  color: #d4dbed;
}

:where(:root[data-theme=dark]) header nav a {
  color: #c1cfe5;
}

:where(:root[data-theme=dark]) .search {
  background: #151e33;
  border-color: #334661;
}

:where(:root[data-theme=dark]) .privacy {
  color: #acf1cc;
  background: #163e28;
  border-color: #306446;
}

:where(:root[data-theme=dark]) .breadcrumb {
  color: #a4b0c3;
}

:where(:root[data-theme=dark]) h1 {
  color: #ccd7f0;
}

:where(:root[data-theme=dark]) .title p {
  color: #9faec5;
}

:where(:root[data-theme=dark]) .reference-tag {
  color: #9cb9da;
  background: #151e33;
}

:where(:root[data-theme=dark]) h2 {
  color: #c8d3ed;
}

:where(:root[data-theme=dark]) h3 {
  color: #c2cee6;
}

:where(:root[data-theme=dark]) .input-card,
:where(:root[data-theme=dark]) .visual-card,
:where(:root[data-theme=dark]) .results {
  background: #151e33;
  border-color: #304464;
}

:where(:root[data-theme=dark]) .mode-bar {
  background: #13203a;
  border-color: #304364;
}

:where(:root[data-theme=dark]) .mode-bar button {
  color: #b3c0db;
}

:where(:root[data-theme=dark]) .mode-bar button[aria-pressed=true] {
  color: #fff;
}

:where(:root[data-theme=dark]) .mode-symbol {
  color: #96b5da;
}

:where(:root[data-theme=dark]) .unit-row {
  color: #abb7cc;
}

:where(:root[data-theme=dark]) .unit-row select {
  background: #151e33;
}

:where(:root[data-theme=dark]) .field {
  color: #bbc6db;
}

:where(:root[data-theme=dark]) input,
:where(:root[data-theme=dark]) select,
:where(:root[data-theme=dark]) textarea {
  color: #bfcbe4;
  background: #151e33;
  border-color: #304464;
}

:where(:root[data-theme=dark]) .suffix {
  color: #a1aec3;
}

:where(:root[data-theme=dark]) .hint {
  color: #9ca8be;
}

:where(:root[data-theme=dark]) .row-count {
  color: #a1aec3;
}

:where(:root[data-theme=dark]) .row-head {
  color: #b2bed3;
  background: #13203a;
}

:where(:root[data-theme=dark]) .data-row {
  border-color: #304664;
}

:where(:root[data-theme=dark]) .delete {
  color: #a7b2c8;
}

:where(:root[data-theme=dark]) button {
  color: #649af2;
  border-color: #304464;
}

:where(:root[data-theme=dark]) .calculate {
  color: #172337;
}

:where(:root[data-theme=dark]) .reset {
  color: #a4b2c8;
}

:where(:root[data-theme=dark]) .illustrative {
  color: #a1aec3;
}

:where(:root[data-theme=dark]) .dimension-badges span {
  color: #b6c5de;
  border-color: #304464;
}

:where(:root[data-theme=dark]) .basis-banner {
  color: #a1b2ca;
  background: #12203d;
  border-color: #304264;
}

:where(:root[data-theme=dark]) .results {
  background: #151e33;
}

:where(:root[data-theme=dark]) .status {
  color: #adf0d1;
  background: #123f25;
  border-color: #306446;
}

:where(:root[data-theme=dark]) .kpi,
:where(:root[data-theme=dark]) .kpi:first-child,
:where(:root[data-theme=dark]) .kpi:last-child {
  background: #151e33;
  border: 1px solid #304364;
}

:where(:root[data-theme=dark]) .kpi .name {
  color: #abb4c7;
}

:where(:root[data-theme=dark]) .kpi strong,
:where(:root[data-theme=dark]) .kpi:first-child strong {
  color: #becbe9;
}

:where(:root[data-theme=dark]) .kpi em {
  color: #a1aec3;
}

:where(:root[data-theme=dark]) .kpi.money {
  background: #423713;
  border-color: #645730;
}

:where(:root[data-theme=dark]) .result-lower {
  color: #a1afc5;
}

:where(:root[data-theme=dark]) .result-cost {
  color: #adc0de;
}

:where(:root[data-theme=dark]) .advanced {
  border-color: #304464;
}

:where(:root[data-theme=dark]) .advanced-list .advanced>summary {
  color: #b4c5de;
}

:where(:root[data-theme=dark]) .advanced-body {
  border-color: #304664;
}

:where(:root[data-theme=dark]) .pricing {
  background: #12213d;
  border-color: #304264;
}

:where(:root[data-theme=dark]) .pricing>summary {
  color: #bfcde6;
}

:where(:root[data-theme=dark]) .price-heading small {
  color: #a4b4c8;
}

:where(:root[data-theme=dark]) .pricing-total {
  color: #bdcce7;
}

:where(:root[data-theme=dark]) .pricing-body {
  background: #102539;
  border-color: #304564;
}

:where(:root[data-theme=dark]) .pricing-note,
:where(:root[data-theme=dark]) .pricing-rounding {
  color: #9eacc1;
}

:where(:root[data-theme=dark]) .output .print {
  color: #172337;
}

:where(:root[data-theme=dark]) .output .copy {
  color: #649af2;
  background: #151e33;
  border-color: #304364;
}

:where(:root[data-theme=dark]) .warning {
  color: #b4c2db;
  background: #151e33;
  border-color: #304464;
}

:where(:root[data-theme=dark]) .warning summary .icon {
  color: #f4ca72;
}

:where(:root[data-theme=dark]) .utilities details {
  border-color: #304464;
}

:where(:root[data-theme=dark]) .utilities summary {
  color: #bbcae5;
}

:where(:root[data-theme=dark]) .utility-body {
  color: #a0adc1;
}

:where(:root[data-theme=dark]) .civil-unused-footer {
  background: #11233c;
  border-color: #304564;
}

:where(:root[data-theme=dark]) .footer-top p,
:where(:root[data-theme=dark]) .footer-top nav {
  color: #a2adbf;
}

:where(:root[data-theme=dark]) .footer-categories {
  color: #a1afc5;
}

:where(:root[data-theme=dark]) .reference-tag {
  color: #a2b2c8;
}

:where(:root[data-theme=dark]) h1 {
  color: #ccd7f0;
}

:where(:root[data-theme=dark]) .civil-workspace h2 {
  color: #c8d3ed;
}

:where(:root[data-theme=dark]) .civil-workspace .results h2 .icon {
  color: #5f95f2;
}

:where(:root[data-theme=dark]) .civil-workspace .pricing {
  background: linear-gradient(100deg,#12233e,#111f3a);
  border-color: #304464;
}

:where(:root[data-theme=dark]) .civil-workspace .advanced>summary>.icon {
  color: #5f95f2;
}

:where(:root[data-theme=dark]) .civil-workspace .copy .icon {
  color: #6099f2;
}

:where(:root[data-theme=dark]) .warning summary>.icon {
  color: #fff;
}

:where(:root[data-theme=dark]) h1 {
  color: #cdd8f3;
}

:where(:root[data-theme=dark]) .civil-workspace h2,
:where(:root[data-theme=dark]) .civil-workspace .input-card>.sr-only {
  color: #c9d6f1;
}

:where(:root[data-theme=dark]) .civil-workspace h3,
:where(:root[data-theme=dark]) .civil-workspace .field-group h3 {
  color: #c2d1e8;
}

:where(:root[data-theme=dark]) .civil-workspace .price-heading {
  color: #c6d5ee;
}

:where(:root[data-theme=dark]) .civil-workspace .results h2 .icon {
  color: #ffffff;
}

:where(:root[data-theme=dark]) .civil-workspace .advanced>summary>.icon {
  color: #fff;
}

:where(:root[data-theme=dark]) .civil-workspace .copy .icon {
  background: #12233f;
}

:where(:root[data-theme=dark]) .civil-workspace .kpi .name::after {
  border: 1px solid color-mix(in srgb,var(--accent) 25%,#3c4858);
}

:where(:root[data-theme=dark]) .utilities summary .icon {
  background: #12213d;
}

:where(:root[data-theme=dark]) .utilities details:nth-child(3) .icon,
:where(:root[data-theme=dark]) .utilities details:nth-child(5) .icon {
  background: #24123f;
}

:where(:root[data-theme=dark]) .utilities details:nth-child(4) .icon {
  background: #3e1220;
}

:where(:root[data-theme=dark]) .civil-workspace .kpi .name {
  color: #b2bfd4;
}

:where(:root[data-theme=dark]) .civil-workspace .kpi strong,
:where(:root[data-theme=dark]) .civil-workspace .kpi:first-child strong {
  color: #c4d3ef;
}

:where(:root[data-theme=dark]) .civil-workspace .kpi em {
  color: #a5b4c8;
}

:where(:root[data-theme=dark]) .civil-workspace h3.calculation-details-heading {
  color: #c2d2ec;
}

:where(:root[data-theme=dark]) .civil-workspace .result-lower {
  color: #a5b4c8;
}

:where(:root[data-theme=dark]) .civil-workspace .input-card > .sr-only,
:where(:root[data-theme=dark]) .civil-workspace .input-card > .civil-card-heading {
  color: #c9d6f1 !important;
}
@media (max-width:700px) {
  :where(:root[data-theme=dark]) .data-row {
    background: #101b39;
    border-color: #304464;
  }
}
