/* This presentation applies only to the four phone workflows. */
.ma-header,.ma-nav,.ma-order-actions,.ma-publish-tabs,.mn-route-facts{display:none}
.ma-order-route[hidden]{display:none!important}
body.dt-mobile-app #app .app-wrapper{--dt-rail-width:0px}
body.dt-mobile-app #app .sidebar-container,body.dt-mobile-app .tags-view-container,body.dt-mobile-app .drawer-bg{display:none!important}
body.dt-mobile-app #app .main-container,body.dt-mobile-app #app .app-main{margin-left:0!important;padding:0!important;width:100%!important;min-width:0!important;height:100dvh!important;overflow:hidden!important;transition:none!important}
body.dt-mobile-app #app .app-wrapper .dashboard,body.dt-mobile-app #app .app-wrapper .map,body.dt-mobile-app #app .map>.map-card{top:0!important;margin:0!important;width:100%!important;height:100dvh!important;min-height:0!important}
body.dt-mobile-app .dt-map-tools,body.dt-mobile-app .dt-map-appearance-controls,body.dt-mobile-app .dt-voyage-strip,body.dt-mobile-app .map-object-hover-summary,body.dt-mobile-app .mn-top{display:none!important}
body.dt-mobile-app .map .layer-switcher-wrapper,body.dt-mobile-app .map .btn-group,body.dt-mobile-app .map .overlay.bottom,body.dt-mobile-app .map .dt-env-toggle{display:none!important}
body.dt-mobile-app .hybrid-map-attribution,body.dt-mobile-app .ienc-attribution{top:auto!important;bottom:calc(var(--ma-nav-height) + 142px)!important;left:8px!important;right:auto!important;font-size:8px!important;max-width:calc(100% - 16px)!important}

/* Planning: two ports, a route, and small facts beside the map. */
body.dt-mobile-plan .map .overlay.right,html body.dt-mobile-plan.dt-navigation-map .map[data-mn-environment=true]>.overlay.right{display:none!important}
body.dt-mobile-plan button[data-mn-environment],body.dt-mobile-plan button[data-mn-layers]{display:none!important}
body.dt-mobile-plan .map .overlay.left,body.dt-mobile-plan .map.vs-mounted .overlay.left:has(.route-planner-host){bottom:var(--ma-nav-height)!important;inset:auto 0 var(--ma-nav-height)!important;border-radius:20px 20px 0 0!important;background:var(--ma-bg)!important;color:var(--ma-ink)!important}
body.dt-mobile-plan .mn-eyebrow,body.dt-mobile-plan .mn-summary-main>[data-mn-settings],body.dt-mobile-plan .mn-distance{display:none!important}
body.dt-mobile-plan .mn-summary{padding:0 18px}
body.dt-mobile-plan .mn-duration{font-size:16px;line-height:22px;color:var(--ma-ink)!important}
body.dt-mobile-plan .mn-handle{min-height:24px;height:24px}
body.dt-mobile-plan .mn-caption:empty,body.dt-mobile-plan .mn-status:empty{display:none!important}
body.dt-mobile-plan .mn-caption,body.dt-mobile-plan .mn-status{font-size:11px;color:var(--ma-muted)!important}
body.dt-mobile-plan .mn-actions{margin-top:8px;padding-bottom:12px}
body.dt-mobile-plan .mn-actions button{min-height:44px;border-radius:14px}
body.dt-mobile-plan .mn-actions [data-mn-details]{flex:0 0 100px}
body.dt-mobile-plan .mn-route-facts:not([hidden]){position:fixed;inset:calc(188px + var(--ma-safe-top)) 12px auto;z-index:2200;display:flex;justify-content:space-between;gap:18px;pointer-events:none}
body.dt-mobile-plan .mn-route-facts>span{display:flex;flex-direction:column;gap:2px;max-width:42%;padding:9px 12px;border:1px solid var(--ma-line);border-radius:14px;background:var(--ma-bg);color:var(--ma-ink);font-size:14px;box-shadow:0 3px 12px #0b263326}
body.dt-mobile-plan .mn-route-facts small{font-size:10px;color:var(--ma-muted)}
body.dt-mobile-plan .mn-map-tools{top:calc(258px + var(--ma-safe-top));right:12px}
body.dt-mobile-plan .mn-sheet-header[data-state=ready] .mn-status[data-status=pass]{display:none!important}
body.dt-mobile-plan .map:is([data-mn-panel=settings],[data-mn-panel=routes]) .mn-route-facts{display:none!important}
body.dt-mobile-plan .map:is([data-mn-panel=settings],[data-mn-panel=routes]) .overlay.left{height:min(60dvh,calc(100dvh - 180px - var(--ma-nav-height)))!important;max-height:calc(100dvh - 180px - var(--ma-nav-height))!important}
body.dt-mobile-plan .ol-attribution{bottom:calc(var(--ma-nav-height) + 145px)!important}

/* Orders: map above, one scrollable order surface below. */
body.dt-mobile-orders #app .map>.map-card,body.dt-mobile-orders #app .map-container{height:50dvh!important}
body.dt-mobile-orders .map>.overlay.left,body.dt-mobile-orders .map>.overlay.bottom{display:none!important}
html body.dt-mobile-orders #app .dashboard .map>.overlay.right{position:fixed!important;inset:50dvh 0 var(--ma-nav-height)!important;display:flex!important;width:100%!important;height:auto!important;max-height:none!important;padding:0!important;margin:0!important;overflow:hidden!important;z-index:2300;border:1px solid var(--ma-line);border-radius:20px 20px 0 0;background:var(--ma-bg)!important;color:var(--ma-ink)!important}
body.dt-mobile-orders .map>.overlay.right>.info-panel-c{flex:1;width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;background:var(--ma-bg)!important;border:0!important;box-shadow:none!important}
body.dt-mobile-orders .info-panel-c>.el-card__body{height:100%!important;padding:0!important;overflow:hidden!important}
body.dt-mobile-orders .info-panel-c>.el-card__body>:not(.logistic-panel){display:none!important}
body.dt-mobile-orders .info-panel-c .logistic-panel{display:flex;flex-direction:column;width:100%!important;min-width:0!important;max-width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;background:var(--ma-bg)!important}
body.dt-mobile-orders .info-logistic-root{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;background:var(--ma-bg)!important}
body.dt-mobile-orders .record-list{flex:1;min-height:0;max-height:none!important;overflow-y:auto!important;padding:0 12px 12px;overscroll-behavior:contain}
body.dt-mobile-orders .section-header.header-with-controls{flex:none;min-height:54px!important;padding:10px 16px!important;border-bottom:1px solid var(--ma-line);background:var(--ma-bg)!important;color:var(--ma-ink)!important}
body.dt-mobile-orders .record-card{margin:8px 0!important;border:1px solid var(--ma-line)!important;border-radius:14px!important;background:var(--ma-bg)!important;color:var(--ma-ink)!important;box-shadow:none!important}
body.dt-mobile-orders .record-card>.el-card__body{padding:12px!important}
body.dt-mobile-orders .demo-logistics-notice{flex:none;margin:7px 12px!important;padding:6px 9px!important;font-size:10px!important}
body.dt-mobile-orders .demo-logistics-notice>span{display:none}
body.dt-mobile-orders .demo-logistics-details{display:none!important}
body.dt-mobile-orders .header-controls{display:flex;align-items:center;gap:8px;flex:none}
body.dt-mobile-orders .header-controls .el-checkbox{margin:0!important;min-height:38px}
body.dt-mobile-orders .info-logistic-root,body.dt-mobile-orders .record-list{width:100%!important;min-width:0!important;box-sizing:border-box}
body.dt-mobile-orders .record-card[aria-pressed=true]{border-color:var(--ma-blue)!important;background:#2388f810!important}
body.dt-mobile-orders .ma-order-route:not([hidden]){position:fixed;top:calc(64px + var(--ma-safe-top));left:12px;right:12px;z-index:2350;padding:10px 14px;border:1px solid var(--ma-line);border-radius:14px;background:var(--ma-bg);color:var(--ma-ink);box-shadow:0 3px 14px #142b4919}
body.dt-mobile-orders .ma-order-route strong{font-size:14px;display:block;margin-bottom:4px}
body.dt-mobile-orders .ma-order-route span{font-size:11px;line-height:1.4;color:var(--ma-muted)}
body.dt-mobile-orders .record-line{gap:8px!important}
body.dt-mobile-orders .route-block{min-width:0;flex:1}
body.dt-mobile-orders .route-block .place{font-size:13px!important;white-space:normal!important;line-height:1.4}
body.dt-mobile-orders .info-panel[data-v-53e610ab]{position:fixed!important;inset:50dvh 0 var(--ma-nav-height)!important;width:100%!important;max-width:none!important;max-height:none!important;border-radius:20px 20px 0 0;z-index:2500;overflow-y:auto!important;background:var(--ma-bg)!important}
body.dt-mobile-orders .route-match-card .rm-body,body.dt-mobile-orders .logistic-info-card .logistic-descriptions,body.dt-mobile-orders .logistic-info-card .el-switch,body.dt-mobile-orders .route-match-card+.el-card{display:none!important}
body.dt-mobile-orders .hybrid-map-attribution,body.dt-mobile-orders .ol-attribution{top:calc(50dvh - 22px)!important;bottom:auto!important}

/* Cockpit: forward instruction, route selection and position controls. */
html body.dt-mobile-cockpit .cp-workspace{--cpd-bottom-space:var(--ma-nav-height)!important;--vs-height:0px}
body.dt-mobile-cockpit .cpd{inset:0!important;display:block!important;pointer-events:none}
body.dt-mobile-cockpit .cpd-left,body.dt-mobile-cockpit .cpd-right{display:contents!important}
body.dt-mobile-cockpit .cpd-mobile-tabs,body.dt-mobile-cockpit .cpd-right,body.dt-mobile-cockpit .cpd-overview,body.dt-mobile-cockpit .cpd-instruments,body.dt-mobile-cockpit .cpd-upcoming>.cpd-section-heading,body.dt-mobile-cockpit .cpd-upcoming>.cpd-brief,body.dt-mobile-cockpit .cpd-title,body.dt-mobile-cockpit .cpd-map-actions [data-action=layers],body.dt-mobile-cockpit .cpd-tilt{display:none!important}
body.dt-mobile-cockpit .cpd-current{position:fixed!important;inset:auto 12px calc(var(--ma-nav-height) + 12px)!important;display:flex!important;width:auto!important;height:auto!important;max-height:190px!important;padding:12px!important;gap:8px;border-radius:18px!important;background:var(--ma-bg)!important}
body.dt-mobile-cockpit .cpd-header{display:block!important;padding:0!important}
body.dt-mobile-cockpit .cpd-route-select label{display:none}
body.dt-mobile-cockpit .cpd-route-select select{height:44px;font-size:14px}
body.dt-mobile-cockpit .cpd-connection{display:flex;align-items:center;margin:0!important}
body.dt-mobile-cockpit .cpd-connection>button{min-height:44px;font-size:12px}
body.dt-mobile-cockpit .cpd-attention{margin:0!important;font-size:11px;min-height:0;padding:4px!important}
body.dt-mobile-cockpit .cpd-upcoming{position:fixed!important;inset:calc(64px + var(--ma-safe-top)) 12px auto!important;display:block!important;height:auto!important;max-height:136px!important;width:auto!important;border-radius:18px!important;background:var(--ma-bg)!important}
body.dt-mobile-cockpit .cpd-map-banner{padding:14px!important;border-bottom:0}
body.dt-mobile-cockpit .cpd-map-banner strong{font-size:18px}
body.dt-mobile-cockpit .cpd-map-banner small{display:block;font-size:10px}
body.dt-mobile-cockpit .cpd-map-banner span:not(.cpd-next-icon){font-size:12px}
body.dt-mobile-cockpit .cpd-next-icon{width:44px;height:44px}
body.dt-mobile-cockpit .cpd-map-actions{position:fixed!important;inset:auto 12px calc(var(--ma-nav-height) + 198px) auto!important;display:flex!important;flex-direction:column;width:60px!important;padding:3px!important;gap:3px;border-radius:10px;background:var(--ma-bg)}
body.dt-mobile-cockpit .cpd-map-actions button{height:32px;min-height:32px;min-width:0;padding:4px 2px;gap:2px;border-radius:7px;font-size:10px}
body.dt-mobile-cockpit .cpd-map-actions button svg{width:12px;height:12px}
body.dt-mobile-cockpit .cpd-map-actions [data-action=forward]{font-size:9px}
body.dt-mobile-cockpit .cpd-map-actions .cpd-north-compass{bottom:calc(100% + 5px);width:36px;height:36px;min-height:36px;padding:0;border-radius:50%}
body.dt-mobile-cockpit .cpd-map-actions .cpd-north-compass svg{width:34px;height:34px}
body.dt-mobile-cockpit .hybrid-map-attribution,body.dt-mobile-cockpit .ienc-attribution,body.dt-mobile-cockpit .ol-attribution{bottom:calc(var(--ma-nav-height) + 186px)!important;top:auto!important;left:8px!important;right:auto!important;font-size:8px!important}
/* Keep both source rows just above the voyage card, clear of camera buttons. */
html body.dt-mobile-cockpit.dt-cockpit.dt-map-shell .cp-workspace #map > :is(.hybrid-map-attribution,.ienc-attribution){
 top:auto!important;left:8px!important;right:auto!important;bottom:calc(var(--ma-nav-height) + 214px)!important;
 width:max-content!important;max-width:calc(100% - 112px)!important;font-size:9px!important;
 line-height:1.3!important;padding:3px 5px!important;white-space:normal!important;}
html body.dt-mobile-cockpit.dt-cockpit.dt-map-shell .cp-workspace #map > .hybrid-map-attribution{bottom:calc(var(--ma-nav-height) + 234px)!important}

/* Publishing uses the existing form, validation, route drawing and auth. */
body.dt-mobile-publish .publish-company-container{position:fixed!important;inset:0 0 var(--ma-nav-height)!important;display:block!important;padding:0!important;overflow:hidden!important;background:var(--ma-bg)!important}
body.dt-mobile-publish #app .publish-company-container>.map{position:absolute!important;inset:0 0 auto!important;display:block!important;flex:none!important;height:50dvh!important;width:100%!important;max-width:none!important;min-width:0!important;min-height:0!important;padding:0!important}
body.dt-mobile-publish #app .publish-company-container .map>.map-card,body.dt-mobile-publish .publish-company-container .map-container{height:50dvh!important;width:100%!important;position:relative!important}
/* The desktop grid cap and card padding must not narrow the phone map. */
body.dt-mobile-publish #app .publish-company-container .map>.map-card>.el-card__body{height:100%!important;min-height:0!important;padding:0!important}
body.dt-mobile-publish #app .publish-company-container .map .hybrid-map-attribution{bottom:8px!important}
body.dt-mobile-publish .publish-company-container .map .btn-group{display:none!important}
body.dt-mobile-publish .ma-publish-tabs{position:fixed;inset:50dvh 0 auto;z-index:2450;display:flex;gap:8px;height:52px;padding:8px 14px;border-radius:18px 18px 0 0;border:1px solid var(--ma-line);background:var(--ma-bg)}
body.dt-mobile-publish .ma-publish-tabs button{flex:1;border:0;border-radius:10px;min-height:36px;background:transparent;color:var(--ma-muted);font:600 13px system-ui}
body.dt-mobile-publish .ma-publish-tabs button[aria-pressed=true]{background:#2388f819;color:var(--ma-blue)}
body.dt-mobile-publish .ma-publish-tabs select{width:84px;min-width:0;min-height:36px;padding:0 6px;border:1px solid var(--ma-line);border-radius:10px;background:var(--ma-bg);color:var(--ma-ink);font:600 13px system-ui}
body.dt-mobile-publish .publish-company-container .form-float-panel{position:fixed!important;inset:calc(50dvh + 52px) 0 var(--ma-nav-height)!important;display:block!important;padding:0 14px 14px!important;overflow-y:auto!important;overscroll-behavior:contain;background:var(--ma-bg)!important;z-index:2300}
body.dt-mobile-publish .form-float-panel>.el-button{display:none!important}
body.dt-mobile-publish .form-panel{width:100%!important;max-width:none!important;box-shadow:none!important;border:0!important;background:var(--ma-bg)!important;color:var(--ma-ink)!important;transform:none!important}
body.dt-mobile-publish .form-panel>.el-card__body{padding:6px 0 14px!important}
body.dt-mobile-publish .compact-form .el-col{width:100%!important;max-width:100%!important;flex:0 0 100%!important;padding:0 5px!important}
body.dt-mobile-publish .compact-form .el-form-item{margin-bottom:12px!important;backdrop-filter:none!important}
body.dt-mobile-publish .compact-form .el-form-item__label{font-size:12px;color:var(--ma-muted)!important}
body.dt-mobile-publish .compact-form .el-autocomplete,body.dt-mobile-publish .compact-form .el-date-editor,body.dt-mobile-publish .compact-form .el-input-number,body.dt-mobile-publish .compact-form .el-select{width:100%!important}
/* Keep the appended capacity unit usable beside the numeric field on phones. */
body.dt-mobile-publish .compact-form .el-input-group>.el-input__wrapper{min-width:0}
body.dt-mobile-publish .compact-form .el-input-group__append{flex:0 0 auto;padding:0!important}
body.dt-mobile-publish .compact-form .el-input-group__append .el-select{width:124px!important;min-width:124px;flex:0 0 124px;margin:0!important}
body.dt-mobile-publish .compact-form .el-input-group__append .el-select__wrapper{min-height:44px!important}
body.dt-mobile-publish .compact-form input{min-height:40px;font-size:16px!important}
body.dt-mobile-publish .compact-form .el-input__wrapper,body.dt-mobile-publish .compact-form .el-select__wrapper{min-height:44px;background:var(--ma-bg)!important;border-radius:10px}
body.dt-mobile-publish .compact-form .el-col:has([data-ma-field=geometry]){display:none!important}
body.dt-mobile-publish .compact-form button{min-height:44px}
body.dt-mobile-publish .compact-form>.el-form-item:last-child{position:sticky;bottom:0;padding:8px 0;background:var(--ma-bg);z-index:2}
body.dt-mobile-publish .compact-form>.el-form-item:last-child button{width:100%;border-radius:12px}
body.dt-mobile-publish .publish-company-container>.info-panel{position:fixed!important;inset:calc(50dvh + 52px) 0 var(--ma-nav-height)!important;display:none!important;width:100%!important;max-width:none!important;padding:0 14px 14px!important;overflow-y:auto!important;background:var(--ma-bg)!important}
body.dt-mobile-publish[data-ma-publish-pane=list] .publish-company-container>.info-panel{display:block!important}
body.dt-mobile-publish[data-ma-publish-pane=list] .form-float-panel{display:none!important}
body.dt-mobile-publish .publish-dialog{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px);overflow-y:auto}
body.dt-mobile-app [hidden]{display:none!important}
@media(orientation:landscape) and (max-height:500px){
 body.dt-mobile-app{--ma-nav-height:52px}
 body.dt-mobile-plan .mn-route-facts:not([hidden]){top:130px}
 body.dt-mobile-plan .mn-route-facts>span{padding:6px 10px}
 body.dt-mobile-plan .map .overlay.left{width:min(380px,50vw)!important;left:auto!important;border-radius:18px 0 0 0!important}
 body.dt-mobile-plan .mn-map-tools{top:196px}
 body.dt-mobile-cockpit .cpd-upcoming{right:48%!important;top:calc(62px + var(--ma-safe-top))!important}
 body.dt-mobile-cockpit .cpd-current{left:54%!important;max-height:150px!important}
 body.dt-mobile-cockpit .cpd-map-actions{bottom:calc(var(--ma-nav-height) + 16px)!important;right:auto!important;left:12px!important;flex-direction:row}
 html body.dt-mobile-cockpit.dt-cockpit.dt-map-shell .cp-workspace #map > :is(.hybrid-map-attribution,.ienc-attribution){bottom:calc(var(--ma-nav-height) + 110px)!important;max-width:calc(54vw - 28px)!important}
 html body.dt-mobile-cockpit.dt-cockpit.dt-map-shell .cp-workspace #map > .hybrid-map-attribution{bottom:calc(var(--ma-nav-height) + 130px)!important}
}

/* Shared phone geometry. This shell also covers login, profile and authorized management. */
.ma-menu:not([open]),.ma-auth-back{display:none}
/* Keep a small camera/status-bar buffer even when the browser reports no inset. */
body.dt-mobile-shell{--ma-safe-top:max(24px,env(safe-area-inset-top,0px));--ma-nav-height:calc(62px + env(safe-area-inset-bottom,0px));--ma-top:calc(68px + var(--ma-safe-top));--ma-bg:#fff;--ma-ink:#172e45;--ma-muted:#62778b;--ma-line:#dce7ef;--ma-blue:#1579ea;--ma-map-height:40dvh;overflow:hidden;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ma-ink);background:#f3f7fb}
body.dt-mobile-plan{--mn-top-height:calc(176px + var(--ma-safe-top))}
html body.dt-mobile-plan.dt-mobile-navigation .rp .rp-ports,html body.dt-mobile-plan.dt-mobile-navigation .mn-detail-ports{top:calc(60px + var(--ma-safe-top))!important}
body.dt-mobile-shell.dark-water-theme{--ma-bg:#142f43;--ma-ink:#e6f2fa;--ma-muted:#a4bacc;--ma-line:#2a4d64;--ma-blue:#3595ff;background:#102737;color-scheme:dark}
body.dt-mobile-shell,body.dt-mobile-shell *{box-sizing:border-box}
body.dt-mobile-shell #app{height:100dvh;overflow:hidden}
body.dt-mobile-shell #app .sidebar-container,body.dt-mobile-shell .tags-view-container,body.dt-mobile-shell .drawer-bg{display:none!important}
/* Phone pages use the bottom bar instead of the top-left menu/title pill. */
body.dt-mobile-shell .ma-header{display:none!important}
body.dt-mobile-shell .ma-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.dt-mobile-shell .ma-menu-toggle,body.dt-mobile-shell .ma-auth-back{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:10px;border:0;border-radius:50%;color:var(--ma-ink);background:transparent;font:inherit;text-decoration:none;cursor:pointer}
body.dt-mobile-shell .ma-auth-back{display:none;font-size:28px;line-height:1}
body.dt-mobile-shell .ma-header svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
body.dt-mobile-shell .ma-nav{position:fixed;inset:auto env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px);z-index:3000;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));height:var(--ma-nav-height);padding:5px 8px calc(5px + env(safe-area-inset-bottom,0px));background:var(--ma-bg);border-top:1px solid var(--ma-line)}
body.dt-mobile-shell .ma-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:48px;border-radius:14px;color:var(--ma-muted);text-decoration:none;font-size:11px;font-weight:600}
body.dt-mobile-shell .ma-nav a[aria-current=page]{color:var(--ma-blue);background:#2388f817}
body.dt-mobile-shell .ma-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
/* Orders and publishing share one bottom entry and an in-page switch. */
body.dt-mobile-shell .ma-order-actions{position:fixed;top:calc(8px + var(--ma-safe-top));left:calc(12px + env(safe-area-inset-left,0px));z-index:2450;display:flex;gap:4px;padding:4px;border:1px solid var(--ma-line);border-radius:14px;background:var(--ma-bg);box-shadow:0 3px 14px #142b4919}
body.dt-mobile-shell .ma-order-actions a{display:flex;align-items:center;justify-content:center;gap:6px;min-width:90px;min-height:40px;padding:0 12px;border-radius:10px;color:var(--ma-muted);text-decoration:none;font:600 13px system-ui}
body.dt-mobile-shell .ma-order-actions a[aria-current=page]{color:var(--ma-blue);background:#2388f817}
body.dt-mobile-shell .ma-order-actions svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
body.dt-mobile-shell :is(button,a,input,select,summary):focus-visible{outline:3px solid var(--ma-blue);outline-offset:2px}
body.dt-mobile-shell [hidden]{display:none!important}
/* Align the original account dropdown with the fourth tab without moving its Vue DOM. */
body.dt-mobile-shell{--ma-account-width:calc((100vw - 16px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))/4);--ma-account-height:calc(var(--ma-nav-height) - 10px - env(safe-area-inset-bottom,0px))}
body.dt-mobile-shell .ma-account-slot{min-width:0}
body.dt-mobile-shell .ma-account-link{height:100%}
body.dt-mobile-shell .ma-account-link img{width:22px;height:22px}
body.dt-mobile-shell #app :is(.fixed-header,.dt-public-account){position:fixed!important;inset:auto calc(8px + env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) auto!important;width:var(--ma-account-width)!important;height:var(--ma-account-height)!important;background:transparent!important;z-index:3100!important;transform:none!important}
body.dt-mobile-shell #app :is(.fixed-header,.dt-public-account) .navbar{display:block!important;width:100%!important;height:100%!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
body.dt-mobile-shell #app .navbar>:not(.right-menu),body.dt-mobile-shell #app .navbar .right-menu>:not(.avatar-container){display:none!important}
body.dt-mobile-shell #app .navbar .right-menu,body.dt-mobile-shell #app .navbar .avatar-container,body.dt-mobile-shell #app .navbar .avatar-wrapper{display:flex!important;align-items:center;justify-content:center;flex-direction:column;width:100%!important;height:100%!important;float:none!important;padding:0!important;margin:0!important;right:0!important;gap:3px!important;border:0!important;border-radius:14px!important;background:transparent!important;box-shadow:none!important;position:static!important;color:var(--ma-muted)!important}
body.dt-mobile-shell #app .navbar .avatar-wrapper::after{content:'Account';font:600 11px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
body.dt-mobile-shell #app .navbar .user-avatar{width:22px!important;height:22px!important}
body.dt-mobile-account #app .navbar .avatar-wrapper{color:var(--ma-blue)!important;background:#2388f817!important}
body.dt-mobile-shell #app .navbar .user-nickname{display:none!important}
body.dt-mobile-shell .dt-account-dropdown .el-dropdown-menu__item{min-height:44px;font-size:14px}
body.dt-mobile-shell .dt-account-dropdown{z-index:4200!important;max-width:calc(100vw - 24px)}
body.dt-mobile-shell .ma-menu[open]{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,560px);max-height:calc(100dvh - var(--ma-top));padding:0;border:1px solid var(--ma-line);border-radius:22px 22px 0 0;background:var(--ma-bg);color:var(--ma-ink);box-shadow:0 -8px 40px #102d4326;overflow:hidden}
body.dt-mobile-shell .ma-menu::backdrop{background:#102d4355}
body.dt-mobile-shell .ma-menu>header{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;border-bottom:1px solid var(--ma-line)}
body.dt-mobile-shell .ma-menu>header button{width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--ma-ink);font-size:25px;cursor:pointer}
body.dt-mobile-shell .ma-menu-content{max-height:calc(100dvh - var(--ma-top) - 64px);overflow:auto;overscroll-behavior:contain;padding:0 12px calc(12px + env(safe-area-inset-bottom,0px))}
body.dt-mobile-shell .ma-menu section{padding:6px 0;border-bottom:1px solid var(--ma-line)}
body.dt-mobile-shell .ma-menu section:last-child{border:0}
body.dt-mobile-shell .ma-menu section :is(a,button){display:flex;align-items:center;min-height:48px;width:100%;padding:12px;border:0;border-radius:10px;background:transparent;color:var(--ma-ink);text-decoration:none;text-align:left;font:14px/1.4 system-ui;cursor:pointer}
body.dt-mobile-shell .ma-menu section :is(a,button):hover{background:#2388f812}
body.dt-mobile-shell .ma-menu button:disabled{opacity:.45;cursor:default}
/* A dialog always covers the bottom navigation, while transient dropdowns remain usable. */
body.dt-mobile-shell .el-overlay{z-index:4500!important}
body.dt-mobile-shell :is(.el-dialog,.el-message-box){width:min(560px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px);margin:12px auto!important;overflow:auto;border-radius:16px}
body.dt-mobile-shell .el-popper{max-width:calc(100vw - 24px);z-index:4600!important}
body.dt-mobile-shell :is(.el-input__inner,.el-select__input,textarea){font-size:16px!important}
body.dt-mobile-shell .fade-transform-enter-active,body.dt-mobile-shell .fade-transform-leave-active{transition:none!important}
body.dt-mobile-shell .fade-transform-leave-active{display:none!important}
/* Phone account/management content scrolls as one column; wide tables scroll inside their own frame. */
body.dt-mobile-shell:not(.dt-mobile-app):not(.dt-mobile-auth) #app .app-wrapper{--dt-rail-width:0px;min-width:0;width:100%;height:100dvh}
body.dt-mobile-shell:not(.dt-mobile-app):not(.dt-mobile-auth) #app .main-container{margin:0!important;width:100%!important;min-width:0;height:100dvh;overflow:hidden}
body.dt-mobile-shell:not(.dt-mobile-app):not(.dt-mobile-auth) #app .app-main{height:100dvh!important;min-height:0!important;padding:var(--ma-top) 12px calc(var(--ma-nav-height) + 16px)!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain}
body.dt-mobile-shell:not(.dt-mobile-app) .app-container{padding:12px 0!important}
body.dt-mobile-account .app-container>.el-row{display:flex;flex-direction:column;margin:0!important;gap:14px}
body.dt-mobile-account .app-container>.el-row>.el-col{width:100%!important;max-width:100%!important;flex:0 0 100%!important;padding:0!important}
body.dt-mobile-shell:not(.dt-mobile-app) .el-card{max-width:100%;min-width:0;border-radius:14px;margin-bottom:14px}
body.dt-mobile-shell:not(.dt-mobile-app) .el-card__body{padding:16px}
body.dt-mobile-shell:not(.dt-mobile-app) .el-form--inline{display:flex;flex-wrap:wrap;gap:10px}
body.dt-mobile-shell:not(.dt-mobile-app) .el-form--inline .el-form-item{width:100%;margin:0!important;flex:1 0 100%}
body.dt-mobile-shell:not(.dt-mobile-app) .el-form-item__content{min-width:0}
body.dt-mobile-shell:not(.dt-mobile-app) .el-form-item__content :is(.el-input,.el-select,.el-date-editor){max-width:100%;width:100%!important}
body.dt-mobile-shell:not(.dt-mobile-app) :is(.el-input__wrapper,.el-select__wrapper,.el-button){min-height:44px}
body.dt-mobile-shell:not(.dt-mobile-app) .el-table{max-width:100%;overflow:auto}
body.dt-mobile-shell:not(.dt-mobile-app) .pagination-container{height:auto!important;min-height:56px;padding:12px 0!important}
body.dt-mobile-shell:not(.dt-mobile-app) .el-pagination{flex-wrap:wrap;justify-content:flex-start;gap:6px}
body.dt-mobile-shell:not(.dt-mobile-app) .el-pagination__jump{margin-left:0!important}
body.dt-mobile-shell:not(.dt-mobile-app) .el-tabs__item{height:44px}
body.dt-mobile-shell:not(.dt-mobile-app) .el-row:has(>.el-col>.el-button){display:flex;flex-wrap:wrap;gap:8px;margin:12px 0!important}
/* Login/register share the same navigation and fit the smallest phones. */
body.dt-mobile-auth .ma-menu-toggle{display:none}
body.dt-mobile-auth .ma-auth-back{display:grid}
body.dt-mobile-auth #app{overflow-y:auto!important;overscroll-behavior:contain}
body.dt-mobile-auth :is(.login,.register){display:flex;flex-direction:column;justify-content:flex-start!important;align-items:center;min-height:100dvh;height:auto!important;padding:calc(var(--ma-top) + 24px) 16px calc(var(--ma-nav-height) + 20px);background-image:none!important;background:inherit!important}
body.dt-mobile-auth :is(.login-form,.register-form){width:min(100%,420px)!important;max-width:100%;padding:24px 20px 20px!important;border:1px solid var(--ma-line);border-radius:20px!important;background:var(--ma-bg)!important;color:var(--ma-ink);box-shadow:0 6px 28px #1632470d}
body.dt-mobile-auth .title{color:var(--ma-ink)!important;font-size:23px;line-height:1.25;margin-bottom:12px!important}
body.dt-mobile-auth .ma-auth-note{margin:0 0 24px;color:var(--ma-muted);font-size:14px;line-height:1.5;text-align:center}
body.dt-mobile-auth .el-form-item{margin-bottom:22px}
body.dt-mobile-auth .el-input__wrapper{min-height:48px;background:var(--ma-bg);border-radius:10px}
body.dt-mobile-auth :is(.login-form,.register-form) .el-button{height:48px!important;min-height:48px;border-radius:12px;font-size:16px}
body.dt-mobile-auth :is(.login-code,.register-code){width:33%;height:48px;display:flex;align-items:center;justify-content:flex-end}
body.dt-mobile-auth :is(.login-code-img,.register-code-img){max-width:100%;padding-left:6px;object-fit:contain}
body.dt-mobile-auth :is(.el-login-footer,.el-register-footer){position:static!important;height:auto!important;line-height:1.5!important;color:var(--ma-muted)!important;padding:20px 8px 0;max-width:100%;font-size:11px}
body.dt-mobile-auth .el-form-item__error{font-size:12px}
body.dt-mobile-auth .el-checkbox{min-height:44px}
/* Forms get a useful scroll area above the keyboard. */
body.dt-mobile-publish{--ma-map-height:clamp(150px,34dvh,320px)}
body.dt-mobile-publish #app .publish-company-container>.map,body.dt-mobile-publish #app .publish-company-container .map>.map-card,body.dt-mobile-publish .publish-company-container .map-container{height:var(--ma-map-height)!important}
body.dt-mobile-publish .ma-publish-tabs{top:var(--ma-map-height);height:60px;padding:8px 12px}
body.dt-mobile-publish .ma-publish-tabs :is(button,select){min-height:44px}
body.dt-mobile-publish .publish-company-container :is(.form-float-panel,.info-panel){top:calc(var(--ma-map-height) + 60px)!important;bottom:var(--ma-nav-height)!important}
body.dt-mobile-shell[data-ma-keyboard=true]{--ma-nav-height:0px}
body.dt-mobile-shell[data-ma-keyboard=true] .ma-nav{display:none!important}
body.dt-mobile-shell[data-ma-keyboard=true] #app :is(.fixed-header,.dt-public-account){display:none!important}
body.dt-mobile-publish[data-ma-keyboard=true]{--ma-map-height:100px}
/* Exactly one optional map panel is shown above the common navigation. */
body.dt-mobile-plan .map:is([data-mn-layers=true],[data-mn-environment=true]) .overlay.left{visibility:hidden!important;pointer-events:none!important}
html body.dt-mobile-plan.dt-mobile-navigation .map[data-mn-layers=true] .layer-switcher-wrapper,html body.dt-mobile-plan.dt-mobile-navigation.dt-navigation-map .map[data-mn-environment=true]>.overlay.right{display:block!important;position:fixed!important;inset:calc(var(--ma-top) + 54px) 12px calc(var(--ma-nav-height) + 12px)!important;width:auto!important;height:auto!important;max-height:none!important;overflow:auto!important;z-index:3400;background:var(--ma-bg)!important;color:var(--ma-ink)!important;border-radius:16px;padding:12px!important}
body.dt-mobile-plan .mn-map-tools{z-index:2200}
body.dt-mobile-cockpit .map:is(.cpd-layers-open,.cpd-details-open,.cpd-environment-open) :is(.cpd-current,.cpd-upcoming,.cpd-map-actions){visibility:hidden!important;pointer-events:none!important}
html body.dt-mobile-cockpit .map.cpd-layers-open .layer-switcher-wrapper,html body.dt-mobile-cockpit .map.cpd-details-open>.overlay.left,html body.dt-mobile-cockpit .map.cpd-environment-open>.overlay.right{display:block!important;position:fixed!important;inset:calc(var(--ma-top) + 54px) 12px calc(var(--ma-nav-height) + 12px)!important;width:auto!important;height:auto!important;max-height:none!important;overflow:auto!important;z-index:3400;transform:none!important;border:1px solid var(--ma-line);border-radius:16px;background:var(--ma-bg)!important;color:var(--ma-ink)!important;padding:12px!important}
body.dt-mobile-cockpit .cpd-current{overflow:auto!important;max-height:min(190px,28dvh)!important}
body.dt-mobile-cockpit .cpd-detail-dialog{max-width:calc(100vw - 24px)!important;width:min(560px,calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;overflow:auto}
body.dt-mobile-app .info-panel[data-v-53e610ab]{bottom:calc(var(--ma-nav-height) + 12px)!important;max-height:calc(100dvh - var(--ma-top) - var(--ma-nav-height) - 24px)!important}
@media(orientation:landscape) and (max-height:500px){
 body.dt-mobile-shell{--ma-nav-height:52px;--ma-top:calc(64px + var(--ma-safe-top))}
 body.dt-mobile-plan{--mn-top-height:calc(116px + var(--ma-safe-top))}
 body.dt-mobile-shell .ma-nav{height:var(--ma-nav-height)}
 body.dt-mobile-shell .ma-nav a{flex-direction:row;gap:7px;min-height:40px}
 body.dt-mobile-publish{--ma-map-height:100dvh}
 body.dt-mobile-publish #app .publish-company-container>.map,body.dt-mobile-publish #app .publish-company-container .map>.map-card{width:46vw!important}
 body.dt-mobile-publish .ma-publish-tabs{inset:var(--ma-top) 0 auto 46vw;border-radius:14px 0 0 0}
 body.dt-mobile-publish .publish-company-container :is(.form-float-panel,.info-panel){top:calc(var(--ma-top) + 60px)!important;left:46vw!important}
 body.dt-mobile-orders #app .map>.map-card,body.dt-mobile-orders #app .map-container{height:calc(100dvh - var(--ma-nav-height))!important;width:46vw!important}
 html body.dt-mobile-orders #app .dashboard .map>.overlay.right{inset:var(--ma-top) 0 var(--ma-nav-height) 46vw!important;width:54vw!important;border-radius:16px 0 0 0}
 body.dt-mobile-auth :is(.login,.register){padding-top:calc(var(--ma-top) + 12px)}
}
@media(max-width:360px){body.dt-mobile-shell .ma-header{font-size:14px}body.dt-mobile-auth :is(.login-form,.register-form){padding:20px 16px!important}body.dt-mobile-orders .header-controls{gap:4px}body.dt-mobile-orders .header-controls .el-checkbox__label{padding-left:4px}}
@media(prefers-reduced-motion:reduce){body.dt-mobile-shell *{scroll-behavior:auto!important;transition:none!important}}
/* Optional panels replace the port bar and route sheet as one surface. */
html body.dt-mobile-plan.dt-mobile-navigation .map:is([data-mn-layers=true],[data-mn-environment=true]) .overlay.left *{visibility:hidden!important}
html body.dt-mobile-plan.dt-mobile-navigation .map:is([data-mn-layers=true],[data-mn-environment=true]) :is(.rp-ports,.mn-detail-ports,.mn-route-facts,.mn-map-tools){display:none!important}
html body.dt-mobile-plan.dt-mobile-navigation.dt-navigation-map .map[data-mn-environment=true]>.overlay.right.dt-environment-drawer{background:var(--ma-bg)!important;opacity:1!important;visibility:visible!important;transform:none!important;backdrop-filter:none!important;pointer-events:auto!important}
html body.dt-mobile-plan.dt-mobile-navigation .map[data-mn-layers=true] .layer-switcher-wrapper .el-checkbox-group{align-items:stretch!important}
html body.dt-mobile-plan.dt-mobile-navigation .map[data-mn-layers=true] .layer-switcher-wrapper .el-checkbox{justify-content:flex-start!important;width:100%;min-height:44px}
/* Let short layer lists leave the map visible; longer lists still scroll. */
html body.dt-mobile-plan.dt-mobile-navigation .map[data-mn-layers=true] .layer-switcher-wrapper{bottom:auto!important;height:auto!important;max-height:min(60dvh,calc(100dvh - var(--ma-top) - var(--ma-nav-height) - 78px))!important}
body.dt-mobile-auth .el-form-item__content:has(>.login-code),body.dt-mobile-auth .el-form-item__content:has(>.register-code){display:flex;flex-wrap:nowrap;gap:8px}
body.dt-mobile-auth .el-form-item__content:has(>.login-code)>.el-input,body.dt-mobile-auth .el-form-item__content:has(>.register-code)>.el-input{width:calc(100% - 92px)!important;flex:1;min-width:0}
body.dt-mobile-auth :is(.login-code,.register-code){width:84px;flex:0 0 84px}

body.dt-mobile-shell .cpd-detail-dialog [data-detail-close]{min-width:44px;min-height:44px}
html body.dt-mobile-plan.dt-mobile-navigation .map[data-side-information-stage=weather][data-mn-environment=true]>.overlay.right.dt-environment-drawer{bottom:auto!important;max-height:calc(100dvh - var(--ma-top) - var(--ma-nav-height) - 78px)!important}
html body.dt-mobile-shell .dt-endpoint-weather .dt-ew-card{grid-template-columns:1fr;gap:12px}
html body.dt-mobile-shell .dt-endpoint-weather .dt-ew-main{display:grid;grid-template-columns:1fr auto;gap:4px 12px}
html body.dt-mobile-shell .dt-endpoint-weather .dt-ew-temp{grid-column:2;grid-row:1/4;font-size:26px}
html body.dt-mobile-shell .dt-endpoint-weather .dt-ew-f{padding-left:0;font-size:12px}
html body.dt-mobile-shell .dt-endpoint-weather :is(.dt-ew-role,.dt-ew-place){font-size:13px}
html body.dt-mobile-shell .dt-endpoint-weather .dt-ew-grid{gap:8px}
html body.dt-mobile-shell .dt-endpoint-weather .dt-ew-stat{padding:10px;gap:8px}
html body.dt-mobile-shell .dt-endpoint-weather .dt-ew-stat .dt-ew-label{font-size:12px}
html body.dt-mobile-shell .dt-endpoint-weather .dt-ew-stat strong{font-size:15px}
html body.dt-mobile-shell .dt-endpoint-weather .dt-ew-stat .dt-ew-sub{font-size:11px;line-height:1.5}
/* Override the desktop rail's account anchor on all phone map pages. */
html body.dt-mobile-shell #app .app-wrapper.dt-map-route .dt-public-account{position:fixed!important;top:auto!important;right:calc(8px + env(safe-area-inset-right,0px))!important;bottom:calc(5px + env(safe-area-inset-bottom,0px))!important;left:auto!important;width:var(--ma-account-width)!important;height:var(--ma-account-height)!important;transform:none!important;z-index:3100!important}
@media(orientation:landscape) and (max-height:500px){body.dt-mobile-shell #app .navbar .avatar-wrapper{flex-direction:row;gap:7px!important}}
@media(orientation:landscape) and (max-height:500px){
 html body.dt-mobile-plan.dt-mobile-navigation .rp .rp-ports,html body.dt-mobile-plan.dt-mobile-navigation .mn-detail-ports{top:var(--ma-top)!important;left:12px!important;right:auto!important;width:calc(50vw - 24px)!important}
 html body.dt-mobile-plan.dt-mobile-navigation .map .overlay.left,html body.dt-mobile-plan.dt-mobile-navigation .map.vs-mounted .overlay.left:has(.route-planner-host){left:auto!important;right:12px!important;bottom:calc(var(--ma-nav-height) + 12px)!important;width:calc(50vw - 24px)!important;border-radius:18px!important}
 html body.dt-mobile-plan.dt-mobile-navigation .map:is([data-mn-panel=settings],[data-mn-panel=routes],[data-mn-panel=details]) .overlay.left{height:calc(100dvh - var(--ma-top) - var(--ma-nav-height) - 12px)!important;max-height:calc(100dvh - var(--ma-top) - var(--ma-nav-height) - 12px)!important}
 body.dt-mobile-plan .mn-map-tools{top:var(--ma-top);right:12px}
 body.dt-mobile-plan .mn-route-facts:not([hidden]){left:auto;right:12px;top:calc(var(--ma-top) + 54px);width:calc(50vw - 24px);gap:8px}
 body.dt-mobile-orders .ma-order-route:not([hidden]){right:56vw}
}

/* Selected map objects temporarily replace the route/position surfaces. */
html body.dt-mobile-app .map:has(>.info-panel[data-v-53e610ab][role=region]) :is(.overlay.left,.overlay.left *,.cpd-current,.cpd-upcoming,.cpd-map-actions){visibility:hidden!important;pointer-events:none!important}
html body.dt-mobile-app .map:has(>.info-panel[data-v-53e610ab][role=region]) :is(.rp-ports,.mn-route-facts,.mn-map-tools){display:none!important}
html body[class].dt-mobile-shell .el-card.info-panel[data-v-53e610ab][role=region]{left:12px!important;right:12px!important;bottom:calc(var(--ma-nav-height) + 12px)!important;top:auto!important;width:auto!important;max-width:none!important;transform:none!important;max-height:calc(100dvh - var(--ma-top) - var(--ma-nav-height) - 24px)!important}
html body[class].dt-mobile-shell .el-card.info-panel[data-v-53e610ab][role=region] .map-info-actions button{min-height:44px;padding:9px 10px!important}
body.dt-mobile-plan .mn-handle{min-height:44px;height:44px}
body.dt-mobile-plan .mn-actions button{white-space:nowrap}
body.dt-mobile-plan .mn-actions [data-mn-details]{flex:0 0 auto;min-width:116px}
/* A single disclosure below the phone's port bar replaces the old Plan route menu. */
.ma-plan-tools{display:none}
html body:is(.dt-mobile-plan,.dt-mobile-cockpit) .ma-header,html body.dt-mobile-plan .mn-map-tools{display:none!important}
body:is(.dt-mobile-plan,.dt-mobile-cockpit) .ma-plan-tools:not([hidden]){position:fixed;top:calc(var(--mn-top-height,200px) + 14px);right:calc(12px + env(safe-area-inset-right,0px));z-index:2900;display:flex;flex-direction:column;align-items:flex-end;width:198px;pointer-events:none}
body:is(.dt-mobile-plan,.dt-mobile-cockpit) .ma-plan-tools :is(button,a){position:relative;display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;padding:10px;border:1px solid var(--ma-line);border-radius:50%;background:var(--ma-bg);color:var(--ma-ink);box-shadow:0 2px 10px #17354818;cursor:pointer;pointer-events:auto;text-decoration:none}
body:is(.dt-mobile-plan,.dt-mobile-cockpit) .ma-plan-tools svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body:is(.dt-mobile-plan,.dt-mobile-cockpit) .ma-plan-tools-toggle[aria-expanded=true]{color:var(--ma-blue);border-color:var(--ma-blue)}
body:is(.dt-mobile-plan,.dt-mobile-cockpit) .ma-plan-tool-list{display:flex;flex-direction:column;align-items:flex-end;gap:8px;width:198px;margin-top:8px;max-height:max(96px,calc(100dvh - var(--mn-top-height,200px) - var(--mn-sheet-height,150px) - var(--ma-nav-height) - 76px));overflow-y:auto;overflow-x:hidden;scrollbar-width:none;pointer-events:none;overscroll-behavior:contain}
body:is(.dt-mobile-plan,.dt-mobile-cockpit) .ma-plan-tool-list::-webkit-scrollbar{display:none}
body:is(.dt-mobile-plan,.dt-mobile-cockpit) .ma-tool-label{position:absolute;right:52px;max-width:142px;padding:6px 10px;border:1px solid var(--ma-line);border-radius:14px;background:var(--ma-bg);color:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font:600 12px/1.4 system-ui;box-shadow:0 2px 10px #17354812;pointer-events:none}
body:is(.dt-mobile-plan,.dt-mobile-cockpit) .ma-plan-tools button:disabled{color:var(--ma-muted);opacity:.55;cursor:default}
html body.dt-mobile-plan .map:is([data-mn-layers=true],[data-mn-environment=true]) .ma-plan-tools,html body.dt-mobile-plan .map:has(>.info-panel[role=region]) .ma-plan-tools{display:none!important}
@media(orientation:portrait){body.dt-mobile-plan .mn-route-facts:not([hidden]){top:calc(var(--mn-top-height,200px) + 12px);right:74px;gap:8px}body.dt-mobile-plan .mn-route-facts>span{flex:1;min-width:0;max-width:none;padding:8px 10px}}
@media(orientation:landscape) and (max-height:500px){body.dt-mobile-plan .ma-plan-tools:not([hidden]){top:calc(var(--ma-safe-top) + 8px);right:12px}body.dt-mobile-plan .ma-plan-tool-list{max-height:calc(100dvh - var(--ma-nav-height) - var(--ma-safe-top) - 68px)}}
@media(orientation:landscape) and (max-height:500px){body.dt-mobile-plan .map:has(.ma-plan-tools-toggle[aria-expanded=true]) :is(.overlay.left,.overlay.left *,.mn-route-facts){visibility:hidden!important;pointer-events:none!important}}
/* Navigation keeps its source-status and camera actions as the unique direct entries. */
body.dt-mobile-cockpit .ma-plan-tools:not([hidden]){top:var(--ma-cockpit-tool-top,190px)}
body.dt-mobile-cockpit .ma-plan-tool-list{max-height:var(--ma-cockpit-tool-limit,300px)}

/* The phone legend participates in the sheet's layout, with one scrolling body. */
html body.dt-mobile-shell #app .map .layer-switcher-wrapper:has(.dt-map-legend){
 display:flex!important;flex-direction:column;bottom:auto!important;
 height:min(70dvh,calc(100dvh - var(--ma-top) - var(--ma-nav-height) - 78px))!important;
 max-height:calc(100dvh - var(--ma-top) - var(--ma-nav-height) - 78px)!important;
 overflow:hidden!important;
}
html body.dt-mobile-shell #app .layer-switcher-wrapper:has(.dt-map-legend) :is(.layer-switcher,.el-card__body,.dropdown-panel[data-layer-tab=Legend],.dt-map-legend){
 display:flex!important;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden!important;
}
html body.dt-mobile-shell #app .layer-switcher-wrapper .dropdown-panel[data-layer-tab=Legend]{
 position:static!important;inset:auto!important;margin:0!important;padding:0!important;width:100%!important;box-shadow:none!important;
}
html body.dt-mobile-shell #app .layer-switcher-wrapper:has(.dt-map-legend) .layer-tabs{flex:0 0 auto}
html body.dt-mobile-shell #app .layer-switcher-wrapper:has(.dt-map-legend) :is(.el-tabs__header,.el-tabs__nav-wrap,.el-tabs__nav-scroll,.el-tabs__nav){height:auto!important;min-height:44px!important}
html body.dt-mobile-shell #app .layer-switcher-wrapper:has(.dt-map-legend) .el-tabs__item{height:44px!important;line-height:44px!important}
html body.dt-mobile-shell #app .dt-legend-header{flex:0 0 auto}
html body.dt-mobile-shell #app .dt-legend-header input{height:44px}
html body.dt-mobile-shell #app .dt-legend-content{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
@media(orientation:landscape) and (max-height:500px){
 html body.dt-mobile-shell #app .map .layer-switcher-wrapper:has(.dt-map-legend){top:calc(var(--ma-safe-top) + 8px)!important;right:calc(90px + env(safe-area-inset-right,0px))!important;height:calc(100dvh - var(--ma-safe-top) - var(--ma-nav-height) - 20px)!important;max-height:calc(100dvh - var(--ma-safe-top) - var(--ma-nav-height) - 20px)!important}
 html body.dt-mobile-shell #app .dt-legend-header{display:flex;align-items:center;gap:10px;padding:8px 12px}
 html body.dt-mobile-shell #app .dt-legend-header h3{margin:0;white-space:nowrap}
 html body.dt-mobile-shell #app .dt-legend-header p{display:none}
 html body.dt-mobile-shell #app .dt-legend-header input{flex:1;min-width:0;width:auto}
 html body.dt-mobile-shell #app .layer-switcher-wrapper:has(.dt-map-legend) .el-tabs__nav{display:flex!important}
}
body.dt-mobile-cockpit .map:has(.ma-plan-tools-toggle[aria-expanded=true]) .cpd-map-actions{visibility:hidden!important;pointer-events:none!important}
html body.dt-mobile-cockpit .map:is(.cpd-layers-open,.cpd-details-open,.cpd-environment-open) .ma-plan-tools,html body.dt-mobile-cockpit .map:has(>.info-panel[role=region]) .ma-plan-tools{display:none!important}
@media(orientation:portrait) and (max-height:720px){body.dt-mobile-cockpit .map:has(.ma-plan-tools-toggle[aria-expanded=true]) :is(.cpd-current,.cpd-current *){visibility:hidden!important;pointer-events:none!important}body.dt-mobile-cockpit .ma-plan-tool-list{max-height:calc(100dvh - var(--ma-cockpit-tool-top,190px) - var(--ma-nav-height) - 64px)}}
@media(orientation:landscape) and (max-height:500px){body.dt-mobile-cockpit .ma-plan-tools:not([hidden]){top:calc(var(--ma-safe-top) + 8px);right:12px}body.dt-mobile-cockpit .ma-plan-tool-list{max-height:calc(100dvh - var(--ma-nav-height) - var(--ma-safe-top) - 68px)}body.dt-mobile-cockpit .map:has(.ma-plan-tools-toggle[aria-expanded=true]) :is(.cpd-current,.cpd-current *){visibility:hidden!important;pointer-events:none!important}}

/* The phone layer sheet shares one night palette, including its nested card. */
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper {
 border-color:var(--ma-line)!important;
 box-shadow:0 8px 24px #06172355!important;
}
html body.dark-water-theme.dt-mobile-cockpit #app .map.cpd-layers-open .layer-switcher-wrapper {
 position:fixed!important;inset:calc(var(--ma-top) + 54px) 12px auto!important;
 width:auto!important;max-width:none!important;height:auto!important;
 max-height:min(60dvh,calc(100dvh - var(--ma-top) - var(--ma-nav-height) - 78px))!important;
 transform:none!important;
}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper :is(.layer-switcher,.el-card__body,.layer-tabs,.dropdown-panel) {
 background:var(--ma-bg)!important;color:var(--ma-ink)!important;
 border:0!important;box-shadow:none!important;backdrop-filter:none!important;
}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper :is(.el-tabs__header,.el-tabs__nav-wrap,.el-tabs__nav-scroll,.el-tabs__nav) {
 height:auto!important;min-height:0!important;border:0!important;
}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper .el-tabs__header {margin:0!important}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper .el-tabs__nav-wrap {padding:0!important}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper .el-tabs__nav-wrap::after {display:none!important}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper :is(.el-tabs__nav-prev,.el-tabs__nav-next) {display:none!important}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper .el-tabs__nav {
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;
 width:100%!important;padding:4px;box-sizing:border-box;
 border-radius:12px;background:#0f2638!important;transform:none!important;
}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper .el-tabs__item {
 width:100%;min-width:0!important;height:44px!important;line-height:44px!important;
 padding:0 4px!important;border:0!important;border-radius:8px!important;
 background:transparent!important;color:var(--ma-muted)!important;
 box-shadow:none!important;backdrop-filter:none!important;font-size:12px!important;
 font-weight:500;white-space:nowrap;
}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper .el-tabs__item.is-active {
 background:#204d6b!important;color:#c5eaff!important;font-weight:650;
}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper .el-tabs__item:focus-visible {
 outline:2px solid #78c8ff;outline-offset:-2px;
}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper .dropdown-panel:not([data-layer-tab=Legend]) {
 padding:8px 2px 0!important;border-radius:0!important;
}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper :is(.el-checkbox,.el-radio) {
 min-height:44px!important;padding:6px 10px!important;border-radius:8px;
}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper .el-checkbox-group {align-items:stretch!important}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper .el-checkbox {width:100%;justify-content:flex-start!important}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper :is(.el-checkbox__label,.el-radio__label) {color:var(--ma-ink)!important;font-size:13px!important}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper :is(.el-checkbox__inner,.el-radio__inner) {
 background:#102737!important;border-color:#6d93ac!important;
}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper :is(.el-checkbox__input.is-checked .el-checkbox__inner,.el-checkbox__input.is-indeterminate .el-checkbox__inner,.el-radio__input.is-checked .el-radio__inner) {
 background:var(--ma-blue)!important;border-color:var(--ma-blue)!important;
}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper :is(.el-checkbox,.el-radio):has(input:focus-visible) {outline:2px solid #78c8ff;outline-offset:-2px}
html body.dark-water-theme.dt-mobile-shell #app .layer-switcher-wrapper :is(.el-checkbox.is-disabled,.el-radio.is-disabled) {opacity:.5}
