/* One question takes the place of the last. The writing surface stays mounted. */
.therapy-root .journal-guided{padding-bottom:20px;overflow-anchor:none}
.journal-guided>.section-tabs{margin-bottom:16px}
.journal-progress{margin:8px 0 12px;color:var(--paper)}
.journal-progress-copy{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.journal-progress-caption{font-size:9px;letter-spacing:1.2px;color:var(--muted)}
.journal-progress-copy p{font-size:12px;line-height:1.6;margin:8px 0 0;max-width:43ch}
.journal-progress-count{font-size:11px;color:var(--muted);white-space:nowrap;padding-top:3px;font-variant-numeric:tabular-nums}
.journal-progress-line{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-top:12px}
.therapy-root .journal-progress-line button{display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:10px;padding:8px 0;min-height:54px;border:0;border-radius:0!important;background:transparent;color:var(--muted);text-align:left;transition:none}
.journal-progress-line button:disabled{opacity:1;cursor:default}
.journal-progress-track{display:block;width:100%;height:3px;background:var(--stroke);overflow:hidden;border-radius:5px}
.journal-progress-line i{display:block;width:100%;height:100%;background:var(--muted);opacity:.6;transform-origin:left;transition:transform .3s cubic-bezier(.22,1,.36,1)}
.journal-progress-label{display:flex;align-items:center;gap:5px;min-width:0;font-size:9px;line-height:1.4;white-space:nowrap}
.journal-progress-label b{font-weight:400;font-size:9px;min-width:9px}
.therapy-root .journal-progress-line .is-current{color:var(--paper)}
.journal-progress-line .is-current .journal-progress-track{height:4px}
.journal-progress-line .is-current i{opacity:1;background:var(--paper)}
.journal-progress-line .is-pending .journal-progress-label{opacity:.65}
.therapy-root .journal-review-link{display:block;margin:0 0 10px;padding:4px 0 8px;min-height:36px;border:0;background:transparent;color:var(--muted);font-size:11px;text-align:left}
.journal-flow-stage{position:relative;isolation:isolate;margin:0;overflow-anchor:none}
.journal-step-card{position:relative;display:flex;flex-direction:column;min-height:270px;padding:22px;margin:0;border:1px solid var(--stroke);border-radius:var(--radius);background:var(--surface);color:var(--paper)}
.journal-step-card:focus,.journal-guided #journal-note-title:focus{outline:none}
.journal-step-meta{display:flex;justify-content:space-between;gap:15px;align-items:center;color:var(--muted);font-size:9px;line-height:1.5;letter-spacing:.3px;margin-bottom:13px}
.journal-step-meta>span:last-child{text-align:right}
.journal-step-body{display:flex;flex:1;flex-direction:column;justify-content:center;min-width:0}
.therapy-root .journal-step-body .score-row,.therapy-root .journal-step-body .checkin-panel{margin:0;padding:0;border:0;background:transparent;border-radius:0!important;box-shadow:none}
.therapy-root .journal-step-body .score-row{min-height:115px;grid-template-columns:78px minmax(0,1fr);gap:18px}
.therapy-root .journal-step-body .score-art,.therapy-root .journal-step-body .score-art svg{width:78px;height:78px}
.therapy-root .journal-step-body .score-heading label,.therapy-root .journal-step-body .checkin-heading h2{font-size:21px;line-height:1.2}
.therapy-root .journal-step-body .score-heading output,.therapy-root .journal-step-body .checkin-heading output{font-size:11px;font-weight:400}
.therapy-root .journal-step-body .score-limits{font-size:10px}
.journal-step-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px}
.therapy-root .journal-step-actions>button{min-height:46px;padding:10px 4px;background:transparent;border:0;color:var(--muted);font-size:12px}
.journal-step-actions>[data-flow-back]:disabled{visibility:hidden}
.therapy-root .journal-step-actions>.flow-skip{min-height:46px;padding:10px 8px;color:var(--paper);text-decoration:underline;text-underline-offset:5px;touch-action:manipulation}
.journal-progress-line .is-skipped .journal-progress-track{background:repeating-linear-gradient(to right,var(--stroke) 0 7px,transparent 7px 11px)}
.journal-progress-line .is-skipped .journal-progress-label{color:var(--muted)}
.therapy-root .journal-step-actions>.flow-next{display:flex;justify-content:space-between;align-items:center;gap:25px;min-width:138px;padding:12px 17px;background:var(--paper);color:var(--ink);border:1px solid transparent}
.journal-step-actions>.flow-next:disabled{background:var(--surface-raised);color:var(--muted);border-color:var(--stroke);opacity:.65;cursor:default}
.journal-step-body .mood-choices{gap:6px}
.journal-step-body .mood-choice{min-height:70px;padding:10px 2px;gap:10px;font-size:10px}
.journal-step-body .checkin-heading{margin-bottom:17px}
.journal-step-body .sleep-choices button{min-height:50px;font-size:12px}
.flow-habit-question{margin:8px 0 18px;font-size:15px;line-height:1.5}
.flow-habit-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.therapy-root .flow-habit-choices button{min-height:48px;padding:10px;background:var(--surface-raised);color:var(--paper);border:1px solid var(--stroke);font-size:13px}
.therapy-root .flow-habit-choices button[aria-pressed=true]{background:var(--paper);color:var(--ink);border-color:var(--paper)}
.flow-habit-choices button:disabled{opacity:.65}.flow-habit-choices button:disabled[aria-pressed=true]{opacity:1}
.journal-step-body .energy-input input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:25px;height:25px;margin-top:-10px;background:var(--ink);border:5px solid var(--paper);border-radius:50%}
.journal-step-body .energy-input input::-moz-range-thumb{width:15px;height:15px;background:var(--ink);border:5px solid var(--paper);border-radius:50%}
.journal-vapor{position:absolute;inset:0;z-index:2;pointer-events:none}
.journal-vapor-strip{position:absolute;inset:0;width:100%;height:100%;margin:0;pointer-events:none;will-change:opacity,transform,filter}
.therapy-root .journal-guided .note-panel{margin:14px 0 0;padding:22px;background:var(--surface);border-color:var(--stroke)}
.journal-guided .note-panel h2{font-size:18px;margin-bottom:18px}
.therapy-root .journal-guided .note-panel textarea{min-height:150px;font-size:16px}
.journal-guided .journal-mic{margin:6px 0 12px auto}
.journal-save-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--stroke);padding-top:14px;margin-top:2px}
.journal-save-row>span{font-size:9px;color:var(--muted);line-height:1.5;max-width:22ch}
.therapy-root .journal-save-row>button{min-height:46px;padding:12px 17px;flex-shrink:0;background:var(--paper);color:var(--ink);font-size:12px;border:1px solid transparent}
.journal-guided .note-privacy{margin-top:14px;font-size:9px}
.therapy-root[data-view=journal] .toast{bottom:calc(94px + env(safe-area-inset-bottom,0px))}
@media(max-width:599px){
 .journal-progress-caption{font-size:8px;letter-spacing:1px}.journal-progress-copy p{font-size:11px}
 .journal-step-card{padding:18px;min-height:252px}.journal-step-actions{margin-top:16px}
 .therapy-root .journal-step-body .score-row{grid-template-columns:58px minmax(0,1fr);gap:12px}
 .therapy-root .journal-step-body .score-art,.therapy-root .journal-step-body .score-art svg{width:58px;height:58px}
 .therapy-root .journal-step-body .score-heading label,.therapy-root .journal-step-body .checkin-heading h2{font-size:17px}
 .therapy-root .journal-step-body .score-heading output{font-size:9px;padding:7px}
 .journal-step-body .mood-choice{font-size:8px;min-height:65px}.journal-step-body .mood-choices{gap:4px}
 .flow-habit-question{font-size:14px}.therapy-root .journal-guided .note-panel{padding:18px}
 .journal-save-row{gap:10px}.therapy-root .journal-save-row>button{padding:12px;font-size:11px}
}
@media(min-width:1024px){.therapy-root:not([data-inline])[data-view=journal] .toast{bottom:25px}}
@media(prefers-reduced-motion:reduce){.journal-progress-line i{transition:none}.journal-vapor{display:none}}

/* Native-sized controls; no delayed colour transition after a one-tap answer. */
.therapy-root .journal-step-body button{transition:none;touch-action:manipulation}
.therapy-root .journal-step-body input[data-daily-range]{height:48px;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.therapy-root .journal-step-body .energy-input{height:48px}
.therapy-root .journal-step-body .energy-input input::-webkit-slider-thumb{width:28px;height:28px;margin-top:-11.5px}
.therapy-root .journal-step-body .energy-input input::-moz-range-thumb{box-sizing:border-box;width:28px;height:28px}
.flow-response{font-size:10px;line-height:1.5;color:var(--muted);text-align:right}
.journal-step-card.is-accepted .flow-response{color:var(--paper)}
.therapy-root .journal-step-body .flow-habit-panel .checkin-heading h2{font-size:24px}
.journal-step-body .flow-habit-choices{margin-top:25px}
@media(max-width:599px){.therapy-root .journal-step-body .flow-habit-panel .checkin-heading h2{font-size:21px}}

.journal-autosave-row{min-height:45px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--stroke);padding-top:10px;margin-top:2px;font-size:11px;line-height:1.5;color:var(--muted)}
.journal-autosave-row [data-save-state=saved]{color:var(--paper)}
.therapy-root .journal-autosave-row button{min-height:44px;padding:8px 12px;background:transparent;border:1px solid var(--stroke);font-size:11px}
.journal-autosave-row button[hidden]{display:none}
@media(max-width:599px){
 .journal-progress-line.is-detailed{grid-template-columns:repeat(3,minmax(0,1fr));gap:0 12px;margin-top:10px}
 .therapy-root .journal-progress-line button{min-height:47px;gap:8px}
}

/* Filling stays quiet; labelled navigation belongs to the answer review. */
.journal-progress-copy.is-minimal{justify-content:flex-end}
.journal-progress-copy.is-minimal .journal-progress-count{padding-top:0;font-size:10px}
.journal-progress-line.is-compact{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:9px;margin-bottom:5px;min-height:18px}
.journal-progress-line.is-compact>span{position:relative;display:block;min-width:0;padding-top:1px}
.journal-progress-line.is-compact .journal-progress-track{height:3px}
.journal-progress-line.is-compact>.is-current::after{content:"";position:absolute;top:9px;left:50%;width:3px;height:3px;margin-left:-1.5px;border-radius:50%;background:var(--paper)}
