.house-workshop{position:fixed;inset:0;z-index:210;background:#18221f;color:#e1e7d9;font:12px Arial,sans-serif;display:grid;grid-template-columns:264px minmax(0,1fr);grid-template-rows:64px 52px minmax(0,1fr) 32px;--w-line:#97ac852c;--w-panel:#222d27;--w-accent:#d7ca9c}
.house-workshop *{box-sizing:border-box}.house-workshop [hidden]{display:none!important}.house-workshop button,.house-workshop summary{cursor:pointer}.house-workshop button{background:transparent;border:1px solid transparent;border-radius:6px;padding:8px;color:inherit;font:inherit}.house-workshop button:hover,.house-workshop summary:hover{background:#ffffff0c}.house-workshop button[aria-pressed=true]{background:#d4ccab;color:#263326}.house-workshop button:disabled{opacity:.28;cursor:default}.house-workshop :is(button,input,select,summary):focus-visible{outline:2px solid #e3d19e;outline-offset:2px}.house-workshop input,.house-workshop select{background:#18221f;border:1px solid var(--w-line);border-radius:5px;color:#e0e6d8;padding:9px;font:inherit;min-width:0}.house-workshop svg{width:21px;height:21px;flex-shrink:0;pointer-events:none}.house-workshop .workshop-icon{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:36px;min-height:36px;flex-shrink:0}.workshop-icon.with-label{padding:9px 12px}.workshop-top{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:10px 20px;background:#263329;border-bottom:1px solid var(--w-line)}.workshop-top>button:first-child{border-color:var(--w-line)}.workshop-top input{width:280px;flex:1;max-width:480px;background:transparent;border-color:transparent;font:19px Georgia}.workshop-top input:hover,.workshop-top input:focus{border-color:var(--w-line)}.workshop-save-state{margin-left:auto;color:#acb89e;font-size:11px;white-space:nowrap}.workshop-save-state:before{content:'·';color:#b5ce91;font-size:24px;vertical-align:middle;margin-right:5px}.house-workshop .workshop-primary{background:#d0c29a;color:#233324}.house-workshop .workshop-primary:hover{background:#e3d4aa}
.workshop-tools{grid-column:2;grid-row:2;display:flex;align-items:center;gap:4px;padding:6px 16px;background:#202c26;border-bottom:1px solid var(--w-line);overflow-x:auto;scrollbar-width:thin}.workshop-tools>button:nth-child(3),.workshop-tools>button:nth-child(7),.workshop-tools>button:nth-child(9){margin-left:10px}.workshop-history{display:flex;gap:4px;margin-left:auto;padding-left:12px;border-left:1px solid var(--w-line)}.workshop-library{grid-column:1;grid-row:2/4;background:var(--w-panel);padding:12px;display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--w-line)}.workshop-search{display:flex;align-items:center;gap:6px;background:#17221c;border:1px solid var(--w-line);border-radius:6px;padding:0 10px}.workshop-search svg{width:17px;color:#abb69e}.workshop-search input{width:100%;border:0;padding:11px 0;background:transparent}.workshop-categories{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;margin-top:12px}.workshop-categories .workshop-icon{min-width:0;height:37px}.workshop-catalog-count{color:#b8c3ac;font:12px Georgia;margin:14px 2px 10px}.workshop-cards{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:8px;scrollbar-width:thin;padding:2px}.house-workshop .workshop-card{height:118px;position:relative;padding:3px 5px 10px;background:#19241ed9;border:1px solid #7e946125;display:flex;flex-direction:column;align-items:center;text-align:center;overflow:hidden}.house-workshop .workshop-card:hover{border-color:#bac79a;background:#30412e}.workshop-card canvas{width:100%;height:78px;object-fit:contain;pointer-events:none}.workshop-card span{max-width:100%;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workshop-card small{position:absolute;right:5px;top:5px;font:9px monospace;color:#b3c1a4;background:#18231db3;padding:3px}.workshop-pagination{display:flex;justify-content:space-between;align-items:center;margin-top:8px;color:#9bab8e;font-size:10px}.workshop-pagination button{min-height:32px;min-width:34px}.workshop-empty{color:#b3bda7;grid-column:1/-1;line-height:1.7}
.workshop-stage{position:relative;grid-column:2;grid-row:3;min-width:0;min-height:0;overflow:hidden}.workshop-stage>canvas{width:100%;height:100%;display:block;outline:none;touch-action:none}.workshop-view-controls{position:absolute;right:16px;top:14px;display:flex;gap:2px;align-items:center;background:#263329ee;box-shadow:0 3px 18px #0003;border:1px solid var(--w-line);border-radius:8px;padding:4px}.workshop-view-controls select{width:58px;border:0;background:transparent;font:13px monospace;padding:6px}.workshop-view-controls summary,.workshop-help summary{display:flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;list-style:none;border-radius:5px}.house-workshop summary::-webkit-details-marker{display:none}.workshop-view-menu{position:relative}.workshop-popover{position:absolute;z-index:4;right:0;top:calc(100% + 12px);min-width:200px;padding:8px;background:#28372d;border:1px solid #73846766;border-radius:8px;box-shadow:0 12px 35px #0006}.workshop-popover .workshop-icon{width:100%;justify-content:flex-start;margin:2px 0}.workshop-popover button[aria-pressed=true]{background:#49583e;color:#eef1df}.workshop-popover button[aria-pressed=true]:after{content:'✓';margin-left:auto}
.workshop-inspector{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);max-width:calc(100% - 28px);display:flex;align-items:center;gap:8px;padding:8px 10px;background:#25342bef;border:1px solid #85977355;border-radius:10px;box-shadow:0 8px 30px #0005}.workshop-selection{display:flex;align-items:center;gap:8px;min-width:0}.workshop-selection>canvas{width:52px;height:44px;object-fit:contain;flex-shrink:0}.workshop-selection h3{font:14px Georgia;margin:0;max-width:210px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.workshop-selection small{display:block;color:#abb79b;font:10px monospace;margin-top:4px}.workshop-stock-label{display:flex;gap:6px;align-items:center;font-size:11px;white-space:nowrap}.workshop-inspector select{max-width:150px}.workshop-inspector.show-contents{max-height:250px;overflow:auto;align-items:flex-start;min-width:300px}.show-contents .workshop-selection{display:block;flex:1}.show-contents>.workshop-icon{display:none}.workshop-stock-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:8px 0;font-size:11px}.workshop-stock-row button{border:1px solid var(--w-line);white-space:nowrap}
.workshop-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 14px;background:#202d26;border-top:1px solid var(--w-line);font-size:10px;color:#b8c3ac}.workshop-footer>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workshop-help{position:relative}.workshop-help summary{min-width:30px;min-height:28px}.workshop-help svg{width:17px;height:17px}.workshop-help .workshop-popover{top:auto;bottom:calc(100% + 10px);width:250px}.workshop-help .workshop-popover>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 3px}.workshop-help kbd{border:1px solid #73846766;padding:4px 6px;border-radius:4px;font-size:10px}
.house-library-dialog{width:min(960px,94vw);max-height:90vh;overflow:auto;padding:26px;background:#202c25;color:#e2e5d6;border:1px solid #68765e;border-radius:12px;box-shadow:0 20px 90px #000b}.house-library-dialog::backdrop{background:#060c09c9}.house-library-dialog header{display:flex;justify-content:space-between;align-items:center;gap:16px}.house-library-dialog header small{font:9px monospace;letter-spacing:3px;color:#b0bd9d}.house-library-dialog h2{font:32px Georgia;margin:7px 0 0}.house-library-actions{display:flex;gap:6px}.workshop-library-error:empty{display:none}.workshop-library-error{color:#e9b09b;line-height:1.5}.house-library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px}.house-library-card{min-width:0;background:#18221c;border:1px solid #455341;border-radius:8px;overflow:hidden;padding:12px}.house-library-card .house-card-cover{display:block;width:100%;padding:0;border:0;border-radius:4px}.house-library-card canvas{display:block;width:100%;height:auto;aspect-ratio:360/220;pointer-events:none}.house-library-card small{display:block;font:9px monospace;letter-spacing:1.5px;color:#a9b995;margin-top:12px}.house-library-card h3{font:20px Georgia;margin:9px 0 5px}.house-card-bottom{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#a7b698}.house-library-section{font:20px Georgia;margin:28px 0 -10px}.house-library-new{padding:0;border-style:dashed;border-color:#a4b68b80;background:#2b3929}.house-library-new .house-create{width:100%;height:100%;min-height:230px;padding:20px;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.house-new-art{position:relative;width:100px;height:90px;margin:0 auto 12px;display:grid;place-items:center}.house-new-art>svg:first-child{width:76px;height:76px;transform:rotate(-30deg) skew(16deg);color:#91a87c;stroke-width:.8}.house-new-art>svg:last-child{position:absolute;right:0;bottom:3px;width:33px;height:33px;padding:6px;border-radius:50%;background:#d7ca9c;color:#273829}.house-library-new p{font-size:11px;color:#b9c5aa;line-height:1.5}.house-archive{margin-top:26px;border-top:1px solid var(--w-line);padding-top:16px}.house-archive>summary{font-size:12px;color:#b0bc9f;list-style:disclosure-closed}.house-archive[open]>summary{list-style:disclosure-open}
.shelter-brief{max-width:680px;line-height:1.6;padding:32px}.shelter-brief h2{font-size:30px}.shelter-brief small{display:block;color:#b7b9a6}.shelter-brief h3{margin-top:24px}.shelter-brief>button{margin-top:24px;padding:10px 20px}
@media(max-width:1000px){.house-workshop{grid-template-columns:220px minmax(0,1fr)}.workshop-top{gap:6px;padding:10px 12px}.workshop-top input{font-size:17px;width:160px}.workshop-tools{gap:1px;padding:6px 8px}.workshop-tools>button:nth-child(n){margin-left:0}.workshop-history{padding-left:5px}.workshop-library{padding:10px}.workshop-selection h3{max-width:140px}.house-library-grid{gap:12px}.house-library-card h3{font-size:18px}}
@media(max-width:700px){.house-workshop{grid-template-columns:168px minmax(0,1fr);grid-template-rows:56px 48px minmax(0,1fr) 30px}.workshop-top{padding:7px 8px;gap:4px}.workshop-top .workshop-icon.with-label span{display:none}.workshop-top input{width:100px;font-size:16px}.workshop-save-state{font-size:9px}.workshop-library{padding:8px}.workshop-categories{grid-template-columns:repeat(5,minmax(0,1fr));gap:1px}.workshop-categories .workshop-icon{padding:5px;height:32px;min-height:32px}.workshop-categories svg{width:18px;height:18px}.workshop-search{padding:0 6px}.workshop-search input{font-size:10px}.workshop-search svg{display:none}.workshop-cards{gap:5px}.workshop-card canvas{height:62px}.house-workshop .workshop-card{height:96px;padding:3px}.workshop-card span{font-size:9px}.workshop-tools{grid-column:1/-1}.workshop-library{grid-row:3}.workshop-view-controls{top:9px;right:9px}.workshop-view-controls .workshop-icon{min-width:30px;padding:5px}.workshop-view-controls select{width:47px}.workshop-inspector{bottom:10px;flex-wrap:wrap;justify-content:center;padding:6px;gap:4px;max-width:calc(100% - 16px)}.workshop-selection{width:100%;justify-content:center}.workshop-selection>canvas{width:40px;height:34px}.workshop-selection h3{font-size:12px;max-width:140px}.workshop-inspector.show-contents{min-width:0;width:calc(100% - 16px)}.house-library-dialog{padding:18px}.house-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.house-library-dialog h2{font-size:26px}.house-library-new .house-create{min-height:200px;padding:12px}}
@media(max-width:440px){.house-workshop{grid-template-columns:128px minmax(0,1fr)}.workshop-save-state{display:none}.workshop-top input{font-size:14px}.workshop-cards{grid-template-columns:1fr}.workshop-categories{grid-template-columns:repeat(3,minmax(0,1fr));max-height:120px;overflow:auto}.workshop-view-controls{right:4px;gap:0;padding:2px}.workshop-view-controls .workshop-icon{min-width:26px}.house-library-grid{grid-template-columns:1fr}.house-library-dialog h2{font-size:22px}}
.workshop-tooltip{position:fixed;z-index:240;pointer-events:none;background:#e4dfc8;color:#263326;border:1px solid #f1ecd5;box-shadow:0 4px 18px #0004;border-radius:4px;padding:7px 10px;font-size:11px;max-width:240px}.house-workshop .workshop-card[aria-pressed=true]{background:#36452f;border-color:#d0c7a1;color:#eef0e1}
/* Keep catalog navigation legible; page changes always start at the first card. */
.workshop-opening-filter{flex-shrink:0;margin-top:9px;width:100%;min-height:32px;font-size:11px;padding:5px 8px}.workshop-opening-filter[hidden]{display:none}.workshop-pagination{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:4px;flex-shrink:0}.workshop-result-range{grid-column:1/-1;text-align:center;font-size:10px;color:#b8c3ac}.workshop-pagination select{min-width:0;width:100%;font-size:11px;text-align:center;padding:6px 2px}.workshop-cards{overflow-y:scroll;scrollbar-gutter:stable;scrollbar-color:#879375 #17221c}.workshop-cards::-webkit-scrollbar{width:8px}.workshop-cards::-webkit-scrollbar-track{background:#17221c}.workshop-cards::-webkit-scrollbar-thumb{background:#879375;border-radius:5px;border:2px solid #17221c}
/* Continuous catalog: stable full-length scroll track, bounded live previews. */
.workshop-filters{display:flex;flex-wrap:wrap;gap:5px;flex-shrink:0;margin-top:8px}
.workshop-filters select{min-width:0;flex:1 1 110px;width:100%;font-size:11px;padding:6px}
.workshop-filters select[hidden]{display:none}
.workshop-cards{display:block;position:relative;overflow-anchor:none;scroll-behavior:auto}
.workshop-card-track{position:relative;width:100%}
.workshop-card-track>.workshop-card{position:absolute}

/* Room editing lives beside the canvas so lower edges remain reachable. */
.workshop-inspector.room-docked{position:static;transform:none;width:100%;min-width:0;max-width:none;max-height:45%;overflow:auto;margin-top:12px;padding:10px;flex-shrink:0;display:flex;flex-direction:column;align-items:stretch;box-shadow:none}
.workshop-inspector.room-docked .workshop-selection{min-width:0;max-width:none;display:block}
.workshop-inspector.room-docked .workshop-selection h3{white-space:normal;overflow:visible}
.workshop-inspector.room-docked .workshop-room-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}

.workshop-command-dialog{width:min(760px,95vw);max-height:90vh;overflow:auto;background:#222d27;color:#e1e7d9;border:1px solid #97ac8560;border-radius:12px;padding:24px}.workshop-command-dialog::backdrop{background:#0c151bc9}.workshop-command-dialog header,.workshop-command-dialog>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.workshop-command-dialog header{justify-content:space-between}.workshop-command-dialog h2{margin:0;font:26px Georgia}.workshop-command-dialog p{color:#b8c3ac}.workshop-command-dialog textarea{display:block;width:100%;height:180px;resize:vertical;background:#17221c;color:#e1e7d9;border:1px solid #97ac8560;border-radius:6px;padding:12px;margin:12px 0;font:12px/1.5 monospace}.workshop-command-dialog pre{max-height:230px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 monospace}.workshop-command-dialog button{border-color:#97ac8540}.workshop-command-dialog input{flex:1}
.workshop-command-dialog input[aria-label="Scene query"]{display:block;width:100%;box-sizing:border-box;margin:8px 0;font-family:monospace}
.workshop-reference-dialog{width:min(780px,95vw);max-height:90vh;overflow:auto;background:#222d27;color:#e1e7d9;border:1px solid #97ac8560;border-radius:12px;padding:24px}.workshop-reference-dialog::backdrop{background:#0c151bc9}.workshop-reference-dialog header{display:flex;align-items:center;justify-content:space-between}.workshop-reference-dialog h2{font:26px Georgia;margin:0}.workshop-reference-dialog p{color:#b8c3ac;font-size:13px}.workshop-reference-dialog img{display:block;width:100%;max-height:330px;object-fit:contain;background:#17221c;margin-top:12px}.workshop-reference-dialog label{display:block;margin:10px 0;font-size:13px}.workshop-reference-dialog label input,.workshop-reference-dialog textarea,.workshop-reference-dialog select{display:block;box-sizing:border-box;width:100%;margin-top:5px}.workshop-reference-dialog textarea{min-height:80px;background:#17221c;color:#e1e7d9}.workshop-reference-dialog button{margin:4px;border-color:#97ac8560}.workshop-reference-dialog [aria-pressed=true]{background:#596548}.workshop-reference-dialog [role=status]{position:sticky;bottom:0;background:#222d27;padding:8px}
.house-workshop.with-reference{grid-template-columns:264px minmax(0,1fr) 300px}.workshop-reference-dock{grid-column:3;grid-row:2/4;min-height:0;overflow:auto;background:var(--w-panel);border-left:1px solid var(--w-line);padding:14px}.workshop-reference-dock header{display:flex;align-items:center;justify-content:space-between}.workshop-reference-dock h3{font:19px Georgia;margin:0}.workshop-reference-dock select{width:100%;margin:12px 0}.workshop-reference-dock img{display:block;width:100%;max-height:45vh;object-fit:contain;background:#17221c}.workshop-reference-dock p{line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:#bcc7b0}.workshop-reference-dock>button{border-color:var(--w-line);width:100%}
@media(max-width:1100px){.house-workshop.with-reference{grid-template-columns:240px minmax(0,1fr)}.with-reference>.workshop-library{display:none}.workshop-reference-dock{grid-column:1;grid-row:2/4;border-left:0;border-right:1px solid var(--w-line)}}
@media(max-width:700px){.house-workshop.with-reference{grid-template-columns:168px minmax(0,1fr)}.workshop-reference-dock{grid-row:3;padding:8px}.workshop-reference-dock h3{font-size:15px}.workshop-reference-dock p{font-size:11px}.workshop-reference-dock select{font-size:11px;padding:6px}}
@media(max-width:440px){.house-workshop.with-reference{grid-template-columns:128px minmax(0,1fr)}}
.reference-annotation-frame{position:relative;margin:12px auto;touch-action:none;cursor:crosshair;overflow:hidden}.workshop-reference-dialog .reference-annotation-frame img{width:100%;height:100%;max-height:none;margin:0;pointer-events:none;user-select:none}.reference-annotation-box{position:absolute;border:2px solid #e4c982;color:#fff1c4;background:#e4c98215;font:11px monospace;pointer-events:none;overflow:hidden}.reference-annotation-box.draft{border-style:dashed;border-color:#fff;background:#ffffff15;z-index:1}.reference-annotation-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.reference-annotation-fields textarea,.reference-annotation-fields select[aria-label="Linked scene entity"]{grid-column:1/-1;width:100%}.reference-annotation-fields textarea{padding:8px}.workshop-reference-dock>div>button{display:block;text-align:left;width:100%;margin:5px 0;border-color:var(--w-line)}
.reference-linked-image{position:relative}.workshop-reference-dock .reference-linked-image img{width:100%;max-height:none;height:auto}.reference-linked-overlay{position:absolute;inset:0;pointer-events:none}.house-workshop .reference-linked-overlay button{position:absolute;pointer-events:auto;border:1px solid #ead18c;color:#fff1c4;background:#20302733;border-radius:0;overflow:hidden;padding:2px;font-size:10px;text-align:left}.house-workshop .reference-linked-overlay button:hover{background:#d7ca9c55}

.house-library-new .house-create{height:auto}.house-create-options:not([hidden]){display:flex;gap:8px;padding:0 12px 16px;justify-content:center;flex-wrap:wrap}.house-create-options .workshop-icon.with-label{flex:1;justify-content:center;white-space:nowrap}.house-create[aria-expanded="true"]{min-height:180px}

.reference-photo-groups h3{font:16px Georgia;margin:12px 0 6px}.reference-photo-thumbnails{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px}.reference-photo-thumbnails button{width:132px;flex-shrink:0;display:flex;flex-direction:column;gap:5px;text-align:left}.reference-photo-thumbnails img{width:100%;height:76px;object-fit:cover}.reference-photo-thumbnails span{font-size:11px}.reference-photo-thumbnails [aria-pressed=true]{outline:2px solid #c8c99b}.reference-photo-viewer{width:min(1200px,95vw);max-width:95vw;height:90vh;max-height:90vh;background:#17231d;color:#e2e5d6;border:1px solid #788570;border-radius:10px;padding:16px}.reference-photo-viewer[open]{display:flex;flex-direction:column;gap:10px}.reference-photo-viewer::backdrop{background:#050a08dc}.reference-photo-viewer header{display:flex;align-items:center;justify-content:space-between;gap:12px}.reference-photo-viewer h2{font:22px Georgia;margin:0}.reference-photo-viewer>div:not(.reference-photo-stage){display:flex;gap:14px;align-items:center}.reference-photo-viewer label{display:flex;gap:10px;align-items:center}.reference-photo-viewer p{font-size:11px;margin:0;overflow-wrap:anywhere}.reference-photo-stage{flex:1;min-height:0;overflow:auto;background:#0b100d;cursor:grab;touch-action:none;overscroll-behavior:contain}.reference-photo-stage:active{cursor:grabbing}.reference-photo-content{position:relative}.reference-photo-content img{display:block;width:100%;height:100%;max-width:none;user-select:none}.reference-photo-content .reference-annotation-box{pointer-events:none}

.reference-photo-content{margin-inline:auto}

.saved-view-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:12px 0;border-top:1px solid #455341}.saved-view-row small{grid-column:1;grid-row:2;color:#b3bea5}.saved-view-row button:first-child{text-align:left}.saved-view-row button:nth-last-child(2){grid-column:2;grid-row:1/3}.saved-view-row button:last-child{grid-column:3;grid-row:1/3}

.workshop-version-dialog{width:min(700px,94vw);max-height:88vh;overflow:auto;background:#202e25;color:#e3e4d1;border:1px solid #64745b;border-radius:12px;padding:24px}.workshop-version-dialog::backdrop{background:#080f0bcc}.workshop-version-dialog header,.workshop-version-dialog form{display:flex;gap:12px;align-items:center;justify-content:space-between}.workshop-version-dialog h2{font:30px Georgia;margin:0}.workshop-version-dialog p{font-size:13px;color:#b7c2ac;line-height:1.5}.workshop-version-dialog input{min-width:0;flex:1;border:1px solid #667257;border-radius:6px;padding:10px;background:#17251e;color:inherit}.house-version-list{margin-top:20px}.house-version-list article{border-top:1px solid #455541;padding:12px 0}.house-version-choose{display:block;width:100%;text-align:left;font:18px Georgia}.house-version-list small{display:block;color:#b0bba3;padding:6px 10px;font-size:11px}.house-version-detail{display:flex;gap:16px;padding:12px 0}.house-version-detail canvas{width:55%;height:auto;object-fit:contain;align-self:flex-start;border-radius:6px}.house-version-detail>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:10px}.house-version-detail input{flex:none;width:100%;box-sizing:border-box}.house-version-detail button:first-child{background:#c7c19a;color:#213124}.workshop-version-dialog [aria-expanded=true]{background:#48583f}.workshop-version-dialog button:disabled{opacity:.5}@media(max-width:600px){.workshop-version-dialog{padding:14px}.house-version-detail{flex-direction:column}.house-version-detail canvas{width:100%}.workshop-version-dialog form{flex-wrap:wrap}}

.reference-annotation-frame.editing .reference-annotation-box:not(.draft){display:none}

.roof-profile-dialog{max-width:760px}.roof-profile-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-top:14px}.roof-profile-dialog label{display:flex;flex-direction:column;gap:6px;font-size:12px}.roof-profile-dialog p{font-size:12px;line-height:1.5;color:#bac4b2}.roof-profile-finishes{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}.roof-profile-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.roof-profile-dialog>select{width:100%}@media(max-width:600px){.roof-profile-fields,.roof-profile-finishes{grid-template-columns:1fr}}

.volume-preview-dialog{width:min(1100px,96vw);max-width:1100px}.volume-preview-dialog>canvas{display:block;width:100%;height:clamp(200px,calc(100vh - 440px),400px);touch-action:none}.volume-preview-controls{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.volume-preview-controls select{max-width:250px}.volume-preview-dialog p{font-size:12px}.volume-preview-dialog pre{white-space:pre-wrap;font-size:11px}

/* Keep the house visible; detailed diagnostics are opt-in. */
.volume-preview-dialog{max-height:94vh;overflow:auto}.volume-preview-dialog h2{margin:0 0 10px;font-size:18px}.volume-preview-dialog>canvas{height:clamp(280px,60vh,700px)}.volume-preview-inspector{margin-top:8px}.volume-preview-inspector>summary{cursor:pointer;padding:10px 0}.volume-preview-inspector [aria-label="Rendering measurement"]{white-space:pre-wrap;font-family:monospace}.volume-walk-controls{margin-bottom:8px}.volume-preview-controls button,.volume-preview-controls select{min-height:36px}

.volume-inventory-dialog{width:min(680px,92vw);max-height:85vh;overflow:auto}.volume-inventory-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid #495145}.volume-inventory-row span{flex:1;min-width:140px}.volume-inventory-dialog button{min-height:36px}.volume-inventory-dialog h3{font-size:15px;margin-bottom:8px}

/* The resident view shares simulation and rendering with the workshop, while
   giving the actual home the viewport instead of an editor diagnostic modal. */
.volume-home-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:20px 24px;border:0;border-radius:0;box-sizing:border-box;overflow:auto;background:#18251f}
.volume-home-dialog>canvas{height:calc(100dvh - 240px);min-height:280px}
.volume-home-dialog h2{font-family:Georgia,serif;font-size:22px;font-weight:400}
.volume-home-dialog .volume-preview-controls{gap:8px}
.volume-home-dialog>[aria-label="Residence save status"]:empty{display:none}
@media(max-width:700px){.volume-home-dialog{padding:12px}.volume-home-dialog>canvas{height:calc(100dvh - 280px)}}
.volume-home-dialog button,.volume-home-dialog select{font:inherit;font-size:13px;color:#e4e5d8;background:#24352b;border:1px solid #53634d;border-radius:7px;padding:8px 12px;cursor:pointer}
.volume-home-dialog button:hover,.volume-home-dialog select:hover{background:#344633;border-color:#a4af89}
.volume-home-dialog button:focus-visible,.volume-home-dialog select:focus-visible{outline:2px solid #d2cda5;outline-offset:2px}
.volume-home-dialog button:disabled{opacity:.45;cursor:default}
.volume-home-dialog button[aria-pressed=true]{background:#d2cda5;border-color:#d2cda5;color:#243022}
.volume-home-dialog>canvas{border-radius:10px}
/* Residence is a full scene; construction inspection stays in the workshop. */
.volume-home-dialog{padding:0;overflow:hidden;isolation:isolate}
.volume-home-dialog>canvas{position:absolute;inset:0;width:100%;height:100%;min-height:0;border-radius:0;z-index:-1}
.volume-home-dialog>.volume-home-header{z-index:10;position:absolute;inset:20px 24px auto;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;pointer-events:none}
.volume-home-header h2{margin:0;padding:8px 12px;background:#18251fd9;border:1px solid #78836555;border-radius:8px;font-size:20px;pointer-events:auto}
.volume-home-options{position:relative;pointer-events:auto}
.volume-home-options>summary{list-style:none;cursor:pointer;background:#18251fe8;border:1px solid #78836588;border-radius:8px;padding:11px 16px;font-size:13px}
.volume-home-options>summary::-webkit-details-marker{display:none}
.volume-home-options>summary:focus-visible{outline:2px solid #d2cda5;outline-offset:3px}
.volume-home-options>.volume-preview-controls{position:absolute;right:0;top:48px;width:220px;max-height:calc(100dvh - 100px);overflow-y:auto;box-sizing:border-box;display:grid;grid-template-columns:1fr;padding:12px;background:#18251ff5;border:1px solid #78836588;border-radius:10px;box-shadow:0 12px 35px #0005}
.volume-home-dialog .volume-home-actions{position:absolute;bottom:36px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);align-items:center;justify-content:center;padding:8px;margin:0;background:#18251fe8;border:1px solid #78836588;border-radius:12px;box-shadow:0 8px 24px #0003}
.volume-home-actions>button:disabled{display:none}
.volume-home-dialog .volume-home-needs{position:absolute;top:70px;left:36px;right:250px;margin:0;font-size:12px;line-height:1.6;text-shadow:0 1px 4px #000,0 0 8px #000;pointer-events:none}
.volume-home-dialog>.volume-movement-help{position:absolute;bottom:8px;left:16px;right:16px;margin:0;text-align:center;font-size:11px;color:#d2d6c1;text-shadow:0 1px 4px #000;pointer-events:none}
.volume-home-dialog>.volume-life-events{position:absolute;bottom:102px;left:50%;transform:translateX(-50%);max-width:600px;padding:8px 14px;border-radius:8px;background:#18251fe8;text-align:center;pointer-events:none}
.volume-home-dialog>[aria-label="Residence save status"]{position:absolute;top:100px;left:36px;margin:0;font-size:11px;text-shadow:0 1px 4px #000;pointer-events:none}
@media(max-width:700px){.volume-home-dialog{padding:0}.volume-home-dialog>canvas{height:100%}.volume-home-dialog>.volume-home-header{inset:12px 12px auto}.volume-home-header h2{font-size:17px}.volume-home-dialog .volume-home-needs{top:63px;left:24px;right:24px;max-width:70%}.volume-home-dialog>[aria-label="Residence save status"]{top:123px;left:24px}.volume-home-dialog .volume-home-actions{bottom:48px;gap:5px}.volume-home-dialog>.volume-movement-help{font-size:10px}.volume-home-dialog>.volume-life-events{bottom:116px;width:80%}}

.household-media {width:min(900px,94vw);max-height:90vh;overflow:auto;padding:24px;background:#202d26;color:#e8e5d4;border:1px solid #6d775f;border-radius:12px;}
.household-media iframe {display:block;width:100%;aspect-ratio:16/9;border:0;background:#101713;margin:16px 0;}
.household-media button,.household-media input {margin:5px;padding:9px;}
.household-media a {color:#d7d8aa;}
.piano-scroll {overflow-x:auto;margin:18px 0;padding:4px;background:#151c17;}
.piano-keyboard {position:relative;width:1248px;height:150px;}
.household-media .piano-key {position:absolute;top:0;margin:0;border-radius:0 0 3px 3px;padding:0;font-size:9px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;}
.piano-key.white {width:24px;height:145px;background:#ded7bf;color:#24251e;border:1px solid #797762;}
.piano-key.black {z-index:2;width:14px;height:90px;background:#252723;color:#e1d9bf;border:1px solid #0a0d0b;}
.piano-key.playing,.piano-key:active {background:#b4ad72;transform:translateY(3px);}
/* Keep the open appliance visible while inspecting its real inventory. */
.volume-inventory-dialog.volume-storage-inspection{max-height:44dvh;margin:auto 16px 16px auto;width:min(480px,calc(100vw - 32px));box-shadow:0 8px 36px #0008}
.volume-inventory-dialog.volume-storage-inspection::backdrop{background:#0002}

/* Exterior and garden panel */
.exterior-dialog{max-height:min(88vh,860px);overflow:auto}
.exterior-dialog fieldset{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px 16px;align-items:center;margin:0 0 12px}
.exterior-dialog fieldset label{display:flex;gap:8px;align-items:center;line-height:1.3}
.exterior-dialog fieldset label input[type=number]{width:5.5em}
.exterior-dialog fieldset label input[type=range]{flex:1}
.exterior-dialog fieldset ul,.exterior-dialog fieldset p,.exterior-dialog fieldset > div{grid-column:1/-1;margin:0}
.exterior-dialog fieldset ul{list-style:none;padding:0;display:grid;gap:4px}
.exterior-dialog fieldset > div{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:4px 16px}
/* Living HUD (home-hud.js): the scene is the page. */
.home-hud .volume-home-actions:not(:has(>:not([hidden]):not(:disabled):not(p))){display:none}
.home-hud .volume-home-actions>.volume-preview-controls,.home-hud .volume-home-actions>p{display:none}
.home-hud-workshop{position:absolute;top:18px;right:20px;z-index:12;padding:9px 16px!important;border-radius:999px!important;background:#18251fcc!important;backdrop-filter:blur(6px);letter-spacing:.02em}
.home-hud-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:11;padding:12px 22px!important;border-radius:999px!important;background:#18251fd9!important;font-size:14px!important;box-shadow:0 10px 30px #0006}
.home-hud-menu{position:absolute;inset:0;z-index:20;display:grid;place-content:center;background:#0d1511b3;backdrop-filter:blur(3px)}
.home-hud-menu[hidden]{display:none}
.home-hud-menu>*{width:min(360px,calc(100vw - 32px));box-sizing:border-box}
.home-hud-menu>header{display:block;padding:22px 22px 4px;background:#18251f;border:1px solid #78836588;border-bottom:0;border-radius:14px 14px 0 0}
.home-hud-menu>header small{font-size:10px;letter-spacing:.18em;color:#a4af89}
.home-hud-menu>header h2{margin:6px 0 0;font-size:24px}
.home-hud-menu>:not(header){padding:10px 22px;background:#18251f;border-left:1px solid #78836588;border-right:1px solid #78836588;margin:0}
.home-hud-menu>:last-child{padding-bottom:20px;border-bottom:1px solid #78836588;border-radius:0 0 14px 14px}
.home-hud-status p{position:static!important;margin:0!important;font-size:12px!important;line-height:1.6;color:#c9cfb9;text-shadow:none!important}
.home-hud-status p:empty{display:none}
.home-hud-menu .home-hud-continue{width:100%;padding:11px!important;background:#d2cda5!important;color:#243022!important;border-color:#d2cda5!important;font-weight:600}
.home-hud-items{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.home-hud-items>[hidden]{display:none}
.home-hud-items>label{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;font-size:13px}
.home-hud-house>summary{cursor:pointer;font-size:13px;color:#c9cfb9;padding:4px 0}
.home-hud-house>.volume-preview-controls{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px;position:static}
.home-hud-house>.volume-preview-controls>[hidden]{display:none}
.home-hud-about{font-size:12px;line-height:1.5;color:#a4af89}
.home-hud-help{transition:opacity 1.2s ease}
.home-hud-help.home-hud-faded{opacity:0}
@media(max-width:700px){.home-hud-workshop{top:12px;right:12px}}
.home-hud-marker{position:absolute;z-index:9;transform:translate(-50%,-100%);padding:6px 12px!important;border-radius:999px!important;font-size:12px!important;letter-spacing:.04em;background:#18251fd9!important;border-color:#d2cda5aa!important;color:#f1ecd0!important;box-shadow:0 0 0 4px #d2cda522,0 6px 18px #0006;transition:opacity .3s}
.home-hud-marker::after{content:'';position:absolute;left:50%;bottom:-7px;width:1px;height:7px;background:#d2cda5aa}
.home-hud-marker[hidden]{display:none}
.home-hud-items .home-hud-work{grid-column:1/-1;border-color:#d2cda5!important}
.home-hud-marker-edge{transform:translate(-50%,-50%)}
.home-hud-marker-edge::after{display:none}
.home-hud-marker-edge[data-side=left]::before{content:'‹ '}
.home-hud-marker-edge[data-side=right]::after{display:inline;position:static;content:' ›';background:none;width:auto;height:auto}
.home-hud-marker-edge[data-side=up]::before{content:'˄ '}
.home-hud-marker-edge[data-side=down]::before{content:'˅ '}
/* Touch (touch-controls.js): thumb stick bottom-left and the E prompt under the right thumb, phones only. */
.touch-stick{display:none}
@media(max-width:700px) and (pointer:coarse){
.home-hud>.touch-stick{display:block;position:absolute;left:22px;bottom:34px;z-index:9;width:112px;height:112px;border-radius:50%;background:#18251f8c;border:1px solid #d2cda566;box-shadow:0 8px 24px #0004;backdrop-filter:blur(4px);touch-action:none;user-select:none;-webkit-user-select:none}
.touch-stick-knob{position:absolute;left:50%;top:50%;width:48px;height:48px;margin:-24px 0 0 -24px;border-radius:50%;background:#d2cda5cc;box-shadow:0 2px 8px #0006;pointer-events:none}
.touch-stick-active{background:#18251fb8}
.home-hud .volume-home-actions{left:auto;right:16px;bottom:52px;transform:none;padding:6px;max-width:calc(100% - 170px)}
.home-hud .volume-home-actions>button{min-height:48px;padding:10px 14px;font-size:15px;line-height:1.25;text-align:left}
.home-hud>.volume-movement-help{left:150px;right:12px;text-align:right}
.home-hud>.volume-life-events{bottom:170px}
}
