/* M001 local design review. Scoped to the object list and its active shell. */
/* Selected option 1: all stages visible; no page-sized title or carousel. */
.m001-funnel-nav{order:4;min-width:0;margin:0 0 8px}
.m001-stage-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;background:#fff;padding:10px;border-radius:24px}
.m001-projects .m001-stage-tab{display:flex;align-items:center;gap:8px;min-width:0;min-height:46px;padding:10px;border:0;border-radius:14px;background:#f3f4f6;color:#58606b;text-align:left;cursor:pointer;box-shadow:none;font:500 14px/1.25 Gilroy,Arial,sans-serif}
.m001-stage-tab>.icon{width:20px;height:20px;flex:0 0 20px;color:#737b85}
.m001-stage-tab>span{flex:1;min-width:0;overflow-wrap:anywhere}
.m001-stage-tab>strong{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
.m001-projects .m001-stage-tab[aria-pressed=true]{background:#e3eddf;color:#345744;box-shadow:inset 0 0 0 1px #cbdcc5}
.m001-stage-tab[aria-pressed=true]>.icon{color:#496d57}
.m001-map-footer{display:flex;justify-content:flex-end;min-height:44px;padding:0 4px}
.m001-projects .m001-map-footer>button{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 9px;border:0;background:none;font:500 13px Gilroy,Arial,sans-serif;color:#7c858d;cursor:pointer}
.m001-projects .m001-map-footer>button[aria-pressed=true]{color:#345744;font-weight:600}
.m001-map-footer span{font-variant-numeric:tabular-nums}
@media(min-width:900px){.m001-stage-map{grid-template-columns:repeat(4,minmax(0,1fr));max-width:100%}.m001-projects .m001-stage-tab{min-height:52px;font-size:15px;gap:12px}}
@media(max-width:350px){.m001-stage-map{gap:6px;padding:8px;border-radius:20px}.m001-projects .m001-stage-tab{font-size:12px;gap:6px;padding:9px 8px;min-height:44px}.m001-stage-tab>.icon{width:17px;height:17px;flex-basis:17px}.m001-stage-tab>strong{font-size:14px}}
.m001-projects .m001-pipeline{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;min-width:0}
.m001-pipeline .pipeline-column>h3{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;font-size:15px;font-weight:650;color:#293b32}
.m001-pipeline .pipeline-column>h3>small{display:grid;place-items:center;min-width:24px;height:24px;padding:0 5px;background:#eaf0e5;border-radius:8px;font-size:12px}
.m001-projects .m001-pipeline-move{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:56px;margin:12px 0 0;padding:11px 12px;border:0;border-radius:14px;background:#f1f5e9;color:#304232;text-align:left;cursor:pointer}
.m001-pipeline-move>span:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.m001-pipeline-move small{font-size:10px;line-height:1.3;color:#73806b}
.m001-pipeline-move strong{font-size:13px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.m001-move-call{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:550}
.m001-move-call .icon{width:17px;height:17px;flex-shrink:0}
.m001-stage-empty{padding:26px 20px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;background:#fff;border-radius:24px;color:#66766d}
.m001-stage-empty>.icon{width:30px;height:30px;color:#a5b99a}
.m001-stage-empty>strong{font-size:15px;font-weight:600;color:#425448}
.m001-stage-empty>p{font-size:12px;line-height:1.5;margin:0;max-width:220px}
dialog:has(.m001-stage-choices){max-height:calc(100dvh - 24px);overflow-y:auto;background:#fff}
.m001-move-intro{display:flex;flex-direction:column;gap:6px;margin:4px 0 18px}
.m001-move-intro>strong{font-size:15px;font-weight:650;line-height:1.35}
.m001-move-intro>span{font-size:12px;color:#748078}
.m001-stage-choices{padding:0;margin:0;border:0;display:grid;gap:5px;min-width:0}
.m001-stage-choices>legend{font-size:12px;color:#748078;margin-bottom:8px;padding:0}
.m001-stage-choice{position:relative;display:flex;align-items:center;gap:11px;min-height:48px;padding:9px 12px;border:1px solid transparent;border-radius:13px;background:#f6f7f8;cursor:pointer}
.m001-stage-choice>input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.m001-stage-choice:has(input:focus-visible){outline:2px solid #526534;outline-offset:2px}
.m001-stage-choice:has(input:checked){background:#eef5e4;border-color:#c7dbab}
.m001-stage-number{width:25px;height:25px;display:grid;place-items:center;flex-shrink:0;border-radius:50%;background:#e9edee;color:#7a8783;font-size:11px}
.m001-stage-choice:has(input:checked) .m001-stage-number{background:#d3f36a;color:#283d28}
.m001-stage-title{display:flex;flex-direction:column;gap:3px;flex:1;font-size:14px;color:#304038}
.m001-stage-title>small{font-size:10px;color:#7d8981}
.m001-stage-choice>.icon{width:19px;height:19px;color:#4c6943;opacity:0}
.m001-stage-choice:has(input:checked)>.icon{opacity:1}
.m001-move-note{font-size:11px;line-height:1.5;color:#7a847d;margin:14px 0 0}
dialog:has(.m001-stage-choices) .dialog-actions{position:sticky;bottom:0;background:#fff;padding-top:12px;z-index:2}
@media(min-width:900px){.m001-projects .m001-pipeline{grid-template-columns:repeat(2,minmax(0,1fr))}.m001-projects .m001-pipeline:has(.pipeline-column:only-child){grid-template-columns:minmax(0,560px)}}
body:has(.m001-projects){background:#f5f6f7;color:#1d2228;font-family:Gilroy,Arial,sans-serif}
body:has(.m001-projects) button,body:has(.m001-projects) input,body:has(.m001-projects) h1{font-family:inherit}
body:has(.m001-projects) .topbar{display:none}
.m001-projects{--ink:#1d2228;--muted:#72777e;--line:#e9ebee;--bg:#f5f6f7;--surface:#fff;--action:#d3f36a;max-width:1080px;margin:0 auto;display:flex;flex-direction:column;padding:30px 28px 100px;gap:0}
.m001-projects .section-head{order:0;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:12px;margin:0 0 18px;align-items:center}
.m001-projects .section-head h1{display:flex;align-items:baseline;gap:10px;font-size:28px;line-height:1.2;letter-spacing:-.7px;margin:0;font-weight:750}
.m001-count{font-size:18px;letter-spacing:0;color:#8a8f95;font-weight:500}
.m001-header-actions{display:flex;align-items:center;gap:6px}
.m001-projects .m001-add{width:44px;height:44px;min-height:44px;min-width:44px;border-radius:50%;padding:11px;border:0;box-shadow:0 3px 10px #83983d12;background:#d3f36a;color:#202829}
.m001-add .icon{width:23px;height:23px}
.m001-more{position:relative;border:0;padding:0;margin:0;background:none}
.m001-more>summary{list-style:none;display:grid;place-items:center;width:44px;min-width:44px;max-width:44px;height:44px;border-radius:50%;cursor:pointer;font-size:15px;letter-spacing:2px;background:#fff;color:#333b42}
.m001-more:not([open])>div,.m001-projects .ux-filters:not([open])>.ux-filter-fields{display:none}
.m001-more>summary::-webkit-details-marker{display:none}
.m001-more[open]>div{position:absolute;right:0;top:52px;min-width:215px;padding:8px;border-radius:18px;background:#fff;box-shadow:0 10px 35px #20282924;z-index:55;display:grid}
.m001-more[open]>div>.btn{justify-content:flex-start;min-height:48px;text-align:left;border:0;background:#fff;color:var(--ink)}
.m001-projects .ux-search-tools{order:1;position:relative;display:flex;gap:0;align-items:stretch;margin:0 0 12px;border-radius:16px;background:#e9ebee;border:0;min-height:46px}
.m001-projects .work-search{flex:1;min-width:0;background:none;border:0;box-shadow:none;padding:0 12px;border-radius:16px;min-height:46px;gap:9px}
.m001-projects .work-search .icon{width:20px;height:20px;color:#767c84}
.m001-projects .work-search>input{font-size:16px;min-height:46px;background:none;color:var(--ink);padding:0;border:0;outline-offset:-2px}
.m001-projects .work-search>input::placeholder{font-size:15px;color:#757b82}
.m001-projects .ux-filters,.m001-projects .ux-filters[open]{position:static;min-width:48px;width:48px;border:0;padding:0;background:transparent}
.m001-projects .ux-filters>summary,.m001-projects .ux-filters[open]>summary{position:relative;display:flex;justify-content:center;align-items:center;border:0;border-radius:14px;min-height:46px;width:48px;min-width:48px;max-width:48px;padding:0;background:none;box-shadow:none}
.m001-projects .ux-filters>summary>.icon{display:block;width:21px;height:21px;color:#414a52}
.m001-projects .ux-filters[open]>summary{background:#dde2d5}
.m001-filter-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.m001-projects .ux-filters>summary>.work-count{position:absolute;right:0;top:0;font-size:10px;min-width:16px;min-height:16px;padding:1px;background:#d3f36a}
/* Icon-only view selection, beside search rather than a separate tab row. */
.m001-toolbar{order:1;display:flex;align-items:flex-start;gap:8px;margin:0 0 20px;min-width:0}
.m001-toolbar>.ux-search-tools{order:0;flex:1;min-width:0;margin:0;max-width:none}
.m001-view-switch{flex:0 0 auto;display:flex;gap:0;padding:3px;border-radius:15px;background:#e9ebee;height:50px}
.m001-projects .m001-view-button{display:grid;place-items:center;width:40px;min-width:40px;height:44px;min-height:44px;margin:0;padding:9px;border:0;border-radius:12px;background:transparent;color:#7b818a;box-shadow:none;cursor:pointer}
.m001-projects .m001-view-button[aria-pressed=true]{background:#fff;color:#242d34;box-shadow:0 2px 4px #26364112}
.m001-view-button>.icon{width:22px;height:22px;stroke-width:1.8}
.m001-toolbar .work-search,.m001-toolbar .work-search>input,.m001-toolbar .ux-filters>summary,.m001-toolbar .ux-filters[open]>summary{min-height:50px}
@media(min-width:900px){.m001-toolbar{max-width:620px}}
@media(max-width:350px){
 .m001-toolbar{gap:6px}
 .m001-toolbar .work-search{padding:0 8px;gap:6px}
 .m001-toolbar .work-search .icon{width:18px;height:18px;flex:0 0 18px}
 .m001-toolbar .work-search>input::placeholder{font-size:13px}
 .m001-toolbar .ux-filters,.m001-toolbar .ux-filters[open],.m001-toolbar .ux-filters>summary,.m001-toolbar .ux-filters[open]>summary{width:40px;min-width:40px;max-width:40px}
}
.m001-projects>.ux-filter-state,.m001-projects>.project-search-status{order:3}
.m001-projects>.ux-results-count{order:4;margin:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);position:absolute}
.m001-projects>.ux-project-list,.m001-projects>.pipeline,.m001-projects>.card,.m001-projects>.empty-state,.m001-projects>.ux-empty{order:5}
.m001-projects>.project-pagination{order:6}

/* Restore the owner's selected hierarchy: identity, facts, next action. */
.m001-projects .ux-project-list{display:grid;grid-template-columns:1fr;gap:14px}
.m001-projects .m001-card{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:0;padding:16px;background:#fff;border:1px solid #fff;border-radius:24px;box-shadow:0 4px 18px #26364105;overflow:visible}
.m001-projects .ux-project-open{grid-column:1;display:flex;align-items:center;gap:12px;min-height:52px;padding:0;min-width:0;border:0;background:none;text-align:left;border-radius:10px;color:var(--ink)}
.m001-projects .ux-project-open .project-cover{width:52px;height:52px;min-width:52px;aspect-ratio:1;border-radius:17px;background:#f3f5f1;flex:0 0 52px;overflow:hidden;position:relative}
.m001-projects .project-cover-fallback{height:100%;width:100%;display:flex;align-items:center;justify-content:center}
.m001-projects .project-cover-fallback[hidden]{display:none}
.m001-projects .m001-room-art{display:block;width:58px;height:58px;max-width:none;object-fit:contain;flex-shrink:0}
.m001-projects .project-cover-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.m001-projects .ux-project-copy{display:block;flex:1;min-width:0}
.m001-projects .ux-project-name{display:block;font-size:16px;font-weight:650;line-height:1.3;letter-spacing:-.25px;overflow-wrap:anywhere;color:#1d2228}
.m001-projects .ux-project-name>.icon{width:14px;height:14px;vertical-align:-1px;margin-right:4px;color:#778849}
.m001-projects .ux-project-meta{display:block;margin-top:5px;font-size:12px;line-height:1.4;font-weight:400;color:#707780;overflow-wrap:anywhere}
.m001-projects .m001-card>.m001-card-menu{grid-column:2;grid-row:1;order:0;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;background:none;color:#7b8188;border-radius:12px;letter-spacing:1px;justify-self:end;align-self:center}
.m001-facts{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin:12px 0 10px;min-width:0;font-size:12px;color:#6c747e}
.m001-facts>span{display:inline-flex;align-items:center;gap:5px;line-height:1.4}
.m001-facts .icon{width:14px;height:14px;flex-shrink:0}
.m001-stage{font-weight:550;color:#58636d;background:#f0f2f4;border-radius:8px;padding:4px 8px}
.m001-stage.is-working{color:#49675a;background:#edf3ee}
.m001-stage.is-done{color:#27654b;background:#e8f4ed}
.m001-projects .m001-detail{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-width:0;min-height:48px;width:100%;padding:12px 0 1px;border:0;border-top:1px solid #eceff1;border-radius:0;background:none;font:inherit;color:var(--ink);text-decoration:none;cursor:pointer;text-align:left}
.m001-detail-label{display:flex;align-items:center;gap:6px;flex:0 1 auto;font-size:12px;line-height:1.35;color:#717983}
.m001-detail-label>.icon{width:16px;height:16px;flex-shrink:0;color:#7e8991}
.m001-detail-label small{display:block;margin-top:4px;font-size:10px;line-height:1.35;color:#7b827b}
.m001-detail-value{margin-left:auto;display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0;text-align:right}
.m001-detail-value>strong{font-size:13px;line-height:1.35;font-weight:600;color:#263832;overflow-wrap:anywhere}
.m001-detail-value>small{font-size:10px;line-height:1.3;font-weight:400;color:#747d85}
.m001-detail.is-amount .m001-detail-value>strong{font-size:18px;font-weight:650;letter-spacing:-.4px;font-variant-numeric:tabular-nums;color:#202b30}
.m001-detail>.icon{width:14px;height:14px;flex:0 0 14px;color:#929ca4}
.m001-projects .m001-next{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:10px 11px;border:0;border-radius:14px;background:#f2f5f8;margin:12px 0 0;text-decoration:none;color:#42566a;min-height:56px}
.m001-next>.icon{width:20px;height:20px;flex:0 0 20px}
.m001-next>span{min-width:0;flex:1}
.m001-next>span>strong{display:block;font-size:13px;line-height:1.35;font-weight:550;overflow-wrap:anywhere}
.m001-next>span>small{display:block;font-size:11px;line-height:1.45;margin-top:4px;color:#6c737b;overflow-wrap:anywhere}
.m001-next>.icon:last-child{width:14px;height:14px;flex-basis:14px}
.m001-projects .m001-next.is-overdue{color:#ac4932;background:#fcf2ed}
.m001-projects .m001-next.is-overdue small{color:#935947}
.m001-projects .project-search-matches{grid-column:1/-1}
.m001-projects button:focus-visible,.m001-projects summary:focus-visible,.m001-projects a:focus-visible{outline:2px solid #526534;outline-offset:3px}
.m001-projects button:hover,.m001-projects summary:hover,.m001-projects a.m001-detail:hover{filter:brightness(.98)}
.m001-projects .ux-project-open:active,.m001-projects .m001-detail:active{opacity:.7}
.m001-projects .pipeline{gap:16px;align-items:start}
.m001-projects .pipeline-column{min-width:0;background:transparent}
.m001-projects .pipeline-column .m001-card{margin-bottom:14px}
@media(min-width:900px){.m001-projects .ux-project-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.m001-projects .ux-search-tools{max-width:520px}.m001-projects .ux-filters>summary{min-width:48px}}
@media(max-width:700px){
 .content-page.m001-projects:not(.home-page){padding:22px 16px 100px;max-width:540px}
 .m001-projects .section-head h1{font-size:27px}
 .m001-projects .section-head{margin-bottom:12px}
 .m001-projects .ux-filter-fields{position:fixed;left:12px;right:12px;top:130px;bottom:88px;width:auto;max-width:none;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:16px;border:1px solid #e9ebee;border-radius:22px;box-shadow:0 15px 65px #1d222835;z-index:70;background:#fff}
 body:has(.m001-projects) .app-mobile.mobile-nav{background:#ffffffed;border:0;border-top:1px solid #eaedf0;box-shadow:0 -4px 22px #20282904;padding:8px 8px max(8px,env(safe-area-inset-bottom));gap:2px;backdrop-filter:blur(14px)}
 body:has(.m001-projects) .app-mobile .nav-item{background:none;border:0;color:#92979d;height:50px;border-radius:12px;font-size:10px;font-weight:500;gap:5px;position:relative}
 body:has(.m001-projects) .app-mobile .nav-item.selected{color:#202829;background:#f0f3e9;box-shadow:none;font-weight:650}
 body:has(.m001-projects) .app-mobile .nav-item .icon{width:21px;height:21px}
}
@media(max-width:350px){
 .content-page.m001-projects:not(.home-page){padding:18px 12px 95px}
 .m001-projects .m001-card{padding:14px;border-radius:22px}
 .m001-projects .ux-project-name{font-size:15px}
 .m001-projects .ux-project-open{gap:9px}
 .m001-projects .ux-project-open .project-cover{width:48px;height:48px;min-width:48px;flex-basis:48px;border-radius:14px}
 .m001-projects .m001-room-art{width:54px;height:54px}
 .m001-detail-label{font-size:11px}
 .m001-detail-value>strong{font-size:12px}
 .m001-detail.is-amount .m001-detail-value>strong{font-size:16px}
 .m001-facts{gap:8px 12px;font-size:11px}
}

/* Iteration 05: one visual language for filters and object actions. */
.m001-projects .pipeline-column{width:auto;max-width:none;padding:0}
.m001-projects .m001-stage-edit{display:inline-flex;align-items:center;gap:8px;border:0;font:inherit;font-weight:600;min-height:40px;padding:8px 10px;cursor:pointer}
.m001-projects .m001-stage-edit .icon{width:14px;height:14px}
.m001-projects .ux-project-name,.m001-projects .m001-detail.is-amount strong{font-weight:700}
.m001-projects .m001-stage,.m001-projects .m001-next strong{font-weight:500}
@media(min-width:900px){
 .m001-projects .m001-pipeline:has(.pipeline-column:only-child){grid-template-columns:minmax(0,1fr)}
 .m001-pipeline>.pipeline-column:only-child{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;align-items:start}
 .m001-pipeline>.pipeline-column:only-child>h3{grid-column:1/-1;margin:0}
}
.m001-projects .ux-filter-fields{display:flex;flex-direction:column;gap:0;position:fixed;top:150px;bottom:24px;left:max(24px,calc((100vw - 1192px)/2));right:auto;width:480px;max-width:calc(100vw - 32px);max-height:760px;padding:0;overflow:hidden;border:0;border-radius:26px;background:#fff;box-shadow:0 20px 80px #17222e30;z-index:70;font-family:Gilroy,Arial,sans-serif}
.m001-filter-header{flex:none;display:flex;align-items:center;justify-content:space-between;padding:18px 20px 10px}
.m001-filter-header>strong{font-size:24px;font-weight:700;letter-spacing:-.4px}
.m001-filter-header>button{display:grid;place-items:center;min-width:44px;width:44px;height:44px;border:0;border-radius:50%;background:#f1f2f4;color:#727c84;cursor:pointer}
.m001-filter-header .icon{width:20px;height:20px}
.m001-filter-content{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;padding:0 20px 20px;scrollbar-width:thin;scrollbar-color:#d6dbe0 transparent}
.m001-filter-section{padding:20px 0 0;margin:0;border:0;order:10}
.m001-filter-section>h3{display:flex;align-items:center;gap:8px;font-size:17px;line-height:1.3;font-weight:700;margin:0 0 14px}
.m001-filter-section>h3>span{font-size:12px;color:#536744;background:#eef4df;padding:3px 7px;border-radius:8px}
.m001-filter-section[data-filter-section=object]{order:0;padding-top:8px}
.m001-filter-section[data-filter-section=people]{order:1}
.m001-filter-section[data-filter-section=dates]{order:2}
.m001-filter-section[data-filter-section=money]{order:3}
.m001-filter-section[data-filter-section=contact]{order:4}
.m001-filter-section[data-filter-section=details]{order:5}
.m001-filter-content>.btn,.m001-filter-content>.error{order:11;margin-top:16px}
.m001-filter-section fieldset{border:0;padding:0;margin:0;min-width:0}
.m001-filter-section legend,.m001-field-caption{font-size:13px;color:#818993;margin:0 0 9px;font-weight:500}
.m001-projects .m001-folder-options{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.m001-projects .project-stage-filter{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.m001-projects label.m001-filter-chip{position:relative;display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;border:1px solid transparent;border-radius:12px;background:#f1f3f5;color:#44505b;cursor:pointer;font-size:14px;font-weight:500;line-height:1.25;margin:0}
.m001-filter-chip>input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.m001-projects .m001-filter-chip:has(input:checked){background:#eaf2d6;color:#334c22;border-color:#c5d5a8;font-weight:600}
.m001-projects .m001-filter-chip:has(input:focus-visible){outline:2px solid #607748;outline-offset:2px}
.m001-filter-section .field{margin:0 0 12px;font-size:13px;color:#7b848c;font-weight:500;gap:7px}
.m001-filter-section .field input,.m001-filter-section .field select{border:0;background:#f1f3f5;border-radius:12px;min-height:48px;padding:12px;font-family:inherit;font-size:16px;font-weight:500;color:#27343e;max-width:100%;box-shadow:none}
.m001-filter-section .field input:focus,.m001-filter-section .field select:focus{outline:2px solid #b5c797;outline-offset:0}
.m001-filter-section .two-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.m001-filter-section .small.muted{font-size:12px;line-height:1.4;color:#869099;margin:2px 0 4px}
.m001-projects .project-employee-filter>legend{display:none}
.m001-projects .project-employee-filter>div{display:flex;flex-direction:column;gap:2px;background:#f4f5f7;border-radius:15px;padding:4px 12px}
.m001-projects .project-employee-filter label{display:flex;align-items:center;gap:10px;min-height:48px;font-size:14px;color:#35434e;margin:0;cursor:pointer}
.m001-projects .project-employee-filter input{width:20px;height:20px;accent-color:#597442;flex:0 0 20px}
.m001-projects .project-employee-filter>div input{order:2;margin-left:auto}
.m001-projects .project-employee-filter>.check{margin-top:8px}
.m001-projects .project-filter-footer{flex:none;display:grid;grid-template-columns:1fr 1.6fr;gap:10px;padding:14px 20px max(16px,env(safe-area-inset-bottom));margin:0;border-top:1px solid #eef0f3;background:#fff;position:static}
.m001-projects .project-filter-footer>.btn{min-height:48px;border:0;border-radius:14px;font:600 15px Gilroy,Arial,sans-serif;background:#f2f4f6}
.m001-projects .project-filter-footer>.primary{background:#d3f568;color:#28351b}
#modal:has(.m001-object-menu),#modal.lab-room-create{font-family:Gilroy,Arial,sans-serif;background:#fff;color:#25323b;border:0;border-radius:28px;padding:26px 20px 22px;max-width:480px}
#modal:has(.m001-object-menu) h2,#modal.lab-room-create h2{font-size:22px;line-height:1.2;font-weight:700;letter-spacing:-.4px;padding-right:46px;margin:0 0 10px}
#modal:has(.m001-object-menu) .dialog-close,#modal.lab-room-create .dialog-close{width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;background:#f1f3f5;color:#78828a;top:16px;right:16px;border-radius:50%}
.m001-menu-context,#modal.lab-room-create .lab-dialog-context{font-size:14px;color:#808991;line-height:1.4;margin:0 0 22px}
.m001-menu-group{background:#f4f5f7;border-radius:16px;padding:4px 14px;margin-top:10px}
.m001-menu-row{width:100%;min-height:52px;display:flex;align-items:center;gap:12px;padding:9px 0;background:none;border:0;border-radius:0;font:500 15px Gilroy,Arial,sans-serif;text-align:left;color:#34414b;cursor:pointer}
.m001-menu-row+.m001-menu-row{border-top:1px solid #e9edf0}
.m001-menu-row>.icon:first-child{width:20px;height:20px;flex:0 0 20px;color:#7b8892}
.m001-menu-row>span{flex:1;min-width:0}
.m001-menu-row>small{font-size:12px;color:#7b8790;max-width:35%;text-align:right}
.m001-menu-row>.icon:last-child{width:14px;height:14px;color:#a2aab1;flex:0 0 14px}
.m001-menu-row.is-danger,.m001-menu-row.is-danger>.icon:first-child{color:#b95349}
#modal.lab-room-create form{margin-top:22px}
#modal.lab-room-create .field{font-size:13px;color:#7c878f;margin-bottom:20px}
#modal.lab-room-create input[name=name]{border:0;background:#f2f4f6;min-height:52px;border-radius:14px;font:500 16px Gilroy,Arial,sans-serif;padding:14px;color:#25323b;box-shadow:none}
#modal.lab-room-create input[name=name]:focus{outline:2px solid #b6c99a;outline-offset:0}
.m001-field-caption{display:block}
#modal.lab-room-create .room-name-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
#modal.lab-room-create .room-name-presets>.btn{min-height:44px;margin:0;padding:10px 8px;border:1px solid transparent;border-radius:12px;background:#f2f4f6;color:#46535d;font:500 14px Gilroy,Arial,sans-serif}
#modal.lab-room-create .room-name-presets>.btn[aria-pressed=true]{background:#eaf2d6;border-color:#c5d5a8;color:#334c22}
.m001-room-more{padding:0;margin-top:8px;border:0;background:none}
.m001-room-more>summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:500;color:#7a8791;list-style:none;cursor:pointer;padding:8px 2px}
.m001-room-more>summary .icon{width:16px;height:16px;transform:rotate(90deg)}
.m001-room-more[open]>summary .icon{transform:rotate(-90deg)}
#modal.lab-room-create .dialog-actions{margin-top:22px;display:flex}
#modal.lab-room-create .dialog-actions>.primary{width:100%;min-height:50px;background:#d3f568;border:0;border-radius:14px;color:#29371d;font:600 16px Gilroy,Arial,sans-serif}
#modal.lab-room-create .dialog-actions>[data-action=close-modal]{display:none}
@media(max-width:700px){
 .m001-projects .ux-filter-fields{left:8px;right:8px;top:90px;bottom:8px;width:auto;max-width:none;max-height:none;border-radius:26px;box-shadow:0 0 0 100vmax #202a3338,0 12px 60px #25313e25}
 .m001-filter-header{padding:16px 18px 8px}
 .m001-filter-content{padding:0 18px 18px}
 .m001-projects .project-filter-footer{padding:12px 18px max(16px,env(safe-area-inset-bottom))}
 #modal:has(.m001-object-menu),#modal.lab-room-create{width:calc(100vw - 16px);max-width:480px;max-height:calc(100dvh - 32px);margin:auto auto 8px;padding:26px 20px 22px}
}
.m001-projects .project-employee-filter input[type=checkbox]{appearance:none;border:1.5px solid #cdd5dc;border-radius:6px;background:#fff;display:grid;place-items:center;margin-top:0}
.m001-projects .project-employee-filter input[type=checkbox]:checked{background:#d5eca4;border-color:#c0d88b}
.m001-projects .project-employee-filter input[type=checkbox]:checked::after{content:'';width:9px;height:5px;border-left:2px solid #405b28;border-bottom:2px solid #405b28;transform:rotate(-45deg);margin-top:-3px}
.m001-projects .project-employee-filter input:focus-visible{outline:2px solid #607748;outline-offset:3px}
.m001-projects .m001-stage-tab{gap:6px;padding:10px 8px;font-size:13px}
.m001-stage-tab>.icon{width:18px;height:18px;flex-basis:18px}
.m001-stage-tab>span{overflow-wrap:normal}
@media(max-width:350px){.m001-projects .m001-stage-tab{display:grid;grid-template-columns:1fr auto;gap:5px 6px;min-height:61px;font-size:12px;padding:8px 10px}.m001-stage-tab>span{grid-column:1/-1;grid-row:2}.m001-stage-tab>strong{grid-column:2;grid-row:1}.m001-stage-tab>.icon{grid-column:1;grid-row:1}}
@media(min-width:900px){.m001-projects .m001-stage-tab{font-size:15px;padding:12px;gap:10px}}
/* Iteration07: compact, consistent stage and project sheets. */
#modal:has(.m001-stage-choices),#modal:has(.project-create-form){font-family:Gilroy,Arial,sans-serif;color:#25323b;background:#fff;border:0;border-radius:28px;padding:26px 20px 20px;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto}
#modal:has(.m001-stage-choices) h2,#modal:has(.project-create-form) h2{font-size:22px;font-weight:700;line-height:1.2;letter-spacing:-.4px;margin:0 0 12px;padding-right:44px}
#modal:has(.m001-stage-choices) .dialog-close,#modal:has(.project-create-form) .dialog-close{width:44px;height:44px;min-height:44px;min-width:44px;border:0;border-radius:50%;background:#f1f3f5;color:#78828a;top:16px;right:16px;padding:0}
#modal:has(.m001-stage-choices) form{margin-top:18px}
.m001-move-intro{margin:0 0 22px;gap:7px}
.m001-move-intro>strong{font-size:14px;font-weight:500;color:#65727b}
.m001-move-intro>span{font-size:13px;color:#819087}
.m001-stage-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.m001-stage-choices>legend{font-size:13px;color:#7f8991;margin-bottom:12px}
.m001-stage-choice{display:grid;grid-template-columns:1fr auto;align-content:start;gap:7px 6px;min-height:76px;padding:11px 12px;background:#f2f4f6;border-radius:14px;border:1px solid transparent}
.m001-choice-icon{grid-column:1;grid-row:1;display:flex;color:#7b8790}
.m001-choice-icon>.icon{width:19px;height:19px}
.m001-stage-choice .m001-stage-title{grid-column:1/-1;grid-row:2;font-size:14px;font-weight:500;color:#46545f;gap:3px}
.m001-stage-title>small{font-size:11px;color:#7c8c83}
.m001-choice-check{grid-column:2;grid-row:1;display:flex;opacity:0;color:#385a42}
.m001-choice-check>.icon{width:18px;height:18px}
.m001-stage-choice:has(input:checked){background:#e5eedf;border-color:#c6d9bc}
.m001-stage-choice:has(input:checked) .m001-choice-check{opacity:1}
.m001-stage-choice.is-current:not(:has(input:checked)){border-color:#dce3de;background:#f4f6f4}
#modal:has(.m001-stage-choices) .dialog-actions,#modal:has(.project-create-form) .dialog-actions{display:flex;margin:20px 0 0;padding:10px 0 0;position:sticky;bottom:0;background:#fff;z-index:2}
#modal:has(.m001-stage-choices) .dialog-actions>[data-action=close-modal],#modal:has(.project-create-form) .dialog-actions>[data-action=close-modal]{display:none}
#modal:has(.m001-stage-choices) .dialog-actions>.primary,#modal:has(.project-create-form) .dialog-actions>.primary{width:100%;min-height:50px;background:#d3f568;border:0;border-radius:14px;color:#29371d;font:600 15px/1.3 Gilroy,Arial,sans-serif;white-space:normal;padding:12px}
#modal:has(.m001-stage-choices) .dialog-actions>.primary:disabled{background:#f0f2f4;color:#89929a;opacity:1}
#modal:has(.project-create-form) .flow-progress,#modal:has(.project-create-form) .flow-status,#modal:has(.project-create-form) .flow-step>legend{display:none}
#modal:has(.project-create-form) form{margin-top:0}
#modal:has(.project-create-form) .flow-step{border:0;padding:0}
#modal:has(.project-create-form) .flow-hint{margin:0 0 22px;font-size:14px;line-height:1.4;color:#849098}
#modal:has(.project-create-form) .field{font-size:13px;font-weight:500;color:#78868f;margin:0 0 16px;gap:8px}
#modal:has(.project-create-form) input{background:#f2f4f6;border:0;border-radius:14px;min-height:50px;font:500 16px Gilroy,Arial,sans-serif;padding:13px;color:#25323b;box-shadow:none}
#modal:has(.project-create-form) input:focus{outline:2px solid #b6c99a;outline-offset:0}
#modal:has(.project-create-form) input::placeholder{color:#929ca3;font-weight:400}
#modal:has(.project-create-form) [data-new-address-picker]{margin:-8px 0 14px}
#modal:has(.project-create-form) [data-new-address-picker]>.btn{border:0;background:none;color:#697f6b;font:500 13px Gilroy,Arial,sans-serif;min-height:44px;padding:8px 0}
#modal:has(.project-create-form) [data-address-selected]:empty{display:none}
#modal:has(.project-create-form) .project-client-details{padding:0;margin:8px 0 0;border:0;background:none}
#modal:has(.project-create-form) .project-client-details>summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:12px 0;border-top:1px solid #edf0f2;font:600 14px Gilroy,Arial,sans-serif;color:#54636e}
#modal:has(.project-create-form) .project-client-details>summary::after{display:none}
.project-client-details>summary>.icon{width:16px;height:16px;transform:rotate(90deg);color:#8d979e}
.project-client-details[open]>summary>.icon{transform:rotate(-90deg)}
.m001-optional-caption{font-size:12px;color:#89949c;margin:0 0 14px}
@media(max-width:700px){#modal:has(.m001-stage-choices),#modal:has(.project-create-form){width:calc(100vw - 16px);margin:auto auto 8px;padding:24px 18px 18px}}
@media(max-width:350px){.m001-stage-choice{padding:9px 10px;min-height:72px}.m001-stage-choice .m001-stage-title{font-size:13px}}
.m001-created{grid-column:1/-1;display:block;margin-top:12px;font:400 11px/1.4 Gilroy,Arial,sans-serif;color:#879198;text-align:right}
/* Iteration08: object overview follows the approved M001 visual system. */
body:has(.m001-overview){background:#f5f6f7;color:#25323b;font-family:Gilroy,Arial,sans-serif;--bg:#f5f6f7;--surface:#fff;--line:#e9edf0;--ink:#25323b;--muted:#7b8690;--action:#d3f568}
body:has(.m001-overview) button,body:has(.m001-overview) input{font-family:inherit}
body:has(.m001-overview) .m001-object-context{display:flex;align-items:center;justify-content:space-between;max-width:1080px;margin:0 auto;padding:12px 28px 0;min-height:52px;border:0;background:none}
.m001-object-context>.btn{padding:0;min-height:44px;border:0;background:none;font-size:13px;color:#73808a}
.m001-object-settings{width:44px;height:44px;border:0;border-radius:50%;display:grid;place-items:center;background:#fff;color:#6f7c86;cursor:pointer}
.m001-object-settings>.icon{width:20px;height:20px}
.project-head.m001-object-head{max-width:1080px;margin:0 auto;padding:8px 28px 0;border:0;background:none}
.project-head.m001-object-head h1{font-size:27px;line-height:1.18;letter-spacing:-.5px;font-weight:700;margin:0;color:#202b33;overflow-wrap:anywhere}
.m001-object-meta{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;margin-top:11px;font-size:12px;color:#7d8790}
.m001-object-meta>span{display:inline-flex;align-items:center;gap:5px;min-width:0;overflow-wrap:anywhere}
.m001-object-meta>.m001-stage{font-size:12px;padding:5px 8px;border-radius:8px}
.m001-object-meta .icon{width:14px;height:14px;flex-shrink:0}
.m001-object-created{display:block;font-size:11px;color:#8b949b;margin-top:7px}
.content-page.m001-overview{max-width:1080px;margin:0 auto;padding:18px 28px 100px}
.m001-overview .work-overview-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:20px;align-items:start}
.m001-overview .work-overview-main,.m001-overview .work-overview-side{display:flex;flex-direction:column;gap:14px;min-width:0;width:100%}
.m001-overview button,.m001-overview a{text-decoration:none}
.m001-overview-estimate{display:flex;align-items:center;gap:12px;width:100%;min-height:76px;padding:16px;border:0;border-radius:22px;background:#fff;text-align:left;color:#26333b;cursor:pointer}
.m001-overview-icon{width:42px;height:42px;border-radius:14px;background:#eef2e7;color:#617452;display:grid;place-items:center;flex:0 0 42px}
.m001-overview-icon>.icon{width:23px;height:23px}
.m001-overview-estimate>span:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.m001-overview-estimate small{font-size:12px;color:#7d8790}
.m001-overview-estimate strong{font-size:18px;line-height:1.25;font-weight:600}
.m001-overview-estimate strong.is-amount{font-size:25px;font-weight:700;letter-spacing:-.4px}
.m001-overview-estimate>.icon{width:16px;height:16px;color:#9aa3aa;flex-shrink:0}
.m001-overview-next{display:flex;flex-direction:column;gap:0;border-radius:20px;overflow:hidden;background:#fff}
.m001-overview-step{display:flex;align-items:center;gap:10px;width:100%;min-height:60px;padding:12px 16px;text-align:left;background:none;border:0;color:#36464f;cursor:pointer}
.m001-overview-step>.icon:first-child{width:20px;height:20px;flex-shrink:0;color:#84918c}
.m001-overview-step>span{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.m001-overview-step small{font-size:11px;color:#88929a}
.m001-overview-step strong{font-size:14px;line-height:1.3;font-weight:600}
.m001-overview-step>.icon:last-child{width:15px;height:15px;color:#9aa3aa;flex-shrink:0}
.m001-overview-reminder{display:flex;align-items:center;gap:10px;padding:12px 16px;color:#526370;background:#eef3f6;min-height:56px}
.m001-overview-reminder>span{flex:1;min-width:0}
.m001-overview-reminder strong{display:block;font-size:13px;font-weight:500;line-height:1.35}
.m001-overview-reminder small{display:block;margin-top:4px;font-size:11px;line-height:1.4;color:#7e8a93}
.m001-overview-reminder>.icon{width:19px;height:19px;flex-shrink:0}
.m001-overview-reminder>.icon:last-child{width:14px;height:14px;color:#9aa3aa}
.m001-overview-reminder.is-overdue{background:#fcf2ed;color:#ad5039}
.m001-overview-reminder.is-overdue small{color:#9c6b5c}
.m001-overview-reminder.is-empty{background:transparent;border-top:1px solid #eff1f3;min-height:44px;padding:10px 16px;color:#87928b}
.m001-overview .work-overview-rooms.work-panel{padding:8px 16px 6px;background:#fff;border:0;border-radius:22px;overflow:hidden}
.m001-overview .work-overview-rooms .section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;min-height:48px}
.m001-overview .work-overview-rooms h2{font-size:17px;font-weight:700;margin:0}
.m001-overview .work-count{font-size:12px;font-weight:500;background:none;color:#8a959c;min-width:0;padding:0 0 0 5px}
.m001-add-room{display:grid;place-items:center;width:44px;height:44px;min-width:44px;border:0;border-radius:13px;background:#eff4e3;color:#63784b;cursor:pointer}
.m001-add-room>.icon{width:20px;height:20px}
.m001-overview .lab-room-list{display:block;gap:0}
.m001-overview .lab-room-row{display:flex;gap:10px;min-height:64px;padding:10px 0;border:0;border-bottom:1px solid #edf0f2;border-radius:0;background:none;box-shadow:none}
.m001-overview .lab-room-row:last-child{border-bottom:0}
.m001-overview .lab-room-row:hover{background:#f8faf7}
.m001-overview .lab-room-preview{width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:#f0f4ed}
.m001-overview .lab-room-preview>svg{width:34px;height:32px}
.m001-overview .lab-room-copy{gap:4px}
.m001-overview .lab-room-copy strong{font-size:14px;font-weight:600;line-height:1.3}
.m001-overview .lab-room-copy small{font-size:11px;line-height:1.35;color:#8a959b}
.m001-overview .lab-room-row>.icon{width:14px;height:14px;flex-shrink:0;color:#9ba5ab}
.m001-overview-empty{font-size:13px;line-height:1.5;color:#8a959b;margin:10px 0 16px;max-width:300px}
.m001-overview .m001-all-rooms{min-height:44px;border:0;border-top:1px solid #edf0f2;border-radius:0;background:none;width:100%;color:#6d7d6d;font-size:13px;justify-content:space-between;padding:10px 0;margin:0}
.m001-overview-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.m001-overview-shortcuts>button{display:flex;align-items:center;gap:8px;min-height:52px;padding:12px;border:0;border-radius:16px;background:#fff;color:#61707c;cursor:pointer;font-size:13px}
.m001-overview-shortcuts>button>.icon:first-child{width:19px;height:19px;flex-shrink:0}
.m001-overview-shortcuts>button>span{flex:1;text-align:left}
.m001-overview-shortcuts>button>.icon:last-child{width:12px;height:12px;color:#9da6ad;flex-shrink:0}
.m001-overview .m001-overview-tools,.m001-overview .work-overview-side>.work-panel{border:0;border-radius:20px;background:#fff;padding:0;overflow:hidden}
.m001-overview .m001-overview-tools>summary,.m001-overview .work-overview-side>.work-panel>summary{display:flex;align-items:center;justify-content:space-between;min-height:56px;list-style:none;padding:16px;font-size:14px;font-weight:600;color:#586873;cursor:pointer}
.m001-overview .m001-overview-tools>summary>.icon{width:15px;height:15px;color:#9ba5ab}
.m001-overview .m001-overview-tools[open]>summary>.icon{transform:rotate(90deg)}
.m001-overview .work-route-grid{padding:0 16px}
.m001-overview .work-route-grid>.work-route{min-height:62px;padding:12px 0;gap:10px;flex-direction:row;flex-wrap:nowrap;border-color:#edf0f2}
.m001-overview .work-route-grid>.work-route>.work-route-icon{width:28px;height:28px;background:none}
.m001-overview .work-route-grid>.work-route>span:nth-child(2){flex-basis:auto}
.m001-overview .work-route-grid>.work-route strong{font-size:14px;font-weight:600}
.m001-overview .work-route-grid>.work-route small{font-size:11px;color:#8a959c}
.m001-overview button:focus-visible,.m001-overview a:focus-visible,.m001-overview summary:focus-visible{outline:2px solid #78965c;outline-offset:3px}
@media(max-width:900px){.m001-overview .work-overview-grid{grid-template-columns:minmax(0,1fr);gap:14px}}
@media(max-width:700px){
 body:has(.m001-overview) .m001-object-context{padding:8px 16px 0;min-height:48px}
 .project-head.m001-object-head{padding:8px 16px 0}
 .project-head.m001-object-head h1{font-size:24px;line-height:1.2}
 .content-page.m001-overview{padding:14px 16px 100px}
 body:has(.m001-overview) .app-mobile.mobile-nav{background:#ffffffed;border:0;border-top:1px solid #eaedf0;box-shadow:none;padding:8px;gap:2px;backdrop-filter:blur(14px)}
 body:has(.m001-overview) .app-mobile .nav-item{background:none;border:0;color:#92979d;height:50px;border-radius:12px;font-size:10px;font-weight:500;gap:5px}
 body:has(.m001-overview) .app-mobile .nav-item.selected{color:#202829;background:#f0f3e9;box-shadow:none;font-weight:600}
 body:has(.m001-overview) .app-mobile .nav-item .icon{width:21px;height:21px}
}
@media(max-width:350px){.project-head.m001-object-head h1{font-size:22px}.content-page.m001-overview{padding:12px 12px 95px}.project-head.m001-object-head{padding:6px 12px 0}body:has(.m001-overview) .m001-object-context{padding:6px 12px 0}.m001-overview-shortcuts{gap:6px}.m001-overview-shortcuts>button{font-size:12px;padding:10px}.m001-overview .work-overview-rooms.work-panel{padding-inline:12px}}
/* M001 iteration09: room overview and restrained motion. */
body:has(.m001-space){background:#f5f6f7;--bg:#f5f6f7;--line:#eaedf0;--muted:#858d94;--accent:#52624a;font-family:Gilroy,Arial,sans-serif;color:#202829}
.topbar.m001-space-context{max-width:1080px;margin:0 auto;padding:12px 28px 0;display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:48px;border:0;background:none}
.m001-space-context>.btn{padding:0;min-height:44px;font-size:12px;color:#7b858b;background:none;border:0;flex-shrink:0}
.m001-space-context>.project-context-name{min-width:0;max-width:55%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:right;font-size:11px;color:#90979d;padding:8px 0;border:0;background:none}
.content-page.m001-space{max-width:1080px;margin:0 auto;padding:12px 28px 100px;display:flex;flex-direction:column;gap:14px}
.m001-space>.section-head.m001-space-heading{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin:0 0 4px}
.m001-space .space-room-heading{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.m001-space .space-room-heading>div{min-width:0;flex:1}
.m001-space .space-room-heading h2{margin:0;font-size:26px;line-height:1.15;letter-spacing:-.6px;font-weight:700;overflow-wrap:anywhere}
.m001-space .space-room-heading p{font-size:12px;line-height:1.4;margin:6px 0 0;color:#879098}
.m001-space .space-gallery-jump{width:44px;height:44px;min-width:44px;border-radius:14px;background:#eef2ec;border:0;padding:0;overflow:hidden;flex:none}
.m001-space .space-gallery-jump img{width:44px;height:44px;object-fit:cover}
.m001-space .space-edit-details.btn{width:44px;height:44px;min-width:44px;padding:12px;border:0;border-radius:50%;background:white;color:#7a858c}
.m001-space .space-edit-details .icon{width:19px;height:19px}
.m001-room-estimate{display:flex;align-items:center;gap:12px;border:0;border-radius:22px;background:#fff;padding:16px;text-align:left;width:100%;min-height:78px;color:#202829}
.m001-room-estimate-icon{width:42px;height:42px;flex:none;display:grid;place-items:center;background:#f0f3e8;color:#63734d;border-radius:14px}
.m001-room-estimate-icon .icon{width:23px;height:23px}
.m001-room-estimate>span:nth-child(2){flex:1;min-width:0}.m001-room-estimate small{display:block;font-size:12px;color:#8a9297;margin-bottom:5px}.m001-room-estimate strong{display:block;font-size:18px;line-height:1.2;font-weight:650}.m001-room-estimate strong.is-amount{font-size:25px;font-weight:750;letter-spacing:-.5px}
.m001-room-estimate>.icon,.m001-room-next>.icon:last-child,.m001-room-assemble>.icon:last-child{width:16px;height:16px;flex:none;color:#9aa2a7;margin-left:auto}
.m001-space .space-plan-card,.m001-room-next,.m001-room-assemble{margin:0;border:0;border-radius:18px;background:white;display:flex;align-items:center;gap:12px;text-align:left;padding:12px 16px;min-height:62px;color:#202829;width:100%}
.m001-space .space-plan-card{background:#edf2e8}.m001-space .space-plan-card .mini-plan{width:58px;height:45px;flex:none}.m001-space .space-plan-card>span{min-width:0;flex:1}
.m001-space .space-plan-card>.icon{width:16px;height:16px;flex:none;color:#8e9a87}
.m001-room-next{background:#f2f4eb}.m001-room-next>span,.m001-room-assemble>span{flex:1;min-width:0}
.m001-room-next>.icon,.m001-room-assemble>.icon{width:21px;height:21px;flex:none;color:#7e8d7b}
.m001-space .space-plan-card strong,.m001-room-next strong,.m001-room-assemble strong{display:block;font-size:14px;font-weight:600;line-height:1.3}
.m001-space .space-plan-card small,.m001-room-next small,.m001-room-assemble small{display:block;font-size:11px;color:#889087;line-height:1.4;margin-top:4px}
.m001-surfaces{border:0;border-radius:22px;background:#fff;padding:8px 16px 6px;min-width:0}
.m001-space .m001-surfaces .work-surfaces-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;min-height:48px}
.m001-space .space-section-title{font-size:17px;font-weight:650;margin:0}.m001-space .space-section-title .work-count{font-size:12px;font-weight:500;background:none;color:#8e969b;margin-left:6px;padding:0}
.m001-add-surface{border:0;border-radius:14px;background:#f0f4e6;color:#738550;width:44px;height:44px;min-width:44px;padding:11px;display:grid;place-items:center}.m001-add-surface .icon{width:22px;height:22px}
.m001-measure-summary{display:flex;align-items:center;gap:6px;color:#9b7855;font-size:11px;margin:2px 0 8px;line-height:1.4}.m001-measure-summary.is-ready{color:#7b8e78}.m001-measure-summary .icon{width:14px;height:14px}
.m001-space .work-surface-list{display:block;margin:0;min-width:0}
.m001-space .work-surface-card{display:flex;align-items:stretch;border:0;border-radius:0;background:none;overflow:visible;position:relative;min-width:0;border-top:1px solid #edf0f2}
.m001-space .work-surface-card:first-child{border-top:0}.m001-space .work-surface-card:has(.work-surface-menu[open]){z-index:3}
.m001-space .work-surface-row{display:flex;align-items:center;flex:1;min-width:0;min-height:76px;width:auto;border:0;background:none;border-radius:12px;padding:10px 0;gap:10px;text-align:left}
.m001-space .work-surface-row>.surface-preview{width:44px;height:44px;flex:0 0 44px;padding:5px;background:#f0f3ec;border-radius:12px}
.m001-space .work-surface-row>.wall-locator{width:34px;height:34px;flex:none}.m001-space .work-surface-arrow{display:none}
.m001-space .work-surface-copy{min-width:0;flex:1}.m001-space .work-surface-copy strong{font-size:14px;font-weight:600;line-height:1.3}.m001-space .work-surface-copy small{font-size:11px;color:#92999d;line-height:1.4;margin-top:4px}
.m001-space .work-surface-copy .m001-surface-pending{display:inline-block;color:#b47c50;background:#fbf2e9;border-radius:6px;padding:2px 6px;font-size:10px;margin-top:5px}
.m001-space .work-surface-shortcuts{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;padding:0;border:0;gap:0;background:none;position:relative}
.m001-space .work-surface-menu{position:static;margin:0;width:40px}.m001-space .work-surface-menu>summary{list-style:none;display:grid;place-items:center;width:40px;height:44px;padding:0;font-size:23px;font-weight:700;color:#929ba0;cursor:pointer;border:0;border-radius:12px;background:none}
.m001-space .work-surface-menu>summary::-webkit-details-marker{display:none}.m001-space .work-surface-menu[open]>summary{background:#eef2e8;color:#52624a}
.m001-space .work-surface-menu>div{position:absolute;right:0;top:calc(50% + 22px);width:230px;max-width:calc(100vw - 54px);z-index:20;border:1px solid #edf0f2;border-radius:18px;padding:8px;background:white;box-shadow:0 14px 40px #25303720}
.m001-space .work-surface-menu .btn{display:flex;justify-content:flex-start;text-align:left;width:100%;min-height:44px;border:0;border-radius:10px;font-size:13px;padding:10px;background:none}.m001-space .work-surface-menu .btn:hover{background:#f4f6f2}.m001-space .work-surface-menu .btn .icon{width:18px;height:18px;color:#859079}.m001-space .work-surface-menu-title{font-size:11px;padding:6px 10px 10px;color:#929a9f}
.m001-room-empty{font-size:13px;line-height:1.6;color:#929a9e;margin:14px 0 20px}
.m001-space .space-surface-pages{margin:10px 0;padding:8px 0;flex-wrap:wrap;gap:8px}.m001-space .space-surface-pages .btn{min-height:44px;font-size:12px;border:0;background:#f2f4ed;border-radius:12px}
.m001-space .space-geometry-disclosure{margin:0;padding:0;border:0;border-radius:18px;background:white;overflow:hidden}
.m001-space .space-geometry-disclosure>summary{min-height:54px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:600;list-style:none;cursor:pointer}.m001-space .space-geometry-disclosure>summary>span{display:flex;gap:10px;align-items:center}.m001-space .space-geometry-disclosure>summary .icon{width:18px;height:18px;color:#8c979b}.m001-space .space-passport-geometry{padding:0 16px 14px}
.m001-space .work-space-panels{display:block;border:0;background:#fff;border-radius:20px;overflow:hidden;margin:0;padding:0}
.m001-space .work-space-panels>.space-panel{border:0;border-radius:0;padding:0;margin:0;background:none;box-shadow:none;border-top:1px solid #edf0f2}.m001-space .work-space-panels>.space-panel:first-child{border-top:0}
.m001-space .space-panel>summary{min-height:62px;padding:12px 16px;display:flex;align-items:center;gap:8px;justify-content:space-between;list-style:none}
.m001-space .space-panel-heading{display:flex;align-items:center;gap:12px;min-width:0}.m001-space .space-panel-heading>span:last-child{min-width:0}.m001-space .space-panel-heading .work-route-icon{width:22px;height:22px;border-radius:0;background:none;color:#849197;flex:none;padding:0}.m001-space .work-route-icon .icon{width:21px;height:21px}
.m001-space .space-panel-heading strong{display:block;font-size:13px;font-weight:600;line-height:1.3}.m001-space .space-panel-heading small{font-size:11px;line-height:1.4;color:#939a9e;margin-top:3px}.m001-space .space-panel-heading .space-panel-status:empty{display:none}
.m001-space .space-panel>summary>.icon{width:16px;height:16px;flex:none;color:#9da5aa}.m001-space .work-disclosure-body{padding:0 16px 16px}.m001-space .work-disclosure-body .btn{font-size:12px;min-height:44px}
.m001-space .space-drawing-drafts{margin:0;display:grid;gap:8px}.m001-space .lab-resume-drawing{margin:0;padding:12px 16px;min-height:60px;border:0;border-radius:16px;background:#f2f5e9;justify-content:flex-start;gap:10px}.m001-space .lab-resume-drawing strong{font-size:14px}.m001-space .lab-resume-drawing small{font-size:11px;color:#889281}
/* The surface picker belongs to this room flow; existing actions are unchanged. */
#modal:has(.work-type-grid){border:0;border-radius:26px;background:white;color:#202829;padding:22px;max-width:420px}
#modal:has(.work-type-grid) .work-type-grid{gap:8px;margin:16px 0 0}#modal:has(.work-type-grid) .work-type-button{background:#f5f6f7;border:0;border-radius:16px;min-height:100px;padding:14px;gap:6px}#modal:has(.work-type-grid) .work-type-button>.ux-art{width:64px;height:44px}#modal:has(.work-type-grid) .work-type-button strong{font-size:14px}#modal:has(.work-type-grid) .work-type-button small{font-size:11px;color:#8d959b}
@keyframes m001-room-arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes m001-detail-arrive{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){
 .m001-space,.m001-overview{animation:m001-room-arrive 240ms cubic-bezier(.2,.7,.2,1)}
 .m001-space button,.m001-space summary,.m001-overview button,.m001-overview summary{transition:background-color 140ms ease,transform 120ms ease,color 140ms ease}
 .m001-space button:active,.m001-overview button:active{transform:scale(.985)}
 .m001-space summary>.icon,.m001-overview summary>.icon{transition:transform 180ms ease}
 .m001-space details[open]>summary>.icon,.m001-overview details[open]>summary>.icon{transform:rotate(90deg)}
 .m001-space details[open]>.work-disclosure-body,.m001-space details[open]>.space-passport-geometry,.m001-space .work-surface-menu[open]>div,.m001-overview details[open]>.work-route-grid{animation:m001-detail-arrive 180ms ease-out}
 #modal[open]:has(.work-type-grid){animation:m001-room-arrive 200ms ease-out}
}
@media(prefers-reduced-motion:reduce){.m001-space,.m001-overview,.m001-space *,.m001-overview *,#modal:has(.work-type-grid){animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.m001-space :is(button,summary,a):focus-visible{outline:2px solid #8da259;outline-offset:3px}
@media(max-width:700px){
 .topbar.m001-space-context{padding:8px 16px 0}.content-page.m001-space{padding:8px 16px 100px;gap:12px}.m001-space .space-room-heading h2{font-size:24px}.m001-space .space-room-heading{gap:10px}.m001-space .space-room-heading p{font-size:11px}.m001-space .space-room-heading .space-gallery-jump{width:40px;height:40px;min-width:40px}.m001-space .work-surface-list{display:block}
 body:has(.m001-space) .app-mobile.mobile-nav{background:#ffffffed;border:0;border-top:1px solid #eaedf0;box-shadow:none;padding:8px;gap:2px;backdrop-filter:blur(14px)}
 body:has(.m001-space) .app-mobile .nav-item{background:none;border:0;color:#92979d;height:50px;border-radius:12px;font-size:10px;font-weight:500;gap:5px}body:has(.m001-space) .app-mobile .nav-item.selected{color:#202829;background:#f0f3e9;box-shadow:none;font-weight:600}body:has(.m001-space) .app-mobile .nav-item .icon{width:21px;height:21px}
}
@media(max-width:350px){.content-page.m001-space{padding:8px 12px 95px}.topbar.m001-space-context{padding:6px 12px 0}.m001-space .space-room-heading h2{font-size:22px}.m001-space .space-room-heading .space-gallery-jump{display:none}.m001-surfaces{padding-inline:12px}.m001-space .work-surface-row{gap:8px}.m001-space .work-surface-row>.wall-locator{width:28px;height:30px}.m001-space .work-surface-copy strong{font-size:13px}.m001-space .work-surface-shortcuts{flex-basis:36px;width:36px}.m001-space .work-surface-menu,.m001-space .work-surface-menu>summary{width:36px}}
.m001-space .space-room-heading>div{display:block}
#modal:has(.work-type-grid) .work-type-grid{display:grid;grid-template-columns:1fr;gap:7px}
#modal:has(.work-type-grid) .work-type-button{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:12px;row-gap:3px;min-height:66px;padding:12px 14px}
#modal:has(.work-type-grid) .work-type-button>.ux-art{grid-row:1/3;width:40px;height:38px;margin:0}
#modal:has(.work-type-grid) .work-type-button strong,#modal:has(.work-type-grid) .work-type-button small{grid-column:2;margin:0;align-self:center}
.m001-space.work-space>.section-head .space-room-heading{display:flex}
.m001-space.work-space>.section-head .space-room-heading>div{display:block}
.m001-space.work-space .space-plan-card.is-built small{display:block}
.m001-space .space-gallery-jump .space-cover{width:44px;height:44px}
.m001-space .work-surface-shortcuts{flex-basis:44px;width:44px}
.m001-space .work-surface-menu,.m001-space .work-surface-menu>summary{width:44px;min-width:44px}
@media(min-width:1000px){.m001-space .work-surface-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}.m001-space .work-surface-card:nth-child(2){border-top:0}}
/* Keep all content readable during entry and asynchronous room refreshes. */
@keyframes m001-room-arrive{from{transform:translateY(4px)}to{transform:translateY(0)}}
@keyframes m001-detail-arrive{from{transform:translateY(-2px)}to{transform:translateY(0)}}
