.site-measurement-dialog{width:min(1500px,calc(100vw - 20px));height:min(940px,calc(100dvh - 20px));max-width:none;max-height:none;padding:0;border:0;border-radius:22px;overflow:hidden;background:#f6f8fb;color:#14243d;box-shadow:0 28px 90px #07142680}
.site-measurement-dialog::backdrop{background:#071426cc}
.site-measurement-shell{height:100%;min-height:0;overflow:hidden;display:grid;grid-template-rows:auto auto minmax(0,1fr)}
.site-measurement-head{display:flex;align-items:center;gap:18px;padding:17px 22px;background:#14243d;color:#fff;border-bottom:4px solid #ff6900}
.site-measurement-head img{width:76px;height:76px;object-fit:contain}
.site-measurement-head h2{margin:2px 0 4px;font-size:clamp(1.25rem,2vw,2rem)}
.site-measurement-head p{margin:0;color:#dce8f8}.site-measurement-head .eyebrow{color:#70b7ff;font-weight:900;letter-spacing:.13em}
.site-measurement-close{margin-left:auto;width:48px;height:48px;border-radius:50%;font-size:28px;background:#fff;color:#c53030;border:2px solid #ff6900}
.site-measurement-mode{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:10px 20px;background:#e9f3ff;border-bottom:1px solid #bdd3eb}.site-measurement-mode button{padding:11px;border:2px solid #8dbbff;border-radius:11px;background:#fff;color:#075dcc;font-weight:900}.site-measurement-mode button.active{background:#075dcc;color:#fff;border-color:#ff6900}
.site-measurement-body{height:100%;min-height:0;overflow:hidden;display:grid;grid-template-columns:360px 1fr}
.site-measurement-panel{height:100%;min-height:0;max-height:100%;overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr) auto;background:#fff;border-right:1px solid #cad7e6}
.site-measurement-panel-scroll{height:100%;min-height:0;overflow-y:scroll;overflow-x:hidden;padding:20px 20px 180px;box-sizing:border-box;scrollbar-gutter:stable;overscroll-behavior:contain;touch-action:pan-y}.site-measurement-panel-scroll::-webkit-scrollbar{width:14px}.site-measurement-panel-scroll::-webkit-scrollbar-track{background:#e6edf5}.site-measurement-panel-scroll::-webkit-scrollbar-thumb{background:#6985a4;border:3px solid #e6edf5;border-radius:9px}
.site-measurement-task{padding:14px;border-radius:14px;background:#e9f3ff;border-left:5px solid #075dcc;color:#14243d!important}.site-measurement-task strong{display:block;font-size:1.08rem;color:#075dcc!important}.site-measurement-task p{margin:6px 0 0;line-height:1.4;color:#263d57!important}
.site-measurement-panel label{display:block;margin:14px 0 5px;font-weight:800}.site-measurement-panel input,.site-measurement-panel select{width:100%;padding:11px;border:1px solid #b8c6d8;border-radius:9px;font:inherit}
.site-measurement-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.site-measurement-tools button,.site-measurement-primary,.site-measurement-secondary{padding:11px;border-radius:9px;border:0;font-weight:900;cursor:pointer}.site-measurement-tools button{background:#23466e;color:#fff}.site-measurement-tools .active{outline:3px solid #ffb98a;background:#075dcc}
.site-measurement-tools #siteSnap{background:#e9f3ff;color:#075dcc;border:2px solid #8dbbff}.site-measurement-tools #siteSnap.snap-off{background:#fff4e9;color:#8b3600;border-color:#ffb98a}
.site-roof-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.site-roof-tools label{grid-column:1/-1;margin:4px 0 0}.site-roof-tools button{padding:10px;border:0;border-radius:9px;background:#23466e;color:#fff;font-weight:900}.site-roof-tools button:nth-of-type(-n+3){background:#075dcc}.roof-measure-label{border:1px solid #7c3aed!important;background:#fff!important;color:#172338!important;font-weight:800!important;box-shadow:0 2px 8px #0003!important}
.roof-edge-label-eave{border-color:#0077cc!important}.roof-edge-label-rake{border-color:#f97316!important}.roof-edge-label-ridge{border-color:#7c3aed!important}.roof-edge-label-ridge_vent{border-color:#00897b!important}.roof-edge-label-valley{border-color:#dc2626!important}.roof-edge-label-wall_flashing{border-color:#c28a00!important}
.site-roof-tools[hidden],#siteGeneralTools[hidden]{display:none!important}
.site-lawn-snow-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.site-lawn-snow-picker[hidden]{display:none!important}.site-lawn-snow-picker strong{grid-column:1/-1;color:#18334f}.site-lawn-snow-picker button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:8px;border:2px solid #c6d4e5;border-radius:10px;background:#fff;color:#18334f;font-weight:900;cursor:pointer}.site-lawn-snow-picker button::before{content:"";width:15px;height:15px;border:3px solid var(--area-color);border-radius:4px;background:color-mix(in srgb,var(--area-color) 30%,transparent)}.site-lawn-snow-picker button.active{border-color:var(--area-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--area-color) 18%,transparent)}
.site-measurement-result{padding:14px;border-radius:12px;background:#fff4e9;color:#8b3600;font-weight:900;font-size:1.08rem}.site-measurement-hint{font-size:.88rem;color:#56677a;line-height:1.45}
.site-measurement-actions{z-index:500;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:7px 10px 9px;border-top:1px solid #cad7e6;background:#fff;box-shadow:0 -4px 12px #14243d10}.site-measurement-actions .site-measurement-primary,.site-roof-estimate-button{grid-column:1/-1}.site-measurement-primary{min-height:42px;background:#075dcc;color:#fff;font-size:.9rem;white-space:normal;line-height:1.15}.site-measurement-primary:disabled{opacity:.45}.site-roof-estimate-button{min-height:36px;padding:6px 10px;border:0;border-radius:8px;background:#f45b00;color:#fff;font-weight:900;font-size:.86rem;line-height:1.1;cursor:pointer;box-shadow:none}.site-roof-estimate-button:disabled{opacity:.45;cursor:not-allowed}.site-measurement-secondary{background:#e9eef5;color:#18334f}.site-measurement-dashboard{min-height:38px;padding:6px!important;font-size:.76rem;line-height:1.1}.site-measurement-secondary{min-height:38px;padding:6px!important;font-size:.76rem;line-height:1.1}
.site-measurement-progress{margin:12px 0 0;font-weight:800;color:#075dcc}.site-measurement-map{position:relative;min-width:0;min-height:440px;background:#dce7ef}.site-measurement-map .leaflet-container{width:100%;height:100%;min-height:440px}
.site-measurement-map .site-trace-active{cursor:crosshair;touch-action:none}.site-measurement-map .site-trace-active:active{cursor:crosshair}
.roof-color-legend{position:absolute;left:10px;bottom:28px;z-index:1000;display:grid;grid-template-columns:repeat(2,minmax(104px,1fr));gap:5px 12px;max-height:42%;overflow:auto;padding:10px 12px;border:2px solid #172338;border-radius:10px;background:#fffffff2;color:#172338;font:700 11px/1.2 system-ui,sans-serif;box-shadow:0 3px 14px #0005;text-transform:capitalize;pointer-events:none;transform:scale(.75);transform-origin:left bottom}.roof-color-legend[hidden]{display:none!important}.roof-color-legend strong{grid-column:1/-1;font-size:12px}.roof-color-legend span{display:flex;align-items:center;gap:6px;white-space:nowrap}.roof-color-legend i{width:22px;height:4px;border-radius:3px;background:var(--roof-color);flex:0 0 auto}.roof-color-legend b{display:grid;place-items:center;width:24px;height:16px;border:2px solid #172338;border-radius:8px;background:var(--roof-color);color:#fff;font:900 8px/1 system-ui,sans-serif;text-shadow:0 1px 2px #000;flex:0 0 auto}
.lawn-snow-color-legend{position:absolute;left:10px;bottom:28px;z-index:1000;display:grid;gap:6px;padding:10px 12px;border:2px solid #172338;border-radius:10px;background:#fffffff2;color:#172338;font:800 11px/1.2 system-ui,sans-serif;box-shadow:0 3px 14px #0005;pointer-events:none}.lawn-snow-color-legend[hidden]{display:none!important}.lawn-snow-color-legend strong{font-size:12px}.lawn-snow-color-legend span{display:flex;align-items:center;gap:7px;white-space:nowrap}.lawn-snow-color-legend i{width:25px;height:12px;border:3px solid var(--area-color);border-radius:3px;background:color-mix(in srgb,var(--area-color) 30%,transparent)}.lawn-snow-total{display:block;margin:3px 0;padding-left:9px;border-left:5px solid var(--area-color)}
.bidpouch-property-pin{position:relative;background:transparent!important;border:0!important;pointer-events:none}.bidpouch-property-pin span{position:absolute;left:2px;top:1px;width:14px;height:14px;overflow:hidden;border:2px solid #fff;border-radius:50% 50% 50% 0;background:#075dcc;color:transparent;font-size:0;box-shadow:0 2px 6px #0007;transform:rotate(-45deg)}.bidpouch-property-pin span::after{content:"";position:absolute;left:4px;top:4px;width:4px;height:4px;border-radius:50%;background:#fff}.bidpouch-property-pin b{display:none!important}
.project-measurement-launch{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.65fr);align-items:center;gap:24px;margin:16px 0;border:2px solid #8dbbff;background:linear-gradient(135deg,#f4f9ff,#e7f2ff)}
.project-measurement-launch[hidden]{display:none}.project-measurement-launch h2,.project-measurement-launch p{margin:3px 0}.project-measurement-actions{display:grid;gap:9px}.project-measurement-actions span{font-weight:800;color:#24496f;line-height:1.35}.project-measurement-actions button:disabled{opacity:.5;cursor:not-allowed}
.estimate-template-launch-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.estimate-template-launch-actions button{min-width:210px}
.settings-card.custom-template-pricing{border:2px solid #8dbbff;background:#f4f9ff}.settings-card.custom-template-pricing [data-supplier-pricing]{display:none}.settings-card.custom-template-pricing #useEstimatePrices{background:#075dcc;color:#fff;border-color:#075dcc;font-weight:900}
@media(max-width:760px){.site-measurement-dialog{width:100vw;height:100dvh;border-radius:0}.site-measurement-head{padding:10px 12px}.site-measurement-head img{width:52px;height:52px}.site-measurement-mode{grid-template-columns:1fr}.site-measurement-body{min-width:0;grid-template-columns:minmax(0,1fr);grid-template-rows:45% 55%}.site-measurement-map,.site-measurement-map .leaflet-container{grid-row:1;min-width:0;min-height:0}.site-measurement-panel{grid-row:2;min-width:0;max-height:none;border-right:0;border-top:1px solid #cad7e6}.site-measurement-panel-scroll{padding:14px 14px 150px}.site-measurement-actions{padding:8px 10px 10px}.site-lawn-snow-picker{grid-template-columns:1fr}.roof-color-legend,.lawn-snow-color-legend{left:6px;bottom:22px;grid-template-columns:1fr;max-height:140px}.site-measurement-close{width:42px;height:42px}.site-measurement-head p:not(.eyebrow){display:none}}
@media(max-width:760px){.project-measurement-launch{grid-template-columns:1fr;gap:14px;padding:18px}.estimate-template-launch-actions{width:100%}.estimate-template-launch-actions button{width:100%;min-width:0}}
.site-measurement-dashboard{justify-self:start;min-height:36px;padding:7px 16px!important;border:0!important;border-radius:9px;background:#075dcc!important;color:#fff!important;font-size:.76rem;font-weight:900;line-height:1.1;cursor:pointer;box-shadow:none}
.address-measurement-launcher{border:0;border-radius:24px;padding:0;width:min(680px,calc(100vw - 28px));box-shadow:0 30px 80px #071a2e66}
.address-measurement-launcher::backdrop{background:#071a2eb8}
.address-measurement-card{padding:0;background:#f7faff;color:#172338}
.address-measurement-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:28px 30px;background:#172f50;color:#fff;border-bottom:4px solid #ff6900}
.address-measurement-card header h2{margin:3px 0 8px;font-size:1.65rem}.address-measurement-card header p{margin:0;line-height:1.45}.address-measurement-card header button{border:2px solid #ff6900;border-radius:50%;background:#fff;color:#c5351b;width:46px;height:46px;font-size:1.8rem;flex:0 0 auto}
.address-measurement-card>label{display:grid;gap:7px;margin:20px 30px 0;font-weight:800}.address-measurement-card input,.address-measurement-card select{width:100%;box-sizing:border-box;padding:13px 14px;border:1px solid #a9bed5;border-radius:10px;background:#fff;color:#172338;font:inherit}
.address-measurement-actions{display:flex;justify-content:flex-end;gap:12px;padding:26px 30px 30px}.address-measurement-actions button{border:1px solid #7ea8dc;border-radius:10px;padding:13px 20px;font-weight:800}.address-measurement-actions .primary{background:#075dcc;color:#fff}.address-measurement-actions .secondary{background:#fff;color:#075dcc}
@media(max-width:600px){.address-measurement-card header{padding:22px 20px}.address-measurement-card>label{margin-left:20px;margin-right:20px}.address-measurement-actions{padding-left:20px;padding-right:20px;flex-direction:column-reverse}.address-measurement-actions button{width:100%}}
