.support-journey { max-width: 1000px; margin-inline: auto; border: 1px solid #d4def0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 7px 9px 0 -1px #e0e8fc; }
.journey-topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 88px; padding: 20px 30px; border-bottom: 1px solid #e3e9f4; }
.journey-topbar-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.journey-brand-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; background: var(--blue); border-radius: 12px; }
.journey-topbar-title strong { display: block; font-size: 16px; font-weight: 500; letter-spacing: -.3px; }
.journey-topbar-title > div > span { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #647591; margin-top: 5px; }
.journey-topbar-title .status-dot { width: 5px; height: 5px; }
.journey-controls { display: flex; gap: 6px; flex-shrink: 0; }
.journey-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 12px; border: 1px solid #dce4f3; border-radius: 7px; color: #455c82; background: #f8faff; font-size: 12px; }
.journey-controls button:first-child { min-width: 100px; }
.journey-controls button:hover { border-color: #b5c9f0; color: var(--blue); background: #edf2ff; }
.journey-controls button:disabled { opacity: .5; cursor: default; }
.journey-controls .icon { width: 15px; height: 15px; }
#journey-replay .icon { width: 16px; height: 16px; flex-shrink: 0; }
.journey-chat { display: flex; flex-direction: column; min-width: 0; height: 540px; }
.journey-feed { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: auto; overflow-anchor: none; padding: 30px 46px 8px; scrollbar-width: thin; scrollbar-color: #c9d5ec transparent; }
.journey-feed:focus-visible { outline-offset: -3px; }
.journey-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; min-height: 310px; padding: 25px; text-align: center; }
.journey-empty > span { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid #dce5f7; border-radius: 16px; background: #f2f6ff; color: var(--blue); margin-bottom: 4px; }
.journey-empty .icon { width: 24px; height: 24px; }
.journey-empty strong { font-size: 18px; letter-spacing: -.4px; font-weight: 450; }
.journey-empty p { font-size: 12px; color: #73829b; }
.journey-message { margin-bottom: 25px; animation: journey-arrive .24s var(--ease) both; }
.journey-message-label { display: block; font-size: 12px; font-weight: 500; color: var(--ink); margin-bottom: 7px; }
.journey-message-label > span { font-size: 10px; font-weight: 400; color: #76859f; margin-left: 5px; }
.journey-customer { display: flex; flex-direction: column; align-items: flex-end; }
.journey-customer > .journey-message-label { margin-right: 2px; color: #75839b; font-size: 11px; font-weight: 400; }
.journey-customer > p { max-width: 80%; width: fit-content; padding: 14px 18px; border-radius: 12px 12px 3px 12px; background: var(--pale); color: #364974; font-size: 15px; line-height: 1.75; }
.journey-agent { display: flex; align-items: flex-start; gap: 12px; max-width: 83%; }
.journey-ai-avatar { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--blue); }
.journey-agent > .avatar { width: 34px; height: 34px; font-size: 10px; }
.journey-agent > div { flex: 1; min-width: 0; padding-top: 1px; }
.journey-agent p { font-size: 15px; line-height: 1.85; color: #455470; }
.journey-agent p strong { font-weight: 550; color: #253b64; }
.journey-typed-reply { display: grid; }
.journey-text-stream, .journey-text-reserve { grid-area: 1 / 1; min-width: 0; }
.journey-text-stream { align-self: start; }
.journey-text-reserve { visibility: hidden; pointer-events: none; user-select: none; }
.journey-agent[data-streaming="true"] .journey-citation { visibility: hidden; }
.journey-citation { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 12px; font-size: 11px; color: var(--blue); }
.journey-citation .icon { width: 13px; height: 13px; }
.journey-citation > span { color: #7484a1; margin-left: 4px; }
.journey-thinking { display: flex; gap: 12px; margin: 29px 0 26px; animation: journey-arrive .35s var(--ease) both; }
.journey-thinking-card { flex: 1; min-width: 0; max-width: 380px; padding: 17px 18px 14px; border: 1px solid #dbe5fa; border-radius: 11px; background: #f8faff; overflow: hidden; }
.journey-thinking-card > div:first-child { display: flex; align-items: center; gap: 13px; }
.journey-thinking-card strong { font-size: 14px; font-weight: 450; color: #37578c; }
.journey-thinking-card > span { display: block; font-size: 11px; color: #7285a4; line-height: 1.7; margin-top: 7px; }
.journey-scan { height: 2px; border-radius: 4px; overflow: hidden; background: #e3ebfc; margin-top: 14px; }
.journey-scan > i { display: block; height: 100%; width: 24%; background: #9eb9ef; border-radius: inherit; animation: journey-scan 2s ease-in-out infinite; }
.journey-transfer { margin: 5px 0 28px; padding: 12px 0; text-align: center; color: #7385a2; font-size: 12px; line-height: 1.7; animation: journey-arrive .35s var(--ease) both; }
.journey-progress { padding: 19px 30px 18px; border-top: 1px solid #e0e7f3; background: #fff; }
.journey-progress progress { display: block; width: 100%; height: 3px; border: 0; border-radius: 3px; appearance: none; background: #e6ecf7; color: var(--blue); }
.journey-progress progress::-webkit-progress-bar { background: #e6ecf7; border-radius: 3px; }
.journey-progress progress::-webkit-progress-value { background: var(--blue); border-radius: 3px; }
.journey-progress progress::-moz-progress-bar { background: var(--blue); border-radius: 3px; }
.journey-progress ol { display: flex; justify-content: space-between; list-style: none; margin: 14px 0 0; padding: 0; gap: 10px; }
.journey-progress li { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #8a99b1; }
.journey-progress li .icon { width: 14px; height: 14px; }
.journey-progress li.is-reached { color: #597099; }
.journey-progress li[aria-current="step"] { color: var(--blue); }
.journey-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.support-journey[data-playing="false"] *, .support-journey[data-playing="false"] *::after { animation-play-state: paused; }
.support-journey[data-instant="true"] *, .support-journey[data-instant="true"] *::after { animation: none !important; }
.support-journey[data-instant="true"][data-phase="complete"] .journey-chat { height: auto; min-height: 540px; }
.support-journey[data-instant="true"][data-phase="complete"] .journey-feed { flex: none; overflow: visible; }
@keyframes journey-arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes journey-scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(520%); } }
@media (max-width: 767px) {
  .support-journey { border-radius: 13px; box-shadow: 4px 6px 0 -1px #e0e8fc; }
  .journey-topbar { min-height: 81px; padding: 17px; gap: 8px; }
  .journey-topbar-title { gap: 9px; }
  .journey-brand-avatar { width: 35px; height: 35px; border-radius: 10px; }
  .journey-brand-avatar img { width: 25px; height: 25px; }
  .journey-topbar-title strong { font-size: 14px; }
  .journey-topbar-title > div > span { font-size: 10px; line-height: 1.5; margin-top: 3px; }
  .journey-controls { gap: 4px; }
  .journey-controls button { min-height: 40px; padding: 8px; gap: 5px; font-size: 11px; }
  .journey-controls button:first-child { min-width: 40px; width: 40px; }
  #journey-replay { width: 40px; }
  #journey-play > span, #journey-replay > span { display: none; }
  .journey-controls .icon { width: 14px; height: 14px; }
  .journey-chat { height: 560px; }
  .journey-feed { padding: 26px 19px 7px; }
  .journey-empty { min-height: 320px; padding-inline: 5px; }
  .journey-empty strong { font-size: 16px; }
  .journey-empty p { font-size: 11px; }
  .journey-customer > p { max-width: 94%; font-size: 13px; padding: 12px 14px; }
  .journey-agent { gap: 9px; max-width: 100%; }
  .journey-ai-avatar, .journey-agent > .avatar { width: 30px; height: 30px; border-radius: 8px; }
  .journey-ai-avatar img { width: 22px; height: 22px; }
  .journey-agent > .avatar { border-radius: 50%; }
  .journey-agent p { font-size: 13px; }
  .journey-message-label { font-size: 11px; }
  .journey-message-label > span { font-size: 10px; }
  .journey-citation { font-size: 10px; line-height: 1.7; }
  .journey-citation > span { margin-left: 0; }
  .journey-thinking { gap: 9px; }
  .journey-thinking-card { padding: 14px; }
  .journey-thinking-card strong { font-size: 12px; }
  .journey-thinking-card > span { font-size: 11px; }
  .journey-transfer { font-size: 11px; }
  .journey-progress { padding: 17px; }
  .journey-progress ol { gap: 8px; margin-top: 12px; }
  .journey-progress li { flex-direction: column; text-align: center; gap: 5px; font-size: 9px; line-height: 1.6; }
  .journey-progress li .icon { width: 13px; height: 13px; }
}
@media (max-width: 399px) {
  .journey-topbar { padding-inline: 14px; }
  .journey-topbar-title > div > span { font-size: 9px; min-height: 27px; max-width: 100px; }
  .journey-topbar-title .status-dot { display: none; }
  .journey-thinking-card { padding-inline: 12px; }
}
@media (max-width: 359px) { .journey-brand-avatar { display: none; } }
@media (prefers-reduced-motion: reduce) { .support-journey *, .support-journey *::after { animation: none !important; scroll-behavior: auto !important; } }

/* A horizontal row of chats, with neighboring cards visible at the edges. */
.conversation-deck { position: relative; width: 100%; margin-inline: auto; }
.journey-viewport { overflow: hidden; padding-bottom: 8px; }
.journey-track { position: relative; width: min(1000px, 100%); margin-inline: auto; }
.conversation-deck[data-ready="true"] .journey-track { display: flex; gap: 24px; width: min(1000px, calc(100% - 144px)); height: var(--deck-height); }
.deck-slot { position: relative; flex: 0 0 100%; min-width: 0; }
.conversation-deck .support-journey { position: relative; width: 100%; box-shadow: 3px 5px 0 -1px #e0e8fa; }
.deck-preview { position: absolute !important; inset: 0; height: 100%; pointer-events: none; opacity: .55; }
.deck-preview *, .deck-preview *::after { animation: none !important; transition: none !important; }
.deck-preview .journey-chat { height: calc(100% - 160px) !important; min-height: 0 !important; }
.deck-preview .journey-feed { overflow: hidden !important; flex: 1 !important; }
.deck-preview .journey-progress { position: absolute; bottom: 0; width: 100%; }
.deck-preview .journey-progress-line { height: 3px; border-radius: 3px; background: #e6ecf7; }
.deck-navigation { display: flex; align-items: center; justify-content: center; margin-top: 10px; min-height: 44px; }
.deck-arrow { position: absolute; z-index: 5; top: var(--deck-midpoint, 350px); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d5def0; border-radius: 50%; background: var(--canvas); color: var(--blue); transform: translateY(-50%); transition: border-color .2s, background .2s, box-shadow .2s; box-shadow: 0 0 0 7px var(--canvas); }
#deck-back { left: 12px; }
#deck-next { right: 12px; }
.deck-arrow .icon { width: 18px; height: 18px; }
#deck-back .icon { transform: rotate(180deg); }
.deck-arrow:hover:not(:disabled) { background: #edf2ff; border-color: #9eb7e7; }
.deck-arrow:disabled { color: #b7c2d5; border-color: #e2e7f0; cursor: default; }
.deck-positions { display: flex; align-items: center; }
.deck-position { display: grid; place-items: center; width: 40px; height: 44px; padding: 0; border-radius: 7px; background: transparent; }
.deck-position:disabled { cursor: default; }
.deck-marker { display: block; width: 7px; height: 7px; border-radius: 999px; background: #c7d2e8; transition: width .35s var(--ease), background .25s; }
.deck-position[aria-current="true"] .deck-marker { width: 28px; background: var(--blue); }
.deck-position:hover:not(:disabled) .deck-marker { background: #7896cd; }
.deck-position[aria-current="true"]:hover .deck-marker { background: var(--blue); }
.journey-pane { min-height: 100%; }
.journey-confirmation { position: relative; max-width: 545px; margin: 0 0 28px 46px; border: 1px solid #c8d7f5; border-radius: 13px; background: #fff; overflow: hidden; animation: journey-arrive .3s var(--ease) both; }
.journey-confirm-review { padding: 22px; }
.confirmation-heading { display: flex; align-items: center; gap: 11px; }
.confirmation-heading > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--blue); background: #edf2ff; }
.confirmation-heading > span .icon { width: 18px; height: 18px; }
.confirmation-heading strong { font-size: 15px; font-weight: 500; letter-spacing: -.3px; }
.confirmation-heading div > span { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 10px; color: #778ba8; }
.confirmation-heading div .icon { width: 11px; height: 11px; color: var(--green); }
.confirmation-heading > .icon { margin-left: auto; width: 16px; height: 16px; color: #91a2bd; }
.confirmation-amount { margin: 21px 0 18px; font-size: 32px; font-weight: 500; letter-spacing: -1px; line-height: 1.1; }
.confirmation-amount > span { display: block; font-size: 11px; color: #788aa6; font-weight: 400; letter-spacing: 0; margin-top: 7px; }
.confirmation-details { margin: 19px 0 0; padding: 0; }
.confirmation-details > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid #e8edf6; font-size: 12px; line-height: 1.5; }
.confirmation-details dt { color: #7d8da5; }
.confirmation-details dd { text-align: right; color: #364b70; margin: 0; }
.confirmation-note { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: #637b98; line-height: 1.7; margin-top: 14px; }
.confirmation-note .icon { flex-shrink: 0; width: 13px; height: 13px; margin-top: 3px; color: #54987a; }
.confirmation-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; color: #465975; font-size: 12px; line-height: 1.65; cursor: pointer; }
.confirmation-consent input { appearance: auto; width: 16px; height: 16px; min-width: 16px; margin: 2px 0 0; accent-color: var(--blue); }
.confirmation-actions { display: flex; gap: 8px; margin-top: 17px; }
.confirmation-actions button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 11px 15px; border-radius: 7px; border: 1px solid #d5e0f4; background: white; font-size: 12px; color: #506382; }
.confirmation-actions button[type="submit"] { background: var(--blue); border-color: var(--blue); color: white; }
.confirmation-actions button[type="submit"]:disabled { opacity: .4; cursor: default; }
.confirmation-button-label { display: grid; }
.confirmation-button-label > span { grid-area: 1 / 1; }
.confirmation-button-reserve { visibility: hidden; }
.confirmation-actions button.is-demo-pressed { transform: scale(.97); }
.journey-confirmation[data-decision="approved"] { border-color: #c8ded2; }
.journey-confirmation[data-decision="approved"] button[type="submit"] { opacity: 1; background: #edf6f0; color: #3e7759; border-color: #c8ded2; }
.journey-confirmation[data-decision="canceled"] button[type="submit"] { opacity: 1; background: #f3f5f8; color: #687b97; border-color: #d7dfeb; }
.journey-confirmation[data-decision] .confirmation-consent { cursor: default; }
.journey-confirmation[data-decision] input:disabled { opacity: 1; }
.journey-confirmation[data-decision] [data-cancel] { opacity: .45; cursor: default; }
.confirmation-cursor { position: absolute; top: 0; left: 0; width: 28px; height: 32px; color: #172033; pointer-events: none; z-index: 2; will-change: transform; }
.confirmation-cursor svg { position: relative; display: block; transform-origin: 3px 2px; }
.confirmation-cursor > i { position: absolute; left: -14px; top: -15px; width: 34px; height: 34px; border: 1.5px solid #124bce; border-radius: 50%; opacity: 0; }
.deck-preview .confirmation-cursor { display: none; }
.confirmation-actions button:not(:disabled):hover { filter: brightness(.94); }
.confirmation-actions .icon { width: 14px; height: 14px; }
.confirmation-demo { margin-top: 13px; font-size: 10px; line-height: 1.6; color: #8997ae; }
.journey-fit { max-width: 480px; margin: 0 0 28px 46px; padding: 16px 19px; border: 1px solid #dbe5f5; border-radius: 11px; background: #f8faff; animation: journey-arrive .3s var(--ease) both; }
.journey-fit-title { display: flex; align-items: center; gap: 7px; color: #35558c; font-size: 12px; font-weight: 500; margin-bottom: 10px; }
.journey-fit-title .icon { width: 15px; height: 15px; }
.journey-fit > div:not(:first-child) { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 11px; color: #7486a1; }
.journey-fit > div > span:last-child { display: flex; align-items: center; gap: 5px; color: #48665a; }
.journey-fit > div > span .icon { width: 12px; height: 12px; color: var(--green); }
.journey-incident { max-width: 550px; margin: 0 0 28px 46px; padding: 17px 19px; background: #edf2ff; border: 1px solid #d5e0fb; border-radius: 11px; animation: journey-arrive .3s var(--ease) both; }
.journey-incident > div { display: flex; align-items: center; gap: 8px; }
.journey-incident .icon { width: 15px; height: 15px; color: var(--blue); }
.journey-incident strong { font-size: 12px; font-weight: 500; color: #344f81; }
.journey-incident div > span { font-size: 10px; color: var(--blue); margin-left: auto; }
.journey-incident p { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 10px; color: #6982b0; }
.journey-incident p > span { font-size: 10px; color: #7b8da9; }
.support-journey[data-playing="false"] .journey-confirmation { animation-play-state: running; }
@media (max-width: 767px) {
  .conversation-deck { width: calc(100% + 24px); margin-inline: -12px; }
  .conversation-deck[data-ready="true"] .journey-track { width: calc(100% - 48px); gap: 12px; }
  .deck-navigation { margin-top: 8px; }
  .deck-arrow { width: 40px; height: 40px; box-shadow: 0 0 0 3px var(--canvas); }
  #deck-back { left: 0; }
  #deck-next { right: 0; }
  .deck-preview .journey-controls button:last-child { width: 40px; }
  .deck-preview .journey-controls button:last-child > span { display: none; }
  .journey-confirmation, .journey-fit, .journey-incident { margin-left: 0; }
  .journey-confirm-review { padding: 17px; }
  .confirmation-heading { gap: 8px; }
  .confirmation-heading strong { font-size: 14px; }
  .confirmation-details > div { font-size: 11px; gap: 10px; }
  .confirmation-actions button { font-size: 11px; padding-inline: 11px; }
  .confirmation-note, .confirmation-consent { font-size: 11px; }
  .confirmation-demo { font-size: 9px; }
  .journey-fit { padding: 14px; }
  .journey-incident { padding: 14px; }
  .journey-incident > div { flex-wrap: wrap; }
  .journey-incident p { align-items: flex-start; flex-direction: column; gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .deck-arrow, .deck-marker { transition: none !important; }
}
html.motion-paused .deck-arrow, html.motion-paused .deck-marker { transition: none !important; }
