/* Selected warm direction, layered over the accepted M001 layout. */
body:has(:is(.m001-overview,.m001-space)){background:#f5f6f7;--bg:#f5f6f7;--line:#eaece4;--muted:#80877e;color:#272e29}
.m001-warm-object-art{float:right;width:64px;height:64px;object-fit:contain;margin:0 0 6px 12px;pointer-events:none}
.project-head.m001-object-head{display:grid;grid-template-columns:minmax(0,1fr) 52px;grid-template-areas:"title art" "meta meta" "created created";column-gap:12px;align-items:start}
.project-head.m001-object-head>.m001-warm-object-art{grid-area:art;float:none;width:52px;height:52px;margin:0;justify-self:end}
.project-head.m001-object-head>h1{grid-area:title;min-width:0}
.project-head.m001-object-head .m001-inline-title{display:flex;align-items:flex-start;width:100%;min-width:0;gap:6px}
.project-head.m001-object-head .m001-object-title-text{min-width:0;overflow-wrap:anywhere}
.project-head.m001-object-head .m001-inline-title>svg{flex:0 0 15px;margin:5px 0 0}
.project-head.m001-object-head>.m001-object-meta{grid-area:meta;min-width:0}
.project-head.m001-object-head>.m001-object-meta>span{min-width:0;max-width:100%;overflow-wrap:anywhere}
.project-head.m001-object-head>.m001-object-created{grid-area:created;min-width:0}
.m001-overview-estimate,.m001-room-estimate{background:#fff;box-shadow:0 3px 14px #53452404}
.m001-overview-icon,.m001-room-estimate-icon{background:#edf1df;color:#69794f}
.m001-overview-next{background:#fff}
.m001-overview-step,.m001-room-next{background:#f0f3e9;color:#3e4536;border-radius:18px}
.m001-overview-step small,.m001-room-next small{color:#7e8b77}
.m001-overview .work-overview-rooms.work-panel,.m001-surfaces,.m001-space .work-space-panels,.m001-space .space-geometry-disclosure,.m001-overview .work-overview-side>.work-panel,.m001-overview .m001-overview-tools{background:#fff}
.m001-overview .lab-room-preview{background:transparent;width:48px;height:48px;flex-basis:48px;position:relative}
.lab-room-preview .m001-room-miniature{width:44px;height:44px;object-fit:contain}
.lab-room-preview:has(.m001-room-miniature) .space-cover:not([data-cover-state=photo]){background:transparent}
.lab-room-preview:has(.m001-room-miniature) .space-cover-fallback{visibility:hidden}
.m001-space .work-surface-row>.surface-preview{background:#eff0e6}
.m001-space .space-plan-card{background:#eaf0df}
.m001-space .space-gallery-jump,.m001-space .space-room-heading .space-gallery-jump{width:56px;height:56px;min-width:56px;background:transparent;overflow:visible}
.m001-space .space-gallery-jump .space-cover{width:56px;height:56px;background:transparent;border-radius:16px}
.m001-space .space-gallery-jump .space-cover-fallback{background:transparent url('./assets/m001/room-illustration-v2.png') center/contain no-repeat;width:56px;height:56px}
.m001-space.m001-kitchen .space-gallery-jump .space-cover-fallback{background-image:url('./assets/m001/room-illustration-v2.png')}
.m001-space .space-gallery-jump .space-cover-fallback>svg{visibility:hidden}
.m001-space .space-gallery-jump .space-cover-photo{width:56px;height:56px;object-fit:cover}
.m001-space .space-gallery-jump [hidden]{display:none!important}
.m001-overview .work-object-info .lab-object-data{padding:0 16px 16px}
.m001-overview .work-object-info .object-data-actions{display:flex;justify-content:space-between;gap:8px;margin:0 0 10px}
.m001-overview .object-data-actions>.btn{min-height:44px;border:0;background:#f2f3eb;border-radius:12px;padding:8px 12px;font-size:12px}
.m001-overview .object-data-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px;margin:0;padding:14px;background:#f5f6f7;border-radius:16px}
.m001-overview .object-data-facts>.is-wide{grid-column:1/-1}
.m001-overview .object-data-facts dt{font-size:11px;color:#83897c;margin-bottom:5px}
.m001-overview .object-data-facts dd{font-size:14px;line-height:1.4;margin:0;color:#30382e;overflow-wrap:anywhere}
.m001-overview .object-data-facts .m001-add-contact{font-size:12px;min-height:44px;padding:0;border:0;background:transparent;justify-content:flex-start;color:#65784a}
.m001-overview .work-object-info .ux-inline-actions{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0}
.m001-overview .work-object-info .ux-inline-actions>.btn{font-size:12px;min-height:44px;border:0;padding:8px;background:transparent}
.m001-overview .work-object-info .work-disclosure{border:0;border-top:1px solid #e9ece2;border-radius:0;margin:4px 0;background:none;padding:0}
.m001-overview .work-object-info .work-disclosure>summary{padding:12px 0;min-height:48px;font-size:13px}
.m001-overview .work-object-info .work-disclosure-body{padding:0 0 12px}
.m001-overview .work-object-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;border:0;margin:6px 0 0;padding:0}
.m001-overview .work-object-actions>.btn{display:flex;align-items:center;justify-content:flex-start;gap:8px;border:0;border-radius:12px;background:#f2f3eb;min-height:48px;padding:10px;font-size:12px;line-height:1.25;text-align:left;white-space:normal}
.m001-overview .work-object-actions>.btn .icon{width:18px;height:18px;flex:none;color:#748365}
/* Compact sheets: same typography, clear fields, one primary action. */
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog){font-family:Gilroy,Arial,sans-serif;color:#293129;background:#fff;border:0;border-radius:26px;padding:24px 20px 16px;max-width:440px;box-shadow:0 24px 80px #27301d26}
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog)::backdrop{background:#242c2442;backdrop-filter:blur(4px)}
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) #dialog-title{font-family:inherit;font-size:21px;font-weight:700;letter-spacing:-.4px;line-height:1.2;padding:0 46px 0 0;margin:0 0 20px}
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) .dialog-close{width:44px;height:44px;min-width:44px;top:14px;right:14px;border:0;border-radius:50%;background:#eff2e9;color:#7f896e}
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) label{font-size:12px;color:#7e8878;line-height:1.4}
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-family:inherit;font-size:15px;font-weight:500;color:#30382e;background:#f3f5f1;border:1px solid transparent;border-radius:13px;box-shadow:none;min-height:46px;padding:12px;max-width:100%}
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) :is(input,select,textarea):focus-visible{outline:2px solid #9caf75;outline-offset:2px;background:#fff}
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) :is(input,textarea)::placeholder{color:#9a9f91;font-weight:400}
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) textarea{min-height:88px;height:88px;resize:vertical}
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) .dialog-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:8px;border:0;padding:14px 0 0;margin-top:6px;background:transparent}
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) .dialog-actions>.btn{width:auto;min-height:44px;border:0;border-radius:13px;font-size:13px;font-weight:600;padding:10px 16px;margin:0;background:#eff2e9;color:#626f54}
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) .dialog-actions>.btn:not(.primary){flex:0 0 auto!important;order:0!important}
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) .dialog-actions>.primary{flex:1 1 auto!important;order:1!important;background:#d6f56b;color:#293126}
#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) .dialog-actions>[hidden]{display:none}
#modal.lab-project-edit .flow-progress{margin:0 0 14px;padding:0;border:0;background:none}
#modal.lab-project-edit .flow-section-picker{display:flex;align-items:center;gap:12px;width:100%}
#modal.lab-project-edit .flow-section-picker>span{font-size:11px;color:#828b79}
#modal.lab-project-edit .flow-section-picker select{flex:1;min-width:0;font-size:14px;min-height:44px;background:#edf1df}
#modal.lab-project-edit .flow-step{border:0;padding:0;margin:0}
#modal.lab-project-edit .flow-step>legend{display:none}
#modal.lab-project-edit .flow-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#modal.m001-assembly-start #dialog-title::after{content:'1 / 2';display:inline-block;font-size:11px;letter-spacing:0;font-weight:500;color:#8d967f;margin-left:10px;vertical-align:middle}
#modal.assembly-dialog #dialog-title::after{content:'2 / 2';display:inline-block;font-size:11px;font-weight:500;color:#8d967f;margin-left:10px;vertical-align:middle}
.m001-assembly-intro{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#f0f3e9;border-radius:16px;margin-bottom:16px}
.m001-assembly-intro>img{width:52px;height:52px;flex:none;object-fit:contain}
.m001-assembly-intro strong{font-size:14px;font-weight:600}
.m001-assembly-intro p{font-size:12px;line-height:1.4;margin:4px 0 0;color:#878c7d}
#modal.m001-assembly-start .assembly-caption{font-size:13px;font-weight:600;margin:8px 0}
#modal.m001-assembly-start .assembly-source-list{gap:6px;margin:0}
#modal.m001-assembly-start .assembly-source-list label{display:flex;align-items:center;gap:12px;border:0;border-radius:14px;padding:12px;min-height:56px;background:#f3f4eb;color:#3c4734}
#modal.m001-assembly-start .assembly-source-list label:has(input:checked){background:#edf2de}
#modal.m001-assembly-start input[type=checkbox]{width:20px;height:20px;accent-color:#778d4f;margin:0;flex:none}
#modal.m001-assembly-start .assembly-source-list strong{font-size:14px;font-weight:600}
#modal.m001-assembly-start .assembly-source-list small{font-size:11px;color:#8c967f}
#modal.assembly-dialog{max-width:720px}
#modal.assembly-dialog #assembly-canvas{border:0;border-radius:16px;background:#f4f5ed;min-height:180px}
#modal.assembly-dialog :is(.assembly-controls,.assembly-wall-picker,.assembly-selected) .btn{min-height:44px;border:0;border-radius:12px;background:#f0f2e6;font-size:12px;padding:8px 12px}
#modal.assembly-dialog .assembly-wall-picker .btn.active{background:#e5edcf;color:#4e663b}
#modal.assembly-dialog .assembly-controls{gap:6px;flex-wrap:wrap}
#modal.assembly-dialog .assembly-header{font-size:13px;color:#7d8870}
#modal.assembly-dialog .assembly-footnote{font-size:11px;color:#8d967f}
@media(prefers-reduced-motion:no-preference){
 #modal[open]:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog){animation:m001-warm-sheet 200ms cubic-bezier(.2,.8,.2,1)!important}
 #modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) :is(button,input,select,textarea,.assembly-source-list label){transition:background-color 140ms ease,border-color 140ms ease,transform 120ms ease}
 #modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) button:active{transform:scale(.98)}
 #modal.lab-project-edit .flow-step:not([hidden]),.work-object-info[open]>.lab-object-data{animation:m001-detail-arrive 160ms ease-out}
}
@keyframes m001-warm-sheet{from{transform:translateY(10px)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog),#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) *,.work-object-info[open]>.lab-object-data{animation:none!important;transition:none!important}}
@media(max-width:350px){.m001-warm-object-art{width:52px;height:52px;margin-left:8px}.m001-space .space-room-heading .space-gallery-jump{display:block;width:44px;height:44px;min-width:44px}.m001-space .space-gallery-jump :is(.space-cover,.space-cover-fallback,.space-cover-photo){width:44px;height:44px}.m001-space .space-room-heading h2{font-size:21px}.m001-overview .work-object-actions>.btn{font-size:11px;padding:8px;gap:6px}#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog){padding-inline:16px}#modal:is(.lab-project-edit,.m001-room-edit,.m001-assembly-start,.assembly-dialog) #dialog-title{font-size:19px}}
