/* Approved housing presentation, shared by student and authenticated teacher views. */
.is-housing-review{--paper:#0c2025;--panel:#112b2f;--ink:#f3e5c8;--muted:#b9c2b3;--line:#5c6554;--gold:#d4b276;--accent:#28535a;background:radial-gradient(ellipse at 55% 20%,#274137 0,#10282c 47%,#081b21 100%);color:var(--ink);min-height:100dvh}
.is-housing-review button{border-radius:7px;box-shadow:none!important;letter-spacing:.01em;transition:background .15s,border-color .15s}
.is-housing-review button:focus-visible,.is-housing-review [tabindex]:focus-visible{outline:3px solid #f6d48b;outline-offset:4px}
.is-housing-review [hidden]{display:none!important}
.is-housing-review .lab-header{height:58px;padding:0 24px;background:#091d22e0;border-bottom:1px solid #bda06b38;gap:20px}
.is-housing-review .lab-header h1{font:27px/1 Georgia,serif;letter-spacing:.02em;color:#efdab1}
.is-housing-review .back-link{font-size:12px;text-decoration:none;color:#c6b68f;white-space:nowrap}
.is-housing-review #wallet{margin-left:auto;font:18px Georgia;white-space:nowrap;padding:8px 12px;background:#112e31;border:1px solid #826c454f;border-radius:8px}
.is-housing-review #wallet svg{width:22px;height:22px;color:#e7bf74}
.is-housing-review .studio-lab-toggle{font-size:11px;color:#acb9af;background:transparent;border-color:#52665e;min-height:34px}
.is-housing-review #room-navigation{position:absolute;top:10px;right:365px;display:flex;height:38px;gap:3px;border:0;background:transparent}
.is-housing-review #room-navigation button{border-radius:50%;width:34px;min-height:34px;padding:4px;background:transparent;border:1px solid transparent}
.is-housing-review #room-navigation button[aria-pressed=true]{background:#234348;border-color:#a78754}
.is-housing-review #room-navigation svg{width:22px;height:26px}
.is-housing-review main{max-width:1920px;padding:12px 16px 72px}
.is-housing-review .scene-shell{height:calc(100dvh - 142px);min-height:440px;border:1px solid #a88a574f;border-radius:12px;background:radial-gradient(ellipse,#2c3a31 0,#0b2329 78%);box-shadow:0 15px 60px #0004}
.is-housing-review .stage-viewport{background:transparent}
.is-housing-review .scene-card{background:transparent}
.is-housing-review .studio-scene-head{top:14px;left:16px;right:16px;align-items:flex-start}
.is-housing-review .studio-scene-head>div:first-child{background:#0c252be8;border:1px solid #b59b623f;border-radius:8px;padding:10px 13px;backdrop-filter:blur(10px)}
.is-housing-review .studio-scene-head strong{font:19px/1.3 Georgia,serif}
.is-housing-review .studio-scene-head small{font:10px/1.6 system-ui,sans-serif;letter-spacing:.07em;color:#b9bb9c;text-transform:uppercase}
.is-housing-review .studio-view-actions{gap:5px}
.is-housing-review .studio-view-actions button{border-color:#83907866;background:#0d272ce8;padding:8px 12px;min-height:40px;font-size:12px}
.is-housing-review .studio-primary{color:#25372c;background:linear-gradient(#e9ce94,#c5a369);border:1px solid #f5dcaa;font:17px Georgia,serif;padding:12px 23px;box-shadow:inset 0 0 0 3px #b2935a55,0 5px 20px #0004!important}
.is-housing-review .studio-primary small{font:11px/1.5 system-ui,sans-serif;letter-spacing:0;margin-top:4px}
.is-housing-review .studio-objective{bottom:21px;left:20px;display:flex;align-items:flex-start;flex-direction:column;gap:9px}
.review-save-state{font-size:10px;letter-spacing:.035em;color:#c6c8ac;padding-left:3px;text-shadow:0 1px 3px #06171a}
.is-housing-review .studio-camera{bottom:20px;right:18px;background:#0c252be8;border:1px solid #9b895963;border-radius:8px;padding:3px}
.is-housing-review .studio-camera button{font-size:13px;min-width:36px;min-height:38px;padding:6px 10px}
.is-housing-review .studio-camera span{font-variant-numeric:tabular-nums;color:#c8cbb7}
.is-housing-review .studio-world-tools{top:64px;border-radius:8px;box-shadow:0 12px 40px #0007}
.is-housing-review .studio-world-tools button{font-size:13px;border-color:transparent;background:transparent;color:#dfd9bf;padding:9px 10px}
.is-housing-review .studio-world-tools button:hover{background:#24453e;border-color:#b5965b}
.is-housing-review .lab-tabs{bottom:12px;gap:5px;padding:6px 8px;background:#091e24ed;border:1px solid #a58a515c;border-radius:11px;box-shadow:0 7px 28px #0005;max-width:calc(100vw - 24px);flex-wrap:nowrap;overflow:auto;scrollbar-width:none}
.is-housing-review .lab-tabs button{font:14px Georgia,serif;white-space:nowrap;padding:10px 20px;min-height:42px;border:1px solid transparent;background:transparent}
.is-housing-review .lab-tabs button[aria-pressed=true]{background:#254a4c;border-color:#c2a36a;color:#ffe7b4}
.is-housing-review .lab-tabs [data-page=admin],.is-housing-review .lab-tabs [data-page=economy],.is-housing-review .lab-tabs a{display:none}
.is-housing-review.is-lab-open .studio-lab-controls{display:block;left:auto;right:20px;top:65px;width:340px;max-height:calc(100dvh - 100px);overflow:auto;border-radius:10px}
.is-housing-review .studio-lab-controls button{font-size:12px;background:#143239;border-color:#5b7268}
.is-housing-review.is-lab-open .lab-tabs [data-page=admin],.is-housing-review.is-lab-open .lab-tabs [data-page=economy]{display:block!important}
.is-housing-review .room-layout>.side-panel{top:82px;right:18px;width:330px;max-height:calc(100% - 180px);background:#0e292ff5;border-radius:9px;box-shadow:0 10px 50px #0007}
.is-housing-review .room-inspector[hidden]{display:none!important}
.is-housing-review .panel{border-color:#797f5c55}
.is-housing-review .job{padding:12px 0;gap:10px}.is-housing-review .job p{font-size:12px}.is-housing-review .job-number{font-size:23px}.is-housing-review .job button{font-size:12px;padding:8px 11px}
.is-housing-review .studio-editor .scene-shell{height:calc(100dvh - 265px);min-height:390px}
.is-housing-review .studio-inventory{position:relative;max-width:1240px;margin:9px auto 0;padding:8px 13px;background:#102b2edb;border:1px solid #a78d5959;border-radius:9px}
.is-housing-review .studio-inventory-head strong{font-size:16px;letter-spacing:.025em;color:#dfc590}
.is-housing-review .studio-inventory-head button{border-color:#6f7a6359;background:#17363a}
.is-housing-review .studio-object-strip{gap:8px;padding:8px 0 5px}
.is-housing-review .studio-object-strip>button{border:1px solid #7d866454;background:linear-gradient(#27413988,#0d272a);border-radius:7px;min-width:90px;width:90px;font-size:10px;line-height:1.2;color:#d8dbc4;padding:3px 5px 6px}
.is-housing-review .studio-object-strip>button:hover{border-color:#dfb977;background:#304d40}
.is-housing-review .studio-object-strip svg{height:66px;width:78px}
.is-housing-review .studio-inventory .shop-filters{position:absolute;top:0;left:140px;margin:0}.is-housing-review .studio-inventory .shop-filters label{font-size:0}.is-housing-review .studio-inventory .shop-filters select{font-size:11px;max-width:140px;min-height:30px;padding:3px 6px;background:#183638;border-color:#6f80665c}
.is-housing-review .studio-selection{top:82px;left:18px;border:1px solid #c9ab70;background:#112e33ef;max-width:300px;box-shadow:0 10px 30px #0005;border-radius:9px}
.is-housing-review .studio-selection-title strong{font-size:18px}.is-housing-review .studio-selection-actions button{min-height:38px;padding:7px 10px;font-size:12px}.is-housing-review .studio-selection summary{font-size:13px;color:#c6c8ad}
.is-housing-review .studio-placement-state{top:auto;bottom:183px;font-size:11px;background:#102a2cd9;border:1px solid #949d7166;border-radius:7px;max-width:75%;text-align:center}
.is-housing-review .studio-confirm-placement{position:fixed;bottom:175px;border-radius:9px;border:1px solid #d5b474;background:#102c2ff5;box-shadow:0 10px 35px #0009}.is-housing-review .studio-confirm-placement .studio-primary{font-size:15px;padding:9px 17px}
.is-housing-review .review-job-hotspot{cursor:pointer;opacity:.65;transition:opacity .2s;filter:drop-shadow(0 3px 5px #0005)}.is-housing-review .review-job-hotspot:hover,.is-housing-review .review-job-hotspot:focus{opacity:1}
.is-housing-review .review-job-hotspot:focus-visible circle{stroke:#fff0bc;stroke-width:4}
.is-housing-review .topdown-room{overflow:visible}.is-housing-review .review-architecture{filter:drop-shadow(0 10px 18px #0004)}
.is-housing-review #art [data-instance] .furniture{filter:drop-shadow(0 5px 4px #201b2280)}
.is-housing-review .studio-editor .studio-objective{display:none}
.is-housing-review.is-immersed .lab-header,.is-housing-review.is-immersed #room-navigation{visibility:hidden}.is-housing-review.is-immersed .studio-editor .scene-shell{height:100dvh}
.is-housing-review.is-immersed .studio-camera [data-action=exit-immersion]{color:#f0dab2;font:15px Georgia;padding:10px 16px}
.is-housing-review.is-immersed .review-job-hotspot{display:none}
.is-housing-review dialog{border-radius:12px;border-color:#b2955a;box-shadow:0 25px 100px #000a;background:linear-gradient(150deg,#173438,#0b252b);padding:30px}
.is-housing-review dialog::backdrop{background:#07181dcc;backdrop-filter:blur(4px)}
.is-housing-review .studio-vista-caption h2{font-size:30px}.is-housing-review .studio-vista-caption .quiet{line-height:1.7;color:#b8c0ad}
.is-housing-review[data-studio-page=shop] .catalog-grid{max-width:1240px;margin:auto}.is-housing-review[data-studio-page=quests] #content{max-width:1100px;margin:auto}
@media(max-width:1000px){.is-housing-review .lab-header{padding:0 15px;gap:12px}.is-housing-review #room-navigation{top:70px;right:auto;left:50%;transform:translateX(-50%);z-index:6}.is-housing-review #room-navigation button{background:#102b30}.is-housing-review .studio-scene-head strong{font-size:16px}.is-housing-review .studio-view-actions button span{display:none}}
@media(max-width:600px){
 .is-housing-review .lab-header{height:50px;flex-wrap:nowrap;padding:0 10px;gap:10px}.is-housing-review .lab-header h1{font-size:21px}.is-housing-review .lab-header .back-link{width:auto;order:0;font-size:0}.is-housing-review .back-link:before{content:'←';font-size:22px}.is-housing-review #wallet{font-size:12px;min-width:0;padding:6px}.is-housing-review #wallet svg{width:16px}.is-housing-review .studio-lab-toggle{padding:5px 7px;font-size:9px;min-height:31px}.is-housing-review .lab-header>div:first-of-type{flex:1}
 .is-housing-review #room-navigation{display:none}.is-housing-review.is-lab-open #room-navigation{display:flex;top:58px;left:12px;transform:none;z-index:21}
 .is-housing-review main{padding:6px 6px 64px}.is-housing-review .scene-shell{height:calc(100dvh - 124px);min-height:360px;border-radius:9px}
 .is-housing-review .studio-scene-head{left:8px;right:8px;top:8px;gap:5px}.is-housing-review .studio-scene-head>div:first-child{padding:7px 8px;gap:7px;max-width:calc(100% - 103px)}.is-housing-review .studio-scene-head strong{font-size:14px;white-space:nowrap}.is-housing-review .studio-scene-head small{font-size:8px;letter-spacing:.01em}.is-housing-review .studio-scene-head svg{width:23px;flex-shrink:0}.is-housing-review .studio-view-actions{gap:3px}.is-housing-review .studio-view-actions button{padding:6px 9px;min-height:35px;font-size:13px}
 .is-housing-review .studio-objective{left:10px;bottom:68px;gap:6px;max-width:calc(100% - 20px)}.is-housing-review .studio-primary{font-size:16px;padding:10px 15px}.is-housing-review .studio-primary small{font-size:10px}.is-housing-review .review-save-state{font-size:9px}.is-housing-review .studio-camera{right:8px;bottom:9px}.is-housing-review .studio-camera button{min-width:34px;min-height:37px;font-size:12px;padding:5px 8px}
 .is-housing-review .lab-tabs{bottom:7px;padding:4px 5px;gap:2px;border-radius:9px;justify-content:flex-start}.is-housing-review .lab-tabs button{padding:10px 13px;font-size:13px;min-height:40px}
 .is-housing-review .studio-world-tools{right:8px;top:58px;width:235px}
 .is-housing-review .room-layout>.side-panel{left:8px;right:8px;top:65px;width:auto;max-width:none;max-height:calc(100% - 130px);padding:7px}
 .is-housing-review.is-lab-open .studio-lab-controls{right:8px;top:99px;width:calc(100vw - 16px);max-width:none}
 .is-housing-review .studio-editor .scene-shell{height:calc(100dvh - 237px);min-height:340px}.is-housing-review .studio-editor .studio-scene-head>div:first-child{max-width:calc(100% - 103px)}
 .is-housing-review .studio-inventory{margin-top:6px;padding:7px 8px}.is-housing-review .studio-inventory-head strong{font-size:14px}.is-housing-review .studio-inventory-head button{font-size:9px;padding:5px 7px;min-height:33px}.is-housing-review .studio-inventory .shop-filters{position:static;float:right}.is-housing-review .studio-inventory .shop-filters select{font-size:10px;max-width:120px;min-height:27px}.is-housing-review .studio-inventory .catalog-pagination{clear:both;font-size:10px}.is-housing-review .studio-inventory .catalog-pagination button{min-height:28px}
 .is-housing-review .studio-object-strip>button{min-width:78px;width:78px}.is-housing-review .studio-object-strip svg{height:57px;width:68px}.is-housing-review .studio-selection{top:62px;left:8px;right:auto;max-width:230px;max-height:260px;padding:9px}.is-housing-review .studio-selection-title strong{font-size:16px}.is-housing-review .studio-selection-actions{gap:4px}.is-housing-review .studio-selection-actions button{font-size:11px;min-height:34px;padding:6px 9px}
 .is-housing-review .studio-placement-state{bottom:204px;font-size:10px;width:max-content;max-width:92%;padding:5px 8px}.is-housing-review .studio-confirm-placement{bottom:180px;width:max-content;max-width:96%;padding:6px}.is-housing-review .studio-confirm-placement button{min-height:40px;font-size:13px}
 .is-housing-review .room-sections{top:64px;left:50%;max-width:90%;gap:1px}.is-housing-review .room-sections button{font-size:10px;min-height:31px;padding:5px 6px}
 .is-housing-review dialog{width:calc(100vw - 16px);padding:25px 16px}.is-housing-review .studio-vista-caption h2{font-size:25px}
}
@media(prefers-reduced-motion:reduce){.is-housing-review *{transition:none!important;animation:none!important}}
.garden-panel h2{font:32px/1.15 Georgia,serif;margin:8px 0 15px;color:#efe2bb}.garden-panel>p{max-width:660px;line-height:1.7}.garden-panel .quiet{font-size:12px;color:#b0c0af}.garden-next,.garden-upgrade{padding:15px 20px;background:#25433777;border:1px solid #80986670;border-radius:9px;margin:20px 0}.garden-next h3,.garden-upgrade h3{margin:0;font:23px Georgia}.garden-next p,.garden-upgrade p{font-size:13px}.garden-kind-note{font:17px Georgia;color:#d9d7ac}.garden-plots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:15px 0}.garden-plot-card{display:flex;flex-direction:column;align-items:center;padding:8px!important;border-color:#7d956e66!important;background:linear-gradient(#35523f88,#102e31)!important;min-width:0}.garden-plot-card svg{width:100%;max-width:165px}.garden-plot-card strong{font:16px Georgia}.garden-plot-card span{font-size:11px;color:#c0cbb2;margin-top:5px}.garden-seeds{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.garden-seeds button{padding:7px!important;display:flex;align-items:center;flex-direction:column;gap:3px;background:#254439aa!important;min-width:0}.garden-seeds svg{width:100%;height:86px}.garden-seeds strong{font:15px Georgia}.garden-seeds small{font-size:10px;color:#becbb2}.garden-single-art{max-width:220px;margin:15px auto}.garden-single-art svg{width:100%}.garden-quests summary{font:20px Georgia}.garden-quests>div{padding:10px 0;border-bottom:1px solid #77805d55}.garden-quests p{font-size:12px}.garden-quests button{font-size:12px}.garden-scene-plot{cursor:pointer;filter:drop-shadow(0 4px 5px #071b2480)}.garden-scene-plot:focus-visible .garden-bed>rect:nth-child(2){stroke:#e8f3bc;stroke-width:7}.garden-upgrade{background:linear-gradient(120deg,#35444988,#29305088);border-color:#a4add478}.garden-upgrade .eyebrow{color:#b8c8e3}.is-housing-review .dream-environment{filter:drop-shadow(0 8px 12px #08172899)}
@media(max-width:600px){.garden-panel h2{font-size:26px}.garden-plots{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.garden-seeds{grid-template-columns:repeat(2,minmax(0,1fr))}.garden-seeds svg{height:95px}.garden-plot-card strong{font-size:14px}.garden-next,.garden-upgrade{padding:12px}.garden-next .studio-primary,.garden-upgrade .studio-primary{font-size:15px}.garden-panel>p{font-size:13px}}
/* Each extension loads its own activity only when entered. */
.living-panel{max-width:1120px;margin:auto;color:#eee0bd}.living-panel h2{font:clamp(25px,3vw,38px) Georgia,serif;color:#f4deaf}.living-restoration{background:#203936;border:1px solid #a18d63;border-radius:12px;padding:15px 20px;margin:18px 0}.living-restoration h3{margin:.35em 0}.theatre-layout,.workshop-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:22px}.theatre-settings,.workshop-layout form{display:flex;flex-direction:column;gap:10px}.theatre-settings label,.workshop-layout label{display:flex;gap:8px;flex-direction:column}.theatre-settings fieldset label{flex-direction:row;align-items:center;padding:4px 0}.theatre-settings fieldset input{width:auto}.theatre-settings fieldset{border:1px solid #8d805b;border-radius:8px}.living-panel input,.living-panel select{background:#152f30;color:#f6e9c9;border:1px solid #897c5e;border-radius:6px;padding:9px;min-height:40px}.mini-theatre{position:relative;aspect-ratio:3/2;overflow:hidden;background:#122b35;border:12px ridge #9b7851;border-radius:10px;isolation:isolate;touch-action:none;box-shadow:0 18px 35px #0005}.theatre-backdrop{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.theatre-light{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 30%,#e9c28200,#291b1644);pointer-events:none}.lighting-moon .theatre-light{background:#3874bc25}.lighting-rose .theatre-light{background:#e996bd25}.stage-piece{position:absolute;translate:-50% -50%;width:18%;height:24%;padding:0!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;touch-action:none;cursor:grab;min-height:0!important}.stage-piece:focus{outline:2px solid #e8cc85}.stage-piece svg,.stage-piece canvas{width:100%;height:100%;pointer-events:none;object-fit:contain}.stage-actor{width:23%;height:33%}.theatre-foreground{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 30px 7px #17162670}.foreground-curtain .theatre-foreground{border-inline:20px solid #673642;border-radius:0 0 30% 30%}.foreground-leaves .theatre-foreground{box-shadow:inset 0 18px 14px #224b3ee0,inset 18px 0 14px #224b3e99,inset -18px 0 14px #224b3e99}.theatre-reaction{position:absolute;bottom:6px;left:10px;right:10px;text-align:center;color:#fff0ce;text-shadow:0 2px 4px #000;background:#132b3270;border-radius:8px;pointer-events:none;font:15px Georgia}.craft-preview{min-height:260px;background:radial-gradient(#a9966b44,#142f2e);border:1px solid #9f8960;border-radius:14px;display:grid;place-items:center}.craft-preview svg{width:80%;max-height:330px}.workshop-creations{margin-top:25px;display:flex;flex-wrap:wrap;gap:14px}.workshop-creations h3{width:100%}.workshop-creations>div{width:145px;padding:12px;border:1px solid #887958;border-radius:10px;display:flex;flex-direction:column;font-size:13px}.workshop-creations svg{width:100%;height:100px}.living-lab-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.living-lab-grid section{padding:14px;border:1px solid #94805d;border-radius:10px}.living-lab-grid label{display:flex;flex-direction:column;margin:8px 0}.living-lab-grid input{width:100%}
@media(max-width:700px){.theatre-layout,.workshop-layout,.living-lab-grid{grid-template-columns:1fr}.mini-theatre{border-width:7px}.living-panel{padding:0}.theatre-settings fieldset{display:flex;flex-wrap:wrap;gap:8px}.theatre-settings fieldset label{font-size:13px}.living-restoration{padding:12px}.theatre-reaction{font-size:12px}.craft-preview{min-height:190px}}
@media(prefers-reduced-motion:reduce){.living-panel *{animation:none!important;transition:none!important}}
.economy-parameters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.economy-panel label{display:flex;flex-direction:column;gap:5px}.economy-panel form{margin:18px 0}.economy-panel details{padding:14px;border:1px solid #7b7458;border-radius:10px;margin:12px 0}.economy-panel input,.economy-panel select{max-width:100%;min-width:0}.economy-curves{width:100%;background:#102d31;border-radius:12px}.economy-table{overflow:auto;max-height:440px}.economy-table table{border-collapse:collapse;font-size:12px;width:100%}.economy-table td,.economy-table th{border-bottom:1px solid #66807866;padding:8px;text-align:left;white-space:nowrap}@media(max-width:700px){.economy-parameters{grid-template-columns:repeat(2,minmax(0,1fr))}}
.is-housing-review .review-object-search{margin:7px 0;font-size:12px}.is-housing-review .review-object-search summary{cursor:pointer}.is-housing-review .review-object-search .catalog-search{display:flex!important;gap:8px;align-items:end;margin:10px 0}.is-housing-review .review-object-search .catalog-search label{flex:1}.is-housing-review .review-object-search .shop-filters{position:static;float:none;display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.is-housing-review .review-object-search .shop-filters label{font-size:11px}.is-housing-review .review-object-search input{width:100%;min-height:38px}.is-housing-review .review-object-search .shop-filters select{max-width:170px}.is-housing-review .review-object-search:not([open]) .catalog-search{display:none!important}

.is-housing-review:not(.is-student) .lab-header{height:auto;min-height:58px;flex-wrap:wrap;padding:8px 18px}
.is-housing-review:not(.is-student) #room-navigation{display:none}
.is-housing-review .teacher-level-picker{display:flex;align-items:center;gap:8px;font-size:12px;color:#e9d6af;margin-left:auto;white-space:nowrap}
.is-housing-review .teacher-level-picker select{min-height:40px;min-width:78px;padding:6px 10px;border:1px solid #a58a51;border-radius:7px;font-size:16px}
@media(max-width:600px){.is-housing-review:not(.is-student) .lab-header{gap:9px;padding:8px 12px}.is-housing-review .teacher-level-picker{font-size:11px}.is-housing-review .teacher-level-picker select{min-width:68px}.is-housing-review:not(.is-student) .lab-header h1{font-size:22px}}

.is-housing-review.is-student.can-change-class .lab-header{height:auto;min-height:58px;flex-wrap:wrap;gap:8px;padding:8px 12px}
.is-housing-review #student-class-choice{font-size:13px;min-height:40px;padding:7px 12px;color:#f5e2bb;border-color:#a58a51;background:#17363a}
