/* ======================================================================
   TRIPLOOM 15.2 · Responsive Mobile + Tablet
   Canonical bundle generated in TRIPLOOM L2 refactor.
   Source order is preserved exactly to keep cascade compatibility.
   ====================================================================== */

/* ---- source: responsive-mobile-tablet-v163.css ---- */
/* ======================================================================
   TRIPLOOM V16.0 — Mobile & Tablet Responsive Standardization
   Scope: authenticated/public member UI at <= 1024px only.
   Desktop (>1024px) is intentionally untouched.
   ====================================================================== */

@media (max-width:1024px){
  :root{
    --tl-rsp-page-x:clamp(16px,2.8vw,28px);
    --tl-rsp-card-pad:clamp(16px,2.2vw,22px);
    --tl-rsp-gap:clamp(12px,1.8vw,18px);
    --tl-rsp-touch:44px;
  }
  html,body{width:100%;max-width:100%;overflow-x:hidden!important;text-size-adjust:100%;-webkit-text-size-adjust:100%}
  body{min-width:0!important}
  .app-shell,.main,.main-no-sidebar-v1502,.content,.page-content,.page-shell{min-width:0!important;max-width:100%!important}
  .main,.main-no-sidebar-v1502{margin-left:0!important;width:100%!important}
  .content{width:100%!important;padding-left:var(--tl-rsp-page-x)!important;padding-right:var(--tl-rsp-page-x)!important;padding-bottom:max(42px,calc(24px + env(safe-area-inset-bottom)))!important}
  .flash{margin-left:var(--tl-rsp-page-x)!important;margin-right:var(--tl-rsp-page-x)!important}
  .panel,.mini-panel,.form-section,.sticky-card{max-width:100%;min-width:0;padding:var(--tl-rsp-card-pad)}
  img,video,canvas,iframe,svg{max-width:100%}
  pre,code,.url,.email,[data-breakable]{overflow-wrap:anywhere;word-break:break-word}
  p,li,dd,td,th,label,small,b,strong,h1,h2,h3,h4{min-width:0;overflow-wrap:break-word}

  /* Touch targets */
  .btn,.icon-btn,.circle-link,.modal-close,.mini-delete,.link-button,.task-v27-icon-btn,
  .triploom-gh-circle-v1503,.triploom-gh-avatar-trigger-v1503,
  button:not(.no-touch-size),a.btn{min-height:var(--tl-rsp-touch)}
  .btn{padding-inline:15px}
  .icon-btn,.circle-link,.modal-close,.mini-delete,.task-v27-icon-btn{min-width:var(--tl-rsp-touch);width:var(--tl-rsp-touch);height:var(--tl-rsp-touch)}
  .top-actions,.hero-actions,.section-head-actions,.form-actions,.modal-actions,.trip-header-actions,.task-v27-actions,
  .journal-card-actions,.booking-card-actions,.gallery-actions,.v152-vault-actions{gap:8px;flex-wrap:wrap}

  /* Forms */
  input,select,textarea{max-width:100%;min-width:0}
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea{min-height:44px}
  textarea{resize:vertical}
  .form-grid.three,.form-grid.four,.form-grid.five{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .editor-layout,.detail-grid,.two-col,.booking-layout,.journal-layout,.story-layout-v5,.route-overview-layout,
  .v152-vault-layout,.v6-inbox-layout,.expenses-layout-v28,.expenses-layout-single-v46,.calendar-map-layout-v168,
  .v7-google-map-layout,.group-join-grid-v36,.privacy-grid-v142730,.settings-security-grid,.departure-grid,
  .split-member-grid-v39,.itinerary-layout,.premium-itinerary-layout{min-width:0;gap:var(--tl-rsp-gap)}
  .editor-side .sticky-card,.premium-day-summary .sticky-card{top:calc(90px + env(safe-area-inset-top))}

  /* Grid density: tablet */
  .trip-grid,.province-grid,.place-grid,.collection-grid,.photo-grid,.review-grid,.upload-grid,
  .stats-wow-grid-v142748,.dashwow-pulse-grid,.dash-level-feature-grid,.level-feature-grid,
  .v9-profile-stat-grid,.v9-achievement-grid,.summary-metric-grid,.live-summary-grid,
  .route-memory-grid,.route-cover-grid-v35,.v6-ready-grid,.v6-duplicate-grid,
  .trip-info-grid-v33,.footprint-trip-grid-v38{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .stat-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dashboard-grid,.dashwow-content-grid,.trip-info-layout-v33{grid-template-columns:minmax(0,1fr)!important}

  /* Hero / banner */
  .hero-v2,.dashwow-hero,.live-hero-v4,.story-hero-v5,.province-hero,.place-detail-hero,.trip-premium-hero,
  .task-v27-hero,.collection-hero,.v9-footprint-hero,.v9-leader-hero,.privacy-hero-v142730,.level-hub-hero,
  .group-join-hero-v36,.trip-tab-hero{max-width:100%;min-width:0}
  .hero-v2{padding:30px;min-height:280px}.hero-copy h2{font-size:clamp(31px,5vw,40px)}
  .next-trip-card{width:min(340px,44vw)}
  .trip-tab-hero{padding:24px!important;gap:18px!important}
  .trip-tab-hero-copy h1,.trip-tab-hero-copy h2{font-size:clamp(28px,4.5vw,40px)!important;line-height:1.05!important}
  .trip-tab-hero-side{min-width:210px!important}

  /* Trip top tabs: scroll only inside the tab rail */
  .trip-tabs-top-shell,.trip-tabs,.trip-top-tabs,.tab-bar,.tabs,.admin-tabs,.settings-tabs,.journey-tabs,
  .trip-tab-nav,.account-tabs,.dashboard-tabs{
    max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;white-space:nowrap
  }
  .trip-tabs-top-shell::-webkit-scrollbar,.trip-tabs::-webkit-scrollbar,.tab-bar::-webkit-scrollbar,.tabs::-webkit-scrollbar{display:none}
  .trip-tabs-top-shell>* ,.trip-tabs>* ,.tab-bar>* ,.tabs>*{flex:0 0 auto!important}

  /* Tables may scroll within their own container only. JS converts eligible tables to cards on phone. */
  .table-wrap,.admin-table-wrap,.expense-table-wrap,.booking-table-wrap,.v152-vault-table-wrap,
  .level-privilege-table-v142732,.trip-maker-income-table-v142767{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
  table{max-width:100%}

  /* Modal / popup */
  .modal,.modal-backdrop,[class*="modal-overlay"],[class*="popup-overlay"]{padding:18px!important;overscroll-behavior:contain}
  .modal-card,[class*="modal-card"],[class*="popup-card"]{
    width:min(760px,100%)!important;max-width:100%!important;max-height:min(calc(var(--tl-visual-height,100dvh) - 36px),calc(100dvh - 36px))!important;
    overflow:hidden!important;display:flex!important;flex-direction:column!important
  }
  .modal-card>form,.modal-card .modal-scroll,.modal-card .modal-body,[class*="popup-card"] .modal-body{
    min-height:0;max-width:100%;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch
  }
  .modal-head,.modal-header,[class*="modal-header"],[class*="popup-header"]{flex:0 0 auto;position:relative;z-index:2}
  .modal-footer,[class*="modal-footer"],[class*="popup-footer"]{flex:0 0 auto;position:relative;z-index:2}

  /* Uploads */
  .upload-box,.upload-zone,.trip-upload-box-v32,.media-upload-standard,.journal-media-upload-v32,
  .booking-upload-v139,.v150-vault-upload,.gallery-upload-v27{max-width:100%;min-width:0}
  .upload-grid{gap:10px!important}
  .upload-box img,.upload-zone img,[class*="upload"] img{max-width:100%;object-fit:cover}

  /* Checklist / Vali */
  .checkgear-v161-dual{grid-template-columns:1fr!important;gap:14px!important}
  .checkgear-v161-item{grid-template-columns:auto minmax(0,1fr) auto!important}
  .checkgear-v161-item-copy{min-width:0}.checkgear-v161-item-actions{gap:7px}
  .pack-v167-grid,.pack-v167-dual{grid-template-columns:1fr!important}

  /* Tasks */
  .task-v27-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .task-v27-card{min-width:0}.task-v27-title-row{gap:8px;align-items:flex-start}.task-v27-copy{min-width:0}
  .task-v27-meta{flex-wrap:wrap;gap:5px 10px}.task-v27-assignee-statuses{flex-wrap:wrap}
  .task-v27-actions{justify-content:flex-end}

  /* Booking */
  .booking-layout,.booking-layout-v139{grid-template-columns:minmax(0,1fr)!important}
  .booking-card{max-width:100%;min-width:0}.booking-card [class*="grid"]{min-width:0}
  .booking-type-grid-v139,.booking-extra-grid-v139,.booking-payment-grid-v141{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .booking-media-grid,.booking-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}

  /* Journal */
  .journal-layout,.journal-layout-v32{grid-template-columns:minmax(0,1fr)!important}
  .journal-card{min-width:0}.journal-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}

  /* Vault */
  .v152-vault-layout{grid-template-columns:minmax(0,1fr)!important}
  .v150-vault-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Gallery */
  .v7-trip-photo-grid,.gallery-photo-grid-v27{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}

  /* Route / itinerary */
  .route-overview-layout,.route-overview-layout-readiness{grid-template-columns:minmax(0,1fr)!important}
  .trip-header-v2,.trip-premium-hero{min-width:0}
  .trip-header-actions{min-width:0}
  .premium-itinerary-layout,.itinerary-layout{grid-template-columns:minmax(0,1fr)!important}
  .premium-day-summary{order:2}.premium-day-summary .sticky-card{position:static!important}
  .timeline{max-width:100%;min-width:0}
  .premium-stop-card,.travel-leg-card,.stop-card{min-width:0;max-width:100%}
  .tm74-grid,.tm89-day-grid,.tm92-stop-edit-grid{min-width:0}

  /* Settings / account */
  .v8-settings-main,.account-page-main-v142728{min-width:0}
  .privacy-guard-grid-v142730,.settings-security-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Search / public / lists */
  .search-links-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .v9-leader-list article{min-width:0}
  .v9-leader-metrics{min-width:0}

  /* Long strings */
  .trip-hero-title,.task-v27-title-row h3,.journal-card h3,.booking-card h3,.place-card h3,
  .trip-card-v2 h3,.collection-grid h3,.v152-vault-layout h3{overflow-wrap:anywhere;word-break:normal}
}

/* ======================================================================
   Phone layout — 1 column first, stronger touch spacing and full-screen modals
   ====================================================================== */
@media (max-width:767px){
  :root{--tl-rsp-page-x:14px;--tl-rsp-card-pad:15px;--tl-rsp-gap:12px;--tl-rsp-touch:44px}
  body{font-size:13px;line-height:1.5}
  .content{padding-top:10px!important}
  .panel,.mini-panel,.form-section,.sticky-card{border-radius:20px;padding:15px}
  .section-head{align-items:flex-start;flex-direction:column;gap:8px;margin:18px 0 12px}
  .section-head h2{font-size:20px}.section-head h3{font-size:16px}
  .hero-head h2{font-size:25px}
  .empty{min-height:190px;padding:24px 16px}

  /* Buttons: primary actions stay obvious; secondary clusters can wrap. */
  .btn{min-height:44px;border-radius:13px;padding-inline:14px;font-size:11.5px}
  .btn-lg{min-height:48px}
  .form-actions,.modal-actions,.modal-footer,.task-v27-actions,.journal-card-actions,.booking-card-actions{
    width:100%;justify-content:stretch
  }
  .form-actions>.btn,.modal-actions>.btn,.modal-footer>.btn{flex:1 1 140px}

  /* Inputs: 16px prevents Safari focus zoom. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea{font-size:16px!important}
  .form-grid.two,.form-grid.three,.form-grid.four,.form-grid.five,
  .booking-type-grid-v139,.booking-extra-grid-v139,.booking-payment-grid-v141,
  .v150-vault-modal-grid,.privacy-guard-grid-v142730,.settings-security-grid,
  .stop-ev-use-grid,.stop-route-metrics,.stop-place-duration-grid,.route-choice-grid{
    grid-template-columns:minmax(0,1fr)!important
  }
  label{min-width:0}

  /* All complex desktop layouts collapse to a content-first single column. */
  .editor-layout,.detail-grid,.two-col,.booking-layout,.journal-layout,.story-layout-v5,.route-overview-layout,
  .v152-vault-layout,.v6-inbox-layout,.expenses-layout-v28,.calendar-map-layout-v168,.v7-google-map-layout,
  .group-join-grid-v36,.privacy-grid-v142730,.departure-grid,.split-member-grid-v39,
  .dashboard-grid,.dashwow-content-grid,.trip-info-layout-v33,.itinerary-layout,.premium-itinerary-layout{
    grid-template-columns:minmax(0,1fr)!important
  }
  .editor-side,.dash-side,.premium-day-summary{order:2}
  .editor-side .sticky-card,.premium-day-summary .sticky-card{position:static!important}

  /* Cards / stats */
  .trip-grid,.province-grid,.place-grid,.collection-grid,.review-grid,.route-memory-grid,.route-cover-grid-v35,
  .v6-ready-grid,.v6-duplicate-grid,.trip-info-grid-v33,.footprint-trip-grid-v38,.stats-wow-grid-v142748,
  .dash-level-feature-grid,.level-feature-grid,.v9-achievement-grid{grid-template-columns:minmax(0,1fr)!important}
  .stat-strip,.summary-metric-grid,.live-summary-grid,.v9-profile-stat-grid,.dashwow-pulse-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .photo-grid,.v7-trip-photo-grid,.gallery-photo-grid-v27,.upload-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Hero composition */
  .hero-v2{padding:24px 18px;min-height:0;display:block}.hero-copy{max-width:none}.hero-copy h2{font-size:31px;margin:8px 0 12px}.hero-copy p{font-size:12px}.hero-actions{width:100%}.hero-actions>.btn{flex:1 1 130px}
  .hero-illustration{display:none}.next-trip-card{width:100%;margin-top:18px;padding:18px}
  .task-v27-hero,.trip-tab-hero,.collection-hero,.privacy-hero-v142730,.group-join-hero-v36,
  .v9-footprint-hero,.v9-leader-hero,.story-hero-v5,.dashwow-hero{padding:20px 16px!important;border-radius:24px!important}
  .trip-tab-hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-height:0!important}
  .trip-tab-hero-copy,.trip-tab-hero-side{width:100%!important;max-width:none!important;min-width:0!important}
  .trip-tab-hero-copy h1,.trip-tab-hero-copy h2{font-size:30px!important}
  .trip-tab-hero-side{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  .trip-tab-hero-side .btn{width:100%}

  /* Trip title/header actions */
  .trip-header-v2,.trip-premium-hero{padding:17px!important;border-radius:22px!important}
  .trip-hero-title{font-size:clamp(24px,7.5vw,32px)!important;line-height:1.08!important}
  .trip-hero-meta{display:flex!important;flex-wrap:wrap!important;gap:6px 10px!important;white-space:normal!important}
  .trip-header-actions,.trip-action-dock{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:8px!important}
  .trip-header-actions>* ,.trip-action-dock>*{width:100%!important;min-width:0!important}

  /* Task / checklist / vali */
  .task-v27-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .task-v27-card{padding:13px!important}
  .task-v27-card,.task-v27-title-row{min-width:0}
  .task-v27-title-row{display:block!important}.task-v27-priority{display:inline-flex;margin-bottom:5px}
  .task-v27-actions{justify-content:flex-start!important;margin-top:10px}
  .task-v27-status-btn{flex:1 1 120px;min-height:44px}
  .checkgear-v161-item{padding:11px!important;grid-template-columns:auto minmax(0,1fr)!important;gap:10px!important}
  .checkgear-v161-item-actions{grid-column:2;justify-self:start;display:flex;flex-wrap:wrap}

  /* Booking */
  .booking-card{padding:14px!important;border-radius:20px!important}
  .booking-card [class*="booking-card-main"],.booking-card [class*="booking-row"]{min-width:0}
  .booking-media-grid,.booking-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Journal */
  .journal-card{padding:13px!important;border-radius:19px!important}
  .journal-card-actions{justify-content:flex-start!important;margin-top:10px}
  .journal-card-actions>*{flex:0 0 44px!important;min-width:44px!important;width:44px!important;height:44px!important}

  /* Gallery */
  .gallery-photo-grid-v27 article,.v7-trip-photo-grid article{min-width:0}

  /* Timeline remains a compact 3-column rail, not a desktop-width card. */
  .timeline{--tl-time-col:46px!important;--tl-rail-col:24px!important;--tl-col-gap:5px!important}
  .timeline>.premium-stop-wrap,.timeline>.stop-wrap.premium-stop-wrap,.timeline>.premium-travel-leg,.timeline>.travel-leg.premium-travel-leg{
    grid-template-columns:var(--tl-time-col) var(--tl-rail-col) minmax(0,1fr)!important
  }
  .premium-stop-card,.travel-leg-card{padding:12px!important;border-radius:17px!important}

  /* Modal = near full-screen sheet; internal scrolling only. */
  .modal,.modal-backdrop,[class*="modal-overlay"],[class*="popup-overlay"]{
    align-items:flex-end!important;justify-content:center!important;padding:8px!important
  }
  .modal-card,[class*="modal-card"],[class*="popup-card"]{
    width:100%!important;max-width:none!important;max-height:min(calc(var(--tl-visual-height,100dvh) - 8px),calc(100dvh - 8px))!important;
    border-radius:24px 24px 18px 18px!important;margin:0!important
  }
  .modal-head,.modal-header,[class*="modal-header"],[class*="popup-header"]{padding:15px 15px 11px!important}
  .modal-body,[class*="modal-body"],[class*="popup-body"]{padding-left:15px!important;padding-right:15px!important}
  .modal-footer,[class*="modal-footer"],[class*="popup-footer"]{
    padding:10px 15px max(12px,env(safe-area-inset-bottom))!important;background:inherit
  }
  .modal-close,[class*="modal-close"],[class*="popup-close"]{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}

  /* Table to card conversion. JS adds .tl-responsive-table and data-label. */
  table.tl-responsive-table{display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important}
  table.tl-responsive-table thead{display:none!important}
  table.tl-responsive-table tbody{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  table.tl-responsive-table tr{display:block!important;width:100%!important;padding:12px!important;border:1px solid var(--line)!important;border-radius:17px!important;background:var(--surface)!important;box-shadow:var(--shadow-sm)!important}
  table.tl-responsive-table td{display:grid!important;grid-template-columns:minmax(94px,35%) minmax(0,1fr)!important;gap:10px!important;align-items:start!important;width:100%!important;padding:7px 0!important;border:0!important;border-bottom:1px solid rgba(148,163,184,.13)!important;white-space:normal!important;overflow-wrap:anywhere!important}
  table.tl-responsive-table td:last-child{border-bottom:0!important}
  table.tl-responsive-table td::before{content:attr(data-label);font-size:9px;line-height:1.35;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
  table.tl-responsive-table td[data-label=""]::before{display:none}

  /* Search/list helpers */
  .search-links-grid{grid-template-columns:1fr!important}
  .v9-leader-hero{align-items:flex-start!important}.v9-leader-hero>span{font-size:42px!important}
  .v9-leader-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

@media (max-width:479px){
  :root{--tl-rsp-page-x:11px;--tl-rsp-card-pad:13px;--tl-rsp-gap:10px}
  .content{padding-left:11px!important;padding-right:11px!important}
  .panel,.mini-panel,.form-section,.sticky-card{padding:13px;border-radius:18px}
  .stat-strip,.summary-metric-grid,.live-summary-grid,.v9-profile-stat-grid,.dashwow-pulse-grid{gap:8px!important}
  .stat-strip>a,.stat-strip>div{padding:10px;min-height:68px}
  .photo-grid,.v7-trip-photo-grid,.gallery-photo-grid-v27,.upload-grid{gap:8px!important}
  .trip-header-actions,.trip-action-dock{grid-template-columns:1fr 1fr!important}
  .task-v27-summary{gap:8px!important}
  .task-v27-summary>*{padding:10px!important}
  .trip-tab-hero-copy h1,.trip-tab-hero-copy h2{font-size:27px!important}
  .modal,.modal-backdrop,[class*="modal-overlay"],[class*="popup-overlay"]{padding:4px!important}
  .modal-card,[class*="modal-card"],[class*="popup-card"]{max-height:min(calc(var(--tl-visual-height,100dvh) - 4px),calc(100dvh - 4px))!important;border-radius:20px 20px 14px 14px!important}
  table.tl-responsive-table td{grid-template-columns:82px minmax(0,1fr)!important;gap:8px!important}
}

@media (max-width:339px){
  :root{--tl-rsp-page-x:9px;--tl-rsp-card-pad:12px}
  .btn{padding-inline:11px;font-size:11px}
  .stat-strip,.summary-metric-grid,.live-summary-grid,.v9-profile-stat-grid,.dashwow-pulse-grid{grid-template-columns:1fr!important}
  .photo-grid,.v7-trip-photo-grid,.gallery-photo-grid-v27,.upload-grid{grid-template-columns:1fr!important}
  .trip-header-actions,.trip-action-dock,.task-v27-summary{grid-template-columns:1fr!important}
}

/* Tablet landscape: retain density without bringing desktop multi-column constraints back. */
@media (min-width:768px) and (max-width:1024px) and (orientation:landscape){
  .content{padding-left:24px!important;padding-right:24px!important}
  .trip-grid,.province-grid,.place-grid,.collection-grid,.photo-grid,.v7-trip-photo-grid,.gallery-photo-grid-v27{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .stat-strip,.summary-metric-grid,.live-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .editor-layout,.detail-grid{grid-template-columns:minmax(0,1fr) minmax(250px,32%)!important}
}

@media (max-width:1024px) and (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}

/* Overflow audit hotfixes for legacy fixed-width components. */
@media(max-width:1024px){
  .v13-page-heading,.task-v27-hero-actions,
  .trip-tab-hero-vault .trip-tab-hero-side,.trip-tab-hero-vault-actions,
  .trip-tab-hero-vault .trip-tab-hero-side-vault,.trip-tab-hero-vault .trip-tab-hero-vault-duo,
  body[data-page="trip"] .trip-premium-hero .trip-action-dock,
  body[data-page="trip"] .trip-tab-hero-gallery .trip-tab-hero-side,
  .preview-map-route-card-v142766{min-width:0!important;max-width:100%!important;width:auto}
  .responsive-table-shell,.level-privilege-table-v142732,.level-modal-table-v142732,
  .level-feature-modal-card-v142733,.trip-maker-income-table-v142767,.tmi-preview-table-wrap-v142769{
    max-width:100%!important;overflow-x:auto!important;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch
  }
  .responsive-table-shell table,.level-privilege-table-v142732 table,.level-modal-table-v142732 table,
  .trip-maker-income-table-v142767 table,.tmi-preview-table-wrap-v142769 table{max-width:none}
}
@media(max-width:767px){
  .v13-page-heading{width:100%!important}
  .task-v27-hero-actions{width:100%!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  .task-v27-hero-actions>*{flex:1 1 140px!important}
  .trip-tab-hero-vault-actions,.trip-tab-hero-vault .trip-tab-hero-vault-duo{width:100%!important;grid-template-columns:1fr!important}
}

/* ======================================================================
   TRIPLOOM V16.1 — Mobile/Tablet stability & compact content corrections
   - no document scroll jumps while Safari chrome expands/collapses
   - itinerary rows cannot overlap or inherit oversized heights
   - expense labels use adaptive short wording on narrow phones
   - floating TRIPLOOM AI stays above bottom navigation and can be dragged
   ====================================================================== */
@media (max-width:1024px){
  html{overflow-x:clip!important;scroll-behavior:auto!important}
  body{overflow-x:clip!important;scroll-behavior:auto!important;overscroll-behavior-x:none}
  .trip-tabs-top-shell,.trip-tabs,.trip-top-tabs,.tab-bar,.tabs,.settings-tabs,.journey-tabs,.account-tabs,.dashboard-tabs{
    scroll-behavior:auto!important;overflow-anchor:none!important
  }
  .bottom-nav,.triploom-ai-mascot-v1598{overflow-anchor:none!important}

  /* Tablet itinerary: never stretch cards to the height of sibling/grid content. */
  html body[data-page="trip"] .premium-itinerary-layout{align-items:start!important;grid-auto-rows:auto!important}
  html body[data-page="trip"] .timeline-panel,
  html body[data-page="trip"] .premium-day-summary{height:auto!important;min-height:0!important;align-self:start!important}
  html body[data-page="trip"] .premium-day-summary .sticky-card{height:auto!important;min-height:0!important}
  html body[data-page="trip"] .timeline{height:auto!important;min-height:0!important;align-items:stretch!important}
  html body[data-page="trip"] .timeline>.premium-stop-wrap,
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap{
    height:auto!important;min-height:0!important;align-items:start!important;overflow:visible!important
  }
  html body[data-page="trip"] .timeline>.premium-stop-wrap>.premium-stop-card,
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap>.premium-stop-card{
    height:auto!important;min-height:88px!important;align-self:start!important;overflow:visible!important
  }
  html body[data-page="trip"] .timeline>.premium-travel-leg,
  html body[data-page="trip"] .timeline>.travel-leg.premium-travel-leg{
    height:auto!important;min-height:60px!important;overflow:visible!important
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-time,
  html body[data-page="trip"] .premium-travel-leg .travel-rail{height:auto!important;min-height:60px!important}
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info{height:auto!important;min-height:44px!important}

  /* Floating AI must not cover the fixed bottom navigation by default. */
  html body[data-page="trip"] .triploom-ai-mascot-v1598{
    right:max(14px,env(safe-area-inset-right))!important;
    bottom:max(88px,calc(78px + env(safe-area-inset-bottom)))!important;
    max-width:calc(100vw - 16px)!important;
    touch-action:none
  }
  html body[data-page="trip"] .triploom-ai-mascot-v1598.is-left-side{align-items:flex-start!important}
  html body[data-page="trip"] .triploom-ai-mascot-v1598.is-dragging .triploom-ai-mascot-toggle-v1598{
    transition:none!important;transform:none!important;cursor:grabbing!important
  }
  html body[data-page="trip"] .triploom-ai-mascot-toggle-v1598{touch-action:none!important;user-select:none;-webkit-user-select:none}
  html body[data-page="trip"] .triploom-ai-mascot-dismiss-v161{
    pointer-events:auto;position:absolute;right:-7px;bottom:50px;z-index:4;
    width:27px;height:27px;min-width:27px;min-height:27px;padding:0;
    border:2px solid #fff;border-radius:50%;background:#294E56;color:#fff;
    display:grid;place-items:center;font:900 15px/1 "Nunito",sans-serif;cursor:pointer;
    box-shadow:0 5px 14px rgba(24,67,75,.22);touch-action:manipulation
  }
  html body[data-page="trip"] .triploom-ai-mascot-v1598.is-left-side .triploom-ai-mascot-dismiss-v161{right:auto;left:45px}
  html[data-theme="dark"] body[data-page="trip"] .triploom-ai-mascot-dismiss-v161{background:#DCEFEE;color:#173D44;border-color:#173D44}
}

@media (max-width:767px){
  /* Reserve actual space for the fixed bottom navigation. */
  body{padding-bottom:max(92px,calc(82px + env(safe-area-inset-bottom)))!important}
  .content{padding-bottom:max(112px,calc(102px + env(safe-area-inset-bottom)))!important}
  .bottom-nav{bottom:max(8px,env(safe-area-inset-bottom))!important}

  /* Mobile itinerary hard reset: each stop is an independent auto-height row. */
  html body[data-page="trip"] .timeline{
    --tl-time-col:46px!important;--tl-rail-col:24px!important;--tl-col-gap:6px!important;
    display:flex!important;flex-direction:column!important;gap:0!important
  }
  html body[data-page="trip"] .timeline>.premium-stop-wrap,
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap{
    display:grid!important;
    grid-template-columns:var(--tl-time-col) var(--tl-rail-col) minmax(0,1fr)!important;
    column-gap:var(--tl-col-gap)!important;
    min-height:0!important;height:auto!important;margin:0 0 8px!important;align-items:start!important
  }
  html body[data-page="trip"] .premium-stop-wrap .stop-time{
    min-height:0!important;height:auto!important;padding:15px 2px 0 0!important;align-self:start!important;justify-content:flex-start!important
  }
  html body[data-page="trip"] .premium-stop-wrap .stop-rail{
    min-height:100%!important;height:100%!important;align-self:stretch!important
  }
  html body[data-page="trip"] .timeline>.premium-stop-wrap>.premium-stop-card,
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap>.premium-stop-card,
  html body[data-page="trip"] .premium-stop-card{
    display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;grid-template-rows:auto auto!important;
    column-gap:9px!important;row-gap:8px!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:auto!important;min-height:0!important;padding:12px!important;
    align-items:start!important;align-self:start!important;overflow:visible!important
  }
  html body[data-page="trip"] .premium-stop-card .drag-handle{display:none!important}
  html body[data-page="trip"] .premium-stop-card .premium-stop-icon,
  html body[data-page="trip"] .premium-stop-card .stop-icon{
    grid-column:1!important;grid-row:1!important;width:38px!important;height:38px!important;align-self:start!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-content{
    grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
    width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;
    align-self:start!important;justify-content:flex-start!important;gap:5px!important;overflow:visible!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-title-row{
    display:block!important;width:100%!important;min-height:0!important;height:auto!important;padding:0!important;margin:0!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-title-copy{display:flex!important;min-height:0!important;height:auto!important}
  html body[data-page="trip"] .premium-stop-card h3{
    display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;
    overflow-wrap:normal!important;word-break:normal!important;line-height:1.22!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-address{
    display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;min-height:0!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-actions{
    grid-column:1 / -1!important;grid-row:2!important;position:static!important;
    display:flex!important;align-items:center!important;justify-content:flex-start!important;justify-self:stretch!important;
    width:100%!important;min-width:0!important;height:auto!important;min-height:32px!important;max-height:none!important;
    gap:6px!important;margin:0!important;padding:0!important;transform:none!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-actions>.badge,
  html body[data-page="trip"] .premium-stop-card .stop-actions>.stop-more{
    width:auto!important;min-width:44px!important;max-width:none!important;height:34px!important;min-height:34px!important;max-height:34px!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-actions>.stop-more{width:44px!important;max-width:44px!important}

  html body[data-page="trip"] .timeline>.premium-travel-leg,
  html body[data-page="trip"] .timeline>.travel-leg.premium-travel-leg{
    display:grid!important;grid-template-columns:var(--tl-time-col) var(--tl-rail-col) minmax(0,1fr)!important;
    column-gap:var(--tl-col-gap)!important;height:auto!important;min-height:64px!important;margin:0!important;align-items:stretch!important
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-time{height:auto!important;min-height:64px!important}
  html body[data-page="trip"] .premium-travel-leg .travel-rail{height:auto!important;min-height:64px!important;align-self:stretch!important}
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info{
    display:flex!important;flex-wrap:wrap!important;align-content:center!important;align-items:center!important;
    justify-content:space-between!important;gap:7px 9px!important;
    width:100%!important;min-width:0!important;height:auto!important;min-height:64px!important;padding:7px 0!important;overflow:visible!important
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-left{
    display:flex!important;flex:1 1 150px!important;min-width:0!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-copy{min-width:88px!important;flex:1 1 88px!important}
  html body[data-page="trip"] .premium-travel-leg .ev-leg-battery{flex:0 0 auto!important;margin:0!important}
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info>a{flex:0 0 auto!important;margin:0!important}
}

@media (max-width:640px){
  /* Expense cards: use short mobile labels instead of awkward two-line headings. */
  html body[data-page="trip"] .expense-col-label-v29{
    min-height:0!important;height:auto!important;margin-bottom:4px!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.1!important
  }
  html body[data-page="trip"] .expense-expected-v29>.expense-col-label-v29,
  html body[data-page="trip"] .expense-actual-v29>.expense-col-label-v29,
  html body[data-page="trip"] .expense-payer-v30>.expense-col-label-v29{font-size:0!important}
  html body[data-page="trip"] .expense-expected-v29>.expense-col-label-v29::after{content:"Dự kiến"}
  html body[data-page="trip"] .expense-actual-v29>.expense-col-label-v29::after{content:"Thực tế"}
  html body[data-page="trip"] .expense-payer-v30>.expense-col-label-v29::after{content:"Thanh toán"}
  html body[data-page="trip"] .expense-expected-v29>.expense-col-label-v29::after,
  html body[data-page="trip"] .expense-actual-v29>.expense-col-label-v29::after,
  html body[data-page="trip"] .expense-payer-v30>.expense-col-label-v29::after{
    font-size:7.4px!important;font-weight:850!important;letter-spacing:.02em!important;white-space:nowrap!important
  }
  html body[data-page="trip"] .expense-actual-btn-v29,
  html body[data-page="trip"] .expense-payer-btn-v30{font-size:0!important;white-space:nowrap!important;overflow:hidden!important}
  html body[data-page="trip"] .expense-actual-btn-v29::after{content:"Nhập thực tế"}
  html body[data-page="trip"] .expense-payer-btn-v30::after{content:"Chọn người trả"}
  html body[data-page="trip"] .expense-actual-btn-v29::after,
  html body[data-page="trip"] .expense-payer-btn-v30::after{font-size:7.2px!important;line-height:1!important;font-weight:850!important}
}

@media (max-width:479px){
  html body[data-page="trip"] .timeline{--tl-time-col:42px!important;--tl-rail-col:22px!important;--tl-col-gap:5px!important}
  html body[data-page="trip"] .premium-stop-wrap .stop-time b{font-size:11px!important}
  html body[data-page="trip"] .premium-stop-card{grid-template-columns:36px minmax(0,1fr)!important;padding:10px!important;column-gap:8px!important}
  html body[data-page="trip"] .premium-stop-card .premium-stop-icon,
  html body[data-page="trip"] .premium-stop-card .stop-icon{width:36px!important;height:36px!important}
  html body[data-page="trip"] .triploom-ai-mascot-panel-v1598{width:min(250px,calc(100vw - 24px))!important}
}
@media(max-width:1024px){
  html body[data-page="trip"] .triploom-ai-mascot-v1598.is-top-side{flex-direction:column-reverse!important}
  html body[data-page="trip"] .triploom-ai-mascot-v1598.is-top-side .triploom-ai-mascot-panel-v1598{transform-origin:top left!important}
  html body[data-page="trip"] .triploom-ai-mascot-v1598.is-top-side .triploom-ai-mascot-dismiss-v161{top:-7px;bottom:auto}
}

/* ======================================================================
   TRIPLOOM V16.2 — Mobile layout polish #43
   Fixes reported from real iPhone/tablet use:
   1) overview action buttons no longer touch/merge
   2) itinerary rows stay content-height without giant vertical gaps
   3) People hero uses the available width instead of tiny fixed green boxes
   4) Expense action buttons remain fully visible
   ====================================================================== */
@media (max-width:767px){
  /* 1. Overview action dock: deliberate 2-column composition with real gaps. */
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
    padding:10px!important;
    align-content:start!important;
    align-items:stretch!important;
  }
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>.trip-action-primary,
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>.trip-action-story{
    grid-column:1 / -1!important;
  }
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>a,
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>button,
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>form{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>form{display:block!important}
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock .btn{
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    height:46px!important;
    padding:0 11px!important;
    border-radius:14px!important;
    gap:7px!important;
    font-size:9.5px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock .btn span{
    min-width:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  /* 2. Timeline: content-sized grid rows only. This prevents legacy min-height /
        flex distribution from creating very large blank areas between stops. */
  html body[data-page="trip"] .timeline{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-auto-rows:max-content!important;
    align-content:start!important;
    justify-content:stretch!important;
    justify-items:stretch!important;
    gap:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
  html body[data-page="trip"] .timeline>.departure-timeline-row,
  html body[data-page="trip"] .timeline>.premium-stop-wrap,
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap,
  html body[data-page="trip"] .timeline>.premium-travel-leg,
  html body[data-page="trip"] .timeline>.travel-leg.premium-travel-leg{
    align-self:start!important;
    justify-self:stretch!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    max-height:none!important;
    box-sizing:border-box!important;
  }
  html body[data-page="trip"] .timeline>.departure-timeline-row{
    display:grid!important;
    grid-template-columns:var(--tl-time-col) var(--tl-rail-col) minmax(0,1fr)!important;
    column-gap:var(--tl-col-gap)!important;
    align-items:stretch!important;
    min-height:0!important;
    height:auto!important;
    margin:0 0 8px!important;
  }
  html body[data-page="trip"] .departure-timeline-row .stop-time{
    align-self:start!important;
    min-height:0!important;
    height:auto!important;
    padding-top:15px!important;
  }
  html body[data-page="trip"] .departure-timeline-row .departure-rail{
    align-self:stretch!important;
    height:100%!important;
    min-height:72px!important;
  }
  html body[data-page="trip"] .departure-timeline-row .departure-timeline-card{
    min-height:72px!important;
    height:auto!important;
    max-height:none!important;
    width:100%!important;
    min-width:0!important;
  }
  html body[data-page="trip"] .timeline>.premium-stop-wrap,
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap{
    display:grid!important;
    grid-template-columns:var(--tl-time-col) var(--tl-rail-col) minmax(0,1fr)!important;
    column-gap:var(--tl-col-gap)!important;
    align-items:stretch!important;
    grid-auto-rows:max-content!important;
    min-height:0!important;
    height:auto!important;
    margin:0 0 8px!important;
    padding:0!important;
  }
  html body[data-page="trip"] .premium-stop-wrap .stop-time{
    align-self:start!important;
    height:auto!important;
    min-height:0!important;
  }
  html body[data-page="trip"] .premium-stop-wrap .stop-rail{
    align-self:stretch!important;
    height:100%!important;
    min-height:0!important;
  }
  html body[data-page="trip"] .timeline>.premium-stop-wrap>.premium-stop-card,
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap>.premium-stop-card,
  html body[data-page="trip"] .premium-stop-card{
    align-self:start!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
  }
  html body[data-page="trip"] .timeline>.premium-travel-leg,
  html body[data-page="trip"] .timeline>.travel-leg.premium-travel-leg{
    display:grid!important;
    grid-template-columns:var(--tl-time-col) var(--tl-rail-col) minmax(0,1fr)!important;
    column-gap:var(--tl-col-gap)!important;
    align-items:stretch!important;
    grid-auto-rows:max-content!important;
    min-height:54px!important;
    height:auto!important;
    margin:0 0 4px!important;
    padding:0!important;
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-time,
  html body[data-page="trip"] .premium-travel-leg .travel-rail{
    min-height:54px!important;
    height:100%!important;
    max-height:none!important;
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info{
    align-self:start!important;
    min-height:54px!important;
    height:auto!important;
    max-height:none!important;
    padding:5px 0!important;
    align-content:center!important;
  }

  /* 3. People hero: use the full mobile width in a balanced two-card row. */
  html body[data-page="trip"] .trip-tab-hero-people .trip-tab-hero-side{
    display:grid!important;
    grid-template-columns:minmax(105px,.72fr) minmax(150px,1.28fr)!important;
    grid-template-rows:auto!important;
    gap:10px!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    align-items:stretch!important;
    justify-items:stretch!important;
  }
  html body[data-page="trip"] .trip-tab-hero-people .trip-tab-hero-score{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:108px!important;
    max-height:none!important;
    padding:14px 12px!important;
    border-radius:19px!important;
    justify-content:center!important;
  }
  html body[data-page="trip"] .trip-tab-hero-people .trip-tab-hero-score>b{font-size:32px!important;line-height:1!important}
  html body[data-page="trip"] .trip-tab-hero-people .trip-tab-hero-score>small{font-size:8px!important;white-space:nowrap!important}
  html body[data-page="trip"] .trip-tab-hero-people .trip-tab-hero-group-tools-v36{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    min-height:108px!important;
    max-height:none!important;
    padding:10px 11px!important;
    border-radius:19px!important;
    grid-template-rows:auto auto auto!important;
    gap:5px!important;
    overflow:visible!important;
    align-content:center!important;
  }
  html body[data-page="trip"] .trip-tab-hero-group-row-v37{
    min-height:30px!important;
    grid-template-columns:minmax(0,1fr) 30px!important;
    gap:7px!important;
  }
  html body[data-page="trip"] .trip-tab-hero-group-iconbtn-v37{
    width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important
  }
  html body[data-page="trip"] .trip-tab-hero-group-meta-v37 b{
    font-size:15px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
  }
  html body[data-page="trip"] .trip-tab-hero-group-regen-v37{margin:0!important;min-width:0!important}
  html body[data-page="trip"] .trip-tab-hero-group-regen-btn-v37{
    width:auto!important;max-width:100%!important;min-height:24px!important;padding:3px 0!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
  }

  /* 4. Expense list: reserve a real action column so edit + delete cannot be clipped. */
  html body[data-page="trip"] .expense-row-v29{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  html body[data-page="trip"] .expense-columns-v29:not(.is-group){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 72px!important;
    gap:6px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  html body[data-page="trip"] .expense-columns-v29:not(.is-group) .expense-actions-v33{
    width:72px!important;
    min-width:72px!important;
    max-width:72px!important;
    min-height:64px!important;
    padding:0!important;
    overflow:visible!important;
  }
  html body[data-page="trip"] .expense-actions-icons-v33{
    display:grid!important;
    grid-template-columns:repeat(2,32px)!important;
    justify-content:center!important;
    align-items:center!important;
    gap:5px!important;
    width:100%!important;
    min-width:0!important;
    overflow:visible!important;
  }
  html body[data-page="trip"] .expense-edit-action-v33,
  html body[data-page="trip"] .expense-actions-v33 .expense-delete-btn-v29{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
    max-width:32px!important;
    max-height:32px!important;
    font-size:13px!important;
  }

  /* Group expense rows are too dense for four columns on a phone: 2 x 2 is clearer. */
  html body[data-page="trip"] .expense-columns-v29.is-group,
  html body[data-page="trip"] .expense-row-v29.is-group-row .expense-columns-v29.is-group{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
  }
  html body[data-page="trip"] .expense-columns-v29.is-group .expense-payer-v30{grid-column:1!important}
  html body[data-page="trip"] .expense-columns-v29.is-group .expense-actions-v33{
    grid-column:2!important;
    width:100%!important;
    min-width:0!important;
    min-height:64px!important;
    align-self:stretch!important;
  }
}

@media (max-width:359px){
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock{grid-template-columns:1fr!important}
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>*{grid-column:1!important}
  html body[data-page="trip"] .trip-tab-hero-people .trip-tab-hero-side{
    grid-template-columns:1fr!important;
  }
  html body[data-page="trip"] .trip-tab-hero-people .trip-tab-hero-score,
  html body[data-page="trip"] .trip-tab-hero-people .trip-tab-hero-group-tools-v36{min-height:96px!important}
  html body[data-page="trip"] .expense-columns-v29:not(.is-group){grid-template-columns:1fr 1fr!important}
  html body[data-page="trip"] .expense-columns-v29:not(.is-group) .expense-actions-v33{
    grid-column:1 / -1!important;width:100%!important;max-width:none!important;min-height:38px!important
  }
  html body[data-page="trip"] .expense-columns-v29:not(.is-group) .expense-actions-icons-v33{justify-content:end!important}
}

/* ======================================================================
   TRIPLOOM V16.3 — Mobile/Tablet stable + smart compact layer #44
   Scope: <=1024px only. Desktop remains untouched.
   - iOS Safari scroll stability: no document scrollIntoView work on chrome resize,
     no expensive sticky backdrop blur while the page is moving.
   - Overview hero uses a compact information hierarchy.
   - Itinerary cards and travel legs use content-sized rows with less empty space.
   - Mobile action grids explicitly reset legacy forced grid columns.
   ====================================================================== */
@media (max-width:1024px){
  html{overflow-x:clip!important;overflow-y:visible!important;scroll-behavior:auto!important}
  body:not(.modal-open):not(.triploom-dialog-open-v1566):not(.map-focus-open):not(.task-reminder-open){
    overflow-x:clip!important;overflow-y:visible!important;scroll-behavior:auto!important
  }
  /* A large sticky blurred header is expensive on iOS Safari while the URL bar is animating.
     Keep the same visual surface but render it as an opaque composited layer. */
  .triploom-global-header-v1503{
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
    background:var(--gh-bg)!important;transition:none!important
  }
  .triploom-global-header-v1503.is-scrolled{box-shadow:0 5px 16px rgba(35,76,88,.07)!important}
  .trip-tabs-top-shell,.trip-tabs,.trip-top-tabs,.tab-bar,.tabs,.settings-tabs,.journey-tabs,.account-tabs,.dashboard-tabs{
    scroll-behavior:auto!important
  }
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock,
  html body[data-page="trip"] .trip-premium-hero .trip-departure-summary,
  html body[data-page="trip"] .trip-premium-hero .premium-trip-stats{
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important
  }
}

@media (max-width:767px){
  /* ---------------- Overview: compact, balanced and predictable ---------------- */
  html body[data-page="trip"] .trip-premium-hero{
    padding:14px!important;gap:12px!important;border-radius:20px!important;min-height:0!important
  }
  html body[data-page="trip"] .trip-premium-hero .trip-header-copy{min-width:0!important}
  html body[data-page="trip"] .trip-premium-hero .trip-premium-kicker{margin-bottom:7px!important;gap:6px!important}
  html body[data-page="trip"] .trip-premium-hero .trip-header-copy h2,
  html body[data-page="trip"] .trip-premium-hero .trip-hero-title{
    margin:5px 0 7px!important;font-size:clamp(27px,8.6vw,38px)!important;line-height:1.03!important;
    letter-spacing:-.035em!important;white-space:normal!important;display:-webkit-box!important;
    -webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important
  }
  html body[data-page="trip"] .trip-premium-hero .trip-hero-meta{
    margin:0 0 10px!important;font-size:10px!important;line-height:1.35!important;gap:3px 6px!important;
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
    overflow:hidden!important;white-space:normal!important
  }
  html body[data-page="trip"] .trip-premium-hero .trip-departure-summary{
    min-height:54px!important;padding:8px 10px!important;border-radius:16px!important;gap:9px!important
  }
  html body[data-page="trip"] .trip-premium-hero .trip-departure-summary>span{
    width:36px!important;height:36px!important;min-width:36px!important;border-radius:12px!important
  }
  html body[data-page="trip"] .trip-premium-hero .trip-departure-summary>div{min-width:0!important}
  html body[data-page="trip"] .trip-premium-hero .trip-departure-summary small{font-size:7px!important;letter-spacing:.12em!important}
  html body[data-page="trip"] .trip-premium-hero .trip-departure-summary b{
    font-size:10.5px!important;line-height:1.2!important;display:block!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:ellipsis!important
  }
  html body[data-page="trip"] .trip-premium-hero .trip-departure-summary>a{
    min-height:34px!important;height:34px!important;padding:0 10px!important;border-radius:11px!important;font-size:8.5px!important
  }
  html body[data-page="trip"] .trip-premium-hero .premium-trip-stats{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;
    width:100%!important;margin:10px 0 0!important
  }
  html body[data-page="trip"] .trip-premium-hero .premium-trip-stats>span{
    min-width:0!important;min-height:62px!important;height:auto!important;padding:8px!important;border-radius:15px!important;gap:7px!important
  }
  html body[data-page="trip"] .trip-premium-hero .premium-trip-stats>span>i{
    width:31px!important;height:31px!important;min-width:31px!important;border-radius:10px!important
  }
  html body[data-page="trip"] .trip-premium-hero .premium-trip-stats>span>i svg{width:14px!important;height:14px!important}
  html body[data-page="trip"] .trip-premium-hero .premium-trip-stats>span b{
    font-size:13px!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
  }
  html body[data-page="trip"] .trip-premium-hero .premium-trip-stats>span small{
    margin-top:2px!important;font-size:7px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
  }

  /* Reset legacy max-width:460 forced single-column rules, then compose intentionally. */
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-flow:row!important;
    grid-auto-rows:42px!important;gap:6px!important;padding:8px!important;border-radius:17px!important;margin-top:10px!important
  }
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>*{grid-column:auto!important;min-width:0!important}
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>.trip-action-primary,
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>.trip-action-story,
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>.trip-action-span-two{grid-column:1 / -1!important}
  html body[data-page="trip"] .trip-premium-hero .trip-action-delete-form.trip-action-delete-inline{grid-column:auto!important}
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock .btn,
  html body[data-page="trip"] .trip-premium-hero .trip-action-delete-form.trip-action-delete-inline .btn{
    min-height:42px!important;height:42px!important;padding:0 10px!important;border-radius:13px!important;
    font-size:9px!important;gap:6px!important;justify-content:flex-start!important
  }
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock .btn svg{width:15px!important;height:15px!important;flex:0 0 15px!important}

  /* ---------------- Itinerary: smaller rhythm, same functions ---------------- */
  html body[data-page="trip"] .timeline{
    --tl-time-col:36px!important;--tl-rail-col:18px!important;--tl-col-gap:4px!important;
    grid-auto-rows:max-content!important;align-content:start!important;gap:0!important
  }
  html body[data-page="trip"] .timeline>.departure-timeline-row,
  html body[data-page="trip"] .timeline>.premium-stop-wrap,
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap{
    margin:0 0 5px!important
  }
  html body[data-page="trip"] .timeline>.premium-travel-leg,
  html body[data-page="trip"] .timeline>.travel-leg.premium-travel-leg{
    min-height:48px!important;margin:0 0 2px!important
  }
  html body[data-page="trip"] .premium-stop-wrap .stop-time{padding-top:10px!important;text-align:right!important}
  html body[data-page="trip"] .premium-stop-wrap .stop-time b{font-size:10.5px!important;line-height:1!important}
  html body[data-page="trip"] .premium-stop-wrap .stop-time small{font-size:7.5px!important;line-height:1.1!important;margin-top:3px!important}
  html body[data-page="trip"] .premium-stop-card{
    display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;grid-template-rows:auto auto!important;
    column-gap:8px!important;row-gap:6px!important;padding:9px 10px!important;border-radius:17px!important;
    min-height:0!important;height:auto!important;max-height:none!important
  }
  html body[data-page="trip"] .premium-stop-card .drag-handle{display:none!important}
  html body[data-page="trip"] .premium-stop-card .premium-stop-icon,
  html body[data-page="trip"] .premium-stop-card .stop-icon{
    grid-column:1!important;grid-row:1!important;width:34px!important;height:34px!important;min-width:34px!important;border-radius:12px!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-content{
    grid-column:2!important;grid-row:1!important;gap:3px!important;min-width:0!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-label{font-size:6.8px!important;line-height:1.15!important;letter-spacing:.12em!important}
  html body[data-page="trip"] .premium-stop-card h3{
    margin:1px 0!important;font-size:13px!important;line-height:1.16!important;-webkit-line-clamp:2!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-address{
    font-size:8.6px!important;line-height:1.28!important;gap:5px!important;-webkit-line-clamp:1!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-note{
    margin:4px 0 0!important;padding:6px 8px!important;border-radius:10px!important;font-size:8.7px!important;line-height:1.3!important;
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-links{gap:5px!important;margin-top:3px!important}
  html body[data-page="trip"] .premium-stop-card .stop-link-btn{
    height:30px!important;min-height:30px!important;padding:0 8px!important;border-radius:9px!important;font-size:7.8px!important;gap:4px!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-actions{
    grid-column:1 / -1!important;grid-row:2!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;
    width:100%!important;min-height:30px!important;height:auto!important;gap:5px!important;margin:0!important;padding:0!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-actions>.badge{
    min-width:0!important;height:30px!important;min-height:30px!important;padding:0 9px!important;border-radius:10px!important;font-size:7.8px!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-actions>.stop-more{
    width:34px!important;min-width:34px!important;height:30px!important;min-height:30px!important;border-radius:10px!important;margin-left:auto!important
  }
  html body[data-page="trip"] .premium-stop-card .stop-actions>.stop-more svg{width:14px!important;height:14px!important}

  html body[data-page="trip"] .premium-travel-leg .travel-leg-time,
  html body[data-page="trip"] .premium-travel-leg .travel-rail{min-height:48px!important;height:48px!important}
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info{
    min-height:48px!important;padding:4px 0!important;gap:5px 7px!important;flex-wrap:nowrap!important
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-left{
    min-width:0!important;flex:1 1 auto!important;gap:5px!important;flex-wrap:nowrap!important
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-copy{min-width:0!important;flex:1 1 auto!important}
  html body[data-page="trip"] .premium-travel-leg .travel-leg-copy b{font-size:10.5px!important;line-height:1.05!important}
  html body[data-page="trip"] .premium-travel-leg .travel-leg-copy small{
    display:block!important;max-width:100%!important;font-size:7.5px!important;line-height:1.15!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
  }
  html body[data-page="trip"] .premium-travel-leg .ev-leg-battery{
    min-height:31px!important;height:31px!important;padding:0 8px!important;border-radius:10px!important;gap:4px!important;white-space:nowrap!important
  }
  html body[data-page="trip"] .premium-travel-leg .ev-leg-battery b{font-size:10px!important}
  html body[data-page="trip"] .premium-travel-leg .ev-leg-battery small{font-size:7.3px!important}
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info>a{
    min-height:32px!important;height:32px!important;padding:0 8px!important;border-radius:10px!important;font-size:8px!important;white-space:nowrap!important
  }

  /* Generic mobile density: preserve 44px touch targets for primary controls, but keep cards tighter. */
  .section-head{gap:8px!important;margin-bottom:10px!important}
  .section-head h1,.section-head h2,.section-head h3{line-height:1.15!important}
  .trip-tabs-top-shell{padding:7px!important;border-radius:18px!important}
  .trip-tabs-top-shell .trip-tabs a{min-height:40px!important;height:40px!important;padding:0 11px!important;border-radius:12px!important;font-size:8.7px!important}
}

@media (max-width:389px){
  html body[data-page="trip"] .trip-premium-hero .premium-trip-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body[data-page="trip"] .trip-premium-hero .premium-trip-stats>span:last-child{grid-column:1 / -1!important}
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info{flex-wrap:wrap!important}
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info>a{margin-left:auto!important}
}

@media (min-width:768px) and (max-width:1024px){
  /* Tablet: compact without pretending to be Desktop. */
  html body[data-page="trip"] .trip-premium-hero{padding:20px!important;gap:16px!important}
  html body[data-page="trip"] .trip-premium-hero .premium-trip-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;padding:10px!important}
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>*{grid-column:auto!important}
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>.trip-action-primary,
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>.trip-action-story{grid-column:span 3!important}
  html body[data-page="trip"] .premium-stop-card{min-height:0!important;height:auto!important}
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info{min-height:56px!important}
}


/* ======================================================================
   TRIPLOOM V16.3.1 — final iOS scroll + mobile density corrections #45
   ====================================================================== */
@media (max-width:1024px){
  /* Fixed translucent blur layers are a common source of scroll repaint jank on
     iOS Safari. The visual tone is preserved with an opaque surface. */
  .bottom-nav{
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
    background:rgba(255,255,255,.985)!important;transition:none!important;
  }
  html[data-theme="dark"] .bottom-nav,body.theme-dark .bottom-nav{background:rgba(13,27,34,.985)!important}

  /* The close control must stay inside the viewport; a negative right offset
     added 7px to document scrollWidth on phones/tablets. */
  html body[data-page="trip"] .triploom-ai-mascot-dismiss-v161{right:0!important}
  html body[data-page="trip"] .triploom-ai-mascot-v1598.is-left-side .triploom-ai-mascot-dismiss-v161{right:auto!important;left:45px!important}

  /* Tablet action hierarchy is deliberately 2-column; no lonely third column. */
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>.trip-action-primary,
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>.trip-action-story,
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>.trip-action-span-two{grid-column:1 / -1!important}
}

@media (max-width:767px){
  /* Strong last-rule itinerary reset for the real generated markup. */
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap>.stop-card.premium-stop-card{
    min-height:0!important;height:auto!important;padding:9px 10px!important;
    grid-template-columns:34px minmax(0,1fr)!important;grid-template-rows:auto auto!important;
    column-gap:8px!important;row-gap:5px!important;border-radius:17px!important;
  }
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap>.stop-card.premium-stop-card>.drag-handle{display:none!important}
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap>.stop-card.premium-stop-card>.stop-icon{
    width:34px!important;height:34px!important;min-width:34px!important;
  }
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap>.stop-card.premium-stop-card>.stop-content{
    min-height:0!important;height:auto!important;gap:2px!important;
  }
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap>.stop-card.premium-stop-card>.stop-actions{
    min-height:30px!important;height:30px!important;gap:5px!important;overflow:hidden!important;
  }
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap>.stop-card.premium-stop-card>.stop-actions>.badge{
    min-width:0!important;height:30px!important;min-height:30px!important;padding:0 8px!important;font-size:7.5px!important;
  }
  html body[data-page="trip"] .timeline>.stop-wrap.premium-stop-wrap>.stop-card.premium-stop-card>.stop-actions>.stop-more{
    width:34px!important;min-width:34px!important;max-width:34px!important;height:30px!important;min-height:30px!important;
  }
  html body[data-page="trip"] .timeline>.travel-leg.premium-travel-leg{min-height:50px!important;height:auto!important}
  html body[data-page="trip"] .timeline>.travel-leg.premium-travel-leg>.travel-leg-time,
  html body[data-page="trip"] .timeline>.travel-leg.premium-travel-leg>.travel-rail{min-height:50px!important;height:50px!important}
  html body[data-page="trip"] .timeline>.travel-leg.premium-travel-leg>.travel-leg-info{
    min-height:50px!important;height:auto!important;padding:4px 0!important;
  }

  /* Compact page rhythm without reducing touch target sizes of primary actions. */
  .content{padding-left:10px!important;padding-right:10px!important}
  .panel,.mini-panel{scroll-margin-top:88px}
}

@media (min-width:768px) and (max-width:1024px){
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>.trip-action-primary,
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>.trip-action-story{grid-column:1 / -1!important}
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>form{height:48px!important}
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock .btn,
  html body[data-page="trip"] .trip-premium-hero .trip-action-dock>form .btn{min-height:48px!important;height:48px!important}
}

/* ======================================================================
   TRIPLOOM V16.4 — Mobile alignment + AI badge correction #46
   Reported from real iPhone use:
   1) embedded tab bar must never overlap hero title/content
   2) itinerary time/leg rows keep stable columns and readable time values
   3) checklist pending/ready cards share one predictable mobile grid
   4) floating AI uses X as the corner badge and shows TRIPLOOM AI below face
   Scope: phone/tablet only; desktop and feature logic are untouched.
   ====================================================================== */
@media (max-width:1024px){
  /* Keep the horizontal tab scroller as its own surface on touch devices.
     Legacy desktop CSS intentionally used negative margin to embed it in the
     hero; that overlap is fragile on iOS when fonts/viewport resize. */
  html body[data-page="trip"] .trip-tabs-top-shell{
    position:relative!important;z-index:8!important;
    margin:0 0 10px!important;transform:none!important;padding:0!important;
  }
  html body[data-page="trip"] .trip-tabs-top-shell .trip-tabs{
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
    background:rgba(255,255,255,.985)!important;
  }
  html[data-theme="dark"] body[data-page="trip"] .trip-tabs-top-shell .trip-tabs{
    background:rgba(18,31,38,.985)!important;
  }
  html body[data-page="trip"] .trip-tabs-top-shell + .trip-premium-hero,
  html body[data-page="trip"] .trip-tabs-top-shell + .trip-tab-hero{margin-top:0!important}

  /* AI: the dismiss control occupies the former mini AI badge position. */
  html body[data-page="trip"] .triploom-ai-mascot-toggle-v1598{
    width:62px!important;height:68px!important;min-width:62px!important;min-height:68px!important;
    padding:6px 5px 5px!important;border-radius:20px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;
  }
  html body[data-page="trip"] .triploom-ai-mascot-face-v1598{
    flex:0 0 auto!important;transform:scale(.82)!important;transform-origin:center center!important;
  }
  html body[data-page="trip"] .triploom-ai-mascot-mini-v1598{display:none!important}
  html body[data-page="trip"] .triploom-ai-mascot-label-v164{
    display:block!important;max-width:54px!important;margin:-1px 0 0!important;
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    color:#249D98!important;font:900 6.6px/1.05 "Nunito",sans-serif!important;letter-spacing:.035em!important;text-align:center!important;
    pointer-events:none!important;
  }
  html[data-theme="dark"] body[data-page="trip"] .triploom-ai-mascot-label-v164{color:#BFE5E2!important}
  html body[data-page="trip"] .triploom-ai-mascot-dismiss-v161{
    right:-4px!important;left:auto!important;top:auto!important;bottom:49px!important;
    width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;
    font-size:14px!important;border-width:2px!important;
  }
  html body[data-page="trip"] .triploom-ai-mascot-v1598.is-left-side .triploom-ai-mascot-dismiss-v161{
    right:auto!important;left:43px!important;
  }
  html body[data-page="trip"] .triploom-ai-mascot-v1598.is-top-side .triploom-ai-mascot-dismiss-v161{
    top:-4px!important;bottom:auto!important;
  }
}

@media (max-width:767px){
  /* Hero now starts directly after the separated tabs; no hidden title area. */
  html body[data-page="trip"] .trip-premium-hero{
    padding-top:14px!important;
  }
  html body[data-page="trip"] .trip-tab-hero{
    padding-top:18px!important;min-height:0!important;
  }

  /* ---------------- Itinerary: stable mobile rail ---------------- */
  html body[data-page="trip"] .timeline{
    --tl-time-col:54px!important;--tl-rail-col:20px!important;--tl-col-gap:5px!important;
  }
  html body[data-page="trip"] .premium-stop-wrap .stop-time{
    padding:11px 2px 0 0!important;overflow:visible!important;text-align:right!important;
  }
  html body[data-page="trip"] .premium-stop-wrap .stop-time b{
    display:block!important;white-space:nowrap!important;word-break:keep-all!important;
    font-size:11px!important;line-height:1.05!important;letter-spacing:-.02em!important;
  }
  html body[data-page="trip"] .premium-stop-wrap .stop-time small{
    display:block!important;white-space:nowrap!important;font-size:7.2px!important;line-height:1.15!important;
  }
  html body[data-page="trip"] .timeline>.travel-leg.premium-travel-leg,
  html body[data-page="trip"] .timeline>.premium-travel-leg{
    min-height:52px!important;height:auto!important;margin:0 0 3px!important;
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-time,
  html body[data-page="trip"] .premium-travel-leg .travel-rail{
    min-height:52px!important;height:52px!important;
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;align-content:center!important;justify-content:stretch!important;
    gap:6px!important;min-height:52px!important;height:auto!important;padding:4px 0!important;overflow:visible!important;
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-left{
    display:grid!important;grid-template-columns:minmax(60px,1fr) auto!important;
    align-items:center!important;gap:6px!important;min-width:0!important;width:100%!important;
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-copy{
    min-width:0!important;width:auto!important;flex:none!important;
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-copy b{
    display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
    font-size:10px!important;line-height:1.05!important;
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-copy small{
    display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:7.2px!important;
  }
  html body[data-page="trip"] .premium-travel-leg .ev-leg-battery{
    flex:none!important;min-width:0!important;max-width:96px!important;height:30px!important;min-height:30px!important;padding:0 7px!important;
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info>a{
    justify-self:end!important;flex:none!important;min-width:82px!important;max-width:92px!important;
    height:32px!important;min-height:32px!important;padding:0 8px!important;white-space:nowrap!important;
  }

  /* ---------------- Checklist: one aligned geometry ---------------- */
  html body[data-page="trip"] .checkgear-v161-page{gap:12px!important}
  html body[data-page="trip"] .checkgear-v161-dual{gap:12px!important}
  html body[data-page="trip"] .checkgear-v161-pane{border-radius:19px!important}
  html body[data-page="trip"] .checkgear-v161-pane-head{
    grid-template-columns:38px minmax(0,1fr) auto!important;gap:9px!important;padding:12px!important;
  }
  html body[data-page="trip"] .checkgear-v161-pane-icon{width:38px!important;height:38px!important;border-radius:12px!important}
  html body[data-page="trip"] .checkgear-v161-pane-head h2{font-size:15px!important;line-height:1.15!important}
  html body[data-page="trip"] .checkgear-v161-pane-head p{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;
    font-size:9px!important;line-height:1.35!important;
  }
  html body[data-page="trip"] .checkgear-v161-count{
    grid-column:auto!important;justify-self:end!important;margin:0!important;min-height:30px!important;padding:0 9px!important;font-size:9px!important;
  }
  html body[data-page="trip"] .checkgear-v161-pane-body{padding:8px!important}
  html body[data-page="trip"] .checkgear-v161-list{gap:7px!important}

  html body[data-page="trip"] .checkgear-v161-item,
  html body[data-page="trip"] .checkgear-v161-item.is-ready{
    display:grid!important;
    grid-template-columns:32px 36px minmax(0,1fr) auto!important;
    grid-template-rows:auto!important;
    align-items:center!important;column-gap:7px!important;row-gap:0!important;
    min-height:66px!important;height:auto!important;padding:8px!important;border-radius:15px!important;
  }
  html body[data-page="trip"] .checkgear-v161-toggle,
  html body[data-page="trip"] .checkgear-v161-ready-mark{
    grid-column:1!important;grid-row:1!important;margin:0!important;align-self:center!important;justify-self:center!important;
  }
  html body[data-page="trip"] .checkgear-v161-toggle button,
  html body[data-page="trip"] .checkgear-v161-ready-mark{
    width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;border-radius:9px!important;
  }
  html body[data-page="trip"] .checkgear-v161-item-icon{
    grid-column:2!important;grid-row:1!important;width:36px!important;height:36px!important;border-radius:11px!important;
    align-self:center!important;justify-self:center!important;
  }
  html body[data-page="trip"] .checkgear-v161-item-copy{
    grid-column:3!important;grid-row:1!important;min-width:0!important;align-self:center!important;
  }
  html body[data-page="trip"] .checkgear-v161-item-copy>b{
    display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
    white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;
    font-size:12.2px!important;line-height:1.2!important;
  }
  html body[data-page="trip"] .checkgear-v161-item-copy>div{gap:4px!important;margin-top:4px!important;flex-wrap:wrap!important}
  html body[data-page="trip"] .checkgear-v161-item-copy>div span{
    min-height:20px!important;height:20px!important;padding:0 7px!important;font-size:7.7px!important;white-space:nowrap!important;
  }
  html body[data-page="trip"] .checkgear-v161-item-copy>p{
    margin-top:4px!important;font-size:8px!important;line-height:1.25!important;-webkit-line-clamp:1!important;
  }
  html body[data-page="trip"] .checkgear-v161-item-actions,
  html body[data-page="trip"] .checkgear-v161-undo{
    grid-column:4!important;grid-row:1!important;justify-self:end!important;align-self:center!important;
    display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:5px!important;margin:0!important;
  }
  html body[data-page="trip"] .checkgear-v161-edit,
  html body[data-page="trip"] .checkgear-v161-undo button,
  html body[data-page="trip"] .checkgear-v161-item-actions .mini-delete{
    width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;
    padding:0!important;border-radius:10px!important;display:grid!important;place-items:center!important;margin:0!important;
  }
}

@media (max-width:389px){
  html body[data-page="trip"] .timeline{--tl-time-col:50px!important;--tl-rail-col:18px!important;--tl-col-gap:4px!important}
  html body[data-page="trip"] .premium-stop-wrap .stop-time b{font-size:10.5px!important}
  html body[data-page="trip"] .premium-travel-leg .travel-leg-left{grid-template-columns:minmax(54px,1fr) auto!important;gap:4px!important}
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info>a{min-width:76px!important;max-width:82px!important;padding:0 6px!important;font-size:7.3px!important}
  html body[data-page="trip"] .premium-travel-leg .ev-leg-battery{max-width:88px!important;padding:0 5px!important}

  html body[data-page="trip"] .checkgear-v161-item,
  html body[data-page="trip"] .checkgear-v161-item.is-ready{
    grid-template-columns:29px 32px minmax(0,1fr) auto!important;column-gap:5px!important;padding:7px!important;
  }
  html body[data-page="trip"] .checkgear-v161-toggle button,
  html body[data-page="trip"] .checkgear-v161-ready-mark{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important}
  html body[data-page="trip"] .checkgear-v161-item-icon{width:32px!important;height:32px!important}
  html body[data-page="trip"] .checkgear-v161-edit,
  html body[data-page="trip"] .checkgear-v161-undo button,
  html body[data-page="trip"] .checkgear-v161-item-actions .mini-delete{
    width:29px!important;height:29px!important;min-width:29px!important;min-height:29px!important;max-width:29px!important;
  }
  html body[data-page="trip"] .checkgear-v161-item-copy>b{font-size:11.3px!important}
  html body[data-page="trip"] .checkgear-v161-item-copy>div span{padding:0 5px!important;font-size:7px!important}
}

@media (max-width:359px){
  /* On very narrow phones let the route action move below rather than crush
     time/battery data into unreadable fragments. */
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info{
    grid-template-columns:minmax(0,1fr)!important;gap:3px!important;padding:4px 0 5px!important;
  }
  html body[data-page="trip"] .premium-travel-leg .travel-leg-info>a{justify-self:start!important}
}

/* ---- source: responsive-mobile-tablet-v164.css ---- */
/* ======================================================================
   TRIPLOOM V16.4 — Page-by-page Mobile / Tablet Final Audit
   Scope: UI/responsive only at <= 1024px. Desktop remains untouched.
   The rules below are intentionally grouped by real page/tab instead of
   applying one desktop-shrink formula to the entire application.
   ====================================================================== */

@media (max-width:1024px){
  :root{
    --tl164-page-x:clamp(14px,2.4vw,24px);
    --tl164-gap:clamp(10px,1.7vw,16px);
    --tl164-radius:20px;
    --tl164-touch:44px;
    --tl164-bottom-safe:max(96px,calc(82px + env(safe-area-inset-bottom)));
  }
  *,*::before,*::after{box-sizing:border-box}
  html,body{max-width:100%;overflow-x:clip!important}
  body{min-width:0!important}
  body>.app-shell,.main,.content,.page-shell,.page-content{min-width:0!important;max-width:100%!important}
  .content{padding-left:var(--tl164-page-x)!important;padding-right:var(--tl164-page-x)!important}
  .content>*{min-width:0;max-width:100%}
  .content :is(.panel,.mini-panel,.form-section,.card,article,section,aside,header,footer,nav,div){min-width:0}
  .content :is(h1,h2,h3,h4,p,span,b,strong,small,label,a,button,td,th,dd,dt){overflow-wrap:break-word}
  .content :is(.url,.email,[data-breakable],a[href^="mailto:"],a[href^="http"]){overflow-wrap:anywhere;word-break:break-word}
  .content :is(input,select,textarea,button){max-width:100%}
  .content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea){width:100%;min-width:0}
  .content :is(.btn,.icon-btn,button:not(.no-touch-size)){min-height:var(--tl164-touch)}
  .content :is(.section-head,.hero-head,.form-page-head,.place-detail-head){min-width:0;gap:10px}
  .content :is(.section-head,.hero-head,.form-page-head,.place-detail-head)>div:first-child{min-width:0}
  .content :is(.section-head,.hero-head,.form-page-head,.place-detail-head) h1,
  .content :is(.section-head,.hero-head,.form-page-head,.place-detail-head) h2{line-height:1.12}
  .content :is(.badge,.chip,[class*="badge"],[class*="pill"]){max-width:100%}
  .content :is(.table-wrap,.table-scroll,.responsive-table-shell,[class*="-table-wrap"]){max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
  .content table{max-width:100%}
  .content img,.content video,.content canvas,.content iframe{max-width:100%;height:auto}

  /* Header / navigation — separate tablet composition. */
  .triploom-global-header-v1503{
    min-width:0!important;max-width:100%!important;height:auto!important;min-height:76px!important;
    padding:10px var(--tl164-page-x)!important;gap:10px!important
  }
  .triploom-gh-left-v1503{min-width:0!important;gap:10px!important}
  .triploom-gh-brand-v1503{min-width:0!important}
  .triploom-gh-search-v1503{min-width:220px!important;max-width:min(420px,38vw)!important;height:44px!important}
  .triploom-gh-right-v1503{gap:7px!important;flex:0 0 auto!important}
  .triploom-gh-circle-v1503,.triploom-gh-avatar-trigger-v1503{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
  .triploom-gh-mega-v1503,.triploom-gh-notification-popover-v1503,.triploom-gh-account-menu-v1506,.language-popover{
    max-width:min(94vw,760px)!important;max-height:min(74dvh,720px)!important;overflow:auto!important;overscroll-behavior:contain
  }
  .bottom-nav{overflow-anchor:none!important}

  /* Forms: tablet is allowed two columns, but complex blocks may opt into one. */
  .form-grid.three,.form-grid.four,.form-grid.five{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .editor-layout,.detail-grid,.booking-layout,.journal-layout,.trip-info-layout-v33{min-width:0}

  /* Modal / popup audit base — internal scroll, fixed visible header/footer. */
  .modal,.modal-backdrop,[class*="modal-overlay"],[class*="popup-overlay"],[class*="-modal-backdrop"]{overscroll-behavior:contain}
  .modal-card,[class*="modal-card"],[class*="popup-card"],[class*="modal-shell"]{
    max-width:calc(100vw - 28px)!important;max-height:calc(100dvh - 28px)!important;min-width:0!important
  }
  .modal-card :is(.modal-body,.modal-scroll,[class*="-body"],[class*="-section"]),
  [class*="modal-card"] :is(.modal-body,.modal-scroll,[class*="-body"]){min-width:0;max-width:100%}

  /* ========================= Dashboard ========================= */
  body[data-page="dashboard"] .dashwow-hero{min-height:0!important;grid-template-columns:minmax(0,1fr) minmax(260px,.72fr)!important;gap:16px!important;padding:24px!important}
  body[data-page="dashboard"] .dashwow-hero-copy{min-width:0!important}
  body[data-page="dashboard"] .dashwow-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  body[data-page="dashboard"] .dashwow-mini-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body[data-page="dashboard"] .dashwow-content-grid{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="dashboard"] .dashwow-pulse-grid,
  body[data-page="dashboard"] .footprint-trip-grid-v38,
  body[data-page="dashboard"] .dash-level-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--tl164-gap)!important}
  body[data-page="dashboard"] .dashwow-side{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:var(--tl164-gap)!important}

  /* ========================= Province / Places ========================= */
  body[data-page="provinces"] .province-grid,
  body[data-page="province"] .place-grid,
  body[data-page="place"] .place-grid,
  body[data-page="favorites"] .place-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body[data-page="provinces"] .toolbar,
  body[data-page="province"] .filters-bar{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:8px!important}
  body[data-page="provinces"] .toolbar .search-box,
  body[data-page="province"] .filters-bar .search-box{width:100%!important;min-width:0!important}
  body[data-page="province"] .province-hero{min-height:270px!important;padding:24px!important}
  body[data-page="province"] .province-hero-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  body[data-page="place"] .detail-grid{grid-template-columns:minmax(0,1fr) minmax(260px,.36fr)!important;gap:16px!important}
  body[data-page="place"] .detail-metrics{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body[data-page="place"] .detail-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  body[data-page="place"] .photo-grid,.place-photos{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  body[data-page="place"] .review-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="place_form"] .editor-layout{grid-template-columns:minmax(0,1fr) minmax(260px,.32fr)!important;gap:16px!important}
  body[data-page="place_form"] .upload-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}

  /* ========================= Collections / Trips list ========================= */
  body[data-page="collections"] .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body[data-page="collection"] .collection-hero{gap:12px!important}
  body[data-page="trips"] .trip-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body[data-page="trips"] .trip-card-v2{min-width:0!important}
  body[data-page="trips"] .trip-metrics{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  body[data-page="trips"] .trip-card-menu-panel{max-width:min(260px,80vw)!important}

  /* ========================= Trip form ========================= */
  body[data-page="trip_form"] .editor-layout{grid-template-columns:minmax(0,1fr) minmax(280px,.34fr)!important;gap:16px!important;align-items:start!important}
  body[data-page="trip_form"] .route-choice-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
  body[data-page="trip_form"] .route-cover-grid-v35{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body[data-page="trip_form"] .route-form-settings-v35{top:96px!important}

  /* ========================= Trip shell / all tabs ========================= */
  body[data-page="trip"] .trip-tabs-top-shell{position:relative!important;z-index:10!important;max-width:100%!important;margin-bottom:12px!important}
  body[data-page="trip"] .trip-tabs{max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;scrollbar-width:none!important}
  body[data-page="trip"] .trip-tabs::-webkit-scrollbar{display:none}
  body[data-page="trip"] .trip-tabs>*{flex:0 0 auto!important}
  body[data-page="trip"] .trip-tab-hero{min-width:0!important;grid-template-columns:minmax(0,1fr) minmax(220px,.34fr)!important;gap:16px!important}
  body[data-page="trip"] .trip-tab-hero-copy,
  body[data-page="trip"] .trip-tab-hero-side{min-width:0!important}
  body[data-page="trip"] .trip-soft-content-v15111{min-width:0!important;max-width:100%!important}

  /* Overview */
  body[data-page="trip"] .route-overview-layout{grid-template-columns:minmax(0,1fr) minmax(270px,.38fr)!important;gap:14px!important}
  body[data-page="trip"] .route-memory-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="trip"] .route-prep-bars,.route-prep-tip-list{min-width:0!important}

  /* Packing / Vali */
  body[data-page="trip"] .pack-v20-dual{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body[data-page="trip"] .pack-v20-pane{min-width:0!important}
  body[data-page="trip"] .pack-v20-list article{min-width:0!important}
  body[data-page="trip"] .pack-v167-modal-shell{width:min(900px,calc(100vw - 28px))!important;max-height:calc(100dvh - 28px)!important;overflow:auto!important}
  body[data-page="trip"] .pack-add-compose-v1560{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important}

  /* Itinerary */
  body[data-page="trip"] .premium-itinerary-layout{grid-template-columns:minmax(0,1fr) minmax(260px,.30fr)!important;gap:14px!important;align-items:start!important}
  body[data-page="trip"] .timeline-panel,.timeline{min-width:0!important}
  body[data-page="trip"] .premium-stop-card,.premium-travel-leg{min-width:0!important;max-width:100%!important}
  body[data-page="trip"] .travel-leg-info,.travel-leg-left,.travel-leg-copy{min-width:0!important}
  body[data-page="trip"] .day-summary .sticky-card{top:96px!important}

  /* Calendar & map */
  body[data-page="trip"] .calendar-map-combined-v168{min-width:0!important}
  body[data-page="trip"] .calendar-board-v168{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="trip"] .calendar-map-layout-v168{grid-template-columns:minmax(0,1fr) minmax(260px,.36fr)!important;gap:12px!important}
  body[data-page="trip"] .calendar-map-frame-v168{min-height:360px!important}
  body[data-page="trip"] .calendar-map-filter-v168{max-width:100%!important;overflow-x:auto!important;white-space:nowrap!important}

  /* Inbox */
  body[data-page="trip"] .v6-inbox-row-v2{display:grid!important;grid-template-columns:38px minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important}
  body[data-page="trip"] .v6-inbox-main{min-width:0!important}
  body[data-page="trip"] .v6-inbox-topline,.v6-inbox-state-line{display:flex!important;flex-wrap:wrap!important;gap:5px 8px!important}
  body[data-page="trip"] .v6-row-actions-v2{display:flex!important;flex-wrap:nowrap!important;gap:5px!important}

  /* Tasks */
  body[data-page="trip"] .task-v27-card{min-width:0!important;gap:10px!important}
  body[data-page="trip"] .task-v27-title-row{min-width:0!important}
  body[data-page="trip"] .task-v27-meta,.task-v27-assignee-statuses{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
  body[data-page="trip"] .task-v27-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important}

  /* Expenses */
  body[data-page="trip"] .expenses-layout-v28,
  body[data-page="trip"] .expenses-layout-single-v46{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .expense-row-v29{min-width:0!important}
  body[data-page="trip"] .expense-columns-v29{min-width:0!important;gap:7px!important}
  body[data-page="trip"] .split-member-grid-v39{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="trip"] .settlement-compact-row-v49{min-width:0!important}

  /* People */
  body[data-page="trip"] .group-member-row-v36{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important}
  body[data-page="trip"] .group-member-copy-v36{min-width:0!important}
  body[data-page="trip"] .group-member-actions-v36{display:flex!important;flex-wrap:nowrap!important;gap:6px!important}
  body[data-page="trip"] .group-permission-grid-v52{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Booking */
  body[data-page="trip"] .booking-layout-v139{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .booking-card-v139{min-width:0!important}
  body[data-page="trip"] .booking-quick-meta-v139{display:flex!important;flex-wrap:wrap!important;gap:5px!important}
  body[data-page="trip"] .booking-card-actions-v139{display:flex!important;flex-wrap:nowrap!important;gap:6px!important}
  body[data-page="trip"] .booking-type-grid-v139,
  body[data-page="trip"] .booking-extra-grid-v139,
  body[data-page="trip"] .booking-payment-grid-v141{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="trip"] .booking-view-attachments-v15120{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}

  /* Vault */
  body[data-page="trip"] .v152-vault-layout{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .v150-vault-row,.v158-contact-row{min-width:0!important}
  body[data-page="trip"] .v150-vault-row-actions,.v158-contact-actions{display:flex!important;flex-wrap:nowrap!important;gap:6px!important}
  body[data-page="trip"] .v150-vault-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Checklist */
  body[data-page="trip"] .checkgear-v161-dual{grid-template-columns:1fr!important;gap:12px!important}
  body[data-page="trip"] .checkgear-v161-item{min-width:0!important}

  /* Gallery */
  body[data-page="trip"] .gallery-toolbar-v27{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
  body[data-page="trip"] .gallery-album-strip-v27{max-width:100%!important;overflow-x:auto!important;overscroll-behavior-inline:contain!important}
  body[data-page="trip"] .gallery-photo-grid-v27{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
  body[data-page="trip"] .gallery-photo-actions-v27{display:flex!important;flex-wrap:nowrap!important;gap:5px!important}

  /* Journal / Info */
  body[data-page="trip"] .journal-layout-v32{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .journal-card-v32{min-width:0!important}
  body[data-page="trip"] .journal-card-actions-v32{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:6px!important}
  body[data-page="trip"] .trip-info-layout-v33{grid-template-columns:minmax(0,1fr) minmax(260px,.34fr)!important;gap:14px!important}
  body[data-page="trip"] .trip-info-grid-v33{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* ========================= Travel mode ========================= */
  body[data-page="travel_mode"] .live-hero-v4{min-height:0!important;padding:24px!important}
  body[data-page="travel_mode"] .live-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="travel_mode"] .live-stop-card{min-width:0!important}
  body[data-page="travel_mode"] .live-stop-actions,.live-status-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important}

  /* ========================= Search / stats / leaderboard ========================= */
  body[data-page="search"] .big-search{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
  body[data-page="search"] .search-links-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="footprints"] .v9-profile-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="footprints"] .two-col{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="leaderboard"] .v9-leader-list article{min-width:0!important}
  body[data-page="leaderboard"] .v9-leader-metrics{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
  body[data-page="stats"] .stats-wow-grid-v142748{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="stats"] .stats-wow-kpis-v142748{grid-template-columns:repeat(3,minmax(0,1fr))!important}

  /* ========================= Settings / account ========================= */
  body[data-page="settings"] .account-page-main-v142728{min-width:0!important}
  body[data-page="settings"] .profile-wow-form-v142729,
  body[data-page="settings"] .privacy-grid-v142730,
  body[data-page="settings"] .settings-security-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body[data-page="settings"] .profile-wow-identity-v142729{min-width:0!important}
  body[data-page="settings"] .privacy-preview-card-v142730{min-width:0!important}
  body[data-page="settings"] .level-feature-grid,
  body[data-page="settings"] .v9-achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* ========================= Group join ========================= */
  body[data-page="join_group"] .group-join-grid-v36{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
}

/* ======================================================================
   PHONE — each real screen receives its own one-column/compact composition.
   ====================================================================== */
@media (max-width:767px){
  :root{--tl164-page-x:12px;--tl164-gap:10px;--tl164-radius:18px}
  body{padding-bottom:var(--tl164-bottom-safe)!important;font-size:14px}
  .content{padding-top:8px!important;padding-bottom:26px!important}
  .content :is(.panel,.mini-panel,.form-section,.sticky-card){border-radius:18px!important}
  .content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea){font-size:16px!important}

  /* Mobile header: dedicated two-row layout instead of shrinking Desktop. */
  .triploom-global-header-v1503{
    position:sticky!important;top:0!important;z-index:70!important;
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"brand tools" "search search"!important;
    align-items:center!important;min-height:0!important;height:auto!important;
    padding:8px 12px 9px!important;gap:7px 8px!important;background:rgba(242,249,250,.985)!important;
    border-bottom:1px solid rgba(157,196,200,.36)!important;box-shadow:0 5px 16px rgba(36,75,87,.045)!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important
  }
  .triploom-gh-left-v1503{display:contents!important}
  .triploom-gh-brand-v1503{grid-area:brand!important;width:max-content!important;max-width:160px!important;height:42px!important;padding:0!important;gap:0!important}
  .triploom-gh-logo-v1503{width:auto!important;max-width:150px!important;height:40px!important;object-fit:contain!important}
  .triploom-gh-brand-divider-v1503,.triploom-gh-slogan-v1503{display:none!important}
  .triploom-gh-search-v1503{grid-area:search!important;margin:0!important;width:100%!important;max-width:none!important;min-width:0!important;height:44px!important;border-radius:15px!important;padding:0 11px!important}
  .triploom-gh-search-v1503 input{font-size:16px!important;min-height:42px!important}
  .triploom-gh-search-submit-v1503{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
  .triploom-gh-quick-v1503{display:none!important}
  .triploom-gh-right-v1503{grid-area:tools!important;display:flex!important;justify-content:flex-end!important;gap:5px!important;min-width:0!important}
  .triploom-gh-circle-v1503,.triploom-gh-avatar-trigger-v1503{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:13px!important}
  .triploom-gh-right-v1503 svg{width:17px!important;height:17px!important}
  .triploom-gh-notification-popover-v1503,.triploom-gh-account-menu-v1506,.language-popover{
    position:fixed!important;left:10px!important;right:10px!important;top:104px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 126px)!important;border-radius:18px!important
  }
  .bottom-nav{
    left:10px!important;right:10px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;
    height:66px!important;padding:5px 8px!important;border-radius:22px!important;background:rgba(255,255,255,.985)!important;
    -webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:0 12px 28px rgba(28,68,79,.13)!important
  }
  .bottom-item{min-width:0!important;height:54px!important;gap:2px!important}
  .bottom-item small{font-size:8px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%}
  .bottom-add{width:48px!important;height:48px!important;border-radius:16px!important}

  /* Headings and actions */
  .content :is(.section-head,.hero-head,.form-page-head,.place-detail-head){align-items:flex-start!important;flex-direction:column!important}
  .content :is(.head-actions,.detail-actions,.province-hero-actions,.collection-hero-actions,.hero-actions,.section-head-actions){width:100%!important;display:flex!important;flex-wrap:wrap!important;gap:7px!important}
  .content :is(.head-actions,.detail-actions,.province-hero-actions,.collection-hero-actions,.hero-actions,.section-head-actions)>.btn{flex:1 1 130px!important}
  .form-grid.two,.form-grid.three,.form-grid.four,.form-grid.five{grid-template-columns:minmax(0,1fr)!important}

  /* Dashboard */
  body[data-page="dashboard"] .dashwow-hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:16px!important;gap:12px!important;border-radius:21px!important}
  body[data-page="dashboard"] .dashwow-hero-copy h1,
  body[data-page="dashboard"] .dashwow-hero-copy h2{font-size:clamp(28px,8.6vw,38px)!important;line-height:1.04!important}
  body[data-page="dashboard"] .dashwow-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
  body[data-page="dashboard"] .dashwow-actions>*{min-width:0!important;width:100%!important}
  body[data-page="dashboard"] .dashwow-mini-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="dashboard"] .dashwow-visual{min-height:170px!important}
  body[data-page="dashboard"] .dashwow-pulse-grid,
  body[data-page="dashboard"] .footprint-trip-grid-v38,
  body[data-page="dashboard"] .dash-level-feature-grid{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="dashboard"] .dashwow-side{grid-template-columns:minmax(0,1fr)!important}

  /* Provinces / place browsing */
  body[data-page="provinces"] .toolbar,
  body[data-page="province"] .filters-bar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body[data-page="provinces"] .toolbar .search-box,
  body[data-page="province"] .filters-bar .search-box{grid-column:1 / -1!important}
  body[data-page="province"] .province-hero{min-height:220px!important;padding:16px!important;border-radius:21px!important}
  body[data-page="province"] .province-hero h1,body[data-page="province"] .province-hero h2{font-size:30px!important;line-height:1.05!important}
  body[data-page="place"] .detail-grid,
  body[data-page="place_form"] .editor-layout{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="place_form"] .editor-main{order:1!important}
  body[data-page="place_form"] .editor-side{order:2!important}
  body[data-page="place_form"] .upload-grid{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="place"] .detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="place"] .detail-cover{min-height:210px!important}
  body[data-page="place"] .detail-summary{padding:16px!important}
  body[data-page="place"] .photo-grid,.place-photos{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="place"] .review-grid{grid-template-columns:minmax(0,1fr)!important}

  /* Collections / trip list */
  body[data-page="collections"] .collection-grid,
  body[data-page="trips"] .trip-grid{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="collection"] .collection-hero{padding:16px!important;border-radius:20px!important}
  body[data-page="trips"] .trip-card-body{padding:13px!important}
  body[data-page="trips"] .trip-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}

  /* Trip form — content first, settings second. */
  body[data-page="trip_form"] .editor-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip_form"] .editor-main{order:1!important}
  body[data-page="trip_form"] .editor-side{order:2!important}
  body[data-page="trip_form"] .route-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body[data-page="trip_form"] .route-choice{min-height:82px!important;padding:10px!important}
  body[data-page="trip_form"] .route-cover-grid-v35{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip_form"] .departure-grid{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip_form"] .route-form-settings-v35{position:static!important}

  /* Trip shell / tab hero */
  body[data-page="trip"] .trip-tabs-top-shell{margin:0 -2px 9px!important;padding:0!important;overflow:hidden!important}
  body[data-page="trip"] .trip-tabs{padding:6px!important;border-radius:18px!important;gap:4px!important}
  body[data-page="trip"] .trip-tabs a{min-height:42px!important;height:42px!important;padding:0 11px!important;border-radius:13px!important;font-size:10px!important}
  body[data-page="trip"] .trip-tab-hero{display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:16px!important;gap:11px!important;border-radius:21px!important;min-height:0!important}
  body[data-page="trip"] .trip-tab-hero-copy h1,
  body[data-page="trip"] .trip-tab-hero-copy h2{font-size:clamp(26px,8.4vw,36px)!important;line-height:1.03!important;margin-bottom:7px!important}
  body[data-page="trip"] .trip-tab-hero-copy p{font-size:10px!important;line-height:1.4!important;max-width:100%!important}
  body[data-page="trip"] .trip-tab-hero-side{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;gap:7px!important}
  body[data-page="trip"] .trip-tab-hero-score{width:100%!important;min-height:72px!important}
  body[data-page="trip"] .trip-tab-hero-side>.btn{width:100%!important;min-height:44px!important}

  /* Overview */
  body[data-page="trip"] .route-overview-layout{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .route-memory-grid{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .route-overview-title{font-size:22px!important;line-height:1.1!important}
  body[data-page="trip"] .route-prep-summary{grid-template-columns:92px minmax(0,1fr)!important;gap:10px!important}
  body[data-page="trip"] .route-prep-tip-item{padding:10px!important}

  /* Packing */
  body[data-page="trip"] .pack-v20-dual{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .pack-v167-progress-card{padding:13px!important;border-radius:18px!important}
  body[data-page="trip"] .pack-v167-progress-head h3{font-size:15px!important}
  body[data-page="trip"] .pack-v20-pane{padding:12px!important;border-radius:18px!important}
  body[data-page="trip"] .pack-v19-step-head{display:grid!important;grid-template-columns:36px minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important}
  body[data-page="trip"] .pack-v19-step-head>div{min-width:0!important}
  body[data-page="trip"] .pack-v19-step-head h3{font-size:15px!important;line-height:1.15!important}
  body[data-page="trip"] .pack-v19-step-head p{font-size:9px!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body[data-page="trip"] .pack-v20-list article{display:grid!important;grid-template-columns:34px 36px minmax(0,1fr) 34px!important;gap:7px!important;align-items:center!important;padding:8px!important;min-height:60px!important}
  body[data-page="trip"] .pack-v20-list article>div{min-width:0!important}
  body[data-page="trip"] .pack-v20-list article b{display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
  body[data-page="trip"] .pack-v167-modal-shell{position:fixed!important;inset:auto 7px max(7px,env(safe-area-inset-bottom)) 7px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 14px)!important;border-radius:22px!important;overflow:auto!important}
  body[data-page="trip"] .pack-add-compose-v1560{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .pack-v20-template-picker{max-width:100%!important;overflow-x:auto!important;white-space:nowrap!important}

  /* Itinerary — stable row geometry and no chopped time strings. */
  body[data-page="trip"] .premium-itinerary-layout{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .premium-day-summary{order:2!important}
  body[data-page="trip"] .premium-day-summary .sticky-card{position:static!important}
  body[data-page="trip"] .timeline{--tl-time-col:54px!important;--tl-rail-col:20px!important;--tl-col-gap:5px!important}
  body[data-page="trip"] .premium-stop-wrap .stop-time{min-width:0!important;padding-right:2px!important;text-align:right!important}
  body[data-page="trip"] .premium-stop-wrap .stop-time b{white-space:nowrap!important;word-break:keep-all!important;overflow:visible!important;font-size:11px!important;letter-spacing:-.02em!important}
  body[data-page="trip"] .premium-stop-wrap .stop-time small{white-space:normal!important;line-height:1.1!important;font-size:7px!important}
  body[data-page="trip"] .premium-stop-card{min-height:0!important;height:auto!important;padding:10px!important}
  body[data-page="trip"] .premium-stop-card .stop-title-copy{min-width:0!important}
  body[data-page="trip"] .premium-stop-card .stop-title-copy h3,
  body[data-page="trip"] .premium-stop-card .stop-title-copy b{line-height:1.12!important}
  body[data-page="trip"] .premium-travel-leg{min-height:50px!important;height:auto!important}
  body[data-page="trip"] .premium-travel-leg .travel-leg-time{min-height:50px!important}
  body[data-page="trip"] .premium-travel-leg .travel-leg-info{min-height:50px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important;align-items:center!important}
  body[data-page="trip"] .premium-travel-leg .travel-leg-left{min-width:0!important;display:flex!important;align-items:center!important;gap:6px!important}
  body[data-page="trip"] .premium-travel-leg .travel-leg-copy{min-width:0!important;flex:1 1 auto!important}
  body[data-page="trip"] .premium-travel-leg .travel-leg-copy b,
  body[data-page="trip"] .premium-travel-leg .travel-leg-copy small{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body[data-page="trip"] .premium-travel-leg .ev-leg-battery{flex:0 0 auto!important}
  body[data-page="trip"] .premium-travel-leg .travel-leg-info>a{flex:0 0 auto!important;white-space:nowrap!important}

  /* Calendar & map */
  body[data-page="trip"] .calendar-board-v168{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .calendar-map-layout-v168{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .calendar-map-frame-v168{min-height:300px!important;height:min(52vh,420px)!important}
  body[data-page="trip"] .calendar-day{min-width:0!important}

  /* Inbox */
  body[data-page="trip"] .v6-inbox-row-v2{grid-template-columns:32px minmax(0,1fr)!important;padding:10px!important}
  body[data-page="trip"] .v6-inbox-stt{width:32px!important;height:32px!important;min-width:32px!important}
  body[data-page="trip"] .v6-row-actions-v2{grid-column:2!important;justify-self:start!important;margin-top:4px!important}
  body[data-page="trip"] .v6-inbox-icon-btn{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}

  /* Tasks */
  body[data-page="trip"] .task-v27-card{padding:11px!important;border-radius:16px!important}
  body[data-page="trip"] .task-v27-title-row{display:block!important}
  body[data-page="trip"] .task-v27-title-row h3{font-size:14px!important;line-height:1.18!important;margin-bottom:4px!important}
  body[data-page="trip"] .task-v27-actions{justify-content:flex-start!important}
  body[data-page="trip"] .task-v27-actions>*{min-height:38px!important}

  /* Expenses */
  body[data-page="trip"] .money-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body[data-page="trip"] .expense-row-v29{padding:10px!important;border-radius:16px!important}
  body[data-page="trip"] .expense-main-v29{min-width:0!important}
  body[data-page="trip"] .expense-copy-v29{min-width:0!important}
  body[data-page="trip"] .expense-copy-v29 h3,
  body[data-page="trip"] .expense-copy-v29 b{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
  body[data-page="trip"] .expense-columns-v29:not(.is-group){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr)) auto!important;gap:6px!important;align-items:stretch!important}
  body[data-page="trip"] .expense-columns-v29:not(.is-group) .expense-actions-v33{min-width:78px!important;max-width:82px!important;width:82px!important}
  body[data-page="trip"] .expense-columns-v29.is-group{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="trip"] .expense-columns-v29.is-group .expense-payer-v30{grid-column:1 / -1!important}
  body[data-page="trip"] .expense-columns-v29.is-group .expense-actions-v33{grid-column:1 / -1!important;min-height:44px!important}
  body[data-page="trip"] .split-member-grid-v39{grid-template-columns:minmax(0,1fr)!important}

  /* People */
  body[data-page="trip"] .team-members-panel-v38{padding:12px!important}
  body[data-page="trip"] .group-member-row-v36{grid-template-columns:40px minmax(0,1fr)!important;padding:9px!important}
  body[data-page="trip"] .group-member-actions-v36{grid-column:2!important;justify-self:start!important;margin-top:5px!important;flex-wrap:wrap!important}
  body[data-page="trip"] .group-permission-grid-v52{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .trip-tab-hero-group-tools-v36{width:100%!important}
  body[data-page="trip"] .trip-tab-hero-group-row-v37{min-width:0!important}

  /* Booking */
  body[data-page="trip"] .booking-card-v139{padding:11px!important;border-radius:16px!important}
  body[data-page="trip"] .booking-body{min-width:0!important}
  body[data-page="trip"] .booking-title{font-size:14px!important;line-height:1.17!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
  body[data-page="trip"] .booking-card-actions-v139{margin-top:7px!important;justify-content:flex-start!important}
  body[data-page="trip"] .booking-card-actions-v139>*{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
  body[data-page="trip"] .booking-type-grid-v139,
  body[data-page="trip"] .booking-extra-grid-v139,
  body[data-page="trip"] .booking-payment-grid-v141{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .booking-view-attachments-v15120{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Vault */
  body[data-page="trip"] .v150-vault-row,
  body[data-page="trip"] .v158-contact-row{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:8px!important;padding:9px!important}
  body[data-page="trip"] .v150-vault-row-actions,
  body[data-page="trip"] .v158-contact-actions{grid-column:2!important;justify-self:start!important;margin-top:4px!important}
  body[data-page="trip"] .v150-vault-modal-grid{grid-template-columns:minmax(0,1fr)!important}

  /* Checklist */
  body[data-page="trip"] .checkgear-v161-pane{border-radius:18px!important}
  body[data-page="trip"] .checkgear-v161-item,
  body[data-page="trip"] .checkgear-v161-item.is-ready{min-height:62px!important}

  /* Gallery */
  body[data-page="trip"] .gallery-photo-grid-v27{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  body[data-page="trip"] .gallery-photo-card-v27{min-width:0!important;border-radius:14px!important}
  body[data-page="trip"] .gallery-photo-actions-v27>*{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}

  /* Journal / info */
  body[data-page="trip"] .journal-card-v32{padding:10px!important;border-radius:16px!important}
  body[data-page="trip"] .journal-top-v32{align-items:flex-start!important;gap:8px!important}
  body[data-page="trip"] .journal-text-v32{line-height:1.4!important}
  body[data-page="trip"] .journal-card-actions-v32{overflow-x:auto!important;scrollbar-width:none!important;padding-bottom:2px!important}
  body[data-page="trip"] .journal-card-actions-v32::-webkit-scrollbar{display:none}
  body[data-page="trip"] .journal-card-actions-v32>*{flex:0 0 38px!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
  body[data-page="trip"] .trip-info-layout-v33{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .trip-info-grid-v33{grid-template-columns:minmax(0,1fr)!important}

  /* Travel mode */
  body[data-page="travel_mode"] .live-hero-v4{padding:16px!important;border-radius:20px!important}
  body[data-page="travel_mode"] .live-hero-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important}
  body[data-page="travel_mode"] .live-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="travel_mode"] .live-stop-card{padding:11px!important}
  body[data-page="travel_mode"] .live-stop-actions>*{flex:1 1 120px!important}

  /* Search / stats / leaderboard */
  body[data-page="search"] .big-search{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="search"] .big-search-submit-v142775{width:100%!important}
  body[data-page="search"] .search-links-grid{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="footprints"] .v9-profile-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="stats"] .stats-wow-grid-v142748{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="stats"] .stats-wow-kpis-v142748{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Settings */
  body[data-page="settings"] .profile-wow-form-v142729,
  body[data-page="settings"] .privacy-grid-v142730,
  body[data-page="settings"] .settings-security-grid{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="settings"] .profile-wow-identity-v142729{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  body[data-page="settings"] .profile-wow-avatar-v142729{justify-self:start!important}
  body[data-page="settings"] .level-feature-grid,
  body[data-page="settings"] .v9-achievement-grid{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="settings"] .privacy-guard-grid-v142730{grid-template-columns:minmax(0,1fr)!important}

  /* Join group */
  body[data-page="join_group"] .group-join-grid-v36{grid-template-columns:minmax(0,1fr)!important}

  /* Global popup mobile sheet */
  .modal,.modal-backdrop,[class*="modal-overlay"],[class*="popup-overlay"]{padding:6px!important;align-items:flex-end!important}
  .modal-card,[class*="modal-card"],[class*="popup-card"]{
    width:100%!important;max-width:none!important;max-height:calc(100dvh - 8px)!important;margin:0!important;
    border-radius:22px 22px 16px 16px!important
  }
  .modal-close,[class*="modal-close"],[class*="popup-close"]{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
  .level-privilege-table-wrap-v142732{max-width:100%!important;overflow-x:auto!important}
}

/* Small phones: preserve legibility; avoid squeezing 3-column numeric blocks. */
@media (max-width:430px){
  body[data-page="provinces"] .province-grid,
  body[data-page="province"] .place-grid,
  body[data-page="place"] .place-grid,
  body[data-page="favorites"] .place-grid{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="dashboard"] .dashwow-mini-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="trip"] .trip-premium-hero .premium-trip-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="trip"] .trip-premium-hero .premium-trip-stats>span:last-child:nth-child(odd){grid-column:1 / -1!important}
  body[data-page="trip"] .expense-columns-v29:not(.is-group){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="trip"] .expense-columns-v29:not(.is-group) .expense-actions-v33{grid-column:1 / -1!important;width:100%!important;max-width:none!important}
}

@media (max-width:359px){
  :root{--tl164-page-x:9px}
  .triploom-global-header-v1503{padding-left:9px!important;padding-right:9px!important}
  .triploom-gh-logo-v1503{max-width:132px!important}
  .bottom-nav{left:6px!important;right:6px!important;padding-inline:4px!important}
  .bottom-item small{font-size:7px!important}
  body[data-page="dashboard"] .dashwow-actions{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip_form"] .route-choice-grid{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .trip-premium-hero .premium-trip-stats{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .trip-premium-hero .trip-action-dock{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .premium-travel-leg .travel-leg-info{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip"] .premium-travel-leg .travel-leg-info>a{justify-self:start!important}
  body[data-page="trip"] .money-cards{grid-template-columns:minmax(0,1fr)!important}
}

/* Landscape phones: reclaim vertical space without reverting to desktop. */
@media (max-width:900px) and (orientation:landscape) and (max-height:520px){
  .triploom-global-header-v1503{position:relative!important;grid-template-columns:minmax(0,1fr) auto minmax(220px,.8fr)!important;grid-template-areas:"brand tools search"!important;padding-block:6px!important}
  .triploom-gh-search-v1503{height:40px!important}
  .bottom-nav{height:58px!important}
  .bottom-item{height:48px!important}
  .bottom-add{width:44px!important;height:44px!important}
  body[data-page="trip"] .trip-tab-hero{grid-template-columns:minmax(0,1fr) minmax(190px,.38fr)!important}
  body[data-page="dashboard"] .dashwow-hero{grid-template-columns:minmax(0,1fr) minmax(220px,.55fr)!important}
}

/* Dark-mode surfaces introduced by this final audit. */
@media (max-width:767px){
  html[data-theme="dark"] .triploom-global-header-v1503{background:rgba(17,31,37,.985)!important;border-color:#2B4149!important}
  html[data-theme="dark"] .bottom-nav{background:rgba(15,28,34,.985)!important}
}


/* ======================================================================
   V16.4 audit extension — community / journey / creator / utility pages.
   These are intentionally page-scoped so every route gets its own
   tablet/mobile composition instead of inheriting a generic shrink rule.
   ====================================================================== */
@media (max-width:1024px){
  /* Chuyện Hành Trình / community feed */
  body[data-page="stories"] .story-community-hero-v14{grid-template-columns:minmax(0,1fr) minmax(220px,.34fr)!important;gap:16px!important;padding:22px!important}
  body[data-page="stories"] .story-hero-actions-v38{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;align-content:center!important}
  body[data-page="stories"] .story-kind-guide-v38{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="stories"] .story-toolbar-v14{min-width:0!important}
  body[data-page="stories"] .story-toolbar-v14>nav{max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;scrollbar-width:none!important}
  body[data-page="stories"] .story-toolbar-v14>nav::-webkit-scrollbar{display:none}
  body[data-page="stories"] .story-toolbar-v14>nav>*{flex:0 0 auto!important}
  body[data-page="stories"] .story-toolbar-v14>form{display:grid!important;grid-template-columns:auto minmax(0,1fr) minmax(140px,.32fr) 44px!important;gap:7px!important;min-width:0!important}
  body[data-page="stories"] .story-layout-v14{grid-template-columns:minmax(0,1fr) minmax(250px,.30fr)!important;gap:14px!important;align-items:start!important}
  body[data-page="stories"] .story-card-v14,body[data-page="stories"] .story-v16-card{min-width:0!important}
  body[data-page="stories"] .story-actions-v14,body[data-page="stories"] .story-v16-actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
  body[data-page="stories"] .story-quick-compose-v1521,body[data-page="stories"] .story-v16-compose-launch{min-width:0!important}
  body[data-page="stories"] .story-compose-choice-grid-v1523{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="stories"] .story-source-row-v1523{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Story detail + editor */
  body[data-page="story"] .story-detail-shell-v14{grid-template-columns:minmax(0,1fr) minmax(250px,.30fr)!important;gap:14px!important;align-items:start!important}
  body[data-page="story"] .story-media-grid-v14{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body[data-page="story"] .story-comments-v14,body[data-page="story"] .story-v16-comments{min-width:0!important}
  body[data-page="story_form"] .story-compose-hero-v38{grid-template-columns:minmax(0,1fr) minmax(250px,.34fr)!important;gap:14px!important}
  body[data-page="story_form"] .story-compose-mode-v38,body[data-page="story_form"] .story-pick-trip-grid-v38{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="story_form"] .story-editor-v38{grid-template-columns:minmax(0,1fr) minmax(260px,.34fr)!important;gap:14px!important;align-items:start!important}
  body[data-page="story_form"] .story-proof-stats-v38,body[data-page="story_form"] .story-place-review-grid-v38{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="story_form"] .story-editor-toolbar-v1523{max-width:100%!important;overflow-x:auto!important;white-space:nowrap!important;scrollbar-width:none!important}
  body[data-page="story_form"] .story-editor-toolbar-v1523::-webkit-scrollbar{display:none}

  /* Moderation */
  body[data-page="moderation"] .moderation-tabs-v14{max-width:100%!important;overflow-x:auto!important;white-space:nowrap!important;scrollbar-width:none!important}
  body[data-page="moderation"] .moderation-tabs-v14::-webkit-scrollbar{display:none}
  body[data-page="moderation"] .moderation-kpis-v14,body[data-page="moderation"] .moderation-policy-grid-v14{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}

  /* Hành trình & cấp bậc */
  body[data-page="journey"] .journey-subnav-v142725,
  body[data-page="passport"] .journey-subnav-v142725,
  body[data-page="footprints"] .journey-subnav-v142725,
  body[data-page="recap"] .journey-subnav-v142725,
  body[data-page="travel_style"] .journey-subnav-v142725,
  body[data-page="creator"] .journey-subnav-v142725{max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;scrollbar-width:none!important}
  body[data-page="journey"] .journey-subnav-v142725::-webkit-scrollbar,
  body[data-page="passport"] .journey-subnav-v142725::-webkit-scrollbar,
  body[data-page="footprints"] .journey-subnav-v142725::-webkit-scrollbar,
  body[data-page="recap"] .journey-subnav-v142725::-webkit-scrollbar,
  body[data-page="travel_style"] .journey-subnav-v142725::-webkit-scrollbar,
  body[data-page="creator"] .journey-subnav-v142725::-webkit-scrollbar{display:none}
  body[data-page="journey"] .journey-wow-launchpad-v142748{grid-template-columns:minmax(0,1fr) minmax(230px,.32fr)!important;gap:14px!important}
  body[data-page="journey"] .journey-overview-kpis-v142732{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
  body[data-page="journey"] .journey-rank-compare-v142738{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;gap:8px!important}
  body[data-page="journey"] .journey-feature-grid-v142725{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}

  /* Passport */
  body[data-page="passport"] .passport-wow-shell-v142745{grid-template-columns:minmax(0,1fr) minmax(250px,.32fr)!important;gap:14px!important}
  body[data-page="passport"] .passport-wow-kpis-v142745,body[data-page="passport"] .passport-spotlight-grid-v142745{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="passport"] .passport-stamp-grid-v142725{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="passport"] .passport-collection-grid-v142745{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Footprints */
  body[data-page="footprints"] .footprints-wow-hero-v142748{grid-template-columns:minmax(0,1fr) minmax(230px,.32fr)!important;gap:14px!important}
  body[data-page="footprints"] .footprints-filter-v142766{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  body[data-page="footprints"] .footprints-wow-kpis-v142748{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
  body[data-page="footprints"] .footprints-map-workspace-v142766{grid-template-columns:minmax(0,1fr) minmax(240px,.30fr)!important;gap:12px!important}
  body[data-page="footprints"] .footprints-region-grid-v142748,body[data-page="footprints"] .footprints-route-grid-v142766,body[data-page="footprints"] .footprints-world-grid-v142766{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  /* Recap / Travel DNA */
  body[data-page="recap"] .recap-wow-hero-v142748{grid-template-columns:minmax(0,1fr) minmax(230px,.30fr)!important;gap:14px!important}
  body[data-page="recap"] .recap-filter-v142725{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr)) auto!important;gap:8px!important}
  body[data-page="recap"] .recap-wow-kpis-v142748{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
  body[data-page="recap"] .recap-wow-highlights-v142748{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="recap"] .recap-wow-toolbox-v142748{grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important}
  body[data-page="travel_style"] [class*="travel-style"],body[data-page="travel_style"] [class*="travel-dna"]{min-width:0!important;max-width:100%!important}

  /* Creator / analytics / AI / income */
  body[data-page="creator"] .creator-wow-hero-v142748,body[data-page="creator"] .creator-hero-v142725{grid-template-columns:minmax(0,1fr) minmax(220px,.28fr)!important;gap:14px!important}
  body[data-page="creator"] .creator-wow-kpis-v142748,body[data-page="creator"] .creator-kpi-v142725{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
  body[data-page="creator"] .creator-tools-grid-v142726{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="creator_analytics"] .creator-analytics-kpi-v142726,body[data-page="creator_analytics"] .world-analytics-kpi-v142726{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
  body[data-page="creator_analytics"] .analytics-top-v142726{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="ai_assistant"] .ai-task-grid-v142726{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="ai_assistant"] .ai-panel-v142726{min-width:0!important;max-width:100%!important}
  body[data-page="trip_maker_income"] .trip-maker-income-kpis-v142767{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
  body[data-page="trip_maker_income"] .trip-maker-income-visuals-v142773,body[data-page="trip_maker_income"] .trip-maker-income-status-grid-v142773,body[data-page="trip_maker_income"] .trip-maker-income-source-grid-v142773{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}

  /* Travel Hub / Trip Pack */
  body[data-page="command_center"] .v11-command-hero{grid-template-columns:minmax(0,1fr) minmax(220px,.30fr)!important;gap:14px!important}
  body[data-page="command_center"] .v11-ready-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body[data-page="command_center"] .v11-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body[data-page="command_center"] .v11-quick-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="trip_pack"] .v11-pack-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body[data-page="trip_pack"] .v11-pack-page-head{gap:12px!important;align-items:flex-start!important}
  body[data-page="trip_pack"] .v11-pack-row{min-width:0!important}
}

@media (max-width:767px){
  /* Keep ALL header functions available; compact instead of hiding controls. */
  .triploom-gh-theme-v1503,.triploom-gh-language-v1503{display:flex!important}
  .triploom-gh-right-v1503{gap:5px!important}
  .triploom-gh-circle-v1503,.triploom-gh-avatar-trigger-v1503{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}

  /* Community feed */
  body[data-page="stories"] .story-community-hero-v14{grid-template-columns:minmax(0,1fr)!important;padding:15px!important;border-radius:20px!important}
  body[data-page="stories"] .story-hero-actions-v38{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="stories"] .story-kind-guide-v38{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="stories"] .story-toolbar-v14>form{grid-template-columns:38px minmax(0,1fr) 44px!important}
  body[data-page="stories"] .story-toolbar-v14>form select{grid-column:1 / -1!important}
  body[data-page="stories"] .story-layout-v14{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="stories"] .story-aside-v14{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  body[data-page="stories"] .story-card-v14,body[data-page="stories"] .story-v16-card{border-radius:18px!important;padding:11px!important}
  body[data-page="stories"] .story-actions-v14,body[data-page="stories"] .story-v16-actions{overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none!important;padding-bottom:2px!important}
  body[data-page="stories"] .story-actions-v14::-webkit-scrollbar,body[data-page="stories"] .story-v16-actions::-webkit-scrollbar{display:none}
  body[data-page="stories"] .story-actions-v14>*,body[data-page="stories"] .story-v16-actions>*{flex:0 0 auto!important}
  body[data-page="stories"] .story-quick-compose-v1521,body[data-page="stories"] .story-v16-compose-launch{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:6px!important}
  body[data-page="stories"] .story-quick-tool-v1521 span{display:none!important}
  body[data-page="stories"] .story-compose-choice-grid-v1523,body[data-page="stories"] .story-source-row-v1523{grid-template-columns:minmax(0,1fr)!important}

  /* Story detail/editor */
  body[data-page="story"] .story-detail-shell-v14{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="story"] .story-detail-side-v14{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  body[data-page="story"] .story-media-grid-v14{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="story_form"] .story-compose-hero-v38,body[data-page="story_form"] .story-editor-v38{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="story_form"] .story-compose-mode-v38,body[data-page="story_form"] .story-pick-trip-grid-v38,body[data-page="story_form"] .story-proof-stats-v38,body[data-page="story_form"] .story-place-review-grid-v38{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="story_form"] .story-compose-add-v1523{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  body[data-page="story_form"] .story-compose-add-actions-v1523{justify-content:flex-start!important;overflow-x:auto!important;scrollbar-width:none!important}
  body[data-page="story_form"] .story-compose-add-actions-v1523::-webkit-scrollbar{display:none}

  /* Moderation */
  body[data-page="moderation"] .moderation-kpis-v14,body[data-page="moderation"] .moderation-policy-grid-v14{grid-template-columns:minmax(0,1fr)!important}

  /* Journey */
  body[data-page="journey"] .journey-wow-launchpad-v142748{grid-template-columns:minmax(0,1fr)!important;padding:15px!important}
  body[data-page="journey"] .journey-wow-launch-actions-v142748{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
  body[data-page="journey"] .journey-overview-kpis-v142732{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="journey"] .journey-rank-compare-v142738{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="journey"] .journey-rank-bridge-v142738{transform:none!important;justify-self:center!important}
  body[data-page="journey"] .journey-feature-grid-v142725{grid-template-columns:minmax(0,1fr)!important}

  /* Passport */
  body[data-page="passport"] .passport-wow-shell-v142745{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="passport"] .passport-wow-kpis-v142745,body[data-page="passport"] .passport-spotlight-grid-v142745{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="passport"] .passport-stamp-grid-v142725{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="passport"] .passport-collection-grid-v142745{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="passport"] .passport-filter-shell-v142743{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important}

  /* Footprints */
  body[data-page="footprints"] .footprints-wow-hero-v142748,body[data-page="footprints"] .footprints-map-workspace-v142766{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="footprints"] .footprints-wow-kpis-v142748{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="footprints"] .footprints-region-grid-v142748,body[data-page="footprints"] .footprints-route-grid-v142766,body[data-page="footprints"] .footprints-world-grid-v142766{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="footprints"] .footprints-map-panel-v142766{min-height:340px!important}

  /* Recap */
  body[data-page="recap"] .recap-wow-hero-v142748{grid-template-columns:minmax(0,1fr)!important;padding:15px!important}
  body[data-page="recap"] .recap-filter-v142725{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="recap"] .recap-filter-v142725>button{grid-column:1 / -1!important;width:100%!important}
  body[data-page="recap"] .recap-wow-kpis-v142748{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="recap"] .recap-wow-highlights-v142748{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="recap"] .recap-wow-story-v142748,body[data-page="recap"] .recap-wow-toolbox-v142748{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="recap"] .recap-wow-toolbox-v142748>div:last-child{display:flex!important;flex-wrap:wrap!important;gap:7px!important}

  /* Creator / tools */
  body[data-page="creator"] .creator-wow-hero-v142748,body[data-page="creator"] .creator-hero-v142725{grid-template-columns:minmax(0,1fr)!important;padding:15px!important}
  body[data-page="creator"] .creator-wow-kpis-v142748,body[data-page="creator"] .creator-kpi-v142725{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="creator"] .creator-tools-grid-v142726{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="creator"] .creator-pin-form-v142726{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="creator_analytics"] .creator-analytics-kpi-v142726,body[data-page="creator_analytics"] .world-analytics-kpi-v142726{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="creator_analytics"] .analytics-top-v142726{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="ai_assistant"] .ai-hero-v142726{padding:15px!important}
  body[data-page="ai_assistant"] .ai-task-grid-v142726{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip_maker_income"] .trip-maker-income-hero-v142767{grid-template-columns:minmax(0,1fr)!important;padding:15px!important}
  body[data-page="trip_maker_income"] .trip-maker-income-kpis-v142767{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="trip_maker_income"] .trip-maker-income-visuals-v142773,body[data-page="trip_maker_income"] .trip-maker-income-status-grid-v142773,body[data-page="trip_maker_income"] .trip-maker-income-source-grid-v142773{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip_maker_income"] .trip-maker-income-toolbar-v142767{display:flex!important;flex-wrap:wrap!important;gap:7px!important}

  /* Travel Hub / Trip Pack */
  body[data-page="command_center"] .v11-command-hero{grid-template-columns:minmax(0,1fr)!important;padding:15px!important}
  body[data-page="command_center"] .v11-command-art{display:none!important}
  body[data-page="command_center"] .v11-ready-grid,body[data-page="command_center"] .v11-command-grid,body[data-page="command_center"] .v11-quick-tools{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip_pack"] .v11-pack-page-head{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip_pack"] .v11-pack-page-head>.btn{width:100%!important}
  body[data-page="trip_pack"] .v11-pack-page-grid{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip_pack"] .v11-pack-day>div{grid-template-columns:54px minmax(0,1fr)!important;gap:8px!important}
}

@media (max-width:430px){
  body[data-page="stories"] .story-hero-actions-v38{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="journey"] .journey-overview-kpis-v142732,
  body[data-page="passport"] .passport-wow-kpis-v142745,
  body[data-page="footprints"] .footprints-wow-kpis-v142748,
  body[data-page="recap"] .recap-wow-kpis-v142748,
  body[data-page="creator"] .creator-wow-kpis-v142748,
  body[data-page="creator"] .creator-kpi-v142725,
  body[data-page="creator_analytics"] .creator-analytics-kpi-v142726,
  body[data-page="trip_maker_income"] .trip-maker-income-kpis-v142767{grid-template-columns:minmax(0,1fr)!important}
}

/* ======================================================================
   V16.4 audit extension B — auth, public share, tools, legacy story/print.
   ====================================================================== */
@media (max-width:1024px){
  /* Authentication pages */
  body[data-page="login"] .auth-page,
  body[data-page="register"] .auth-page,
  body[data-page="forgot"] .auth-page,
  body[data-page="reset"] .auth-page{grid-template-columns:minmax(0,1fr) minmax(340px,.62fr)!important;min-height:100dvh!important}
  body[data-page="login"] .auth-card,
  body[data-page="register"] .auth-card,
  body[data-page="forgot"] .auth-card,
  body[data-page="reset"] .auth-card{width:min(100%,520px)!important;max-width:100%!important;margin:auto!important}
  body[data-page="login"] .auth-form,
  body[data-page="register"] .auth-form,
  body[data-page="forgot"] .auth-form,
  body[data-page="reset"] .auth-form{min-width:0!important}

  /* Public share / print-safe public itinerary */
  body[data-page="share"] .public-share{width:min(100%,980px)!important;max-width:calc(100vw - 28px)!important;margin-inline:auto!important}
  body[data-page="share"] .public-trip-hero{min-width:0!important;padding:22px!important}
  body[data-page="share"] .public-days{min-width:0!important}
  body[data-page="share"] .public-day{min-width:0!important}
  body[data-page="share"] .public-stop-list{min-width:0!important}
  body[data-page="trip_story"] .story-layout-v5{grid-template-columns:minmax(0,1fr) minmax(260px,.32fr)!important;gap:14px!important}
  body[data-page="trip_story"] .story-photo-grid-v5{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  body[data-page="trip_print"] .print-sheet{max-width:100%!important;min-width:0!important}
  body[data-page="trip_print"] .print-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}

  /* Favorites / saved places */
  body[data-page="favorites"] .journey-list-wow-v142748{grid-template-columns:minmax(0,1fr) minmax(220px,.30fr)!important;gap:14px!important}
  body[data-page="favorites"] .journey-list-kpis-v142748{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
  body[data-page="favorites"] .journey-place-toolbar-v142748{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
  body[data-page="favorites"] .journey-place-filters-v142748{max-width:100%!important;overflow-x:auto!important;white-space:nowrap!important;scrollbar-width:none!important}
  body[data-page="favorites"] .journey-place-filters-v142748::-webkit-scrollbar{display:none}

  /* Leaderboard */
  body[data-page="leaderboard"] .v9-leader-list{min-width:0!important}
  body[data-page="leaderboard"] .v9-leader-list>article{display:grid!important;grid-template-columns:auto auto minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important}
  body[data-page="leaderboard"] .v9-leader-name{min-width:0!important}
  body[data-page="leaderboard"] .v9-leader-metrics{display:flex!important;flex-wrap:wrap!important;gap:5px 8px!important}

  /* Data / health tools */
  body[data-page="tools"] .v6-ready-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  body[data-page="tools"] .v6-tool-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  body[data-page="tools"] .v6-tools-columns{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  body[data-page="tools"] .v6-audit-list,body[data-page="tools"] .v6-duplicate-grid{min-width:0!important}

  /* Collection detail modal/list */
  body[data-page="collection"] .collection-hero-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
  body[data-page="collection"] .modal-place-list{min-width:0!important;max-height:min(56dvh,560px)!important;overflow:auto!important}
}

@media (max-width:767px){
  body[data-page="login"] .auth-page,
  body[data-page="register"] .auth-page,
  body[data-page="forgot"] .auth-page,
  body[data-page="reset"] .auth-page{display:block!important;min-height:100dvh!important;padding:12px!important}
  body[data-page="login"] .auth-art,
  body[data-page="register"] .auth-art,
  body[data-page="forgot"] .auth-art,
  body[data-page="reset"] .auth-art{display:none!important}
  body[data-page="login"] .auth-card,
  body[data-page="register"] .auth-card,
  body[data-page="forgot"] .auth-card,
  body[data-page="reset"] .auth-card{width:100%!important;max-width:none!important;min-height:calc(100dvh - 24px)!important;padding:clamp(18px,6vw,28px)!important;border-radius:22px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
  body[data-page="login"] .auth-helper-row,
  body[data-page="register"] .auth-helper-row,
  body[data-page="forgot"] .auth-helper-row,
  body[data-page="reset"] .auth-helper-row{display:flex!important;flex-wrap:wrap!important;gap:7px!important;justify-content:space-between!important}

  body[data-page="share"] .public-share{max-width:calc(100vw - 16px)!important}
  body[data-page="share"] .public-trip-hero{padding:15px!important;border-radius:20px!important}
  body[data-page="share"] .public-day{padding:11px!important;border-radius:17px!important}
  body[data-page="share"] .public-day-head{display:flex!important;flex-wrap:wrap!important;gap:7px!important;align-items:flex-start!important}
  body[data-page="share"] .public-stop-list>*>div{min-width:0!important}
  body[data-page="trip_story"] .story-layout-v5{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="trip_story"] .story-photo-grid-v5{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="trip_story"] .story-hero-v5{min-height:220px!important;padding:15px!important}
  body[data-page="trip_print"] .print-page-v4{padding:8px!important}
  body[data-page="trip_print"] .print-sheet{padding:14px!important;border-radius:16px!important}
  body[data-page="trip_print"] .print-summary{grid-template-columns:minmax(0,1fr)!important}

  body[data-page="favorites"] .journey-list-wow-v142748{grid-template-columns:minmax(0,1fr)!important;padding:15px!important}
  body[data-page="favorites"] .journey-list-kpis-v142748{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="favorites"] .journey-place-toolbar-v142748{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="favorites"] .journey-place-view-v142748{justify-self:start!important}

  body[data-page="leaderboard"] .v9-leader-hero{padding:15px!important;border-radius:20px!important}
  body[data-page="leaderboard"] .v9-leader-list>article{grid-template-columns:36px 38px minmax(0,1fr)!important;padding:9px!important}
  body[data-page="leaderboard"] .v9-leader-metrics{grid-column:3!important;margin-top:4px!important}
  body[data-page="tools"] .v6-ready-grid,body[data-page="tools"] .v6-tools-columns{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="tools"] .v6-tool-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-page="tools"] .v6-tools-hero{padding:15px!important;border-radius:20px!important}
  body[data-page="collection"] .modal-place-list>*{min-width:0!important}
}

@media (max-width:430px){
  body[data-page="tools"] .v6-tool-kpis{grid-template-columns:minmax(0,1fr)!important}
  body[data-page="favorites"] .journey-list-kpis-v142748{grid-template-columns:minmax(0,1fr)!important}
}

/* Compact numeric overview cards: three small metrics fit naturally on normal phones. */
@media (min-width:360px) and (max-width:430px){
  body[data-page="trip"] .trip-premium-hero .premium-trip-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  body[data-page="trip"] .trip-premium-hero .premium-trip-stats>span:last-child:nth-child(odd){grid-column:auto!important}
  body[data-page="trip"] .trip-premium-hero .premium-trip-stats>span{min-width:0!important;padding:9px 7px!important}
  body[data-page="trip"] .trip-premium-hero .premium-trip-stats b{font-size:clamp(15px,4.7vw,20px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body[data-page="trip"] .trip-premium-hero .premium-trip-stats small{font-size:7.5px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
}
@media (max-width:359px){
  body[data-page="trip"] .trip-premium-hero .premium-trip-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}


.top-account-drawer-avatar-toggle-v217,.top-account-drawer-overlay-v217{display:none}
/* ============================================================
   TRIPLOOM V2.22 · MOBILE AVATAR ACCOUNT DRAWER FULL-WIDTH ACTIONS
   Scope: authenticated account menu on phone only (<=767px).
   The drawer is mounted under <body> on phone so old header stacking
   contexts cannot cover it or block the dimmed outside area.
   ============================================================ */
@media (max-width:767px){
  body.top-account-drawer-open-v217{
    overflow:hidden!important;
    overscroll-behavior:none!important;
  }
  .top-account-drawer-overlay-v217{
    position:fixed!important;inset:0!important;z-index:80!important;display:block!important;
    margin:0!important;padding:0!important;border:0!important;background:rgba(7,20,25,.48)!important;
    -webkit-backdrop-filter:blur(2px)!important;backdrop-filter:blur(2px)!important;
    opacity:0!important;visibility:hidden!important;pointer-events:none!important;
    transition:opacity .26s ease,visibility 0s linear .26s!important;touch-action:manipulation!important
  }
  .top-account-drawer-overlay-v217.is-open{
    opacity:1!important;visibility:visible!important;pointer-events:auto!important;
    transition:opacity .26s ease,visibility 0s!important
  }
  body>.triploom-gh-account-menu-v1506.top-account-mobile-drawer-v217,
  body>.top-account-menu-v142727.top-account-mobile-drawer-v217{
    position:fixed!important;inset:0 0 0 auto!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;
    width:clamp(276px,64vw,360px)!important;min-width:0!important;max-width:calc(100vw - 24px)!important;height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;
    box-sizing:border-box!important;margin:0!important;
    padding:max(68px,calc(env(safe-area-inset-top) + 58px)) 11px max(16px,env(safe-area-inset-bottom)) 11px!important;
    overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;
    border:0!important;border-left:1px solid rgba(191,218,220,.75)!important;border-radius:26px 0 0 26px!important;
    background:var(--gh-card,#fff)!important;box-shadow:-24px 0 58px rgba(12,39,48,.20)!important;
    opacity:1!important;visibility:hidden!important;pointer-events:none!important;
    transform:translate3d(102%,0,0)!important;transform-origin:center right!important;
    transition:transform .29s cubic-bezier(.22,.82,.2,1),visibility 0s linear .29s!important;
    will-change:transform!important;z-index:90!important
  }
  body>.triploom-gh-account-menu-v1506.top-account-mobile-drawer-v217.is-drawer-open-v217,
  body>.top-account-menu-v142727.top-account-mobile-drawer-v217.is-drawer-open-v217{
    opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translate3d(0,0,0)!important;
    transition:transform .29s cubic-bezier(.22,.82,.2,1),visibility 0s!important
  }
  .top-account-mobile-drawer-v217 .top-account-drawer-avatar-toggle-v217{
    position:fixed!important;top:max(10px,env(safe-area-inset-top))!important;right:max(10px,env(safe-area-inset-right))!important;z-index:2!important;
    width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;
    border:1px solid var(--gh-border,#C6ECE8)!important;border-radius:14px!important;background:var(--gh-card,#fff)!important;
    display:grid!important;place-items:center!important;cursor:pointer!important;box-shadow:0 8px 22px rgba(23,65,75,.12)!important;
    -webkit-tap-highlight-color:transparent!important
  }
  .top-account-mobile-drawer-v217 .top-account-drawer-avatar-toggle-v217 .triploom-gh-avatar-v1503{
    width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important
  }
  .top-account-mobile-drawer-v217 .triploom-gh-account-journey-card-v1506{margin-top:0!important}
  .top-account-mobile-drawer-v217 .triploom-gh-account-link-v1503,
  .top-account-mobile-drawer-v217 .top-account-logout-v142727>button{min-height:50px!important}
  .top-account-mobile-drawer-v217 .triploom-gh-account-mini-grid-v1506{width:100%!important;max-width:100%!important;box-sizing:border-box!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;justify-content:stretch!important;gap:8px!important;margin-inline:0!important;padding-inline:0!important}
  .top-account-mobile-drawer-v217 .triploom-gh-account-mini-grid-v1506>a{width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;height:36px!important;justify-content:center!important;gap:5px!important;padding:0 8px!important;white-space:nowrap!important}
  .top-account-mobile-drawer-v217 :is(a,button){-webkit-tap-highlight-color:transparent}
}
@media (max-width:479px){
  body>.triploom-gh-account-menu-v1506.top-account-mobile-drawer-v217,
  body>.top-account-menu-v142727.top-account-mobile-drawer-v217{width:clamp(244px,66vw,268px)!important;min-width:0!important;max-width:calc(100vw - 44px)!important;border-radius:24px 0 0 24px!important}
  @media (min-width:480px){
    body>.triploom-gh-account-menu-v1506.top-account-mobile-drawer-v217,
    body>.top-account-menu-v142727.top-account-mobile-drawer-v217{width:min(60vw,320px)!important}
  }
  @media (max-width:339px){
    body>.triploom-gh-account-menu-v1506.top-account-mobile-drawer-v217,
    body>.top-account-menu-v142727.top-account-mobile-drawer-v217{width:min(244px,calc(100vw - 54px))!important}
  }
}
@media (prefers-reduced-motion:reduce) and (max-width:767px){
  .top-account-drawer-overlay-v217,
  body>.top-account-mobile-drawer-v217{transition:none!important}
}

/* ==========================================================================\n   TRIPLOOM V2.37 · MOBILE APP LAUNCHER\n   Bottom (+) => all website areas, grouped like Desktop but touch-first.\n   ========================================================================== */
@media (max-width:900px){
  body.triploom-mobile-launcher-open-v237{overflow:hidden!important;overscroll-behavior:none!important}
  body.triploom-mobile-launcher-open-v237 .bottom-add{transform:translateY(-2px) scale(1.04)!important;box-shadow:0 12px 28px rgba(32,174,166,.28)!important}
  body.triploom-mobile-launcher-open-v237 [data-triploom-ai-mascot]{opacity:0!important;visibility:hidden!important;pointer-events:none!important}

  .triploom-mobile-launcher-v237{position:fixed!important;inset:0!important;z-index:340!important;display:block!important;visibility:hidden!important;pointer-events:none!important}
  .triploom-mobile-launcher-v237.is-open{visibility:visible!important;pointer-events:auto!important}
  .triploom-mobile-launcher-backdrop-v237{position:absolute!important;inset:0!important;background:rgba(11,29,36,.48)!important;opacity:0!important;transition:opacity .2s ease!important;-webkit-backdrop-filter:blur(5px)!important;backdrop-filter:blur(5px)!important}
  .triploom-mobile-launcher-v237.is-open .triploom-mobile-launcher-backdrop-v237{opacity:1!important}
  .triploom-mobile-launcher-panel-v237{position:absolute!important;left:8px!important;right:8px!important;top:max(8px,env(safe-area-inset-top))!important;bottom:max(8px,env(safe-area-inset-bottom))!important;max-width:720px!important;margin-inline:auto!important;overflow:hidden!important;border:1px solid rgba(188,215,218,.92)!important;border-radius:26px!important;background:rgba(248,252,253,.995)!important;box-shadow:0 30px 90px rgba(14,47,58,.28),0 8px 24px rgba(20,66,77,.10)!important;opacity:0!important;transform:translateY(20px) scale(.985)!important;transition:opacity .2s ease,transform .22s cubic-bezier(.22,.8,.25,1)!important}
  .triploom-mobile-launcher-v237.is-open .triploom-mobile-launcher-panel-v237{opacity:1!important;transform:none!important}
  .triploom-mobile-launcher-scroll-v237{height:100%!important;display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}

  .triploom-mobile-launcher-v237 .triploom-gh-mega-head-v1503{position:relative!important;z-index:2!important;display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:center!important;gap:10px!important;flex:0 0 auto!important;margin:0!important;padding:17px 17px 14px!important;border-bottom:1px solid rgba(198,220,223,.88)!important;background:rgba(248,252,253,.985)!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-head-v1503>div{min-width:0!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-head-v1503 span{font-size:8px!important;letter-spacing:.14em!important;color:#249D98!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-head-v1503 h2{margin:4px 0 0!important;font-size:21px!important;line-height:1.1!important;color:#203941!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-head-v1503>small{grid-column:1/-1!important;margin-top:-4px!important;font-size:9px!important;line-height:1.35!important;color:#85999F!important}
  .triploom-mobile-launcher-close-v237{grid-column:2!important;grid-row:1!important;align-self:center!important;justify-self:end!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;margin:0!important;padding:0!important;border:1px solid #CADDE0!important;border-radius:14px!important;background:#fff!important;color:#57737B!important;box-shadow:0 5px 14px rgba(35,73,83,.07)!important;font:700 25px/1 Nunito,sans-serif!important;display:grid!important;place-items:center!important;cursor:pointer!important}

  .triploom-mobile-launcher-v237 .triploom-gh-mega-grid-v1503{flex:1 1 auto!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;gap:12px!important;margin:0!important;padding:13px 12px calc(22px + env(safe-area-inset-bottom))!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;min-width:0!important;padding:12px!important;border:1px solid #C6ECE8!important;border-radius:19px!important;background:#fff!important;box-shadow:0 8px 22px rgba(35,73,83,.045)!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503>h3{grid-column:1/-1!important;margin:0 0 2px!important;padding:0 2px 7px!important;border-bottom:1px solid #C6ECE8!important;color:#739098!important;font-size:8.5px!important;letter-spacing:.13em!important;font-weight:900!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503>a{display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;min-width:0!important;min-height:62px!important;padding:9px!important;border:1px solid #E5EEF0!important;border-radius:15px!important;background:linear-gradient(180deg,#F4FCFB 0%,#F7FBFC 100%)!important;color:#29444B!important;text-decoration:none!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)!important;transition:transform .12s ease,border-color .12s ease,background .12s ease!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503>a:active{transform:scale(.985)!important;background:#EEF9F8!important;border-color:#BFE2DF!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503>a>span{width:36px!important;height:36px!important;min-width:36px!important;border-radius:12px!important;background:#EDF8F8!important;color:#249D98!important;display:grid!important;place-items:center!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503>a>span svg{width:17px!important;height:17px!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503>a>div{min-width:0!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503>a b{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10.5px!important;line-height:1.25!important;color:#1F3B4D!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503>a small{display:-webkit-box!important;overflow:hidden!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;margin-top:3px!important;font-size:8px!important;line-height:1.3!important;color:#8B9DA2!important;white-space:normal!important}
}

@media (max-width:350px){
  .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503{grid-template-columns:minmax(0,1fr)!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-head-v1503{padding-inline:14px!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-grid-v1503{padding-inline:9px!important}
}

@media (min-width:600px) and (max-width:900px){
  .triploom-mobile-launcher-panel-v237{left:18px!important;right:18px!important;top:max(16px,env(safe-area-inset-top))!important;bottom:max(16px,env(safe-area-inset-bottom))!important;border-radius:28px!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-grid-v1503{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:14px!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503{grid-template-columns:minmax(0,1fr)!important;align-content:start!important}
  .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503:last-child:nth-child(odd){grid-column:1/-1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

html[data-theme="dark"] .triploom-mobile-launcher-panel-v237,
body.theme-dark .triploom-mobile-launcher-panel-v237{background:rgba(18,31,37,.995)!important;border-color:#334B53!important}
html[data-theme="dark"] .triploom-mobile-launcher-v237 .triploom-gh-mega-head-v1503,
body.theme-dark .triploom-mobile-launcher-v237 .triploom-gh-mega-head-v1503{background:rgba(18,31,37,.985)!important;border-color:#30464D!important}
html[data-theme="dark"] .triploom-mobile-launcher-v237 .triploom-gh-mega-head-v1503 h2,
body.theme-dark .triploom-mobile-launcher-v237 .triploom-gh-mega-head-v1503 h2{color:#EDF7F8!important}
html[data-theme="dark"] .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503,
body.theme-dark .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503{background:#182A30!important;border-color:#30464D!important}
html[data-theme="dark"] .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503>a,
body.theme-dark .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503>a{background:#1B2F35!important;border-color:#324A52!important;color:#E9F4F5!important}
html[data-theme="dark"] .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503>a b,
body.theme-dark .triploom-mobile-launcher-v237 .triploom-gh-mega-group-v1503>a b{color:#E9F4F5!important}
