/* Shared interaction language. Geometry and printed documents keep their units/layout. */
:root{--bg:#f4f3ec;--ink:#272920;--muted:#61675e;--line:#dedfd5;--accent:#39452c;--tint:#eff5dc;--danger:#ad3d35;--focus:#526534}
body{font-weight:500}[hidden]{display:none!important}h1,h2,h3,strong,b{font-weight:700}.small,.muted{line-height:1.5}
button,a,input,select,textarea,summary{touch-action:manipulation}
button,.btn,a,input,select,textarea,summary{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease}
button:disabled{opacity:.48}.btn{font-weight:600;border-radius:10px}.btn:not(:disabled):hover{border-color:#acb991;background:#f6f8ee}.btn.primary:not(:disabled):hover{background:#29341f;border-color:#29341f;box-shadow:0 3px 9px #47531d20}
.btn.active,.btn.quiet.active,.segmented .btn.active,.ux-list-tools .segmented .btn.active{background:var(--tint);border-color:var(--accent);color:#272920;box-shadow:inset 0 0 0 1px #5c733525;font-weight:700}
.btn:active:not(:disabled),.icon-btn:active:not(:disabled){background:#e3edc7}.btn.primary:active:not(:disabled){background:#272920}
:is(button,a,summary,input,select,textarea):focus-visible{outline:3px solid var(--focus);outline-offset:3px;box-shadow:0 0 0 5px #eff5dc}
:is(h1,h2,legend)[tabindex="-1"]:focus{outline:none}
.icon-btn{width:44px;height:44px}.btn.quiet{color:#404b35}.btn.quiet:hover{background:var(--tint)}
.btn[data-v="remove-layer"]:hover,.btn[data-v="delete-element"]:hover{color:var(--danger);background:#fbeeea}
.nav-item.selected,.mobile-nav .active{color:#272920;background:var(--tint)}.nav-item.selected{box-shadow:inset 3px 0 var(--accent)}
.tabs{gap:24px}.tab{min-height:44px;font-weight:600;border-bottom-width:3px}.tab.active{color:#272920}.tab:hover{color:var(--accent)}
.topbar{height:56px}.breadcrumb b{font-weight:600}.saved{min-height:40px;border-radius:8px;padding:5px 9px;line-height:1.3}.saved:hover{background:var(--tint)}.saved .icon{stroke-width:1.8}
.project-head{padding-top:20px}.project-head h1{font-size:25px}.project-meta{font-size:12px;gap:10px;flex-wrap:wrap}.project-meta .demo-label{color:#68705f}.content-page.ux-page,.content-page.catalog-v13{padding-top:24px}.section-head h1,.section-head h2{letter-spacing:-.4px}
.ux-project-row,.ux-room-card,.work-room-card,.work-surface-row,.space-plan-card,.ux-document-row{transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}
.ux-project-row:has(.ux-project-open:hover),.ux-project-row:focus-within,.work-room-card:hover,.work-surface-row:hover,.space-plan-card:hover,.ux-document-row:has(button:hover){border-color:#abb98b;background:#fdfef9;box-shadow:0 2px 8px #373e2105}
.ux-project-open{padding:9px 0}.ux-project-name{font-weight:700}.ux-project-meta,.ux-document-open small{font-size:12px}.ux-project-side .badge{background:#eff2e6;color:#4e5c3f}
.ux-data>div{padding:7px 0}.ux-data dt{font-size:12px}.ux-object-card{padding:18px}.ux-overview{gap:16px}.ux-next-step{padding:20px;background:linear-gradient(155deg,#fcfdf7,#f2f6e5);border-color:#dde6c5}.ux-next-step h2{margin:5px 0 8px;font-size:20px}.ux-next-step p{font-size:13px}.ux-next-step .ux-art{width:160px;height:114px;margin:-8px auto 6px;display:block}
.ux-progress{gap:8px;padding:8px;margin-bottom:18px}.ux-progress>button{flex:1;display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:9px 12px;border-radius:7px;font-size:13px;color:var(--muted);text-align:left}.ux-progress>button .icon{width:19px;height:19px}.ux-progress>button:hover{background:#f4f6eb}.ux-progress .done{color:#526344}.ux-progress .current{background:var(--tint);color:#272920;font-weight:700;box-shadow:inset 0 -2px #a7bf69}
.ux-art{width:174px;height:124px;color:#616f30;flex-shrink:0;max-width:100%}.ux-art .art-fill{fill:#eaede0}.ux-art .art-warm{fill:#ecbd78;stroke:#9a7040}.ux-art .art-pencil{fill:#e7b574;stroke:#846238}.ux-art .art-measure{stroke:#a2a98a;stroke-width:1.5}
.ux-empty,.catalog-empty{padding:30px 18px}.ux-empty>.ux-art,.catalog-empty>.ux-art{display:block;margin:0 auto 8px}.ux-empty h2,.catalog-empty h2{margin:6px 0 9px}.ux-empty p,.catalog-empty p{max-width:390px;margin:0 auto 18px;font-size:14px}.ux-empty .btn{white-space:normal;min-height:44px;height:auto;padding:12px 16px}
.work-type-grid{gap:10px}.work-type-button{position:relative;gap:4px;border-color:var(--line);border-radius:12px;overflow:hidden}.work-type-button>.ux-art{width:112px;height:80px;margin:-4px auto 2px}.work-type-button strong{font-size:15px}.work-type-button small{font-size:12px;color:var(--muted)}.work-type-button:hover{border-color:var(--accent);background:#f7f8f2}.work-type-button:focus-visible{outline-offset:-4px}
.work-room-card,.space-plan-card{border-radius:11px}.work-room-heading strong{font-size:16px}.work-surface-copy small,.work-room-heading small{font-size:12px}.space-plan-card>span:last-child{font-size:12px;color:var(--accent);font-weight:600}.space-calculation-options{margin-top:18px}
details>summary{cursor:pointer;min-height:40px;line-height:1.4;padding-block:10px}details>summary:hover{color:var(--accent)}.ux-details>summary,.form-section>summary{font-size:13px;font-weight:600}.form-section>summary{margin-bottom:4px}.form-section[open]>summary{margin-bottom:12px}.ux-inline-actions{gap:6px}
dialog{border:1px solid #d9dccf;border-radius:18px;box-shadow:0 24px 90px #31381b33;max-height:calc(100dvh - 32px);scrollbar-width:thin;scroll-padding:24px 0 100px}dialog::backdrop{background:#32382055;backdrop-filter:blur(4px)}
dialog:not(.assembly-dialog):not(.document-dialog):not(.property-sheet){width:min(580px,calc(100vw - 32px));padding:25px 24px 0}
dialog>h2{padding-right:35px;margin-bottom:18px;font-size:22px}.dialog-close{top:13px;right:12px;background:#f5f6f3;color:#5f6646;z-index:5}.dialog-close:hover{background:#eceee5}.dialog-actions{position:sticky;bottom:0;z-index:3;background:#fff;border-top:1px solid var(--line);padding:14px 0 18px;margin-top:22px;gap:8px}.dialog-actions .btn{min-height:44px}.dialog-actions .primary{margin-left:auto;min-width:116px}dialog:not(:has(.dialog-actions)){padding-bottom:24px!important}
.field,.flow-dialog .field{font-size:13px;color:#545942;font-weight:600;margin-bottom:14px;line-height:1.4}.field input,.field select,.field textarea{font-weight:500}.input-wrap input,.field select,.flow-dialog .input-wrap input,.flow-dialog .field select{height:44px;border-color:#d3dbc1;border-radius:9px;background:#fff}.input-wrap input:hover,.field select:hover,.field textarea:hover{border-color:#a6ae8c}.input-wrap span{color:#757b63;pointer-events:none}.field textarea{min-height:80px;resize:vertical;border-color:#d3dbc1;border-radius:9px}.input-wrap input[readonly]{background:#f4f5f2;color:#717662}.field input::placeholder,.field textarea::placeholder{color:#838873;font-weight:400}
input[aria-invalid="true"],textarea[aria-invalid="true"],select[aria-invalid="true"]{border-color:var(--danger)!important;background:#fff9f6!important;outline-color:var(--danger)!important}.error:not(:empty){background:#fff2ec;border:1px solid #efc9bc;border-radius:8px;padding:11px 13px;color:#92392f;font-size:13px;line-height:1.5;margin-top:12px}.error:empty{margin:0;padding:0}
.flow-dialog>.flow-progress{gap:4px;margin:0;padding:4px;background:#f4f5f1;border-radius:10px}.flow-progress>button{flex:1;display:flex;align-items:center;gap:7px;justify-content:center;text-align:left;padding:8px 7px;border-radius:7px;min-height:44px;font-size:12px;line-height:1.3;color:#6f745f}.flow-progress>button b{background:transparent;flex:0 0 21px;height:21px;border:0;border-radius:5px;font-size:11px}.flow-progress>button.active{background:#fff;color:#424e1b;box-shadow:0 1px 4px #3a431a14}.flow-progress>button.active b{background:var(--accent);color:#fff}.flow-progress>button.complete b{color:var(--accent);background:#ecefe4}.flow-progress>button:disabled{opacity:.7;cursor:default}.flow-status{font-size:11px;color:#767b66;margin:12px 0 8px}.flow-step legend{font-size:18px;margin-bottom:12px}.flow-hint{font-size:13px}.flow-dialog .dialog-actions .btn{font-size:13px}.flow-dialog .small{font-size:12px}.check-field,.flow-dialog .check-field{min-height:44px;line-height:1.45;gap:10px}.check-field input{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0}
.catalog-row{min-height:74px}.catalog-item-copy strong{font-size:14px;line-height:1.35}.catalog-item-copy small{font-size:12px;line-height:1.35;color:#6c715a}.catalog-category.active{background:var(--tint);color:#44501c;border-color:#a2b970;box-shadow:inset 3px 0 var(--accent)}.catalog-thumb{background:#f1f5f0;border-color:#e1e9df}.catalog-top-actions{gap:8px}.catalog-controls input,.catalog-controls select{min-height:44px;font-size:14px}.catalog-price strong{font-size:15px;font-variant-numeric:tabular-nums}.catalog-add{min-height:44px;min-width:44px}.catalog-photo-editor input[type="file"]{max-width:100%;font-size:12px}.catalog-photo-editor{padding:10px;border:1px dashed #d7dbca;border-radius:10px;background:#f9fbf7;margin-bottom:16px}.catalog-photo-editor .field{margin:0}.catalog-photo-editor img{border-radius:8px}.catalog-results{font-size:12px}
.surface-summary{background:#f1f5e5;border:1px solid #dfe7cc;border-radius:9px;padding:12px}.layer-row{gap:10px}.layer-row strong{font-size:14px}.layer-row small{font-size:12px}.layer-dot{background:#9fae78}.ux-estimate-total strong{color:#272920}.ux-estimate-line>strong{font-variant-numeric:tabular-nums}.ux-document-row>.document-icon{display:grid;place-items:center;width:38px;height:42px;background:#f0f5e2;border-radius:9px;color:var(--accent)}.document-action-bar{gap:8px}.price-paper-scroll{background:#f4f3ec;padding:10px;border-radius:10px}.price-paper-scroll .document-paper{background:white;box-shadow:0 2px 8px #373e210d}
.view-tabs .btn{min-height:40px;font-weight:600;border-radius:9px}.view-tabs .btn.active{background:var(--tint);color:#272920;box-shadow:inset 0 -2px #a8bc75}.context-toolbar{gap:8px}.undo-icon.btn{min-width:44px;padding-inline:11px}.undo-icon .icon{width:19px;height:19px}.focus-status .btn.active{background:#edf3dc;color:#3c492d;box-shadow:none}.focus-status .btn{font-size:12px}.focus-status>span,.focus-status .plan-hint{font-size:12px;color:#616c54;line-height:1.4}.surface-actions .btn{min-height:42px}.surface-nav-row{border-radius:9px;margin-bottom:4px}.surface-nav-row:hover,.surface-nav-row:focus-visible{background:#edf4d9;border-color:#a7bd74}.surface-navigator>p{font-size:12px}.measurement-section-toggle{min-height:48px}.measurement-section-toggle[aria-expanded="true"]{color:#3f4e2b}.measurement-side-list input{min-height:44px;border-color:#d3dac3}.measurement-save .btn{min-height:44px}.construction-banner{background:#f0f5df}.construction-banner.is-conflict{background:#fff0e4}.construction-banner.is-draft{background:#f3f5eb}.construction-banner strong{font-weight:600}.drawing-controls .btn:hover{background:#eaf2d7}.drawing-rotation-panel{border-color:#d6dfbd;box-shadow:0 8px 25px #424c211c}.drawing-rotation-panel input{accent-color:var(--accent)}
.keep-together{white-space:nowrap}.catalog-basic-grid{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:12px}.catalog-photo-editor input::file-selector-button,.chat-file-input::file-selector-button{border:1px solid #d1dabb;border-radius:7px;background:white;color:#435333;font:inherit;font-weight:600;padding:8px 11px;margin-right:10px;cursor:pointer}.catalog-photo-editor .field{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.catalog-photo-editor input:focus-visible{outline-offset:2px}.script-picker{max-height:380px;overflow:auto;scroll-padding:12px}.script-picker-row{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:12px;align-items:center;padding:8px;border-radius:9px;border-bottom:1px solid var(--line)}.script-picker-row[hidden]{display:none}.script-picker-row:has(input:checked){background:#eff5dd}.script-picker-row .check-field{margin:0;font-size:13px;min-width:0}.script-picker-row .field{margin:0;font-size:11px}.script-picker-row .input-wrap{margin-top:3px}.script-picker-row .input-wrap input{padding-inline:8px;width:100%;height:38px}.script-picker-row .input-wrap span{display:none}#script-item-search{display:block;width:100%;border:1px solid #d3dbc1;border-radius:8px;padding:10px 12px;margin-top:6px}.chat-scope-tabs .btn.active{background:var(--tint);border-color:#a2b970;color:#272920}.chat-status{font-size:12px;color:#566546}.chat-message{border-radius:12px;border-color:#dce3ce}.chat-message.mine{background:#edf5d6;border-color:#d4e1b4}.chat-composer textarea{min-height:76px}.chat-composer .chat-files{font-size:12px;color:#667154}.chat-composer .field{margin-bottom:10px}.chat-toolbar .btn{min-height:44px}.catalog-row .catalog-add{min-width:44px;min-height:44px}
#toast{background:#272920;color:#fff;box-shadow:0 7px 26px #2d341720;border-radius:11px;max-width:min(520px,calc(100vw - 28px));line-height:1.45;font-size:14px}
@media(min-width:1100px){body:not(.editor-focus) .shell{grid-template-columns:164px minmax(0,1fr)}.sidebar{padding-inline:12px}.brand-word{display:block;font-size:21px}.brand{gap:9px}.brand-mark{width:34px;height:34px}.brand-mark svg{width:24px;height:24px}.nav-item{justify-content:flex-start;padding:0 13px;gap:11px}.nav-text{display:block;font-size:13px;font-weight:600}.sidebar-bottom{width:100%;display:flex;justify-content:space-between;padding:0 8px}.sidebar-bottom>.icon-btn{color:#626e51}}
@media(max-width:850px){.ux-next-step{display:grid;grid-template-columns:85px minmax(0,1fr);gap:0 14px;padding:16px}.ux-next-step>.ux-art{grid-row:1/4;width:88px;height:86px;margin:auto}.ux-next-step>h2,.ux-next-step>p,.ux-next-step>.btn{grid-column:2}.ux-next-step h2{font-size:18px}.ux-next-step .btn{justify-self:start;min-height:44px}.ux-progress{display:flex;gap:3px}.ux-progress>button{gap:6px;font-size:12px;padding:8px}.ux-room-line{align-items:flex-start}.ux-room-line>span{max-width:50%;text-align:right;white-space:normal}.surface-actions{gap:6px}}
@media(max-width:700px){
 body{font-size:15px}.topbar{height:52px;padding-inline:14px}.topbar .badge.neutral{display:none}.breadcrumb{font-size:12px;gap:7px;min-width:0}.breadcrumb b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:40vw}.saved{font-size:11px;padding-inline:4px;min-width:0}.saved .icon{width:15px}.project-head{padding:16px 14px 0}.project-head h1{font-size:22px}.project-head .head-action{padding:0 11px;font-size:12px}.project-meta{gap:6px 9px;font-size:12px}.tabs{gap:20px;margin-top:17px}.tab{font-size:13px;padding-bottom:12px}.mobile-nav{padding-bottom:env(safe-area-inset-bottom)}.mobile-nav button{border-radius:9px;margin:5px 3px;font-size:11px;min-height:48px}.content-page.ux-page,.content-page.catalog-v13{padding:18px 14px 100px}.ux-page .section-head{align-items:flex-start}.section-head>.row{gap:4px;flex-wrap:wrap;justify-content:flex-end}.ux-page .section-head .btn{white-space:normal;min-height:44px;height:auto;padding:10px 12px}.ux-page .section-head h2{font-size:20px}.ux-page .section-head p{font-size:13px}.ux-progress>button{flex-direction:column;gap:5px;padding:8px 4px}.ux-progress>button .icon{width:18px;height:18px}.ux-progress{margin-bottom:12px}.ux-object-card{padding:15px}.ux-project-name{font-size:15px}.ux-project-meta{font-size:12px}.ux-document-open small{font-size:12px}.ux-room-line{gap:10px}.work-room-heading strong{font-size:15px}.work-room-heading small,.work-surface-copy small{font-size:12px}.space-plan-card>span:last-child{font-size:12px}.work-type-grid{grid-template-columns:1fr 1fr}.work-type-button{padding:10px}.work-type-button>.ux-art{width:100px;height:72px}.work-type-button small{font-size:12px}.space-page .section-head>.row>.btn.quiet{font-size:11px;padding-inline:7px}.space-breadcrumb .btn{font-size:13px}
 dialog:not(.assembly-dialog):not(.document-dialog):not(.property-sheet){width:calc(100vw - 20px);padding:20px 17px 0;border-radius:16px;max-height:calc(100dvh - 20px)}dialog>h2{font-size:20px;margin-bottom:16px}.dialog-close{top:9px;right:8px}.field input,.field select,.field textarea,.flow-dialog .input-wrap input,.flow-dialog .field select{font-size:16px!important}.field,.flow-dialog .field{font-size:13px}.flow-progress>button{gap:4px;padding:7px 4px;font-size:11px}.flow-progress>button b{flex-basis:19px;height:20px}.flow-status{font-size:12px;margin:11px 0}.flow-step legend{font-size:17px}.flow-dialog .two-cols,.two-cols{gap:10px}.dialog-actions{padding-bottom:max(16px,env(safe-area-inset-bottom));gap:6px}.dialog-actions .btn,.flow-dialog .dialog-actions .btn{font-size:13px;padding-inline:12px}.dialog-actions .primary{min-width:104px}.flow-hint{font-size:13px}.check-field{font-size:14px}.ux-price-choice{padding:4px 12px}.ux-price-choice .check-field{padding:9px 0}.catalog-item-copy strong{font-size:13px}.catalog-item-copy small{font-size:11px}.catalog-row{min-height:78px;padding-block:9px}.catalog-price strong{font-size:14px}.catalog-top-actions .btn{font-size:12px;padding-inline:11px;min-height:44px}.catalog-tabs .btn{font-size:12px;min-height:44px;padding-inline:10px}.catalog-photo-editor{padding:8px}.ux-estimate-line{font-size:14px}.ux-estimate-line small{font-size:12px}.ux-estimate-line>strong{font-size:14px}.ux-estimate-line>span{font-size:13px}.ux-document-open strong{font-size:14px}.ux-inline-actions .btn{min-height:44px}.price-paper-scroll{padding:5px}.document-action-bar .btn{min-height:44px}.layer-row .btn{min-height:44px}.layer-row small{font-size:12px}.surface-actions .btn{min-height:44px;font-size:13px}.view-tabs .btn{min-height:44px}.focus-status .btn{min-height:40px}.focus-status .plan-hint{font-size:11px}.context-toolbar .btn{min-height:44px}.measurement-dock .input-wrap input{font-size:16px}.surface-navigator header .btn{min-width:44px}.surface-nav-row{min-height:52px}.surface-nav-row small{font-size:12px}.surface-navigator>p{font-size:12px}.ux-empty>.ux-art{width:155px;height:110px}
}
@media(prefers-reduced-motion:no-preference){dialog[open]{animation:ux-dialog-in .17s ease-out}@keyframes ux-dialog-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:700px){.context-toolbar>.row{gap:4px;flex-wrap:wrap;justify-content:flex-end}.context-toolbar .undo-icon.btn{display:inline-flex!important;min-width:44px;width:44px;padding:0}.context-toolbar .btn{padding-inline:10px}.context-toolbar .plan-current{min-width:0}.context-toolbar .plan-current span{font-size:10px}.catalog-basic-grid{grid-template-columns:minmax(0,1fr) 85px;gap:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.touch-hint{display:none}@media(pointer:coarse){.touch-hint{display:inline}.pointer-hint{display:none}}
@media print{.ux-art{display:none}.price-paper-scroll{padding:0;border:0;background:white}.document-paper{box-shadow:none!important}}
