[hidden]{display:none!important}:root{--ink:#42382f;--muted:#8a7d6e;--paper:#faf6ee;--line:#e2d8c8;--green:#566b58;--gold:#b89158}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.7 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}button,a.button{cursor:pointer;border:1px solid var(--line);background:#fffaf3;color:var(--ink);padding:10px 17px;border-radius:30px;display:inline-flex;align-items:center;justify-content:center;gap:7px}button.primary,a.primary{background:var(--green);color:white;border-color:var(--green)}button:disabled{cursor:default;opacity:.45}button[aria-pressed=true]{border-color:var(--green);background:#e9eee5}button:focus-visible,a:focus-visible{outline:3px solid #c6a260;outline-offset:3px}header{padding:22px max(24px,calc((100vw - 1280px)/2));display:flex;gap:20px;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{font-family:Georgia,serif;font-size:19px;letter-spacing:1px}.brand small{font-family:inherit;display:block;font-size:9px;letter-spacing:3px;color:var(--muted)}nav{display:flex;gap:22px;align-items:center;font-size:12px}nav .active{color:var(--green);font-weight:650}.shell{max-width:1280px;margin:auto;padding:42px 28px}.eyebrow{font-size:10px;letter-spacing:3px;text-transform:uppercase;color:var(--gold)}h1{font:500 clamp(30px,4vw,52px)/1.3 Georgia,'Songti SC',serif;margin:13px 0 20px;letter-spacing:1px}h2{font:500 24px/1.4 Georgia,'Songti SC',serif}h3{font-size:15px;font-weight:600}p{margin:10px 0}.muted,.note{color:var(--muted)}.note{font-size:11px}.intro{display:flex;justify-content:space-between;gap:30px;align-items:end;margin-bottom:32px}.intro p{max-width:550px}.steps{display:flex;gap:14px;color:var(--muted);font-size:11px}.steps b{color:var(--green)}.badge{border:1px solid var(--line);background:#fffcf7;border-radius:20px;padding:5px 12px;color:var(--muted);font-size:11px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:25px 0}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.asset-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fffcf7}.asset-card img{width:100%;aspect-ratio:1;object-fit:contain;background:#fff}.asset-card .copy{padding:16px}.asset-card .copy p{font-size:11px;color:var(--muted);min-height:18px}.asset-card .actions{display:flex;gap:6px}.asset-card button{font-size:11px;padding:8px 10px;flex:1}.placeholder{aspect-ratio:1;display:grid;place-items:center;background:repeating-linear-gradient(45deg,#f0e8db,#f0e8db 1px,#f8f2e8 1px,#f8f2e8 10px);color:var(--muted);font-size:11px}.asset-card[data-collected=true]{border-color:#8a9e86}.status{font-size:12px;color:var(--muted);padding:15px 0}.sticky-bag{position:sticky;bottom:16px;display:flex;justify-content:space-between;gap:18px;align-items:center;background:#fffdf5ec;border:1px solid var(--line);border-radius:16px;padding:18px 22px;backdrop-filter:blur(12px);box-shadow:0 5px 25px #55452a0c;margin-top:26px}.stage-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:30px}.stage-panel{background:radial-gradient(ellipse at 50% 65%,#fffcf5 10%,#eee4d5 90%);border:1px solid var(--line);border-radius:25px;overflow:hidden;position:relative;min-width:0}.stage{height:530px;width:100%;position:relative}.stage canvas{display:block;width:100%;height:100%}.view-tools{position:absolute;z-index:1;top:18px;left:18px;display:flex;gap:6px}.view-tools button{padding:6px 11px;font-size:10px;background:#fffbf1df}.stage-caption{padding:0 24px 22px;display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px}.sidebar{background:#fffdf8;border:1px solid var(--line);border-radius:20px;padding:25px}.field{display:block;margin:17px 0;font-size:12px}.field span{display:block;margin-bottom:7px}.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);background:#faf7f0;border-radius:9px;padding:10px;color:var(--ink)}.field textarea{height:80px;resize:vertical}.themes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:28px 0}.theme-card{border:1px solid var(--line);background:#fffdf8;border-radius:16px;overflow:hidden;text-align:left;padding:0;display:block}.theme-card img{width:100%;aspect-ratio:1.3;object-fit:contain;background:white}.theme-card .copy{padding:14px;display:block}.theme-card b{display:block;font-size:14px}.theme-card small{display:block;font-size:11px;color:var(--muted)}.theme-card[aria-pressed=true]{border:2px solid var(--green)}.collection{display:flex;gap:10px;flex-wrap:wrap}.collection button{flex-direction:column;border-radius:12px;padding:8px;width:105px;font-size:11px}.collection img{width:70px;height:70px;object-fit:contain}.memory-fields{border-top:1px solid var(--line);margin-top:22px}.story-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:40px}.story-card{border-radius:24px;background:#f1e9da;border:1px solid #daceb9;padding:10px;box-shadow:0 15px 50px #5c472a0b;position:relative}.story-card-inner{border:1px solid #d0bea3;border-radius:18px;padding:25px;text-align:center;background:#faf6ed}.story-card h1{font-size:32px;margin:14px 0}.story-card .stage{height:400px;background:radial-gradient(ellipse at center,#fffdf9 25%,#f2e9da)}.card-number{display:flex;justify-content:space-between;color:var(--muted);font-size:9px;letter-spacing:2px}.card-owner{color:var(--green);font-size:12px;letter-spacing:2px}.card-footer{margin-top:16px;padding-top:15px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.story-copy{padding:28px 0}.story-copy h2{font-size:28px}.fragments{margin:32px 0}.fragment{border-left:2px solid #baa47e;padding:0 0 0 18px;margin:28px 0}.fragment h3{font-size:12px;letter-spacing:1px;color:var(--green)}.fragment p{white-space:pre-wrap}.export-actions{display:flex;gap:9px;flex-wrap:wrap;margin:25px 0}.export-actions button{font-size:12px}.empty{padding:65px 30px;text-align:center;border:1px dashed var(--line);border-radius:20px}.footer{max-width:1280px;margin:40px auto 0;padding:24px 28px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);display:flex;gap:25px;justify-content:space-between}.dialog{border:1px solid var(--line);border-radius:20px;padding:25px;width:min(600px,94vw);background:var(--paper)}.dialog::backdrop{background:#372e2460}.dialog .stage{height:340px}.dialog .close{float:right}body[data-busy=true] .export-actions button{opacity:.6}.quality-note{font-size:10px;color:var(--muted);margin-top:30px}footer details{max-width:650px}@media(max-width:1000px){.grid{grid-template-columns:repeat(3,1fr)}.stage-layout{grid-template-columns:1fr 300px}.themes{grid-template-columns:repeat(4,1fr)}.story-layout{gap:24px}}@media(max-width:760px){header{padding:17px 20px}.brand{font-size:16px}nav{gap:13px;font-size:11px}.shell{padding:28px 18px}.intro{display:block}.steps{margin-top:20px}.grid{grid-template-columns:repeat(2,1fr);gap:11px}.asset-card .copy{padding:11px}.sticky-bag{padding:13px;bottom:8px;font-size:11px}.stage-layout,.story-layout{grid-template-columns:1fr}.stage{height:440px}.sidebar{padding:20px}.themes{grid-template-columns:repeat(2,1fr);gap:10px}.story-card .stage{height:340px}.story-card-inner{padding:18px}.story-copy{padding:0 3px}.footer{display:block}.footer a{display:inline-block;margin:10px 15px 0 0}.view-tools{top:12px;left:12px}.intro h1{font-size:35px}}

.letter-editor{margin-top:36px;padding:28px;border:1px solid var(--line);border-radius:18px;background:#fffdf8}.letter-editor h2{margin:12px 0}.letter-address{display:grid;grid-template-columns:1fr 1fr;gap:20px}.letter-editor .field textarea{height:440px;min-height:240px;font:16px/1.95 Georgia,'Songti SC',serif;background:#fffaf0;padding:22px;white-space:pre-wrap}.letter-actions{display:flex;gap:10px;flex-wrap:wrap}.letter-actions button{font-size:12px}.letter-update{color:#8d6636;font-size:12px;background:#f5ecd9;border-radius:8px;padding:12px}.letter-sources{font-size:12px;color:var(--muted);margin-top:20px}.letter-sources ul{padding-left:20px;max-height:220px;overflow:auto}.story-copy .letter-editor{margin:0;padding:22px}.story-copy .letter-editor .field textarea{height:490px}.story-copy .letter-editor p.muted{font-size:12px}.story-card{align-self:start}.letter-preview{white-space:pre-wrap;font:16px/1.9 Georgia,'Songti SC',serif;color:#514537}.letter-qa-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}@media(max-width:760px){.letter-editor{padding:20px}.letter-address{gap:12px}.letter-editor .field textarea{font-size:15px;padding:16px}.letter-qa-grid{grid-template-columns:1fr}}

/* =====================================================================
   以下为生产接线段（zCode，2026-10-06，FE27-02.1/02.2，待Codex审查）。
   上方至本行注释前为原包 journey.css 原字节（SHA256 7fcbe80e0ae28aefab6752261ee87f99e6b15d57b1b2154fddd8addc1349d42b），
   不做任何修改；原包 collection.html 页内 <style> 块按原样迁入（该页样式在原包中位于 journey.css 之后）。
   ===================================================================== */

/* —— 原包 collection.html 内联样式块（原样迁入）—— */
.inventory-tools{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.inventory-tools input,.inventory-tools select{border:1px solid var(--line);border-radius:12px;padding:10px;background:#fffdf8;color:var(--ink)}.inventory-tools input{flex:1;min-width:180px}.inventory-tools a{font-size:12px}.counts{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.counts span{border:1px solid var(--line);padding:10px 18px;border-radius:12px;background:#fffdf8}.asset-card .placeholder{aspect-ratio:1.5}.asset-card img{aspect-ratio:1.5}.asset-id{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-bottom:9px}.details-copy{border-top:1px solid var(--line);padding-top:10px;font-size:11px;color:var(--muted)}.swatches{display:inline-flex;gap:7px;vertical-align:middle;margin-left:10px}.swatches i{width:15px;height:15px;border:1px solid #baa98e;border-radius:50%}@media(max-width:760px){nav{gap:8px}.brand small{letter-spacing:1px}.counts{gap:7px}.counts span{padding:7px 11px}}

/* =====================================================================
   V322.4 定稿片视觉搭配差量 · 限定旅程视图覆盖段（2026-10-06，待Codex审查）
   采样依据 qa/mvp-v027-video-style-plan-20261006-01/palette-samples.json 与
   reference/前端/v027原包/宣传片-定稿-20261006/视觉搭配登记.json：
   页面底奶油纸#f6f0e6 / 标题墨色#40372e / 眉题陶土#c87654 / 信纸#fdf8f1 / 口袋沙米#e6d3bc。
   只做配色/标题字体/展示表面柔纸影的明确差量；不新增皮肤系统/平行组件/全页滤镜；
   原布局、卡片密度、16/20/25 圆角与响应组织沿上方原字节不变。金/线色作细部保留 --gold 之外的用色。
   ===================================================================== */
:root{--paper:#f6f0e6;--ink:#40372e;--gold:#c87654}
body.journey-app{background:#f6f0e6;color:#40372e}
.journey-view h1{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;font-weight:700;letter-spacing:.5px}
.journey-view h2{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;font-weight:700}
.journey-view .letter-editor .field textarea{background:#fdf8f1;color:#40372e}
.letter-preview{color:#40372e}
.journey-view .asset-card{border-radius:18px;background:#fffdf8;box-shadow:0 8px 28px #5c472a12}
.journey-view .theme-card{border-radius:18px;background:#fffdf8;box-shadow:0 8px 28px #5c472a0e}
.journey-view .sticky-bag{background:#e6d3bcd9;box-shadow:0 10px 34px #5c472a1f}
.journey-view .stage-panel{background:radial-gradient(ellipse at 50% 65%,#fffdf6 10%,#f0e5d3 90%)}
.journey-view .sidebar{background:#fffdf6}
.journey-view .story-card{box-shadow:0 18px 55px #5c472a16}
.journey-view .story-card-inner{background:#fbf6ec}
/* style.css .view-tools button 的 32×32 固定尺寸只适用旧台面视角按钮；旅程视图沿原包胶囊尺寸。 */
.journey-view .view-tools{top:18px;left:18px;right:auto;bottom:auto;flex-direction:row}
.journey-view .view-tools button{width:auto;height:auto;padding:6px 11px;font-size:10px;border-radius:30px}

/* —— 生产接线：旅程顶栏/视图壳与旧前台退役边界（过渡期恢复段）—— */
/* 旧 masthead 退役：journey 顶栏替代（#reset 等监听元素保留于 DOM，FE27-05.2 随依赖一并移除）。 */
body.journey-app .masthead{display:none}
/* 旅程路由时旧落地/工作台主体退役（FE27-02.2）；street/world/letter 沿既有行为。 */
body.journey-app[data-journey] .land-main{display:none}
/* 结果页（旧 #/letter 承接）保留自身顶栏，不叠 journey 顶栏。 */
body.result-mode .journey-topbar{display:none}
/* journey 顶栏：原包 header 规则承载布局；品牌字色回到墨色（style.css .brand 铜色为旧台面遗留）。 */
.journey-topbar .brand{color:var(--ink)}
.journey-topbar nav a{padding:4px 2px}
.journey-topbar nav a:hover{color:#c87654}
.journey-topbar .brand,.journey-topbar nav a{white-space:nowrap}
@media(max-width:760px){.journey-topbar{padding:14px 16px}.journey-topbar nav{gap:10px;font-size:11px}.journey-topbar .brand small{display:none}}
/* street 沉浸外围：journey 顶栏浮于画布上方（town 外围语言），不改变画布几何/相机取景。 */
body.world-route .journey-topbar{position:fixed;top:0;left:0;right:0;z-index:64;background:#f6f0e6e8;backdrop-filter:blur(10px)}
/* 原包 .dialog 为单列弹层；style.css dialog[open] 两列网格仅适用旧参考弹层。 */
dialog.dialog[open]{display:block;width:min(600px,94vw);max-width:94vw}
/* 过渡期恢复段：journey.css 全局类对旧台面（world-return 暂返路径）的覆盖按 style.css 原值恢复，
   旧界面在 FE27-05.2 退役前保持既有样式，不再扩散视觉差异。 */
.land-main .view-tools{position:absolute;right:19px;bottom:48px;flex-direction:column;gap:7px}
.land-main .view-tools button{width:32px;height:32px;font-size:19px;padding:0;background:#fffcf4cc;border:1px solid #ded9cc;border-radius:4px;color:#929184;backdrop-filter:blur(8px)}
.land-main .sidebar{display:flex;flex-direction:column;gap:11px;background:transparent;border:0;border-radius:0;padding:0}
.land-main .export-actions{margin:12px 0 0;gap:7px;align-items:stretch;flex-wrap:nowrap}
.land-main .export-actions button{font-size:inherit}
.land-main .letter-actions{gap:8px}
.land-main h1{font:500 clamp(29px,2.8vw,42px)/1.5 var(--serif);margin:9px 0 5px;letter-spacing:2px}
.land-main h2{font:500 17px/1.5 var(--serif);letter-spacing:.5px;margin:10px 0 13px}
.land-main .intro{align-items:center;margin-bottom:28px}
.land-main .eyebrow{font-size:9px;letter-spacing:2.4px;color:var(--orange);text-transform:none}

—— FE27-03.2/03.5 收藏卡壳（2026-10-06，Z，待Codex审查）——
   result-mode 状态机内以 journey-story 类切换：旧结果 DOM 隐藏、原包 planet-story 壳显示；
   五保存/健康门/租约沿结果状态机不变（VC27-03/04 按钮位置冲突按视觉基线单列）。 */
body.result-mode.journey-story #result-topbar,body.result-mode.journey-story #result-head,
body.result-mode.journey-story #result-export,body.result-mode.journey-story #result-bar{display:none}
body.result-mode.journey-story .journey-view[data-view=story]{display:block}
body.journey-app[data-journey] main.land-main{display:none}
.journey-view[data-view=story] .story-card .stage{min-height:400px}


.journey-view[data-view=story] .export-actions{flex-wrap:wrap;margin:25px 0}
.journey-view[data-view=story] .export-actions button{width:auto;min-height:0;padding:10px 17px;border-radius:30px;font-size:12px;line-height:1.5}
.journey-view[data-view=story] .export-actions button.primary{background:var(--green);color:white;border-color:var(--green)}

/* RV-CZ-MASTER-01（2026-10-07）：母源模型加载进度条（collection 预览 dialog 内，V322.4 同语气：奶油纸底/陶土点缀）。 */
#jv-collection-preview-progress{padding:8px 24px 0}
#jv-collection-preview-progress[hidden]{display:none}
#jv-collection-preview-progress .jv-progress-track{height:6px;border-radius:999px;background:#e9e2d2;overflow:hidden}
#jv-collection-preview-progress .jv-progress-bar{height:100%;width:0;border-radius:999px;background:#bf774c;transition:width .18s ease}
#jv-collection-preview-progress .fine-print{display:block;margin-top:4px}


/* HOME-AUTH: user-approved reference; scoped homepage and email form, same renderer. */
body[data-home] .journey-topbar{height:84px;padding:0 max(28px,calc((100vw - 1280px)/2));gap:28px}
body[data-home] .journey-topbar .brand{display:block;gap:normal;align-items:normal;font:700 20px/1.4 -apple-system,BlinkMacSystemFont,'Microsoft YaHei',sans-serif;white-space:nowrap}
body[data-home] .journey-topbar .brand small{display:block;margin-top:0;font:9px/1.6 Georgia,serif;letter-spacing:3px}
.journey-topbar .header-right{display:flex;gap:30px;align-items:center}.journey-topbar .header-right>button{font-size:12px}
#session-identity{font-size:11px;white-space:nowrap}
.home-view .intro h1{font-family:-apple-system,BlinkMacSystemFont,'Microsoft YaHei',sans-serif;font-weight:700;line-height:1.35}
.home-view .intro{align-items:center;margin-bottom:34px}.home-view .intro p{font-size:14px;line-height:1.9;max-width:400px;margin:10px 0;letter-spacing:normal;color:var(--muted)}
.home-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.8fr);gap:30px}
.home-layout .stage-panel{align-self:start;background:radial-gradient(ellipse at 50% 65%,#fffdf6 10%,#f0e5d3 90%)}
.journey-view[data-view=planet] .stage-panel{align-self:start}
@media(min-width:761px){.journey-view[data-view=planet] .stage-layout>.stage-panel{position:sticky;top:20px}}
.home-stage{position:relative;aspect-ratio:977/580;overflow:hidden;background:#f6f0e6}
#jv-home-stage{position:absolute;inset:0}#jv-home-stage canvas{display:block;width:100%;height:100%;touch-action:none}
.home-view .stage-top{position:absolute;top:18px;left:20px;z-index:1;pointer-events:none}
.home-view .stage-caption{padding:18px 24px;align-items:center;border-top:1px solid var(--line)}
.home-layout .sidebar{display:block;gap:normal;padding:32px;align-self:start;background:#fffdf6}
.home-layout .sidebar h2{font:700 28px/1.5 -apple-system,BlinkMacSystemFont,'Microsoft YaHei',sans-serif;margin:14px 0;letter-spacing:normal}
.home-layout .sidebar>p{line-height:1.9;font-size:13px;color:var(--muted)}
.preview-letter{margin:24px 0;padding:22px 24px;border:1px solid var(--line);border-radius:12px;background:#fdf8f1;font:15px/1.95 Georgia,'Songti SC',serif}
.preview-letter p{margin:0 0 18px}.preview-letter p:last-child{margin:0;text-align:right}
.home-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}.home-actions a,.home-actions button{font-size:13px}
.home-footnote{font-size:11px!important;margin-top:17px}.homepage-footer{padding:22px 0 0;margin-top:28px;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
#jv-home-status{position:absolute;bottom:12px;left:20px;right:20px;z-index:2;font-size:11px;margin:0;padding:5px 8px;color:var(--muted);background:#f6f0e6ed;border-radius:8px;pointer-events:none}
#jv-home-status[data-ready=true]{width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
#jv-home-retry{position:absolute;bottom:48px;left:20px;z-index:3}
#login-dialog[open]{display:block}#login-dialog{gap:normal;align-items:normal;width:min(460px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:30px;border:1px solid var(--line);border-radius:20px;background:#fffdf6;color:var(--ink);box-shadow:0 20px 80px #392d2326}
#login-dialog::backdrop{background:#372e2460;backdrop-filter:blur(4px)}#login-dialog .login-close{float:right;width:36px;height:36px;padding:8px}
.login-close svg{width:18px;height:18px}.login-head{padding-top:8px}
#login-dialog h2{font:700 27px/1.4 -apple-system,BlinkMacSystemFont,'Microsoft YaHei',sans-serif;margin:12px 0;letter-spacing:normal}
#login-dialog .muted{font-size:12px;line-height:1.8;margin-bottom:24px}
#login-dialog .field{font-size:12px;margin:20px 0}#login-dialog .field input{height:46px;padding:12px;background:#faf7f0}
.code-row{display:flex;gap:10px}.code-row input{width:0;flex:1;letter-spacing:3px;min-width:0}.code-row button{flex-shrink:0;font-size:12px;padding:10px 14px}
.login-submit{width:100%;height:46px;margin-top:5px}.login-note{margin:16px 0 0;font-size:11px;line-height:1.7;color:var(--muted);text-align:center}
.login-status{min-height:23px;margin:8px 0;font-size:12px;line-height:1.7;color:var(--green)}.login-status[data-error=true]{color:#a24b32}
.home-view button:hover,.home-view a.button:hover,#login-dialog button:hover{background:#eee6da;border-color:#ac987a;color:var(--ink)}
.home-view button.primary:hover,.home-view a.primary:hover,#login-dialog button.primary:hover{background:#455947;border-color:#455947;color:#fff}
.journey-topbar nav a:hover,.journey-topbar .brand:hover{color:var(--green);text-decoration:underline;text-underline-offset:5px}
#login-dialog input:focus-visible{outline:3px solid #c6a260;outline-offset:3px}#login-dialog input:hover{border-color:#ac987a}
@media(max-width:760px){body[data-home] .journey-topbar{height:auto;min-height:78px;padding:16px 18px;flex-wrap:wrap;gap:14px}.journey-topbar .header-right{display:contents}.journey-topbar nav{order:3;width:100%;justify-content:space-between;gap:8px}.journey-topbar .header-right>button{margin-left:auto}body[data-home] .journey-topbar .brand small{display:block}.home-view .intro{margin-bottom:24px}.home-view .intro h1{font-size:34px}.home-layout{grid-template-columns:1fr;gap:22px}.home-layout .sidebar{padding:24px}.home-layout .sidebar h2{font-size:25px}.home-view .stage-top{top:12px;left:14px}.home-view .stage-caption{padding:14px 18px}.homepage-footer{display:block}.homepage-footer span{display:block;margin:5px 0}#login-dialog{padding:25px}}

/* Retired box reference is absent from the approved journey views. */
body.journey-app #reference-button{display:none}

/* GIFT02 approved journey cards; scoped DOM only, no new scene or renderer. */
.gift-purpose #gift-purpose-title{cursor:pointer}.gift-purpose #gift-purpose-title:hover{color:#566b58;text-decoration:underline}.gift-purpose #gift-purpose-title:focus-visible{outline:3px solid #c6a260;outline-offset:3px}.gift-purpose small{display:block;color:#8a7d6e;font-size:11px}.gift-purpose small:empty{display:none}
.gift-item-link{font:inherit;color:inherit;padding:0;border:0;background:none;text-align:left}.gift-item-link:hover{color:#566b58;text-decoration:underline}.gift-item-link:focus-visible{outline:3px solid #c6a260}
.gift-dialogue.gift-detail{left:auto;right:20px;top:calc(var(--gift-header-bottom,86px) + 98px);bottom:auto;width:350px;max-height:min(640px,calc(100dvh - var(--gift-header-bottom,86px) - 112px));padding:24px}
.gift-detail>img{width:100%;height:120px;object-fit:contain;background:#fff;border-radius:12px;margin:12px 0}.gift-detail .field textarea{height:82px}.gift-detail .note{font-size:11px}.gift-detail .success{color:#566b58}.gift-idea{border:1px solid #e2d8c8;border-radius:12px;padding:12px;margin:12px 0}.gift-idea b{display:block}.gift-idea button{margin-top:8px;font-size:11px;padding:7px 11px}
@media(max-width:760px){.gift-card-layer:has(.gift-detail:not([hidden])){position:fixed;inset:var(--gift-header-bottom,100px) 0 0;overflow-y:auto;pointer-events:none;z-index:68}.gift-dialogue.gift-detail{position:relative;left:auto;right:auto;top:auto;bottom:auto;width:auto;max-height:none;margin:364px 12px 18px;padding:20px;pointer-events:auto}}
.gift-dialogue .eyebrow{font-weight:400}.gift-dialogue h2{letter-spacing:normal}.gift-dialogue input,.gift-dialogue textarea,.gift-dialogue select{transition:background-color .12s,border-color .12s,box-shadow .12s}.gift-dialogue p{font-size:12px}
.gift-purpose{position:fixed;top:calc(var(--gift-header-bottom,86px) + 14px);left:24px;right:24px;z-index:66;display:flex;gap:12px;justify-content:space-between;align-items:center;padding:12px 18px;background:#fffcf7f5;border:1px solid #e2d8c8;border-radius:16px;box-shadow:0 5px 25px #55452a0c;font-size:12px;color:#40372e}
.gift-purpose>div{min-width:0}.gift-purpose b{overflow-wrap:anywhere}.gift-purpose #gift-purpose-pocket{display:block;text-align:left;font-size:11px;line-height:1.7;padding:0;border:0;background:none;color:#8a7d6e;border-radius:3px}.gift-purpose>button{flex-shrink:0;font-size:11px;padding:7px 11px}
body.world-route:has(#gift-purpose:not([hidden])) #pocket-fab{display:none}
.gift-dialogue{position:fixed;bottom:28px;left:28px;z-index:68;width:min(620px,calc(100vw - 56px));max-height:calc(100dvh - var(--gift-header-bottom,86px) - 28px);overflow:visible;padding:25px 28px;background:#fffdf8;color:#40372e;border:1px solid #e2d8c8;border-radius:20px;box-shadow:0 15px 50px #5c472a1a;font:14px/1.7 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}
.gift-dialogue h2{font:700 23px/1.45 -apple-system,BlinkMacSystemFont,'Microsoft YaHei',sans-serif;margin:9px 0}.gift-dialogue .eyebrow{color:#a16e4a}.gift-dialogue .muted{color:#8a7d6e}.gift-dialogue .field{margin:17px 0;font-size:12px}.gift-dialogue .field input,.gift-dialogue .field textarea{width:100%;border:1px solid #e2d8c8;background:#faf7f0;border-radius:9px;padding:10px;color:#40372e;font:inherit}.gift-dialogue .field textarea{height:80px;resize:vertical}
.gift-close{float:right;width:32px;height:32px;padding:7px;border-radius:50%}.gift-close svg{width:16px;height:16px}.gift-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.gift-actions button{font-size:12px}.gift-choices{display:flex;gap:7px;flex-wrap:wrap}.gift-choices button{font-size:11px;padding:7px 12px}.gift-choices button[aria-pressed=true]{border-color:#566b58;background:#e9eee5;color:#405642}.gift-error{color:#a24b32;min-height:20px;font-size:12px}
.gift-dialogue button,.gift-purpose button,#gift-home-begin{transition:background-color .12s,border-color .12s,box-shadow .12s}.gift-dialogue button:hover,.gift-purpose>button:hover{background:#eee6da;border-color:#ac987a;color:#40372e}.gift-dialogue button.primary:hover,#gift-home-begin:hover{background:#405642;color:white;border-color:#405642}.gift-purpose #gift-purpose-pocket:hover{color:#566b58;text-decoration:underline}.gift-dialogue input:hover,.gift-dialogue textarea:hover{border-color:#ac987a}.gift-dialogue input:focus-visible,.gift-dialogue textarea:focus-visible,.gift-dialogue button:focus-visible,.gift-purpose button:focus-visible{outline:3px solid #c6a260;outline-offset:3px}
.gift-tooltip{position:fixed;z-index:1000;max-width:240px;padding:7px 10px;border-radius:7px;background:#40372e;color:#fffaf3;font:11px/1.6 sans-serif;box-shadow:0 5px 18px #40372e24;pointer-events:none;opacity:0;transition:opacity .12s}.gift-tooltip.visible{opacity:1}
@media(max-width:760px){.gift-purpose{left:12px;right:12px;padding:10px 12px;font-size:11px;align-items:start}.gift-purpose>button{font-size:10px;padding:6px 9px}.gift-purpose #gift-purpose-pocket{font-size:10px}.gift-dialogue{left:12px;bottom:12px;width:calc(100vw - 24px);padding:20px;max-height:calc(100dvh - var(--gift-header-bottom,100px) - 28px)}.gift-dialogue h2{font-size:20px}.gift-dialogue .field{margin:14px 0}.gift-actions button{padding:9px 13px}}

.gift-dialogue.gift-scroll,.gift-dialogue.gift-detail{overflow:auto}
.gift-dialogue.gift-detail .field textarea{height:82px}
.gift-dialogue[data-mode=notes]{width:420px}.gift-dialogue .fragment{margin:18px 0}.gift-dialogue .fragment p{font-size:13px;line-height:1.9;white-space:pre-wrap}
#jv-story-card-items[role=button]{cursor:pointer}#jv-story-card-items[role=button]:hover{color:#566b58;text-decoration:underline}#jv-story-card-items[role=button]:focus-visible{outline:3px solid #c6a260;outline-offset:3px}
@media(max-width:760px){.gift-dialogue[data-mode=notes]{width:auto}}
@media(max-width:760px){.journey-topbar{flex-wrap:wrap}}

/* Personal display only; the original engineering / full-letter page stays separate. */
.personal-entry {margin:0 0 28px;}
.personal-actions {display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;}
.personal-concept {display:block;width:100%;height:220px;object-fit:contain;border-radius:12px;background:#fff;}
.personal-card-preview {padding:18px;}
.personal-card-preview img {display:block;width:100%;height:auto;border-radius:8px;}
.personal-items {margin-top:36px;}
.personal-item-slots {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
[data-view="personal"] input[type="range"] {width:100%;accent-color:#7d8d70;}
[data-view="personal"] input[type="color"] {width:100%;min-height:38px;}
[data-view="personal"] .sidebar {max-height:none;}
[data-view="personal"] .status {padding:0 22px;}
[data-view="personal"] [hidden] {display:none!important;}
@media(max-width:720px){.personal-item-slots {grid-template-columns:1fr;} [data-view="personal"] .stage{height:390px;}}
[data-view="personal"] .stage-layout {align-items:start;}
[data-view="personal"] :is(input,select,textarea,summary,a):hover{border-color:#8b9b84;background-color:#e9eee5}
[data-view="personal"] :is(input,select,textarea,summary,a):focus-visible{outline:2px solid #876b4f;outline-offset:3px}
@media(min-width:900px){[data-view="personal"] .stage-panel {position:sticky;top:100px;}}

.personal-transform-tabs{grid-template-columns:repeat(2,minmax(0,1fr));max-width:320px}.personal-transform-head .oracle-tab{min-height:44px}.personal-transform-head .view-tools{position:static;margin-bottom:12px}

/* Existing accepted figure/card controls embedded in the one planet editor. */
.personal-figure-tools{border-top:1px solid #e4d8c8;padding-top:16px;margin-top:16px}.personal-figure-tools>summary{cursor:pointer;padding:12px 0;color:#536b57}.personal-figure-tools[open]>summary{margin-bottom:12px}.personal-figure-tools input[type=range]{width:100%;accent-color:#7d8d70}.personal-unified-card{margin-top:40px}.personal-unified-card .status{padding:0}.personal-unified-card .personal-card-preview img{width:100%;height:auto}.personal-figure-tools :is(input,select,summary):hover,.personal-unified-card :is(input,textarea,button):hover{border-color:#8b9b84;background-color:#e9eee5}.personal-figure-tools :is(input,select,summary):focus-visible,.personal-unified-card :is(input,textarea,button):focus-visible{outline:2px solid #876b4f;outline-offset:3px}.personal-figure-tools .personal-concept{max-height:220px;object-fit:contain}.personal-unified-card .personal-actions{flex-wrap:wrap}

.journey-view .personal-unified-card .field textarea{height:80px;min-height:80px;font:inherit;line-height:inherit;padding:10px;background:#faf7f0;color:var(--ink)}
/* Exact Y journey-view stage presentation; active only for its verified source. */
body[data-y-original-planet] .journey-view[data-view=planet] .stage-panel,
body[data-y-original-planet] .journey-view[data-view=story] .story-card{background:radial-gradient(ellipse at 50% 65%,#fffcf5 10%,#eee4d5 90%)}
body[data-y-original-planet] .journey-view[data-view=story] .story-card .stage{background:transparent}
