/* B1 controls are scoped to the existing Treehouse; no other room styles. */
.treehouse-activities[hidden],.treehouse-activity[hidden],#treehouseQuietBar[hidden],.ola-treehouse-room [hidden]{display:none!important}
.treehouse-activities{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:9px 16px;background:#17231cee;color:#efdfc0}
.treehouse-activities>span{font:17px Georgia,serif;margin-right:auto}
.treehouse-activities button,.treehouse-lounge-entry,.treehouse-activity button,.treehouse-quiet-bar button{min-height:44px;border:1px solid #bdad8666;border-radius:20px;background:#1c3026eb;color:#fff0d4;padding:9px 14px;font:inherit;font-size:13px;cursor:pointer}
.treehouse-activities button[aria-expanded="true"]{border-color:#ffe0a0;background:#35513b}
.treehouse-lounge-entry{position:absolute;left:27%;top:53%;transform:translate(-50%,-50%);box-shadow:0 4px 20px #0007}
.treehouse-activity{position:fixed;z-index:5;right:3%;bottom:28px;box-sizing:border-box;width:min(540px,94%);max-height:calc(100vh - 190px);max-height:calc(100svh - 190px);overflow:auto;overscroll-behavior:contain;padding:22px;border:1px solid #c5b58b;border-radius:18px;background:#14251bfa;box-shadow:0 18px 70px #000b;color:#f4e7cc}
.treehouse-activity header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.treehouse-activity h3{font:25px/1.2 Georgia,serif;margin:0;color:#ffecd0}.treehouse-activity p,.treehouse-activity li{line-height:1.6;font-size:14px}.treehouse-activity ul{padding-left:22px}.treehouse-activity .small{font-size:12px;color:#bcd1bf}.treehouse-activity .toolbar{display:block;margin:16px 0}.treehouse-activity .nowplaying{margin-bottom:12px}.treehouse-activity .audio{align-items:flex-start}.treehouse-activity .audio>*,.treehouse-activity input{max-width:100%;box-sizing:border-box}.treehouse-activity #fileInput{display:block;font-size:13px;color:#f4e7cc}.treehouse-activity .filebutton[for="fileInput"]{display:none}.treehouse-activity .volume{min-height:44px;color:#f4e7cc}.treehouse-activity .volume input{height:30px}.treehouse-still-option{display:flex;gap:10px;align-items:center;min-height:44px;font-size:14px;line-height:1.5}.treehouse-still-option input{width:22px;height:22px;flex-shrink:0}.treehouse-activity .breath{max-width:170px;max-height:170px}.treehouse-activity .btnrow{flex-wrap:wrap}.treehouse-activity .small{line-height:1.6}
.ola-treehouse-room :is(.treehouse-activities button,.treehouse-lounge-entry,.treehouse-activity button,.treehouse-activity input,.treehouse-activity h3,.treehouse-quiet-bar button):focus-visible{outline:3px solid #ffe4a4;outline-offset:2px}
.treehouse-quiet-bar{position:fixed;z-index:6;right:12px;top:12px;display:flex;gap:7px;flex-wrap:wrap;max-width:calc(100% - 24px)}
#gardenRoomOverlay[data-treehouse-quiet]>.ola-room-top{display:none}
#gardenRoomOverlay[data-treehouse-quiet] .ola-room-panel{overflow:auto}
@media(max-width:700px){.treehouse-activities{padding:8px 12px;gap:5px}.treehouse-activities>span{width:100%;font-size:16px}.treehouse-activities button{font-size:12px;padding:8px 12px}.treehouse-activity{right:0;bottom:0;width:100%;max-height:75vh;max-height:75svh;border-radius:20px 20px 0 0;padding:18px 16px max(18px,env(safe-area-inset-bottom))}.treehouse-activity header>button{max-width:115px;font-size:12px}.treehouse-activity h3{font-size:23px}}
@media(prefers-reduced-motion:reduce){.ola-treehouse-room .breath{animation:none!important;transition:none!important;transform:none!important}}

/* B1.6 approved external sources, within the existing Watch/Breathe surfaces. */
.treehouse-source-list{list-style:none;margin:14px 0;padding:0!important;display:grid;gap:16px}
.treehouse-source-list>li+li,.treehouse-guided-source{border-top:1px solid #c5b58b55;padding-top:16px}
.treehouse-activity h4{font:600 18px/1.3 Georgia,serif;margin:0 0 7px;color:#ffecd0}
.treehouse-source-list p,.treehouse-guided-source p{margin:7px 0}
.treehouse-activity a[data-retreat-source]{display:inline-flex;align-items:center;box-sizing:border-box;min-height:44px;max-width:100%;padding:9px 14px;border:1px solid #bdad8688;border-radius:12px;background:#1c3026;color:#fff0d4;font-size:14px;line-height:1.4;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}
.treehouse-activity a[data-retreat-source]:is(:hover,:focus-visible){background:#35513b;outline:3px solid #ffe4a4;outline-offset:2px}

/* C1: scene entrances, compact activity reveal and one persistent shared player. */
.treehouse-activity-disclosure{position:absolute;z-index:3;left:16px;top:14px;max-width:calc(100% - 32px)}
#treehouseActivitiesToggle,.treehouse-view-entry{min-height:44px;padding:10px 16px;border:1px solid #dac29b99;border-radius:24px;background:#14251be8;color:#fff0d4;font:15px Georgia,serif;cursor:pointer;box-shadow:0 3px 20px #0005}
.treehouse-activity-disclosure .treehouse-activities{margin-top:8px;max-width:410px;border:1px solid #bdad8666;border-radius:14px;padding:12px;background:#14251bf5}
.treehouse-activity-disclosure .treehouse-activities>span{width:100%;font-size:15px}
.treehouse-view-entry{position:absolute;left:77%;top:25%;transform:translate(-50%,-50%)}
#treehouseActivitiesToggle:focus-visible,.treehouse-view-entry:focus-visible,.treehouse-audio-dock :is(button,input):focus-visible{outline:3px solid #ffe4a4;outline-offset:2px}
.treehouse-audio-dock{position:fixed;z-index:6;left:16px;bottom:14px;max-width:calc(100% - 32px);box-sizing:border-box;border:1px solid #c5b58b88;border-radius:16px;background:#14251bf5;padding:8px 12px;color:#fff0d4;box-shadow:0 5px 25px #0008}
.treehouse-audio-dock .toolbar{margin:0;gap:8px}.treehouse-audio-dock .audio{gap:6px}.treehouse-audio-dock .nowplaying{font-size:11px;color:#d4decf}.treehouse-audio-dock :is(button,label){min-height:44px;box-sizing:border-box}.treehouse-audio-dock :is(.filebutton,#fileInput){display:none}.treehouse-audio-dock .volume{color:#f4e7cc}.treehouse-audio-dock .volume input{height:32px}
.treehouse-audio-choices,.treehouse-inroom-visual{border-bottom:1px solid #c5b58b44;padding-bottom:12px;margin-bottom:12px}
.treehouse-activity{bottom:100px;max-height:calc(100svh - 200px);animation:treehouse-reveal .16s ease-out}
@keyframes treehouse-reveal{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(max-width:700px){
 .treehouse-activity-disclosure{left:12px;top:10px;max-width:calc(100% - 24px)}
 .treehouse-activity{bottom:100px;max-height:calc(100svh - 260px);border-radius:18px}
 .treehouse-audio-dock{left:8px;bottom:8px;max-width:calc(100% - 16px);width:calc(100% - 16px);padding:7px 10px}
 .treehouse-audio-dock .toolbar{display:block}.treehouse-audio-dock .nowplaying{margin-bottom:4px}.treehouse-audio-dock .play,.treehouse-audio-dock .stop{font-size:11px;padding:8px;min-width:0}.treehouse-audio-dock .volume{gap:4px;font-size:10px}.treehouse-audio-dock .volume input{width:65px}
}
@media(prefers-reduced-motion:reduce){.treehouse-activity{animation:none!important}}

#gardenRoomOverlay:has(#treehouseAudioDock:not([hidden])) #treehouseJournal{bottom:100px;max-height:calc(100svh - 200px)}
@media(max-width:700px){#gardenRoomOverlay:has(#treehouseAudioDock:not([hidden])) #treehouseJournal{max-height:calc(100svh - 270px)}}

/* Clearance follows actual wrapping player height, including 320px layouts. */
.treehouse-activity{bottom:var(--treehouse-player-clearance,28px);max-height:calc(100svh - var(--treehouse-player-clearance,28px) - 100px)}
#gardenRoomOverlay:has(#treehouseAudioDock:not([hidden])) #treehouseJournal{bottom:var(--treehouse-player-clearance,100px);max-height:calc(100svh - var(--treehouse-player-clearance,100px) - 100px)}
@media(max-width:700px){.treehouse-activity,#gardenRoomOverlay:has(#treehouseAudioDock:not([hidden])) #treehouseJournal{max-height:calc(100svh - var(--treehouse-player-clearance,28px) - 160px)}}
