/* Phone layouts share spacing and touch targets; map canvases keep their design. */
.device-data-hint{padding:16px 20px;border:1px solid #d1e4ef;border-radius:14px;background:#f7fbfd;margin:0 0 20px;color:#28576d}
.device-data-hint strong{font:500 14px/1.5 var(--ui-font)}
.device-data-hint p{font:400 13px/1.6 var(--ui-font);margin:6px 0}
body.travel-logbook .device-data-hint button.link{padding:6px 0;min-height:40px;font-size:13px;color:#087bab;background:transparent;border:0}
@media(max-width:650px){
 body.travel-logbook aside{position:static;min-height:0;gap:8px;padding:12px 16px 0;flex-direction:column;align-items:center}
 body.travel-logbook .travel-header-logo{width:150px;height:62px;object-fit:contain}
 body.travel-logbook aside .travel-primary-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;margin:0;gap:0}
 body.travel-logbook .travel-primary-nav button,body.travel-logbook .travel-primary-nav button.active{flex-direction:column;justify-content:center;gap:5px;min-height:62px;padding:8px 2px;font-size:12px;line-height:1.3;text-align:center;white-space:nowrap}
 body.travel-logbook .travel-primary-nav .menu-icon{width:20px;height:20px;flex-basis:20px}
 body.travel-logbook main{padding:24px 16px 28px}
 body.travel-logbook header{flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:20px}
 body.travel-logbook header>div{width:100%}
 body.travel-logbook h1{font-size:28px;line-height:1.2;letter-spacing:-.4px;margin-bottom:8px}
 body.travel-logbook header p{font-size:13px;line-height:1.6}
 body.travel-logbook #add{align-self:flex-start;min-height:44px;padding:10px 16px}
 body.travel-logbook .travel-subnav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin:0 0 20px;padding:0 0 6px;max-width:100%}
 body.travel-logbook .travel-subnav button,body.travel-logbook .travel-subnav button.active{min-width:0;min-height:64px;padding:8px 2px;font-size:11px;line-height:1.3;white-space:normal;flex-direction:column;gap:5px}
 body.travel-logbook .travel-subnav button>span{max-width:100%;overflow-wrap:anywhere;white-space:normal}
 body.travel-logbook .travel-subnav [data-cruise-view="list"]>span{font-size:0;line-height:0}
 body.travel-logbook .travel-subnav [data-cruise-view="list"]>span:after{content:'Reisen';font-size:11px;line-height:1.3}
 body.travel-logbook .home-actions{gap:8px;margin-bottom:20px}
 body.travel-logbook .home-actions>button{min-height:44px;padding:10px 8px;font-size:12px}
 body.travel-logbook .home-summary>button{display:grid;grid-template-columns:20px auto;justify-content:center;gap:2px 8px;padding:12px 8px;min-height:76px}
 body.travel-logbook .home-summary>button>span:last-child{grid-column:1/-1;font-size:12px;line-height:1.4;text-align:center}
 body.travel-logbook .home-summary strong{font-size:27px;line-height:1.2}
 body.travel-logbook .home-overview-card .home-country-progress{padding:16px;gap:10px}
 body.travel-logbook .home-country-progress>span{font-size:12px;line-height:1.5}
 body.travel-logbook .home-country-progress strong{font-size:23px}
 body.travel-logbook .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}
 body.travel-logbook .metrics>.metric{display:flex;flex-direction:column;align-items:stretch;min-width:0;padding:16px 12px;text-align:left}
 body.travel-logbook .metrics>.metric strong{font-size:26px;line-height:1.25;letter-spacing:-.5px;margin:12px 0 8px;overflow-wrap:anywhere}
 body.travel-logbook .metric-mobile-details{margin-top:10px;border-top:1px solid #e3edf2;padding-top:8px}
 body.travel-logbook .metric-mobile-details>summary{font:500 12px/1.5 var(--ui-font);color:#2e6f91;cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:6px;list-style:none}
 body.travel-logbook .metric-mobile-details>summary::-webkit-details-marker{display:none}
 body.travel-logbook .metric-mobile-details>summary:after{content:'+';font-size:18px;font-weight:400}
 body.travel-logbook .metric-mobile-details[open]>summary:after{content:'−'}
 body.travel-logbook :is(.flight-count-open,.flight-distance-open,.flight-time-open,.airport-stat-open){margin-top:auto;padding-top:12px;min-height:44px;display:flex;align-items:center;font-size:12px}
 body.travel-logbook :is(.columns,.cruise-stat-columns,.cruise-dashboard-charts){gap:16px}
 body.travel-logbook .card{padding:18px;border-radius:14px;min-width:0}
 body.travel-logbook .filters{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:18px}
 body.travel-logbook .filters :is(input,select){width:100%;min-width:0}
 body.travel-logbook .flight{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px 0}
 body.travel-logbook .flight .flight-meta{text-align:left;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
 body.travel-logbook .flight .flight-meta small{margin:0}
 body.travel-logbook .flight-date{white-space:normal}
 body.travel-logbook .flight-airport-name{white-space:normal;line-height:1.45}
 body.travel-logbook .flight-route-title>strong{font-size:17px}
 body.travel-logbook .terminal-board-columns{display:none}
 body.travel-logbook .terminal-board-scroll{overflow:visible}
 body.travel-logbook .terminal-board-heading{padding:14px;gap:10px;align-items:flex-start}
 body.travel-logbook .terminal-board-heading strong{font-size:10px;letter-spacing:1px;line-height:1.5}
 body.travel-logbook .terminal-board-heading>span{font-size:10px;line-height:1.5;text-align:right}
 body.travel-logbook .terminal-board .flight{grid-template-columns:24px minmax(0,1fr) auto;grid-template-areas:'number date code' 'route route route' 'airline airline aircraft';width:100%;min-width:0;padding:16px 14px;gap:12px 8px;min-height:0}
 body.travel-logbook .terminal-board .board-number{grid-area:number;font-size:10px}
 body.travel-logbook .terminal-board .board-date{grid-area:date;font-size:12px;white-space:normal}
 body.travel-logbook .terminal-board .board-flight-number{grid-area:code;font-size:12px;text-align:right}
 body.travel-logbook .terminal-board .flight-route{grid-area:route;min-width:0}
 body.travel-logbook .terminal-board .flight-airport-details{margin:0;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}
 body.travel-logbook .terminal-board .flight-airport{min-width:0}
 body.travel-logbook .terminal-board .board-airport-code{font-size:24px}
 body.travel-logbook .terminal-board .flight-airport-name{font-size:12px;white-space:normal;overflow-wrap:anywhere}
 body.travel-logbook .terminal-board .board-airline{grid-area:airline;display:flex;align-items:center;min-width:0;gap:8px}
 body.travel-logbook .terminal-board .board-logo{width:42px;height:34px;flex:0 0 42px;padding:3px}
 body.travel-logbook .terminal-board .board-airline-name{font-size:11px;min-width:0;white-space:normal;overflow-wrap:anywhere}
 body.travel-logbook .terminal-board .board-aircraft{grid-area:aircraft;text-align:right;font-size:11px;min-width:0}
 body.travel-logbook .terminal-board .board-registration{font-size:10px}
 body.travel-logbook .city-page-summary{display:flex;flex-wrap:wrap;gap:12px 18px;margin-bottom:18px}
 body.travel-logbook .city-page-summary>span{font-size:12px;line-height:1.5}
 body.travel-logbook .city-album-list .city-album-card{display:grid;grid-template-columns:minmax(0,1fr);gap:2px;padding:14px 0}
 body.travel-logbook .city-album-list .city-album-open{gap:12px}
 body.travel-logbook .city-album-list .city-album-name{gap:7px;align-items:flex-start}
 body.travel-logbook .city-album-list .city-album-name strong{font-size:21px;line-height:1.25}
 body.travel-logbook .city-album-list .city-album-actions{padding:0;margin-left:88px;justify-content:flex-start}
 body.travel-logbook .city-album-list .city-album-copy>span:not(.city-album-name){font-size:13px}
 body.travel-logbook .cruise-stat-metric{min-width:0;padding:16px 12px}
 body.travel-logbook .cruise-stat-metric strong{font-size:27px;overflow-wrap:anywhere}
 body.travel-logbook .cruise-tour-title{font-size:22px;line-height:1.3}
 body.travel-logbook .cruise-ship-specs dl>div{font-size:13px;gap:10px}
 body.travel-logbook .cruise-ship-trips .cruise-trip-link strong{font-size:14px}
 body.travel-logbook .statistics-dates{font-size:12px}
 body.travel-logbook .statistics-dates small{font-size:11px}
 body.travel-logbook dialog[id]{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:20px 16px;overflow-y:auto;overflow-x:hidden;border-radius:16px}
 body.travel-logbook dialog>.row{align-items:flex-start;gap:12px}
 body.travel-logbook dialog h2{font-size:23px;line-height:1.3;margin:0;overflow-wrap:anywhere}
 body.travel-logbook dialog .close{flex:0 0 44px;width:44px;height:44px;min-height:44px;display:grid;place-items:center;padding:0}
 body.travel-logbook dialog .formgrid,body.travel-logbook .city-search-controls{grid-template-columns:minmax(0,1fr);gap:16px}
 body.travel-logbook dialog .wide{grid-column:1/-1}
 body.travel-logbook :is(input,select,textarea){max-width:100%;min-width:0;min-height:46px;font-size:16px}
 body.travel-logbook dialog .actions{flex-wrap:wrap;gap:10px;margin-top:20px}
 body.travel-logbook .city-stay-list>article{flex-wrap:wrap;gap:8px}
 body.travel-logbook .city-stay-list>article>div{min-width:0;flex:1 1 180px}
 body.travel-logbook .city-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.travel-logbook .city-entry-photo img{width:100%;max-width:320px}
 body.travel-logbook .travel-page-footer{gap:8px;margin-top:28px;padding-top:18px;line-height:1.5;font-size:12px}
}
@media(min-width:651px){.metric-mobile-details>summary{display:none}.metric-mobile-details{display:contents}}
@media(max-width:360px){body.travel-logbook main{padding-inline:12px}body.travel-logbook aside{padding-inline:12px}body.travel-logbook h1{font-size:26px}body.travel-logbook .travel-primary-nav button,body.travel-logbook .travel-primary-nav button.active{font-size:11px}body.travel-logbook .metrics>.metric strong{font-size:23px}}

/* Map controls and departure rows designed for a phone screen. */
.mobile-map-move,.board-mobile-arrow{display:none}
@media(max-width:650px){
 body.travel-logbook .map-card{padding:16px 14px;overflow:hidden}
 body.travel-logbook .map-card .map-heading{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:0}
 body.travel-logbook .map-heading>div{min-width:0;width:100%}
 body.travel-logbook .map-heading h2{font-size:23px;max-width:none;line-height:1.25;margin-bottom:6px}
 body.travel-logbook .map-heading .hint{font-size:12px;line-height:1.5;margin:0}
 body.travel-logbook .map-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0;width:100%}
 body.travel-logbook .map-controls button{min-width:0;min-height:44px;padding:8px 5px;font-size:16px;display:flex;align-items:center;justify-content:center}
 body.travel-logbook .map-controls #resetMap{font-size:12px}
 body.travel-logbook .map-controls .mobile-map-move{grid-column:1/-1;min-height:40px;font-size:12px;background:transparent;border-color:#d5e5ee}
 body.travel-logbook .map-controls .mobile-map-move[aria-pressed=true]{background:#edf7fc;color:#087bab;border-color:#b5d9e8}
 body.travel-logbook .map-card .map-wrap{aspect-ratio:auto;min-height:0;margin:14px -14px 10px;border-radius:0;border-left:0;border-right:0;overflow:hidden}
 body.travel-logbook .map-wrap #worldMap{width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:1080/560;touch-action:pan-y}
 body.travel-logbook .mobile-map-active .map-wrap #worldMap{touch-action:none}
 body.travel-logbook .map-wrap:fullscreen{display:flex;align-items:center;justify-content:center;margin:0;height:100dvh}
 body.travel-logbook .map-wrap:fullscreen #worldMap{height:100dvh;aspect-ratio:auto;touch-action:none}
 body.travel-logbook .map-badge{top:7px;left:7px;padding:5px 8px;font-size:9px;max-width:calc(100% - 14px);box-shadow:none}
 body.travel-logbook .map-legend{position:static;display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:9px 10px;background:#f7fbfd;border-top:1px solid #d9e8f0;font-size:10px;line-height:1.4}
 body.travel-logbook .map-legend span{padding:3px 5px;background:transparent;min-width:0}
 body.travel-logbook .map-legend span:last-child{margin-left:auto}
 body.travel-logbook .map-regions{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:6px;overflow-x:auto;max-width:100%;padding:3px 0 7px;scrollbar-width:thin}
 body.travel-logbook .map-regions button{flex:0 0 auto;min-height:40px;padding:8px 12px;font-size:12px;white-space:nowrap}
 body.travel-logbook .atlas-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0;padding-top:14px}
 body.travel-logbook .atlas-metrics strong{font-size:23px;overflow-wrap:anywhere}
 body.travel-logbook .atlas-metrics span{font-size:10px}
 body.travel-logbook .cruise-port-map-filters>div{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:6px}
 body.travel-logbook .cruise-port-map-filters>div>button{min-width:0;min-height:44px;padding:8px 6px;font-size:11px;white-space:normal}
 body.travel-logbook .cruise-port-map-popup{bottom:48px;max-height:200px}
 body.travel-logbook .cruise-route-map-heading{padding:14px 14px 0;min-height:0}
 body.travel-logbook .cruise-route-map-heading h3{padding-right:0;font-size:18px;line-height:1.4}
 body.travel-logbook .cruise-route-map-controls{position:static;display:flex;justify-content:flex-end;gap:6px;padding:10px 14px}
 body.travel-logbook .cruise-route-map-controls button{min-height:44px;min-width:44px;padding:8px 12px}
 body.travel-logbook .cruise-detail-route-map svg[role=img]{min-height:0;height:250px;max-height:45dvh;width:100%}
 body.travel-logbook .cruise-route-map-legend{gap:6px;line-height:1.5;font-size:11px;padding:12px 14px}
 body.travel-logbook .terminal-board-heading{gap:8px;padding:12px 14px}
 body.travel-logbook .terminal-board-heading strong{font-size:10px;letter-spacing:.6px}
 body.travel-logbook .terminal-board-heading>span{font-size:9px;letter-spacing:0;white-space:nowrap}
 body.travel-logbook .terminal-board .flight{grid-template-columns:22px minmax(0,1fr) minmax(0,auto);padding:13px 14px;gap:10px 6px;line-height:1.4}
 body.travel-logbook .terminal-board .board-date{font:400 12px/1.4 var(--ui-font)}
 body.travel-logbook .terminal-board .board-number{font-size:9px;color:#91a9bb}
 body.travel-logbook .terminal-board .board-flight-number{font-size:12px;max-width:110px;white-space:normal}
 body.travel-logbook .terminal-board .flight-route{position:relative;padding:0}
 body.travel-logbook .terminal-board .flight-airport-details{gap:30px;align-items:start}
 body.travel-logbook .terminal-board .flight-airport{gap:4px}
 body.travel-logbook .terminal-board .board-airport-caption{display:block;font-size:9px;letter-spacing:.5px;color:#b4c6d5}
 body.travel-logbook .terminal-board .board-airport-code{font-size:24px;line-height:1.25}
 body.travel-logbook .terminal-board .board-airport-code .split-flap-cell{font-size:22px;min-width:17px;line-height:1.2}
 body.travel-logbook .terminal-board .board-mobile-arrow{display:block;position:absolute;left:50%;top:22px;transform:translateX(-50%);font:400 22px/1 var(--ui-font);color:#dfc87c}
 body.travel-logbook .terminal-board .flight-airport-name{font-size:11px;line-height:1.35;white-space:normal;text-overflow:clip;display:block;overflow:visible}
 body.travel-logbook .terminal-board .flight-icao{font-size:9px;line-height:1.3}
 body.travel-logbook .terminal-board .board-logo{width:36px;height:30px;flex-basis:36px;padding:3px}
 body.travel-logbook .terminal-board .board-airline-name{font-size:12px;line-height:1.35;display:block;overflow:visible;text-overflow:clip}
 body.travel-logbook .terminal-board .board-aircraft{font-size:10px;max-width:110px;overflow-wrap:anywhere;align-self:center}
 body.travel-logbook .terminal-board .board-registration{font-size:9px;margin-top:3px}
}
@media(max-width:650px){body.travel-logbook .map-wrap:fullscreen{flex-direction:column}body.travel-logbook .map-wrap:fullscreen #worldMap{flex:1;min-height:0;height:calc(100dvh - 48px)}body.travel-logbook .map-wrap:fullscreen .map-legend{flex:0 0 auto;width:100%}}
@media(max-width:650px){body.travel-logbook .cruise-port-map-popup{position:static;inset:auto;width:calc(100% - 20px);max-height:none;margin:10px;padding:12px}body.travel-logbook .cruise-port-map-popup>div:last-child{max-height:180px;overflow-y:auto}body.travel-logbook .cruise-port-map-popup .close{min-width:40px;min-height:40px}body.travel-logbook .cruise-route-map-legend span{max-width:100%;overflow-wrap:anywhere}}
@media(max-width:650px){body.travel-logbook .cruise-detail-route-map .cruise-route-lines>path{stroke-width:2;vector-effect:non-scaling-stroke}}
body.travel-logbook .cruise-ports-atlas .mobile-port-regions{display:none}
@media(max-width:650px){body.travel-logbook .cruise-ports-atlas .mobile-port-regions{display:flex}}
@media(min-width:651px){body.travel-logbook .map-controls .mobile-map-move,body.travel-logbook .terminal-board .board-mobile-arrow{display:none}}
