/* The confirmed review layout, now populated with isolated journey state. */
.journey-flow-page{padding-top:46px;gap:12px}
.journey-flow-page .review-heading{min-height:32px;padding-right:62px}
.journey-flow-page .review-heading h1{line-height:32px}
.journey-flow-page .journey-actions{width:164px;flex:none}
.journey-actions button{height:auto;min-height:44px}
.journey-actions button.journey-primary:not(:disabled):before{visibility:visible}
.journey-actions:has(button:hover) button:before,.journey-actions:has(button:focus-visible) button:before{visibility:hidden}
.journey-actions button:hover:not(:disabled):before,.journey-actions button:focus-visible:before{visibility:visible}
.journey-xp-list{list-style:none;padding:0;margin:8px 0;display:grid;gap:0}
.journey-xp-list li{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:16px;align-items:center;padding:10px 0;border-bottom:1px solid #d9d5c7}
.journey-xp-list .review-mon{width:56px;height:56px}.journey-xp-list h2{font-size:18px;line-height:24px;font-weight:400;margin:0 0 4px}.journey-xp-list span{font-size:14px}.journey-xp-list strong{font-weight:400;font-size:16px;white-space:nowrap}
.journey-flow-page .review-comparison .review-type{gap:8px}.journey-flow-page .review-choice-window .review-move-grid small{gap:5px}
.journey-offers{display:flex;flex-wrap:wrap;gap:4px 16px;margin:0}
.journey-offers button{display:flex;align-items:center;gap:6px;min-height:44px;padding:4px 0;font-size:16px;background:none;border:0}
.journey-offers button>span{display:inline-block;width:12px;font-size:9px;line-height:16px;flex:none}
.journey-offers button:not([aria-pressed=true]){color:#62665e}
.journey-evolution{display:flex;gap:32px;align-items:center;justify-content:center;margin:18px 0}.journey-evolution>div{text-align:center}.journey-evolution .review-mon{display:block;margin:auto}.journey-evolution h2{font-size:20px;line-height:28px;font-weight:400;margin-top:12px}
.journey-decisions{padding:0;margin:8px 0;list-style:none;max-height:240px;overflow:auto}.journey-decisions li{padding:8px 0;line-height:24px;font-size:16px;border-bottom:1px solid #d9d5c7}
.journey-badge-award{display:flex;align-items:center;gap:20px;justify-content:center;margin:20px 0}.journey-badge-award img{object-fit:contain;image-rendering:pixelated}.journey-badge-award h2{font-size:20px;font-weight:400;line-height:28px}
.journey-badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;list-style:none;padding:12px 0;margin:0}.journey-badges li{display:grid;justify-items:center;gap:8px}.journey-badges img{object-fit:contain;image-rendering:pixelated}.journey-badges span{font-size:12px;color:#62665e}.journey-badges b{font-size:18px;font-weight:400}
.journey-flow-page .review-supplies{align-items:flex-start}.journey-flow-page .review-supplies button{font-size:16px}.journey-flow-page .review-supplies button>span{width:18px;font-size:9px;visibility:hidden}.journey-flow-page .review-supplies button:focus-visible>span,.journey-flow-page .review-supplies button:hover>span{visibility:visible}
.journey-flow-page .journey-note{font-size:16px;line-height:26px;color:#3d443d}.journey-flow-page .review-disclaimer{line-height:18px}
@media(max-width:600px){.journey-flow-page,.journey-flow-page:has(.review-choice-window){padding-top:44px;gap:10px}.journey-flow-page .review-heading h1{font-size:20px;line-height:28px}.journey-flow-page .review-heading{min-height:28px}.journey-flow-page .review-learner .review-mon{width:40px;height:40px}.journey-flow-page .review-learner h2{font-size:18px}.journey-flow-page .review-comparison{min-height:224px}.journey-xp-list li{gap:12px;grid-template-columns:44px minmax(0,1fr) auto}.journey-xp-list .review-mon{width:44px;height:44px}.journey-xp-list h2{font-size:16px}.journey-xp-list strong{font-size:14px}.journey-evolution{gap:16px}.journey-evolution .review-mon{width:88px;height:88px}.journey-evolution h2{font-size:16px}.journey-offers{gap:0 12px}.journey-offers button{font-size:14px}.journey-flow-page .review-supplies{gap:12px;flex-wrap:wrap}.journey-flow-page .review-supplies h2{font-size:16px}.journey-flow-page .review-disclaimer{font-size:11px}}
/* Right-align the visible menu, not an oversized invisible 164px box. */
.review-page .review-learn-actions,.journey-flow-page .journey-actions{width:max-content;min-width:84px;max-width:100%;margin-right:12px}
.review-learn-actions button,.journey-actions button{width:100%;justify-content:flex-start}
@media(max-width:600px){.review-page .review-learn-actions,.journey-flow-page .journey-actions{margin-right:6px}}
/* Evolution is a single gentle reveal, not a flashing sequence. */
.evolution-stage{min-height:172px;align-items:flex-start}
.evolution-stage>div{min-width:112px}
.evolution-sprite-wrap{position:relative;width:112px;height:112px;display:grid;place-items:center;margin:auto;isolation:isolate}
.evolution-sprite-wrap .review-mon{position:relative;z-index:1;width:112px;height:112px;object-fit:contain}
.evolution-stage h2{min-height:28px;margin-top:12px}
.evolution-direction{align-self:flex-start;margin-top:44px;line-height:24px}
.evolution-form.is-silhouette{filter:brightness(0);opacity:.86}
.evolution-stage.is-animating .evolution-target .evolution-sprite-wrap:before{content:'';position:absolute;inset:4px;background:#e1dba9;opacity:0;z-index:0;clip-path:polygon(32% 0,68% 0,68% 12%,84% 12%,84% 28%,100% 28%,100% 72%,84% 72%,84% 88%,68% 88%,68% 100%,32% 100%,32% 88%,16% 88%,16% 72%,0 72%,0 28%,16% 28%,16% 12%,32% 12%);animation:evolution-aura 1.6s ease-in-out both}
.evolution-stage.is-animating .evolution-target .review-mon{animation:evolution-reveal 1.6s ease-in-out both}
.evolution-stage.is-animating .evolution-source .review-mon{animation:evolution-source 1.6s ease-in-out both}
.evolution-stage.is-done .evolution-source .review-mon{opacity:.5}
.journey-flow-page .evolution-actions{min-height:88px;justify-content:flex-start}
.evolution-wait{display:flex;align-items:center;min-height:44px;padding:0 8px;font-size:16px;line-height:24px;color:#62665e}
.evolution-dialogue{min-height:104px}
@keyframes evolution-aura{0%{opacity:0;transform:scale(.88)}45%{opacity:.65}100%{opacity:0;transform:scale(1.08)}}
@keyframes evolution-reveal{0%,20%{filter:brightness(0);opacity:.86}70%{filter:brightness(.35);opacity:1}100%{filter:brightness(1);opacity:1}}
@keyframes evolution-source{from{opacity:1}to{opacity:.5}}
@media(max-width:600px){.evolution-stage{min-height:148px}.evolution-stage>div{min-width:88px}.evolution-sprite-wrap,.evolution-sprite-wrap .review-mon{width:88px;height:88px}.evolution-direction{margin-top:32px}.evolution-dialogue{min-height:104px}}
@media(prefers-reduced-motion:reduce){.evolution-stage.is-animating .evolution-target .evolution-sprite-wrap:before{animation:none;opacity:0}.evolution-stage.is-animating .review-mon{animation:none!important}.evolution-stage.is-animating .evolution-target .review-mon{filter:brightness(0);opacity:.86}}
/* Full-team capture: selection is explicit and never writes during rendering. */
.journey-caught-summary{display:flex;align-items:center;gap:16px;margin:4px 0}
.journey-caught-summary .review-mon{width:72px;height:72px;flex:none}
.journey-caught-summary h2{font-size:20px;font-weight:400;line-height:28px;margin:0 0 4px}
.journey-caught-summary p{font-size:14px;line-height:22px;color:#49524a;margin:0}
.journey-caught-types{display:flex;gap:6px;margin-top:6px}
.capture-team-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.capture-team-heading h2{font-size:16px;font-weight:400;line-height:24px;margin:0}
.capture-team-heading button{font-size:14px;line-height:22px;min-height:44px;background:none;border:0;padding:4px 0}
.capture-team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px}
.capture-team-grid>button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:100px;padding:4px 0;gap:2px;background:transparent;border:0;border-radius:0}
.capture-portrait{position:relative;display:block;width:48px;height:44px}
.capture-portrait .review-mon{width:44px;height:44px;margin:auto;display:block}
.capture-portrait i{font-style:normal;font-size:9px;line-height:16px;position:absolute;left:-10px;top:14px;width:10px;text-align:left}
.capture-team-grid b{font-size:16px;font-weight:400;line-height:20px;white-space:nowrap}
.capture-team-grid span:not(.capture-portrait),.capture-team-grid small{font-size:12px;line-height:18px;white-space:nowrap}
.capture-placement-note{min-height:48px;line-height:24px;font-size:16px;color:#3d443d;margin:0}
.capture-instruction{margin:0}
@media(max-width:600px){.journey-flow-page[data-flow-phase=capture-choice]{gap:8px}.journey-caught-summary{gap:12px;margin:0}.journey-caught-summary .review-mon{width:56px;height:56px}.journey-caught-summary h2{font-size:18px;line-height:24px}.journey-caught-summary p{font-size:12px;line-height:20px}.journey-caught-types{margin-top:4px}.capture-team-grid{gap:8px}.capture-team-grid>button{min-height:96px}.capture-team-grid b{font-size:14px}.capture-team-heading h2{font-size:14px}.capture-team-heading button{font-size:12px}.journey-flow-page .capture-instruction,.capture-placement-note{font-size:14px;line-height:22px}.capture-placement-note{min-height:44px}}
.journey-preview-return{display:flex;justify-content:flex-start;margin-top:4px}.journey-preview-return button{min-height:44px;padding:6px 0;font-size:14px;line-height:24px;background:none;border:0}
/* Adapted classic evolution: one focused stage, no rapid alternating flashes. */
.evolution-stage.is-animating{align-items:center;position:relative;isolation:isolate}
.evolution-stage .evolution-cinema{position:relative;width:100%;height:172px;overflow:hidden;background:#343b40;isolation:isolate;animation:evolution-stage-dim .7s ease-out both}
.evolution-cinema img{position:absolute;left:50%;top:50%;width:112px;height:112px;object-fit:contain;image-rendering:pixelated;transform:translate(-50%,-50%);filter:brightness(0) invert(1);z-index:2}
.evolution-cinema-old{animation:evolution-old-shape 6s ease-in-out both}.evolution-cinema-new{animation:evolution-new-shape 6s ease-in-out both}
.evolution-cinema-glow{position:absolute;inset:16% 30%;background:#dce5cd;opacity:0;filter:blur(12px);animation:evolution-focus-light 6s ease-in-out both}
.evolution-cinema-ring{position:absolute;left:50%;top:50%;width:96px;height:96px;border:3px solid #f0e7b1;border-radius:50%;opacity:0;transform:translate(-50%,-50%);animation:evolution-release-ring 6s ease-out both;z-index:1}
.evolution-cinema-particle{position:absolute;left:var(--x);bottom:12%;width:4px;height:4px;background:#f2e9b6;opacity:0;animation:evolution-pixel-rise 2.8s ease-out both;animation-delay:calc(.7s + var(--i)*.16s);z-index:3}
@keyframes evolution-stage-dim{from{background:#73786f}to{background:#343b40}}
@keyframes evolution-old-shape{0%{filter:brightness(1);opacity:1}12%{filter:brightness(0) invert(1);opacity:1}28%{opacity:1}65%,100%{opacity:0}}
@keyframes evolution-new-shape{0%,22%{opacity:0;filter:brightness(0) invert(1)}65%,86%{opacity:1;filter:brightness(0) invert(1)}100%{opacity:1;filter:none}}
@keyframes evolution-focus-light{0%{opacity:0;transform:scale(.7)}20%{opacity:.22}60%{opacity:.4;transform:scale(1.15)}85%,100%{opacity:.12;transform:scale(1)}}
@keyframes evolution-release-ring{0%,57%{opacity:0;transform:translate(-50%,-50%) scale(.65)}65%{opacity:.65}84%,100%{opacity:0;transform:translate(-50%,-50%) scale(1.65)}}
@keyframes evolution-pixel-rise{0%{opacity:0;transform:translateY(0)}18%{opacity:.8}100%{opacity:0;transform:translateY(-100px)}}
@media(max-width:600px){.evolution-stage .evolution-cinema{height:148px}.evolution-cinema img{width:88px;height:88px}.evolution-cinema-ring{width:80px;height:80px}}
@media(prefers-reduced-motion:reduce){.evolution-stage .evolution-cinema{animation:none}.evolution-cinema-glow,.evolution-cinema-ring,.evolution-cinema-particle{display:none}.evolution-cinema-old{animation:evolution-reduced-old .5s ease both}.evolution-cinema-new{animation:evolution-reduced-new .5s ease both}}
@keyframes evolution-reduced-old{from{opacity:1}to{opacity:0}}
@keyframes evolution-reduced-new{from{opacity:0}to{opacity:1}}
.journey-ending-progress,.journey-history-note{margin:0;line-height:1.6;font-size:16px}.journey-history-note{font-size:14px;color:#62665e}.journey-ending-collection h2{font-size:18px;font-weight:400;display:flex;gap:12px;margin:4px 0 10px}.journey-ending-collection h2>span{color:#62665e}.journey-ending-collection>p{font-size:16px;line-height:1.5;margin:0}.journey-ending-collection ul{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:12px 8px;padding:0;margin:0}.journey-ending-collection li{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0}.journey-ending-collection .review-mon{width:56px;height:56px;object-fit:contain;image-rendering:pixelated}.journey-ending-collection b{font-size:16px;font-weight:400;line-height:1.4}.journey-ending-collection li>span{font-size:14px}.journey-flow-page:has(.journey-ending-collection){height:auto;overflow:visible;min-height:calc(100svh - 32px)}

/* One readable preview menu; new entries cannot squeeze old navigation. */
.prototype-tools[open]{width:min(540px,calc(100vw - 20px));max-height:calc(100svh - 20px);overflow:auto}
.prototype-tools .studio{display:block!important;padding:8px!important;border:0!important}
.prototype-tools .studio nav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:4px;padding:0!important}
.prototype-tools .studio nav button{min-width:0;min-height:44px;padding:8px!important;white-space:normal;word-break:keep-all;overflow-wrap:normal;font-size:14px!important;line-height:20px;text-align:left;justify-content:flex-start}
.prototype-tools #notes{display:block;min-width:88px;min-height:44px;margin:8px 0 0 auto;font-size:14px}
@media(max-width:600px){.prototype-tools .studio nav{grid-template-columns:repeat(2,minmax(0,1fr))}.prototype-tools .studio nav button{font-size:13px!important}}

.evolution-stage .evolution-complete{animation:none}.evolution-cinema .evolution-complete-form{filter:none;animation:none;opacity:1}

.journey-preview-return{display:flex;flex-direction:column;align-items:flex-end;gap:4px;margin-top:12px}.journey-preview-return button{min-height:44px;font-size:14px;line-height:22px;padding:6px 8px;white-space:normal;text-align:left}

#settlement-share{width:min(640px,calc(100vw - 24px));max-height:calc(100svh - 32px);padding:16px;background:#f3f1e7;border:4px solid #65655f;border-radius:0;color:#303632;overflow:auto}#settlement-share::backdrop{background:#20242099}#settlement-share h2{font-size:20px}#settlement-share .export-detail,#settlement-share .export-note,#settlement-share .export-error{font-size:13px;line-height:22px;margin:8px 0}.export-preview{max-height:55svh;overflow:auto;background:#f3f1e7}.export-preview img{display:block;width:100%;height:auto;image-rendering:pixelated}.export-actions{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.export-actions a,.export-actions button{font:inherit;font-size:16px;line-height:24px;min-height:44px;padding:10px 8px;text-decoration:none;color:inherit}.export-actions a:before,.export-actions button:before{content:'▸';margin-right:10px}.export-actions button[hidden]{display:none}

/* Six real stat changes share one plain grid, without nested cards. */
.journey-growth-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 28px;margin:8px 0;width:min(100%,560px);align-self:center}
.journey-growth-stats>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-width:0}
.journey-growth-stats dt{font-size:16px;white-space:nowrap}.journey-growth-stats dd{margin:0;display:flex;align-items:baseline;gap:8px;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}.journey-growth-stats b{font-weight:400}.growth-delta{font-size:12px;color:#52674a;min-width:24px;text-align:right}
.route .side .route-item-button{display:flex;width:100%;align-items:center;justify-content:space-between;box-sizing:border-box;border:0;border-bottom:1px solid #d1ccbb;background:transparent;color:inherit;text-align:left;padding:10px 0;font:inherit;min-height:44px}.route-item-button:disabled{opacity:.45}.route-item-button:not(:disabled):hover{background:#e9e5d8}
.route-item-dialog{width:min(440px,calc(100vw - 32px));box-sizing:border-box;padding:16px;border:3px solid #57584d;background:#fffdf0;color:#33382e;font:inherit;max-height:calc(100dvh - 32px);overflow:auto}.route-item-dialog::backdrop{background:#18202066}.route-item-dialog h2{font-size:18px;font-weight:400;line-height:28px;margin:0 0 12px}.route-item-targets{display:grid;gap:4px}.route-item-targets button{display:flex;align-items:center;gap:12px;padding:8px 4px;min-height:64px;background:transparent;border:0;border-bottom:1px solid #d1ccbb;color:inherit;text-align:left;font:inherit}.route-item-targets img{width:48px;height:48px;object-fit:contain;image-rendering:pixelated}.route-item-targets button>span{display:grid;gap:4px;flex:1}.route-item-targets b{font-size:16px;font-weight:400}.route-item-targets small{font-size:12px}.route-item-targets button:disabled{opacity:.45}.route-item-targets button:not(:disabled):hover{background:#e9e5d8}.route-item-message{min-height:20px;font-size:14px;line-height:20px;margin:12px 0}.route-item-dialog footer{display:flex;justify-content:flex-end}.route-item-dialog footer button{min-height:44px;padding:6px 8px;font:inherit;border:0;background:transparent;color:inherit}
@media(max-width:600px){.journey-growth-stats{gap:12px 16px}.journey-growth-stats>div{display:grid;gap:2px}.journey-growth-stats dd{justify-content:space-between}.journey-growth-stats dt,.journey-growth-stats dd{font-size:16px}}

/* Approved growth overview v6; original learn/evolution pages stay unchanged. */
.review-page.growth-overview-page{justify-content:flex-start;padding-top:16px;gap:10px}
.growth-overview-page .growth-list{list-style:none;margin:0;padding:0}
.growth-overview-page .growth-item{display:block;border-bottom:1px solid #d9d5c7;padding:3px 0;min-height:0}
.growth-overview-page .growth-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:44px}
.growth-overview-page .growth-row img{width:40px;height:40px;image-rendering:pixelated}
.growth-overview-page .growth-name{font-size:16px;line-height:22px}
.growth-overview-page .growth-meta{display:block;font-size:12px;line-height:20px}
.growth-overview-page .growth-exp{font-size:12px;text-align:right;white-space:nowrap}
.growth-overview-page .growth-box{width:100%;font-size:14px}
.growth-overview-page .growth-box>summary{cursor:pointer;padding:10px 0}
.growth-overview-page .partner-details>summary{font-size:12px;line-height:18px;cursor:pointer;padding-left:48px}
.growth-overview-page .partner-details .journey-growth-stats{margin:12px 0}
.growth-overview-page .partner-details .review-dialogue{font-size:14px;line-height:22px;min-height:54px;margin:8px 0 12px}
.growth-overview-page .partner-details[open]>summary{padding-bottom:4px}
.growth-overview-page .review-heading{margin:0;padding-right:0}
.growth-overview-page .review-actions{margin:0;align-self:stretch;justify-content:flex-end;position:sticky;bottom:0;background:#f3f1e9;padding:6px 0}
@media(max-width:420px){.review-page.growth-overview-page{padding:8px 18px 12px;gap:6px}.growth-overview-page .growth-row{min-height:40px}.growth-overview-page .growth-item{padding:2px 0}.growth-overview-page .growth-name{line-height:20px}.growth-overview-page .growth-meta{line-height:18px}.growth-overview-page .partner-details>summary{line-height:16px}.growth-overview-page .review-heading h1{font-size:20px}.growth-overview-page .review-actions{gap:8px}.growth-overview-page .review-actions button{font-size:14px}}
/* Keep v6 compact detail rows and right-hand continuation despite global menu rules. */
.growth-overview-page .partner-details>summary{min-height:0;padding-top:0;padding-bottom:0}
.growth-overview-page .review-actions.journey-actions{width:auto;margin-right:0}
.growth-overview-page .review-actions.journey-actions button{width:auto}
.growth-overview-page .review-actions.journey-actions{align-items:flex-end}
.growth-overview-page .review-actions.journey-actions button{align-self:flex-end}
