/* Scoped to Ensayo ES/EN. */
.re-journey{margin:20px 0 24px;padding:clamp(16px,3vw,26px);border:1px solid var(--border);border-top:3px solid var(--accent-cyan);border-radius:12px;background:var(--surface);scroll-margin-top:20px;min-width:0}
.re-journey:empty{display:none}
.re-journey .re-journey-kicker{font-size:.75rem;letter-spacing:.08em;color:var(--accent-cyan);margin:0 0 8px;font-weight:600}
#re-journey h3{margin:0 0 12px;font-weight:650;font-size:clamp(1.2rem,2vw,1.5rem);line-height:1.35}
.re-journey p{max-width:72ch;line-height:1.65}
.re-journey-steps{display:flex;flex-wrap:wrap;gap:8px 20px;padding:0;list-style:none;margin:18px 0;color:var(--text-muted);font-size:.9rem}
.re-journey-steps li{padding:4px 0;border-bottom:2px solid transparent}
.re-journey-steps [aria-current]{color:var(--accent-cyan);border-color:var(--accent-cyan);font-weight:600}
.re-journey-fields{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:14px;margin:16px 0}
.re-journey label{display:block;font-size:.95rem;line-height:1.5;min-width:0}
.re-journey select,.re-journey input[type=number],.re-journey textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin-top:7px;padding:10px 12px;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:8px;font:inherit;min-height:44px}
.re-journey textarea{resize:vertical}
.re-journey .re-check{display:flex;align-items:flex-start;gap:9px;margin:20px 0 12px}
.re-journey .re-check input{flex:0 0 auto;margin-top:5px}
.re-journey .re-journey-help{font-size:.88rem;color:var(--text-muted)}
.re-journey-audio{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:14px}
.re-journey-audio>div{min-width:0;padding:14px;border:1px solid var(--border);border-radius:8px}
.re-journey audio{width:100%;max-width:100%;display:block;margin:12px 0}
.re-journey details{margin-top:18px;font-size:.9rem}
.re-journey-reset{font:inherit;font-size:.85rem;text-decoration:underline;color:var(--text-muted);border:0;background:transparent;cursor:pointer;padding:12px 0;margin-top:8px;min-height:44px}
.re-journey :focus-visible{outline:2px solid var(--accent-cyan);outline-offset:3px}
.re-journey [data-j=status]:empty{display:none}
.re-journey-has-baseline #re-focus,.re-journey-has-baseline #re-next,.re-journey-has-baseline #re-change,.re-journey-has-baseline #re-repeat-attempt,.re-journey-choosing #re-attempt{display:none}
@media(max-width:600px){.re-journey-fields,.re-journey-audio{grid-template-columns:1fr}.re-journey .re-source{display:flex;flex-direction:column;align-items:stretch}.re-journey .btn{width:100%;white-space:normal;text-align:center}.re-journey-steps{gap:4px 14px}}
@media print{.re-journey{color:#111;background:#fff;border-color:#777}.re-journey button,.re-journey audio,.re-journey-reset{display:none}.re-journey p,.re-journey h3{color:#111}}

/* One current action area; optional take detail stays closed after capture. */
.re-journey [data-j=controls]>.re-source{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}
.re-journey .re-recording-options{border-top:1px solid var(--border);padding-top:14px}
.re-recording-options>button{margin:12px 0}
.re-selection{font-weight:600;color:var(--accent-cyan)}
.re-latest-panel{padding:16px;border:1px solid var(--border);border-radius:10px;margin:18px 0}
.re-latest-panel>summary{cursor:pointer;font-weight:600}
#re-practice>.re-check{display:none}
#re-practice>p:not([id]){display:none}
#re-practice>h2{font-size:1rem;color:var(--text-muted);margin-bottom:6px}
#re-practice-hint{font-size:.9rem;margin-top:0}
.re-journey .re-instructions{font-size:.9rem;line-height:1.6;padding-left:22px}
.re-journey .re-mic-setup{margin-top:14px}
.re-journey-has-baseline #re-repeat-attempt{display:none}
.re-journey [data-j=controls][hidden],.re-journey [data-j=options][hidden]{display:none!important}

.re-journey .re-brief{list-style:none;padding:0;margin:12px 0;line-height:1.6;color:var(--text-muted)}
.re-saved-options{margin:20px 0;padding:16px;border:1px solid var(--border);border-radius:10px}
.re-saved-options>summary{cursor:pointer;font-weight:600}

#re-other-sources .re-rights{margin:18px 0;padding:12px;border:1px solid var(--border);border-radius:8px}
.re-import-status:empty{display:none}
.re-import-status{overflow-wrap:anywhere;line-height:1.6}
.re-import-status[data-state=error]{border-left:3px solid var(--accent-cyan);padding-left:12px}
.hk-tool-privacy{font-size:.9rem;color:var(--text-muted);margin:18px 0}

/* One practical task within the existing journey. */
.re-practice-card{border-left:3px solid var(--accent-cyan);padding:4px 0 4px 16px;margin:16px 0;min-width:0}
.re-practice-card h4{font-size:1rem;margin:4px 0 10px;color:var(--text)}
.re-practice-card ol{padding-left:22px;margin:8px 0;line-height:1.65}
.re-practice-card li+li{margin-top:8px}

/* Keep the current action together; supporting panels share one accordion group. */
.re-task-transport{margin:18px 0;padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--bg)}
.re-task-transport [data-j=controls]>.re-source{margin:0;align-items:stretch}
.re-task-transport [data-j=controls] .btn{flex:1 1 180px;min-height:48px}
.re-task-transport .re-recording-options{margin:14px 0 0;padding-top:8px}
.re-task-transport .re-performance{margin-bottom:0}
.re-journey .re-practice-card{margin-bottom:12px}
.re-journey [data-j=retry-first]{margin:12px 0 0;min-height:48px}
.re-journey [data-j=suggestion]{line-height:1.65}
.re-journey details>summary,.re-latest-panel>summary{line-height:1.5;padding:8px 0}
.re-journey [data-j=keep] p{font-size:.9rem;color:var(--text-muted)}
@media(max-width:600px){.re-task-transport{padding:12px}.re-task-transport [data-j=controls]>.re-source{gap:10px}.re-task-transport [data-j=controls] .btn{flex-basis:100%}}
/* Step changes must leave their heading below the sticky navigation. */
.hk-ensayo-simple .re-journey{scroll-margin-top:100px}
.hk-ensayo-simple .skip-link:not(:focus){left:-10000px;transform:none}
@media(max-width:480px){.hk-ensayo-simple .re-journey{scroll-margin-top:84px}}

/* A single goal precedes capture; continuation appears only after both takes. */
.re-journey [data-j=goal-wrap]{padding:14px 0;border-bottom:1px solid var(--border);margin-bottom:16px}
.re-journey [data-j=goal-wrap] select{max-width:40rem}
.re-journey [data-j=portable]{border:1px solid var(--border);border-top:3px solid var(--accent-cyan);border-radius:10px;padding:16px;margin-top:24px}
.re-journey [data-j=portable] .btn{margin:6px 8px 6px 0;white-space:normal}
.re-journey [hidden]{display:none!important}

/* Ensayo 271/216: audio states and a subordinate practice route. */
.re-countdown{display:block;text-align:center;font-size:clamp(3rem,9vw,5rem);font-weight:700;line-height:1.1;color:var(--accent,#57c4c0);padding:12px}
.re-countdown[hidden]{display:none}
.re-performance.is-counting{border-color:var(--accent,#57c4c0)}
.re-audio-label{color:var(--text-muted,#b8c5ca);line-height:1.6;margin:0 0 14px}
.re-journey-steps{gap:12px;border-bottom:1px solid #ffffff20;padding-bottom:12px}
.re-journey-steps li{background:transparent;border:0;border-radius:0;padding:6px 0;min-height:0}
#re-original-wrap{margin:16px 0}
#re-library-panel{margin-top:16px}
@media(max-width:600px){.re-journey-steps{display:flex;flex-wrap:wrap}.re-reference-controls .btn{width:100%}}
.hk-rehearsal-preview #re-journey .re-journey-steps{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:.82rem;padding:0 0 12px;margin:14px 0;border-bottom:1px solid #ffffff20}
.hk-rehearsal-preview #re-journey .re-journey-steps li{flex:0 1 auto;padding:4px 0;border:0;border-radius:0;background:transparent;line-height:1.5}
.hk-rehearsal-preview #re-journey .re-journey-steps li[aria-current]{background:transparent;color:var(--accent-cyan,#70c7b8);border:0}
/* Leave the section heading below Ensayo's sticky stage navigation. */
.hk-ensayo-simple :is(#re-choose,#re-review,#re-practice,#re-results){scroll-margin-top:110px}
@media(max-width:480px){.hk-ensayo-simple :is(#re-choose,#re-review,#re-practice,#re-results){scroll-margin-top:100px}}
