/* In-flow guidance: no backdrop, floating panels, or blocked page controls. */
.journey { margin: 24px 4.5% 0; scroll-margin-top: 88px; }
.journey[hidden] { display: none; }
.journey-card { position: relative; max-width: 100%; padding: 22px 24px 18px; border: 1px solid #dcd3f1; border-radius: 16px; background: #fcfaff; }
.journey-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.journey-top > span { color: #695592; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.journey h2 { margin: 0 0 8px; font: 650 20px/1.3 Manrope, system-ui, sans-serif; color: var(--ink); }
.journey h2:focus { outline: none; }
.journey p { max-width: 840px; margin: 0; font-size: 14px; line-height: 1.6; color: #51534e; }
.journey p.journey-tip { margin-top: 8px; font-size: 13px; color: #6b617b; }
.journey-track { display: flex; gap: 5px; max-width: 280px; margin-top: 18px; }
.journey-track i { height: 3px; flex: 1; border-radius: 2px; background: #e9e3f1; }
.journey-track .visited { background: var(--accent); }
.journey-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.journey-actions > span { flex: 1; }
.journey-actions button { min-height: 42px; }
.journey-close, .journey-text-button { border: 0; background: transparent; color: #675584; cursor: pointer; font: inherit; }
.journey-close { width: 34px; height: 34px; border-radius: 8px; font-size: 23px; line-height: 1; }
.journey-text-button { padding: 8px 4px; font-size: 13px; font-weight: 600; text-underline-offset: 4px; }
.journey-text-button:hover { text-decoration: underline; }
.journey-close:hover { background: var(--accent-soft); }
.journey button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.journey button:disabled { cursor: default; opacity: .45; }
.journey-highlight { outline: 2px solid var(--accent) !important; outline-offset: 6px; scroll-margin-block: 100px; border-radius: 10px; }
.journey-save-error { margin-top: 14px; font-size: 13px; color: #8a4c25; }
.journey-save-status { display: block; min-height: 14px; margin-top: 6px; color: var(--muted); font-size: 11px; }
.journey-return { position: fixed; right: 24px; bottom: 24px; z-index: 12; min-height: 42px; padding: 10px 16px; border: 1px solid #dcd3f1; border-radius: 24px; background: var(--paper); color: var(--accent); box-shadow: var(--shadow); font: 600 13px system-ui, sans-serif; cursor: pointer; }
.journey-return[hidden] { display: none; }
@media (max-width: 760px) {
  .journey { margin: 18px 17px 0; }
  .journey-card { padding: 14px 16px; }
  .journey h2 { font-size: 18px; }
}
@media (max-width: 400px) {
  .journey-actions { gap: 8px; }
  .journey-actions .primary, .journey-actions .secondary { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
