/* My Trips on phones: overview launcher and library sub-pages (my-trips-mobile.mjs). */
@media(min-width:768px){#mt-mobile{display:none!important}}
@media(max-width:767px){
 body.my-trips-page{--mtm-ink:var(--dm-text,#10375a);--mtm-muted:var(--dm-muted,#526c83);--mtm-faint:var(--dm-subtle,#5d7488);--mtm-accent:var(--dm-accent,#007385);--mtm-on-accent:var(--dm-on-accent,#fff);--mtm-canvas:var(--dm-canvas,#f7fafc);--mtm-surface:var(--dm-surface,#fff);--mtm-soft:var(--dm-raised,#effaff);--mtm-tint:var(--dm-selected,#e6f6f8);--mtm-line:var(--dm-border,#dce7ee);--mtm-outline:var(--dm-control-border,#8aa4b8);--mtm-strong:var(--dm-text,#10375a);--mtm-on-strong:var(--dm-canvas,#f7fafc);--mtm-green:var(--dm-success,#1d6b45);--mtm-green-bg:var(--dm-success-bg,#e3f5ec);--mtm-amber:var(--dm-warning,#7a5200);--mtm-amber-bg:var(--dm-warning-bg,#fff4dc);background:var(--mtm-canvas)}
 body.my-trips-page .mt-hero,body.my-trips-page .mt-navigation,body.my-trips-page .page-footer,body.mt-mobile-sub .site-header{display:none!important}
 body.my-trips-page .mt-content>:not(#mt-mobile):not(#mt-status){display:none!important}
 body.my-trips-page .mt-main{width:auto!important;max-width:none!important;margin:0!important;padding:0 0 calc(96px + env(safe-area-inset-bottom))!important}
 body.my-trips-page #mt-status{margin:12px 16px 0}
 .mtm{color:var(--mtm-ink);font-family:Arial,Helvetica,sans-serif}
 .mtm :is(h1,h2,h3,p){margin:0;letter-spacing:0;color:inherit}
 .mtm :where(a){color:inherit}
 .mtm :is(.mtm-create a,.mtm-card h3 a,a.mtm-row-main,.mtm-menu a){color:var(--mtm-ink)}
 .mtm :where(button){font:inherit;color:inherit}
 .mtm :is(a,button,summary,select,input):focus-visible{outline:2px solid var(--mtm-accent);outline-offset:2px}
 .mtm [hidden]{display:none!important}
 .mtm-icon{flex:none;display:block}
 .mtm-muted{font-size:13px;line-height:1.45;color:var(--mtm-faint)}
 .mtm-eyebrow{font-size:14px!important;line-height:1.3;letter-spacing:.08em!important;text-transform:uppercase;color:var(--mtm-faint)!important;font-weight:700}
 .mtm-overview,.mtm-page{display:flex;flex-direction:column;gap:22px;padding:20px 16px 24px}
 .mtm-page{padding-top:16px;gap:18px}
 .mtm-section{display:flex;flex-direction:column;gap:12px;min-width:0}
 .mtm-section h2:not(.mtm-eyebrow){font-size:20px;line-height:1.3}
 .mtm-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
 .mtm-section-head h2{font-size:18px!important}
 .mtm-title h1{font-size:30px;line-height:1.15}
 .mtm-title p{margin-top:6px!important;font-size:15px;color:var(--mtm-muted)}
 /* Headings take focus only to announce a new view; theme.css forces outlines with !important. */
 html .mtm h1[tabindex="-1"]:focus{outline:none!important}

 /* Header used by every sub-page */
 .mtm-subheader{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:4px;min-height:64px;padding:10px 12px 10px 4px;background:var(--mtm-surface);border-bottom:1px solid var(--mtm-line)}
 .mtm-subheader>div{flex:1;min-width:0}
 .mtm-subheader p{font-size:13px;color:var(--mtm-faint)}
 .mtm-subheader h1{margin-top:2px!important;font-size:20px;line-height:1.2;overflow-wrap:anywhere}
 .mtm-back,.mtm-icon-button{width:44px;height:44px;display:flex;align-items:center;justify-content:center;flex:none;padding:0;border:0;border-radius:22px;background:none;color:var(--mtm-ink);cursor:pointer}
 .mtm-icon-button[aria-expanded=true]{background:var(--mtm-tint);color:var(--mtm-accent)}
 .mtm-pill{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border:0;border-radius:22px;background:var(--mtm-accent);color:var(--mtm-on-accent)!important;font:700 14px Arial,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer}
 .mtm-text-action{min-height:44px;padding:0 8px;border:0;background:none;color:var(--mtm-accent)!important;font:700 14px Arial,sans-serif;cursor:pointer}
 .mtm-text-link{min-height:44px;display:inline-flex;align-items:center;padding:0;border:0;background:none;color:var(--mtm-accent)!important;font:700 14px Arial,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

 /* Surfaces and buttons */
 .mtm-card{background:var(--mtm-surface);border:1px solid var(--mtm-line);border-radius:16px;overflow:hidden;min-width:0}
 .mtm-card-body{display:flex;flex-direction:column;gap:12px;padding:16px}
 .mtm-card h3{font-size:19px;line-height:1.3;overflow-wrap:anywhere}
 .mtm-card h3 a{text-decoration:none}
 .mtm-card-body p{font-size:14px;line-height:1.45;color:var(--mtm-muted)}
 .mtm-card-body h3+p{margin-top:4px!important}
 .mtm-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 16px;border-radius:10px;border:1px solid transparent;font:700 15px/1.2 Arial,sans-serif;text-decoration:none;text-align:center;cursor:pointer;min-width:0}
 .mtm-button.primary{background:var(--mtm-accent);border-color:var(--mtm-accent);color:var(--mtm-on-accent)!important}
 .mtm-button.secondary{background:var(--mtm-soft);border-color:var(--mtm-outline);color:var(--mtm-ink)!important}
 .mtm-button.warning{background:none;border-color:var(--mtm-amber);color:var(--mtm-amber)!important}
 .mtm-button:disabled{opacity:.6;cursor:progress}
 .mtm-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .mtm-actions-wide{grid-template-columns:2fr 1fr}
 .mtm-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .mtm-split .mtm-button{min-height:48px}
 .mtm-button-tall{min-height:64px!important;justify-content:flex-start;padding:10px 12px;text-align:left;gap:10px}
 .mtm-button-tall span{display:flex;flex-direction:column;gap:2px;min-width:0}
 .mtm-button-tall small{font:400 13px/1.3 Arial,sans-serif}
 .mtm-button-tall.secondary small{color:var(--mtm-muted)}
 .mtm-badges{display:flex;flex-wrap:wrap;gap:8px}
 .mtm-badge{padding:4px 10px;border-radius:12px;font-size:13px;font-weight:700;line-height:1.3}
 .mtm-badge.green{background:var(--mtm-green-bg);color:var(--mtm-green)}
 .mtm-badge.amber{background:var(--mtm-amber-bg);color:var(--mtm-amber)}
 .mtm-badge.blue{background:var(--mtm-tint);color:var(--mtm-accent)}
 .mtm-badge.grey{background:var(--mtm-soft);color:var(--mtm-muted)}
 .mtm-placeholder{flex:none;display:flex;align-items:center;justify-content:center;background:var(--mtm-soft);border:1px dashed var(--mtm-outline);color:var(--mtm-accent);box-sizing:border-box}
 .mtm-placeholder.round{width:56px;height:56px;border-radius:28px;border:0;background:var(--mtm-tint)}

 /* Overview */
 .mtm-next-cover{display:block;width:100%;height:180px;object-fit:cover;border:0;border-radius:0}
 .mtm-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--mtm-line);border-radius:12px;overflow:hidden}
 .mtm-stats>div{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px;text-align:center}
 .mtm-stats>div+div{border-left:1px solid var(--mtm-line)}
 .mtm-stats strong{font-size:18px;font-weight:700}
 .mtm-stats span{font-size:13px;color:var(--mtm-muted)}
 .mtm-create{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .mtm-create a{min-height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px 4px;border:1px solid var(--mtm-line);border-radius:14px;background:var(--mtm-surface);font-weight:700;font-size:14px;text-align:center;text-decoration:none}
 .mtm-create .mtm-icon,.mtm-tile .mtm-icon,.mtm-row-link .mtm-icon:first-child,.mtm-hint .mtm-icon,.mtm-notice .mtm-icon{color:var(--mtm-accent)}
 .mtm-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .mtm-tile{display:flex;flex-direction:column;gap:10px;min-height:88px;padding:14px;border:1px solid var(--mtm-line);border-radius:14px;background:var(--mtm-surface);text-align:left;font-size:15px;font-weight:700;cursor:pointer}
 .mtm-tile>span:first-child{display:flex;justify-content:space-between;align-items:center}
 .mtm-tile strong{font-size:24px;font-weight:700;line-height:1}
 .mtm-tile strong.is-zero{color:var(--mtm-faint)}
 .mtm-tile-wide{grid-column:1/-1;flex-direction:row;align-items:center;gap:12px;min-height:0}
 .mtm-tile-wide>span{flex:1;display:flex!important;flex-direction:column;align-items:flex-start!important;gap:2px}
 .mtm-tile-wide strong{font-size:15px}
 .mtm-tile-wide small{font-size:13px;font-weight:400;color:var(--mtm-muted)}
 .mtm-tile-wide .mtm-icon:last-child{color:var(--mtm-muted)}
 .mtm-allowance{display:flex;flex-direction:column;gap:12px;padding:16px}
 .mtm-allowance-head{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:24px}
 .mtm-allowance-head h2{font-size:16px!important}
 .mtm-allowance-head .mtm-icon-button{margin:-10px -10px -10px 0;color:var(--mtm-accent)}
 .mtm-meters{display:flex;flex-direction:column;gap:12px}
 .mtm-allowance-bars .mtm-meters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .mtm-meter{display:flex;flex-direction:column;gap:6px}
 .mtm-meter>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:14px}
 .mtm-meter>div:first-child span+span{color:var(--mtm-muted)}
 .mtm-bar{height:8px;border-radius:4px;background:var(--mtm-soft);overflow:hidden}
 .mtm-bar span{display:block;height:100%;border-radius:4px;background:var(--mtm-accent)}
 .mtm-empty-card{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 20px;text-align:center}
 .mtm-empty-card p{font-size:14px;line-height:1.5;color:var(--mtm-muted)}
 .mtm-empty-card .mtm-button{margin-top:4px}
 .mtm .mtm-empty-title{font-size:18px;font-weight:700;color:var(--mtm-ink)}

 /* Lists, chips and tabs */
 .mtm-chips{display:flex;gap:8px;overflow-x:auto;margin-right:-16px;padding-right:16px;scrollbar-width:none}
 .mtm-chips::-webkit-scrollbar{display:none}
 .mtm-chips button{flex:none;min-height:40px;padding:0 14px;border-radius:20px;border:1px solid var(--mtm-outline);background:none;font-size:14px;white-space:nowrap;cursor:pointer}
 .mtm-chips button[aria-pressed=true]{background:var(--mtm-strong);border-color:var(--mtm-strong);color:var(--mtm-on-strong);font-weight:700}
 .mtm-tabs{display:flex;gap:24px;border-bottom:1px solid var(--mtm-line);overflow-x:auto;scrollbar-width:none}
 .mtm-tabs button{flex:none;min-height:44px;padding:0 0 8px;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;font-size:15px;white-space:nowrap;cursor:pointer}
 .mtm-tabs button[aria-pressed=true]{border-bottom-color:var(--mtm-accent);color:var(--mtm-accent);font-weight:700}
 .mtm-segments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;background:var(--mtm-surface);border:1px solid var(--mtm-line);border-radius:12px}
 .mtm-segments button{min-height:44px;border-radius:9px;border:1px solid transparent;background:none;font-size:15px;font-weight:700;cursor:pointer}
 .mtm-segments button span{font-weight:400;color:var(--mtm-muted)}
 .mtm-segments button[aria-pressed=true]{border-color:var(--mtm-accent);background:var(--mtm-tint);color:var(--mtm-accent)}
 .mtm-segments button[aria-pressed=true] span{color:inherit}
 .mtm-listbar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;color:var(--mtm-muted)}
 .mtm-sort{position:relative;display:flex;align-items:center;gap:4px;min-height:44px;color:var(--mtm-ink)}
 .mtm-sort-label::after{content:':'}
 .mtm-sort select{min-height:44px;border:0;background:none;color:inherit;font:14px Arial,sans-serif}
 .mtm-sort .ts-select-trigger{width:auto;gap:8px;padding:0 2px;border:0;background:none;color:inherit;font:14px/1.3 Arial,sans-serif}
 .mtm-search{display:flex;align-items:center;gap:8px;min-height:48px;padding:0 12px;border:1px solid var(--mtm-outline);border-radius:12px;background:var(--mtm-surface);color:var(--mtm-muted)}
 .mtm-search input{flex:1;min-width:0;min-height:44px;border:0;background:none;color:var(--mtm-ink);font:16px Arial,sans-serif;outline:none}
 .mtm-stack{display:flex;flex-direction:column;gap:14px}
 .mtm-list{display:flex;flex-direction:column}
 .mtm-list-card{padding:0 14px}
 .mtm-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--mtm-line)}
 .mtm-row:last-child{border-bottom:0}
 .mtm-row.is-compact{padding:10px 0}
 .mtm-row-main{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:0;border:0;background:none;text-align:left;text-decoration:none;cursor:pointer}
 .mtm-row-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
 .mtm-row-main strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
 .mtm-row-main small{font-size:13px;line-height:1.35;color:var(--mtm-muted)}
 .mtm-row-main small:last-child{color:var(--mtm-faint)}
 .mtm-row-thumb{width:72px;height:72px;border-radius:12px;object-fit:cover;flex:none}
 .mtm-row.is-compact .mtm-row-thumb{width:60px;height:60px;border-radius:10px}
 .mtm-save{width:44px;height:44px;flex:none;display:flex;align-items:center;justify-content:center;padding:0;border:1px solid var(--mtm-outline);border-radius:22px;background:none;cursor:pointer}
 .mtm-save.is-saved{background:var(--mtm-tint);border-color:var(--mtm-accent);color:var(--mtm-accent)}
 .mtm-save.is-saved svg path{fill:currentColor}
 .mtm-row-link{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 14px;border:1px solid var(--mtm-line);border-radius:14px;background:var(--mtm-surface);font-size:15px;text-align:left;cursor:pointer}
 .mtm-row-link span{flex:1}
 .mtm-row-link .mtm-icon:last-child{color:var(--mtm-muted)}
 .mtm-note{display:flex;align-items:center;gap:12px;padding:16px;border-radius:14px;color:var(--mtm-faint)}
 .mtm-note p{font-size:14px;line-height:1.45;color:var(--mtm-muted)}
 .mtm-notice{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;font-size:14px;line-height:1.4;color:var(--mtm-muted)}
 .mtm-notice b{color:var(--mtm-ink)}
 .mtm-status:empty{display:none}
 .mtm-status{font-size:14px;color:var(--mtm-muted)}

 /* Loading skeleton drawn before account data arrives */
 .mtm-bone{display:block;border-radius:8px;background:linear-gradient(90deg,var(--mtm-soft) 0 40%,var(--mtm-line) 50%,var(--mtm-soft) 60% 100%) 0 0/300% 100%;animation:mtm-shimmer 1.4s linear infinite}
 .mtm-bone-photo{height:180px;border-radius:0}
 .mtm-bone-line{height:18px;width:80%}
 .mtm-bone-line.short{width:55%}
 .mtm-bone-block{height:64px;border-radius:12px}
 .mtm-bone-chips{height:40px;border-radius:20px}
 .mtm-bone-tile{height:88px;border-radius:14px}
 .mtm-skeleton-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 @keyframes mtm-shimmer{to{background-position:-100% 0}}

 /* Trips */
 .mtm-trip-cover{position:relative}
 .mtm-trip-image{display:flex;width:100%;height:170px;object-fit:cover;border-radius:0;border-width:0 0 1px}
 .mtm-menu{position:absolute;top:8px;right:8px}
 .mtm-menu>summary{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:22px;background:color-mix(in srgb,var(--mtm-surface) 90%,transparent);list-style:none;cursor:pointer}
 .mtm-menu>summary::-webkit-details-marker{display:none}
 .mtm-menu>div{position:absolute;right:0;top:48px;z-index:5;display:flex;flex-direction:column;min-width:190px;padding:6px;border:1px solid var(--mtm-line);border-radius:12px;background:var(--mtm-surface);box-shadow:0 10px 30px rgb(16 55 90 / 18%)}
 .mtm-menu>div>:is(a,button){min-height:44px;display:flex;align-items:center;padding:0 12px;border:0;border-radius:8px;background:none;font-size:15px;text-align:left;text-decoration:none;cursor:pointer}
 .mtm-menu>div>:is(a,button):hover{background:var(--mtm-soft)}
 .mtm-menu .danger{color:var(--dm-danger,#a12a2a)}
 .mtm-trip .mtm-card-body{gap:10px;padding:14px 16px 16px}
 .mtm-copy{font-size:14px;line-height:1.45;color:var(--mtm-muted)}
 .mtm-facts{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px;color:var(--mtm-ink)!important}
 .mtm-facts span{display:flex;align-items:center;gap:6px}
 .mtm-facts .mtm-icon{color:var(--mtm-muted)}
 .mtm-trip .mtm-card-body>.mtm-button{width:100%}

 /* Drafts and contributions */
 .mtm-draft{display:flex;flex-direction:column;gap:14px;padding:14px;overflow:visible}
 .mtm-draft-head{position:relative;display:flex;gap:12px;align-items:flex-start}
 .mtm-draft-head>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
 .mtm-draft-thumb{width:88px;height:88px;border-radius:12px;object-fit:cover;flex:none}
 .mtm-draft h3{font-size:17px}
 .mtm-kind{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mtm-accent)!important}
 .mtm-draft .mtm-menu{position:relative;top:auto;right:auto;margin:-8px -8px 0 0}
 .mtm-draft .mtm-menu>summary{background:none}
 .mtm-warning{display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:10px;background:var(--mtm-amber-bg);color:var(--mtm-amber);font-size:13px}
 .mtm-draft>.mtm-button{width:100%}
 .mtm-help-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px;font-weight:700;color:var(--mtm-accent)!important}
 .mtm-footnote{font-size:14px;line-height:1.45;color:var(--mtm-muted)}
 .mtm-footnote a{font-weight:700;color:var(--mtm-accent)!important}
 .mtm-contributions{display:flex;flex-direction:column;gap:18px}
 .mtm-contributions .contribution-tabs{margin:0;padding-top:0;padding-bottom:0}
 .mtm-contributions .mtm-chips.contribution-tabs{border:0}
 .mtm-contributions .contribution-notice.mtm-notice{display:block}
 .mtm-contributions .contribution-notice a{color:var(--mtm-accent)}
 .mtm-contributions>.publishing-allowance{margin:0}
 .mtm-contributions [data-more]{width:100%}
 body.my-trips-page .mtm-page details.contribution-notice{padding:12px 14px;border:1px solid var(--mtm-line);border-radius:12px;background:var(--mtm-surface)}

 /* Saved, collections and recently viewed */
 .mtm-empty-photo>img{display:block;width:100%;height:130px;object-fit:cover;opacity:.6}
 .mtm-empty-photo>div{display:flex;flex-direction:column;gap:12px;padding:18px}
 .mtm-empty-photo p:not(.mtm-empty-title){font-size:14px;line-height:1.5;color:var(--mtm-muted)}
 .mtm-start{display:flex;flex-direction:column;gap:12px;padding:18px}
 .mtm-start>div{display:flex;gap:12px;align-items:flex-start}
 .mtm-start .mtm-placeholder.round{width:44px;height:44px;border-radius:22px}
 .mtm-start p:not(.mtm-empty-title){margin-top:4px;font-size:14px;line-height:1.5;color:var(--mtm-muted)}
 .mtm-start .mtm-empty-title{font-size:17px}
 .mtm-collection{display:flex;align-items:center;gap:8px;padding:12px 14px}
 .mtm-ideas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .mtm-idea{display:flex;flex-direction:column;padding:0;border:1px solid var(--mtm-line);border-radius:14px;overflow:hidden;background:var(--mtm-surface);text-align:left;cursor:pointer}
 .mtm-idea img{display:block;width:100%;height:110px;object-fit:cover}
 .mtm-idea span{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:52px;padding:10px 12px;font-size:14px;font-weight:700;line-height:1.3}
 .mtm-idea .mtm-icon{color:var(--mtm-accent)}
 .mtm-hint{display:flex;gap:12px;align-items:center;padding:14px;border:1px dashed var(--mtm-outline);border-radius:14px}
 .mtm-hint p{font-size:14px;line-height:1.45;color:var(--mtm-muted)}
 .mtm-hint .mtm-text-link{min-height:24px;display:inline}
}
@media(max-width:767px) and (prefers-reduced-motion:reduce){.mtm-bone{animation:none}}
@media(max-width:340px){
 .mtm-create a{font-size:13px}
 .mtm-actions-wide{grid-template-columns:1fr 1fr}
 .mtm-allowance-bars .mtm-meters{grid-template-columns:1fr}
}
