/* A consistent, compact trip header across every trip tab. */
#app .trip-hero.trip-hero-compact{min-height:180px;padding:24px 28px;border-radius:22px;overflow:visible;isolation:isolate;align-items:flex-end}
.trip-hero-compact>.trip-hero-photo,.trip-hero-compact:after{border-radius:inherit}
.trip-hero-compact .hero-copy{padding-top:32px;min-width:0}
#app .trip-hero.trip-hero-compact h1{font-size:36px;font-weight:650;letter-spacing:-.045em;line-height:1.2;margin:0 0 10px;max-width:none;overflow-wrap:anywhere}
#app .trip-hero.trip-hero-compact .trip-hero-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;font-size:13px;line-height:1.6;margin:0}
.trip-hero-meta>span:first-child{display:inline-flex;align-items:center;gap:4px}.trip-hero-meta .ui-icon{width:14px;height:14px;flex:none}
.trip-hero-tools{position:absolute;top:10px;right:10px;display:flex;gap:5px;z-index:3}
.trip-hero-tools>button,.trip-hero-settings>summary{width:44px;height:44px;display:grid;place-items:center;border:1px solid #ffffff42;border-radius:50%;background:#ffffffd9;color:#214c3b;cursor:pointer;list-style:none;box-shadow:0 2px 8px #102d3010}
.trip-hero-tools .ui-icon{width:18px;height:18px}.trip-hero-settings>summary::-webkit-details-marker{display:none}
.trip-hero-settings>div{position:absolute;top:50px;right:0;min-width:170px;border:1px solid #dce5dd;border-radius:14px;padding:6px;background:#fff;box-shadow:0 12px 34px #193d2920;color:var(--ink)}
.trip-access-note{display:block;padding:10px;font-size:11px;color:var(--muted)}
.trip-hero-settings button{border:0;border-radius:9px;background:transparent;text-align:left;display:block;width:100%;min-height:44px;padding:10px;font-size:13px;color:var(--teal-dark)}
.trip-hero-settings button:hover{background:#eff5f0}.trip-hero-compact>.huge-emoji{position:absolute;right:24px;bottom:12px;top:auto!important;z-index:0!important;opacity:.18;font-size:94px!important;pointer-events:none}

/* Four compact shortcuts, each with one primary piece of information. */
.travel-overview{gap:8px;margin:12px 0 10px}
.travel-overview .overview-square{height:82px;padding:11px 12px;border-radius:13px;background:#ffffffc9;border-color:#dfe7df;box-shadow:none;gap:10px}
.travel-overview .overview-square:hover,.travel-overview .overview-square[aria-expanded=true]{background:#edf5ef;border-color:#a6c1ae}
.travel-overview .square-heading{font-size:12px;font-weight:600;line-height:1.3}
.travel-overview .square-icon{width:20px;height:20px;background:transparent}.travel-overview .square-icon svg{width:19px;height:19px}
.travel-overview .square-content{display:block;min-height:21px}
.travel-overview :is(.square-route,.square-stay-name){font-size:13px;font-weight:650;line-height:1.5;letter-spacing:-.02em}
.travel-overview .square-value{font-size:22px;font-weight:650;line-height:1.1;letter-spacing:-.04em}.travel-overview .square-value small{font-size:9px}
.travel-overview :is(.square-subtitle,.square-meta){display:none}

/* The drawer overlays the document, so opening details never moves the itinerary. */
.travel-overview-details{position:fixed;inset:0;z-index:18;max-width:none;margin:0;display:flex;justify-content:center;align-items:flex-end;isolation:isolate}
.travel-overview-details[hidden]{display:none}
.travel-overview-details>.travel-sheet-backdrop{position:absolute;inset:0;background:#18392d50;touch-action:none;animation:travel-backdrop-in .18s ease-out}
.travel-overview-details>.travel-sheet{position:relative;display:flex;flex-direction:column;width:min(600px,100%);max-height:84vh;max-height:84dvh;min-height:220px;background:#fcfdfa;border:1px solid #ffffffc9;border-bottom:0;border-radius:26px 26px 0 0;box-shadow:0 -12px 60px #173b2920;animation:travel-sheet-in .24s cubic-bezier(.2,.75,.2,1);overflow:hidden}
.travel-sheet-handle{height:20px;flex:none;display:flex;justify-content:center;align-items:center;touch-action:none;cursor:grab}
.travel-sheet-handle>span{width:32px;height:4px;border-radius:4px;background:#cbd7cc}
.travel-sheet-header{display:flex;align-items:center;justify-content:space-between;padding:0 18px 4px;gap:12px;flex:none}
.travel-sheet-header>h2{margin:0;font-size:22px;font-weight:650;letter-spacing:-.04em;color:var(--ink)}
.travel-sheet-close{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:#edf2ec;color:var(--teal-dark);flex:none}.travel-sheet-close>.ui-icon{width:19px;height:19px}
.travel-sheet-tabs{display:flex;gap:4px;padding:0 18px 10px;border-bottom:1px solid #e6ece4;flex:none}
.travel-sheet-tabs>button{flex:1;min-width:0;min-height:40px;border:0;border-radius:10px;background:transparent;color:#728175;font-size:12px;font-weight:500}
.travel-sheet-tabs>button[aria-selected=true]{color:#24593f;background:#e5eee4;font-weight:650}
.travel-sheet-body{padding:4px 18px calc(18px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior-y:contain;min-height:0;-webkit-overflow-scrolling:touch}
.travel-sheet-body>.journal-card,.travel-sheet-body .journal-card{border:0;padding:0;background:transparent;border-radius:0;box-shadow:none}
.travel-sheet-body .journal-head{padding:0;min-height:40px;margin:2px 0 0;justify-content:flex-end}
.travel-sheet-body .journal-head h2{display:none}.travel-sheet-body .journal-head>div:has(h2){display:none}
.travel-sheet-body .journal-link{min-height:44px;display:inline-flex;align-items:center;font-weight:550;font-size:12px}
.travel-sheet-body .reservation-journal>.journal-head{padding:0;min-height:40px}
.travel-sheet-body :is(.stay-stack,.flight-stack,.reservation-stack){gap:0}
.travel-sheet-body :is(.stay-ticket,.flight-ticket,.reservation-card){border:0;border-radius:0;background:transparent;border-bottom:1px solid #e0e7dd}
.travel-sheet-body :is(.stay-ticket,.flight-ticket,.reservation-card):last-child{border-bottom:0}
.travel-sheet-body :is(.stay-ticket>summary,.reservation-card>summary){min-height:72px;padding:12px 2px;gap:10px}
.travel-sheet-body .stay-ticket-copy{gap:5px}.travel-sheet-body .stay-ticket-copy strong{font-size:14px;font-weight:600}
.travel-sheet-body :is(.stay-details,.flight-details,.reservation-details){border-top:0;padding:0 2px 12px}
.travel-sheet-body .stay-actions{gap:8px 16px}.travel-sheet-body .stay-more{background:#f0f5ec;border:0;border-radius:9px}
.travel-sheet-body .flight-ticket>summary{padding:12px 2px}.travel-sheet-body .flight-route{margin:10px 0}
.travel-sheet-body .reservation-filters{padding:5px 0 8px;gap:6px}
.travel-sheet-body .reservation-filters button{min-height:36px;border:0;background:transparent;padding:6px 10px}
.travel-sheet-body .reservation-filters button[aria-pressed=true]{background:#e6eee3}
.travel-sheet-body .reservation-type-icon{width:30px;height:36px;border-radius:10px;background:#ecf2e9}
.travel-sheet-body .reservation-summary strong{font-size:13px;font-weight:600;line-height:1.5}.travel-sheet-body .reservation-summary>span{font-size:10px;line-height:1.5}
.reservation-quick-view{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;padding:5px 8px;border:0;border-radius:10px;background:#e9f1e6;color:#2f6447;font-size:11px;font-weight:600;white-space:nowrap}
.reservation-details-status{font-size:10px;color:var(--muted);padding:3px 0 7px;margin:0}
.travel-sheet-body .reservation-file{border:0;background:#edf3e9;border-radius:10px}
.travel-sheet-body .reservation-file>button:first-child{min-height:60px}
.travel-sheet-body .weather-notice{background:#edf3e8}.travel-sheet-body .weather-main{margin-top:8px}
.travel-sheet-dragging{animation:none!important;transition:none!important;user-select:none}
@keyframes travel-sheet-in{from{transform:translateY(38px);opacity:.65}to{transform:translateY(0);opacity:1}}
@keyframes travel-backdrop-in{from{opacity:0}to{opacity:1}}
@media(max-width:550px){
 #app .trip-hero.trip-hero-compact{min-height:144px;padding:18px 20px;border-radius:21px}
 #app .trip-hero.trip-hero-compact h1{font-size:27px;margin:0 0 8px;line-height:1.25}
 #app .trip-hero.trip-hero-compact .trip-hero-meta{font-size:11px;gap:3px 6px;line-height:1.6}
 .trip-hero-compact .hero-copy{padding-top:36px}.trip-hero-tools{top:8px;right:8px;gap:3px}
 .travel-overview{gap:6px;margin:10px 0 8px}
 .travel-overview .overview-square{height:76px;padding:10px 8px;border-radius:12px;gap:8px}
 .travel-overview .square-heading{font-size:12px}.travel-overview :is(.square-route,.square-stay-name){font-size:11px}
 .travel-overview .square-icon{width:17px;height:17px}.travel-overview .square-icon svg{width:17px;height:17px}
 .travel-overview .square-value{font-size:19px}.travel-overview .square-value-long{font-size:15px}
 .personal-trip-tools{margin:8px 0 0;gap:5px}
 .personal-trip-tools>button{border:0;background:transparent;padding:6px 9px;border-radius:9px;min-height:40px;font-size:11px;font-weight:500;gap:5px}
 .personal-trip-tools .ui-icon{width:15px;height:15px}
 .trip-layout{margin-top:12px}
 .travel-sheet-body{padding-left:16px;padding-right:16px}.travel-sheet-header{padding-left:16px;padding-right:12px}.travel-sheet-tabs{padding-left:16px;padding-right:16px}
 .travel-sheet-body .weather-day-select{font-size:16px}.travel-sheet-body .weather-tile{min-width:44px}
}
@media(max-width:350px){
 .travel-overview .overview-square{padding:10px 6px}.travel-overview .square-heading{font-size:11px}
 .travel-overview :is(.square-route,.square-stay-name){font-size:10px}.travel-overview .square-value{font-size:16px}
 #app .trip-hero.trip-hero-compact h1{font-size:25px}
 .travel-sheet-body :is(.reservation-card>summary,.stay-ticket>summary){gap:7px}
 .travel-sheet-body .reservation-summary strong{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.travel-sheet-backdrop,.travel-overview-details>.travel-sheet{animation:none}}
