:root{color-scheme:dark;--paper:#0c0d10;--surface:#1c1f25;--ink:#e8ebf1;--muted:#929aaa;--accent:#90adff;font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;width:100%;height:100%;overscroll-behavior:none}body{height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:var(--paper)}button,a,input,summary{font:inherit}button,a,summary{touch-action:manipulation}button,summary{cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button,a{color:inherit}button{border:0}a{text-decoration:none}[hidden]{display:none!important}
header{position:relative;z-index:10;flex:none;display:flex;align-items:center;justify-content:space-between;padding:calc(24px + env(safe-area-inset-top,0px)) 26px 16px}.brand{font-size:19px;font-weight:550;letter-spacing:.1px;white-space:nowrap}.brand-divider{font-size:13px;font-weight:400;color:#778191;margin:0 5px}.brand-en{font-size:16px;font-weight:500;letter-spacing:.3px}.brand-mark{display:none}.brand:after{content:"空间分享";display:block;margin-top:7px;color:var(--muted);font-size:10px;font-weight:400;letter-spacing:3px}
main{flex:1;min-height:0;position:relative;display:flex;flex-direction:column}.viewport{position:relative;isolation:isolate;flex:1;min-height:0;overflow:hidden;background:var(--paper)}.viewport canvas{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none;z-index:0}#status{position:absolute;top:16px;left:24px;right:24px;z-index:2;text-align:center;font-size:12px;color:var(--muted);pointer-events:none}#status:empty{display:none}
#reset{position:absolute;right:24px;bottom:30px;z-index:2;width:42px;height:42px;border-radius:50%;background:var(--surface);color:#b9c3d5;font-size:23px;font-weight:300}#timebar{position:absolute;z-index:2;bottom:24px;left:50%;transform:translateX(-50%);width:min(228px,calc(100% - 148px));padding:12px 10px 28px;border:0;background:transparent;color:var(--muted)}#timebar>span{display:none}#timebar input{display:block;appearance:none;-webkit-appearance:none;width:100%;height:4px;margin:8px 0;background:linear-gradient(90deg,#a7b5ce,#778eb9 50%,#415b94);border-radius:8px;touch-action:none;cursor:ew-resize}#timebar input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:19px;height:19px;border-radius:50%;background:#e4ebfb;border:2px solid #c4d2ed;box-shadow:0 0 0 5px #90adff12}#timebar input::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#e4ebfb;border:2px solid #c4d2ed}#timebar input:disabled{opacity:.35}.time-stop-labels{position:absolute;left:10px;right:10px;bottom:0;height:18px}.time-stop-labels button{position:absolute;transform:translateX(-50%);padding:4px 6px;border:0;background:none;white-space:nowrap;color:var(--muted);font-size:10px}.time-stop-labels button:hover{color:var(--ink)}
.app-dock{flex:none;width:100%;max-width:520px;align-self:center;padding:16px 26px calc(24px + env(safe-area-inset-bottom,0px))}.dock-actions{display:flex;justify-content:center}.dock-actions>:is(button,.mini-launch-host){display:flex;align-items:center;width:252px;max-width:100%;min-height:42px;padding:0 17px;border:1px solid #303642;border-radius:22px;background:#1a1f27;color:#d9e3f8;gap:10px}.dock-actions strong{font-size:12px;font-weight:500;white-space:nowrap}.dock-caption{margin-left:auto;font-size:10px;color:#a4afc3}.dock-actions svg{width:15px;height:15px;color:var(--accent)}.dock-actions>:is(button,.mini-launch-host):hover{background:#29313f}.dock-actions>:is(button,.mini-launch-host):active{transform:scale(.99)}.app-dock p{margin:13px 0 0;text-align:center;font-size:9px;letter-spacing:.5px;color:#7f899a}
.share-menu{position:relative}.share-menu>summary{display:grid;place-items:center;list-style:none;width:42px;height:42px;background:var(--surface);border-radius:50%;color:#b9c3d5}.share-menu summary::-webkit-details-marker{display:none}.share-menu>nav{position:absolute;right:0;top:54px;width:min(320px,calc(100vw - 48px));max-height:calc(100dvh - 180px);overflow:auto;overscroll-behavior:contain;padding:10px;border:1px solid #343942;border-radius:20px;background:#1a1d23f5;backdrop-filter:blur(20px);box-shadow:0 18px 50px #0005}.share-menu a{display:block;padding:14px 12px;border-radius:10px;font-size:13px}.share-menu a:hover{background:#ffffff08}.share-menu small{display:block;margin-top:5px;font-size:10px;color:var(--muted)}.share-menu a[aria-disabled=true]{opacity:.4;pointer-events:none}.menu-exports{border-top:1px solid #30353e;margin-top:4px;padding-top:4px}.scene-info>summary{display:flex;align-items:center;list-style:none;padding:14px 12px;font-size:13px;cursor:pointer}.scene-info>summary:after{content:"＋";margin-left:auto;color:var(--muted)}.scene-info[open]>summary:after{content:"−"}.scene-info-panel{padding:12px;background:#111318;border-radius:12px}.scene-info-panel h2{font-size:13px;font-weight:500;margin:0 0 8px}.scene-info-panel dl{display:grid;grid-template-columns:1fr 1.3fr;gap:0 15px;margin:0}.scene-info-panel dt,.scene-info-panel dd{margin:0;padding:10px 0;border-bottom:1px solid #282c33;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.scene-info-panel dt{color:var(--muted)}.scene-info-panel dd{text-align:right;color:#c4ccda}.export-note,.export-details{display:none!important}#results-download-error{font-size:12px;line-height:1.6;color:#d9bd98;padding:0 12px}
.launch-notice{width:min(360px,calc(100vw - 40px));padding:28px;background:#1a1d23;color:var(--ink);border:1px solid #343942;border-radius:24px}.launch-notice::backdrop{background:#0008;backdrop-filter:blur(8px)}.launch-notice h2{font-size:19px;font-weight:500;margin:0 0 16px}.launch-notice p{font-size:13px;line-height:1.9;color:#a6afbf}.launch-notice button{display:block;margin:24px 0 0 auto;padding:11px 23px;border-radius:22px;background:#90adff;color:#101522;font-size:13px}
.generation{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:var(--paper);padding:28px;overflow:auto}.generation-card{width:min(280px,100%);text-align:center}.generation h1{font-size:20px;font-weight:450;letter-spacing:2px;margin:26px 0 15px}.generation-message{font-size:12px;line-height:1.8;color:var(--muted);min-height:44px;margin:0 0 25px;overflow-wrap:anywhere}.generation-track{height:2px;border-radius:4px;background:#2b303a;overflow:hidden}.generation-track i{display:block;height:100%;width:0;background:var(--accent);transition:width .7s ease}.generation-percent{display:block;margin-top:13px;font-size:11px;color:#b0bed7;font-variant-numeric:tabular-nums}.generation small{display:block;margin-top:28px;font-size:10px;color:#778191}.generation-orb{width:40px;height:40px;border:1px solid #53627c;border-radius:12px;margin:auto;transform:rotate(30deg);box-shadow:0 0 36px #90adff12;animation:breathe 3s ease-in-out infinite}.generation.is-error .generation-orb{animation:none;opacity:.5}@keyframes breathe{50%{transform:translateY(-5px) rotate(45deg);border-color:#a4bdec;box-shadow:0 0 42px #90adff25}}
@media(min-width:700px){header{padding:30px 40px 12px}.app-dock{padding-bottom:24px}#reset{right:40px}.viewport{width:100%;max-width:1100px;align-self:center}}
@media(max-height:600px){header{padding-top:12px;padding-bottom:8px}.brand{font-size:19px}.brand:after{display:none}.app-dock{padding-top:8px;padding-bottom:12px}.app-dock p{display:none}.dock-actions>:is(button,.mini-launch-host){min-height:40px}#timebar{bottom:16px}#reset{bottom:22px}.generation-orb{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Opening composition. One quiet caption, floating controls, uninterrupted scene. */
header{position:relative;display:block;width:100%;max-width:720px;height:126px;min-height:126px;padding:0;align-self:center}
header .brand{position:absolute;top:calc(18px + env(safe-area-inset-top,0px));left:0;right:0;text-align:center;font-size:10px;font-weight:450;letter-spacing:.7px;color:#727b8b}
header .brand-en{font-size:10px;font-weight:450}header .brand-divider{font-size:9px;margin:0 4px}header .brand:after{display:none}
.space-heading{position:absolute;top:62px;left:78px;right:78px;text-align:center}
.space-heading h1{margin:0;font-size:18px;line-height:26px;font-weight:450;letter-spacing:2px;color:#d9dce3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.space-heading p{margin:7px 0 0;font-size:10px;line-height:16px;letter-spacing:1px;color:#7e8795}
.music-control{position:absolute;left:24px;top:64px}
header .share-menu{position:absolute;right:24px;top:64px}
#music-toggle,.share-menu>summary{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:#1c1f25;color:#a5afbe}
#music-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#music-toggle[data-state=playing]{color:#a8bfe9}#music-toggle[data-state=off]{opacity:.45}
#music-hint{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
main{width:100%;max-width:720px;align-self:center;flex:1;min-height:0;display:flex;flex-direction:column}
main>.viewport{flex:1;min-height:0;width:100%;position:relative}
main>#timebar{position:relative;flex:none;align-self:center;left:auto;top:auto;bottom:auto;transform:none;width:228px;max-width:calc(100% - 100px);height:50px;margin:8px 0 20px;padding:10px 10px 26px;background:none;border:0;box-shadow:none}
main>#timebar .time-stop-labels{left:10px;right:10px;bottom:0}
.space-story{flex:none;display:flex;flex-direction:column;align-items:center;width:100%;padding:0 24px;gap:14px}
#space-description{order:-1;margin:0;text-align:center;color:#b1b7bf;font-size:12px;line-height:1.8;letter-spacing:1.2px;max-height:3.6em;overflow:auto}
.author-line{display:flex;align-items:center;gap:7px;font-size:10px;color:#858f9e}
.author-avatar{display:grid;place-items:center;flex:none;width:23px;height:23px;border-radius:50%;overflow:hidden;background:#283029;color:#bac7bb;font-size:10px}
.author-avatar img{width:100%;height:100%;object-fit:cover}
.app-dock{padding-top:21px;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}.app-dock p{display:none}
.dock-actions>:is(button,.mini-launch-host){width:232px;min-height:40px;background:#191d24;border-color:#2c333e}.dock-caption{font-size:9px}
/* Loading has the same calm hierarchy as the finished scene. Details stay accessible. */
.generation-card{width:min(240px,85%);transform:translateY(-12px)}
.generation-orb{display:none}
.generation h1{margin:0 0 27px;font-size:17px;font-weight:400;letter-spacing:3px;color:#c5cad3;line-height:1.8}
.generation-track{width:96px;margin:auto;height:1px;background:#2b303a}.generation-track i{background:#9eb4d9}
.generation:not(.is-error):not(.is-reconnecting) .generation-message,.generation-percent,.generation small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}
.generation.is-error .generation-message,.generation.is-reconnecting .generation-message{position:static;width:auto;height:auto;clip-path:none;margin:0;font-size:12px;line-height:1.8}
.generation.is-reconnecting .generation-track{margin-top:20px}
@media(max-height:650px){header{height:98px;min-height:98px}header .brand{top:10px}.space-heading{top:39px}.music-control,header .share-menu{top:41px}.space-heading h1{font-size:16px}main>#timebar{margin:2px 0 9px;height:46px}.space-story{gap:7px}.app-dock{padding-top:12px;padding-bottom:12px}#space-description{font-size:11px}}

/* Keep the story together above the room; leave only the time rail below. */
header{height:202px;min-height:202px}
header>.space-story{position:absolute;top:128px;left:0;right:0;gap:11px;padding:0 24px}
header #space-description{font-size:11px;line-height:18px;letter-spacing:.8px}
header .author-avatar{width:21px;height:21px}
main>#timebar{margin-bottom:0}
@media(max-height:650px){header{height:162px;min-height:162px}header>.space-story{top:100px;gap:7px}header #space-description{font-size:10px;line-height:16px}}

.location-line{display:flex;align-items:center;justify-content:center;gap:4px}.location-line svg{width:12px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.music-sheet{width:min(420px,calc(100vw - 24px));max-height:min(580px,80dvh);padding:22px 20px 14px;border:1px solid #353b46;border-radius:25px;background:#191c22;color:#d3d9e4;overflow:hidden;box-shadow:0 20px 80px #0008}
.music-sheet::backdrop{background:#0007;backdrop-filter:blur(8px)}.music-sheet[open]{display:flex;flex-direction:column}.music-sheet-head{display:flex;justify-content:space-between;align-items:center;flex:none}.music-sheet h2{font-size:16px;letter-spacing:1px;font-weight:500;margin:0}.music-close{width:32px;height:32px;border-radius:50%;background:#262b34;font-size:22px;color:#a6b0c1}
.music-periods{display:flex;gap:8px;margin:18px 0 12px;flex:none}.music-periods button{padding:8px 20px;border-radius:20px;background:transparent;color:#8b96a7;font-size:12px}.music-periods button[aria-pressed=true]{background:#2b3444;color:#c1d2f5}
.music-list{overflow:auto;min-height:0;overscroll-behavior:contain;flex:1;scrollbar-width:thin;scrollbar-color:#394253 transparent}.music-list>button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:14px 12px;border-radius:12px;background:transparent;font-size:13px;font-weight:400;color:#aeb7c7;line-height:1.5}.music-list>button:hover{background:#242a35}.music-list>button[aria-pressed=true]{color:#b1c9fc;background:#242d3d}.music-list i{font-style:normal;color:#a4bff5}
.music-player{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:16px 0 0;margin-top:12px;border-top:1px solid #30353e;flex:none}.music-state{font-size:10px;color:#8b98ad;line-height:1.6;overflow-wrap:anywhere}.music-pause{flex:none;background:#2b3546;border-radius:20px;padding:10px 14px;font-size:11px;color:#c3d4f5}
@media(max-width:600px){.music-sheet{margin:auto auto 12px;padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))}}

/* Opening-page day/evening surfaces; the same sampled color paints WebGL and paper. */
:root[data-time=day],:root[data-time=evening]{color-scheme:light;--paper:#faf8f3;--surface:#ffffffd9;--ink:#343b39;--muted:#81877f;--accent:#7496e1}
:root[data-time=evening]{--paper:#ccc3d5;--ink:#494252;--muted:#796f85;--surface:#eee9f3dd}
:root:not([data-time=night]) header .brand{color:#949990}
:root:not([data-time=night]) .space-heading h1{color:#505850}
:root:not([data-time=night]) .space-heading p{color:#94998f}
:root:not([data-time=night]) #space-description{color:#838a7e}
:root:not([data-time=night]) .author-line{color:#8a9184}
:root:not([data-time=night]) #music-toggle,:root:not([data-time=night]) .share-menu>summary{background:var(--surface);color:#8a94a3}
:root:not([data-time=night]) #music-toggle[data-state=playing]{color:#7b9df8}
:root:not([data-time=night]) .dock-actions>:is(button,.mini-launch-host){background:#ffffffbd;border-color:#e4e7df;color:#56616e}
:root:not([data-time=night]) .dock-actions>:is(button,.mini-launch-host):hover{background:#fff}
:root:not([data-time=night]) .dock-caption{color:#929a9d}
:root:not([data-time=night]) .share-menu>nav,:root:not([data-time=night]) .music-sheet,:root:not([data-time=night]) .launch-notice{background:#fafbf8f5;border-color:#e4e7df;color:#535e61;box-shadow:0 16px 45px #29352514}
:root:not([data-time=night]) .share-menu a:hover{background:#e9edf280}
:root:not([data-time=night]) .scene-info-panel{background:#f0f2ed}
:root:not([data-time=night]) .scene-info-panel dt,:root:not([data-time=night]) .scene-info-panel dd{border-color:#e0e5dc}
:root:not([data-time=night]) .scene-info-panel dd{color:#535f57}
:root:not([data-time=night]) .menu-exports,:root:not([data-time=night]) .music-player{border-color:#e0e5dc}
:root:not([data-time=night]) .launch-notice p{color:#818a82}
:root:not([data-time=night]) .music-close{background:#eef1ec;color:#909a9d}
:root:not([data-time=night]) .music-periods button,:root:not([data-time=night]) .music-list>button{color:#7b8790}
:root:not([data-time=night]) .music-periods button[aria-pressed=true],:root:not([data-time=night]) .music-list>button[aria-pressed=true],:root:not([data-time=night]) .music-pause{background:#e8eef9;color:#6285ca}
:root:not([data-time=night]) .music-list>button:hover{background:#eef1f5}
:root:not([data-time=night]) .music-state{color:#8a959b}
:root:not([data-time=night]) .generation h1{color:#727d70}
:root:not([data-time=night]) .generation-track{background:#dfe4dc}
:root:not([data-time=night]) .generation-track i{background:#8da7d0}
:root[data-time=evening] .space-heading h1{color:#645b70}
:root[data-time=evening] .space-heading p,:root[data-time=evening] #space-description{color:#796f85}

/* Senbox identity is scoped to its source, including loading and error states. */
:root[data-brand=senbox]{--paper:#faf7e9;--ink:#24483a;--muted:#758570;--accent:#419765;--surface:#fffdf3e8;color-scheme:light}
:root[data-brand=senbox][data-time=evening]{--ink:#344c36;--muted:#6b7856;--surface:#f8f3dbe8}
:root[data-brand=senbox][data-time=night]{--ink:#edf2d9;--muted:#b4c7ae;--accent:#9ccc87;--surface:#244c40ed;color-scheme:dark}
:root[data-brand=senbox] header .brand{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--muted);font-size:10px;letter-spacing:2px}
:root[data-brand=senbox] .brand img{width:86px;height:auto;display:block}
:root[data-brand=senbox] .brand:after{display:none}
:root[data-brand=senbox] .senbox-tagline{font-size:9px;letter-spacing:2px}
:root[data-brand=senbox][data-time=night] .brand img{filter:drop-shadow(0 0 1px #fff);background:#faf7e9;padding:7px;border-radius:18px;width:94px}
:root[data-brand=senbox] .space-heading h1{color:var(--ink);font-weight:600;letter-spacing:2px}
:root[data-brand=senbox] .space-heading p,:root[data-brand=senbox] #space-description,:root[data-brand=senbox] .author-line{color:var(--muted)}
:root[data-brand=senbox] #music-toggle,:root[data-brand=senbox] .share-menu>summary{background:var(--surface);color:var(--accent);border:1px solid #63926922}
:root[data-brand=senbox] .dock-actions>:is(button,.mini-launch-host){width:280px;min-height:48px;background:#285c43;color:#fffbe7;border:1px solid #477352;border-radius:28px;box-shadow:0 5px 18px #285c4314}
:root[data-brand=senbox] .dock-actions>:is(button,.mini-launch-host):hover{background:#347650}
:root[data-brand=senbox] .dock-caption,:root[data-brand=senbox] .dock-actions svg{color:#d6e9bd}
:root[data-brand=senbox] #timebar input{background:linear-gradient(90deg,#e5bf64,#7ca77c 50%,#285c43)}
:root[data-brand=senbox] #timebar input::-webkit-slider-thumb{background:#fff9df;border-color:#70a177;box-shadow:0 0 0 5px #70a17718}
:root[data-brand=senbox] #timebar input::-moz-range-thumb{background:#fff9df;border-color:#70a177}
:root[data-brand=senbox] .generation-orb{display:none}
.senbox-loading-art{display:block;width:clamp(110px,23vh,205px);height:auto;margin:0 auto 20px;border-radius:32%;box-shadow:0 8px 36px #54734c10}
:root[data-brand=senbox] .generation-card h1{color:var(--ink)}
:root[data-brand=senbox] .generation-track i{background:linear-gradient(90deg,#f1aa18,#47ae68)}
:root[data-brand=senbox] .share-menu>nav,:root[data-brand=senbox] .music-sheet,:root[data-brand=senbox] .launch-notice{background:var(--paper);color:var(--ink);border-color:#74997844}
:root[data-brand=senbox] .music-pause{background:#285c43;color:#f8f5df}
@media(max-height:650px){.senbox-loading-art{width:95px;margin-bottom:10px}}
:root[data-brand=senbox] header{height:250px;min-height:250px}
:root[data-brand=senbox] header .brand{top:22px}
:root[data-brand=senbox] .space-heading{top:108px}
:root[data-brand=senbox] header>.space-story{top:177px}
@media(max-height:650px){:root[data-brand=senbox] header{height:204px;min-height:204px}:root[data-brand=senbox] header .brand{top:10px}:root[data-brand=senbox] .brand img{width:65px}:root[data-brand=senbox] .senbox-tagline{display:none}:root[data-brand=senbox] .space-heading{top:65px}:root[data-brand=senbox] header>.space-story{top:129px}}
/* Keep the expanded menu above later-positioned header metadata. */
header .share-menu{z-index:30}
.share-menu>nav{z-index:1;isolation:isolate;background:#1a1d23;backdrop-filter:none}
:root:not([data-time=night]) .share-menu>nav{background:#fafbf8}
:root[data-brand=senbox] .share-menu>nav{background:var(--paper);box-shadow:0 14px 40px #173d2926}
:root[data-brand=senbox] .scene-info-panel{background:var(--surface)}
:root[data-brand=senbox] .scene-info-panel dd{color:var(--ink)}
:root[data-brand=senbox] .share-menu>nav{width:min(232px,calc(100vw - 48px));padding:8px;border-radius:18px}
:root[data-brand=senbox] .share-menu a,:root[data-brand=senbox] .scene-info>summary{padding:12px 10px}

/* Loading stays above a rendered first frame, then dissolves into the room. */
.generation-card{animation:loader-arrive .55s ease-out both}
.generation .generation-orb{display:block;width:48px;height:48px;margin:0 auto 24px;border:1px solid var(--accent);border-radius:16px;background:linear-gradient(145deg,#ffffff60,#ffffff08);box-shadow:0 10px 30px #72897718;animation:loader-float 3.2s ease-in-out infinite}
.generation h1{color:var(--ink);font-size:17px;letter-spacing:2px;margin-bottom:15px}
.generation:not(.is-error):not(.is-reconnecting) .generation-message{position:static;width:auto;height:auto;clip-path:none;margin:0 0 22px;min-height:0;color:var(--muted);font-size:12px}
.generation-track{width:120px;height:3px;border-radius:99px;background:color-mix(in srgb,var(--muted) 18%,transparent)}
.generation-track i{min-width:12%;border-radius:99px;position:relative;overflow:hidden}
.generation-track i:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,#ffffff90,transparent);animation:loader-shimmer 1.8s ease-in-out infinite}
.senbox-loading-art{animation:loader-float 3.2s ease-in-out infinite;box-shadow:none}
.viewport.scene-revealed canvas{animation:scene-arrive .8s cubic-bezier(.22,1,.36,1) both}
.viewport.scene-revealed #timebar{animation:loader-arrive .7s .15s ease-out both}
.generation.is-error .senbox-loading-art,.generation.is-error .generation-orb{animation:none}
@keyframes loader-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes loader-shimmer{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
@keyframes loader-arrive{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}
@keyframes scene-arrive{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.generation-card,.generation .generation-orb,.senbox-loading-art,.generation-track i:after,.viewport.scene-revealed canvas,.viewport.scene-revealed #timebar{animation:none}.generation-track i{transition:none}}

/* Keep actual task progress readable, including percent-only responses. */
.generation .generation-percent{position:static;display:block;width:auto;height:auto;clip-path:none;margin:12px 0 0;color:var(--ink);font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}
.generation h1{font-weight:550;letter-spacing:.5px}

/* Animate activity without advancing the reported progress. */
.generation:not(.is-error) .generation-track{height:5px;overflow:hidden;isolation:isolate}
.generation:not(.is-error) .generation-track i{min-width:0;animation:progress-breathe 2.4s ease-in-out infinite}
.generation:not(.is-error) .generation-track i:after{animation:loader-shimmer 1.6s linear infinite}
.generation:not(.is-error) .generation-track:not([aria-valuenow]) i{width:32%!important;animation:progress-indeterminate 1.8s ease-in-out infinite}
@keyframes progress-breathe{0%,100%{opacity:1}50%{opacity:.65}}
@keyframes progress-indeterminate{0%{transform:translateX(-110%)}100%{transform:translateX(420%)}}
@media(prefers-reduced-motion:reduce){.generation:not(.is-error) .generation-track i,.generation:not(.is-error) .generation-track i:after{animation:none}}
/* Equal, independent destinations keep the room as the focus. */
.app-dock{max-width:520px;padding:16px 20px calc(18px + env(safe-area-inset-bottom,0px))}
.dock-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dock-actions>:is(button,.mini-launch-host),:root[data-brand=senbox] .dock-actions>:is(button,.mini-launch-host){width:100%;min-width:0;min-height:54px;padding:9px 13px;gap:6px;border-radius:18px;text-align:left}
.dock-label{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.dock-actions strong{font-size:12px;line-height:17px;letter-spacing:0;font-weight:500}
.dock-actions .dock-caption{margin:0;font-size:9px;line-height:13px;white-space:nowrap}
.dock-actions svg{flex:none;width:14px;height:14px}
.launch-notice{max-height:80dvh;overflow:auto}
.launch-notice-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:22px}
.launch-notice-actions button{margin:0;min-height:44px;padding:10px 17px}
.launch-notice .launch-copy{background:transparent;color:var(--ink);border:1px solid #8d9aaa44}
.launch-notice .launch-copy-status{margin:12px 0 0;font-size:12px}
.launch-copy-status:empty{display:none}
.mini-launch-host{position:relative;display:grid;min-width:0}
.mini-launch-host>button{width:100%;height:100%;margin:0}
.dock-actions>.mini-launch-host>button{display:flex;align-items:center;justify-content:center;padding:0;border:0;background:transparent;color:inherit;border-radius:inherit}
.mini-launch-host>wx-open-launch-weapp{position:absolute;inset:0;display:block;width:100%;height:100%;z-index:1;pointer-events:none;opacity:0;overflow:hidden;border-radius:inherit}
.mini-launch-host>wx-open-launch-weapp[data-ready=true]{pointer-events:auto}
@media(max-width:359px){.app-dock{padding-left:12px;padding-right:12px}.dock-actions{gap:7px}.dock-actions>:is(button,.mini-launch-host){padding:9px 10px}.dock-actions strong{font-size:11px}.dock-actions svg{width:12px}}
@media(max-height:650px){.app-dock{padding-top:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}}


/* Captions grow with their content; tags remain readable without covering 3D. */
header{height:auto;min-height:0;display:block;padding:0 24px 14px}
header .space-heading{position:relative;inset:auto;margin:54px 42px 0}
header>.space-story{position:relative;inset:auto;width:100%;padding:0;margin-top:14px;gap:9px}
header #space-description{max-width:100%;overflow-wrap:anywhere}
header .author-line{max-width:100%;overflow-wrap:anywhere}
header .author-avatar{flex:none}
.space-tags{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:5px;margin:0;padding:0;max-width:100%;max-height:52px;overflow:auto}
.space-tags li{font-size:10px;line-height:17px;padding:2px 9px;border:1px solid currentColor;border-radius:12px;color:var(--muted);overflow-wrap:anywhere;max-width:100%}
:root[data-brand=senbox] header{height:auto;min-height:0}
:root[data-brand=senbox] header .space-heading{top:auto;margin-top:108px}
:root[data-brand=senbox] header>.space-story{top:auto}
@media(max-height:650px){header .space-heading{margin-top:39px}header>.space-story{margin-top:10px;gap:6px}:root[data-brand=senbox] header .space-heading{margin-top:65px}}

/* Approved mini-program identity; compact header leaves scene metadata in place. */
:root:not([data-brand=senbox]) header .brand{display:flex;align-items:center;justify-content:center;gap:7px;line-height:22px}
:root:not([data-brand=senbox]) .senclub-brand-icon{display:block;width:22px;height:22px;flex:none;border-radius:5px}
:root:not([data-brand=senbox]) header .brand-en{margin-left:3px}
