.ambient-view[hidden]{display:none}
.ambient-view{position:absolute;inset:0;z-index:20;pointer-events:none;color:var(--ambient-ink);background:linear-gradient(180deg,#121a1b36,transparent 22%,transparent 66%,#17222166);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",sans-serif}
.ambient-view::before{content:"";position:absolute;inset:0;background:#101514;opacity:var(--ambient-cut,0);pointer-events:none}
.ambient-story{position:absolute;left:30px;right:34px;bottom:calc(max(24px,env(safe-area-inset-bottom)) + 158px);pointer-events:none}
.ambient-story-copy{max-width:270px;animation:ambient-story-reveal var(--story-duration,8s) both;text-shadow:0 1px 5px #101a1ac9,0 2px 16px #101a1a99}
.ambient-story-copy>span{display:block;font-size:10px;line-height:16px;letter-spacing:1.6px;opacity:.7}.ambient-story-copy>p{margin:7px 0 0;font-size:16px;font-weight:400;line-height:1.8;letter-spacing:.6px;text-wrap:pretty}
@keyframes ambient-story-reveal{0%,15%{opacity:0;transform:translateY(6px)}30%,78%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){.ambient-story-copy{animation:none}}
.ambient-view button,.ambient-view summary,.ambient-view a{pointer-events:auto}
.ambient-exit,.ambient-sound-toggle{position:absolute;top:max(18px,env(safe-area-inset-top));width:44px;min-height:44px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}
.ambient-exit{left:15px}.ambient-sound-toggle{right:15px}
.ambient-exit::before,.ambient-sound-toggle::before{content:"";position:absolute;inset:5px;border-radius:50%;border:1px solid var(--ambient-edge);background:var(--ambient-glass);box-shadow:var(--ambient-highlight);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.ambient-exit svg,.ambient-sound-toggle svg{position:relative;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.ambient-sound-toggle[aria-pressed=false]{opacity:.65}
.ambient-view .scene-time-board{position:absolute;inset:auto 20px max(24px,env(safe-area-inset-bottom));height:136px;display:block;margin:0;padding:0;border-radius:28px;border:1px solid var(--ambient-edge);color:inherit;background:var(--ambient-glass);box-shadow:var(--ambient-highlight),0 10px 32px #101c1c16;backdrop-filter:blur(26px) saturate(115%);-webkit-backdrop-filter:blur(26px) saturate(115%);text-shadow:none;pointer-events:none}
.ambient-caption{position:absolute;top:14px;left:20px;right:20px;height:23px;display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid #ffffff12;line-height:16px}
.ambient-place{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;letter-spacing:.35px;opacity:.8}.ambient-activity{flex:none;max-width:82px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:9px;opacity:.55;letter-spacing:.25px}
.ambient-view .scene-clock-group{position:absolute;top:47px;left:20px;display:flex;flex-direction:column;align-items:flex-start;gap:0}
.ambient-date{font-size:10px;line-height:15px;font-weight:450;letter-spacing:.35px;opacity:.73}
.ambient-view .scene-clock{font-family:inherit;font-size:46px;line-height:53px;font-weight:300;letter-spacing:-1.8px;font-variant-numeric:tabular-nums}
.ambient-view .scene-time-now{color:inherit;background:#ffffff16;font-size:10px}
.ambient-view .scene-weather{position:absolute;left:auto;right:18px;bottom:21px}
.ambient-view .scene-weather-summary{display:flex;align-items:center;gap:9px;min-height:53px;padding:2px;border-radius:14px;transition:background .18s}
.ambient-view .scene-weather-summary:active{background:#ffffff16}
.ambient-view .scene-weather-summary>span{display:flex;flex-direction:column;align-items:flex-start;gap:0}
.ambient-view .scene-weather-name{font-size:26px;line-height:30px;font-weight:400;letter-spacing:-.5px}.ambient-view .scene-weather-mood{font-size:10px;line-height:17px;letter-spacing:.4px;opacity:.72}
.ambient-view .scene-weather svg{width:25px;height:25px;color:inherit;stroke-width:1.1}
.ambient-view .scene-weather-info{display:none!important}
.phone.screensaver-active .home-top,.phone.screensaver-active .bottom-nav,.phone.screensaver-active .home-indicator,.phone.screensaver-active #timePanel,.phone.screensaver-active #roomNavigation,.phone.screensaver-active .presence-cue{visibility:hidden;pointer-events:none}
.phone.screensaver-active .space{position:absolute;inset:0;min-height:0;padding:0;margin:0}.phone.screensaver-active .space #viewport{position:absolute;inset:0;margin:0;touch-action:none}
.ambient-weather-sheet{box-sizing:border-box;position:fixed;inset:auto 0 max(14px,env(safe-area-inset-bottom));width:min(380px,calc(100vw - 28px));max-height:calc(100dvh - 80px);margin:0 auto;padding:10px 18px 17px;border:1px solid var(--ambient-edge,#ffffff29);border-radius:30px;color:var(--ambient-ink,#fffdf8);background:linear-gradient(135deg,#5e6969bd,#263637ce);box-shadow:inset 0 1px 0 #ffffff20,0 16px 60px #08131835;backdrop-filter:blur(28px) saturate(110%);-webkit-backdrop-filter:blur(28px) saturate(110%);font-family:-apple-system,BlinkMacSystemFont,sans-serif;animation:weather-reveal .24s cubic-bezier(.2,.7,.2,1)}
.ambient-weather-sheet::backdrop{background:#101c2326}
.weather-sheet-handle{width:30px;height:3px;margin:0 auto 14px;border-radius:9px;background:#ffffff4d}
.ambient-weather-sheet header{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px;padding:0 2px}.ambient-weather-sheet h2{margin:0;font-size:17px;font-weight:550;letter-spacing:.4px}.weather-sheet-location{margin:5px 0 0;font-size:11px;opacity:.6}
.ambient-weather-sheet button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}.weather-sheet-close{border:1px solid #ffffff12;border-radius:50%;background:#ffffff0c;width:32px;height:32px;padding:0;font-size:23px!important;line-height:1;font-weight:300!important}
.weather-live{display:flex;align-items:center;gap:12px;width:100%;min-height:57px;padding:9px 14px;border-radius:18px;border:1px solid #ffffff15;background:#ffffff06;text-align:left}.weather-live-mark{font-size:26px;opacity:.8}.weather-live strong{font-size:12px;font-weight:500}.weather-live small{display:block;margin-top:4px;font-size:10px;opacity:.6}.weather-choice-check{margin-left:auto;opacity:0;font-size:12px}
.weather-choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 15px}.weather-choice-grid button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;height:79px;border:1px solid #ffffff10;border-radius:18px;background:#ffffff05;font-size:11px;letter-spacing:.5px}.weather-choice-grid svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;opacity:.9}.weather-choice-grid .weather-choice-check{position:absolute;top:8px;right:9px}
.ambient-weather-sheet button[aria-pressed=true]{background:#ffffff1f;border-color:#ffffff54;box-shadow:inset 0 1px 0 #ffffff0c}.ambient-weather-sheet button[aria-pressed=true] .weather-choice-check{opacity:.9}.ambient-weather-sheet button:focus-visible{outline:2px solid #e3ecff;outline-offset:2px}
.ambient-weather-sheet footer{padding:0 2px;color:#ffffff8c;font-size:9px;line-height:16px}.weather-sheet-credits{margin-top:5px}.weather-sheet-credits summary{cursor:pointer;list-style:none}.weather-sheet-credits summary::-webkit-details-marker{display:none}.weather-data-credits{margin-top:8px;padding-top:8px;border-top:1px solid #ffffff14}.weather-data-credits a{color:inherit;margin-right:9px}.weather-data-credits .scene-weather-location{margin-bottom:0}
@keyframes weather-reveal{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:360px){.ambient-view .scene-time-board{left:16px;right:16px}.ambient-caption{left:17px;right:17px}.ambient-view .scene-clock-group{left:17px}.ambient-view .scene-clock{font-size:43px}.ambient-view .scene-weather{right:15px}.ambient-view .scene-weather-name{font-size:24px}.ambient-weather-sheet{padding-left:15px;padding-right:15px}}
@media(prefers-reduced-motion:reduce){.ambient-weather-sheet{animation:none}}
/* Share shell: the existing renderer expands in place during screensaver mode. */
.phone{--ambient-glass:linear-gradient(135deg,#78817b42,#27363170);--ambient-edge:#ffffff29;--ambient-highlight:inset 0 1px 0 #ffffff20;--ambient-ink:#fffdf8}
.share-toolbar{display:flex;flex:none;align-items:center;justify-content:center;gap:8px;padding:0 14px 8px}
.share-toolbar button{min-height:38px;border-radius:20px;padding:7px 13px;background:var(--surface);border:1px solid color-mix(in srgb,var(--muted) 20%,transparent);color:var(--ink);font-size:11px;white-space:nowrap}
.share-toolbar button[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}
.share-toolbar button:disabled{opacity:.5;cursor:default}
.share-toolbar .ambient-trigger{display:flex;align-items:center;justify-content:center;gap:7px;margin:0}
.ambient-trigger svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5}
.ambient-compact-time{font-variant-numeric:tabular-nums;font-size:10px;color:var(--muted)}
#experience-status{flex:none;font-size:10px;line-height:16px;text-align:center;color:var(--muted);margin:0 16px 6px;min-height:0}
#experience-status:empty{display:none}
main>#timebar{margin:0 0 10px;height:44px}
.app-dock{max-width:640px;padding:4px 20px calc(12px + env(safe-area-inset-bottom,0px))}
.app-dock .dock-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.app-dock .dock-actions>:is(button,.mini-launch-host),:root[data-brand=senbox] .app-dock .dock-actions>:is(button,.mini-launch-host){width:100%;min-height:54px;padding:8px 5px;border-radius:16px;text-align:center;justify-content:center}
.app-dock .dock-label{align-items:center;gap:4px}.app-dock .dock-actions strong{font-size:12px;line-height:17px;letter-spacing:0}.app-dock .dock-caption{font-size:9px;line-height:13px}
.download-sheet{width:min(380px,calc(100vw - 28px));padding:22px}
.download-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.download-sheet-head h2{margin:0;font-size:18px}
.download-sheet #download-close{flex:none;display:grid;place-items:center;width:34px;height:34px;min-height:34px;margin:0;padding:0;border-radius:50%;background:var(--surface);color:var(--muted);font-size:24px}
.download-sheet .download-intro{margin:0 0 14px;font-size:12px;color:var(--muted)}
.download-options{display:grid;gap:9px}.download-options>button,.download-options>a{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:5px;width:100%;min-height:62px;margin:0;padding:12px 15px;border:1px solid color-mix(in srgb,var(--muted) 25%,transparent);border-radius:15px;background:var(--surface);color:var(--ink);text-align:left}
.download-options strong{font-size:13px;font-weight:500}.download-options small{font-size:11px;color:var(--muted)}
.download-options button:disabled{opacity:.4;cursor:default}.download-options button[aria-busy=true]{color:var(--accent);font-size:13px}
.download-sheet #download-status{font-size:12px;line-height:1.7;color:var(--muted);margin:14px 0 0;overflow-wrap:anywhere}
#download-status:empty,#publish-status:empty{display:none}#download-status a{color:var(--accent);text-decoration:underline}
.publish-guide{margin-top:16px;font-size:12px;color:var(--muted)}.publish-guide summary{padding:5px 0;color:var(--accent)}.publish-guide p{margin:10px 0 0;font-size:12px;line-height:1.8}.download-sheet #copy-share{margin:12px 0 0;padding:0;min-height:32px;font-size:12px;background:none;color:var(--accent)}
@media(max-width:359px){.app-dock{padding-left:12px;padding-right:12px}.app-dock .dock-actions{gap:6px}.app-dock .dock-actions strong{font-size:11px}}
.ambient-weather-sheet header{width:100%;max-width:none;min-height:0;height:auto;position:static;align-self:auto}.ambient-weather-sheet footer{width:100%;margin:0}
.scene-weather>summary{list-style:none;cursor:pointer}.scene-weather summary::-webkit-details-marker{display:none}.scene-weather svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
.scene-weather-mood{display:block}.weather-symbol{display:flex}.scene-weather-info{display:none}.scene-weather-source{font-size:10px}
body.screensaver-active>header,body.screensaver-active>.app-dock,body.screensaver-active #timePanel,body.screensaver-active #timebar,body.screensaver-active #experience-status{visibility:hidden;pointer-events:none}
body.screensaver-active main{position:fixed;inset:0;max-width:none;width:100%;height:100%;z-index:30}
body.screensaver-active #viewport{position:absolute;inset:0;max-width:none;margin:0;width:100%;height:100%}
body.screensaver-active .ambient-view{position:fixed;z-index:40}
body.screensaver-active .presence-cue{visibility:hidden}
.ambient-view .scene-time-board{pointer-events:auto}
.ambient-view .scene-weather{margin:0}.ambient-view .scene-weather-summary{color:inherit}.ambient-view .scene-clock{color:inherit}
.presence-cue,.presence-target{position:absolute;z-index:4;pointer-events:none;white-space:nowrap;border-radius:12px;background:#fffffff0;color:#535a55;font-size:10px;line-height:18px;padding:5px 11px;box-shadow:0 3px 16px #18232812}
.presence-cue{opacity:0;transition:opacity .25s}.presence-cue.is-visible{opacity:1}.presence-cue svg,.presence-target svg{width:16px;height:16px;fill:none;stroke:currentColor;vertical-align:middle;margin-right:5px}.presence-target-check{margin-left:5px}.presence-zzz{margin-right:5px}
@media(max-height:650px){header>.space-story{margin-top:7px;gap:5px}header .space-heading{margin-top:35px}.app-dock{padding-bottom:8px}.app-dock .dock-actions>:is(button,.mini-launch-host){min-height:44px}.app-dock .dock-caption{display:none}.share-toolbar{padding-bottom:4px}.share-toolbar button{min-height:32px}main>#timebar{margin-bottom:6px}}
@media(max-height:460px){body:not(.screensaver-active){overflow-y:auto;height:auto;min-height:100dvh}body:not(.screensaver-active) main{flex:none;min-height:280px}body:not(.screensaver-active) #viewport{min-height:220px}}
@media(prefers-reduced-motion:reduce){.presence-cue{transition:none}.ambient-story-copy{animation:none}}

/* Original plaza cue and manual screensaver controls (v429). */
.presence-cue{position:absolute;z-index:4;pointer-events:none;transform:translate(-50%,-100%);display:flex;align-items:center;gap:4px;white-space:nowrap;border-radius:9px;padding:4px 8px;background:rgba(250,249,246,.88);border:1px solid rgba(255,255,255,.45);box-shadow:0 2px 8px #25312909;color:#686f69;font-size:10px;font-weight:400;line-height:15px;letter-spacing:.2px;opacity:0;transition:opacity .35s ease}
.presence-cue.is-visible{opacity:1}.presence-cue[hidden]{display:none}.presence-cue svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.25;stroke-linecap:round}.presence-zzz{font-size:11px;letter-spacing:.5px}
@media(prefers-reduced-motion:reduce){.presence-cue{transition:none}}
.presence-target{position:absolute;z-index:3;pointer-events:none;display:flex;align-items:center;gap:5px;padding:5px 9px 5px 5px;border:1px solid #fffffff0;border-radius:22px;background:rgba(250,252,247,.94);box-shadow:0 2px 12px #273b2b12;color:#657866;font-size:10px;line-height:17px;white-space:nowrap;opacity:0;transition:opacity .2s ease}
.presence-target.is-visible{opacity:1}.presence-target[hidden]{display:none}
.presence-target-symbol{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e7eee3;color:#738a6d}
.presence-target svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.presence-target-check{display:none}.presence-target.is-arrived .presence-target-check{display:inline;margin-left:2px;color:#81987c}
.phone.screensaver-active .presence-target{visibility:hidden}
@media(prefers-reduced-motion:reduce){.presence-target{transition:none}}
.ambient-resume{position:absolute;top:max(18px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);min-height:44px;padding:0 14px;display:flex;align-items:center;gap:5px;border:0;background:transparent;color:inherit;font:inherit;font-size:11px;letter-spacing:.3px;cursor:pointer}
.ambient-resume[hidden]{display:none}.ambient-resume::before{content:"";position:absolute;inset:5px 0;border:1px solid var(--ambient-edge);border-radius:999px;background:var(--ambient-glass);box-shadow:var(--ambient-highlight);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.ambient-resume svg,.ambient-resume span{position:relative}.ambient-resume svg{width:13px;height:13px;fill:currentColor;opacity:.85}

/* Share adaptation of plaza v429: a full canvas with floating UI. */
.phone{--scene-control-bg:#ffffff66;--scene-control-border:#59655112;--scene-control-ink:#536372;--scene-control-blur:6px;--scene-control-shadow:inset 0 1px 0 #ffffff38;--scene-ui-font:Inter,"PingFang SC","Microsoft YaHei",sans-serif;--ambient-glass:linear-gradient(135deg,#78817b42,#27363140);position:relative;font-family:var(--scene-ui-font)}
.phone[data-time=night]{--scene-control-bg:#22272966;--scene-control-border:#e0e8dc0b;--scene-control-ink:#bec9c3;--scene-control-shadow:inset 0 1px 0 #ffffff0d}
body.phone>header{position:absolute;top:0;left:50%;transform:translateX(-50%);width:100%;max-width:1100px;height:144px;min-height:0;padding:0 18px;pointer-events:none}
body.phone>header .brand{top:max(8px,env(safe-area-inset-top,0px));font-size:9px;opacity:.65}
body.phone>header .brand-en{font-size:9px}
body.phone>header .space-heading{position:absolute;top:40px;left:84px;right:84px;margin:0}
body.phone>header .space-heading h1{font-size:18px;line-height:26px;font-weight:500;letter-spacing:.6px;color:inherit}
body.phone>header .space-heading p{margin-top:5px;font-size:11px;line-height:16px;letter-spacing:0;color:var(--muted)}
body.phone>header>.space-story{position:static;margin:0;padding:0;gap:0}
body.phone>header .space-tags{position:absolute;top:118px;left:25px;right:25px;max-height:24px;pointer-events:auto}
body.phone>header:has(.space-tags:not([hidden])){min-height:148px}
body.phone>header #space-description{position:absolute;top:96px;left:25px;right:25px;margin:0;max-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:18px;letter-spacing:0;color:var(--muted)}
body.phone>header .author-line{position:absolute;right:18px;top:43px;max-width:78px;gap:5px;font-size:10px;line-height:16px;overflow:hidden;white-space:nowrap}
body.phone>header .author-avatar{width:28px;height:28px;flex:0 0 28px}
body.phone>header .author-line>span:last-child{overflow:hidden;text-overflow:ellipsis}
body.phone>header .scene-tags{position:absolute;top:120px;left:64px;right:64px;justify-content:center;pointer-events:auto}
body.phone>header .music-control{top:34px;left:14px;pointer-events:auto}
body.phone>header .music-control button{width:44px;height:44px;background:transparent;border:0;box-shadow:none;color:var(--scene-control-ink);position:relative}
body.phone>header .music-control button:before{content:"";position:absolute;inset:5px;border-radius:50%;background:var(--scene-control-bg);border:1px solid var(--scene-control-border);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.phone>header .music-control svg{position:relative;width:17px;height:17px}
body.phone main{width:100%;max-width:1100px;flex:1;min-height:0;isolation:isolate}
body.phone main>#viewport{position:absolute;inset:0;width:100%;max-width:none;height:100%;margin:0;min-height:0;background:transparent}
body.phone #viewport:focus{outline:none}
body.phone main>#timePanel{position:absolute;left:0;right:0;bottom:80px;z-index:5;margin:0;padding:0;pointer-events:none}
body.phone .share-toolbar .ambient-trigger{pointer-events:auto;min-height:36px;width:94px;padding:0;gap:10px;border:1px solid var(--scene-control-border);border-radius:999px;background:var(--scene-control-bg);box-shadow:var(--scene-control-shadow);color:var(--scene-control-ink);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.phone .ambient-compact-time{font-size:14px;line-height:20px;color:inherit}
body.phone main>#timebar{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);margin:0;width:228px;height:48px;max-width:calc(100% - 120px);padding:12px 10px 28px;z-index:5}
body.phone #timebar input{height:3px;border-radius:3px;background:linear-gradient(90deg,#ecdaba,#d39b68,#788de0);box-shadow:none}
body.phone #timebar input::-webkit-slider-thumb{width:20px;height:20px;background:linear-gradient(150deg,#fff,#edf2ff);border:1px solid #ffffffeb;box-shadow:0 2px 5px #5b617726}
body.phone #timebar input::-moz-range-thumb{width:18px;height:18px;background:linear-gradient(150deg,#fff,#edf2ff);border:1px solid #ffffffeb;box-shadow:0 2px 5px #5b617726}
body.phone .scene-actions{position:absolute;right:18px;bottom:142px;z-index:6;display:flex;flex-direction:column;gap:10px}
body.phone .scene-actions>button,body.phone .scene-actions .share-menu>summary{display:grid;place-items:center;width:44px;height:44px;padding:0;border-radius:50%;border:1px solid var(--scene-control-border);background:var(--scene-control-bg);box-shadow:var(--scene-control-shadow);color:var(--scene-control-ink);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.phone .scene-actions svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
body.phone .scene-actions button[aria-pressed=true]{color:var(--scene-control-ink)}
body.phone .scene-actions button[aria-busy=true]{opacity:.45;animation:resident-wait 1.2s ease-in-out infinite alternate}
body.phone .scene-actions button[data-state=unavailable]{color:#a46e59}
body.phone .scene-actions .share-menu{position:relative;inset:auto}
body.phone .scene-actions .share-menu nav{top:auto;bottom:48px;right:0}
body.phone #experience-status{position:absolute;bottom:118px;left:44px;right:68px;z-index:6;margin:0;font-size:10px;line-height:16px;pointer-events:none}
body.phone .app-dock{max-width:680px;padding-top:8px;position:relative;z-index:5}
body.phone .app-dock .dock-actions>:is(button,.mini-launch-host){background:var(--scene-control-bg);border-color:var(--scene-control-border);box-shadow:var(--scene-control-shadow);color:var(--scene-control-ink);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.phone .app-dock .dock-caption{color:inherit;opacity:.6}
body.phone[data-time=evening]{--muted:#897e72;--ink:#666056}
body.phone.screensaver-active .scene-actions{visibility:hidden;pointer-events:none}
body.phone.screensaver-active main>#viewport{position:absolute;inset:0;height:100%;width:100%}
@keyframes resident-wait{to{opacity:.8}}
@media(max-width:359px){body.phone>header .author-line{max-width:62px;font-size:9px}body.phone>header .space-heading{left:76px;right:76px}body.phone .scene-actions{right:12px}}
@media(max-height:650px){body.phone>header{height:130px}body.phone main>#timePanel{bottom:69px}body.phone main>#timebar{bottom:5px}body.phone .scene-actions{bottom:115px}body.phone #experience-status{bottom:106px}}
@media(prefers-reduced-motion:reduce){body.phone .scene-actions button[aria-busy=true]{animation:none}}

/* Same four icons and order as the mini-program plaza: roam, save, share, comment. */
body.phone .scene-actions{gap:10px}
body.phone .scene-actions>button{width:40px;height:40px}
body.phone .scene-actions>button:disabled{opacity:.5;cursor:default}
body.phone .scene-actions>button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.download-sheet{max-height:calc(100dvh - 36px);overflow:auto}
.community-entry{width:min(360px,calc(100vw - 36px));padding:22px;border-radius:24px}
.community-entry .download-sheet-head{margin-bottom:10px}.community-entry .download-sheet-head h2{font-size:18px;font-weight:500}
.community-entry #community-close{display:grid;place-items:center;flex:none;width:34px;height:34px;min-height:34px;margin:0;padding:0;border-radius:50%;background:var(--scene-control-bg);color:var(--muted);font-size:24px}
.community-entry .community-open{width:100%;margin-top:14px;font-size:13px}
.share-text{display:block;width:100%;min-height:100px;resize:vertical;box-sizing:border-box;border:1px solid var(--scene-control-border);border-radius:12px;padding:12px;background:var(--scene-control-bg);color:var(--ink);font:inherit;font-size:12px;line-height:1.6;word-break:break-all}
@media(max-height:740px){body.phone .scene-actions{right:14px;gap:8px}body.phone .scene-actions>button{width:36px;height:36px}}

/* One scene card, direct ZIP action and a compact direct GLB link. */
body.phone .app-dock .dock-actions>a,body.phone .app-dock .dock-download{display:flex;align-items:center;justify-content:center;min-width:0;min-height:54px;border:1px solid var(--scene-control-border);border-radius:16px;background:var(--scene-control-bg);box-shadow:var(--scene-control-shadow);color:var(--scene-control-ink);text-decoration:none;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.phone .app-dock .dock-download{position:relative;flex-direction:column;overflow:hidden}
body.phone .app-dock .dock-download>button{width:100%;margin:0;padding:8px 2px 2px;min-height:0;border:0;background:transparent;color:inherit;box-shadow:none;border-radius:0;font:inherit;font-size:12px}
body.phone .app-dock .dock-download>button:first-child{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px}
body.phone .app-dock .dock-download .dock-caption{display:block}
body.phone .app-dock .dock-download button:disabled{opacity:.35;cursor:default}
.download-feedback{position:absolute;bottom:100%;left:18px;right:18px;display:flex;align-items:center;justify-content:center;gap:8px;pointer-events:none;font-size:11px;line-height:17px}
.download-feedback p{margin:3px 0;padding:6px 10px;border-radius:10px;background:var(--bg,#f7f5f1);color:var(--ink);box-shadow:0 2px 12px #0000000a}
.download-feedback a,.download-feedback button{pointer-events:auto}.download-feedback button{font:inherit;padding:6px 10px;border:0;border-radius:10px;background:var(--surface);color:var(--ink)}
.launch-download{display:inline-flex;align-items:center;justify-content:center;padding:12px;border-radius:12px;background:var(--surface);color:var(--accent);font-size:13px;text-decoration:none}.launch-download[hidden]{display:none}
@media(max-width:420px){body.phone .app-dock .dock-actions>a .dock-caption{font-size:8px}}

.xhs-download-feedback{margin-top:14px;font-size:13px;line-height:1.7;color:var(--ink)}
.xhs-download-feedback p{margin:8px 0;overflow-wrap:anywhere}
.xhs-download-feedback button{margin:6px 8px 0 0;min-height:40px;padding:8px 12px}
.xhs-download-feedback [hidden]{display:none!important}

/* Scene-first share composition. Compact chrome, same symbols as the plaza. */
body.phone>header{height:148px;min-height:148px}
body.phone>header .brand{top:14px;left:16px;right:auto;display:flex;align-items:center;gap:6px;text-align:left;opacity:.88;font-size:10px;letter-spacing:.2px}
body.phone>header .brand img{width:22px;height:22px;border-radius:7px}
body.phone>header .space-heading{top:54px;left:65px;right:65px}
body.phone>header .space-heading h1{font-size:22px;line-height:29px;font-weight:550;letter-spacing:1px}
body.phone>header .space-heading p{font-size:11px;line-height:17px;margin-top:5px;letter-spacing:.4px}
body.phone>header #space-description{top:111px;left:38px;right:38px;font-size:10px;line-height:16px;letter-spacing:.7px;max-height:16px;overflow:hidden;opacity:.78}
body.phone>header .author-line{top:17px;right:17px;max-width:96px;gap:5px;font-size:10px}
body.phone>header .author-avatar{width:23px;height:23px}
body.phone>header #space-tags{top:134px;left:32px;right:32px;display:flex;justify-content:center;gap:15px;margin:0;padding:0;list-style:none}
body.phone>header #space-tags li{display:grid;place-items:center;width:18px;height:18px;padding:0;border:0;background:none;border-radius:0;opacity:.88}
body.phone #space-tags svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
body.phone>header .music-control{left:12px;top:62px}
body.phone .scene-actions{bottom:136px;right:16px;gap:12px}
body.phone .scene-actions>button{width:40px;height:40px;transition:transform .18s ease,background .18s ease}
body.phone .scene-actions>button:active{transform:scale(.92)}
body.phone .app-dock{padding:8px 18px calc(14px + env(safe-area-inset-bottom));max-width:580px}
body.phone .dock-actions{gap:9px}
body.phone .app-dock .dock-actions>:is(button,a,.mini-launch-host){min-height:50px;border-radius:17px;backdrop-filter:none;-webkit-backdrop-filter:none}
body.phone .app-dock .dock-actions strong{font-size:12px;font-weight:500}
body.phone .app-dock .dock-caption{font-size:9px}
body.phone .scene-actions button[aria-busy=true]{animation:none}
.share-roam{position:fixed;inset:0;z-index:22;pointer-events:none;color:#f9faf6}
.share-roam button{pointer-events:auto;border:1px solid #ffffff38;background:#58605c22;box-shadow:inset 0 1px 0 #ffffff32,0 3px 14px #14251c0c;color:inherit}
.roam-exit{position:absolute;left:18px;top:max(18px,env(safe-area-inset-top));width:42px;height:42px;padding:10px;border-radius:50%;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.roam-exit svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.share-roam .roam-stick{position:absolute;left:22px;bottom:calc(32px + env(safe-area-inset-bottom));width:90px;height:90px;border-radius:50%;touch-action:none;background:#ffffff08;opacity:.30;transition:opacity .18s,background .18s;outline-offset:5px}
.roam-stick::before{content:"";position:absolute;inset:15px;border:1px solid #ffffff42;border-radius:50%}
.roam-stick span{position:absolute;left:50%;top:50%;width:27px;height:27px;border-radius:50%;background:#ffffffe0;box-shadow:0 1px 7px #00000014;transform:translate(calc(-50% + var(--stick-x,0px)),calc(-50% + var(--stick-y,0px)))}
.share-roam .roam-stick[data-moving=true],.share-roam .roam-stick:focus-visible{opacity:.9;background:#ffffff17}
body.phone.roam-active>header,body.phone.roam-active .app-dock,body.phone.roam-active .scene-actions,body.phone.roam-active #timePanel,body.phone.roam-active #timebar{display:none!important}
body.phone.roam-active main{max-width:none}
body.phone.roam-active #viewport{touch-action:none}
@media(max-height:650px){body.phone>header{height:133px;min-height:133px}body.phone>header .space-heading{top:45px}body.phone>header #space-description{top:100px}body.phone>header #space-tags{top:121px}body.phone .app-dock{padding-bottom:8px}body.phone .scene-actions{bottom:113px}}
@media(prefers-reduced-motion:reduce){.roam-stick,body.phone .scene-actions>button{transition:none}}

body.phone:not([data-time=night]) #space-tags li{filter:brightness(.72)}
.share-roam .roam-exit{background:#25312955;color:#fff;border-color:#ffffff50}

/* Author and music share the same centre line and 44px target; never stretch the portrait. */
body.phone>header .author-line{top:62px;right:12px;width:44px;max-width:44px;height:44px;display:flex;align-items:center;justify-content:center;gap:0}
body.phone>header .author-avatar{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;min-width:34px;aspect-ratio:1;border-radius:50%;overflow:hidden}
body.phone>header .author-avatar img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;aspect-ratio:1}
body.phone>header #space-author{position:absolute;top:43px;left:-14px;width:72px;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:9px;line-height:13px;opacity:.72}
body.phone>header #music-toggle{width:44px;height:44px;min-height:44px}

/* The shared scene rail uses display:grid; retain the recovery button hidden state. */
body.phone .scene-actions>#resident-retry[hidden]{display:none}

/* Keep Senbox identity inside the shared header, clear of music and captions. */
:root[data-brand=senbox] body.phone>header{height:148px;min-height:148px}
:root[data-brand=senbox] body.phone>header .brand{top:14px;flex-direction:row;gap:7px}
:root[data-brand=senbox] body.phone>header .brand img{width:50px;height:30px;object-fit:contain;padding:3px;background:#faf7e9;border-radius:7px;filter:none}
:root[data-brand=senbox] body.phone>header .senbox-tagline{letter-spacing:1px}
:root[data-brand=senbox] body.phone>header .space-heading{top:54px;margin-top:0}
@media(max-height:650px){:root[data-brand=senbox] body.phone>header{height:133px;min-height:133px}:root[data-brand=senbox] body.phone>header .space-heading{top:45px}}
