/* Shared studio design contract. All editor adapters provide the same stage,
   tool and disclosure markup; only the available controls differ. */
body.film-studio-active {
  --studio-ink:#203b35; --studio-muted:#697c75; --studio-accent:#18775b;
  --studio-line:#dfe8e3; --studio-soft:#edf5f0; --studio-surface:#f7f9f7;
}
.editor-sheet-label{display:none}
body.film-studio-active .studio-appbar{border-color:var(--studio-line);box-shadow:0 2px 12px #203b3504}
body.film-studio-active .studio-project{font-weight:600;letter-spacing:-.15px}
body.film-studio-active .studio-export-open{background:var(--studio-accent);border-radius:10px;box-shadow:0 2px 4px #14453215}
body.film-studio-active .studio-format-picker summary{border-radius:10px;border-color:var(--studio-line)}
body.film-studio-active:not(.export-recording):not(.render-job-active) .map-container{background:#f0f3f0!important}
body.film-studio-active:not(.export-recording):not(.render-job-active) #map{border-radius:12px!important;box-shadow:0 0 0 1px #203b3510,0 8px 28px #203b3508}
/* One compact section switcher for General, film chapters and journey legs. */
body.film-studio-active #editorSidebar #gpxStudio .studio-navigation{display:block;position:static;flex:none;background:white;border-bottom:1px solid var(--studio-line)}
body.film-studio-active #editorSidebar #gpxStudio .studio-stages{position:static;display:flex;align-items:stretch;gap:4px;padding:10px;background:white;border:0}
body.film-studio-active #editorSidebar #gpxStudio .studio-stage{position:relative;flex:1;min-width:0;border:1px solid transparent;border-radius:9px;background:#f2f5f3;margin:0}
body.film-studio-active #editorSidebar #gpxStudio .studio-stage::before,
body.film-studio-active #editorSidebar #gpxStudio .studio-stage::after{content:none}
body.film-studio-active #editorSidebar #gpxStudio .studio-stage:has([data-studio-part=general]),
body.film-studio-active #editorSidebar #gpxStudio .studio-stage:has([data-zoom-part=general]),
body.film-studio-active #editorSidebar #gpxStudio .studio-general-stage{margin-right:6px}
body.film-studio-active #editorSidebar #gpxStudio .studio-stage.is-selected{background:#203f35;border-color:#203f35;box-shadow:0 2px 4px #203f3512}
body.film-studio-active #editorSidebar #gpxStudio .studio-stage > button{min-height:40px;padding:8px 5px;color:#52675e;font:600 12px/1.3 'DM Sans',sans-serif;white-space:nowrap;border-radius:8px}
body.film-studio-active #editorSidebar #gpxStudio .studio-stage.is-selected > button{color:white}
body.film-studio-active #editorSidebar #gpxStudio .studio-stage.is-off > button::after{content:none}
body.film-studio-active #editorSidebar #gpxStudio .studio-stage.is-off:not(.is-selected) > button{color:#73847b}
body.film-studio-active #editorSidebar #gpxStudio .studio-enable{min-width:22px;min-height:40px;padding:6px 6px 6px 0}
body.film-studio-active #editorSidebar #gpxStudio .studio-enable input{width:13px;height:13px;accent-color:#298766}
body.film-studio-active #editorSidebar #gpxStudio .is-selected .studio-enable input{accent-color:white}
body.film-studio-active #editorSidebar #gpxStudio .studio-leg-tabs{gap:4px;align-items:stretch}
body.travel-studio-active #editorSidebar #gpxStudio .studio-leg-tabs .studio-stage{flex:1 0 65px}
body.travel-studio-active #editorSidebar #gpxStudio .studio-general-stage{flex:0 0 72px}
body.film-studio-active #editorSidebar #gpxStudio .studio-all-legs{border:0;border-radius:8px;background:transparent;color:var(--studio-accent);min-height:40px;padding:5px;font-weight:600}
/* The selected tool is identical in every editor. */
body.film-studio-active #editorSidebar #gpxStudio .studio-tools{background:#fff;border-color:var(--studio-line);padding:12px 7px;gap:7px}
body.film-studio-active #editorSidebar #gpxStudio .studio-tools button{position:relative;min-height:60px;gap:6px;padding:8px 2px;border:1px solid transparent;border-radius:10px;background:transparent;color:#697b73;font:500 11px/1.3 'DM Sans',sans-serif}
body.film-studio-active #editorSidebar #gpxStudio .studio-tools button[aria-pressed=true]{background:#e6f2eb;border-color:#d2e7db;color:#16634b;font-weight:700}
body.film-studio-active #editorSidebar #gpxStudio .studio-tools svg{width:20px;height:20px}
body.film-studio-active #editorSidebar #gpxStudio .studio-scroll{background:var(--studio-surface);padding:18px 14px 28px;scrollbar-color:#ccd9d1 transparent}
body.film-studio-active #editorSidebar #gpxStudio .studio-scope{color:#627a6e;font-size:10px;font-weight:600;letter-spacing:.75px}
body.film-studio-active #editorSidebar #gpxStudio .studio-heading{margin-bottom:14px}
body.film-studio-active #editorSidebar #gpxStudio .studio-travel-notice{background:transparent;border:0;padding:0;margin:0 0 14px;color:var(--studio-muted);font-size:12px}
/* Shared disclosure component, including existing solar and summary groups. */
body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group){width:100%;min-width:0;margin:0 0 12px;border:1px solid var(--studio-line);border-radius:12px;background:#fff;box-shadow:0 2px 3px #203b3503}
body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group) > summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;padding:12px 14px;list-style:none;cursor:pointer;color:var(--studio-ink);border-radius:12px;background:white;border:0}
body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group) > summary::-webkit-details-marker{display:none}
body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group) > summary > span:first-child{display:grid;gap:3px;min-width:0}
body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group) > summary strong{font-size:13px;font-weight:700;letter-spacing:-.1px}
body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group-value,.solar-group-value){font-size:11px;line-height:1.45;color:var(--studio-muted);font-weight:400;overflow-wrap:anywhere}
body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group)[open] > summary{background:#fff;border-bottom:1px solid #edf1ee;border-radius:12px 12px 0 0}
body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group-chevron,.solar-group-chevron){flex:none;width:7px;height:7px;border-right:1.5px solid #7b9286;border-bottom:1.5px solid #7b9286;transform:rotate(45deg);margin:0 3px 4px 0}
body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group,.solar-group)[open] > summary :is(.studio-group-chevron,.solar-group-chevron){transform:rotate(225deg);margin-top:5px}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-group-body,.solar-group-body){display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:14px!important;min-width:0}
body.film-studio-active #editorSidebar #gpxStudio .studio-group-body > *{min-width:0;max-width:100%}
body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group,.solar-group) summary:hover{background:#f6faf7}
body.film-studio-active #editorSidebar #gpxStudio :is(.studio-tools button,.studio-stage > button,summary):focus-visible{outline:2px solid #27966e;outline-offset:-3px}
/* Native controls are reused so settings and preview behavior stay intact. */
body.film-studio-active #editorSidebar #gpxStudio :is(select,input[type=number],input[type=text],input[type=date],input[type=time]){border:1px solid #d9e4dd!important;border-radius:8px!important;background:#fcfdfc!important;color:var(--studio-ink);min-height:38px;box-shadow:0 1px 2px #203b3503;font-family:inherit}
body.film-studio-active #editorSidebar #gpxStudio :is(input,select):focus-visible{outline:2px solid #298866;outline-offset:2px}
body.film-studio-active #editorSidebar #gpxStudio input[type=range]{accent-color:var(--studio-accent);cursor:pointer}
body.film-studio-active #editorSidebar #gpxStudio :is(.marker-choice-btn,.map-style-btn,.zoom-segment-btn,.gpx-camera-type-btn){border-radius:8px!important;min-height:38px;font-size:12px}
body.film-studio-active #editorSidebar #gpxStudio :is(.marker-choice-btn,.map-style-btn,.zoom-segment-btn,.gpx-camera-type-btn).active{background:#eaf5ee!important;color:#17664b!important;border-color:#a8cfba!important;box-shadow:none!important}
body.film-studio-active #editorSidebar #gpxStudio .studio-leg-group .travel-timing-row{padding:0!important;margin:0!important;border:0!important;background:none!important}
body.film-studio-active #editorSidebar #gpxStudio .studio-leg-group .travel-vehicle-controls{display:grid;grid-template-columns:1fr auto;gap:8px}
body.film-studio-active #editorSidebar #gpxStudio .studio-leg-group .travel-vehicle-controls input{grid-row:2;grid-column:1/-1;width:100%!important}
body.film-studio-active #editorSidebar #gpxStudio .studio-leg-group .travel-vehicle-controls output{grid-row:1;grid-column:2;color:var(--studio-accent);font-weight:600}
body.film-studio-active #editorSidebar #gpxStudio.studio-grouped :is(#zoomMotionBlurCard,#zoomMarkerLookCard) > .zoom-setting-card-header{display:none!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #zoomMotionBlurCard{margin-top:12px!important}
/* Route visibility toggle lives in the native header; keep it available. */
body.travel-studio-active #editorSidebar #gpxStudio #travelRouteLineCard > .travel-setting-card-header{padding:0 0 10px}
body.film-studio-active #editorSidebar #gpxStudio .solar-organized{gap:0}
/* Same rounded clip treatment; duration geometry remains unchanged. */
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-track{border-radius:9px;overflow:hidden}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment{border-radius:0!important}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment.studio-selected{box-shadow:inset 0 2px #278564!important;border-color:transparent!important}
@media(max-width:900px){
 body.film-studio-active #editorSidebar #gpxStudio .studio-stages{padding:6px 8px;gap:4px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-stage > button{min-height:44px;padding:6px 4px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-enable{min-height:44px;min-width:22px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-tools{padding:4px 8px;gap:3px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-tools button{flex-direction:row;min-height:44px;gap:5px;padding:6px 3px;font-size:11px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-tools svg{width:17px;height:17px;flex:none}
 body.film-studio-active #editorSidebar #gpxStudio .studio-scroll{padding:10px 12px 24px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-heading{margin-bottom:10px}
 body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group){margin-bottom:10px}
 body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group) > summary{min-height:48px;padding:10px 12px}
 body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group-body,.solar-group-body){padding:12px!important;gap:12px}
 body.film-studio-active #editorSidebar #gpxStudio :is(input:not([type=range]):not([type=checkbox]):not([type=radio]),select){font-size:16px;min-height:44px}
 body.film-studio-active #editorSidebar #gpxStudio :is(.marker-choice-btn,.map-style-btn,.zoom-segment-btn,.gpx-camera-type-btn){min-height:44px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-all-legs{min-height:44px}
}
@media(max-width:370px){body.film-studio-active #editorSidebar #gpxStudio .studio-tools button{flex-direction:column;gap:3px;font-size:10px}}
@media(prefers-reduced-motion:no-preference){body.film-studio-active #gpxStudio :is(.studio-stage,.studio-tools button){transition:background .15s,color .15s,border-color .15s}}
/* Setup screens stay focused; do not reveal the editing navigation early. */
body.film-studio-active:is(.gpx-route-setup,.gpx-route-placement,.travel-route-setup,.zoom-place-setup,.zoom-studio-placing) #editorSidebar #gpxStudio .studio-navigation{display:none!important}
/* Clear legacy panel backplates: the disclosure card owns its own surface. */
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group,.journey-card){border-radius:12px!important;background:#fff!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-controls,.gpx-editor-section-body,.zoom-editor-section-body,.travel-editor-section-body,.gpx-camera-cards,.gpx-look-cards,.zoom-setting-cards,.travel-setting-cards){background:transparent!important}
body.film-studio-active #editorSidebar #gpxStudio :is(.journey-card) > summary{background:#fff;border-bottom:1px solid #edf1ee;padding:12px 14px;font-size:13px}
body.film-studio-active #editorSidebar #gpxStudio :is(.zoom-camera-row label,.camera-row label,.zoom-editor-label,.toggle-label){font-size:12px!important}
body.film-studio-active #editorSidebar #gpxStudio .studio-leg-group{order:0}
body.film-studio-active #editorSidebar #gpxStudio .studio-leg-group:has(.is-transition){order:1}
body.film-studio-active #editorSidebar #gpxStudio .studio-leg-group .travel-leg-heading small{display:none}
body.film-studio-active #editorSidebar #gpxStudio .studio-line-visibility{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight:600}
@media(max-width:900px){body.film-studio-active #editorSidebar #gpxStudio .studio-tools:has(>button:nth-child(5)) button{flex-direction:column;gap:3px}}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio.studio-grouped #travelRouteLineCard > .travel-setting-card-header{display:none!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-panel-visible,.gpx-camera-card,.gpx-camera-card-body){background:transparent!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #guideSection{background:transparent!important}
body.film-studio-active #editorSidebar #gpxStudio #zoomKeyframeCard .studio-group-body > .zoom-control-block:has(.zoom-keyframe-switch){display:none!important}
/* Optional film sections: navigation reports status; activation lives in settings. */
body.film-studio-active #editorSidebar #gpxStudio .studio-stage > button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
body.film-studio-active #editorSidebar #gpxStudio .studio-stage-status{font-size:9px!important;line-height:1!important;font-weight:500!important;color:inherit!important;opacity:.8}
body.film-studio-active #editorSidebar #gpxStudio .studio-section-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;margin:0 0 14px;border:1px solid var(--studio-line);border-radius:12px;background:white}
body.film-studio-active #editorSidebar #gpxStudio .studio-section-toggle strong{display:block;font-size:13px;color:var(--studio-ink)}
body.film-studio-active #editorSidebar #gpxStudio .studio-section-toggle p{font-size:11px;line-height:1.5;color:var(--studio-muted);margin:4px 0 0}
body.film-studio-active #editorSidebar #gpxStudio .studio-section-toggle button{display:flex;align-items:center;justify-content:center;gap:8px;flex:none;min-width:82px;min-height:44px;border:1px solid #d7e2db;border-radius:9px;background:#f3f6f4;color:#52675e;font:600 12px/1.3 'DM Sans',sans-serif;cursor:pointer}
body.film-studio-active #editorSidebar #gpxStudio .studio-section-toggle button[aria-pressed=true]{background:#18775b;border-color:#18775b;color:white}
body.film-studio-active #editorSidebar #gpxStudio .studio-section-toggle button:focus-visible{outline:2px solid #298866;outline-offset:3px}
.studio-switch-track{position:relative;width:26px;height:16px;border-radius:20px;background:#c3d1c8}
.studio-switch-track::after{content:'';position:absolute;top:3px;left:3px;width:10px;height:10px;background:white;border-radius:50%}
[aria-pressed=true] > .studio-switch-track{background:#ffffff50}
[aria-pressed=true] > .studio-switch-track::after{left:13px}
body.film-studio-active #editorSidebar #gpxStudio .studio-time-help{margin:0;color:var(--studio-muted);font-size:11px;line-height:1.5}
@media(max-width:900px){body.film-studio-active #editorSidebar #gpxStudio .studio-section-toggle{padding:10px 12px;margin-bottom:10px}}

/* Keep the marker visibility control readable when the marker is hidden. */
body.zoom-studio-active #editorSidebar #gpxStudio #zoomMarkerLookCard.is-disabled .zoom-setting-card-body{opacity:1}
body.zoom-studio-active #editorSidebar #gpxStudio #zoomMarkerLookCard.is-disabled .studio-group-body > :not(.studio-line-visibility){opacity:.38}
/* Settings history shares the app bar; compact touch targets keep the preview clear. */
.studio-history{display:flex;align-items:center;gap:4px;margin-left:auto}
.studio-history[hidden]{display:none}
.studio-history button{width:36px;height:36px;padding:0;border:1px solid #d7e4de;border-radius:9px;background:#fff;color:#215f4d;font:24px/1 sans-serif;cursor:pointer}
.studio-history button:disabled{opacity:.35;cursor:default}
.studio-history button:focus-visible{outline:2px solid #278564;outline-offset:2px}
.studio-history-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:900px){.studio-history{gap:0}.studio-history button{width:36px;height:44px;border:0;background:transparent}.studio-appbar .studio-project{min-width:0;flex:1}.studio-appbar{gap:6px!important}.studio-history+.studio-format-picker{margin-left:0!important}}

.studio-history button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
@media(max-width:900px){
 body.film-studio-active:not(.landing-active) #editorTimeline .studio-transport{grid-template-columns:auto 1fr auto auto auto;column-gap:6px;grid-template-rows:44px 28px}
 .studio-transport .studio-history{grid-column:3;grid-row:1;margin:0}
 body.film-studio-active:not(.landing-active) #editorTimeline .studio-expand-preview{grid-column:4}
 body.film-studio-active:not(.landing-active) #editorTimeline .studio-timeline-toggle{grid-column:5}
}

/* Route overlay shares one full-frame canvas with the export artwork. */
body #map #routeDataOverlay { position:absolute; inset:0; width:100%; height:100%; max-width:none; transform:none; margin:0; filter:none; pointer-events:none; z-index:18; }
#routeOverlayCanvas { display:block; width:100%; height:100%; }
.route-overlay-theme-label { display:block; font-weight:600; margin:14px 0 8px; }
#routeOverlayTheme { width:100%; min-height:42px; padding:10px 12px; border:1px solid #d7e2dd; border-radius:9px; background:#fff; color:#203c32; font:inherit; }
.route-overlay-help { font-size:12px; line-height:1.5; color:#687b73; margin:10px 0 14px; }

.map-details-actions{display:flex;gap:8px;margin-bottom:8px}
.map-details-actions button{flex:1;min-height:38px;border:1px solid #d7e2dd;border-radius:8px;background:#fff;color:#226d53;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.map-details-option{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #e8eeeb;cursor:pointer}
.map-details-option strong{display:block;font-size:13px;font-weight:600}
.map-details-option small{display:block;font-size:11px;line-height:1.5;color:#718179;margin-top:3px}
.map-details-option input{width:18px;height:18px;flex:0 0 18px;accent-color:#268360;cursor:pointer}
.map-details-option:has(input:disabled),.map-details-actions button:disabled{opacity:.5;cursor:default}
.map-details-actions button:focus-visible,.map-details-option input:focus-visible{outline:2px solid #268360;outline-offset:3px}

/* Three primary movements fit one row; old Cinematic projects keep their choice. */
body.film-studio-active #editorSidebar #gpxStudio #gpxCameraTypeRow .marker-choice{display:grid!important;grid-auto-flow:row!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px}
body.film-studio-active #editorSidebar #gpxStudio #gpxCameraTypeRow .marker-choice:has([data-gpx-camera-type="cinematic"]:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.film-studio-active #editorSidebar #gpxStudio #gpxCameraTypeRow [data-gpx-camera-type="cinematic"][hidden]{display:none!important}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #gpxCameraTypeRow .marker-choice-btn{min-width:0;width:100%;padding-inline:2px!important;font-size:11px!important;white-space:nowrap!important}

/* Optional explanations stay available without pushing controls down the sheet. */
body.film-studio-active #gpxStudio .studio-help{margin:0;border:0;background:transparent;color:var(--studio-muted);font-size:12px;line-height:1.45}
body.film-studio-active #gpxStudio .studio-help > summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;font-weight:500;padding:0}
body.film-studio-active #gpxStudio .studio-help > summary::-webkit-details-marker{display:none}
body.film-studio-active #gpxStudio .studio-help > summary::before{content:'›';font-size:18px;transition:transform .15s}
body.film-studio-active #gpxStudio .studio-help[open] > summary::before{transform:rotate(90deg)}
body.film-studio-active #gpxStudio .studio-help > summary:focus-visible{outline:2px solid var(--studio-accent);outline-offset:2px}
body.film-studio-active #gpxStudio .studio-help p{margin:0 0 8px}
@media(max-width:900px){
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group){margin-bottom:8px}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group) > summary{padding:8px 10px}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-group-body,.solar-group-body){padding:10px!important;gap:10px}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .studio-section-toggle{padding:8px 10px;margin-bottom:8px}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .studio-section-toggle:has(button[aria-pressed=true]) p{display:none}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .solar-range-label{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;align-items:center}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .solar-range-label > output{grid-column:2;grid-row:1;text-align:right;white-space:nowrap}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .solar-range-label > input{grid-column:1/-1;min-width:0;width:100%;margin:0}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .solar-brightness{gap:10px}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .trip-summary-toggle{padding:10px}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .trip-summary-settings{gap:10px}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .journey-card{margin-top:10px;margin-bottom:10px}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .journey-body{padding:10px;gap:10px}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .journey-video-help{margin-bottom:10px;line-height:1.4}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .map-details-option{min-height:44px;padding:8px 0;box-sizing:border-box}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .map-details-actions button{min-height:44px}
}

@media(max-width:900px){
 body.film-studio-active:not(.gpx-route-setup):not(.gpx-route-placement):not(.travel-route-setup):not(.zoom-place-setup):not(.zoom-studio-placing) #editorSidebar #gpxStudio .studio-heading{margin-bottom:6px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-scope{margin-bottom:0}
 body.film-studio-active #editorSidebar #gpxStudio .solar-organized > .solar-status{padding:6px 10px;background:transparent;font-size:11px}
}

/* Presets stay quick to scan; the native picker allows any brand colour. */
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(#trailColorRow,#circleColorRow,#travelLineColorRow).color-choice-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important;gap:8px!important}
body.film-studio-active #editorSidebar #gpxStudio .color-choice-controls{display:grid;gap:10px;min-width:0;width:100%}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .color-choice-controls .color-choice{width:100%!important;justify-content:space-between!important}
body.film-studio-active #editorSidebar #gpxStudio .custom-color-control{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;padding:5px 8px;border:1px solid var(--studio-line);border-radius:8px;background:#fff;color:var(--studio-ink);font-size:12px;font-weight:500;cursor:pointer}
body.film-studio-active #editorSidebar #gpxStudio .custom-color-control.active{border-color:#a8cfba;background:#eaf5ee;color:#17664b}
body.film-studio-active #editorSidebar #gpxStudio .custom-color-control:focus-within{outline:2px solid var(--studio-accent);outline-offset:2px}
body.film-studio-active #editorSidebar #gpxStudio .custom-color-control:has(input:disabled){opacity:.45;cursor:not-allowed}
body.film-studio-active #editorSidebar #gpxStudio .custom-color-control input[type=color]{appearance:none;flex:none;width:32px!important;height:28px!important;min-height:28px!important;margin:0!important;padding:2px!important;border:1px solid #d6e2da!important;border-radius:7px!important;background:#fff;cursor:pointer}
body.film-studio-active #editorSidebar #gpxStudio .custom-color-control input[type=color]::-webkit-color-swatch-wrapper{padding:0}
body.film-studio-active #editorSidebar #gpxStudio .custom-color-control input[type=color]::-webkit-color-swatch{border:0;border-radius:4px}
@media(max-width:900px){body.film-studio-active #editorSidebar #gpxStudio .custom-color-control{min-height:44px}}
/* Six route colours need two touch-friendly rows on the narrowest phones. */
@media(max-width:370px){
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #cameraPanel :is(#trailColorRow,#circleColorRow).color-choice-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:stretch!important}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #cameraPanel :is(#trailColorRow,#circleColorRow) .color-choice{display:grid!important;grid-template-columns:repeat(3,44px)!important;justify-content:space-between!important;width:100%!important;gap:6px!important}
}

/* One typography scale for shared controls in all three editors. */
body.film-studio-active{--studio-font:'DM Sans',system-ui,sans-serif;--studio-label-size:12px;--studio-help-size:11px;--studio-title-size:13px}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(button,input,select,textarea,label,summary,p,small,output,strong){font-family:var(--studio-font)!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.camera-row label,.zoom-camera-row label,.editor-value-label,.solar-controls label,.travel-vehicle-controls label,.trip-summary-field,.gpx-camera-field label){font-size:var(--studio-label-size)!important;font-weight:500!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-control-hint,.studio-time-help,.camera-slider-caption,.zoom-editor-note,.zoom-camera-row > small,.zoom-control-block > small,.gpx-intro-start-controls > small,.travel-play-status,.journey-video-help,.journey-transition-help,.solar-note,.route-overlay-help){font-size:var(--studio-help-size)!important;line-height:1.45!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group,.journey-card) > summary{font-size:var(--studio-title-size);font-weight:600}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group,.journey-card) > summary strong{font-size:var(--studio-title-size);font-weight:700}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(output,.editor-value-unit){font-size:var(--studio-label-size)!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(select,input[type=number],input[type=text],input[type=date],input[type=time]){font-size:13px}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.map-style-btn,.marker-choice-btn,.zoom-segment-btn,.toggle-btn,.map-details-actions button,.editor-reset,.solar-reset-group){font-size:var(--studio-label-size)!important}
@media(max-width:900px){
 body.film-studio-active{--studio-help-size:12px}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;min-height:44px}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .toggle-btn{min-height:44px!important}
}

/* Card sections use the same disclosure cue as the map and camera groups. */
body.film-studio-active #editorSidebar #gpxStudio .trip-summary-group > summary::after{content:'';display:block;flex:none;box-sizing:border-box;width:8px;height:8px;margin:0 3px 4px 8px;border:solid #6b8477;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);pointer-events:none}
body.film-studio-active #editorSidebar #gpxStudio .trip-summary-group[open] > summary::after{transform:rotate(225deg);margin-top:5px;margin-bottom:0}
/* The TEST input theme otherwise removes focus outlines, even for keyboard users. */
html[data-dddmaps-test-theme] body.film-studio-active #editorSidebar #gpxStudio :is(input,textarea,select):focus-visible{outline:2px solid #237957!important;outline-offset:2px!important}
html[data-dddmaps-test-theme] body.film-studio-active #editorSidebar #gpxStudio :is(input[type=text],input[type=search],textarea):focus{border-color:#237957!important}
/* Compact fields must retain space for search and clear icons. The extra
   settings scope also wins over the mobile all-inputs padding rule. */
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #studioSettings .search-input-wrap:has(.search-icon) input.search-input{padding-left:38px!important;padding-right:48px!important}
body.film-studio-active #editorSidebar #gpxStudio #studioSettings .search-input-wrap > .search-icon{top:21px!important;left:12px!important;pointer-events:none}

/* Two compact camera views, with shared distance/tilt controls. */
body.film-studio-active #editorSidebar #gpxStudio .gpx-zoom-view{min-width:0;margin:0;padding:12px 0 0;border:0}
body.film-studio-active #editorSidebar #gpxStudio .gpx-zoom-view + .gpx-zoom-view{margin-top:18px;border-top:1px solid #dce6e1;padding-top:16px}
body.film-studio-active #editorSidebar #gpxStudio .gpx-zoom-view legend{float:left;width:100%;padding:0;margin:0 0 10px;font:700 var(--studio-title-size)/1.4 var(--studio-font);color:#24483c}
body.film-studio-active #editorSidebar #gpxStudio .gpx-zoom-view .camera-row{clear:both}
body.film-studio-active #editorSidebar #gpxStudio .gpx-zoom-view .camera-row:last-child{margin-bottom:0}

/* Zoom setup shares the mapless route-entry pattern across the editors. */
#zoomLocationChoice[hidden],#zoomLocationsList[hidden],#createZoomJourney[hidden],#addZoomLocation[hidden],.zoom-locations-back[hidden],.zoom-locations-hint[hidden]{display:none!important}
#zoomLocationChoice h2{font-size:24px;line-height:1.25;margin:0 0 10px;letter-spacing:-.5px}
#zoomLocationChoice p{color:#64766f;margin:0 0 24px;line-height:1.5}
.zoom-location-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.zoom-location-choices button{font:inherit;text-align:left;display:flex;flex-direction:column;gap:10px;min-height:164px;padding:20px;background:#f6faf8;border:1px solid #cdded5;border-radius:14px;color:#203f36;cursor:pointer}
.zoom-location-choices button:hover{background:#eaf5ef;border-color:#258565}
.zoom-location-choices button:focus-visible{outline:3px solid #258565;outline-offset:3px}
.zoom-location-choices button>span{font-size:25px;color:#258565}
.zoom-location-choices strong{font-size:16px}.zoom-location-choices small{font-size:13px;line-height:1.4;color:#64766f}
body.zoom-studio-active.zoom-location-choosing #zoomDestinationCard .studio-group>summary,body.zoom-studio-active.zoom-location-choosing #zoomDestinationCard>.zoom-setting-card-header,body.zoom-studio-active.zoom-location-choosing .studio-heading,body.zoom-studio-active.zoom-location-choosing #zoomDestinationCard .zoom-editor-note,body.zoom-studio-active.zoom-location-choosing #zoomDestinationCard .studio-choose-map{display:none!important}
body.zoom-studio-active.zoom-location-choosing #zoomDestinationCard .studio-group{border:0!important;background:transparent!important}
body.zoom-studio-active.zoom-location-choosing #zoomDestinationCard .studio-group-body{padding:0!important}
.zoom-locations-back{font:inherit;border:0;background:none;color:#277b5f;padding:8px 0;min-height:44px;margin-bottom:12px;cursor:pointer}
#zoomLocationsList{list-style:none;margin:0 0 14px;padding:0;display:grid;gap:8px}
#zoomLocationsList li{display:flex;align-items:center;gap:2px;border:1px solid #dce7e1;border-radius:10px;padding:4px;background:#f7faf8;min-width:0}
#zoomLocationsList button{font:inherit;min-height:44px;background:none;border:0;color:#27463b;cursor:pointer;border-radius:7px}
#zoomLocationsList button:focus-visible{outline:2px solid #278c67}
#zoomLocationsList .zoom-location-name{flex:1;min-width:0;text-align:left;padding:6px 8px;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#zoomLocationsList .zoom-location-name:disabled{opacity:1;cursor:default}
#zoomLocationsList .zoom-location-action{flex:0 0 36px;font-size:20px}
#zoomLocationsList .zoom-location-action:disabled{opacity:.25;cursor:default}
.zoom-locations-hint{font-size:13px;color:#64766f;margin:0 0 14px}
#createZoomJourney{margin-top:16px;width:100%}#addZoomLocation{margin-top:12px}
body.film-studio-active.zoom-multiple-locations #editorSidebar #gpxStudio .studio-stages{overflow-x:auto;justify-content:flex-start}
body.film-studio-active.zoom-multiple-locations #editorSidebar #gpxStudio .studio-stage{flex:0 0 auto;min-width:80px;max-width:160px}
body.film-studio-active.zoom-multiple-locations #editorSidebar #gpxStudio .studio-stage button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:600px){.zoom-location-choices{grid-template-columns:1fr}.zoom-location-choices button{min-height:120px;padding:16px;gap:6px}#zoomLocationChoice h2{font-size:22px}.zoom-location-choices button>span{font-size:22px}#zoomLocationsList .zoom-location-action{flex-basis:34px}}
body.zoom-studio-active #zoomDestinationCard :is(.search-input-wrap,.zoom-editor-label,.zoom-editor-note,#continueZoomFinalBtn)[hidden]{display:none!important}

/* Transition controls use the same compact groups as the camera settings. */
body.film-studio-active.zoom-multiple-locations #editorSidebar #gpxStudio .studio-stage.studio-stage-transition{min-width:32px;max-width:38px;flex:0 0 32px}
body.film-studio-active.zoom-multiple-locations #editorSidebar #gpxStudio .studio-stage.studio-stage-transition button{padding:8px 4px;font-size:20px;border-radius:9px}
.zoom-transition-mode{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.zoom-transition-mode output{font-size:14px;font-weight:500;color:#29493d}
.zoom-transition-mode button{font:inherit;font-size:13px;min-height:40px;padding:8px 15px;color:#28795e;background:#fff;border:1px solid #c8ddd2;border-radius:20px;cursor:pointer}
.zoom-transition-mode button[aria-pressed=true]{background:#e5f3eb;border-color:#88c5a8}
.zoom-transition-slider-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#zoomTransitionDistance{width:100%;accent-color:#2c926b;min-height:36px;cursor:pointer}
.zoom-transition-scale{display:flex;justify-content:space-between;font-size:12px;color:#6b7d75}
#zoomTransitionPair{white-space:normal}

body.film-studio-active.zoom-multiple-locations #editorSidebar #gpxStudio .studio-stage > button{display:block;max-width:158px;padding-inline:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Keep preview failures beside playback, regardless of the selected menu. */
.studio-preview-error{display:flex;align-items:center;gap:12px;padding:10px 14px;margin:0 0 8px;border:1px solid #e5d6b5;border-radius:10px;background:#fff9ec;color:#594c32;font:inherit;font-size:13px;line-height:1.45;text-align:left}
.studio-preview-error span{flex:1;min-width:0}
.studio-preview-error button{flex:none;border:0;background:transparent;color:inherit;min-width:40px;min-height:40px;font-size:22px;cursor:pointer}

/* Scale labels stay outside the slider hit area and keyboard focus ring. */
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-intro-distance-ends{margin-top:4px;font-size:11px}

/* A visible track and a generous hit area, shared by every settings slider.
   The preview scrubber has its own styling and is intentionally outside this scope. */
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio input[type=range]{appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box;width:100%;min-width:0;height:32px!important;min-height:32px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio input[type=range]::-webkit-slider-runnable-track{height:4px!important;border-radius:4px!important;background:#cbd8d0!important;border:0!important;box-shadow:none!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio input[type=range]::-webkit-slider-thumb{appearance:none!important;-webkit-appearance:none!important;width:18px!important;height:18px!important;margin-top:-7px!important;border:2px solid white!important;border-radius:50%!important;background:var(--studio-accent)!important;box-shadow:0 1px 3px #203b3526!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio input[type=range]::-moz-range-track{height:4px!important;border-radius:4px!important;background:#cbd8d0!important;border:0!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio input[type=range]::-moz-range-thumb{box-sizing:border-box;width:18px!important;height:18px!important;border:2px solid white!important;border-radius:50%!important;background:var(--studio-accent)!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio input[type=range]:focus-visible{outline:2px solid var(--studio-accent)!important;outline-offset:2px;border-radius:6px!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio input[type=range]:disabled{opacity:.45;cursor:default}
@media(max-width:900px){
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio input[type=range]{height:44px!important;min-height:44px!important}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.marker-choice-btn,.map-style-btn,.zoom-segment-btn,.gpx-source-switch-btn,.editor-reset,.solar-reset-group,.zoom-transition-mode button,#continueZoomFinalBtn){min-height:44px!important}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #gpxCameraTypeRow .marker-choice{display:grid!important;grid-auto-flow:row!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #gpxCameraTypeRow .marker-choice:has([data-gpx-camera-type="cinematic"]:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #zoomLocationsList .zoom-location-action{flex-basis:44px!important}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .search-clear-btn{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
 body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .search-input-wrap:has(.search-clear-btn) input{padding-right:48px!important}
}
@media(prefers-reduced-motion:reduce){body.film-studio-active #editorSidebar #gpxStudio :is(button,summary,input){transition:none!important}}
/* Shared binary switches. Native state and input/keyboard handlers stay intact. */
body.film-studio-active #editorSidebar #gpxStudio .studio-global-camera[hidden],
body.film-studio-active #editorSidebar #gpxStudio .studio-transition-link[hidden],
body.film-studio-active #editorSidebar #gpxStudio .studio-legacy-switch{display:none!important}
body.film-studio-active #editorSidebar #gpxStudio .studio-global-camera .zoom-setting-card{display:block!important;padding:0!important;border:0!important;background:none!important}
body.film-studio-active #editorSidebar #gpxStudio .studio-global-camera .camera-lens-control{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px;padding:0!important;margin:0!important;text-align:left}
body.film-studio-active #editorSidebar #gpxStudio .studio-global-camera .camera-lens-control > :is(label,.gpx-intro-distance-ends){display:flex!important;justify-content:space-between!important;gap:12px;width:100%!important;margin:0;text-align:left}
body.film-studio-active #editorSidebar #gpxStudio .studio-global-camera .camera-lens-control input{width:100%!important;margin:0}
body.film-studio-active #editorSidebar #gpxStudio .studio-global-camera .camera-lens-control output{color:var(--studio-accent)}
body.film-studio-active #editorSidebar #gpxStudio .studio-global-camera .camera-slider-caption{display:block!important;margin:0!important;text-align:left}
body.film-studio-active #editorSidebar #gpxStudio .studio-global-camera .camera-lens-control .editor-reset{align-self:flex-start}
body.film-studio-active #editorSidebar #gpxStudio .studio-transition-link{display:block;width:100%;min-height:44px;margin:0 0 12px;padding:10px 12px;text-align:left;background:#fff;color:#17664b;border:1px solid #d9e4dd;border-radius:8px;font:inherit;cursor:pointer}
body.film-studio-active #editorSidebar #gpxStudio .studio-switch-label{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
body.film-studio-active #editorSidebar #gpxStudio :is(.toggle-btn,.studio-section-toggle button){display:inline-flex!important;align-items:center;justify-content:center;flex:none;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;position:relative}
body.film-studio-active #editorSidebar #gpxStudio .toggle-btn::after,
body.film-studio-active #editorSidebar #gpxStudio :is(.toggle-knob,[data-studio-toggle-label]){display:none!important}
body.film-studio-active #editorSidebar #gpxStudio .toggle-btn::before,
body.film-studio-active #editorSidebar #gpxStudio .studio-switch-track,
body.film-studio-active #editorSidebar #gpxStudio input:is([data-solar-field],[data-summary],[data-buildings-toggle],[data-aurora-toggle],#studioZoomBlur)[type=checkbox]{content:'';appearance:none!important;position:static!important;display:inline-block!important;flex:none;width:36px!important;min-width:36px!important;height:22px!important;min-height:22px!important;box-sizing:border-box;border:1px solid #9bac9f!important;border-radius:20px!important;background:radial-gradient(circle at 10px 10px,#fff 0 7px,transparent 7.5px) #a8b7ae!important;box-shadow:none!important;cursor:pointer;vertical-align:middle}
body.film-studio-active #editorSidebar #gpxStudio .studio-switch-track::after{display:none}
body.film-studio-active #editorSidebar #gpxStudio .toggle-btn[aria-pressed=true]::before,
body.film-studio-active #editorSidebar #gpxStudio .toggle-btn[aria-checked=true]::before,
body.film-studio-active #editorSidebar #gpxStudio [aria-pressed=true] > .studio-switch-track,
body.film-studio-active #editorSidebar #gpxStudio input:is([data-solar-field],[data-summary],[data-buildings-toggle],[data-aurora-toggle],#studioZoomBlur)[type=checkbox]:checked{border-color:#18775b!important;background:radial-gradient(circle at 24px 10px,#fff 0 7px,transparent 7.5px) #18775b!important}
body.film-studio-active #editorSidebar #gpxStudio label:has(>input:is([data-solar-field],[data-summary],[data-buildings-toggle],[data-aurora-toggle],#studioZoomBlur)[type=checkbox]){display:flex!important;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer}
body.film-studio-active #editorSidebar #gpxStudio label > input:is([data-solar-field],[data-summary],[data-buildings-toggle],[data-aurora-toggle],#studioZoomBlur)[type=checkbox]{order:1}
body.film-studio-active #editorSidebar #gpxStudio :is(.toggle-btn,.studio-section-toggle button,.studio-transition-link):focus-visible{outline:2px solid #298866;outline-offset:2px}

.zoom-location-pin-editor{margin:0 0 16px}
.zoom-location-pin-editor[hidden]{display:none!important}
.zoom-location-pin-editor .studio-choose-map{width:100%;margin:0}
.zoom-location-pin-editor .studio-time-help{margin:8px 0 0}
.zoom-location-pin-editor [aria-pressed=true]{background:#e7f2eb;border-color:#82b69e}

/* Choose and refine multiple destinations beside the live map before building. */
#zoomLocationsList .zoom-location-name[aria-pressed=true]{background:#e6f2eb;color:#17654e}
body.zoom-locations-planning #zoomLocationsList .zoom-location-name{white-space:normal}

body.film-studio-active.zoom-studio-active.zoom-locations-planning:not(.landing-active):not(.export-recording):not(.render-job-active) #editorTimeline:not([hidden]){display:none!important}
body.film-studio-active.zoom-locations-planning .map-container{--editor-timeline-height:0px!important;--editor-timeline-gap:0px!important;--film-timeline-height:0px!important}

#confirmZoomLocation[hidden],#nextZoomLocation[hidden],#cancelZoomLocationSearch[hidden]{display:none!important}
#confirmZoomLocation,#nextZoomLocation{width:100%;margin-top:16px;min-height:44px}
#cancelZoomLocationSearch{margin:0;padding:8px 0}
#zoomLocationsList .zoom-location-name{display:flex;flex-direction:column;justify-content:center;gap:3px}
#zoomLocationsList .zoom-location-status{font-size:11px;font-weight:500;color:#647a6f}
#zoomLocationsList .zoom-location-name[aria-pressed=true] .zoom-location-status{color:#17654e}
.zoom-next-search{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.zoom-next-search[hidden]{display:none!important}
.zoom-next-search label{font-size:12px;font-weight:600;color:#526f60}
body.zoom-locations-planning #zoomDestinationCard .zoom-next-search #nextZoomLocation{width:auto;margin:0!important;min-height:44px;padding:0 2px;font-size:12px;white-space:nowrap}

/* Location setup uses a usable map surface, independent of the export ratio. */
body.film-studio-active.zoom-studio-active.zoom-locations-planning:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container #map{
 position:absolute!important;inset:8px!important;width:calc(100% - 16px)!important;height:calc(100% - 16px)!important;
 max-width:none!important;max-height:none!important;transform:none!important;grid-row:auto!important;
 align-self:stretch!important;justify-self:stretch!important;
}
@media(max-width:900px){
 body.film-studio-active.zoom-locations-planning #editorSidebar #gpxStudio .studio-scroll{padding:10px 12px 12px;min-height:0}
 body.film-studio-active.zoom-locations-planning #gpxStudio .studio-heading{margin-bottom:10px}
 body.film-studio-active.zoom-locations-planning #gpxStudio .studio-heading p{display:none}
 body.zoom-locations-planning #zoomLocationsList{max-height:112px;overflow-y:auto;overscroll-behavior:contain;margin-bottom:10px;gap:6px}
 body.zoom-locations-planning #zoomLocationsList li{padding:2px}
 body.zoom-locations-planning #zoomLocationsList .zoom-location-name{padding:4px 8px;gap:1px}
 body.zoom-locations-planning #zoomLocationsList .zoom-location-action{flex-basis:44px}
 body.zoom-locations-planning .zoom-locations-hint{font-size:12px;line-height:1.45;margin:0 0 10px}
 body.zoom-locations-planning :is(#confirmZoomLocation,#nextZoomLocation,#createZoomJourney){margin-top:8px;min-height:44px}
 body.zoom-locations-planning[data-zoom-setup-phase=search] #zoomLocationsList{display:none}
 body.zoom-locations-planning[data-zoom-setup-phase=search] #zoomDestinationCard .zoom-editor-note{display:none}
 body.film-studio-active.zoom-locations-planning #editorSidebar #gpxStudio #zoomDestinationCard .zoom-setting-card-body{gap:8px}
 body.film-studio-active.zoom-locations-planning #editorSidebar #gpxStudio #zoomDestinationCard :is(#zoomLocationsList,.zoom-locations-hint,#confirmZoomLocation,#nextZoomLocation,#createZoomJourney){margin:0!important}
}
@media(max-width:900px) and (orientation:portrait){
 body.film-studio-active.zoom-studio-active.zoom-locations-planning:not(.landing-active){
  --zoom-setup-panel-height:240px;
  --zoom-setup-sheet-top:clamp(240px,var(--editor-sheet-top,calc(100dvh - var(--zoom-setup-panel-height))),calc(100dvh - 180px));
 }
 body.film-studio-active.zoom-studio-active.zoom-locations-planning:not(.landing-active):not(.preview-playing):not(.gpx-preview-expanded):not(.export-recording):not(.render-job-active) #editorSidebar{top:var(--zoom-setup-sheet-top)!important}
 body.film-studio-active.zoom-studio-active.zoom-locations-planning:not(.landing-active):not(.preview-playing):not(.gpx-preview-expanded):not(.export-recording):not(.render-job-active) .map-container{height:calc(var(--zoom-setup-sheet-top) - 60px)!important}
 body.film-studio-active.zoom-locations-planning:has(#zoomLocationsList>li:nth-child(2)){--zoom-setup-panel-height:296px}
 body.film-studio-active.zoom-locations-planning[data-zoom-setup-phase=ready]:has(#zoomLocationsList>li:nth-child(2)){--zoom-setup-panel-height:336px}
 body.film-studio-active.zoom-studio-active.zoom-locations-planning:not(.landing-active)[data-zoom-setup-phase=search]{--zoom-setup-panel-height:296px}
 body.film-studio-active.zoom-locations-planning:not(.landing-active) #editorSidebar .editor-sheet-handle{height:18px}
}

/* A focused mobile search uses the visible screen above the software keyboard. */
.zoom-search-dismiss{display:none}
@media(max-width:900px){
 body.film-studio-active.zoom-studio-active.zoom-locations-planning.zoom-location-search-active:not(.landing-active):not(.preview-playing):not(.gpx-preview-expanded):not(.export-recording):not(.render-job-active) #editorSidebar{
  position:fixed!important;top:var(--zoom-search-top)!important;bottom:auto!important;left:0!important;right:0!important;width:100%!important;min-width:0!important;max-width:none!important;
  height:auto!important;min-height:0!important;max-height:var(--zoom-search-height)!important;
  z-index:1100!important;overflow:hidden!important;border-radius:16px!important;box-shadow:0 0 0 1px #203b3514,0 8px 36px #203b3524!important;
 }
 body.film-studio-active.zoom-studio-active.zoom-locations-planning.zoom-location-search-active:not(.landing-active):not(.preview-playing):not(.gpx-preview-expanded):not(.export-recording):not(.render-job-active) .map-container{
  position:fixed!important;top:60px!important;bottom:auto!important;left:0!important;right:0!important;
  width:100%!important;max-width:none!important;min-height:0!important;max-height:none!important;padding:0!important;
  height:max(0px,calc(var(--zoom-search-top) + var(--zoom-search-height) - 60px))!important;
 }
 body.zoom-location-search-active #editorSidebar .editor-sheet-handle,
 body.zoom-location-search-active #zoomDestinationCard :is(#zoomLocationsList,.zoom-locations-hint,.zoom-next-search,#createZoomJourney,#cancelZoomLocationSearch,.zoom-locations-back),
 body.zoom-location-search-active #zoomDestinationCard .zoom-setting-card-body > label{display:none!important}
 body.film-studio-active.zoom-location-search-active #editorSidebar #gpxStudio .studio-scroll{overflow-y:auto!important;padding:12px!important;overscroll-behavior:contain}
 body.film-studio-active.zoom-location-search-active #editorSidebar #gpxStudio .studio-heading{min-height:32px;margin:0 64px 8px 0!important}
 body.film-studio-active.zoom-location-search-active #editorSidebar #gpxStudio .studio-heading h2{font-size:18px!important;line-height:32px!important}
 body.zoom-location-search-active #zoomDestinationCard .zoom-search-dismiss{display:block;position:absolute;top:6px;right:8px;min-width:52px;min-height:44px;padding:8px;border:0;border-radius:8px;background:transparent;color:#18775b;font:600 14px 'DM Sans',sans-serif;cursor:pointer;z-index:2}
 body.zoom-location-search-active #zoomSearchInput{font-size:16px!important}
 body.zoom-editor-active.zoom-location-search-active:not(.landing-active) #zoomAutocompleteDropdown.destination-search-dropdown{max-height:var(--zoom-search-results-height)!important;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}
 body.zoom-editor-active.zoom-location-search-active:not(.landing-active) #zoomAutocompleteDropdown.destination-search-dropdown .ac-item{min-height:56px!important;padding:10px!important;border-bottom:1px solid #e2e9e5!important;border-radius:0!important}
 body.zoom-editor-active.zoom-location-search-active:not(.landing-active) #zoomAutocompleteDropdown.destination-search-dropdown .ac-name{font-size:15px!important;font-weight:600!important;line-height:1.3!important}
 body.zoom-editor-active.zoom-location-search-active:not(.landing-active) #zoomAutocompleteDropdown.destination-search-dropdown .ac-sub{font-family:inherit!important;font-size:12px!important;line-height:1.4!important}
}

/* A real shared header owns the handle, section tabs and tools. It is one
   scroll/sticky box; no overlapping grid siblings or display:contents layers. */
@media(max-width:900px) and (orientation:portrait){
 body.editor-refined.film-studio-active:has(#editorSidebar[data-mobile-sheet]){
  --studio-sheet-top:clamp(180px,var(--editor-sheet-top,var(--mobile-default-sheet-top,58dvh)),72dvh);
 }
 body.editor-refined.film-studio-active:not(.export-portrait):not(.export-portrait-post):has(#editorSidebar[data-mobile-sheet]){--mobile-default-sheet-top:clamp(300px,calc(124px + (100vw - 24px) * .5625),72dvh)}
 body.editor-refined.film-studio-active:not(.landing-active):not(.preview-playing):not(.gpx-preview-expanded):not(.export-recording):not(.render-job-active) #editorSidebar[data-mobile-sheet]{
  display:block!important;overflow-y:auto!important;overflow-anchor:none;overscroll-behavior-y:contain;scroll-padding-top:108px;
 }
 body.film-studio-active #editorSidebar[data-mobile-header]>.editor-sheet-top{display:none!important}
 body.film-studio-active #editorSidebar[data-mobile-header] #gpxStudio{display:block;min-height:100%}
 body.film-studio-active #editorSidebar[data-mobile-header] #gpxStudio .studio-work{display:block;overflow:visible}
 body.film-studio-active #editorSidebar[data-mobile-header] #gpxStudio .studio-scroll{overflow:visible;min-height:0;position:relative;isolation:isolate;z-index:0}
 body.film-studio-active #editorSidebar[data-mobile-header] #gpxStudio .studio-heading{display:block;margin:0 0 8px}
 /* The selected tool supplies the title. One quiet scope line tells people
    which activity/location they are editing, without another header row. */
 body.film-studio-active #editorSidebar[data-mobile-header] #gpxStudio .studio-heading .studio-scope{display:block;color:#536c60;font-size:11px;line-height:1.4;letter-spacing:0;text-transform:none;overflow-wrap:anywhere}
 body.travel-studio-active #editorSidebar[data-mobile-header] #gpxStudio[data-ready=true] .studio-heading p{display:none!important}
 body.film-studio-active #editorSidebar[data-mobile-header] .studio-mobile-header{display:grid;grid-template-columns:44px minmax(0,1fr);position:relative;z-index:80;background:#fff;border-radius:18px 18px 0 0}
 body.film-studio-active #editorSidebar[data-mobile-header][data-mobile-nav=revealed] .studio-mobile-header{position:sticky;top:0}
 body.film-studio-active #editorSidebar[data-mobile-header] .studio-mobile-header>.editor-sheet-handle{grid-column:1;grid-row:1;align-self:start}
 body.film-studio-active #editorSidebar[data-mobile-header] #gpxStudio .studio-mobile-header>.studio-navigation{grid-column:1/-1;position:static!important;min-width:0;z-index:auto}
 body.film-studio-active #editorSidebar[data-mobile-header=sections] #gpxStudio .studio-mobile-header>.studio-navigation{grid-column:2;grid-row:1}
 body.film-studio-active #editorSidebar[data-mobile-header] #gpxStudio .studio-mobile-header>.studio-tools{grid-column:1/-1;position:static!important;z-index:auto;padding:0 8px}
 body.film-studio-active #editorSidebar[data-mobile-header] #gpxStudio .studio-mobile-header>.gpx-journey{grid-column:2;grid-row:1;position:static!important;padding:0 6px 0 0;border-bottom:0;min-width:0;background:#fff}
 body.film-studio-active #editorSidebar[data-mobile-header] #gpxStudio .studio-stages{position:static!important;padding:0 8px}
 body.film-studio-active #editorSidebar[data-mobile-sheet] #gpxStudio .studio-stage>button{flex-direction:row;gap:5px}
 body.film-studio-active #editorSidebar[data-mobile-sheet] #gpxStudio .studio-stage-status{font-size:9px!important}
 body.editor-refined.film-studio-active #editorSidebar[data-mobile-sheet] .editor-sheet-handle{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:44px;height:44px;color:#506d60;font:500 10px 'DM Sans',sans-serif}
 body.film-studio-active #editorSidebar[data-mobile-sheet] .editor-sheet-handle[aria-expanded]::before{content:none}
 body.film-studio-active #editorSidebar[data-mobile-sheet] .editor-sheet-handle[aria-expanded=true]::before{content:none}
 body.film-studio-active #editorSidebar[data-mobile-sheet] .editor-sheet-handle::after{order:-1;width:26px;margin:0}
 body.film-studio-active #editorSidebar[data-mobile-sheet] .editor-sheet-label{display:none}
 body.film-studio-active #editorSidebar[data-mobile-sheet] .editor-sheet-label::after{content:'';width:6px;height:6px;border-top:1.5px solid currentColor;border-left:1.5px solid currentColor;transform:translateY(2px) rotate(45deg)}
 body.film-studio-active #editorSidebar[data-mobile-sheet] .editor-sheet-handle[aria-expanded=true] .editor-sheet-label::after{transform:translateY(-2px) rotate(225deg)}
 body.film-studio-active #editorSidebar[data-mobile-sheet] .editor-sheet-handle:focus-visible{outline:2px solid #278564;outline-offset:-4px;border-radius:16px}
 /* In the expanded editing view the transport remains usable; do not show a
    sliver of the map above it. Reduce settings restores the full preview. */
 body.editor-refined.film-studio-active:not(.preview-playing):not(.gpx-preview-expanded):not(.export-recording):not(.render-job-active):has(#editorSidebar[data-mobile-sheet] .editor-sheet-handle[aria-expanded=true]) .map-container #map{visibility:hidden!important}
}

/* Compact painted controls with a separate 44px touch target on mobile. */
@media(max-width:900px){
 body.film-studio-active #editorSidebar #gpxStudio .studio-stages{padding:0 8px;gap:4px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-stage{isolation:isolate;background:transparent;border:0;border-radius:0;box-shadow:none}
 body.film-studio-active #editorSidebar #gpxStudio .studio-stage.is-selected{background:transparent;border-color:transparent;box-shadow:none}
 body.film-studio-active #editorSidebar #gpxStudio .studio-stage::before{content:'';position:absolute;inset:5px 0;z-index:-1;pointer-events:none;border-radius:7px;background:#f2f5f3}
 body.film-studio-active #editorSidebar #gpxStudio .studio-stage.is-selected::before{background:#203f35}
 body.film-studio-active #editorSidebar #gpxStudio .studio-stage>button{min-height:44px;padding:4px;font-size:11px;background:transparent}
 body.travel-studio-active #editorSidebar #gpxStudio .studio-general-stage{flex:0 0 60px;min-width:60px}
 body.travel-studio-active #editorSidebar #gpxStudio .studio-leg-tabs .studio-stage{flex:1 0 56px;min-width:56px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-tools{padding:0 8px;gap:3px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-tools button{isolation:isolate;min-height:44px;padding:2px;gap:4px;border:0;background:transparent;font-size:11px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-tools button[aria-pressed=true]{background:transparent}
 body.film-studio-active #editorSidebar #gpxStudio .studio-tools button::before{content:'';position:absolute;inset:5px 0;z-index:-1;pointer-events:none;border:1px solid transparent;border-radius:7px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-tools button[aria-pressed=true]::before{background:#e6f2eb;border-color:#d2e7db}
 body.film-studio-active #editorSidebar #gpxStudio .studio-tools svg{width:16px;height:16px}
 body.film-studio-active .gpx-activity-bar button{position:relative;isolation:isolate;min-height:44px;padding:4px 8px;border:0;background:transparent;font-size:11px}
 body.film-studio-active .gpx-activity-bar button::before{content:'';position:absolute;inset:6px 0;z-index:-1;pointer-events:none;border:1px solid #cbded4;border-radius:7px;background:#f5f9f7}
 body.film-studio-active .gpx-activity-bar .gpx-activity-select{min-height:44px;background:transparent;gap:6px}
 body.film-studio-active .gpx-activity-bar .gpx-activity-select::before{background:#fff}
 body.film-studio-active .studio-export-open{position:relative;isolation:isolate;min-height:44px;padding:0 10px;border-radius:7px;background:transparent;box-shadow:none;font-size:12px}
 body.film-studio-active .studio-export-open::before{content:'';position:absolute;inset:5px 0;z-index:-1;pointer-events:none;border-radius:7px;background:var(--studio-accent)}
 body.film-studio-active .studio-format-picker{border:0;padding:0;background:transparent;box-shadow:none}
 body.film-studio-active .studio-format-picker summary{position:relative;isolation:isolate;min-height:44px;padding:0 8px;border:0;border-radius:7px;background:transparent;font-size:11px}
 body.film-studio-active .studio-format-picker summary::before{content:'';position:absolute;inset:5px 0;z-index:-1;pointer-events:none;border:1px solid var(--studio-line);border-radius:7px;background:#fff}
 body.film-studio-active .studio-format-picker[open] summary::before{background:#eff7f2;border-color:#8cbba4}
}

/* Omit repeated context while preserving control labels and collapsed summaries. */
body.travel-studio-active #editorSidebar #gpxStudio[data-tool=vehicle] .travel-leg-heading,
body.travel-studio-active #editorSidebar #gpxStudio[data-tool=vehicle] .studio-heading p,
body.travel-studio-active #editorSidebar #gpxStudio[data-tool=vehicle] .studio-leg-group[open] .studio-group-value,
body.film-studio-active #editorSidebar #gpxStudio .studio-section-toggle p:empty,
body.film-studio-active #editorSidebar #gpxStudio .zoom-location-pin-editor p:empty{display:none!important}

/* Mobile activity selection shares the existing undo / timeline row. */
.studio-mobile-actions{display:none}
@media(max-width:900px){
 body.film-studio-active:not(.landing-active) #editorTimeline .studio-mobile-actions{display:flex;align-items:center;gap:4px;grid-column:1/-1;grid-row:2;width:100%;min-width:0;height:44px}
 body.film-studio-active #editorTimeline .studio-mobile-actions>.studio-history{flex:none;gap:0;margin:0}
 body.film-studio-active #editorTimeline .studio-mobile-actions>.studio-history button{width:30px;min-width:30px}
 body.film-studio-active #editorTimeline .studio-mobile-actions>.studio-expand-preview{flex:none;width:36px;min-width:36px;margin:0 0 0 auto!important}
 body.film-studio-active #editorTimeline .studio-mobile-actions>.studio-timeline-toggle{flex:none;min-width:60px;padding:0 4px}
 body.film-studio-active #editorTimeline .studio-mobile-actions>.gpx-journey{flex:1;min-width:0;padding:0;margin:0;border:0;background:transparent}
 body.film-studio-active #editorTimeline .studio-mobile-actions .gpx-activity-select{font-size:11px;padding:0 8px;gap:4px}
}

/* Slider values read like outputs, with exact entry available in place. */
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(input.editor-value-input,.travel-timing-value input[type=number],.gpx-transfer-duration input[type=number]){
 appearance:textfield!important;-moz-appearance:textfield!important;box-sizing:border-box!important;
 width:7ch!important;min-width:0!important;max-width:100%!important;height:28px!important;min-height:28px!important;
 margin:0!important;padding:0 2px!important;border:0!important;border-radius:4px!important;background:transparent!important;box-shadow:none!important;
 color:var(--studio-accent)!important;font:600 14px/1.25 var(--studio-font)!important;text-align:right!important;font-variant-numeric:tabular-nums;
}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(input.editor-value-input,.travel-timing-value input[type=number],.gpx-transfer-duration input[type=number]):focus{
 background:#eef6f1!important;outline:2px solid #278564!important;outline-offset:1px!important;
}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(input.editor-value-input,.travel-timing-value input[type=number],.gpx-transfer-duration input[type=number])::-webkit-inner-spin-button,
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(input.editor-value-input,.travel-timing-value input[type=number],.gpx-transfer-duration input[type=number])::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .editor-value-field{gap:2px!important;min-width:0}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .editor-value-unit{color:var(--studio-accent)!important;min-width:0;font-weight:600}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.camera-row,.zoom-camera-row,.gpx-style-size-control,.gpx-animation-stage-control):has(>input[type=range]){gap:0!important;padding-block:0!important;margin-block:0!important}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.editor-value-label,.camera-row>label,.zoom-camera-row>label,.gpx-style-size-control>label){min-height:28px;margin:0!important;align-items:center!important}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.camera-slider-caption,.zoom-camera-row>small){margin:0!important;line-height:1.35!important}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.camera-fine-tune,.zoom-keyframe-controls){gap:10px!important}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-group-body,.solar-group-body):has(input[type=range]){gap:10px!important}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .solar-range-label{row-gap:0!important}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.travel-vehicle-controls,.travel-timing-row){row-gap:0!important}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.travel-timing-value,.gpx-transfer-duration>span){gap:2px;color:var(--studio-accent);font-weight:600}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-transition-inspector [data-transition-slider]{margin-top:0}
@media(max-width:900px){
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(input.editor-value-input,.travel-timing-value input[type=number],.gpx-transfer-duration input[type=number]){font-size:16px!important}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio input[type=range]{height:36px!important;min-height:36px!important;margin-block:0!important}
}

/* Mobile form density: explicit control heights instead of stacked padding. */
@media(max-width:900px){
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(
  select,input:is([type=text],[type=search],[type=date],[type=time],[type=number],[type=email],[type=url],[type=tel],:not([type])):not(.editor-value-input):not([data-travel-timing-index]):not([data-transition-time])
 ){box-sizing:border-box!important;width:100%;min-width:0!important;height:40px!important;min-height:40px!important;margin-block:0;padding:5px 7px!important;font-size:16px!important;line-height:1.25!important;border-radius:7px!important}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group,.journey-card){margin-bottom:8px!important}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group,.journey-card)>summary{box-sizing:border-box;min-height:40px!important;padding:8px 10px!important;gap:6px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-group-body,.solar-group-body,.journey-body,.trip-summary-group>div){padding:10px!important;gap:8px!important}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.editor-choice-button,.marker-choice-btn,.map-style-btn,.zoom-segment-btn,.gpx-clock-modes button,.map-details-actions button){box-sizing:border-box;min-height:36px!important;padding-block:6px!important}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.solar-controls label,.trip-summary-field,.journey-body label){gap:4px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.solar-fields,.journey-local-fields,.trip-summary-pair){gap:6px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.solar-cloud-settings,.solar-snow-settings,.solar-precipitation-settings,.solar-brightness,.solar-aurora-settings,.trip-summary-settings){gap:10px!important}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.solar-wind,.trip-summary-toggle,.journey-stopover){padding:10px!important;gap:8px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.solar-reset-group,.trip-summary-check,.trip-summary-preview,.map-details-option){min-height:36px!important}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .trip-summary-metric{min-height:36px;padding-block:4px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-journey-dates>.film-inspector-heading{padding:10px;gap:4px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-journey-dates>.film-inspector-body{padding:10px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-clock-modes{padding:3px;gap:3px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-journey-dates [data-trip-help]{margin:6px 0 8px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-clock-row{grid-template-columns:40px minmax(0,1fr) 96px;align-items:center;gap:0 6px;margin-bottom:6px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-clock-row>span{grid-column:1;grid-row:1;font-size:12px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-clock-row>input[type=date]{grid-column:2;grid-row:1}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-clock-row>input[type=time]{grid-column:3;grid-row:1;padding-inline:4px!important}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.gpx-clock-editor,.solar-fields,.journey-local-fields) input::-webkit-date-and-time-value{min-width:0;text-align:left}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.gpx-clock-editor,.solar-fields,.journey-local-fields) input::-webkit-datetime-edit{padding:0}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-clock-zone{margin-block:4px 8px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-journey-dates .gpx-activity-date{min-height:40px;padding:6px 8px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .journey-time-block{gap:6px;padding-top:10px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .journey-overview{margin-top:10px;padding-top:10px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .journey-overview button{padding-block:8px}
 body.film-studio-active .gpx-activity-row{min-height:48px}
 body.film-studio-active .gpx-activity-row>.gpx-activity-edit{min-height:44px;padding-block:4px}
 body.film-studio-active .gpx-activity-source-dialog{padding:12px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
 body.film-studio-active .gpx-activity-source-dialog>[data-activity-source]{min-height:64px;padding:10px;font-size:14px}
 body.film-studio-active #zoomLocationChoice .zoom-location-choices button{min-height:92px;padding:12px;gap:4px}
 body.film-studio-active #gpxStudio #gpxSourceChoiceCard .gpx-source-switch-btn{min-height:68px!important;padding:10px!important;gap:4px}
 body.film-studio-active #editorSidebar #gpxStudio .studio-export-dialog{padding:14px;max-width:calc(100vw - 24px)}
 body.film-studio-active .studio-legs-dialog{padding:12px}
 body.film-studio-active .moment-dialog form{padding:12px;gap:10px}
 body.film-studio-active .moment-dialog h2{font-size:18px}
 body.film-studio-active .moment-dialog :is(input[type=text],input[type=number],input:not([type]),select){box-sizing:border-box;min-width:0;min-height:40px;padding:6px 8px;font-size:16px}
 body.film-studio-active .moment-dialog textarea{box-sizing:border-box;min-height:56px;padding:6px 8px;font-size:16px}
 body.film-studio-active .moment-dialog .moment-options{gap:8px;padding-top:10px}
 body.film-studio-active .moment-dialog .moment-fields{gap:8px}
 body.film-studio-active .moment-dialog .moment-actions{bottom:-12px;margin:0 -12px -12px;padding:8px 12px max(10px,env(safe-area-inset-bottom))}
}

@media(max-width:360px){
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-clock-row{grid-template-columns:32px minmax(0,1fr) 96px;column-gap:2px}
}

/* Playback owns the mobile viewport; transport floats over the film instead
   of reserving the editor's two-row dock. Pause returns to the same editor. */
@media(max-width:900px){
 body.editor-refined.film-studio-active.preview-playing.preview-video-frame:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container{
  position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:0!important;
  display:block!important;padding:0!important;gap:0!important;z-index:9999!important;background:#000!important;
 }
 body.editor-refined.film-studio-active.preview-playing.preview-video-frame:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container #map{
  position:absolute!important;inset:auto!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;
  width:min(100vw,177.777778dvh)!important;height:min(100dvh,56.25vw)!important;
  max-width:100vw!important;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;visibility:visible!important;
 }
 body.editor-refined.film-studio-active.preview-playing.preview-video-frame.export-portrait:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container #map{
  width:min(100vw,56.25dvh)!important;height:min(100dvh,177.777778vw)!important;
 }
 body.editor-refined.film-studio-active.preview-playing.preview-video-frame.export-portrait-post:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container #map{
  width:min(100vw,80dvh)!important;height:min(100dvh,125vw)!important;
 }
 body.editor-refined.film-studio-active.preview-playing.preview-video-frame:not(.landing-active):not(.export-recording):not(.render-job-active) #editorTimeline{
  position:fixed!important;inset:auto 12px max(44px,calc(env(safe-area-inset-bottom,0px) + 12px))!important;
  width:calc(100vw - 24px)!important;height:44px!important;transform:none!important;margin:0!important;padding:0!important;
  border-radius:14px!important;background:rgba(248,251,249,.94)!important;box-shadow:0 2px 16px #0003!important;
  z-index:10020!important;pointer-events:auto;
 }
 body.editor-refined.film-studio-active.preview-playing.preview-video-frame:not(.landing-active):not(.export-recording):not(.render-job-active) #editorTimeline .studio-transport{
  height:44px!important;min-height:44px!important;grid-template-rows:44px!important;padding:0 8px!important;
 }
 body.editor-refined.film-studio-active.preview-playing.preview-video-frame:not(.landing-active):not(.export-recording):not(.render-job-active) #editorTimeline :is(.studio-mobile-actions,#studioTimelineDetails){display:none!important}
}

/* Route overlay: one visible on/off control, no nested disclosure or menu. */
body #routeOverlayRow .route-overlay-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px}
body #routeOverlayRow .route-overlay-header > span{display:grid;gap:4px;min-width:0}
body #routeOverlayRow .route-overlay-header strong{font-size:14px;color:#203e35;line-height:1.3}
body #routeOverlayRow .route-overlay-header small{font-size:12px;color:#72867d;line-height:1.4}
body #routeOverlayToggle{flex:none}
body #routeOverlayRow #routeOverlaySettings{display:grid;gap:12px;padding:14px;border-top:1px solid #edf1ee}
body #routeOverlayRow #routeOverlaySettings[hidden]{display:none!important}
body #routeOverlayRow .route-overlay-content{display:flex;gap:6px;width:100%;padding:3px;background:#f0f5f2;border-radius:9px}
body #routeOverlayRow .route-overlay-content > button{flex:1;min-width:0;min-height:38px;margin:0;font-size:12px}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .studio-overlay-card > .studio-group-body{padding:0!important;gap:0}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #routeOverlayRow{margin:0!important;border:0!important;background:transparent!important;box-shadow:none}
@media(max-width:900px){
 body #routeOverlayRow .route-overlay-header{padding:12px}
 body #routeOverlayRow .route-overlay-header strong{font-size:13px}
 body #routeOverlayRow .route-overlay-content > button{min-height:40px}
}

body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #routeOverlayRow #routeOverlaySettings{padding:12px 14px!important;gap:12px!important}
body #routeOverlayRow .route-overlay-appearance{display:flex;align-items:center;justify-content:space-between;gap:12px}
body #routeOverlayRow .route-overlay-appearance > label{margin:0!important;font-size:12px;line-height:1.4}
body #routeOverlayRow .route-overlay-appearance > select{width:60%!important;min-width:0}
body #routeOverlayRow .route-overlay-content{box-sizing:border-box}

/* One inspector scale across GPX, Zoom and Travel. Keep touch targets generous
   without making every choice look like a primary action. */
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio{
 --studio-control-height:36px;
}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.editor-choice-button,.marker-choice-btn,.map-style-btn,.zoom-segment-btn,.gpx-camera-type-btn,.gpx-clock-modes button,.map-details-actions button,.trip-summary-preview,.solar-reset-group,.editor-reset,.text-overlay-visibility){
 box-sizing:border-box;min-height:var(--studio-control-height)!important;padding:7px 10px!important;border-radius:8px!important;font-size:12px!important;line-height:1.35!important;
}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group)>summary{
 box-sizing:border-box;min-height:48px!important;padding:10px 12px!important;
}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.trip-summary-preview,.solar-reset-group,.editor-reset,.text-overlay-visibility){
 border:1px solid var(--studio-line)!important;background:#f6faf7!important;color:var(--studio-accent)!important;font-weight:600!important;box-shadow:none!important;
}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .text-overlay-visibility{width:100%;margin:0;cursor:pointer}
@media(max-width:900px){
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio{--studio-control-height:44px}
 body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.studio-group,.solar-group,.trip-summary-group)>summary{min-height:44px!important;padding:8px 10px!important}
}

body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .trip-summary-toggle{box-sizing:border-box;min-height:48px;padding:12px!important;background:#fff;border-color:var(--studio-line);gap:10px}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .trip-summary-toggle strong{font-size:13px}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .trip-summary-toggle input[role=switch]{
 appearance:none!important;flex:none;width:36px!important;min-width:36px!important;height:22px!important;min-height:22px!important;padding:0!important;border:0!important;border-radius:20px!important;
 background:radial-gradient(circle at 11px 11px,#fff 0 8px,transparent 8.5px) #a8b7ae!important;cursor:pointer;
}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .trip-summary-toggle input[role=switch]:checked{background:radial-gradient(circle at 25px 11px,#fff 0 8px,transparent 8.5px) var(--studio-accent)!important}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #routeOverlaySettings .route-overlay-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,58%);gap:8px;align-items:center;min-width:0}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #routeOverlaySettings .route-overlay-field label{margin:0;font-size:12px;line-height:1.4}
body.editor-refined.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #routeOverlaySettings .route-overlay-field select{box-sizing:border-box;width:100%;min-width:0;min-height:var(--studio-control-height);padding:7px 8px;border-radius:8px;font-size:12px;line-height:1.35}
