/* A quiet secondary control shares the timer surface in the studio. */
#full-focus,#leave-focus,#quick-theme-play,.desk-zone button,.desk-notebook summary,.board-mood select {
 color:var(--fir);background:#f2f4e9;border:1px solid #bcc9b6;border-radius:10px;font:inherit;
}
#full-focus {display:flex;align-items:center;justify-content:center;gap:6px;min-height:39px;margin:.5rem auto 0;padding:4px 12px;font-weight:650;font-size:.86rem}
#full-focus svg,#leave-focus svg{width:16px;height:16px}
#full-clock #full-focus,#leave-focus[hidden],#keepsake-toast[hidden]{display:none}
#leave-focus{position:absolute;z-index:9;top:max(14px,env(safe-area-inset-top));left:max(14px,env(safe-area-inset-left));display:flex;align-items:center;gap:5px;min-height:44px;padding:0 11px;box-shadow:var(--key-shadow);font-weight:650}
#stage.full-focus :is(.scenefoot,.scenetop,.tarn-chat,.walk-panel,#hotspots,#private-desk-pin,#wall-pin,.walk-toggle,#character-caption,.rd-full-library,.home-view,[data-rose-view]){display:none!important}
#stage.full-focus .room-back-dock{display:flex;position:absolute;top:max(14px,env(safe-area-inset-top));left:max(146px,calc(env(safe-area-inset-left) + 143px));right:auto;transform:none;gap:5px}
#stage.full-focus .room-back-dock>.room-mute{display:grid;place-items:center;margin:0;width:44px;height:44px}
#stage.full-focus #stage-audio-toggle{position:static}
body.full-focus-room .layout>.side:not(:has(#radio-player:is([data-source="youtube"],[data-source="spotify"]):not([hidden]))){display:none!important}
#stage.full-focus #full-clock .timer-title button,#stage.full-focus #puzzle-open{display:none}
#radio-dock{position:relative}
#radio-dock:has(#quick-theme-play:not([hidden]))>.djcard{padding-inline-end:64px}
#radio-dock:has(#quick-theme-play:not([hidden]))>.djcard .soundbars{display:none}
#quick-theme-play{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:#385a47;color:white;border-color:#385a47;box-shadow:var(--key-shadow)}
#quick-theme-play svg{width:18px;height:18px}

.desk-zone{min-width:0;display:grid;gap:10px;padding:14px 16px;border:1px solid #d7d8c8;border-radius:14px;background:#fffcf5;color:#24292e}
.desk-zone h3,.desk-zone h3 label{display:flex;align-items:center;gap:8px;margin:0;font-size:1rem;color:var(--ink)}
.desk-zone h3 .menu-pixel{--pixel-size:24px;width:24px;height:24px}
.desk-zone textarea,.desk-zone input:not([type=checkbox]){box-sizing:border-box;width:100%;min-width:0;padding:9px 11px;border:1px solid #aeb9a7;border-radius:9px;background:#fffefa;color:#24292e;font:inherit}
.desk-zone textarea{font-family:"Room Playpen","Room Sans",sans-serif;line-height:1.6;resize:vertical}
.desk-zone button,.desk-notebook summary{padding:7px 11px;cursor:pointer}
.desk-zone .add-task{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
.desk-task-row{display:flex;justify-content:space-between;align-items:center;gap:5px;border-bottom:1px dashed #d4d9cc}
.desk-task-row label{display:flex;align-items:center;gap:8px;min-width:0;padding:5px 0;cursor:pointer;overflow-wrap:anywhere}
.desk-task-row label:has(:checked) span{text-decoration:line-through;color:#59645d}
.desk-task-row input{accent-color:var(--fir);width:19px;height:19px;flex:none}
.desk-task-row>button{width:40px;height:40px;flex:none;background:transparent;border:0;color:#66564d}
.desk-task-row:last-child{border:0}#desk-tasks:empty{display:none}
.shelf-zone{background:linear-gradient(180deg,#fff9e9,#f7e9d3);border-color:#d9c3a3}
#desk-shelf{display:flex;flex-wrap:wrap;align-items:end;gap:7px;padding:0 0 4px;border-bottom:4px solid #b58e68;box-shadow:0 2px 0 #edd6b8}
.desk-quiet{font-size:.9rem;color:#594b3d;margin:0;padding:3px 0 5px}
.keepsake{max-width:95px;min-width:50px;margin:0;display:grid;justify-items:center;gap:4px}.keepsake figcaption{font-size:.75rem;text-align:center}
#desk-shelf .menu-pixel,#keepsake-toast .menu-pixel{--pixel-size:38px;width:38px;height:38px;flex:none}
.previous-memories{display:grid;gap:4px}.previous-memories:empty{display:none}
.previous-memories button{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;background:#f5eee2;border-color:#dbcdb7}
.desk-notebook summary{font-weight:650;min-height:40px;align-content:center}.desk-notebook[open] summary{margin-bottom:9px}
#keepsake-toast{z-index:61;position:fixed;bottom:max(17px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:11px;max-width:min(350px,92vw);width:max-content;padding:11px 16px;background:#fff9eb;color:#302c28;border:1px solid #d9c5a7;border-radius:14px;box-shadow:0 6px 24px #332e2438;pointer-events:none}
#keepsake-toast span:not(.menu-pixel){min-width:0;display:grid;gap:3px}#keepsake-toast small{line-height:1.45}
.board-pins{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));align-items:start;gap:10px}
.board-note{margin:0!important;min-width:0;padding:12px 14px!important;border-radius:4px 9px 10px 5px;color:#332f31;box-shadow:0 2px 5px #493e2c16;overflow-wrap:anywhere}
.board-note small{font-weight:700}.board-note p{margin:5px 0 0;white-space:pre-wrap}
.board-mood{display:grid;position:relative;gap:6px;min-width:0;color:var(--ink);font-weight:650}
.field:has(>select){position:relative;min-width:0}
#panel .field>select{appearance:none;-webkit-appearance:none;box-sizing:border-box;min-width:0;max-width:100%;height:48px;padding-block:0;padding-inline:12px 42px;cursor:pointer}
.board-mood::after,.field:has(>select)::after{content:"";position:absolute;inset-inline-end:17px;bottom:20px;width:8px;height:8px;border:solid var(--fir);border-width:0 2px 2px 0;transform:rotate(45deg);pointer-events:none}
.board-mood select{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;height:48px;min-width:0;padding:0 42px 0 12px;border:1px solid #aeb9a7;border-radius:9px;background:#fffdf8;color:var(--ink);font:400 1rem/1.5 "Room Sans",sans-serif;cursor:pointer}
.board-mood select:focus-visible{outline:2px solid var(--fir);outline-offset:2px}
@media(forced-colors:active){.board-mood select,#panel .field>select{appearance:auto}.board-mood::after,.field:has(>select)::after{display:none}}
[data-moderation] .actions{margin-top:5px}
@keyframes keepsake-arrive{0%{opacity:0;scale:.88;translate:0 9px}65%{scale:1.05;translate:0 -2px}100%{opacity:1;scale:1;translate:0}}
@keyframes focus-start{from{box-shadow:0 0 0 4px #d9775760}to{box-shadow:0 0 0 0 transparent}}
@media(prefers-reduced-motion:no-preference){
 body:not([data-motion="false"]) .just-earned{animation:keepsake-arrive .58s cubic-bezier(.2,.69,.32,1) both}
 body:not([data-motion="false"]) #timer-card[data-state=running] #start{animation:focus-start .52s ease-out}
 body:not([data-motion="false"]) :is(.desk-zone button,.illustrated-choice,#start,#full-focus,#leave-focus){transition:translate .15s var(--spring),box-shadow .15s ease}
 body:not([data-motion="false"]) :is(.desk-zone button,.illustrated-choice,#start,#full-focus,#leave-focus):active{translate:0 2px}
}
@media(max-width:720px){
 body:not(.game-open) #stage[data-preview="true"]{height:clamp(164px,26svh,238px);min-height:0}
 body:not(.game-open) .layout>.side{gap:7px}
 body:not(.game-open) .side>#timer-card{order:-1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 8px;padding:10px 12px}
 body:not(.game-open) .side>#timer-card .cardhead{grid-area:1/1/2/3;margin:0}
 body:not(.game-open) .side>#timer-card .timer-title{grid-area:2/1;margin:0}
 body:not(.game-open) .side>#timer-card .timer-title h2{font-size:1.08rem}
 body:not(.game-open) .side>#timer-card .digits{grid-area:3/1;margin:0;font-size:clamp(38px,10vw,53px);line-height:1.1}
 body:not(.game-open) .side>#timer-card .roundline{grid-area:4/1;margin:0;font-size:.77rem}
 body:not(.game-open) .side>#timer-card .nextline{grid-area:5/1/6/3;margin:0;font-size:.77rem}
 body:not(.game-open) .side>#timer-card .timer-actions{grid-area:2/2/4/3;display:flex;gap:4px;margin:0}
 body:not(.game-open) .side>#timer-card .timer-actions button{min-height:44px;padding-inline:7px}
 body:not(.game-open) .side>#timer-card #full-focus{grid-area:4/2/6/3;justify-self:end;align-self:center;min-height:44px;margin:0}
 body:not(.game-open) .side>#timer-card .nextline{grid-area:5/1;line-height:1.3}
 .room-welcome{padding-block:5px}
 #leave-focus{top:max(7px,env(safe-area-inset-top));left:max(7px,env(safe-area-inset-left));font-size:.75rem;padding:0 7px}
 #stage.full-focus .room-back-dock{top:max(7px,env(safe-area-inset-top));left:max(107px,calc(env(safe-area-inset-left) + 102px))}
 #stage.full-focus #stage-audio-toggle{position:absolute;top:50px;left:0;min-width:44px}
 #stage.full-focus #stage-audio-toggle span{display:none}
 .desk-zone{padding:11px}
}
@media(max-width:380px) and (max-height:650px){body:not(.game-open) #stage[data-preview="true"]{height:140px}}

#stage.mobile-full:not(.full-focus) #full-clock #full-focus{display:inline-flex;grid-column:1/-1;justify-self:end;min-height:32px;font-size:.72rem;margin:3px 0 0;padding:3px 9px}
body.full-focus-room .side #radio-player:is([data-source="youtube"],[data-source="spotify"])>:not(#yt-mount):not(#spotify-mount){display:none}

@media(max-width:720px){
 .room-welcome #welcome-more{position:static;vertical-align:middle;margin:0 0 0 6px;min-height:36px}
 #room-welcome{padding:3px 32px 3px 10px}
 #room-welcome strong{font-size:.85rem}
 #mobile-room-entry{padding:0 5px 5px}
 #mobile-room-entry #enter-room-full{min-height:44px;padding:4px 12px;color:#294535;border-color:#b7c4a7;background:#fffdf3ef;box-shadow:0 2px 6px #393a2426;font-size:.8rem}
}
@media(max-width:380px) and (max-height:650px){
 body:not(.game-open) .side>#timer-card{gap:2px 6px;padding:6px 10px}
 body:not(.game-open) .side>#timer-card .cardhead{grid-area:1/2/2/3;justify-content:flex-end}
 body:not(.game-open) .side>#timer-card .cardhead>.kicker{display:none}
 body:not(.game-open) .side>#timer-card .timer-title{grid-area:1/1}
 body:not(.game-open) .side>#timer-card .digits{grid-area:2/1}
 body:not(.game-open) .side>#timer-card .roundline{grid-area:3/1}
 body:not(.game-open) .side>#timer-card .nextline{grid-area:4/1}
 body:not(.game-open) .side>#timer-card .timer-actions{grid-area:2/2}
 body:not(.game-open) .side>#timer-card #full-focus{grid-area:3/2/5/3}
}
@media(min-width:721px) and (max-height:760px){
 body:not(.game-open) .layout>.side{top:67px;bottom:8px;padding:3px 5px 8px;scrollbar-gutter:stable}
 .side #timer-card{padding:12px 14px}.side #timer-card .digits{font-size:clamp(43px,4.6vw,70px);line-height:1.08}
 .side #timer-card :is(.timer-title,.roundline,.nextline){margin-block:3px}
 .side #timer-card #full-focus{margin-top:4px}.side #timer-card .timer-actions{margin-top:6px}
}

@media(max-width:380px){
 .top{gap:5px}
 .top .brand{font-size:18px;gap:4px}
 .top .profile{max-width:90px;padding-inline:4px;gap:3px}
 .top .header-actions{flex:none}
 .top button[data-room-mute]{width:44px;min-width:44px}
}
@media(min-width:721px) and (max-height:760px){
 .side #timer-card{position:relative}
 .side #timer-card .cardhead{min-height:42px;justify-content:flex-end}
 .side #timer-card .cardhead .kicker{display:none}
 .side #timer-card #full-focus{position:absolute;top:8px;left:12px;min-height:44px;margin:0}
}

.layout > #mobile-room-entry{position:static;align-items:center;justify-content:center;padding:0;margin:6px 0;touch-action:manipulation}

#stop-alert{min-height:44px;padding:6px 12px;border:1px solid #b7c4a7;border-radius:10px;background:#fffdf4;color:#294535;font:inherit;justify-content:center;white-space:nowrap}
#stop-alert[hidden]{display:none}
dialog>#stop-alert{margin:8px auto}
.timer-actions:has(#stop-alert:not([hidden])){flex-wrap:wrap}
#timer-card[data-state="done"] .timer-actions:has(#stop-alert:not([hidden])) [data-do="reset"]{display:none}
@media(max-width:720px){
 body:not(.game-open) .side>#timer-card{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  padding:clamp(12px,3vw,20px);text-align:center
 }
 body:not(.game-open) .side>#timer-card .cardhead{order:0;align-self:stretch;justify-content:space-between;min-height:44px}
 body:not(.game-open) .side>#timer-card .cardhead>.kicker{display:inline-flex}
 body:not(.game-open) .side>#timer-card .timer-title{order:1;justify-content:center}
 body:not(.game-open) .side>#timer-card .digits{order:2;width:100%;text-align:center;font-size:clamp(42px,10vw,64px);line-height:1.1}
 body:not(.game-open) .side>#timer-card .timer-actions{order:3;align-self:stretch;flex-wrap:wrap;justify-content:center;gap:8px}
 body:not(.game-open) .side>#timer-card .timer-actions button{flex:0 1 auto;min-height:44px;padding-inline:12px}
 body:not(.game-open) .side>#timer-card .roundline{order:4;justify-content:center;gap:6px}
 body:not(.game-open) .side>#timer-card #rounddots:empty{display:none}
 body:not(.game-open) .side>#timer-card .nextline{order:5;max-width:100%;line-height:1.45}
 body:not(.game-open) .side>#timer-card #full-focus{order:6;position:static;align-self:center;margin:2px 0 0}
 body:not(.game-open) .side>#timer-card #skip{order:7}
 #full-clock .timer-actions:has(#stop-alert:not([hidden])){justify-content:center}
}
