/* Compact navigation and short forms. Drawing dimensions keep their own rules. */
.ux-page{max-width:1280px;margin-inline:auto}.ux-page .section-head{gap:16px;margin-bottom:18px}.ux-page .section-head p{margin-top:5px;line-height:1.45}.ux-page h1{font-size:26px}.ux-page h2{font-size:20px}.ux-list-tools,.ux-inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ux-list-tools{justify-content:space-between;margin-bottom:14px}.ux-list-tools .segmented .btn{height:36px;border:0;background:transparent}.ux-list-tools .segmented .active{background:white}.ux-search-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;margin-bottom:16px}.ux-search-tools>input{height:44px;border:1px solid var(--line);border-radius:9px;padding:0 13px;min-width:0;width:100%;background:#fff}.ux-filters{width:120px;position:relative}.ux-filters>summary{height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:14px;font-weight:600}.ux-filters[open]{width:280px;padding:0 14px 14px;background:#fff;border:1px solid var(--line);border-radius:9px}.ux-filters[open]>summary{border:0;justify-content:space-between;margin-bottom:10px}.ux-filters p{line-height:1.5;margin:10px 0}.ux-project-list,.ux-document-list,.ux-room-list{display:grid;gap:8px}.ux-project-row{display:flex;align-items:center;gap:12px;padding:8px 12px;background:#fff;border:1px solid var(--line);border-radius:10px;min-width:0}.ux-project-open{display:block;text-align:left;flex:1;min-width:0;padding:10px 0}.ux-project-name{display:block;font-size:16px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}.ux-project-meta{display:block;font-size:12px;color:var(--muted);margin-top:5px;line-height:1.4}.ux-project-side{text-align:right;display:grid;justify-items:end;gap:7px;flex-shrink:0}.ux-project-side>strong{font-size:14px}.ux-project-row>.icon-btn{flex:0 0 44px;height:44px;font-weight:700;letter-spacing:2px}.pipeline-column .ux-project-row{flex-wrap:wrap;margin-top:10px}.pipeline-column .ux-project-open{flex-basis:100%;padding-bottom:0}.pipeline-column .ux-project-side{flex:1;display:flex;align-items:center;justify-content:space-between}.pipeline-column .ux-project-row>.icon-btn{flex-basis:32px;width:32px}.ux-empty{padding:42px 20px;text-align:center;max-width:520px;margin:auto}.ux-empty h2{margin:15px 0 8px}.ux-empty p{color:var(--muted);font-size:14px;line-height:1.55;margin:0 0 18px}.ux-pencil{display:inline-grid;place-items:center;width:48px;height:48px;background:var(--tint);color:var(--accent);border-radius:14px;font:34px/1 Georgia,serif;transform:rotate(-8deg)}
.ux-progress{display:flex;align-items:center;gap:24px;margin:0 0 22px;padding:14px 18px;background:white;border:1px solid var(--line);border-radius:10px}.ux-progress>span{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;flex:1}.ux-progress b{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;font-size:12px;font-weight:600}.ux-progress .done{color:var(--accent)}.ux-progress .done b{background:var(--tint);border-color:var(--tint)}.ux-overview{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.ux-object-card{padding:18px;margin-bottom:14px}.ux-object-card .section-head{margin:0 0 8px}.ux-data{margin:12px 0;display:grid;gap:0}.ux-data>div{display:grid;grid-template-columns:145px minmax(0,1fr);gap:12px;padding:8px 0;font-size:14px;line-height:1.45}.ux-data dt{color:var(--muted);font-size:12px}.ux-data dd{margin:0;font-weight:600;overflow-wrap:anywhere}.ux-details{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}.ux-details>summary,.ux-object-card>summary{cursor:pointer;font-size:13px;font-weight:600;padding:5px 0}.ux-object-card .ux-inline-actions{margin-top:10px;gap:0}.ux-inline-actions .btn{font-size:13px}.ux-next-step{padding:22px}.ux-next-step h2{margin:18px 0 9px}.ux-next-step p{font-size:14px;line-height:1.55;margin-bottom:18px}.ux-total{margin-top:18px;padding-top:15px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.ux-total small{color:var(--muted);font-size:12px}.ux-total strong{font-size:21px;white-space:nowrap}.ux-room-line{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:12px 0;border-top:1px solid var(--line);text-align:left;font-size:14px}.ux-room-line>span{color:var(--muted);font-size:12px;flex-shrink:0}.ux-room-card{display:flex;align-items:center;gap:16px;padding:12px 16px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:10px;min-width:0}.ux-room-card:hover{border-color:#b1bb91;background:#fdfdfb}.ux-room-card .mini-plan{width:66px;height:55px;flex-shrink:0}.ux-room-card>span:nth-child(2){flex:1;min-width:0}.ux-room-card strong{font-size:16px;display:block;overflow-wrap:anywhere}.ux-room-card small{display:block;color:var(--muted);font-size:12px;line-height:1.5;margin-top:5px}.ux-room-card>span:last-child{color:var(--accent)}.ux-room-list+.ux-inline-actions{margin-top:16px}.ux-action-stack{display:grid;gap:8px;margin-top:18px}.ux-action-stack .btn{justify-content:flex-start;height:auto;min-height:44px;padding:11px 15px}.ux-room-data{margin-top:20px}
.flow-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:24px 24px 0;scroll-padding-bottom:90px}.flow-dialog>h2{font-size:21px;margin-bottom:18px}.flow-progress{display:flex;gap:8px;margin:14px 0 22px}.flow-progress>span{flex:1;display:flex;align-items:center;gap:7px;font-size:12px;color:var(--muted);line-height:1.3}.flow-progress b{border:1px solid var(--line);display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:50%;font-size:11px;font-weight:600}.flow-progress .active{color:var(--accent);font-weight:700}.flow-progress .active b{background:var(--accent);border-color:var(--accent);color:white}.flow-progress .complete b{color:var(--accent);background:var(--tint);border-color:var(--tint)}.flow-dialog form{margin-top:0}.flow-step{border:0;margin:0;padding:0;min-width:0}.flow-step[hidden],.flow-back[hidden]{display:none!important}.flow-step legend{font-size:17px;font-weight:700;padding:0;margin:0 0 12px}.flow-hint{font-size:13px;line-height:1.5;color:var(--muted);margin:-3px 0 16px}.flow-dialog .field{font-size:12px;margin-bottom:13px}.flow-dialog .input-wrap{margin-top:5px}.flow-dialog .input-wrap input,.flow-dialog .field select{height:42px;font-size:15px}.flow-dialog .field select{margin-top:5px}.flow-dialog .field textarea{height:90px;font-size:14px}.flow-dialog .input-wrap span{top:13px;font-size:11px}.flow-dialog .two-cols{gap:12px}.flow-dialog .small{font-size:12px;line-height:1.5}.flow-dialog .form-section{padding-top:12px;margin-top:16px}.flow-dialog .form-section summary{margin-bottom:12px;font-size:13px;font-weight:600}.flow-dialog .check-field{min-height:32px;font-size:14px;margin:6px 0}.flow-dialog .dialog-actions{position:sticky;bottom:0;background:white;border-top:1px solid var(--line);padding:14px 0 18px;margin-top:20px;z-index:2;gap:8px}.flow-dialog .dialog-actions .btn{font-size:13px;padding-inline:13px}.flow-dialog .flow-back{margin-right:auto}.ux-price-fields{display:grid;gap:2px}.ux-price-choice{border:1px solid var(--line);border-radius:10px;padding:8px 14px;margin-bottom:12px}.ux-price-choice .check-field{padding:8px 0}.ux-price-choice .check-field+.check-field{border-top:1px solid var(--line)}
.item-list{gap:0;border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fff}.item-list .item-card{padding:11px 16px;gap:14px;border:0;border-radius:0;flex-wrap:nowrap;min-height:78px}.item-list .item-card+.item-card{border-top:1px solid var(--line)}.item-list .item-icon{width:34px;height:36px;flex-basis:34px;font-size:11px}.item-list .item-copy{min-width:0;flex:1}.item-list .item-copy h3{font-size:14px;font-weight:600;line-height:1.35}.item-list .item-copy p{font-size:11px;margin:4px 0 0}.item-list .item-price{min-width:92px}.item-list .item-price strong{font-size:15px;font-weight:700}.item-list .item-price small{font-size:11px;margin-top:3px}.item-list .item-card>.row{width:auto;margin:0;gap:0;flex-shrink:0}.item-list .item-card .btn{height:44px;font-size:12px;padding:0 9px;gap:5px}.library-tools{margin:16px 0}.library-tools .field select,.library-tools input{height:42px}.catalog-tabs{margin-bottom:18px}.layer-row{padding:10px 0}.layer-row small{font-size:11px}.surface-list-row{padding:11px 13px;min-height:56px}.surface-list-row strong{font-size:14px}.surface-list-row small{font-size:11px;margin-top:3px}.surface-family{margin:8px 0}.ux-surface-children{margin:0 0 8px 14px;border-left:2px solid var(--line);padding-left:12px}.ux-surface-children summary{cursor:pointer;padding:10px 0;font-size:12px;color:var(--muted)}.ux-surface-children .surface-list-row{margin-bottom:5px}.ux-finish-presets{display:grid;gap:7px;margin:12px 0 18px}.ux-finish-presets .btn{justify-content:flex-start;min-height:48px;height:auto;padding:12px 14px;text-align:left}
.ux-estimate-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.ux-estimate-total strong{font-size:30px;display:block;margin:5px 0 3px}.ux-estimate-total>small,.ux-estimate-total>span{color:var(--muted);font-size:12px}.ux-finances{margin:12px 0 18px}.ux-finances summary{cursor:pointer;padding:12px 0;font-size:13px;font-weight:600}.ux-finances .finance-cards{grid-template-columns:repeat(3,minmax(0,1fr));margin:4px 0}.ux-finances .finance-cards .card{padding:14px}.ux-finances .finance-cards strong{font-size:20px;margin-top:5px}.ux-finances .finance-cards small{min-height:0}.ux-estimate-list{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}.ux-estimate-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;align-items:center;padding:14px 16px;font-size:14px}.ux-estimate-line+.ux-estimate-line{border-top:1px solid var(--line)}.ux-estimate-line>div:first-child strong{font-weight:600}.ux-estimate-line small{display:block;color:var(--muted);font-size:12px;margin-top:5px;line-height:1.4}.ux-estimate-line>span{font-size:13px;color:var(--muted);white-space:nowrap}.ux-estimate-line>strong{white-space:nowrap;font-size:14px}.ux-document-row{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:10px}.ux-document-row>.icon{color:var(--accent)}.ux-document-open{flex:1;min-width:0;text-align:left;padding:4px 0}.ux-document-open strong{font-size:15px;display:block;line-height:1.4}.ux-document-open small{display:block;color:var(--muted);font-size:12px;line-height:1.4;margin-top:4px}.ux-document-actions{gap:10px;align-items:flex-start}.ux-export-more>summary{height:44px;display:flex;align-items:center;justify-content:center;padding:0 14px;border:1px solid var(--line);border-radius:9px;cursor:pointer;font-size:13px;font-weight:600}.ux-export-more>div{display:grid;gap:6px;margin-top:8px}.ux-export-more .btn{justify-content:flex-start}.document-dialog{padding:24px;max-height:calc(100dvh - 28px)}.price-paper{font-family:Gilroy,Arial,sans-serif}.price-paper-scroll{border:1px solid var(--line);border-radius:6px;margin-top:16px}.price-paper-scroll .document-paper{border:0;margin:0}.document-types{gap:8px;margin-top:18px}
@media(max-width:850px){.ux-overview{grid-template-columns:1fr}.ux-next-step{order:-1}.ux-next-step .ux-pencil{float:left;margin-right:16px}.ux-next-step h2{margin:0 0 6px}.ux-next-step p{margin-bottom:12px}.ux-next-step .btn{width:auto}.ux-next-step .ux-total{display:none}.item-list .item-icon{display:none}.ux-progress{gap:10px;padding:12px}.ux-progress>span{font-size:12px;gap:6px}}
@media(max-width:700px){.ux-page{padding:18px 14px 96px}.ux-page .section-head{gap:12px}.ux-page .section-head p{font-size:12px}.ux-page .section-head h1{font-size:24px}.ux-page .section-head .btn{flex-shrink:0;font-size:12px}.ux-search-tools{grid-template-columns:minmax(0,1fr) auto;gap:8px}.ux-filters{width:91px}.ux-filters[open]{width:auto;grid-column:1/-1}.ux-search-tools>input{font-size:14px}.ux-project-row{gap:7px;padding:8px 10px;position:relative;flex-wrap:wrap}.ux-project-open{flex-basis:calc(100% - 52px);padding:4px 0;order:0}.ux-project-row>.icon-btn{order:1}.ux-project-side{order:2;display:flex;align-items:center;justify-content:space-between;flex:1;text-align:left;gap:8px;padding-bottom:3px}.ux-project-side>strong{font-size:13px}.ux-project-name{font-size:15px}.ux-project-meta{font-size:11px}.ux-project-side .badge{font-size:10px;padding:4px 7px}.ux-progress{display:grid;grid-template-columns:1fr 1fr;gap:10px 15px;margin-bottom:14px}.ux-progress>span{font-size:12px}.ux-object-card{padding:14px;margin-bottom:10px}.ux-data>div{grid-template-columns:105px minmax(0,1fr);gap:10px;font-size:13px;padding:7px 0}.ux-data dt{font-size:11px}.ux-next-step{padding:16px}.ux-next-step h2{font-size:17px}.ux-next-step p{font-size:12px}.ux-next-step .ux-pencil{width:40px;height:40px;font-size:28px}.ux-room-card{padding:10px 12px;gap:12px}.ux-room-card .mini-plan{width:45px;height:45px}.ux-room-card strong{font-size:15px}.ux-room-card small{font-size:11px}.ux-action-stack .btn{font-size:13px}.ux-total strong{font-size:20px}.flow-dialog{padding:21px 18px 0;max-height:calc(100dvh - 20px)}.flow-progress{gap:6px;margin-bottom:18px}.flow-progress>span{font-size:11px;gap:4px}.flow-progress b{flex-basis:20px;height:20px;font-size:10px}.flow-dialog .field{font-size:12px}.flow-dialog .input-wrap input,.flow-dialog .field select{font-size:16px}.flow-dialog .dialog-actions{gap:6px;padding-top:12px}.flow-dialog .dialog-actions .btn{font-size:12px;padding:0 11px}.flow-dialog>.dialog-close{top:12px;right:10px}.flow-dialog .two-cols{gap:10px}.item-list .item-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:10px 12px;min-height:94px}.item-list .item-copy{min-width:0}.item-list .item-copy h3{font-size:13px;line-height:1.35}.item-list .item-copy p{font-size:10px}.item-list .item-price{min-width:72px;align-self:start;padding-top:1px}.item-list .item-price strong{font-size:14px}.item-list .item-price small{font-size:10px}.item-list .item-card>.row{grid-column:1/-1;justify-self:end;height:36px}.item-list .item-card .btn{height:36px;font-size:11px;gap:4px;padding:0 8px}.item-list .item-card .icon{width:16px;height:16px}.library-tools{display:grid;grid-template-columns:1fr;margin:12px 0;gap:8px}.library-tools .field{width:100%}.library-tools .field select{margin-top:5px}.library-tools>.btn{margin-top:0}.catalog-tabs .btn{font-size:11px;padding:0 9px}.ux-estimate-head{align-items:flex-end;margin-bottom:12px}.ux-estimate-head .btn{font-size:12px;padding:0 12px}.ux-estimate-total strong{font-size:26px}.ux-finances .finance-cards{grid-template-columns:1fr;gap:7px}.ux-finances .finance-cards .card{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 14px}.ux-finances .finance-cards strong{font-size:17px;margin:0;white-space:nowrap}.ux-finances .finance-cards small{font-size:11px}.ux-estimate-line{grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;padding:12px;font-size:13px}.ux-estimate-line>div:first-child{grid-column:1/-1}.ux-estimate-line>span{font-size:12px}.ux-estimate-line small{font-size:11px}.ux-estimate-line>strong{font-size:13px}.ux-document-row{gap:10px;padding:11px 12px;flex-wrap:wrap}.ux-document-open{flex-basis:calc(100% - 40px)}.ux-document-open strong{font-size:14px}.ux-document-open small{font-size:11px}.ux-document-row>.badge{margin-left:31px;font-size:10px}.ux-document-row>.btn{margin-left:auto;font-size:11px;height:36px}.document-dialog{width:calc(100vw - 16px);padding:20px 14px}.document-action-bar .btn{font-size:12px}.ux-export-more>summary{font-size:12px;padding-inline:11px}.price-paper-scroll .document-paper{padding:14px}.price-paper table{min-width:440px}.surface-list-row{padding:10px 12px}.surface-list-row strong{font-size:13px}.surface-list-row small{font-size:11px}.layer-row>div{min-width:0;flex-basis:calc(100% - 20px)}.layer-row .btn{min-height:36px}.surface-summary{font-size:12px;padding:10px}.ux-finish-presets .btn{font-size:13px}.ux-empty{padding:32px 12px}}
@media(prefers-reduced-motion:reduce){.ux-pencil{transform:none}.flow-dialog *{scroll-behavior:auto}}

/* Review package SV-007/008/011: visible, independently resettable restrictions. */
.ux-filter-state{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:-4px 0 10px;font-size:12px}
.ux-filter-state>span{max-width:100%;overflow-wrap:anywhere;padding:6px 9px;border-radius:6px;background:var(--tint)}
.ux-filter-state>.btn{min-height:36px;height:auto;font-size:12px}
.ux-results-count{margin:0 0 10px}.ux-filters .field{margin-top:10px}

.ux-filters[open]{width:120px;padding:0;border:0;background:transparent}
.ux-filters[open]>summary{border:1px solid var(--line);justify-content:center;margin:0}
.ux-filter-fields{position:absolute;z-index:30;right:0;top:52px;width:320px;max-width:calc(100vw - 32px);max-height:60dvh;overflow:auto;padding:14px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #20282914}
.ux-filter-fields p{font-size:12px}.ux-filter-fields>.field:first-child{margin-top:0}
.ux-filter-fields .ux-inline-actions{justify-content:space-between;gap:4px}.ux-filter-fields .btn{padding-inline:6px;font-size:12px}
@media(max-width:700px){.ux-filters[open]{width:91px;grid-column:auto}}
.project-employee-filter{border:0;padding:0;margin:14px 0;font-size:13px}
.project-employee-filter>div{max-height:150px;overflow:auto;margin:6px 0}
.project-employee-filter>div>label{display:flex;gap:8px;align-items:center;min-height:36px;overflow-wrap:anywhere}
.project-employee-filter input{flex:none;accent-color:var(--ink)}
.ux-project-row:has(.project-search-matches){flex-wrap:wrap}
.project-search-matches{flex:0 0 100%;min-width:0;padding-top:8px;border-top:1px solid var(--line);grid-column:1/-1}
.project-search-hit{display:flex;flex-direction:column;gap:4px;width:100%;min-width:0;padding:9px 10px;border:0;border-radius:6px;background:transparent;text-align:left;color:var(--ink);cursor:pointer;overflow-wrap:anywhere}
.project-search-hit>strong{font-size:13px}.project-search-hit>span{font-size:12px;line-height:1.4;color:var(--muted)}.project-search-hit>small{font-size:11px}
.project-search-hit:hover{background:var(--tint)}.project-search-hit:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.project-search-matches summary{font-size:12px;min-height:36px;padding:8px 10px;cursor:pointer}
.project-search-status{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 12px}.project-search-status>.btn{font-size:12px;flex-shrink:0}
.project-filter-footer{position:sticky;bottom:-14px;display:flex;justify-content:space-between;gap:8px;background:#fff;padding:10px 0;border-top:1px solid var(--line);margin-top:10px}
.project-filter-footer>.btn{min-height:40px;font-size:12px}
@media(max-width:700px){.project-search-status{align-items:flex-start;flex-wrap:wrap}.project-search-status .btn{padding-inline:8px}.ux-project-side>small{font-size:10px}}

.live-estimate{min-width:0}.live-estimate-modes,.live-estimate-channels{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.live-estimate-modes .active,.live-estimate-channels .active{background:var(--lime,#d3f36a);border-color:var(--lime,#d3f36a);color:#202829}.live-estimate-total{display:flex;gap:12px;flex-direction:column;margin:16px 0}.live-estimate-total>strong{font-size:28px;font-variant-numeric:tabular-nums}.live-estimate-total>small{max-width:620px;line-height:1.5;color:var(--muted,#69726a)}.live-estimate-dialog{width:min(960px,calc(100vw - 24px))!important}.live-estimate .estimate-quantity{white-space:normal!important;max-width:220px}.work-surface-shortcuts{display:flex;gap:4px;padding:0 8px 8px}.live-estimate .ux-estimate-line>div:first-child{min-width:0}.live-estimate .ux-estimate-line strong{overflow-wrap:anywhere}.live-estimate .ux-inline-actions:has(.estimate-project-items){display:block}
@media(max-width:600px){.live-estimate-modes{display:grid;grid-template-columns:1fr 1fr}.live-estimate-modes .btn{white-space:normal;min-height:44px;text-align:left}.live-estimate .ux-estimate-line{grid-template-columns:minmax(0,1fr) auto}.live-estimate .estimate-quantity{grid-column:1;max-width:none}.live-estimate .estimate-line-amount{grid-column:2;grid-row:1/3}.live-estimate .section-head{align-items:flex-start}.live-estimate .section-head h2{font-size:21px}}

/* One compact address chooser, shared dialog navigation and save footer. */
[data-address-fields]{border:0;padding:0;margin:0;min-width:0}
[data-address-choice],[data-address-status]{overflow-wrap:anywhere;font-size:13px;line-height:1.5}
[data-address-choice]:empty,[data-address-status]:empty{display:none}
[data-address-results]{margin-top:8px;max-height:32dvh;overflow:auto;overscroll-behavior:contain}
.project-address-candidate{display:block;text-align:left;width:100%;min-height:48px;padding:12px 8px;border:0;border-bottom:1px solid var(--line);background:transparent;color:inherit;font:inherit;overflow-wrap:anywhere;cursor:pointer}
.project-address-candidate small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.project-address-candidate:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.project-address-candidate:active{background:var(--lime,#d4f76d)}
