/* Keep each light switch with the room it controls. */
#sanctuary-view[data-scene=auriela] :is(.hud38-room-lights,[data-mobile-action42b="room-lights"]){display:none!important}
.living-lamps147{position:fixed;bottom:max(14px,env(safe-area-inset-bottom));left:max(14px,env(safe-area-inset-left));z-index:80;min-height:44px;padding:10px 16px;border:1px solid #ad8a56;border-radius:6px;background:linear-gradient(135deg,#3c291cf5,#20160ff5);color:#ffedcf;font:15px Georgia,serif;box-shadow:0 3px 16px #0008;cursor:pointer}
.living-lamps147:focus-visible{outline:3px solid #ffe2b9;outline-offset:4px}
.living-lamps147[hidden],.living-shade147[hidden],.greenhouse-night147[hidden]{display:none!important}
.living-lamp-art147{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;z-index:4;pointer-events:none;mask-image:radial-gradient(ellipse 5.8% 14% at 27.3% 21%,#000 55%,transparent 100%),radial-gradient(ellipse 7.2% 16% at 41.5% 34%,#000 55%,transparent 100%)}
.living-lamp-art147[hidden],.living-lamp-status147[hidden],.dorm-framing147[hidden],.dorm-framing147 [hidden]{display:none!important}
.living-lamp-status147{position:fixed;bottom:66px;left:14px;max-width:280px;padding:10px;background:#25190fee;color:#ffe9cb;z-index:80;font:14px Georgia,serif}
.dorm-framing147{position:fixed;left:50%;bottom:max(var(--framing-bottom147,12px),env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:5px;max-width:calc(100vw - 16px);padding:4px 7px;border:1px solid #a58551;border-radius:6px;background:#281a11ed;color:#f8ead5;box-shadow:0 3px 16px #0007;z-index:55;font:13px Georgia,serif}
.dorm-framing147>span{padding:0 5px;white-space:nowrap}
.dorm-framing147>button{min-width:44px;min-height:44px;border:1px solid #947448;border-radius:4px;padding:5px 9px;background:#3c291c;color:#ffedcf;font:14px Georgia,serif;cursor:pointer;white-space:nowrap}
.dorm-framing147>button[data-pan-axis147]{font-size:26px;line-height:1}
.dorm-framing147>button:disabled{opacity:.35;cursor:default}
.dorm-framing147>button:focus-visible{outline:3px solid #ffe2b9;outline-offset:3px}
@media(max-width:360px){.dorm-framing147>span{display:none}.dorm-framing147>button{flex-shrink:0}}
.living-shade147{position:absolute;inset:0;z-index:5;pointer-events:none;background:#030303;opacity:.76;mask-image:radial-gradient(ellipse 18% 37% at 14% 52%,transparent 32%,#000 100%),radial-gradient(ellipse 8% 16% at 10% 14%,transparent 20%,#000 100%);mask-composite:intersect}
.greenhouse-night147{position:absolute;inset:0;z-index:2;pointer-events:none;overflow:hidden}
.greenhouse-shade147{position:absolute;inset:0;background:#030506;opacity:.58;mask-image:radial-gradient(ellipse 24% 64% at 49.6% 7.6%,transparent 2%,#000 100%),radial-gradient(ellipse 17% 25% at 54.9% 20.5%,transparent 10%,#000 100%);mask-composite:intersect}
.lamp-moth147{position:absolute;left:49.6%;top:8.5%;width:5px;height:2px;background:#9d865d;border-radius:50%;opacity:.76;transform-origin:center;animation:moth-orbit147 calc(6s + var(--i)*1.7s) linear infinite;animation-delay:calc(var(--i)*-2.1s)}
.lamp-moth147 b{position:absolute;top:-2px;left:0;width:3px;height:4px;border-radius:65% 65% 40% 40%;background:#dac49a;transform-origin:50% 100%;animation:moth-wings147 .13s ease-in-out infinite alternate}
.lamp-moth147 b+b{left:3px;animation-direction:alternate-reverse;background:#b8a580}
@keyframes moth-orbit147{0%{transform:translate(-28px,14px) rotate(25deg)}25%{transform:translate(32px,22px) rotate(135deg)}50%{transform:translate(18px,62px) rotate(220deg)}75%{transform:translate(-40px,40px) rotate(300deg)}100%{transform:translate(-28px,14px) rotate(385deg)}}
@keyframes moth-wings147{from{transform:scaleX(.22) rotate(-25deg)}to{transform:scaleX(1) rotate(25deg)}}
.greenhouse-night147[data-paused=true] .lamp-moth147,.greenhouse-night147[data-paused=true] .lamp-moth147 b{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.lamp-moth147{display:none}}
/* The same title is used by the Galilee and portable Bible readers. */
.creek-reading120[data-mode=bible]>#creek-reading-title120{color:#803f59!important}
/* Match the native bookcase photo's frame aperture and proportions exactly. */
.keepsake-photo129 .family-frame76{width:min(78vw,calc((100dvh - 240px)*.7403315));aspect-ratio:1072/1448}
.keepsake-photo129 .family-portrait76{inset:auto;left:17.8%;top:16.65%;width:65.3%;height:65.3%;object-fit:cover}
.keepsake-photo129 .family-surround76{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
/* Transparent scene targets retain a visible keyboard focus ring. */
#sanctuary-view#sanctuary-view[data-scene=cyber] :is(.sanctuary-hotspot,.sanctuary-window-target,.room-hub-resident-target,.play-target76):is(:hover,:focus-visible){background:transparent!important;box-shadow:none!important;filter:none!important;backdrop-filter:none!important}
#sanctuary-view#sanctuary-view[data-scene=cyber] :is(.sanctuary-hotspot,.sanctuary-window-target,.room-hub-resident-target,.play-target76)::before,#sanctuary-view#sanctuary-view[data-scene=cyber] :is(.sanctuary-hotspot,.sanctuary-window-target,.room-hub-resident-target,.play-target76)::after{background:transparent!important;box-shadow:none!important}
#sanctuary-view[data-cottage-activity144=true] [data-hotspot=bookshelf]{display:none!important}
#sanctuary-view#sanctuary-view[data-scene=cyber] :is(.sanctuary-hotspot,.sanctuary-window-target,.room-hub-resident-target,.play-target76):focus-visible{outline:2px solid #e4c3e9!important;outline-offset:3px}
/* One uniform scene plane fills the room. Native scrolling keeps edge objects reachable. */
#sanctuary-view#sanctuary-view[data-dorm-fill147=true] .sanctuary-frame{overflow:auto!important;scrollbar-width:none;overscroll-behavior:contain}
#sanctuary-view#sanctuary-view[data-dorm-fill147=true] .sanctuary-frame::-webkit-scrollbar{display:none}
#sanctuary-view#sanctuary-view[data-dorm-fill147=true] .sanctuary-room-viewport{position:relative!important;inset:auto!important;display:block!important;width:var(--dorm-width147)!important;height:var(--dorm-height147)!important;min-height:0!important;max-height:none!important;max-width:none!important}
#sanctuary-view#sanctuary-view[data-dorm-whole147=true] .sanctuary-room-viewport{position:relative!important;inset:auto!important;left:var(--dorm-whole-x147)!important;top:var(--dorm-whole-y147)!important;display:block!important;width:var(--dorm-whole-width147)!important;height:var(--dorm-whole-height147)!important;min-height:0!important;max-height:none!important;max-width:none!important}
@media(forced-colors:active){.living-lamps147{background:ButtonFace;color:ButtonText;border:1px solid ButtonText}.living-lamps147:focus-visible{outline-color:Highlight}}

/* Review correction: use the existing carved Cottage taskbar and button wells. */
#sanctuary-view#sanctuary-view[data-room-hub][data-hud-r38][data-hud-art-r39][data-scene=auriela] .room-hub-toolbar.cottage-native148{position:fixed!important;inset:0 0 auto!important;display:flex!important;align-items:center;justify-content:flex-start;gap:12px;width:100%!important;height:72px!important;max-width:none!important;padding:10px 76px!important;border-radius:0!important;z-index:100;background-color:var(--hud40-rail)!important;color:var(--hud38-ink);font-family:var(--hub-body);box-sizing:border-box}
#sanctuary-view#sanctuary-view .cottage-native148[hidden]{display:none!important}
#sanctuary-view#sanctuary-view #cottage-game-chrome144>.cottage-game-heading144{display:flex;flex:1;min-width:0;padding:0}
#sanctuary-view#sanctuary-view #cottage-game-chrome144>.cottage-game-heading144 strong{font:22px/1 var(--hub-heading);color:var(--hud38-ink)}
#sanctuary-view#sanctuary-view #cottage-game-chrome144>.cottage-game-heading144 span{font:14px/1 var(--hub-body);color:var(--hud38-muted)}
#sanctuary-view#sanctuary-view .cottage-native148>button{position:relative;inset:auto;flex:0 0 auto;min-height:44px;padding:7px 14px;font:20px/1.15 var(--hub-body);isolation:isolate}
#sanctuary-view#sanctuary-view #cottage-game-menu144{position:fixed;inset:80px 14px auto auto;width:min(340px,calc(100vw - 28px));height:auto;max-height:calc(100dvh - 96px);max-width:none;display:grid;gap:8px;z-index:110;overflow:auto;padding:16px}
#sanctuary-view#sanctuary-view #cottage-game-menu144[hidden]{display:none!important}
#sanctuary-view#sanctuary-view .living-lamps147{position:relative;inset:auto;z-index:auto;min-width:100px;font:20px var(--hub-body)}
#sanctuary-view#sanctuary-view .living-controls148>span{flex:1;font:24px var(--hub-heading)}
#sanctuary-view[data-cottage-activity144=true] :is(.cottage-visit-nav144,.house-nav79,.study-nav138){top:82px!important}
#sanctuary-view[data-cottage-activity144=true] .hallway-close78{top:82px!important}
/* The scene retains overflow for undistorted panning, without decorative rails. */
#auriela-hallway78,.house-visit112,#sanctuary-view[data-scene=auriela] .sanctuary-frame{scrollbar-width:none!important;overscroll-behavior:contain}
#auriela-hallway78::-webkit-scrollbar,.house-visit112::-webkit-scrollbar,#sanctuary-view[data-scene=auriela] .sanctuary-frame::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
/* Room framing belongs in the existing dorm options, with the native controls. */
#sanctuary-view#sanctuary-view .dorm-framing147{position:static;transform:none;display:flex;flex-wrap:wrap;max-width:none;padding:8px 0;margin-top:10px;border:0;border-top:1px solid var(--hud38-line);border-radius:0;background:none;box-shadow:none;color:var(--hud38-ink);font:18px var(--hub-body)}
#sanctuary-view#sanctuary-view .dorm-framing147>span{flex:1 0 100%;white-space:normal;padding:4px 0}
/* Lamplight off: retain bounced fire/candle light and the room's readable values.
   The registered non-emitting shades remain; no black curtain over the room. */
.living-shade147{background:#22170f;opacity:.24;mask-image:radial-gradient(ellipse 26% 50% at 14% 52%,transparent 25%,#000 100%),radial-gradient(ellipse 13% 28% at 10% 14%,transparent 15%,#000 100%)}
/* The painted greenhouse already carries a warm lamp pool and cool moonlight.
   Preserve that source lighting; the former global dark scrim is removed. */
.greenhouse-shade147{display:none!important}
@media(max-width:700px){#sanctuary-view#sanctuary-view[data-room-hub][data-hud-r38][data-hud-art-r39][data-scene=auriela] .room-hub-toolbar.cottage-native148{padding:10px 28px!important;gap:6px}#sanctuary-view#sanctuary-view #cottage-game-chrome144>.cottage-game-heading144 strong{font-size:17px}#sanctuary-view#sanctuary-view #cottage-game-chrome144>.cottage-game-heading144 span{display:none}#sanctuary-view#sanctuary-view .cottage-native148>button{font-size:17px;padding:6px 9px}#sanctuary-view#sanctuary-view .living-lamps147{min-width:78px}}
@media(max-width:440px){#sanctuary-view#sanctuary-view #cottage-game-chrome144>.cottage-game-heading144{display:none}#sanctuary-view#sanctuary-view #cottage-game-chrome144>button:first-of-type{margin-left:auto}}

#sanctuary-view[data-cottage-activity144=true] .house-nav87{top:82px!important}
#sanctuary-view[data-cottage-activity144=true] .house-nav87 .hallway-close78{top:auto!important}

/* r154: genuine alpha chest states replace the obsolete feathered background patch. */
.hallway-camera78>.chest-panel142{mask-image:none!important;mask-composite:add!important}
#sanctuary-view#sanctuary-view .living-lamps147{white-space:nowrap}

#auriela-hallway78:has(.living-controls148:not([hidden])) .house-nav87{top:82px!important}
#auriela-hallway78:has(.living-controls148:not([hidden])) .house-nav87 .hallway-close78{top:auto!important}

/* Native rail layout must never override the semantic hidden state. */
#sanctuary-view#sanctuary-view[data-room-hub][data-hud-r38][data-hud-art-r39][data-scene=auriela] .room-hub-toolbar.cottage-native148[hidden]{display:none!important}

#sanctuary-view#sanctuary-view .dorm-framing147[hidden]{display:none!important}

/* Keep the older .6px dorm and outdoor chroma layers out even when the newer
   finish is disabled by a user/OS preference. Other rooms keep their own finish. */
.auriela-registered148{filter:var(--auriela-native-filter118,opacity(1))!important;isolation:isolate}
body[data-auriela-registered148=true] :is(.dorm-grain93,.outdoor-grain114){display:none!important}

.auriela-registered148>.visit-art112{filter:none!important}

/* r149: allow complete native rail labels at narrow widths. */
#sanctuary-view#sanctuary-view#sanctuary-view[data-room-hub][data-hud-r38][data-hud-art-r39][data-scene=auriela] .room-hub-toolbar.cottage-native148>button{width:auto!important;min-width:max-content!important;max-width:none!important;flex:0 0 auto!important;overflow:visible!important;white-space:nowrap!important}
@media(max-width:440px){#sanctuary-view#sanctuary-view .living-controls148>span{display:none}#sanctuary-view#sanctuary-view .living-controls148{justify-content:flex-end!important}}

/* r160: stable first-paint greenhouse lighting, with the lamp pool preserved.
   Static CSS owns this grade; it never waits on moth or image-load observers. */
#house-visit112[data-kind=greenhouse] .visit-camera112::after{content:"";display:block!important;position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse 24% 48% at 49.6% 7.6%,rgba(145,124,91,.08) 0%,rgba(139,123,96,.36) 70%,rgba(126,112,88,.40) 100%);mix-blend-mode:multiply}

/* r161 item17: night glazing is registered to the existing stove garden panes.
   It neither changes source artwork nor the shared Auriela renderer. */
#auriela-hallway78[data-house-scene="stove"][data-house-night="true"] .hallway-camera78::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201536%20865%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22night%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20stop-color%3D%22%230b1828%22%20stop-opacity%3D%22.32%22%2F%3E%3Cstop%20offset%3D%22.55%22%20stop-color%3D%22%230a1420%22%20stop-opacity%3D%22.57%22%2F%3E%3Cstop%20offset%3D%22.82%22%20stop-color%3D%22%230b1620%22%20stop-opacity%3D%22.55%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%2314202b%22%20stop-opacity%3D%22.32%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22release%22%20x1%3D%220%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%221%22%3E%3Cstop%20offset%3D%22.72%22%20stop-color%3D%22white%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22white%22%20stop-opacity%3D%220%22%2F%3E%3C%2FlinearGradient%3E%3Cmask%20id%3D%22panes%22%3E%3Cpath%20fill%3D%22url(%23release)%22%20d%3D%22M937%20128L1099%20100L1099%20439L987%20439L977%20408L949%20390L937%20375Z%20M1149%2089L1370%2056L1397%20192L1397%20347L1365%20350L1340%20381L1313%20409L1288%20440L1149%20440Z%22%2F%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22url(%23night)%22%20mask%3D%22url(%23panes)%22%20d%3D%22M937%20128L1099%20100L1099%20439L937%20439Z%20M1149%2089L1370%2056L1397%20192L1397%20440L1149%20440Z%22%2F%3E%3C%2Fsvg%3E") center/100% 100% no-repeat;mix-blend-mode:multiply}

/* Pass 3 item 1: neutral shadows, protected warm lamp pool. */
#sanctuary-view #house-visit112[data-kind=greenhouse] .visit-camera112::after{background:radial-gradient(ellipse 30% 65% at 49.6% 7.6%,rgba(7,6,5,.04) 0%,rgba(5,5,5,.20) 48%,rgba(3,3,3,.36) 100%);mix-blend-mode:normal}
@layer ar-visual153 {
#sanctuary-view #house-visit112[data-kind=greenhouse] .visit-art112{filter:sepia(.16) saturate(.88) contrast(1.08) brightness(1.08)!important}
}

/* Pass 3 item 2: devote the mobile reader to the page, retain its floral artwork. */
@layer ar-world154 {
@media(max-width:700px),(max-height:400px) {
html body dialog.creek-reading120[data-mode=bible][open]{inset:6px!important;margin:auto!important;width:calc(100vw - 12px)!important;max-width:1050px!important;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;padding:24px 22px 18px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
html body dialog.creek-reading120[data-mode=bible][open]>#creek-reading-title120{height:52px!important;min-height:52px!important;max-width:calc(100% - 64px)!important;margin:0 auto 4px!important;padding:0 0 24px!important;font-size:22px!important;line-height:1.2!important;white-space:nowrap!important;flex:0 0 auto!important}
html body dialog.creek-reading120[data-mode=bible][open]>#creek-reading-title120::after{width:170px!important;height:22px!important}
html body dialog.creek-reading120[data-mode=bible][open]>.reading-close120{top:10px!important;right:12px!important;width:44px!important;height:44px!important;min-height:44px!important}
html body dialog.creek-reading120[data-mode=bible][open]>.reading-controls120{width:100%!important;min-width:0!important;flex:0 0 auto!important;flex-direction:row!important;flex-wrap:wrap!important;gap:4px 8px!important;margin:3px 0!important;padding:0!important;justify-content:center!important}
html body dialog.creek-reading120[data-mode=bible][open] .ornament-control126{height:44px!important;flex:0 0 calc(50% - 4px)!important;width:calc(50% - 4px)!important;max-width:calc(50% - 4px)!important}
html body dialog.creek-reading120[data-mode=bible][open] .ornament-control126>.bible-picker129{height:44px!important;min-height:44px!important;max-width:100%!important;padding:0 14px!important;font:16px/1.15 Georgia,serif!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body dialog.creek-reading120[data-mode=bible][open]>.reading-controls120>span:not(.ornament-control126){flex-basis:100%!important;font-size:12px!important;line-height:1.3!important;text-align:center!important}
html body dialog.creek-reading120[data-mode=bible][open]>.reading-page120{flex:1 1 auto!important;min-height:0!important;max-height:none!important;width:100%!important;padding:4px 2px!important;margin:4px 0!important;overflow:auto!important;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:none!important;font-size:18px!important;line-height:1.65!important}
html body dialog.creek-reading120[data-mode=bible][open]>.reading-page120::-webkit-scrollbar{display:none!important}
html body dialog.creek-reading120[data-mode=bible][open]>.reading-page120 h3{font-size:20px!important;margin:3px 0 12px!important}
html body dialog.creek-reading120[data-mode=bible][open]>.botanical-scroll128,html body dialog.creek-reading120[data-mode=bible][open]>.bible-doodle128{display:none!important}
html body dialog.creek-reading120[data-mode=bible][open] nav.reading-controls120>button{width:calc(50% - 4px)!important;max-width:calc(50% - 4px)!important;height:44px!important;min-height:44px!important;padding:0 18px!important}
html body dialog.creek-reading120[data-mode=journal]{scrollbar-width:none!important;overscroll-behavior:contain;touch-action:pan-x pan-y}
html body dialog.creek-reading120[data-mode=journal]::-webkit-scrollbar{display:none!important}
html body dialog.creek-reading120[data-mode=journal]>.reading-controls120{height:52px!important;min-height:52px!important;padding:4px 0!important;gap:8px!important}
html body dialog.creek-reading120[data-mode=journal] .journal-turn122{height:44px!important;min-height:44px!important}
}
@media(max-height:400px) and (min-width:701px){
html body dialog.creek-reading120[data-mode=bible][open]{padding:12px 24px!important}
html body dialog.creek-reading120[data-mode=bible][open]>#creek-reading-title120{height:34px!important;min-height:34px!important;font-size:19px!important;padding:0 0 12px!important}
html body dialog.creek-reading120[data-mode=bible][open]>#creek-reading-title120::after{height:12px!important;width:130px!important}
html body dialog.creek-reading120[data-mode=bible][open]>.reading-controls120>span:not(.ornament-control126){flex-basis:auto!important}
html body dialog.creek-reading120[data-mode=bible][open] .ornament-control126{flex:0 0 30%!important;width:30%!important;max-width:30%!important}
}
}
@layer ar-world154 {@media(max-width:700px),(max-height:400px){
html body dialog.creek-reading120[data-mode=journal]>.reading-controls120{position:sticky!important;left:0!important;bottom:0!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;flex-wrap:nowrap!important;justify-content:center!important}
html body dialog.creek-reading120[data-mode=journal] .journal-turn122{flex:1 1 0!important;width:calc(50% - 28px)!important;max-width:160px!important;min-width:0!important;padding:0 14px!important;font-size:20px!important}
html body dialog.creek-reading120[data-mode=journal]>.reading-controls120>span{flex:0 0 40px!important;font-size:17px!important;text-align:center!important}
}}
