.work-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 6px}.work-type-button{display:grid;gap:9px;text-align:left;padding:20px;background:#f9faf6;border:1px solid var(--line);border-radius:10px;min-height:130px}.work-type-button:hover{border-color:var(--accent);background:var(--tint)}.work-type-button>.icon{color:var(--accent);width:25px;height:25px}.work-type-button strong{font-size:15px}.work-type-button small{font-size:12px;color:var(--muted);line-height:1.4}.work-room-list{display:grid;gap:10px}.work-room-card{display:block;width:100%;text-align:left;padding:14px 18px;background:#fff;border:1px solid var(--line);border-radius:11px}.work-room-card:hover{border-color:var(--accent)}.work-room-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.work-room-heading strong{display:block;font-size:16px}.work-room-heading small{display:block;font-size:12px;margin-top:5px;color:var(--accent)}.work-group-previews{display:flex;gap:12px;flex-wrap:wrap}.work-previews{display:flex;align-items:center;gap:10px;margin-top:10px;max-width:100%}.work-previews figure{margin:0;max-width:120px;min-width:0;flex:1}.work-previews figcaption{font-size:11px;color:var(--muted);text-align:center;margin:2px 0;overflow-wrap:anywhere}.surface-preview{display:block;width:120px;max-width:100%;height:72px;color:#75814c}.surface-preview-fill{fill:#ecefe4;stroke:#969e7c;stroke-width:1.3}.surface-preview-hole{fill:#fff;stroke:#a68d5e;stroke-width:1.4}.surface-preview.is-large{width:100%;height:auto;max-height:220px}.surface-preview text{font:13px Gilroy,Arial;fill:#646e42}.wall-locator{display:block;width:88px;height:64px;flex-shrink:0}.wall-locator polygon{fill:#f4f5f1;stroke:#b7baac;stroke-width:1.2}.wall-locator .locator-active{fill:none;stroke:#39452c;stroke-width:4;stroke-linecap:round}.wall-locator circle{fill:#39452c}.wall-locator text{font:12px Gilroy,Arial;fill:#5f6c34}.wall-locator.is-large{width:100%;height:auto;max-height:180px}.work-surface-list{display:grid;gap:7px}.work-surface-row,.work-scope-row{display:flex;align-items:center;gap:12px;width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:9px;text-align:left;background:#fff;min-width:0}.work-surface-row:hover{border-color:var(--accent);background:#fcfcfa}.work-surface-copy{flex:1;min-width:0}.work-surface-copy strong{display:block;font-size:14px;line-height:1.35;overflow-wrap:anywhere}.work-surface-copy small{display:block;color:var(--muted);font-size:11px;line-height:1.45;margin-top:5px}.work-surface-row>.surface-preview,.work-scope-row>.surface-preview{flex:0 0 85px;width:85px;height:56px}.work-scope-row{cursor:pointer}.work-scope-row:has(input:checked){border-color:#95a365;background:#f5f7f0}.work-scope-row input{width:18px;height:18px;accent-color:#39452c;flex:0 0 18px}.work-scope-row>.wall-locator{width:66px;height:55px}.work-detail-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0}.work-detail-head>strong{font-size:13px;color:var(--accent)}.work-detail-head>.btn{font-size:12px;flex-shrink:0}.work-list-switch{display:flex;justify-content:flex-end;margin-bottom:8px}.work-list-switch>.btn{font-size:12px}.work-preview-empty{font-size:24px;color:#a6ab97;padding:3px 8px}.work-preview-more{font-size:12px;color:var(--muted)}.surface-card-visuals{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px;align-items:center;margin:12px 0}.surface-card-visuals figure{margin:0;min-width:0}.surface-card-visuals figcaption{font-size:11px;text-align:center;color:var(--muted);margin-top:6px}.surface-card-visuals.is-single{grid-template-columns:1fr}.independent-workspace>.view-tabs>span{padding:14px;font-size:13px;color:var(--accent)}.independent-workspace .context-toolbar>strong{font-size:14px}.independent-workspace .focus-header>div>strong{font-size:15px}.independent-workspace .surface-actions{flex-wrap:wrap}
.drawing-controls{position:absolute;left:18px;right:18px;bottom:18px;display:flex;justify-content:space-between;align-items:center;z-index:3;pointer-events:none}.drawing-controls.is-3d{justify-content:flex-end}.workspace-v4 .drawing-controls .zoom-controls{position:static;display:flex;align-items:center;pointer-events:auto}.workspace-v4 .drawing-controls .btn{box-sizing:border-box;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;justify-content:center}.workspace-v4 .drawing-controls .drawing-rotate{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 12px #32381e0b;pointer-events:auto}.drawing-rotate svg{width:21px;height:21px}.drawing-rotate:hover{background:var(--tint)}@media(max-width:700px){.drawing-controls{left:12px;right:12px;bottom:12px}}
.drawing-rotation-widget{position:relative;pointer-events:auto;display:none}.drawing-controls{justify-content:flex-end}.drawing-rotation-panel{position:absolute;left:0;bottom:52px;width:208px;padding:8px 10px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 18px #32381e19}.drawing-rotation-panel[hidden]{display:none}.rotation-panel-head{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.rotation-panel-head output{margin-left:auto;color:var(--accent);font-variant-numeric:tabular-nums}.rotation-panel-head button{background:transparent;width:24px;height:24px;font-size:20px;color:var(--muted)}.drawing-rotation-panel input[type=range]{width:100%;height:28px;margin:1px 0;padding:0;border:0;background:transparent;accent-color:#39452c;cursor:ew-resize}.rotation-panel-steps{display:flex;gap:5px}.rotation-panel-steps button{flex:1;height:30px;background:#f6f7f1;color:var(--accent);border-radius:6px;font-size:12px}.rotation-panel-steps button:hover{background:#ebeedf}@media(min-width:701px) and (hover:hover) and (pointer:fine){.drawing-rotation-widget{display:block}.drawing-controls:not(.is-3d){justify-content:space-between}}
@media(min-width:701px){.work-room-card{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:center;gap:20px;padding-right:48px;position:relative}.work-room-heading>span:last-child{position:absolute;right:18px;top:calc(50% - 10px)}.work-room-card .work-previews{margin-top:0}.work-room-card .surface-preview{height:56px}}
@media(max-width:700px){.work-type-button{padding:15px;min-height:120px}.work-room-card{padding:12px}.work-room-heading strong{font-size:15px}.work-surface-row,.work-scope-row{gap:7px;padding:8px}.work-surface-row>.surface-preview,.work-scope-row>.surface-preview{flex-basis:60px;width:60px;height:48px}.work-surface-row>.wall-locator{width:60px;height:52px}.work-surface-copy strong{font-size:13px}.work-surface-copy small{font-size:11px}.work-scope-row>.wall-locator{display:none}.work-detail-head{flex-wrap:wrap}.work-detail-head .btn{min-height:44px}.work-surface-arrow{display:none}.work-previews{gap:4px}.work-group-previews{gap:5px}.work-previews .surface-preview{width:93px;height:56px}.surface-card-visuals{gap:4px}.independent-workspace .focus-header>div>strong{font-size:13px}.independent-workspace .surface-actions .btn{font-size:12px}.work-scope-row{min-height:66px}}
.assembly-dialog{width:min(760px,calc(100vw - 24px));max-width:760px}.assembly-header{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.assembly-header span{color:var(--muted);font-size:12px}.assembly-caption{display:block;font-size:14px;margin:14px 0 8px}.assembly-source-list{display:grid;gap:5px;max-height:230px;overflow:auto}.assembly-source-list label{display:flex;gap:10px;align-items:center;padding:8px;border:1px solid var(--line);border-radius:8px}.assembly-source-list input{width:18px;height:18px;flex:none;accent-color:var(--accent)}.assembly-source-list strong,.assembly-source-list small{display:block;font-size:13px}.assembly-source-list small{color:var(--muted);font-size:11px;margin-top:3px}.assembly-wall-picker{display:flex;flex-wrap:wrap;gap:5px}.assembly-wall-picker .btn{font-size:12px;min-height:36px;padding:7px 10px}#assembly-canvas{width:100%;display:block;height:300px;min-height:0;border:1px solid var(--line);border-radius:10px;background:#fcfcfa;touch-action:none}.assembly-segment{cursor:grab}.assembly-segment text{font:12px Gilroy,Arial;fill:#5f6841;paint-order:stroke;stroke:#fcfcfa;stroke-width:4px;pointer-events:none}.assembly-wall-line{stroke:#899170;stroke-width:5;stroke-linecap:round}.assembly-wall-end{stroke:#39452c;stroke-width:1.5;fill:white}.assembly-segment.is-selected .assembly-wall-line{stroke:#39452c;stroke-width:6}.assembly-controls{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;margin:5px 0}.assembly-controls .btn,.assembly-selected .btn{font-size:12px;min-height:36px;padding:7px 10px}.assembly-selected{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}.assembly-selected>span{font-size:12px;flex:1}.assembly-selected label{display:flex;align-items:center;gap:5px;font-size:12px}.assembly-selected input{width:72px;height:34px;padding:6px}.assembly-footnote{font-size:11px;line-height:1.5;margin-bottom:0}@media(max-width:700px){.assembly-dialog{padding:18px}.assembly-controls .btn{min-height:44px}.assembly-controls{gap:0}.assembly-selected>span{flex-basis:100%}#assembly-canvas{height:240px;min-height:0}.assembly-source-list{max-height:190px}}
.work-surface-copy .work-membership{font-size:10px;color:#9a9d92;margin-top:3px}.work-surface-copy .work-membership.is-in-work{color:#39452c}
/* Room ownership and direct navigation, v0.11. */
/* The room card reads the existing plan and assignments; unknown dimensions stay unknown. */
.space-position-links{max-width:230px;font-size:12px}.space-position-links summary{min-height:44px;padding:12px 0;cursor:pointer}.space-position-links>div{display:flex;flex-direction:column;align-items:stretch}.space-position-links .btn{white-space:normal;text-align:left;justify-content:flex-start}.space-position-links:focus-within summary{color:var(--accent)}
@media(min-width:1100px){.space-page .work-surface-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
@media(max-width:700px){.space-position-links{grid-column:1/-1;max-width:none}.space-position-links>div{flex-direction:row;flex-wrap:wrap}}
.space-page>.section-head>div{min-width:0}.space-page h2{overflow-wrap:anywhere}.space-passport-geometry{margin:16px 0 22px}.space-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0;padding:16px 0;border-block:1px solid var(--line)}.space-metrics dt{font-size:12px;color:var(--muted);margin-bottom:6px}.space-metrics dd{font-size:20px;font-weight:650;margin:0;font-variant-numeric:tabular-nums}.space-metrics dd small{font-size:13px;font-weight:400}.space-contour-metrics{margin-top:12px}.space-contour-metrics summary,.space-notes summary{font-size:13px;cursor:pointer;min-height:44px;display:list-item;padding:12px 0}.space-contour-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;font-size:13px}.space-contour-row span:first-child{min-width:0;overflow-wrap:anywhere}.space-contour-row span:last-child{flex-shrink:0;color:var(--muted)}.space-notes{margin-bottom:16px;border-bottom:1px solid var(--line)}.space-notes p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.5;margin:0 0 14px}.space-section-title,.space-positions h3{font-size:16px;margin:20px 0 12px}.space-positions{margin-top:24px}.space-positions>.section-head{margin-bottom:0}.space-position-group h4{font-size:13px;color:var(--muted);margin:18px 0 4px}.space-position-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}.space-position-row>div{min-width:0}.space-position-row strong{font-size:14px;overflow-wrap:anywhere}.space-position-row small{display:block;color:var(--muted);font-size:12px;margin-top:4px;overflow-wrap:anywhere}.space-position-quantity{font-size:13px;font-variant-numeric:tabular-nums;text-align:right;max-width:180px}.space-position-row .btn{font-size:12px;min-height:44px}.space-page .space-calculation-options{margin-top:16px}.space-openings{margin-bottom:0}
@media(max-width:700px){.space-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.space-metrics dd{font-size:18px}.space-position-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}.space-position-row .btn{grid-column:1/-1;justify-self:start;padding-left:0}.space-position-quantity{max-width:110px;font-size:12px}.space-contour-row{align-items:flex-start;flex-direction:column;gap:3px}.space-page>.section-head .btn{min-height:44px}.space-calculation-options .btn{width:100%;justify-content:flex-start}}
.building-plan-preview{margin:0;display:grid;justify-items:center;gap:3px}.building-plan-preview .mini-plan{width:120px;height:68px}.building-plan-preview figcaption{font-size:11px;color:var(--muted)}.space-breadcrumb{margin:0 0 8px}.space-breadcrumb .btn{padding-left:0}.space-page>.section-head{margin-bottom:18px}.space-plan-card{display:flex;align-items:center;gap:16px;width:100%;padding:12px 16px;border:1px solid #afb98e;border-radius:10px;background:#f4f6ed;text-align:left;margin-bottom:14px}.space-plan-card .mini-plan{width:96px;height:70px;flex:none}.space-plan-card strong,.space-plan-card small{display:block}.space-plan-card small{font-size:12px;color:var(--muted);margin-top:5px}.space-plan-card>span:last-child{margin-left:auto;font-size:12px;color:var(--accent)}.space-assemble{display:flex;align-items:center;gap:14px;margin:20px 0}.space-assemble p{margin:0}.space-calculation-options{margin-top:22px;padding:14px 0;border-top:1px solid var(--line)}.space-calculation-options summary{font-size:13px;color:var(--muted);cursor:pointer}.space-calculation-options .row{flex-wrap:wrap}
.surface-navigator{position:absolute;z-index:4;left:12px;top:8px;bottom:72px;width:220px;border:1px solid var(--line);border-radius:12px;background:#ffffffed;display:flex;flex-direction:column;box-shadow:0 3px 15px #343c1810;text-align:left}.surface-navigator header{display:flex;align-items:center;justify-content:space-between;padding:8px 10px;font-size:13px}.surface-navigator header .btn{width:32px;min-height:32px;padding:0;font-size:20px}.surface-navigator>p{font-size:11px;color:var(--muted);line-height:1.4;margin:0;padding:0 12px 10px}.surface-nav-list{overflow:auto;padding:0 6px 8px}.surface-nav-row{display:block;width:100%;min-height:52px;border:1px solid transparent;border-radius:7px;text-align:left;padding:8px;background:transparent}.surface-nav-row strong{display:block;font-size:13px}.surface-nav-row small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.surface-nav-row:hover,.surface-nav-row:focus-visible,.surface-nav-row.is-hovered{background:#eef2e2;border-color:#97a760;outline:0}.surface-nav-list details{padding-left:9px}.surface-nav-list summary{font-size:10px;color:var(--muted);padding:5px;cursor:pointer}.surface-nav-row:disabled{opacity:.5}.has-surface-navigator #editor-svg{position:absolute;left:240px;width:calc(100% - 240px);height:100%}.has-surface-navigator .canvas-content{position:relative;min-height:340px}.surface-nav-highlight .plan-side{stroke:#697b2b!important;stroke-width:5!important;filter:drop-shadow(0 0 5px #7c923370)}.surface-nav-highlight .plan-wall-band{fill:#bbcf78!important}.plan-paper.surface-nav-highlight{fill:#ebf1d7!important;stroke:#73872f;stroke-width:3}.has-surface-navigator .drawing-controls{left:248px}
@media(max-width:700px){.space-page>.section-head{align-items:flex-start;gap:10px;flex-wrap:wrap}.space-page>.section-head>.row{gap:5px}.space-page>.section-head .btn{font-size:12px;padding:8px 10px}.space-plan-card{gap:8px;padding:10px}.space-plan-card .mini-plan{width:66px;height:52px}.space-plan-card strong{font-size:13px}.space-plan-card>span:last-child{font-size:11px}.space-assemble{align-items:flex-start;flex-direction:column;gap:6px}.surface-navigator{left:6px;top:4px;bottom:64px;width:134px;border-radius:8px}.surface-navigator header{font-size:11px;padding:5px}.surface-navigator header .btn{width:28px;min-height:32px;flex:none}.surface-navigator>p{font-size:10px;padding:0 8px 6px}.surface-nav-row{padding:7px 5px;min-height:48px}.surface-nav-row strong{font-size:12px}.surface-nav-row small{font-size:9px}.surface-nav-list{padding:0 3px 5px}.has-surface-navigator #editor-svg{left:146px;width:calc(100% - 146px)}.has-surface-navigator .drawing-controls{left:152px}.has-surface-navigator .canvas-content{min-height:280px}}
@media(max-width:700px){.work-room-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:92px;padding:12px 30px 12px 12px;position:relative}.work-room-heading{min-width:0}.work-room-heading>span:last-child{position:absolute;right:12px;top:calc(50% - 9px)}.work-room-heading strong{overflow-wrap:anywhere}.work-room-heading small{font-size:11px;line-height:1.4}.work-room-card .work-previews{margin-top:0;gap:2px;max-width:126px}.work-room-card .surface-preview{width:54px;height:46px}.work-room-card figcaption{display:none}.work-room-card .building-plan-preview .mini-plan{width:66px;height:54px}.work-room-card .work-preview-more{font-size:10px}}
.space-tasks{border-top:1px solid var(--line);margin-top:24px;padding-top:16px}.space-tasks .task-row{text-decoration:none}.space-tasks .section-head{gap:10px;flex-wrap:wrap}
.space-photos{border-top:1px solid var(--line,#deded4);padding-top:20px;margin-top:20px;min-width:0}
.space-photos .section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.space-photos h3{margin:0}.space-photos .row{flex-wrap:wrap}
.space-photo-upload{margin:16px 0;max-width:600px;display:grid;gap:12px}
.space-photo-upload[hidden]{display:none}.space-photo-upload label,.space-photo-edit label{display:grid;gap:6px}
.space-photo-upload input,.space-photo-upload textarea,.space-photo-edit textarea{width:100%;min-width:0;box-sizing:border-box}
.space-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:16px;margin:16px 0}
.space-photo-card{display:flex;flex-direction:column;align-items:stretch;gap:6px;text-align:left;padding:0;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;min-width:0;cursor:pointer}
.space-photo-card strong{font-size:14px;line-height:1.4;font-weight:600;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.space-photo-card small{font-size:12px;color:var(--muted,#657176);overflow-wrap:anywhere}
.project-photo-filter{max-width:340px;margin:18px 0}.project-photo-filter select,.space-photo-upload select{font:inherit;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.space-photos[data-project-gallery]{border:0;padding-top:0;margin-top:20px}.project-photo-toolbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:16px}.project-photo-toolbar .project-photo-filter{flex:1 1 220px;min-width:0;margin:0}.project-photo-toolbar>.btn{min-height:44px}
.space-photo-location{font-size:12px;color:var(--muted,#657176);overflow-wrap:anywhere}.project-photo-pages{margin-top:20px;flex-wrap:wrap}
.space-photo-image{display:flex;align-items:center;justify-content:center;aspect-ratio:16/9;width:100%;overflow:hidden;background:#eeeee7;border-radius:8px;text-align:center}
.space-photo-image img{width:100%;height:100%;object-fit:cover}.space-photo-image>span{padding:8px}
.space-photo-card:focus-visible{outline:2px solid var(--ink,#202829);outline-offset:5px}
.space-photo-card:active{opacity:.75}
@media(hover:hover){.space-photo-card:hover strong{text-decoration:underline}}
.space-photo-filters{margin:12px 0}.space-photo-filters .btn[aria-pressed=true]{background:#edf2df;border-color:#9aaa68}
.space-photo-recovery{padding:14px 0;border-block:1px solid var(--line,#deded4);margin:12px 0}
.space-photo-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid var(--line,#deded4);border-radius:16px;color:var(--ink,#202829);background:var(--card,#fff)}
.space-photo-dialog::backdrop{background:rgba(32,40,41,.45)}
.space-photo-dialog>.section-head{position:sticky;top:-24px;z-index:1;background:var(--card,#fff);padding-block:12px;margin-top:-12px}
.space-photo-dialog>.section-head h2{font-size:20px;margin:0}.space-photo-detail{margin-top:16px;min-width:0}
.space-photo-view{display:flex;align-items:center;justify-content:center;background:#f4f3ec;border-radius:8px;min-height:120px;overflow:hidden}
.space-photo-view img{display:block;max-width:100%;max-height:55dvh;object-fit:contain}
.space-photo-edit{display:grid;gap:10px;margin:20px 0}.space-photo-edit button{justify-self:start}
.space-photos .space-photo-edit textarea,.space-photos .space-photo-upload textarea{height:80px;min-height:80px;resize:vertical}
.space-photo-history{list-style:none;padding:0}.space-photo-history li{display:grid;gap:4px;padding:10px 0;border-bottom:1px solid var(--line,#deded4);overflow-wrap:anywhere}
.space-photo-retention{margin-top:20px;border-top:1px solid var(--line,#deded4);padding-top:8px}
.space-photo-cover{margin:16px 0}.space-photo-cover p{margin:8px 0}.space-photo-cover-label{font-size:12px;color:var(--ink);font-weight:600}
.photo-selection-list,.photo-batch-list{list-style:none;margin:8px 0 16px;padding:0;max-height:320px;overflow:auto;overscroll-behavior:contain}
.photo-selection-list li,.photo-batch-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.photo-selection-list li>span,.photo-batch-list li>span{min-width:0;overflow-wrap:anywhere}.photo-selection-list small,.photo-batch-list small{display:block;color:var(--muted);font-size:12px;margin-top:3px}
.photo-batch-list strong{font-size:14px;font-weight:600}.photo-batch-list .error{display:block;font-size:13px;margin-top:6px}.photo-batch .row{flex-wrap:wrap}.photo-batch-list .btn{white-space:normal;flex-shrink:0;max-width:160px}
@media(max-width:520px){.photo-batch-list li{align-items:flex-start;flex-wrap:wrap}.photo-batch-list li>span{flex-basis:100%}.photo-batch-list .btn{max-width:none}.photo-batch>.row .btn{flex:1 1 auto}}
.project-cover{display:block;position:relative;width:96px;aspect-ratio:16/9;flex-shrink:0;overflow:hidden;border-radius:6px;background:#eeeee7}
.project-cover-fallback{display:grid;place-items:center;width:100%;height:100%}.project-cover-fallback[hidden]{display:none}
.project-cover-fallback>svg{width:100%;height:100%;padding:4px;box-sizing:border-box}.project-cover-fallback>.project-cover-brand{width:28px;height:28px;opacity:.65}
.project-cover-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.project-cover[data-cover-state=unavailable]::after{content:'Фото недоступно';position:absolute;inset:0;display:grid;place-items:center;padding:4px;background:var(--bg,#f4f3ec);color:var(--muted);text-align:center;font-size:11px}
.ux-project-row .ux-project-open{display:flex;align-items:center;gap:14px}.ux-project-copy{display:block;min-width:0}
.project-cover-overview{display:block;float:right;width:min(40%,240px);margin:0 0 14px 20px}.project-cover-overview .project-cover{width:100%}.ux-object-card>.ux-details{clear:both}
.company-project-title{display:flex;align-items:center;gap:14px;margin-bottom:16px}.company-project-title h2{margin:0;min-width:0;overflow-wrap:anywhere}
@media(max-width:520px){.ux-project-row .ux-project-open{gap:10px}.ux-project-open .project-cover{width:72px}.project-cover-overview{width:112px;margin-left:12px}}
@media(max-width:520px){.space-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.space-photo-dialog{padding:16px}.space-photo-dialog>.section-head{top:-16px}.space-photo-card strong{font-size:13px}}
.space-execution{padding-block:20px;border-top:1px solid var(--line)}
.space-execution h3,.space-execution h4{margin:0}.space-execution-stage{padding-block:12px;border-top:1px solid var(--line)}
.space-execution-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 20px;padding:12px 0}.space-execution-line strong{grid-row:span 2;overflow-wrap:anywhere}.space-execution-line span,.space-execution-line small{font-size:13px}.space-execution-line small{grid-column:2}.space-execution-notice{padding:10px 12px;background:var(--tint);border-radius:10px;font-size:13px}
@media(max-width:600px){.space-execution-line{grid-template-columns:minmax(0,1fr);gap:6px}.space-execution-line strong{grid-row:auto}.space-execution-line small{grid-column:1}}

/* Existing documents and work checks keep their original ownership. */
.space-records{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.space-records>.section-head{align-items:flex-start;flex-wrap:wrap;gap:8px}
.space-record-group{margin-top:16px}
.space-record-group h4{margin:0 0 8px}
.space-record-group>summary,.space-record-more>summary{cursor:pointer;padding:10px 0;font-weight:600}
.space-record-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.space-record-row>div{min-width:0;overflow-wrap:anywhere}
.space-record-row strong,.space-record-row small{display:block}
.space-record-row small{color:var(--muted);margin-top:4px}
.space-record-row>.btn{flex:none}
.space-records .ux-inline-actions{flex-wrap:wrap}
.space-checklists-content>a{margin-top:10px}
.drawing-incomplete{display:block;color:#a52a32!important;font-size:12px!important;font-weight:500;margin-top:4px}
.work-note-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap;font-size:12px;font-weight:400;line-height:1.5;color:var(--muted);margin-top:6px}
.work-surface-card{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.work-surface-card>.work-surface-row{border:0;border-radius:0;width:100%}
.work-surface-card>.btn{margin:0 12px 4px;min-height:36px;height:auto;font-size:12px}

.space-photo-move{border-top:1px solid var(--line);padding-top:12px;margin-top:16px}.space-photo-move summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;font-weight:600}.space-photo-move form{display:grid;gap:12px;min-width:0}.space-photo-move p{margin:0}.space-photo-move select{width:100%;min-width:0;font:inherit;min-height:44px}.space-photo-move button{justify-self:start}

.photo-gallery-search{display:grid;gap:8px;margin:12px 0 16px;min-width:0}.photo-gallery-search-row{display:flex;gap:8px;align-items:end}.photo-gallery-search-row .field{flex:1;min-width:0}.photo-gallery-search input,.photo-gallery-search select{width:100%;min-width:0;min-height:44px;font:inherit}.photo-gallery-search summary{cursor:pointer;min-height:44px;align-content:center}.photo-gallery-search-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}.photo-gallery-search [data-photo-search-summary]{overflow-wrap:anywhere}.photo-gallery-search>button{justify-self:start}.photo-gallery-search p{margin:0}@media(max-width:520px){.photo-gallery-search-options{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-gallery-search-options label:last-child{grid-column:1/-1}.photo-gallery-search input{max-width:100%}}

.photo-gallery-search .field{margin-bottom:0}.photo-gallery-search input{border:1px solid var(--line);border-radius:12px;background:var(--card,#fff);padding:0 12px;color:var(--ink);margin-top:7px;font-size:16px}

/* Cover framing is an optional task inside the photo dialog. */
.space-photo-detail[hidden]{display:none}
.cover-frame-editor{min-width:0;margin-top:12px}.cover-frame-editor>p{margin:10px 0}
.cover-frame-main,.cover-frame-examples figure>div{position:relative;overflow:hidden;border-radius:10px;background:var(--line,#eee)}
.cover-frame-main{width:100%;touch-action:none;cursor:grab;user-select:none}.cover-frame-main.is-dragging{cursor:grabbing}
.cover-frame-main img,.cover-frame-examples img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;pointer-events:none}
.cover-frame-examples{display:flex;gap:12px;margin-top:10px}.cover-frame-examples figure{margin:0;width:72px}.cover-frame-examples figcaption{font-size:11px;color:var(--muted);margin-top:4px}
.cover-frame-editor fieldset{border:0;padding:0;margin:0;min-width:0}.cover-frame-editor label{display:block;font-size:13px;margin:8px 0}.cover-frame-editor input[type=range]{display:block;width:100%;min-height:44px;padding:0;accent-color:var(--ink);touch-action:pan-y}.cover-frame-editor input:disabled{opacity:.4}
.cover-frame-editor .cover-frame-actions{display:flex;gap:8px;justify-content:space-between;padding-block:10px;position:sticky;bottom:-24px;background:var(--card,#fff)}
.cover-frame-editor .cover-frame-actions .primary{flex:1}.cover-frame-editor [data-frame-reload],.cover-frame-editor [data-frame-retry]{width:100%;margin-top:8px}
@media(max-width:520px){.cover-frame-editor .cover-frame-actions{bottom:-16px}.cover-frame-examples figure{width:56px}}

/* Group photo actions keep selection visible across gallery pages. */
.photo-group-tools:not(:empty){margin:12px 0;padding:12px;border:1px solid var(--line,#ddd);border-radius:14px;background:var(--paper,#fff)}
.photo-group-tools .row{gap:8px;flex-wrap:wrap;margin:6px 0}
.photo-group-tools .row strong{margin-right:auto}
.photo-group-basket summary{padding:10px 0;cursor:pointer}
.photo-group-list{list-style:none;padding:0;margin:8px 0;max-height:38dvh;overflow:auto;overscroll-behavior:contain}
.photo-group-list li{padding:10px 0;border-bottom:1px solid var(--line,#ddd);overflow-wrap:anywhere}
.photo-group-list strong,.photo-group-list small{display:block}
.photo-group-list small{color:var(--muted,#61716b);margin-top:3px}
.photo-group-basket li{display:flex;gap:8px;align-items:center;justify-content:space-between}
.photo-group-basket li>span{min-width:0}
.photo-group-basket button{flex-shrink:0;min-height:44px}
.space-photo-card[aria-pressed]{position:relative;padding-top:30px}
.space-photo-card[aria-pressed]::before{content:'○';position:absolute;top:4px;right:10px;font-size:22px;line-height:24px}
.space-photo-card[aria-pressed=true]{outline:2px solid #557126;background:#f2f9df}
.space-photo-card[aria-pressed=true]::before{content:'✓';color:#344f11;font-weight:700}
.photo-group-footer{display:flex;gap:8px;position:sticky;bottom:0;background:var(--paper,#fff);padding:12px 0 max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line,#ddd);z-index:1}
.photo-group-footer .primary{flex:1}
.photo-group-dialog .field select{max-width:100%;min-width:0}
.photo-group-dialog h2{font-size:20px;overflow-wrap:anywhere}
.photo-group-dialog{max-height:90dvh;overflow:auto}
.photo-group-dialog>.section-head{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;align-items:start}
.photo-group-dialog [data-group-close]{font-size:24px;min-width:44px;min-height:44px;padding:0}
.photo-group-list li{display:flex;gap:10px;align-items:center}
.photo-group-list li>span{min-width:0;flex:1}
.photo-group-thumb{width:40px;height:40px;object-fit:cover;border-radius:8px;flex-shrink:0}
.photo-group-help summary{cursor:pointer;padding:10px 0;min-height:44px}

.work-surface-menu-title{display:block;padding:8px 12px 4px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}

.light-spacing-status{display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--muted);font-size:12px}.light-spacing-status .btn{min-height:44px}.light-spacing-guide{pointer-events:none}.light-spacing-guide line{stroke:#596e30;stroke-width:2;stroke-dasharray:5 3}.light-spacing-guide circle{fill:#596e30}.light-spacing-guide polygon{fill:none;stroke:#596e30;stroke-width:1;stroke-dasharray:3 3}.light-spacing-guide text{font:600 15px Gilroy,sans-serif;fill:#334323;paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round}

.workspace-v5 .canvas-v4>#editor-svg{height:calc(100% - 60px);min-height:0}.workspace-v5 .canvas-v4>.drawing-controls{bottom:8px}
.plan-cornice polygon.cornice-product{fill:#73786b;stroke:#5e6653;stroke-width:.7;stroke-dasharray:none;vector-effect:non-scaling-stroke}

fieldset[data-zone-sizes]{border:0;padding:0;margin:0;min-width:0}

/* Everyday controls retain the shared palette, type and touch targets. */
.room-name-presets{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 16px}.room-name-presets .btn{min-height:44px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;text-align:left}.project-contact-entry{display:flex;align-items:center;gap:8px}.project-contact-entry .project-contact-row{flex:1;min-width:0}.contact-call{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;min-height:44px;padding:10px}.contact-call .icon{width:20px;height:20px}.object-data-facts dd:has(.contact-call){display:flex;align-items:center;gap:8px;flex-wrap:wrap}
