
.audiowavebutton{display:flex;align-items:center;gap:6px;flex:1;min-width:44px;min-height:44px;background:none;color:white;padding:0 4px}.audiowavebutton .wave{flex:1}.audiowavebutton:focus-visible{outline:2px solid white;border-radius:10px}

.voiceinputrow{display:flex;align-items:center;gap:5px;min-height:48px}.voicecontrols{display:flex;align-items:center;gap:2px;flex:1;min-width:0}.voicecontrols .round{width:44px;height:44px;background:none}.voicecontrols .round .ic{width:19px;height:19px}.voicecontrols .deleteaudio .ic{width:20px;height:20px}.voicecontrols .wave{min-width:20px;gap:2px;height:32px;overflow:hidden}.voicecontrols .wave i{width:2px;flex-shrink:1;transform:scaleY(.6)}.voicecontrols time{font-size:11px;font-variant-numeric:tabular-nums;color:#ffffffb0;margin:0 3px}.voiceinputrow>.round{width:42px;height:44px;background:none}.voiceinputrow>.blue{height:42px;background:#078bff}.voiceinputrow>.addphoto{opacity:.4}

.attachments{margin:5px 5px 12px}.attachmentshead{font-size:13px;display:flex;justify-content:space-between;color:#ffffffbf;margin:0 0 9px}.thumbstrip{display:flex;gap:9px}.thumb{position:relative;flex:1;height:88px;min-width:0}.thumb>img{width:100%;height:100%;object-fit:cover;object-position:top;border-radius:12px}.thumb>span{position:absolute;bottom:5px;left:5px;border-radius:7px;background:#10152299;padding:2px 5px;font-size:11px}.thumb>button{position:absolute;right:0;top:0;background:#162032a0;color:white;width:29px;height:29px;border-radius:50%;display:grid;place-items:center;padding:0}.thumb button .ic{width:15px;height:15px}

*{box-sizing:border-box}body{margin:0;background:#ebecee;color:#172022;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;-webkit-font-smoothing:antialiased}button{font:inherit;border:0;color:inherit;cursor:default}nav.boardnav{display:flex;gap:8px;padding:18px 38px;background:#ffffffb0;position:sticky;top:0;z-index:10;backdrop-filter:blur(15px)}nav.boardnav a{text-decoration:none;color:#334050;padding:8px 14px;border-radius:20px;background:white;font-size:13px}.board{width:1440px;margin:0 auto;padding:36px 58px 32px;min-height:960px}.boardheader{display:flex;align-items:end;justify-content:space-between;margin-bottom:30px}.kicker{font-size:12px;font-weight:700;letter-spacing:2px;color:#7c8795;margin-bottom:10px}.boardheader h1{font-size:32px;letter-spacing:-.8px;font-weight:650;margin:0}.boardheader p{color:#717985;font-size:14px;line-height:1.7;text-align:right;margin:0}.grid{display:grid;grid-template-columns:repeat(4,300px);gap:40px}.phone{width:300px;height:641.04px;border-radius:39px;background:#18191c;padding:4px;box-shadow:0 0 0 1px #95989f,0 16px 30px #1b28311b;overflow:hidden;position:relative}.screen{position:absolute;inset:4px;width:393px;height:852px;transform:scale(.743);transform-origin:top left;overflow:hidden;border-radius:46px;background:#2b2b37;color:white}.scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:32% center}.scrim{position:absolute;inset:0;background:linear-gradient(#0002,transparent 25%,transparent 60%,#0c0c172a)}.status{position:absolute;top:0;left:0;right:0;height:59px;display:flex;align-items:center;justify-content:space-between;padding:0 28px 0 33px;font-size:16px}.island{position:absolute;top:11px;left:50%;transform:translateX(-50%);width:116px;height:32px;background:#040407;border-radius:24px}.right{display:flex;align-items:center;gap:7px}.signal{width:22px;height:20px;display:flex}.signal .ic{width:22px;height:20px;background:linear-gradient(to right,#fff 25%,#ffffff45 25%)}.battery{height:14px;width:27px;border-radius:4px;background:#ffffff40;position:relative;display:block;overflow:visible}.battery:after{content:'';position:absolute;right:-3px;top:4px;width:2px;height:5px;border-radius:2px;background:#ffffff70}.battery em{display:block;height:14px;width:5.4px;border-radius:4px 0 0 4px;background:#ff554b}.ic{display:inline-block;width:24px;height:24px;background:currentColor;mask:var(--icon) center/contain no-repeat;-webkit-mask:var(--icon) center/contain no-repeat;flex-shrink:0;vertical-align:middle}.round{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:50%;background:#ffffff13;padding:0}.round.blue{background:#008aff;color:white}.round.red{background:#ff4d52}.round.red .ic{width:23px;height:23px}.bottom{position:absolute;bottom:20px;left:16px;right:16px;display:grid;gap:10px}.glass{background:linear-gradient(130deg,#edf0f733,#b8bed027 70%,#ffffff2b);border:1px solid #ffffff42;box-shadow:inset 0 1px 1px #ffffff42,0 5px 20px #06091b19;backdrop-filter:blur(22px) saturate(1.3);-webkit-backdrop-filter:blur(22px) saturate(1.3);color:white}.composer{border-radius:29px;padding:7px}.inputrow{display:flex;gap:7px;align-items:center;min-height:44px}.inputtext{font-size:16px;line-height:23px;flex:1;min-width:0;padding:2px 0}.placeholder{color:#ffffffe0}.inputrow .round{background:none}.inputrow .blue{background:#078bff}.attachment{display:flex;align-items:center;gap:10px;margin:4px 5px 9px;padding-bottom:10px;border-bottom:1px solid #ffffff20;font-size:14px}.attachment img{width:57px;height:64px;object-fit:cover;border-radius:10px;object-position:top}.attachment small{display:block;font-size:12px;opacity:.65;margin-top:5px}.attachment>.round{margin-left:auto}.above-keyboard{bottom:293px}.keyboard{position:absolute;bottom:0;left:0;right:0;background:#d6d8dfed;height:280px;padding:6px 5px 14px;backdrop-filter:blur(20px);color:#17191f}.suggest{text-align:center;height:36px;line-height:30px;font-size:18px;border-bottom:1px solid #7772;margin-bottom:8px}.keys{display:flex;gap:5px;justify-content:center;margin-bottom:11px}.keys span{background:#fff;box-shadow:0 1px 1px #7775;flex:1;text-align:center;font-size:21px;line-height:39px;border-radius:6px}.keys:nth-of-type(3){padding:0 17px}.finalkeys span{font-size:15px}.finalkeys span:nth-child(2){flex:3}.record{padding:16px;border-radius:28px}.recordtitle{font-size:15px;display:flex;align-items:center;gap:7px}.recordtitle time{margin-left:auto;font-variant-numeric:tabular-nums}.red-dot{width:7px;height:7px;border-radius:50%;background:#ff575d}.recordcontrols{display:flex;align-items:center;gap:12px;margin:14px 0}.wave{display:flex;gap:4px;align-items:center;justify-content:center;flex:1;height:45px;color:#fff}.wave i{display:block;width:3px;background:currentColor;border-radius:3px}.record>small{display:block;text-align:center;font-size:12px;opacity:.7}.review{border-radius:29px;padding:17px}.reviewhead{display:flex;align-items:center;justify-content:space-between;font-size:17px;font-weight:600}.reviewhead small{font-size:13px;font-weight:400;opacity:.7}.audio{display:flex;gap:14px;align-items:center;margin:14px 0}.transcript{padding:13px;background:#10152724;border-radius:14px;font-size:17px;line-height:1.5}.transcript span{display:block;font-size:12px;opacity:.6;margin-top:7px}.reviewactions{display:flex;justify-content:space-between;align-items:center;margin-top:14px}.textbutton{background:none;font-size:14px;color:#fff}.sendbutton{border-radius:23px;background:#058aff;padding:10px 16px;font-size:15px}.sendbutton .ic{width:20px;height:20px;margin-left:5px}.lastmessage{background:#008affd9;justify-self:end;max-width:92%;padding:11px 14px;font-size:15px;border-radius:19px 19px 5px 19px;margin-bottom:2px}.task{display:flex;align-items:center;gap:10px;border-radius:22px;padding:8px 10px 8px 15px;min-height:55px}.task>div{flex:1}.task strong{font-size:14px;font-weight:500}.task small{display:block;font-size:12px;opacity:.72;margin-top:4px}.task .round{width:33px;height:33px}.task .ic{width:19px;height:19px}.spinner{width:16px;height:16px;border-radius:50%;border:2px solid #ffffff35;border-top-color:white;flex-shrink:0}.draftlabel{font-size:12px;color:#ffffffad;margin:0 10px -2px}.playingtools{position:absolute;right:16px;top:72px;border-radius:24px;display:flex;align-items:center;gap:11px;padding:5px 7px 5px 13px}.playingtools>.ic{width:21px;height:21px}.playingtools>.round{width:31px;height:31px}.playingtools .round .ic{width:18px;height:18px}.subtitle{text-align:center;font-size:20px;line-height:1.5;font-weight:500;text-shadow:0 2px 6px #000,0 0 20px #0008;margin:0 0 13px}.replayhint{border-radius:22px;justify-self:start;font-size:13px;padding:9px 13px}.replayhint .ic{width:18px;height:18px;margin-right:5px}.history{padding:15px;border-radius:28px}.historyrow{display:flex;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #ffffff20}.historyrow>img{width:51px;height:62px;border-radius:10px;object-fit:cover;object-position:top}.historyrow>div{flex:1;font-size:14px;line-height:1.4}.historyrow small{display:block;font-size:12px;opacity:.6;margin-top:6px}.historyrow .round{width:32px;height:32px}.historyrow .ic{width:20px;height:20px}.history p{font-size:12px;text-align:center;opacity:.65;margin:13px 0 0}.feedback{border-radius:28px;padding:20px 16px 12px;text-align:center}.feedback b{font-size:19px;font-weight:600}.feedback p{font-size:14px;line-height:1.6;opacity:.8;margin:10px 0 17px}.wide{display:block;width:100%;min-height:46px;border-radius:17px;margin:8px 0 0;background:#ffffff13;color:#fff;font-size:16px}.wide.primary{background:#008aff}.wide.destructive{background:#ff554523;color:#ffd8d4}.caption{margin-top:23px}.caption h2{font-size:18px;font-weight:600;margin:0 0 8px;letter-spacing:-.3px}.caption h2 span{color:#7d8792;font-size:12px;font-weight:500;margin-right:8px}.caption p{font-size:13px;line-height:1.6;color:#747d89;margin:0}.boardfooter{border-top:1px solid #cbd0d6;margin-top:25px;padding-top:13px;display:flex;justify-content:space-between;color:#858b94;font-size:11px;letter-spacing:.2px}body.export .boardnav{display:none}body.export .board{margin:0;zoom:1.5}.hidden{display:none!important}

/* FINAL-R5: shared deletion control, spacious composer, faint placeholder. */
.composer{padding:9px}.inputrow,.voiceinputrow{min-height:64px}.inputtext{padding:10px 0}.placeholder{color:rgba(255,255,255,.26)}.inputrow>button:disabled{opacity:.4}.attachments{margin:7px 9px 8px}.attachmentshead{margin-bottom:25px}.thumbstrip{gap:12px}.voicecontrols{min-height:64px}.audiowavebutton{min-height:64px}.record .recordcontrols{min-height:64px}
button.remove-control,.thumb>button.remove-control,.voicecontrols button.remove-control{position:relative;width:44px;height:44px;min-width:44px;padding:0;border:0;background:transparent;color:#fff;display:grid;place-items:center;isolation:isolate;border-radius:50%;flex-shrink:0}
button.remove-control:before{content:'';position:absolute;inset:6px;border-radius:50%;background:rgba(255,255,255,.09);box-shadow:inset 0 0 0 1px #ffffff2b,inset 0 1px 1px #ffffff24,0 2px 6px #1113200d;z-index:-1;backdrop-filter:blur(14px) saturate(1.25);-webkit-backdrop-filter:blur(14px) saturate(1.25)}
button.remove-control .ic,.thumb button.remove-control .ic,.voicecontrols button.remove-control .ic{width:14px;height:14px;opacity:.78}
.thumb>button.remove-control{position:absolute;right:0;top:0;z-index:2}
#board-1{width:1100px}#board-1 .grid{grid-template-columns:repeat(3,300px);row-gap:32px}#board-1 .boardheader p{max-width:300px}

/* Shared vertical rhythm for every image and recording panel. */
.composer:has(>.attachments){padding-top:22px}.attachments{margin:0 9px 8px}.attachmentshead{line-height:20px;margin-bottom:12px}.record{padding-top:22px}.record>.attachments{margin:0 2px 24px}.recordtitle{line-height:20px}.recordcontrols{margin:12px 0 14px}
.voicecontrols{justify-content:center;gap:0}.audiowavebutton{flex:0 1 136px;gap:8px;padding:0;min-width:44px}.voicecontrols time{margin:0}.voicecontrols .wave{gap:3px}
/* Runtime layout: FINAL-R5 geometry, native keyboard, no simulated home indicator. */
:root{--viewport-height:100dvh;--keyboard:0px}html,body{height:100%;overflow:hidden;overscroll-behavior:none}body{display:grid;place-items:center;background:#20212a}button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:default}button:focus-visible{outline:2px solid #8ac9ff;outline-offset:2px}#phone{position:relative;height:min(calc(var(--viewport-height) - 36px),852px);aspect-ratio:393/852;max-width:100vw;border-radius:46px;overflow:hidden;background:#272733;color:white;box-shadow:0 0 0 5px #111216,0 0 0 6px #62636c,0 20px 60px #0007;container-type:inline-size}#stage,.scrim{position:absolute;inset:0;pointer-events:none}.scene{object-position:var(--scene-x,32%) center}video.scene{opacity:0;transition:none}video.scene.active{opacity:1}#poster{opacity:1}#tools{position:absolute;right:16px;top:71px;z-index:4;display:flex;gap:7px}#tools:empty{display:none}#tools .round{backdrop-filter:blur(15px);background:#ffffff19;border:1px solid #ffffff20}#tools .ic{width:20px;height:20px}.status{pointer-events:none;z-index:3}.bottom{z-index:5;bottom:calc(20px + var(--keyboard));max-height:calc(100% - 90px - var(--keyboard));overflow:visible}.composer,.record{flex-shrink:0}.inputtext{background:none;border:0;resize:none;outline:none;color:#fff;font:inherit;line-height:23px;max-height:132px;min-height:43px;height:43px;caret-color:#fff;overflow-y:auto}.inputtext::placeholder{color:#ffffff42}.inputrow .blue[hidden],.inputrow .round[hidden]{display:none}.inputrow .round,.voiceinputrow>.round{width:42px;height:42px}.voiceinputrow>.addphoto:not(:disabled){opacity:1}.thumbstrip{justify-content:flex-start}.thumb{flex:0 0 calc((100% - 24px)/3);height:88px}.thumb>img{cursor:zoom-in}.recordcontrols .wave{overflow:hidden}.wave.playing i{color:#87c8ff}.wave i.played{color:#74bfff}.record .wave i{transition:height 70ms linear}.feedback,.history,.menu{max-height:70dvh;overflow:auto}.menu{padding:12px;border-radius:27px}.menu .wide{display:flex;align-items:center;justify-content:center;gap:8px;margin:4px 0}.historyrow>div{min-width:0;overflow-wrap:anywhere}.history .reviewhead{gap:12px}.feedback p{white-space:pre-line}.task{min-height:62px}.spinner{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#unlock{position:absolute;z-index:8;left:50%;top:46%;transform:translate(-50%,-50%);border-radius:24px;padding:15px 18px;display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:14px}#unlock[hidden]{display:none}#toast{position:absolute;top:65px;left:20px;right:20px;border-radius:20px;padding:13px 16px;background:#242431b8;backdrop-filter:blur(24px);z-index:20;color:white;font-size:14px;line-height:1.5;text-align:center}.imagepreview{border-radius:25px;padding:12px;position:relative}.imagepreview>img{display:block;width:100%;max-height:55dvh;object-fit:contain;border-radius:15px}.imagepreview>.remove-control{position:absolute;right:15px;top:15px}.previewactions{display:flex;gap:8px}.previewactions .wide{flex:1}.record small{font-size:12px}.busyinput{pointer-events:none;opacity:.6}@media(max-width:480px){body{background:#272733}#phone{width:100vw;height:var(--viewport-height);max-height:none;aspect-ratio:auto;border-radius:0;box-shadow:none}.status{padding-top:env(safe-area-inset-top,0px)}.bottom{bottom:calc(max(16px,env(safe-area-inset-bottom)) + var(--keyboard))}}@media(prefers-reduced-motion:reduce){video.scene{transition:none}.spinner{animation-duration:2s}}

@media(prefers-contrast:more){.inputtext::placeholder{color:#ffffffa0}.glass{background:#222638e8}}

/* 2026-09-21 interaction revision: direct attachments, dedicated history, smaller inset image deletion. */
#history-entry{position:absolute;left:16px;top:71px;z-index:4;width:44px;height:44px;background:#ffffff13;border:1px solid #ffffff25;box-shadow:inset 0 1px 1px #ffffff20;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
#history-entry .ic{width:20px;height:20px;opacity:.85}
#history-entry[hidden],.sheet-dismiss[hidden]{display:none}
.sheet-dismiss{position:absolute;inset:0;z-index:4;width:100%;height:100%;padding:0;background:transparent;border:0;cursor:default}
.thumb>button.remove-control:before{inset:auto;top:3px;right:3px;width:26px;height:26px}
.thumb button.remove-control .ic{position:absolute;top:10px;right:10px;width:12px;height:12px;opacity:.78}

/* Atomic decoded-frame swap: the portrait poster must never bleed through two videos. */
#poster[hidden]{display:none}
/* Home and independent appearance experience share a player, never a live presence. */
#studio-entry,#space-title{position:absolute;z-index:4;top:72px;left:16px;border-radius:22px;padding:12px 16px;font-size:14px;color:#fff}#space-title{background:#171c2d66;backdrop-filter:blur(20px);display:flex;align-items:center;gap:16px}#space-title button{background:none;color:white;font-size:24px;line-height:16px}#studio-entry[hidden],#space-title[hidden]{display:none}.ready-dot{display:inline-block;width:8px;height:8px;background:#ff565c;border-radius:50%;margin-left:9px}.mini-spinner{display:inline-block;width:10px;height:10px;border:1px solid #fff5;border-top-color:white;border-radius:50%;animation:spin 1s linear infinite;margin-left:9px}.studio-wait,.studio-result{padding:20px 16px 14px;border-radius:28px}.studio-wait .spinner{display:inline-block;margin-right:10px}.studio-wait p,.adjustment p{font-size:13px;line-height:1.6;opacity:.72}.result-actions{display:flex;align-items:center;gap:10px}.result-actions .wide{margin:0;font-size:14px}.studio-result>.textbutton{display:block;margin:14px auto 0;opacity:.72}.away-note{text-align:center;font-size:14px;line-height:1.7;text-shadow:0 2px 8px #0008;padding:16px}.away-note small{opacity:.6}.quiet-button{border-radius:20px;padding:12px 16px;justify-self:center;font-size:13px}.adjustment{padding:18px;border-radius:28px;max-height:calc(var(--viewport-height) - 135px - var(--keyboard));overflow:auto}.adjustment .reviewhead{font-size:18px}.sheet-source{display:flex;align-items:center;gap:12px;margin:10px 0 16px;font-size:13px}.sheet-source img{width:44px;height:58px;object-fit:cover;border-radius:8px}.sheet-source small{display:block;font-size:11px;opacity:.65;line-height:1.6;max-height:36px;overflow:hidden}.adjustment label{display:block;font-size:13px;margin-top:12px;line-height:1.5}.adjustment textarea{display:block;width:100%;min-height:72px;resize:vertical;border:1px solid #fff2;border-radius:13px;background:#131a292b;color:white;font:inherit;line-height:1.6;padding:10px;margin-top:6px;outline:none}.adjustment textarea::placeholder{color:#fff6}.sheet-refs{display:flex;gap:9px;margin-top:12px}.sheet-refs button{position:relative;border-radius:10px;width:54px;height:58px;background:#fff1;color:white;font-size:24px;overflow:hidden}.sheet-refs img{width:100%;height:100%;object-fit:cover}.sheet-refs span{position:absolute;top:1px;right:4px;text-shadow:0 1px 4px #000}.history-actions{flex:0 0 44px!important;display:flex;flex-direction:column;align-items:center;gap:4px}.small-text{font-size:11px;background:none;padding:4px;color:white;opacity:.8}body:has(.adjustment) #tools{display:none}
/* 2026-09-23: media history, reachable side-by-side playback/edit controls. */
.historyrow{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;gap:10px;min-height:92px}.historyrow>img{width:46px;height:62px}.history-actions{display:flex;flex-direction:row;justify-content:flex-end;gap:8px}.history-actions .round{width:46px;height:46px;min-width:46px;background:#ffffff16;border:1px solid #ffffff1f}.history-actions .ic{width:26px;height:26px}.historyrow>div:not(.history-actions){font-size:13px;line-height:1.5}.historyrow small{font-size:11px;margin-top:5px}.replay-result{border-radius:27px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between}.replay-result>span{font-size:14px;color:#ffffffb8}.replay-result>div{display:flex;gap:14px}.replay-result .round{width:50px;height:50px;border:1px solid #ffffff22;background:#ffffff16}.replay-result .ic{width:27px;height:27px}.studio-result .result-actions>.round{width:48px;height:48px;min-width:48px}.studio-result .result-actions>.round .ic{width:26px;height:26px}.adjustment p.reference-note{font-size:12px;background:#0a10261c;border-radius:11px;padding:9px 11px;opacity:.85;margin-bottom:8px}

/* Immersive replay: controls exist only while paused or finished. */
#viewer-tap{position:absolute;inset:0;z-index:2;background:transparent;width:100%;height:100%;padding:0}
#viewer-tap[hidden]{display:none}
#viewer-controls{position:absolute;inset:0;z-index:4;pointer-events:none}
#viewer-controls button{pointer-events:auto}
.viewer-close{position:absolute;left:16px;top:71px;width:46px;height:46px;background:#22243235}
.viewer-close .ic{width:24px;height:24px}
.viewer-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:76px;height:76px;background:#1718222b;border-color:#ffffff38}
.viewer-center .ic{width:40px;height:40px}
.regenerate{display:flex;align-items:center;justify-self:center;gap:9px;min-height:48px;border-radius:24px;padding:0 17px;font-size:14px;font-weight:500}
.regenerate .ic{width:22px;height:22px}
.editor-heading{display:flex;align-items:center;justify-content:space-between;padding:0 10px 2px;text-shadow:0 1px 8px #000b}
.editor-heading b{font-size:16px;font-weight:600}.editor-heading small{display:block;margin-top:5px;font-size:12px;color:#ffffffb3}.editor-heading .round{backdrop-filter:blur(15px)}
.studio-wait{padding:18px 20px;min-height:82px;border-radius:28px}.studio-wait .spinner{margin:0 5px 0 0}.studio-wait strong{font-size:16px}.studio-wait small{margin-top:7px}

/* History is a single playback list; regeneration belongs to the player only. */
#history-entry,.viewer-close{width:48px;height:48px;background:rgba(255,255,255,.09);border:0;box-shadow:none;backdrop-filter:blur(12px) saturate(1.1);-webkit-backdrop-filter:blur(12px) saturate(1.1)}
#history-entry .ic{width:30px;height:30px;opacity:1}.viewer-close .ic{width:25px;height:25px;opacity:1}
.inputrow .voice-disabled:disabled{opacity:.28;cursor:not-allowed}

/* Softer chrome, readable history, and an opaque scene boundary on return home. */
.history .reviewhead{font-size:20px}.historyrow>div:not(.history-actions){font-size:16px;line-height:1.45}
.history-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-weight:500;line-height:1.45}
.historyrow small{font-size:13px;line-height:1.5;margin-top:7px;opacity:.72}.history p{font-size:13px}
#scene-transition{position:absolute;inset:0;z-index:40;background:#101018;opacity:0;pointer-events:auto}
#scene-transition[hidden]{display:none}
.generation-progress{border-radius:25px;padding:16px 18px;max-height:42dvh;overflow:auto}
.progress-heading{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.progress-heading strong{font-size:15px;font-weight:500}
.total-time{font-size:12px;color:#ffffffb8;margin-left:auto;font-variant-numeric:tabular-nums}
.stage-list ol{list-style:none;padding:0;margin:13px 0 0;display:grid;gap:9px}
.stage-list li{display:flex;justify-content:space-between;gap:12px;font-size:13px;line-height:1.5}
.stage-list time{white-space:nowrap;font-variant-numeric:tabular-nums}.stage-done{color:#ffffffb0}.stage-active{color:#fff}.stage-failed{color:#ffdfbe}
.stage-list p,.stage-list summary{font-size:12px;color:#ffffffb0;margin-top:10px}.stage-list summary{cursor:pointer}
.picture-result #poster{object-fit:contain;object-position:center}.picture-result #viewer-tap{display:none}

/* History is bounded by the phone, not the browser viewport. */
#bottom:has(.history){height:calc((var(--phone-height,852px) * 2 / 3) - 20px);max-height:calc((var(--phone-height,852px) * 2 / 3) - 20px);display:flex;align-items:flex-end}
.history{width:100%;max-height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}.history .reviewhead{flex-shrink:0;padding-bottom:10px}.history-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}.historyrow{flex-shrink:0}

.history-scroll{scrollbar-color:rgba(255,255,255,.35) transparent}.history-scroll::-webkit-scrollbar{width:4px;background:transparent}.history-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.35);border-radius:4px}.history-more{width:100%;min-height:44px;background:rgba(255,255,255,.12);color:inherit;border:0;border-radius:18px;margin-top:10px}

/* Browser chrome already supplies the system status. Restore the header for an app demo later. */
.status[hidden]{display:none!important}
#tools{left:16px;right:auto;top:max(16px,env(safe-area-inset-top,0px))}
#history-entry,.viewer-close{top:max(16px,env(safe-area-inset-top,0px))}
.studio-ready{padding:20px 18px 16px;border-radius:27px}
.studio-ready h2{font-size:19px;font-weight:600;margin:0 0 8px}
.studio-ready p{font-size:14px;line-height:1.6;color:#ffffffbf;margin:0 0 16px}
.studio-ready .wide{min-height:50px;display:flex;align-items:center;justify-content:center;gap:9px}
.studio-ready .ic{width:20px;height:20px}
