/* Saved trips: one featured journey beside a searchable collection. */
#accountDialog.is-authenticated { width:min(1120px,calc(100% - 48px)); max-width:1120px; max-height:calc(100dvh - 48px); border:1px solid white; border-radius:28px; background:#f7faff; }
#accountDialog.is-authenticated[open] { display:block; }
#accountDialog.is-authenticated .account-dialog-panel { max-height:none; margin:0; padding:0; border-radius:0; background:transparent; box-shadow:none; overflow:visible; }
#accountDialog.is-authenticated .dialog-head { padding:24px 32px 0; background:transparent; }
#accountDialog.is-authenticated .dialog-head h2 { font-size:23px; font-weight:500; color:#294662; }
#accountDialog.is-authenticated .dialog-head p { display:none; }
#accountDialog.is-authenticated .account-home-view { padding:16px 32px 32px; }
#accountDialog.is-authenticated .account-summary { border:0; padding:0 0 20px; gap:12px; }
#accountDialog.is-authenticated .account-avatar { width:42px; height:42px; min-width:42px; }
#accountDialog.is-authenticated .account-identity > span { display:none; }
#accountDialog.is-authenticated .account-identity strong { font-size:16px; font-weight:500; }
#accountDialog.is-authenticated .account-summary-actions { margin-left:auto; }
#accountDialog.is-authenticated .account-summary-actions button { min-height:40px; padding:0 12px; font-size:12px; border:0; background:transparent; color:#637992; font-weight:400; }
:is(#accountDialog.is-authenticated, .trip-home-library) .account-trips-head { flex-wrap:wrap; margin:0; padding:0; align-items:center; }
:is(#accountDialog.is-authenticated, .trip-home-library) .account-trips-head :is(h2,h3) { font-size:20px; font-weight:500; margin:0; color:#294662; }
:is(#accountDialog.is-authenticated, .trip-home-library) .account-trips-head p { font-size:12px; margin:6px 0 0; color:#637992; }
:is(#accountDialog.is-authenticated, .trip-home-library) .account-trips-actions { margin-left:auto; display:flex; gap:8px; }
:is(#accountDialog.is-authenticated, .trip-home-library) .account-trips-actions button { min-height:42px; padding:0 16px; font-size:13px; font-weight:400; border:0; border-radius:12px; background:#eaf2ff; color:#246dd2; box-shadow:none; }
:is(#accountDialog.is-authenticated, .trip-home-library) .account-trips-actions .primary { color:white; background:#337ff0; }
.account-trip-search-bar { display:flex; align-items:center; gap:10px; margin:20px 0; }
.account-trip-search-bar label { display:flex; align-items:center; gap:10px; flex:1; min-width:0; padding:0 14px; background:white; border:1px solid #e6eef8; border-radius:13px; }
.account-trip-search-bar svg { width:18px; height:18px; flex:none; fill:none; stroke:#71869e; stroke-width:1.6; }
#accountTripSearch { width:100%; min-width:0; min-height:44px; border:0; background:transparent; padding:8px 0; font-size:14px; }
#accountTripRoleFilter { min-height:44px; width:130px; border:1px solid #e6eef8; background:white; border-radius:13px; font-size:13px; color:#526d88; }
#accountTripList { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr); gap:24px; align-items:start; margin:0; border:0; }
.library-feature { position:relative; isolation:isolate; min-height:440px; align-self:stretch; padding:24px; overflow:hidden; border-radius:24px; background:#cfe5ff; color:white; display:flex; flex-direction:column; justify-content:space-between; }
.library-feature-image { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; }
.library-feature::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(180deg,rgba(39,88,139,.12),rgba(26,66,114,.03) 24%,rgba(28,66,112,.9)); }
.library-feature-kicker { align-self:flex-start; padding:6px 12px; border-radius:999px; font-size:12px; background:rgba(255,255,255,.92); color:#386494; }
.library-feature-copy h3 { margin:48px 0 12px; font-size:28px; line-height:1.5; font-weight:500; color:white; overflow-wrap:anywhere; }
.library-feature-copy p { font-size:12px; color:#e1edfc; }
.library-feature-copy > button { position:relative; width:220px; max-width:100%; min-height:50px; margin-top:16px; padding:5px; display:flex; align-items:center; border:1px solid rgba(134,210,255,.5); border-radius:999px; color:white; background:linear-gradient(110deg,#1766bc,#2375c4); box-shadow:0 5px 18px rgba(42,157,246,.25),inset 0 1px 0 rgba(255,255,255,.18); font-size:14px; font-weight:400; transition:background .18s,box-shadow .18s; }
.library-feature-copy > button > span:first-child { flex:1; padding:0 42px; text-align:center; white-space:nowrap; }
.library-continue-icon { position:absolute; right:4px; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:40px; height:40px; border-radius:50%; color:white; background:rgba(13,124,232,.38); box-shadow:inset 0 1px 0 rgba(255,255,255,.08); }
.library-continue-icon svg,.library-trip-arrow svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.library-continue-icon svg { transition:transform .18s ease; }
.library-feature-copy > button:hover { background:linear-gradient(110deg,#329af0,#48b6fc); box-shadow:0 6px 22px rgba(42,157,246,.36),inset 0 1px 0 rgba(255,255,255,.22); }
.library-feature-copy > button:hover .library-continue-icon svg { transform:translateX(2px); }
.library-feature-copy > button:active { background:#3298eb; box-shadow:inset 0 2px 5px rgba(28,93,152,.16); }
.library-collection { min-width:0; }
.library-stats { display:grid; grid-template-columns:1fr 1fr 1.4fr; gap:14px; padding:16px 0 22px; border-bottom:1px solid #e5edf8; }
.library-stats strong { display:block; font-size:25px; font-weight:500; color:#3579d4; }
.library-stats span { display:block; font-size:11px; margin-top:6px; color:#677f98; }
.library-list-heading { display:flex; justify-content:space-between; align-items:center; padding:20px 0 14px; }
.library-list-heading h3 { font-size:15px; font-weight:500; margin:0; color:#294662; }
.library-list-heading > span { font-size:12px; color:#71869e; }
.library-trip-grid { display:grid; gap:12px; }
#accountTripList .account-trip-row { display:block; min-width:0; min-height:0; padding:12px; border:1px solid #e8eff8; border-radius:18px; background:white; }
.library-trip-open { display:flex; align-items:center; gap:12px; width:100%; min-width:0; text-align:left; padding:0; border:0; background:transparent; box-shadow:none; }
.library-trip-thumbnail { flex:none; width:66px; height:68px; border-radius:12px; object-fit:cover; background:#e7f0ff; }
#accountTripList .account-trip-copy strong { white-space:normal; font-size:15px; line-height:1.6; font-weight:500; color:#294662; overflow-wrap:anywhere; }
#accountTripList .account-trip-copy > span { font-size:11px; line-height:1.7; margin-top:5px; color:#71869e; }
.library-trip-arrow { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:50%; color:#5b89c6; background:#f0f6ff; }
@media (prefers-reduced-motion:reduce) { .library-feature-copy > button,.library-continue-icon svg { transition:none; } .library-feature-copy > button:hover .library-continue-icon svg { transform:none; } }
#accountTripList .account-trip-actions { display:flex; gap:6px; align-items:center; padding:8px 0 0; }
#accountTripList .account-trip-actions > span { flex:1; color:#71869e; font-size:11px; }
#accountTripList .account-trip-actions button { min-height:36px; padding:0 10px; font-size:12px; font-weight:400; border:0; background:transparent; color:#52769f; }
#accountTripList .account-trip-actions .danger { color:#96666b; }
#accountTripList .account-trip-row:hover { border-color:#bed7f9; }
#accountTripList .empty-state { padding:40px 16px; background:white; border-radius:18px; font-size:13px; }
.library-empty { grid-column:1 / -1; text-align:center; padding:24px; }
.library-empty img { width:180px; height:150px; object-fit:contain; }
.library-empty h3 { font-size:20px; font-weight:500; color:#294662; }
.library-empty p { font-size:13px; color:#677f98; }
.home-open-trip-library { display:block; margin:0 0 18px auto; border:0; background:transparent; color:#337bdc; font-size:14px; font-weight:400; min-height:44px; }
#accountDialog.is-authenticated :is(button,input,select):focus-visible { outline:2px solid #397dde; outline-offset:3px; }
@media (max-width:760px) {
  #accountDialog.is-authenticated { width:calc(100% - 20px); max-width:540px; max-height:calc(100dvh - 20px); border-radius:24px; }
  #accountDialog.is-authenticated .dialog-head { padding:20px 18px 0; }
  #accountDialog.is-authenticated .account-home-view { padding:12px 18px 24px; }
  #accountDialog.is-authenticated .account-summary { flex-wrap:wrap; padding-bottom:20px; }
  #accountDialog.is-authenticated .account-summary-actions { width:auto; margin-left:auto; padding:0; gap:0; }
  #accountDialog.is-authenticated .account-summary-actions button { flex:none; min-height:44px; padding:0 8px; white-space:nowrap; }
  :is(#accountDialog.is-authenticated, .trip-home-library) .account-trips-head { flex-direction:row; justify-content:space-between; gap:10px; text-align:left; }
  :is(#accountDialog.is-authenticated, .trip-home-library) .account-trips-head :is(h2,h3) { font-size:18px; }
  :is(#accountDialog.is-authenticated, .trip-home-library) .account-trips-head p { display:none; }
  :is(#accountDialog.is-authenticated, .trip-home-library) .account-trips-actions { width:auto; margin:0; gap:4px; }
  :is(#accountDialog.is-authenticated, .trip-home-library) .account-trips-actions button { flex:none; min-height:44px; padding:0 10px; font-size:12px; white-space:nowrap; }
  #accountTripList { grid-template-columns:1fr; gap:16px; }
  .library-feature { min-height:260px; padding:20px; }
  .library-feature-copy h3 { font-size:24px; margin-top:36px; }
  .library-feature-copy > button { margin-top:12px; }
  .account-trip-search-bar { gap:8px; margin:16px 0; }
  .account-trip-search-bar label { padding:0 10px; }
  #accountTripSearch { font-size:16px; }
  #accountTripRoleFilter { width:104px; padding-inline:8px; }
  .library-stats { padding:4px 0 18px; }
  #accountTripList .account-trip-actions button { min-height:44px; }
}
@media (min-width:761px) {
  #accountDialog.is-authenticated .dialog-head { padding-top:18px; }
  #accountDialog.is-authenticated .account-home-view { padding-top:8px; }
  #accountDialog.is-authenticated .account-summary { padding-bottom:14px; }
  .library-feature { align-self:start; height:440px; min-height:0; }
  .library-trip-grid { max-height:300px; overflow:auto; padding-right:4px; scrollbar-width:thin; }
  .library-stats { padding:10px 0 16px; }
  .library-list-heading { padding:16px 0 12px; }
}

/* One travel library shared by the homepage and account entry. */
body.trip-home-active .trip-home-library { padding:28px; border:1px solid #e8f0fa; border-radius:28px; background:#f7faff; scroll-margin-top:84px; }
#homeTripList { display:block; }
.trip-home-library .account-trips-head { display:flex; }
.trip-home-library .account-trips-head h2 { line-height:1.5; }
#accountDialog.is-authenticated { width:min(640px,calc(100% - 48px)); }
#accountDialog.is-authenticated .home-open-trip-library { margin:12px 0 0; width:100%; border-radius:999px; background:#eaf3ff; }
#accountTripList .account-trip-actions { flex-wrap:wrap; }
.trip-home-library .library-trip-grid { max-height:none; overflow:visible; padding:0; }
.trip-home-library .library-feature { position:sticky; top:84px; }
@media(max-width:760px) {
  body.trip-home-active .trip-home-library { padding:18px; border-radius:24px; }
  #accountDialog.is-authenticated { width:calc(100% - 20px); }
  .trip-home-library .library-feature { position:relative; top:auto; min-height:260px; }
  .trip-home-library .account-trips-actions button { min-width:0; }
}
