/* Shared screen layout; keeps the existing brand and does not clip page overflow. */
.seat-map { width:100%; min-width:0; }
.seat--pending,.legend__pending { background:#f5c542; color:#332b11; }
.seat--pending { cursor:not-allowed; }
[data-demo-countdown] { font-variant-numeric:tabular-nums; font-weight:700; }
.bus-deck-title { margin:24px 0 34px; font-size:18px; }
.bus-body { position:relative; width:100%; max-width:780px; height:auto; aspect-ratio:13/4; margin-inline:auto; border:3px solid #9aa8b7; border-radius:32px 86px 86px 32px; background:linear-gradient(90deg,transparent 0 77%,rgba(148,163,184,.14) 77% 77.4%,transparent 77.4%),linear-gradient(180deg,#eef2f6 0 13%,#fbfcfd 13% 87%,#eef2f6 87% 100%); box-shadow:inset 0 0 0 7px rgba(255,255,255,.72); }
.bus-body::before { content:""; position:absolute; inset:92px auto auto -9px; width:12px; height:52px; border-radius:5px 0 0 5px; background:#66788a; box-shadow:159px -105px 0 -3px #66788a,159px 111px 0 -3px #66788a,566px -105px 0 -3px #66788a,566px 111px 0 -3px #66788a; }
.bus-body::after { content:""; position:absolute; left:42px; right:174px; top:50%; height:2px; border-radius:999px; background:linear-gradient(90deg,transparent,#d5dce3 10% 90%,transparent); }
.bus-cabin { position:absolute; z-index:1; top:3.33%; right:1.03%; bottom:3.33%; width:18.46%; overflow:hidden; border-left:3px solid #94a1ae; border-radius:10px 72px 72px 10px; background:linear-gradient(90deg,#f8fafc 0 70%,#dce4eb 70% 100%); pointer-events:none; }
.bus-cabin__windshield { position:absolute; right:12.5%; top:11.2%; width:17.4%; height:77.7%; border-radius:50%; background:#526170; transform:scaleX(.45); }
.bus-cabin__steering-wheel { position:absolute; left:27%; top:19.6%; width:28%; aspect-ratio:1; border:clamp(4px,.77vw,6px) solid #526170; border-radius:50%; }
.bus-cabin__steering-wheel::before,.bus-cabin__steering-wheel::after { content:""; position:absolute; left:14px; top:-4px; width:5px; height:36px; border-radius:999px; background:#526170; }
.bus-cabin__steering-wheel::after { transform:rotate(60deg); }
.bus-cabin__driver-seat { position:absolute; left:19.4%; bottom:15.6%; width:35.4%; height:20.1%; border-radius:14px 14px 8px 8px; background:#7d8b98; box-shadow:0 8px 0 -3px #526170; }
.bus-aisle { position:absolute; z-index:1; right:18.97%; top:45.8%; width:2.05%; height:8.33%; border-radius:50%; background:#d5dce3; pointer-events:none; }
.bus-mobile-service,.bus-mobile-fixtures { display:none; }
.bus-body .seat { z-index:2; width:4.36%; height:13.33%; border-radius:50%; font-size:clamp(10px,1.55vw,12px); box-shadow:0 2px 5px rgba(23,32,42,.18); transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease; }
.bus-body .seat--free:hover { transform:translateY(-2px); box-shadow:0 4px 9px rgba(23,32,42,.25); }
.bus-body .x-1 { left:auto; right:19.87%; }.bus-body .x-2 { left:auto; right:25.26%; }.bus-body .x-3 { left:auto; right:30.64%; }.bus-body .x-4 { left:auto; right:36.03%; }.bus-body .x-5 { left:auto; right:41.41%; }.bus-body .x-6 { left:auto; right:46.79%; }.bus-body .x-7 { left:auto; right:52.18%; }.bus-body .x-8 { left:auto; right:57.56%; }.bus-body .x-9 { left:auto; right:62.95%; }.bus-body .x-10 { left:auto; right:68.33%; }.bus-body .x-11 { left:auto; right:73.72%; }.bus-body .x-12 { left:auto; right:79.10%; }.bus-body .x-13 { left:auto; right:84.49%; }
.bus-body .y-0 { top:9.17%; bottom:auto; }.bus-body .y-1 { top:25.83%; bottom:auto; }.bus-body .y-3 { top:auto; bottom:25.83%; }.bus-body .y-4 { top:auto; bottom:9.17%; }
/* Keep the horizontal seats inside the white passenger compartment. */
@media (min-width:761px) {
    .bus-body::before { display:none; }
    .bus-body::after { left:6%; right:24%; }
    .bus-body .y-0 { top:calc(13% + 7px); bottom:auto; }
    .bus-body .y-1 { top:31%; bottom:auto; }
    .bus-body .y-3 { top:auto; bottom:31%; }
    .bus-body .y-4 { top:auto; bottom:calc(13% + 7px); }
    .bus-body .x-1 { right:23.00%; }
    .bus-body .x-2 { right:28.38%; }
    .bus-body .x-3 { right:33.76%; }
    .bus-body .x-4 { right:39.14%; }
    .bus-body .x-5 { right:44.52%; }
    .bus-body .x-6 { right:49.90%; }
    .bus-body .x-7 { right:55.28%; }
    .bus-body .x-8 { right:60.66%; }
    .bus-body .x-9 { right:66.04%; }
    .bus-body .x-10 { right:71.42%; }
    .bus-body .x-11 { right:76.80%; }
    .bus-body .x-12 { right:82.18%; }
    .bus-body .x-13 { right:87.56%; }
}
html { scroll-padding-top: 100px; }
main, main > *, .panel > *, .detail-layout > *, .seat-page > *, .auth-layout > *, .wide-form > *, .ticket-fields > *, .trip-grid > *, .metric-grid > * { min-width: 0; }
main :is(h1,h2,h3,p,dd,a,strong,summary,legend) { overflow-wrap: anywhere; }
input,select,textarea,fieldset { min-width: 0; max-width: 100%; }
textarea { resize: vertical; }
fieldset { margin-inline: 0; }
button,.button { white-space: normal; overflow-wrap: anywhere; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
img,video,iframe { max-width: 100%; }
pre { max-width: 100%; overflow: auto; }
.topbar__inner { gap: clamp(10px,1.7vw,24px); }
.brand { flex: 0 0 auto; }
.account { min-width: 0; }
.account span { max-width: 180px; overflow-wrap: anywhere; }
.nav { flex-wrap: wrap; }
.mobile-menu-toggle,.panel-menu-toggle { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 8px; min-height: 44px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.mobile-menu-toggle { display: none; }
.panel-menu-toggle { display: none; }
.panel-content .search-form { width: 100%; margin: 0; grid-template-columns: minmax(0,1fr) auto; padding: 16px; gap: 12px; }
.table-wrap { width: 100%; max-width: 100%; overscroll-behavior-inline: contain; }
.table-wrap:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.table-scroll-hint { display: none; color: var(--muted); font-size: 13px; }
.form-actions { align-items: center; }
.form-actions form { max-width: 100%; margin: 0; }
.gallery__thumbs { grid-template-columns: repeat(auto-fit,minmax(80px,1fr)); }
.flash-wrap { position: static; width: min(1180px,calc(100% - 32px)); margin: 16px auto 0; }
.flash { line-height: 1.5; overflow-wrap: anywhere; }
.ticket-form fieldset { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.ticket-form fieldset legend { padding: 0 8px; font-weight: 700; }
.ticket-form .ticket-fields label { margin: 0; }
.ticket-form .ticket-section-help { color: var(--muted); font-size: 14px; line-height: 1.5; }
.ticket-form > fieldset,.ticket-form > .form-actions,.ticket-form > .ticket-section-help { grid-column: 1/-1; }
.panel-content .ticket-form { gap: 24px; }
.ticket-box { min-width: 0; }
.ticket-box .form-actions > * { min-width: 0; }
.ticket-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px; background: var(--surface); border-radius: 12px; }
.ticket-tabs a { padding: 12px 16px; min-height: 44px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.ticket-tabs a[aria-current=page] { background: white; color: var(--green); box-shadow: 0 2px 8px #17202a12; }
.ticket-management-section { scroll-margin-top: 110px; min-width: 0; }
.ticket-management-section > h2 { margin-top: 0; }
.ticket-session summary { list-style: none; }
.ticket-session summary::-webkit-details-marker { display: none; }
.ticket-session > summary { display:flex; gap:16px; align-items:center; justify-content:space-between; }
.ticket-session > summary::after { content:'＋'; flex-shrink:0; }
.ticket-session[open] > summary::after { content:'−'; }
.ticket-session > summary strong,.ticket-session > summary small { display:block; }
.ticket-session > summary small { font-weight:400; color:var(--muted); margin-top:6px; }
@media(min-width:701px) and (max-width:1100px) {
    .trip-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .panel .trip-grid { grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); }
}
@media(max-width:1100px) {
    .topbar__inner { flex-wrap:wrap; padding:12px 0; }
    .account { margin-left:auto; }
    .nav { order:3; width:100%; margin:0; justify-content:flex-start; padding:0; }
    .topbar { position:relative; }
    .panel-nav { top:16px; max-height:calc(100vh - 32px); }
    .detail-layout,.seat-page,.auth-layout { grid-template-columns:minmax(0,1fr); gap:24px; }
    .auth-layout .form-panel { width:100%; max-width:600px; justify-self:center; }
    .metric-grid { grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr)); }
}
@media(min-width:761px) and (max-width:900px) {
    .bus-body::before { display:none; }
    .seat-shell { padding:18px; }
}
@media(max-width:760px) {
    html { scroll-padding-top:20px; }
    .topbar__inner { display:flex; min-height:72px; gap:12px; }
    .brand img { width:120px; }
    .mobile-menu-toggle { display:inline-flex; gap:12px; align-items:center; margin-left:auto; }
    .topbar .account { order:3; flex-basis:100%; justify-content:space-between; margin:0; }
    .topbar .account span { max-width:calc(100% - 64px); }
    .topbar .nav { order:4; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding-top:10px; border-top:1px solid var(--line); }
    .topbar.menu-enhanced:not(.menu-open) :is(.nav,.account) { display:none; }
    .nav a { display:flex; align-items:center; min-height:44px; }
    .panel { width:calc(100% - 24px); grid-template-columns:minmax(0,1fr); gap:12px; padding:16px 0 32px; }
    .panel-menu-toggle { display:flex; width:100%; align-items:center; justify-content:space-between; }
    .panel-nav { position:static; max-height:none; overflow:visible; }
    .panel-nav.panel-menu-enhanced:not(.panel-menu-open) > :not(.panel-menu-toggle) { display:none; }
    .panel-nav.panel-menu-enhanced { padding:8px; }
    .panel-menu-open .panel-menu-toggle { margin-bottom:10px; }
    .panel-content { gap:20px; padding:20px 16px; }
    .panel-content .journey,.panel-content .wide-form,.panel-content .admin-filters,.panel-content .search-form { grid-template-columns:minmax(0,1fr); }
    main [style*="minmax(320px"] { grid-template-columns:minmax(0,1fr)!important; }
    .wide-form .span-2 { grid-column:1/-1; }
    .panel-content .journey-nav { position:static; max-width:100%; }
    .panel-heading { align-items:stretch; flex-direction:column; gap:16px; }
    .panel-content :is(input,select,textarea),input,select,textarea { font-size:16px; }
    .panel-content :is(.button,.button--small),.button,button:not(.seat) { min-height:44px; }
    .panel-content .ticket-form fieldset { padding:16px; }
    .ticket-fields { grid-template-columns:minmax(0,1fr); }
    .ticket-lot { gap:12px; }
    .ticket-tabs { gap:4px; }
    .ticket-tabs a { flex:1 1 auto; text-align:center; padding:12px 8px; }
    .ticket-page { width:100%; padding:24px 16px 40px; }
    .ticket-page .search-form { width:100%; margin:20px 0; grid-template-columns:minmax(0,1fr); padding:16px; }
    .section,.detail-layout,.seat-page,.auth-layout,.form-page { padding-top:24px; padding-bottom:40px; }
    .trip-grid { grid-template-columns:minmax(0,1fr); }
    .trip-card__footer { flex-wrap:wrap; }
    .trip-card__footer .button { flex:1 1 auto; }
    .form-actions > .button,.form-actions > form { flex:1 1 160px; }
    .form-actions > form > .button { width:100%; }
    .booking-panel,.reserve-panel,.form-panel,.wide-form { padding:20px 16px; }
    .auth-profile-links { grid-template-columns:minmax(0,1fr); }
    .role-flow,.role-scope-notice { padding:14px; }
    .booking-panel dl div { flex-wrap:wrap; }
    .booking-panel dd { text-align:left; }
    .description { font-size:16px; }
    .table-scroll-hint { display:block; margin:0 0 8px; }
    .table-wrap td { min-width:110px; max-width:280px; overflow-wrap:anywhere; }
    .table-wrap td:last-child:has(.form-actions) { min-width:170px; }
    .detail-list div { grid-template-columns:minmax(0,1fr); }
    .cart-item__heading { align-items:flex-start; flex-direction:column; }
    .cart-item__checkout .button, .cart-item__remove .button { width:100%; }
    .journey-actions { flex-wrap:wrap; }
    .journey-actions button { flex:1 1 120px; }
    .catalog-pagination__pages { flex-wrap:wrap; }
    .gallery__thumbs { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .seat-shell { padding:34px 16px 16px; min-width:0; }
    .seat-map { min-width:0; }
    .bus-body { position:relative; width:min(205px,62vw); max-width:205px; height:auto; min-height:650px; aspect-ratio:auto; border:4px solid #747d84; border-radius:11px; background:#f2f2f0; padding:0 7px 7px; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) 22px minmax(0,1fr) minmax(0,1fr); grid-template-rows:96px repeat(var(--seat-rows),44px) minmax(60px,1fr) 72px; gap:7px 3px; box-shadow:inset 0 0 0 3px #c8cdd0,0 4px 10px rgba(23,32,42,.14); overflow:visible; }
    .bus-body::before { display:block; inset:103px 50% 81px auto; width:2px; height:auto; border-radius:0; background:#d9dcde; box-shadow:none; }
    .bus-body::after { display:block; inset:auto 7px 78px; width:auto; height:2px; background:#333b40; }
    .bus-cabin { position:relative; display:block; grid-column:1/-1; grid-row:1; inset:auto; width:auto; overflow:hidden; border:0; border-bottom:2px solid #333b40; border-radius:7px 7px 0 0; background:#f2f2f0; }
    .bus-cabin::before { content:""; position:absolute; top:28px; right:44px; width:5px; height:29px; border-radius:3px; background:#5d666c; transform:rotate(-3deg); }
    .bus-cabin::after { content:""; position:absolute; left:5px; bottom:9px; width:29px; height:22px; border:1px solid #333b40; border-radius:3px 3px 1px 1px; background:#ffda42; box-shadow:32px 0 #ffda42,32px 0 0 1px #333b40,inset 0 -4px #11181d,32px 4px 0 -1px #11181d; }
    .bus-cabin__windshield { left:5px; right:5px; top:5px; width:auto; height:17px; border:3px solid #626b72; border-radius:9px 9px 2px 2px; background:repeating-linear-gradient(90deg,#899197 0 7px,transparent 7px 12px); transform:none; opacity:.9; }
    .bus-cabin__steering-wheel { left:auto; right:8px; top:9px; width:38px; height:38px; border:5px solid #777f84; opacity:.75; }
    .bus-cabin__steering-wheel::before,.bus-cabin__steering-wheel::after { left:12px; top:-3px; width:4px; height:34px; background:#777f84; }
    .bus-cabin__driver-seat { left:auto; right:7px; bottom:7px; width:40px; height:42px; border:1px solid #333b40; border-radius:5px 5px 2px 2px; background:#ffda42; box-shadow:inset 0 -5px #11181d; }
    .bus-aisle { display:block; position:absolute; z-index:1; left:50%; right:auto; top:109px; bottom:87px; width:18px; height:auto; border-radius:0; background:linear-gradient(90deg,transparent 45%,#e0e2e3 45% 55%,transparent 55%); transform:translateX(-50%); }
    .bus-mobile-fixtures { display:block; position:absolute; inset:0; z-index:0; pointer-events:none; }
    .bus-mobile-mirror { position:absolute; top:-25px; width:21px; height:8px; border-radius:3px; background:#171b1e; }
    .bus-mobile-mirror::after { content:""; position:absolute; top:5px; width:3px; height:24px; background:#30363a; }
    .bus-mobile-mirror--left { left:-24px; transform:rotate(5deg); }.bus-mobile-mirror--left::after { right:1px; transform:rotate(-13deg); transform-origin:top; }
    .bus-mobile-mirror--right { right:-24px; transform:rotate(-5deg); }.bus-mobile-mirror--right::after { left:1px; transform:rotate(13deg); transform-origin:top; }
    .bus-mobile-wheel { position:absolute; width:6px; height:36px; border-radius:3px; background:#353b3f; }
    .bus-mobile-wheel--left-front { left:-8px; top:70px; }.bus-mobile-wheel--right-front { right:-8px; top:70px; }
    .bus-mobile-wheel--left-rear { left:-8px; bottom:144px; }.bus-mobile-wheel--right-rear { right:-8px; bottom:144px; }
    .bus-mobile-service { display:grid; grid-column:1/-1; grid-row:-2/-1; grid-template-columns:1fr 1fr; gap:5px; padding-top:6px; }
    .bus-mobile-service span { display:flex; align-items:center; justify-content:center; border-radius:2px; color:#fff; font-size:22px; font-weight:900; }
    .bus-mobile-service__coffee { background:#f5a623; }
    .bus-mobile-service__restroom { background:#24a9d6; }
    .bus-mobile-service__coffee i { position:relative; width:24px; height:18px; border-radius:2px 2px 7px 7px; background:#fff; }
    .bus-mobile-service__coffee i::before { content:""; position:absolute; right:-8px; top:3px; width:9px; height:9px; border:3px solid #fff; border-left:0; border-radius:0 7px 7px 0; }
    .bus-mobile-service__coffee i::after { content:""; position:absolute; left:4px; top:-15px; width:2px; height:11px; background:#fff; box-shadow:7px -3px #fff,14px 0 #fff; transform:skewX(-8deg); }
    .bus-mobile-service__restroom { gap:3px; }.bus-mobile-service__restroom b { font-size:25px; line-height:1; }
    .bus-body .seat { position:static; align-self:center; width:100%; height:36px; min-width:0; border:1px solid #26313b; border-radius:3px 3px 1px 1px; font-size:11px; box-shadow:inset 0 -4px #171d21,0 1px 2px rgba(23,32,42,.12); }
    .bus-body .seat--free:hover { transform:none; }
    .bus-body .x-1,.bus-body .x-2,.bus-body .x-3,.bus-body .x-4,.bus-body .x-5,.bus-body .x-6,.bus-body .x-7,.bus-body .x-8,.bus-body .x-9,.bus-body .x-10,.bus-body .x-11,.bus-body .x-12,.bus-body .x-13 { left:auto; right:auto; }
    .bus-body .y-0,.bus-body .y-1,.bus-body .y-3,.bus-body .y-4 { top:auto; bottom:auto; }
    .bus-body .y-4 { grid-column:1; }.bus-body .y-3 { grid-column:2; }.bus-body .y-1 { grid-column:4; }.bus-body .y-0 { grid-column:5; }
    .bus-body .x-1 { grid-row:2; }.bus-body .x-2 { grid-row:3; }.bus-body .x-3 { grid-row:4; }.bus-body .x-4 { grid-row:5; }.bus-body .x-5 { grid-row:6; }.bus-body .x-6 { grid-row:7; }.bus-body .x-7 { grid-row:8; }.bus-body .x-8 { grid-row:9; }.bus-body .x-9 { grid-row:10; }.bus-body .x-10 { grid-row:11; }.bus-body .x-11 { grid-row:12; }.bus-body .x-12 { grid-row:13; }.bus-body .x-13 { grid-row:14; }
    .product-seat-grid { grid-template-columns:repeat(auto-fit,minmax(44px,1fr)); min-width:0; }
    .product-seat-grid .seat { width:100%; min-height:44px; }
}
@media(max-width:380px) { .panel-content { padding:16px 12px; }.metric-grid { grid-template-columns:minmax(0,1fr); }.ticket-box { padding:16px; }.nav a { font-size:13px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; } }
@media print { .mobile-menu-toggle,.panel-menu-toggle,.ticket-tabs { display:none!important; } }

/* Financial management and checkout: contain dense data without widening the page. */
.financial-page .panel-content,
.financial-page .panel-content > *,
.financial-page .financial-filter-grid > *,
.financial-page .financial-summary-grid > * { min-width:0; }
.financial-page .panel-heading h1 { flex-wrap:wrap; }
.financial-page .financial-filter-box .admin-filters { display:block; padding:0; border:0; background:transparent; }
.financial-page .financial-filter-grid { grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr))!important; }
.financial-page .financial-filter-grid label { min-width:0!important; }
.financial-page .financial-filter-search { grid-column:span 2; }
.financial-page .financial-filter-actions { align-self:end; }
.financial-page .financial-panel-heading { align-items:flex-start; }
.financial-page .financial-transaction-count { display:block; max-width:100%; overflow-wrap:anywhere; }
.financial-page .financial-alert { min-width:0; overflow-wrap:anywhere; }
.financial-page .table-wrap,
.financial-page .financial-table { scrollbar-width:thin; -webkit-overflow-scrolling:touch; }
.financial-page .financial-table table { min-width:680px; }
.financial-page .refund-idempotency code { display:inline-block; max-width:100%; margin:.35rem 0 0!important; overflow-wrap:anywhere; word-break:break-all; }
.financial-page .refund-dialog { max-height:calc(100dvh - 32px); overflow:auto; }
.payment-page .payment-layout { width:min(760px,calc(100% - 32px)); padding-inline:0; }
.payment-page .payment-layout > * { min-width:0; }
.payment-page .payment-layout .detail-card { margin:16px 0; padding:clamp(16px,3vw,24px); overflow-wrap:anywhere; }
.payment-page .payment-layout summary { min-height:44px; cursor:pointer; font-weight:700; }
.payment-page .payment-layout :is(input,select,textarea) { width:100%; max-width:100%; }
.payment-page .payment-layout img { height:auto; }

@media(min-width:761px) and (max-width:1100px) {
    .financial-page .financial-filter-grid { grid-template-columns:repeat(3,minmax(0,1fr))!important; }
}

@media(min-width:1101px) {
    .financial-page .financial-filter-grid { grid-template-columns:repeat(4,minmax(0,1fr))!important; }
}

@media(max-width:760px) {
    .financial-page .panel-content { overflow:hidden; }
    .financial-page .panel-heading { margin-bottom:0!important; }
    .financial-page .panel-heading > div { min-width:0; width:100%; text-align:left!important; }
    .financial-page .panel-heading h1 { font-size:clamp(1.35rem,7vw,1.75rem)!important; }
    .financial-page .financial-transaction-count { width:100%; }
    .financial-page .financial-alert { align-items:flex-start!important; }
    .financial-page .financial-alert > span:last-child { min-width:0; }
    .financial-page .metric-grid { grid-template-columns:minmax(0,1fr)!important; gap:12px!important; margin-bottom:20px!important; }
    .financial-page .metric-card { padding:16px!important; }
    .financial-page .metric-card > strong { font-size:clamp(1.45rem,8vw,1.85rem)!important; }
    .financial-page .financial-filter-box { padding:16px!important; margin-bottom:20px!important; }
    .financial-page .financial-filter-grid { grid-template-columns:minmax(0,1fr)!important; gap:14px!important; }
    .financial-page .financial-filter-search { grid-column:1/-1!important; min-width:0!important; }
    .financial-page .financial-filter-actions { width:100%; flex-wrap:wrap; }
    .financial-page .financial-filter-actions > * { flex:1 1 120px!important; }
    .financial-page .financial-summary-grid { grid-template-columns:minmax(0,1fr)!important; gap:16px!important; margin-bottom:20px!important; }
    .financial-page .financial-summary-grid > div,
    .financial-page .refund-card-wrapper { padding:16px!important; }
    .financial-page .financial-summary-grid div[style*="justify-content: space-between"] { flex-wrap:wrap; gap:6px 12px; }
    .financial-page .financial-summary-grid div[style*="justify-content: space-between"] > :last-child { max-width:100%; text-align:left!important; overflow-wrap:anywhere; }
    .financial-page .financial-section-card { margin-bottom:20px!important; padding:16px!important; }
    .financial-page .panel-content > div > div[style*="justify-content: space-between"] { flex-wrap:wrap; gap:8px 12px; }
    .financial-page .table-wrap { margin-inline:0; border-radius:8px!important; }
    .financial-page .financial-table-scroll-hint { margin:0!important; padding:0 2px; }
    .financial-page .financial-results-table { min-width:680px!important; }
    .financial-page .financial-pagination { margin-top:4px!important; }
    .financial-page .refund-idempotency { align-items:flex-start!important; }
    .financial-page .refund-actions > * { flex:1 1 100%; width:100%; justify-content:center; }
    .financial-page .refund-dialog { width:calc(100% - 24px)!important; max-height:calc(100dvh - 24px); }
    .financial-page .refund-dialog > div > div { padding:16px!important; }
    .financial-page .refund-dialog > div > div:last-child { flex-direction:column-reverse; }
    .financial-page .refund-dialog button { width:100%; }
    .payment-page .payment-layout { margin:20px auto 32px; }
    .payment-page .payment-layout h1 { font-size:clamp(1.55rem,8vw,2rem); }
    .payment-page .payment-layout .button,
    .payment-page .payment-layout button { width:100%; justify-content:center; }
}

@media(max-width:420px) {
    .financial-page .panel { width:calc(100% - 16px); }
    .financial-page .panel-content { padding:16px 12px; }
    .financial-page .financial-section-card,
    .financial-page .financial-summary-grid > div,
    .financial-page .refund-card-wrapper { padding:14px!important; }
}
/* A single surface contains both the map and its reservation form. */
.seat-page { gap:0; padding:0; margin:46px auto 72px; border-radius:8px; background:#fff; box-shadow:var(--shadow); }
.seat-page > .seat-shell,.seat-page > .reserve-panel { border:0; border-radius:0; background:transparent; box-shadow:none; }
@media(min-width:761px) {
    /* Inset the entire seat group from the front white-compartment delimiter. */
    .bus-body .seat { margin-right:5px; }
}
@media(max-width:760px) {
    .seat-page { margin-top:24px; margin-bottom:40px; }
    .bus-body { padding-left:8px; padding-right:8px; }
}

.favorite-filters { display:flex; flex-wrap:wrap; gap:8px; }
.favorite-filters a { min-height:40px; padding:9px 14px; border:1px solid var(--line); border-radius:999px; background:white; font-size:13px; font-weight:700; }
.favorite-filters a.active { border-color:var(--brand); background:var(--brand); color:var(--brand-ink); }
.favorites-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.favorite-card { display:grid; grid-template-rows:180px 1fr; min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:white; }
.favorite-card__image,.favorite-card__placeholder { width:100%; height:180px; object-fit:cover; background:var(--surface); }
.favorite-card__placeholder { display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:48px; }
.favorite-card__body { display:flex; flex-direction:column; gap:10px; padding:18px; }
.favorite-card__body h2 { margin:0; font-size:19px; overflow-wrap:anywhere; }
.favorite-card__body p { margin:0; color:var(--muted); }
.favorite-card__meta { display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.favorite-status { padding:5px 8px; border-radius:999px; background:#eaf8f0; color:#17794b; }
.favorite-status.is-unavailable { background:#f2f3f5; color:#667085; }
.favorite-card__price { color:#17794b!important; font-size:18px; font-weight:700; }
.favorite-card__actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:auto; padding-top:10px; }
.favorite-card__actions form { margin:0; }
.favorite-empty { grid-column:1/-1; padding:36px; border:1px dashed var(--line); border-radius:12px; text-align:center; }

@media(max-width:760px) {
    .favorites-grid { grid-template-columns:minmax(0,1fr); }
    .favorite-card__actions { align-items:stretch; flex-direction:column; }
    .favorite-card__actions :is(a,form,button) { width:100%; }
}
