/* One sticky stage and one navigation for the entire day, including AI. */
html{scrollbar-gutter:stable}
html:has(dialog[open]){overflow:hidden}
.journey.is-enhanced{height:var(--timeline-height,5000svh)}
.journey-stage .journey-controls{display:block;bottom:22px;left:56px;right:56px;z-index:8;color:#193d34}
.timeline-rail{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:7px;margin-bottom:9px}
.timeline-tick{height:3px;background:#193d3426;position:relative;overflow:hidden;border-radius:3px}
.timeline-tick:after{content:"";position:absolute;inset:0;background:currentColor;transform:scaleX(0);transform-origin:left}
.timeline-tick.is-complete:after{transform:scaleX(1)}
.timeline-tick.is-current:after{transform:scaleX(var(--chapter-fill,0))}
.story-controls-row{display:flex;align-items:center;gap:8px;max-width:720px;margin-inline:auto}
.story-controls-row button{color:inherit;flex-shrink:0}
.story-step{width:44px;height:44px;background:transparent;border:1px solid #193d3426;border-radius:50%;display:grid;place-items:center;padding:0}
.story-step:disabled{opacity:.3;cursor:default}
.story-step svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.timeline-open{display:flex;gap:10px;align-items:center;justify-content:center;flex:1!important;min-width:0;min-height:44px;border:0;background:transparent;font-size:14px;padding:6px 8px}
.current-chapter-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.timeline-count{font-size:11px;white-space:nowrap;opacity:.7}
.timeline-open>span:last-child{font-size:18px;opacity:.7}
.journey-controls .screen-open{position:static!important;width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;display:grid;place-items:center;flex-shrink:0;font-size:0!important;line-height:0}
.journey-controls .screen-open[hidden]{display:none!important}
.journey-controls .screen-open svg{width:20px;height:20px}
.journey-controls .motion-control{position:static!important;width:44px;min-height:44px;height:44px;margin:0;padding:0;display:grid;place-items:center;flex-shrink:0}
.journey-controls .motion-control span{display:none}
.journey-stage.night .journey-controls{color:#fff}
.journey-stage.night .timeline-tick{background:#ffffff40}
.journey-stage.night .story-step{border-color:#ffffff45}
.timeline-dialog{width:min(560px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:26px;border:0;border-radius:24px;background:#f8f5ec;color:#193d34;overscroll-behavior:contain}
.timeline-dialog::backdrop{background:#102820a6}
.timeline-dialog-top{display:flex;align-items:center;gap:15px;justify-content:space-between}
.timeline-dialog h2{font-size:25px;line-height:1.12;margin:0;max-width:15ch}
.timeline-dialog p{font-size:13px;line-height:1.6;margin:14px 0 22px;color:#526757}
.timeline-dialog-top button{width:44px;height:44px;border:1px solid #193d3426;border-radius:50%;background:transparent;color:inherit;font-size:28px;flex-shrink:0}
.timeline-dialog nav{display:grid;gap:0}
.timeline-dialog [data-scene]{display:flex;align-items:center;gap:15px;min-height:49px;border:0;border-top:1px solid #193d3420;background:transparent;color:inherit;text-align:left;padding:10px 8px;font-size:15px}
.timeline-dialog [data-scene]>span{font-size:11px;opacity:.55;font-variant-numeric:tabular-nums}
.timeline-dialog [data-scene] svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;margin-left:auto}
.timeline-dialog [aria-current=step]{background:#dfeaca;border-radius:8px;font-weight:700}
.journey-stage .library-story.is-embedded{position:absolute;inset:0;height:100%!important;display:none;z-index:4;overflow:hidden}
.journey-stage.is-library .library-story.is-embedded{display:block}
.journey-stage.is-library>.masthead,.journey-stage.is-library>.chapter-copy,.journey-stage.is-library>.scene-viewport,.journey-stage.is-library>.skip-story{visibility:hidden;pointer-events:none}
.journey-stage .library-story.is-embedded .library-stage{position:relative;top:0;height:100%;min-height:0;width:100%;max-width:none;padding-bottom:104px}
.library-story.is-embedded .library-bottom{padding-top:4px}
.library-story.is-embedded .library-caption{padding-right:0;margin-bottom:0;min-height:21px}
.library-phone-ping{position:absolute;left:0;top:0;width:44px;height:44px;border:2px solid #668c43;border-radius:50%;background:#e4efc3;opacity:0;z-index:3;pointer-events:none;display:grid;place-items:center;transform-origin:center}
.library-phone-ping svg{width:24px;height:24px;fill:none;stroke:#193d34;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.library-story.is-embedded .library-message{transform-origin:50% 60px}
.journey.is-enhanced[data-chapter="pantry"] .scene-caption{visibility:visible;padding-inline:16px;line-height:1.4}
@media(min-width:701px) and (max-height:520px){.journey.is-enhanced[data-chapter="pantry"] .scene-caption{bottom:-10px}}
.journey:not(.is-enhanced) .library-story.is-embedded{position:relative;display:block;height:auto!important}
.library-story.has-error .library-summary{position:relative;width:auto;height:auto;clip-path:none;white-space:normal;margin:10px 0}
@media(max-width:700px){
 .journey-stage .journey-controls{left:16px;right:16px;bottom:max(12px,env(safe-area-inset-bottom))}
 .story-controls-row{gap:3px}
 .timeline-rail{gap:4px;margin-bottom:6px}
 .timeline-open{font-size:12px;gap:5px;padding-inline:3px}
 .timeline-count{font-size:10px}
 .timeline-dialog{padding:20px}
 .journey-stage .library-story.is-embedded .library-stage{padding-bottom:93px}
 .library-story.is-embedded .library-heading h2{font-size:clamp(27px,8vw,36px)}
 .library-story.is-embedded .library-intro{font-size:10px}
}
@media(max-width:360px){.timeline-open{font-size:11px;flex-wrap:wrap;gap:0 4px}.timeline-open>span:last-child{display:none}.current-chapter-name{max-width:100%;width:100%}.timeline-dialog h2{font-size:23px}}
@media(min-width:701px) and (max-height:520px){.journey-stage .library-story.is-embedded .library-stage{padding-bottom:83px}.journey-stage .journey-controls{bottom:10px;left:24px;right:24px}}
@media print{.journey-stage .journey-controls,.timeline-dialog{display:none!important}.journey-stage .library-story.is-embedded{position:static;display:block;height:auto!important}.journey-stage .library-story.is-embedded .library-stage{height:auto;padding:0}}
