/* Motion thesis: the selected date travels to the new selection while its tickets
   change in place. Other movement only acknowledges an action or a real update. */
:root{--ease-out:cubic-bezier(.16,1,.3,1)}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
input,textarea{caret-color:var(--green)}
.button,.date-chip,.filter-chip,.record-row,.mobile-nav a{transition:background-color 160ms,color 160ms,border-color 160ms,transform 160ms var(--ease-out)}
.button:active,.filter-chip:active{transform:scale(.97)}
.button:hover>svg,.hero-secondary:hover>svg{transform:translateX(3px)}
.button>svg{transition:transform 180ms var(--ease-out)}
.date-chip:active{transform:scale(.96)}
.date-chip.is-active{view-transition-name:selected-date}
.departure-list{view-transition-name:schedule-results}
::view-transition-old(root),::view-transition-new(root){animation:none}
::view-transition-group(selected-date){animation-duration:260ms;animation-timing-function:var(--ease-out)}
::view-transition-old(schedule-results){animation:ticket-out 120ms ease-out both}
::view-transition-new(schedule-results){animation:ticket-in 240ms var(--ease-out) both}
@keyframes ticket-out{to{opacity:0;transform:translateY(-5px)}}
@keyframes ticket-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
#navigation-progress{position:fixed;top:0;left:var(--sidebar);right:0;height:3px;background:var(--green);transform:scaleX(0);transform-origin:left;z-index:100;opacity:0;pointer-events:none}
.is-navigating #navigation-progress{opacity:1;transform:scaleX(.82);transition:transform 2s var(--ease-out)}
.booking-section[aria-busy=true] .departure-list{opacity:.65;transition:opacity 150ms}
.schedule-feedback:not(.sr-only){background:#f0edff;color:#4f4493;border-radius:12px;padding:12px 16px;margin:0 0 15px}
.today-panel{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(200px,1fr);background:white;border:1px solid var(--line);border-radius:24px;overflow:hidden;margin-bottom:46px}
.today-copy{padding:34px 38px}.today-greeting{font-size:14px;margin:0 0 10px;color:#65617d}
.today-copy h1{font-size:34px;line-height:1.22;letter-spacing:-1.1px;margin:0 0 18px;max-width:18ch;text-wrap:balance}
.today-copy>p:not(.today-greeting){font-size:12px;color:#69677b;line-height:1.8;margin:0 0 21px}
.today-copy .hero-actions{margin:0;flex-wrap:wrap;gap:16px}.today-copy .button{min-height:44px;font-size:12px}
.today-scene{position:relative;min-height:255px}.today-scene img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.today-trip-state{position:absolute;bottom:20px;left:20px;display:flex;align-items:center;gap:9px;border-radius:9px;padding:10px 14px;background:#fff;color:#38314f;font-size:11px;font-weight:700}
.today-trip-state svg{height:18px;width:18px}
.trip-journey{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:28px 0 30px;padding:0}
.journey-step{position:relative;display:flex;align-items:flex-start;gap:10px;min-width:0;padding-top:16px;border-top:2px solid #dedfeb;color:#767184}
.journey-node{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:#ebebf3;color:#79748b}
.journey-node svg{width:16px;height:16px}.journey-step strong{display:block;font-size:12px;line-height:1.4;margin:0 0 5px}.journey-step small{display:block;font-size:10px;line-height:1.6}
.journey-step.is-complete{border-color:#6961df;color:#3e385d}.is-complete .journey-node{background:#ebe8ff;color:#5145c5}
.journey-step.is-current{color:#4435bb;border-color:#6452e1}.is-current .journey-node{background:#6150df;color:white}
.journey-step.is-current strong{font-weight:800}.is-current small{color:#665a95}
.live-sync{display:inline-flex;align-items:center;gap:7px;font-size:10px;color:#66617c;white-space:nowrap}
.live-sync:before{content:'';display:block;width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#665ad8}
.live-sync.is-stale{color:#8b512f}.live-sync.is-stale:before{background:#ae6d31}
.chat-messages{display:flex;flex-direction:column;gap:12px;max-height:440px;overflow-y:auto;overscroll-behavior:contain;padding:16px 6px;scrollbar-gutter:stable;background:transparent}
.chat-message{align-self:flex-start;flex-shrink:0;max-width:86%;margin:0;border:1px solid #e8e6ef;border-radius:15px 15px 15px 4px;background:#f6f5fa;padding:13px 16px;overflow-wrap:anywhere}
.chat-message strong{color:#605184;font-size:11px}.chat-message p{white-space:pre-wrap;margin:6px 0;font-size:13px;line-height:1.7}.chat-message time{display:block;font-size:10px;color:#716c82}
.chat-message.is-mine{align-self:flex-end;border-radius:15px 15px 4px 15px;background:#eeebff;border-color:#e6e1fd}.chat-message.is-mine strong{color:#5943b7}
.chat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px 12px;margin-top:16px;border-top:1px solid var(--line);padding-top:18px}
.chat-form textarea{resize:vertical;min-height:50px;background:#fafaff;border-radius:12px;font-size:13px;margin:0;max-height:200px}.chat-form button{min-height:50px;font-size:12px;margin:0}
.chat-send-status{grid-column:1/-1;min-height:1.5em;color:#5c547a;font-size:11px;margin:0}.chat-send-status.is-error{color:#a23c47}
.chat-empty{color:var(--muted);font-size:13px;text-align:center;padding:35px 10px}
.chat-form[aria-busy=true] button,.is-submitting{cursor:wait;pointer-events:none;opacity:.75}
.chat-form[aria-busy=true] button:after,.is-submitting:after{content:'';width:13px;height:13px;flex-shrink:0;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:submit-spin .7s linear infinite}
@keyframes submit-spin{to{transform:rotate(360deg)}}
.upload-preview{display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f9f8ff;overflow-wrap:anywhere;max-width:100%}
.upload-preview img{max-width:100%;width:170px;height:130px;object-fit:contain;background:#efedf5;border-radius:8px}.upload-preview span{font-size:12px;max-width:100%}.upload-preview small{font-size:11px;color:#686078}
.connection{display:flex;align-items:center;justify-content:space-between;gap:16px;bottom:24px;left:calc(var(--sidebar) + 28px);right:auto;transform:none;max-width:min(520px,calc(100vw - var(--sidebar) - 56px));background:#2e2944;color:#fff;border:1px solid #453d61;border-radius:14px;padding:14px 16px;box-shadow:0 10px 30px #25203a25;z-index:101;line-height:1.6;font-size:12px}
.connection[hidden]{display:none}.connection button{background:transparent;border:0;border-radius:6px;color:#fff;min-width:32px;min-height:32px;font-size:23px;padding:0;flex-shrink:0}
.countdown{font-variant-numeric:tabular-nums}.countdown.is-overdue{color:#a64536}
@media(max-width:1100px){.today-copy{padding:28px}.today-copy h1{font-size:29px}.trip-journey{gap:12px}.journey-step{gap:7px}.journey-step strong{font-size:11px}}
@media(max-width:800px){
  #navigation-progress{left:0}.today-panel{grid-template-columns:minmax(0,1fr);border-radius:19px;margin:6px 0 34px}.today-copy{padding:25px 23px}.today-greeting{font-size:12px}.today-copy h1{font-size:30px;max-width:19ch;margin-bottom:14px}.today-copy>p:not(.today-greeting){font-size:12px}.today-scene{min-height:125px;grid-row:1}.today-scene img{object-position:50% 60%}.today-trip-state{left:16px;bottom:14px;font-size:10px;padding:7px 11px}.today-copy .button{font-size:11px;gap:10px}.today-copy .hero-actions{gap:13px}
  .trip-journey{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:22px 0}.journey-step strong{font-size:11px}.journey-step small{font-size:10px}.journey-node{width:27px;height:27px}.journey-step{padding-top:12px}
  .live-sync{font-size:9px;white-space:normal;max-width:120px}.chat-message{max-width:93%;padding:12px 14px}.chat-message p{font-size:12px}.chat-form{gap:8px}.chat-form .button{font-size:11px;padding:12px}.chat-form .button svg{display:none}.chat-form textarea{font-size:14px}.connection{left:16px;right:16px;max-width:none;bottom:calc(84px + env(safe-area-inset-bottom));font-size:12px}
  [data-readiness] table{table-layout:fixed;width:100%}[data-readiness] th,[data-readiness] td{padding:14px 4px;font-size:10px;overflow-wrap:anywhere}[data-readiness] th:first-child{width:28%}[data-readiness] th:last-child{width:22%}
}
@media(prefers-reduced-motion:reduce){
  .button,.date-chip,.filter-chip,.record-row,.mobile-nav a,.button>svg{transition:none}.button:active,.filter-chip:active,.date-chip:active,.button:hover>svg{transform:none}
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
  .chat-form[aria-busy=true] button:after,.is-submitting:after{animation:none;border-right-color:currentColor;border-style:dotted}
  .is-navigating #navigation-progress{transition:none;transform:scaleX(1)}
}
