/* M001: compact live estimate, shared palette and type from consistency.css. */
@media screen {
.m001-rooms-page{max-width:960px;margin:0 auto}
.m001-rooms-card{background:white;border-radius:23px;padding:14px;margin:0 0 12px}
.m001-rooms-card>.section-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;gap:10px;margin:0 0 8px}
.m001-rooms-card>.section-head h2{font-size:19px;font-weight:600;display:flex;align-items:baseline;gap:7px}
.m001-rooms-card .work-count{font-size:12px;font-weight:400;background:none;padding:0;color:#82909c}
.m001-rooms-card .m001-room-add{border:0;border-radius:13px;background:#eff3e6;font-size:12px;min-height:44px;padding:8px 11px;white-space:nowrap;color:#566d3d}
.m001-rooms-card .m001-room-add svg{width:17px;height:17px}
.m001-rooms-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:22px 12px 30px;color:#84909d;font-size:13px}
.m001-rooms-empty img{width:52px;height:52px;object-fit:contain}
.m001-room-extra{background:#fff;border-radius:20px;border:0;padding:0 14px;margin:0 0 10px}
.m001-room-extra>summary{display:flex;align-items:center;gap:10px;min-height:56px;list-style:none;color:#354552;font-size:13px;cursor:pointer}
.m001-room-extra>summary>svg{width:19px;height:19px;color:#82909b}
.m001-room-extra>summary>svg:last-child{margin-left:auto;width:16px;height:16px;transition:transform .18s}
.m001-room-extra[open]>summary>svg:last-child{transform:rotate(90deg)}
.m001-room-extra>summary::after,.m001-room-extra>summary::before{display:none}
.m001-room-extra>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-bottom:12px}
.m001-room-extra .m001-room-route{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-width:0;min-height:52px;border:0;background:#f5f6f7;border-radius:12px;text-align:left;text-decoration:none;color:#354552;font-size:12px;padding:10px;line-height:1.35}
.m001-room-route svg{width:17px;height:17px;flex-shrink:0;color:#81909c}
.m001-room-route svg:last-child:not(:first-child){display:none}
@media(max-width:600px){main:has(.m001-estimate) .project-head-inner,main:has(.m001-rooms-page) .project-head-inner{padding-top:0}main:has(.m001-estimate) .project-head-inner h1,main:has(.m001-rooms-page) .project-head-inner h1{font-size:15px;line-height:1.4}main:has(.m001-estimate) .project-head-inner .tabs,main:has(.m001-rooms-page) .project-head-inner .tabs{margin:10px 0 0}main:has(.m001-rooms-page) .m001-rooms-page{padding:12px}}
.m001-surface-choice-context{font-size:12px;color:#83909d;margin:-4px 0 12px}
#modal .m001-surface-choices{display:grid;grid-template-columns:1fr;gap:6px}
#modal .m001-surface-choices .work-type-button{display:grid;grid-template-columns:42px minmax(0,1fr) 12px;gap:12px;align-items:center;background:#f5f6f7;border:0;border-radius:15px;padding:10px 12px;min-height:64px;text-align:left}
#modal .m001-surface-choices .work-type-button>svg{grid-column:1;grid-row:1;width:38px;height:38px;margin:0;display:block}
#modal .m001-surface-choices .work-type-button>span{grid-column:2;grid-row:1;min-width:0}
#modal .m001-surface-choices .work-type-button strong{display:block;font-size:14px;font-weight:600;margin:0;line-height:1.3}
#modal .m001-surface-choices .work-type-button small{display:block;font-size:11px;color:#83909d;margin:3px 0 0}
#modal .m001-surface-choices .work-type-button>.m001-choice-chevron{grid-column:3;color:#a0aab0;font-size:20px}
.m001-estimate{max-width:920px;margin:0 auto;color:#25323b;min-width:0}
.m001-estimate-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.m001-estimate-heading h2{font-size:22px;line-height:1.2;margin:0;font-weight:700}
.m001-estimate .btn{min-height:44px;font-size:13px;border-radius:13px;box-shadow:none;padding:8px 12px}
.m001-estimate .m001-estimate-document{background:white;border:0;font-size:12px;gap:7px}
.m001-estimate .m001-estimate-document svg{width:17px;height:17px}
.m001-estimate-hero{padding:18px;border-radius:23px;background:#fff;margin:0 0 8px}
.m001-estimate-total-label{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#7e8a97;line-height:1.4}
.m001-estimate .live-estimate-total{display:block;margin:6px 0 16px;padding:0;border:0;background:none;min-height:0}
.m001-estimate .live-estimate-total strong{font-size:30px;letter-spacing:-.8px;font-weight:700;line-height:1.2;color:#202e38;overflow-wrap:anywhere}
.m001-estimate-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.m001-estimate-group{min-width:0;min-height:65px;border:1px solid transparent;background:#f5f6f7;border-radius:14px;text-align:left;padding:10px 11px;color:inherit;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.m001-estimate-group>span{display:flex;align-items:center;gap:5px;font-size:12px;color:#697888;line-height:1.3}
.m001-estimate-group small{font-size:10px;opacity:.7}
.m001-estimate-group>strong{display:block;font-size:16px;font-weight:600;margin-top:5px;overflow-wrap:anywhere}
.m001-estimate-group.is-selected{background:#eff3e7;border-color:#b5c793}
.m001-estimate-group:active{transform:scale(.98)}
.m001-estimate-group:focus-visible,.m001-estimate summary:focus-visible{outline:2px solid #849b68;outline-offset:2px}
.m001-estimate .estimate-adjustment-summary{margin:12px 0 0;font-size:12px;padding-top:10px;border-top:1px solid #eceff1}
.m001-estimate-version{border:0;background:transparent;margin:0 0 8px;padding:0;border-radius:16px;box-shadow:none}
.m001-estimate-version>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;font-size:12px;color:#758391;list-style:none;cursor:pointer}
.m001-estimate-version[open]{background:#fff}
.m001-estimate-version>div{padding:0 12px 12px}
.m001-estimate-control-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:start;gap:8px;margin:12px 0 16px}
.m001-estimate-control-row:has([data-estimate-view][open]){grid-template-columns:minmax(0,1fr)}
.m001-estimate .live-estimate-channels{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;margin:0;max-width:none;min-width:0;background:#e9ecef;border:0;border-radius:14px}
.m001-estimate .live-estimate-channels>.btn{min-width:0;min-height:44px;border:0;border-radius:11px;background:transparent;color:#667583;font-size:12px;padding:7px;transition:background .16s,color .16s}
.m001-estimate .live-estimate-channels>.btn.active{background:white;color:#22313a;box-shadow:0 1px 4px #23303b10}
.m001-estimate .m001-estimate-options{min-width:0;border:0;background:#fff;margin:0;padding:0;border-radius:14px;box-shadow:none}
.m001-estimate .m001-estimate-options>summary,.m001-estimate-type-picker>summary,.m001-estimate .estimate-explainer>summary{display:flex;align-items:center;gap:7px;min-height:50px;padding:10px;font-size:12px;color:#52626f;list-style:none;cursor:pointer}
.m001-estimate .m001-estimate-options>summary>span,.m001-estimate-type-picker>summary>span,.m001-estimate .estimate-explainer>summary>span{flex:1;min-width:0}
.m001-estimate .m001-estimate-options>summary svg,.m001-estimate-type-picker>summary svg,.m001-estimate .estimate-explainer>summary svg{width:17px;height:17px;flex-shrink:0;color:#81909b}
.m001-estimate .m001-estimate-options>summary svg:last-child,.m001-estimate-type-picker>summary svg:last-child,.m001-estimate .estimate-explainer>summary svg:last-child{width:12px;height:12px;transform:rotate(90deg);transition:transform .18s}
.m001-estimate .m001-estimate-options[open]>summary svg:last-child,.m001-estimate-type-picker[open]>summary svg:last-child,.m001-estimate .estimate-explainer[open]>summary svg:last-child{transform:rotate(-90deg)}
.m001-estimate .m001-estimate-options>summary::before,.m001-estimate .m001-estimate-options>summary::after,.m001-estimate-type-picker>summary::before,.m001-estimate-type-picker>summary::after,.m001-estimate .estimate-explainer>summary::before,.m001-estimate .estimate-explainer>summary::after{display:none}
.m001-estimate .m001-estimate-options>summary::-webkit-details-marker,.m001-estimate-type-picker>summary::-webkit-details-marker,.m001-estimate .estimate-explainer>summary::-webkit-details-marker{display:none}
.m001-estimate-options-body{padding:0 12px 12px}
.m001-estimate-metric-heading{font-size:12px;color:#81909b;margin:0 0 8px}
.m001-estimate-metric-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.m001-estimate-metric-choices>button{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-height:72px;min-width:0;padding:11px;border:1px solid transparent;border-radius:13px;background:#f5f6f7;color:#273641;font:inherit;text-align:left;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
.m001-estimate-metric-choices>button>span{font-size:12px;color:#71818d;padding-right:16px}
.m001-estimate-metric-choices>button>strong{font-size:15px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.m001-estimate-metric-choices>button>svg{position:absolute;right:9px;top:11px;width:15px;height:15px;color:#6c8550}
.m001-estimate-metric-choices>button[aria-pressed=true],.m001-estimate-type-picker button[aria-pressed=true]{background:#eef3e5;border-color:#b6c99a}
.m001-estimate-metric-choices>.m001-estimate-metric-all{grid-column:1/-1;flex-direction:row;align-items:center;min-height:44px;gap:9px}
.m001-estimate-metric-choices>.m001-estimate-metric-all>svg{position:static;flex-shrink:0;color:#83909b}
.m001-estimate-metric-choices>.m001-estimate-metric-all>span{flex:1;color:#354653;padding:0}
.m001-estimate-metric-choices>button:active,.m001-estimate-type-picker button:active{transform:scale(.98)}
.m001-estimate-control-row button:focus-visible,.m001-estimate-type-picker button:focus-visible{outline:2px solid #849b68;outline-offset:2px}
.m001-estimate-type-picker{border:0;border-radius:15px;background:#fff;padding:0;margin:0 0 10px}
.m001-estimate-type-picker>summary{min-height:44px;padding:10px 13px}
.m001-estimate-type-picker>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0 10px 10px;max-height:280px;overflow:auto;overscroll-behavior:contain}
.m001-estimate-type-picker button{display:flex;align-items:center;gap:5px;min-height:44px;min-width:0;border:1px solid transparent;border-radius:11px;background:#f5f6f7;padding:8px 9px;font:inherit;font-size:12px;color:#52626f;text-align:left;cursor:pointer;transition:background .16s,transform .16s}
.m001-estimate-type-picker button>span{flex:1;min-width:0;overflow-wrap:anywhere}
.m001-estimate-type-picker button>small{font-size:11px;color:#83909b}
.m001-estimate-type-picker button>svg{width:14px;height:14px;flex-shrink:0;color:#6c8550}
.m001-estimate .estimate-explainer{border:0;padding:0;margin:12px 0 0;font-size:12px;background:transparent;color:#81909b}
.m001-estimate .estimate-explainer>summary{min-height:44px;padding:8px 4px}
.m001-estimate .estimate-explainer>div{background:#fff;border-radius:15px;padding:10px 14px}
.m001-estimate .estimate-explainer p{font-size:12px;line-height:1.5;margin:6px 0;color:#71818d}
.m001-estimate .estimate-profitability{background:#f5f6f7;border:0;border-radius:14px;padding:12px;margin:8px 0}
.m001-estimate .estimate-profitability-summary{background:#fff;border-radius:20px;padding:16px;margin:0 0 16px}
.m001-estimate .estimate-profitability h3{font-size:14px}
.m001-estimate .estimate-profitability p{font-size:12px;line-height:1.4}
.m001-estimate .estimate-profitability dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.m001-estimate .estimate-profitability-summary dl{gap:6px;margin-bottom:0}
.m001-estimate .estimate-profitability-summary dl>div{border-radius:12px;background:#f5f6f7;padding:11px}
.m001-estimate .estimate-profitability dt{font-size:11px}.m001-estimate .estimate-profitability dd{font-size:14px;overflow-wrap:anywhere}
.m001-estimate .estimate-composition{border:0;background:none;box-shadow:none;padding:0;margin:0}
.m001-estimate .estimate-composition[hidden]{display:none}
.m001-estimate .estimate-composition>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 4px 8px;list-style:none;border:0;background:none}
.m001-estimate .estimate-composition>summary>span{display:flex;align-items:baseline;gap:8px}
.m001-estimate .estimate-composition>summary strong{font-size:16px;font-weight:600}
.m001-estimate .estimate-composition>summary small{font-size:12px;margin:0;color:#81909d}
.m001-estimate .estimate-composition>summary:before{display:none}
.m001-estimate .estimate-composition>summary:after{content:'';width:6px;height:6px;border-right:1.3px solid #8c98a2;border-bottom:1.3px solid #8c98a2;transform:rotate(45deg);margin:0 8px 4px}
.m001-estimate .estimate-composition[open]>summary:after{transform:rotate(225deg);margin-bottom:0}
.m001-estimate .estimate-composition-body{padding:0;border:0;background:none}
.m001-estimate-filter-state{display:flex;gap:8px;align-items:center;justify-content:space-between;margin:0 0 8px;font-size:11px;color:#81909d}
.m001-estimate-filter-state .btn{background:#fff;border:0;font-size:12px;flex-shrink:0}
.m001-estimate .ux-estimate-list{display:grid;gap:12px;background:none;border:0;padding:0;margin:0}
.m001-estimate-section{border-radius:22px;background:#fff;padding:0 14px;min-width:0;overflow:clip}
.m001-estimate-section>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:14px 0 10px;border-bottom:1px solid #eceff1;color:#7c8a96}
.m001-estimate-section>header h3{font-size:12px;font-weight:500;margin:0}
.m001-estimate-section>header>span{font-size:12px;white-space:nowrap}
.m001-estimate .ux-estimate-line{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:'copy' 'values' 'tools';padding:14px 0;gap:8px;background:none;border:0;border-bottom:1px solid #eceff1;border-radius:0;min-width:0}
.m001-estimate .ux-estimate-line:last-child{border-bottom:0}
.m001-estimate .ux-estimate-line>.estimate-line-copy{grid-area:copy;grid-row:auto;padding-right:34px;min-width:0}
.m001-estimate .estimate-drawing-link{display:block;background:none;border:0;border-radius:6px;padding:0;min-height:0;font-size:14px;font-weight:600;line-height:1.35;text-align:left;color:#25323b}
.m001-estimate .estimate-drawing-link>span{font-size:14px;font-weight:600;line-height:1.35}
.m001-estimate .estimate-line-copy>small{display:block;font-size:11px;line-height:1.4;margin-top:4px;color:#83909d}
.m001-estimate .ux-estimate-line>.estimate-line-values{display:flex;flex-direction:row;grid-area:values;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.m001-estimate .estimate-line-values>.estimate-quantity{font-size:12px;color:#687886;line-height:1.3}
.m001-estimate .estimate-quantity small{display:inline;font-size:11px;margin-left:5px;color:#83909d}
.m001-estimate .estimate-line-values>.estimate-line-amount{font-size:16px;font-weight:600;line-height:1.3;max-width:55%;white-space:normal}
.m001-estimate .ux-estimate-line>.estimate-line-tools{grid-area:tools;border:0;padding:0;margin:0;min-height:0}
.m001-estimate .estimate-line-tools:not([open]){height:0}
.m001-estimate .estimate-line-tools>summary{position:absolute;right:-9px;top:5px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:12px;color:#8a97a3;font-size:16px;list-style:none}
.m001-estimate .estimate-line-tools>summary:after,.m001-estimate .estimate-line-tools>summary:before{display:none}
.m001-estimate .estimate-line-tools[open]>summary{background:#f0f3e9;color:#637b47}
.m001-estimate .estimate-line-tools>div{display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid #eceff1;padding:10px 0 0}
.m001-estimate .estimate-line-tools .btn{font-size:12px;background:#f5f6f7;border:0;min-height:44px}
.m001-estimate .estimate-price-editor{grid-column:1/-1;padding:12px;margin:0;background:#f5f6f7;border:0;border-radius:14px;min-width:0}
.m001-estimate .estimate-price-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.m001-estimate .estimate-price-editor .field{min-width:0;font-size:11px}
.m001-estimate .estimate-price-editor .input-wrap{background:#fff;border:0;min-width:0;border-radius:11px}
.m001-estimate .estimate-price-editor input{font-size:16px;min-height:44px;min-width:0;width:100%;background:transparent;border:0;box-shadow:none;outline:0}
.m001-estimate .estimate-price-editor .input-wrap:focus-within{outline:1.5px solid #98ae79;outline-offset:0}
.m001-estimate .estimate-price-form>strong{font-size:13px}
.m001-estimate .estimate-price-form p{font-size:12px;line-height:1.45}
.m001-estimate .estimate-price-form .ux-inline-actions{display:grid;grid-template-columns:1fr auto;gap:6px}
.m001-estimate .estimate-price-form .btn{font-size:12px}
.m001-estimate .estimate-price-form .btn.primary,.m001-estimate .m001-estimate-actions>.btn.primary{background:#d4f565;color:#223026;border:0}
.m001-estimate .m001-estimate-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;margin:14px 0 0}
.m001-estimate .m001-estimate-actions>.btn{width:100%;min-height:44px}
.m001-estimate .estimate-tools{width:auto;margin:0;border:0;border-radius:13px;padding:0;background:#fff}
.m001-estimate .estimate-tools>summary{min-height:44px;padding:10px 16px;font-size:13px;font-weight:500;list-style:none}
.m001-estimate .estimate-tools[open]{grid-column:1/-1}
.m001-estimate .estimate-tools>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:4px 8px 8px;gap:6px}
.m001-estimate .estimate-tools .btn{font-size:12px;border:0;background:#f5f6f7;justify-content:flex-start;min-width:0;text-align:left}
#modal.live-estimate-dialog{background:#f5f6f7;border:0;border-radius:24px;padding:20px 16px;max-width:calc(100vw - 24px);width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 32px);scrollbar-width:thin}
#modal.live-estimate-dialog #dialog-title{font-size:19px;padding-right:40px;margin-bottom:4px}
#modal.live-estimate-dialog .m001-estimate-heading{margin-bottom:8px}
.m001-estimate .estimate-line-tools[open]>div,.m001-estimate-options[open]>.m001-estimate-options-body{animation:m001-estimate-reveal .18s ease-out}
@keyframes m001-estimate-reveal{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(min-width:760px){.m001-estimate-control-row,.m001-estimate-control-row:has([data-estimate-view][open]){grid-template-columns:200px minmax(0,1fr)}.m001-estimate-metric-choices{grid-template-columns:repeat(4,minmax(0,1fr))}.m001-estimate-metric-choices>.m001-estimate-metric-all{grid-column:1/-1}.m001-estimate .estimate-profitability-summary dl{grid-template-columns:repeat(3,minmax(0,1fr))}.m001-estimate-type-picker>div{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){
 main:has(.m001-estimate) .content-page{padding:12px 12px 24px}
 main:has(.m001-estimate) .project-header{padding-block:8px}
 .m001-estimate .m001-estimate-heading h2{font-size:21px}
 .m001-estimate-hero{padding:16px}
 .m001-estimate .live-estimate-total strong{font-size:28px}
 .m001-estimate .estimate-line-values>.estimate-line-amount{font-size:15px}
 .m001-estimate .ux-estimate-line{gap:7px;padding:12px 0}
 .m001-estimate .estimate-line-copy{grid-column:auto!important;grid-row:auto!important}
 .m001-estimate .estimate-quantity,.m001-estimate .estimate-line-amount{grid-column:auto;grid-row:auto}
}
@media(prefers-reduced-motion:reduce){.m001-estimate *, .m001-estimate *::before,.m001-estimate *::after{animation:none!important;transition:none!important}}
}
