/* Compact film sections above the GPX sidebar; scoped away from other editors. */
body.film-studio-active:not(.landing-active):not(.export-recording):not(.render-job-active) #editorSidebar{overflow:hidden!important;display:flex!important;flex-direction:column!important}
body.film-studio-active:not(.landing-active) #editorSidebar > :not(#gpxStudio):not(.editor-sheet-top){display:none!important}
body.film-studio-active:not(.landing-active) #editorSidebar .editor-mobile-nav{display:none!important}
#gpxStudio[hidden]{display:none!important}
#gpxStudio{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;background:#fff;color:#243a32;font:13px/1.45 "DM Sans",system-ui,sans-serif}
#gpxStudio *{box-sizing:border-box}
#gpxStudio button{cursor:pointer}
#gpxStudio [hidden]{display:none!important}
#gpxStudio .studio-stages{display:flex;gap:5px;flex:none;padding:10px;border-bottom:1px solid #e7ede8;background:#fff}
#gpxStudio .studio-stage{display:flex;align-items:center;flex:1;min-width:0;border:1px solid #dce5df;border-radius:7px;background:#fff}
#gpxStudio .studio-stage.is-selected{border-color:#86b89e;background:#eaf5ee}
#gpxStudio .studio-stage > button{flex:1;min-width:0;min-height:34px;padding:7px;border:0;background:none;color:#52655b;font-size:12px;font-weight:500;line-height:1.3}
#gpxStudio .studio-stage.is-selected > button{color:#217858;font-weight:600}
#gpxStudio .studio-stage.is-off > button::after{content:' · Off';font-size:10px;color:#7d8982;font-weight:400}
#gpxStudio .studio-enable{display:flex;align-items:center;justify-content:center;padding:8px 8px 8px 2px;cursor:pointer}
#gpxStudio .studio-enable input{width:14px;height:14px;margin:0;accent-color:#278564}
#gpxStudio .studio-work{display:grid;grid-template-columns:72px minmax(0,1fr);flex:1;min-height:0;min-width:0}
#gpxStudio .studio-tools{display:flex;flex-direction:column;gap:6px;padding:12px 5px;border-right:1px solid #e7ede8;background:#fff;overflow-y:auto}
#gpxStudio .studio-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:62px;padding:9px 2px;border:0;border-radius:7px;background:transparent;color:#65786d;font-size:11px;line-height:1.2}
#gpxStudio .studio-tools button[aria-pressed=true]{background:#e7f3eb;color:#217858;font-weight:600}
#gpxStudio .studio-tools svg{width:19px;height:19px}
#gpxStudio .studio-scroll{overflow-y:auto;overflow-x:hidden;min-width:0;min-height:0;padding:21px 16px 24px;overscroll-behavior:contain;scrollbar-width:thin}
#gpxStudio .studio-heading{margin:0 0 18px}
#gpxStudio .studio-scope{display:block;color:#278564;font-size:10px;font-weight:600;letter-spacing:1px;text-transform:uppercase;margin-bottom:8px}
#gpxStudio .studio-heading h2{margin:0 0 7px;color:#243a32;font-size:20px;font-weight:650;line-height:1.2;letter-spacing:-.4px}
#gpxStudio .studio-heading p,#gpxStudio .studio-shot p,#gpxStudio .studio-empty p,#gpxStudio .studio-disabled p{font-size:12px;line-height:1.5;color:#748079;margin:0}
#gpxStudio .studio-heading p:empty{display:none}
#gpxStudio .studio-empty,#gpxStudio .studio-disabled{background:#f4f8f5;border-radius:8px;padding:13px;margin:0 0 18px}
#gpxStudio .studio-empty button,#gpxStudio .studio-disabled button{border:1px solid #a6cfb9;border-radius:6px;padding:8px 10px;background:#eaf5ee;color:#217858;margin-top:12px;font-size:12px}
#gpxStudio .studio-shot{padding:16px;background:#f4f8f5;border-radius:9px;margin-bottom:18px}
#gpxStudio .studio-shot-icon{display:block;color:#278564;font-size:26px;margin-bottom:8px}
#gpxStudio .studio-shot strong{display:block;font-size:13px;margin-bottom:6px}
#gpxStudio .studio-shot small{display:block;font-size:11px;line-height:1.5;color:#748079;margin-top:14px}
#gpxStudio .studio-export{flex:none;background:#fff}
.studio-appbar[hidden],.studio-transport[hidden]{display:none!important}
body.film-studio-active:not(.landing-active) #mobileAppHeader{display:none!important}
.studio-appbar{position:fixed;inset:0 0 auto;height:56px;z-index:110;display:flex;align-items:center;gap:20px;padding:0 22px;border-bottom:1px solid #e7ede8;background:#fff;color:#243a32;font:13px/1.4 "DM Sans",system-ui,sans-serif}
.studio-appbar button{font:inherit;cursor:pointer}
.studio-home{display:flex;align-items:center;background:none;border:0;padding:0}
.studio-home img{display:block;width:132px;height:auto}
.studio-project{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-export-open{display:flex;align-items:center;gap:8px;margin-left:auto;border:0;border-radius:7px;background:#217858;color:white;padding:10px 17px;font-weight:600!important}
.studio-export-open:disabled{opacity:.45;cursor:default}
.studio-appbar button:focus-visible,.studio-transport button:focus-visible{outline:2px solid #278564;outline-offset:4px}
body.film-studio-active:not(.landing-active) #gpxCanvasPlayBtn{display:none!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .studio-export-dialog{position:fixed;inset:0;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:24px;border:1px solid #e1e8e2;border-radius:14px;background:#fff;color:#243a32;box-shadow:0 24px 80px #163c2933}
.studio-export-dialog::backdrop{background:#172b2259;backdrop-filter:blur(3px)}
#gpxStudio .studio-export-dialog > header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
#gpxStudio .studio-export-dialog h2{font-size:22px;line-height:1.2;margin:0}
#gpxStudio .studio-export-close{border:1px solid #dce5df;background:#fff;color:#52655b;border-radius:7px;width:34px;height:34px;font-size:24px;line-height:1}
#gpxStudio .studio-export-description{color:#748079;font-size:12px;margin:0 0 18px;line-height:1.5}
body.film-studio-active:not(.landing-active) #gpxStudio .studio-export-dialog .preview-format-toolbar{position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-wrap:wrap;width:100%!important;margin:0 0 18px!important;padding:0!important;border:0!important;box-shadow:none!important;background:none!important}
body.film-studio-active:not(.landing-active) #gpxStudio .studio-export-dialog .preview-format-label{display:block!important;width:100%;margin:0 0 5px;font-size:12px}
body.film-studio-active:not(.landing-active) #gpxStudio .studio-export-dialog .preview-format-button{flex:1;min-width:0;min-height:44px!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .studio-export-dialog #exportPanel{padding:0!important;border:0!important;max-height:none;overflow:visible}
body.film-studio-active:not(.landing-active) #gpxStudio #previewVideoBtn{display:none!important}
body.film-studio-active:not(.landing-active) #gpxStudio .editor-export-actions{grid-template-columns:minmax(0,1fr);margin-top:14px}
body.film-studio-active:not(.landing-active) #editorTimeline{--editor-timeline-height:142px;max-width:none!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-heading{border-top:1px solid #dce5df;padding-top:13px;margin-bottom:10px}
body.film-studio-active:not(.landing-active) #editorTimelineTitle{display:none}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-kicker{font-size:10px;font-weight:500;letter-spacing:.8px;color:#748079}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-total{font:11px/1.4 "DM Sans",system-ui,sans-serif;color:#748079}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment{min-width:0!important;min-height:54px;border:1px solid transparent!important;border-radius:6px;background:#edf0ed!important;box-shadow:none!important;padding:9px 12px!important;gap:3px}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment[data-kind=animation]{background:#e7f3eb!important}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment.studio-selected{border-color:#278564!important}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment.is-disabled{background:#f0f1ee!important;opacity:.55}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment::after{display:none!important}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment-label{font:500 12px/1.3 "DM Sans",system-ui,sans-serif;color:#243a32}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment-time{font:11px/1.3 "DM Sans",system-ui,sans-serif;color:#748079}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-scale{display:none}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-scroll{overflow:visible}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-track{height:54px}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment{--timeline-segment-color:#278564}
.studio-transport{display:flex;align-items:center;gap:12px;min-height:46px;padding:0 0 8px;color:#243a32;font:12px/1.4 "DM Sans",system-ui,sans-serif}
.studio-play{display:grid;place-items:center;flex:none;width:34px;height:34px;border:0;border-radius:50%;background:#243a32;color:white;cursor:pointer}
.studio-play:disabled{opacity:.4;cursor:default}
.studio-play span{width:0;height:0;border-left:9px solid white;border-top:6px solid transparent;border-bottom:6px solid transparent;margin-left:3px}
.studio-play[aria-pressed=true] span{width:10px;height:13px;border:0;border-left:3px solid white;border-right:3px solid white;background:transparent;border-radius:0;margin:0;box-sizing:border-box}
.studio-clock{font-variant-numeric:tabular-nums;white-space:nowrap;min-width:78px}
body.film-studio-active:not(.landing-active) #editorTimeline input.studio-progress{appearance:none;-webkit-appearance:none;display:block;flex:1;min-width:0;width:auto!important;height:44px!important;margin:0 5px!important;padding:0;border:0;border-radius:0;cursor:pointer;touch-action:pan-y;background:transparent;box-shadow:none;--progress:0%}
body.film-studio-active:not(.landing-active) #editorTimeline input.studio-progress::-webkit-slider-runnable-track{height:4px;border-radius:3px;background:linear-gradient(to right,#278564 var(--progress),#dce5df var(--progress))!important}
body.film-studio-active:not(.landing-active) #editorTimeline input.studio-progress::-moz-range-track{height:4px;border-radius:3px;background:linear-gradient(to right,#278564 var(--progress),#dce5df var(--progress))!important}
body.film-studio-active:not(.landing-active) #editorTimeline input.studio-progress::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border:0;border-radius:50%;background:#278564;box-shadow:none}
body.film-studio-active:not(.landing-active) #editorTimeline input.studio-progress::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:#278564}
body.film-studio-active:not(.landing-active) #editorTimeline input.studio-progress:focus-visible{outline:2px solid #278564;outline-offset:2px;border-radius:6px}
body.film-studio-active:not(.landing-active) #editorTimeline input.studio-progress:disabled{opacity:.4;cursor:default}
.studio-timeline-toggle{display:none}
#studioTimelineDetails{display:contents}
/* Keep IDs, handlers and native disabled/hidden rules on the original nodes. */
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio [data-gpx-editor-section]{display:none!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio [data-gpx-editor-section].studio-panel-visible{display:block!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .studio-panel-visible > :not([hidden]):not(.gpx-editor-section-header):not(.zoom-panel-header):not(.guide-primary):not(.panel-help-popover):not(.panel-collapse-toggle){display:revert!important;visibility:visible!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;pointer-events:auto!important;padding-left:0!important;padding-right:0!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.gpx-editor-section-header,.panel-collapse-toggle,.zoom-panel-header,.guide-steps,#guidePanel,#continueCameraBtn,#continueOptionsBtn,#cameraPlayBtn,#goDownloadBtn){display:none!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #guideSection{flex:none!important;display:block!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(#gpxMapLookCard,#gpxLightingLookCard,#gpxRouteLineCard,#gpxMarkerLookCard,#routeOverlayRow,#zoomIntroStage,#gpxIntroStartStage,#gpxMotionBlurStage,#gpxAnimationStage,#gpxOutroEndStage,#gpxRouteRevealStage){display:none!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-part=general][data-tool=map] #gpxMapLookCard,
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-part=general]:is([data-tool=dates],[data-tool=light],[data-tool=weather]) #gpxLightingLookCard,
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-part=hike][data-tool=graphics] :is(#gpxRouteLineCard,#gpxMarkerLookCard,#routeOverlayRow),
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-part=hike][data-tool=timing] #gpxAnimationStage,
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-part=intro][data-tool=timing] #zoomIntroStage,
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-part=intro][data-tool=camera] #gpxMotionBlurStage:not([hidden]),
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-part=outro] #gpxRouteRevealStage{display:block!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-part=outro][data-tool=camera] #gpxRouteRevealStage{display:none!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(#zoomIntroStage,#gpxRouteRevealStage) .gpx-animation-stage-header{display:none!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .gpx-animation-stages{padding:0!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .studio-panel-visible{padding:0!important;border:0!important;margin:0!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #exportPanel{position:static!important;margin:0!important;max-height:38vh;overflow-y:auto}
body.film-studio-active:not(.landing-active) .editor-timeline-segment.studio-selected{box-shadow:inset 0 0 0 1.5px #278564}
@media(min-width:901px){
  body.film-studio-active:not(.landing-active){--studio-width:380px;--editor-timeline-height:142px}
  body.film-studio-active:not(.landing-active) #editorSidebar{width:var(--studio-width)!important;min-width:var(--studio-width)!important;max-width:var(--studio-width)!important}
  body.film-studio-active:not(.landing-active) .app-shell{grid-template-columns:var(--studio-width) minmax(0,1fr)!important}
  body.film-studio-active:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container{left:var(--studio-width)!important;width:calc(100% - var(--studio-width))!important}
  body.film-studio-active:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container{padding:24px!important;container-type:size;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) 142px!important;gap:16px!important;--studio-map-ratio:1.777777778}
  body.film-studio-active.export-portrait .map-container{--studio-map-ratio:.5625!important}
  body.film-studio-active.export-portrait-post .map-container{--studio-map-ratio:.8!important}
  body.film-studio-active:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container #map{position:relative!important;inset:auto!important;transform:none!important;grid-row:1!important;align-self:center!important;justify-self:center!important;width:min(100cqw,calc((100cqh - 158px) * var(--studio-map-ratio)))!important;height:min(calc(100cqh - 158px),calc(100cqw / var(--studio-map-ratio)))!important;max-width:100%!important;max-height:100%!important}
  body.film-studio-active:not(.landing-active):not(.export-recording):not(.render-job-active) #editorTimeline{position:relative!important;inset:auto!important;transform:none!important;grid-row:2!important;width:100%!important;height:142px!important;align-self:end!important;justify-self:center!important}
}
@media(max-width:900px){
  .studio-appbar{height:60px;padding:0 14px;gap:12px}
  .studio-home img{width:110px}
  .studio-project{font-size:11px}
  .studio-export-open{padding:10px 12px;min-height:40px}
  body.film-studio-active:not(.landing-active) #editorTimeline{--editor-timeline-height:115px;padding:0 6px!important}
  body.film-studio-active:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container{--editor-timeline-height:115px!important;--editor-timeline-gap:8px!important}
  body.film-studio-active:not(.landing-active):not(.export-recording):not(.render-job-active) #editorTimeline:not([hidden]){display:block!important}
  body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-heading{padding-top:7px;margin-bottom:5px}
  body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment{min-height:44px;padding:6px 8px!important}
  body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-track{height:44px}
  .studio-transport{min-height:40px;padding-bottom:5px;gap:9px}
  .studio-play{width:36px;height:36px;position:relative}
  .studio-play::before{content:'';position:absolute;inset:-4px}
  body.film-studio-active:is(.preview-playing,.gpx-preview-expanded):not(.landing-active) .studio-appbar{display:none}
  body.film-studio-active:not(.landing-active):not(.preview-playing):not(.export-recording):not(.render-job-active) #editorSidebar{display:block!important;overflow-y:auto!important}
  #gpxStudio{display:block}
  #gpxStudio .studio-stages{position:sticky;top:24px;z-index:61;padding:8px 10px}
  #gpxStudio .studio-stage > button{min-height:40px}
  #gpxStudio .studio-enable{min-height:40px;min-width:32px}
  #gpxStudio .studio-work{display:block}
  #gpxStudio .studio-tools{position:sticky;top:82px;z-index:60;flex-direction:row;gap:4px;padding:5px 8px;border-right:0;border-bottom:1px solid #e7ede8;overflow:visible}
  #gpxStudio .studio-tools button{flex:1;min-width:0;min-height:54px;gap:5px;font-size:11px}
  #gpxStudio .studio-scroll{overflow:visible;padding:20px;min-height:220px}
  body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio #exportPanel{max-height:none;overflow:visible}
  body.film-studio-active:not(.landing-active):not(.export-recording):not(.render-job-active):is(.preview-playing,.gpx-preview-expanded) #editorSidebar{display:none!important}
}
/* The mobile timeline opens over the map instead of subtracting its height. */
@media(max-width:900px){
  body.film-studio-active:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container{--editor-timeline-height:44px!important;--editor-timeline-gap:4px!important}
  body.film-studio-active:not(.landing-active) #editorTimeline{--editor-timeline-height:44px;padding:0!important;overflow:visible!important}
  body.film-studio-active:not(.landing-active) #studioTimelineDetails{display:none}
  body.film-studio-active:not(.landing-active) #editorTimeline.studio-timeline-open #studioTimelineDetails{display:block;position:absolute;bottom:50px;left:0;right:0;padding:12px;background:#fff;border:1px solid #dce5df;border-radius:12px;box-shadow:0 4px 24px #163c2926;z-index:50}
  body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-heading{border:0;padding-top:0}
  .studio-timeline-toggle{display:block;flex:none;min-height:44px;padding:0 9px;border:0;border-radius:7px;background:transparent;color:#217858;font:600 11px/1.3 "DM Sans",system-ui,sans-serif;cursor:pointer}
  .studio-timeline-toggle[aria-expanded=true]{background:#e7f3eb}
  .studio-transport{height:44px;padding:0}
  #gpxStudio .studio-scroll{padding:14px 18px 24px}
  #gpxStudio .studio-heading{margin-bottom:14px}
  #gpxStudio .studio-scope{display:none}
  #gpxStudio .studio-heading h2{font-size:18px;margin-bottom:4px}
  /* Use the map engine's accessible attribution disclosure on narrow frames. */
  body.film-studio-active:not(.export-recording):not(.render-job-active) #map :is(.mapboxgl-ctrl-attrib,.maplibregl-ctrl-attrib):is(.mapboxgl-compact,.maplibregl-compact){min-height:24px!important;padding:2px 24px 2px 0!important}
  body.film-studio-active:not(.export-recording):not(.render-job-active) #map :is(.mapboxgl-ctrl-attrib,.maplibregl-ctrl-attrib):is(.mapboxgl-compact,.maplibregl-compact) button{display:block!important}
  body.film-studio-active:not(.export-recording):not(.render-job-active) #map :is(.mapboxgl-ctrl-attrib,.maplibregl-ctrl-attrib):is(.mapboxgl-compact,.maplibregl-compact):not(.mapboxgl-compact-show):not(.maplibregl-compact-show) :is(.mapboxgl-ctrl-attrib-inner,.maplibregl-ctrl-attrib-inner){display:none!important}
}

/* Protect the live map from browser chrome and a raised settings sheet. */
@media(max-width:900px) and (orientation:portrait){
  body.film-studio-active:not(.landing-active){--studio-sheet-top:clamp(340px,var(--editor-sheet-top,58dvh),72dvh)}
  body.film-studio-active:not(.landing-active):not(.preview-playing):not(.gpx-preview-expanded):not(.export-recording):not(.render-job-active) #editorSidebar{top:var(--studio-sheet-top)!important}
  body.film-studio-active:not(.landing-active):not(.preview-playing):not(.gpx-preview-expanded):not(.export-recording):not(.render-job-active) .map-container{top:60px!important;height:calc(var(--studio-sheet-top) - 60px)!important;padding:8px 12px!important}
}
/* Travel uses the same shell, with shared settings and one tab per built leg. */
body.travel-studio-active #gpxStudio .studio-stages{overflow:visible;gap:6px}
body.travel-studio-active #gpxStudio .studio-leg-tabs{display:flex;flex:1;min-width:0;gap:6px;overflow-x:auto;scroll-padding-inline:2px;scrollbar-width:none}
body.travel-studio-active #gpxStudio .studio-leg-tabs::-webkit-scrollbar{display:none}
body.travel-studio-active #gpxStudio .studio-stage{flex:0 0 auto;min-width:82px}
body.travel-studio-active #gpxStudio .studio-general-stage{min-width:86px}
body.travel-studio-active #gpxStudio .studio-general-stage:not(.is-selected){background:#fff}
body.travel-studio-active #gpxStudio .studio-stage > button{padding-inline:12px}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio #travelSection{display:block!important;flex:none!important;min-height:0!important;height:auto!important;width:100%!important;padding:0!important;margin:0!important;overflow:visible!important;background:none!important;border:0!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio .travel-editor-scroll{display:block!important;overflow:visible!important;padding:0!important;margin:0!important;max-height:none!important;min-height:0!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio [data-travel-editor-section]{display:none!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio [data-travel-editor-section].studio-panel-visible{display:block!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio .studio-panel-visible > .travel-editor-section-body{display:block!important;visibility:visible!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:0!important;opacity:1!important;pointer-events:auto!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.zoom-editor-section-header,.travel-setting-card-header,.travel-timing-help,#travelFormatCard){display:none!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio #travelRouteLineCard .travel-setting-card-header{display:flex!important;margin-bottom:12px}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio .travel-setting-cards{display:block!important;padding:0!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.travel-setting-card,.travel-setting-card-body){padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:none!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(#travelMapLookCard,#travelLightingLookCard,#travelRouteLineCard){display:none!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(#travelMapLookCard,#travelLightingLookCard,#travelRouteLineCard).travel-studio-card-visible{display:block!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio .studio-filtered-out{display:none!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-part=leg] :is(#addTravelStopBtn,.travel-stop-remove){display:none!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-tool=vehicle] .travel-timing-row{grid-template-columns:minmax(0,1fr)}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-tool=vehicle] :is(.travel-timing-value,.travel-duration-slider,.is-transition){display:none!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-tool=timing] :is(.travel-vehicle-controls,#travelVehicleStatus){display:none!important}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(#travelEditorPresetBar,#studioTravelTimingSummary){display:none!important}
.studio-travel-notice{font:12px/1.5 "DM Sans",system-ui,sans-serif;margin:0 0 18px;padding:10px 12px;border-radius:7px;background:#f1f7f3;color:#567363}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio #travelDownloadPanel{display:block!important;position:static!important;padding:0!important;margin:0!important;border:0!important;max-height:none!important;overflow:visible!important}
body.travel-studio-active #previewTravelDownloadBtn{display:none!important}
body.travel-studio-active:not(.landing-active) #editorTimeline .editor-timeline-scroll{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;padding-bottom:5px}
body.travel-studio-active:not(.landing-active) #editorTimeline .editor-timeline-track{width:max-content;min-width:100%}
body.travel-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment{flex:var(--timeline-segment-grow) 0 112px!important}
body.travel-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment[data-kind=transition]{flex:1 0 78px!important}
body.travel-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment:not([data-kind=transition]){background:#e7f3eb!important}
/* First visit: plan the journey before exposing the map and editing tools.
   Keep the map's layout dimensions so route building can prepare its camera. */
body:is(.gpx-studio-active.gpx-route-setup,.travel-studio-active.travel-route-setup,.zoom-studio-active.zoom-place-setup):not(.landing-active) .map-container{visibility:hidden!important;pointer-events:none!important}
body:is(.gpx-studio-active.gpx-route-setup,.travel-studio-active.travel-route-setup,.zoom-studio-active.zoom-place-setup):not(.landing-active) .studio-export-open{display:none!important}
body.film-studio-active:is(.gpx-studio-active.gpx-route-setup,.travel-studio-active.travel-route-setup,.zoom-studio-active.zoom-place-setup):not(.landing-active):not(.preview-playing):not(.gpx-preview-expanded):not(.export-recording):not(.render-job-active) #editorSidebar{position:fixed!important;inset:56px 0 0!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;max-height:none!important;overflow-y:auto!important;display:block!important;background:#f8faf8!important;border:0!important;border-radius:0!important;box-shadow:none!important}
body.film-studio-active:is(.gpx-studio-active.gpx-route-setup,.travel-studio-active.travel-route-setup,.zoom-studio-active.zoom-place-setup):not(.landing-active):not(.preview-playing):not(.gpx-preview-expanded):not(.export-recording):not(.render-job-active) #editorSidebar .editor-sheet-top{display:none!important}
body:is(.gpx-studio-active.gpx-route-setup,.travel-studio-active.travel-route-setup,.zoom-studio-active.zoom-place-setup) #gpxStudio{display:block;max-width:600px;margin:32px auto;background:transparent}
body:is(.gpx-studio-active.gpx-route-setup,.travel-studio-active.travel-route-setup,.zoom-studio-active.zoom-place-setup) #gpxStudio :is(.studio-stages,.studio-tools,.studio-scope){display:none!important}
body:is(.gpx-studio-active.gpx-route-setup,.travel-studio-active.travel-route-setup,.zoom-studio-active.zoom-place-setup) #gpxStudio .studio-work{display:block}
body:is(.gpx-studio-active.gpx-route-setup,.travel-studio-active.travel-route-setup,.zoom-studio-active.zoom-place-setup) #gpxStudio .studio-scroll{overflow:visible;padding:28px;background:#fff;border:1px solid #e2e9e4;border-radius:14px}
body:is(.gpx-studio-active.gpx-route-setup,.travel-studio-active.travel-route-setup,.zoom-studio-active.zoom-place-setup) #gpxStudio .studio-heading{margin-bottom:24px}
body:is(.gpx-studio-active.gpx-route-setup,.travel-studio-active.travel-route-setup,.zoom-studio-active.zoom-place-setup) #gpxStudio .studio-heading h2{font-size:26px}
body.travel-studio-active:not(.landing-active) #editorSidebar #gpxStudio #travelBuilderPanel #statusSection:not([style*="none"]){display:block!important;padding:12px 0 0;margin:0}
body.travel-studio-active #travelBuilderPanel .status-log{max-height:none;overflow:visible}
body.travel-studio-active #travelBuilderPanel .status-item{font-family:inherit;font-size:12px;border:0;align-items:flex-start}
body.travel-studio-active #travelBuilderPanel .status-item.active{color:#61736a}
body.travel-studio-active #travelBuilderPanel .status-item.error{color:#b42318}
body.travel-studio-active #travelBuilderPanel .status-dot{margin-top:5px}
@media(max-width:900px){
  body.film-studio-active:is(.gpx-studio-active.gpx-route-setup,.travel-studio-active.travel-route-setup,.zoom-studio-active.zoom-place-setup):not(.landing-active):not(.preview-playing):not(.gpx-preview-expanded):not(.export-recording):not(.render-job-active) #editorSidebar{top:60px!important}
  body:is(.gpx-studio-active.gpx-route-setup,.travel-studio-active.travel-route-setup,.zoom-studio-active.zoom-place-setup) #gpxStudio{margin:0 auto;max-width:600px}
  body:is(.gpx-studio-active.gpx-route-setup,.travel-studio-active.travel-route-setup,.zoom-studio-active.zoom-place-setup) #gpxStudio .studio-scroll{padding:24px 18px 32px;border:0;border-radius:0}
}
/* Zoom-in shares the film shell and keeps its native destination/keyframe controls. */
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio #zoomSection{display:block!important;flex:none!important;min-height:0!important;height:auto!important;width:100%!important;padding:0!important;margin:0!important;overflow:visible!important;background:none!important;border:0!important}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio .zoom-editor-scroll{display:block!important;overflow:visible!important;padding:0!important;margin:0!important;max-height:none!important;min-height:0!important}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio [data-zoom-editor-section]{display:none!important}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio [data-zoom-editor-section].studio-panel-visible{display:block!important}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio .studio-panel-visible > .zoom-editor-section-body{display:block!important;visibility:visible!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:0!important;opacity:1!important;pointer-events:auto!important}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.zoom-editor-section-header,.zoom-setting-card-header,.zoom-keyframe-switch,#zoomKeyframeNote,#zoomFormatCard,#previewZoomBtn){display:none!important}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(#zoomMarkerLookCard,#zoomMotionBlurCard) .zoom-setting-card-header{display:flex!important;margin-bottom:12px}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio .zoom-setting-card-badge{display:none!important}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio .zoom-setting-cards{display:block!important;padding:0!important}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio :is(.zoom-setting-card,.zoom-setting-card-body){padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:none!important}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio .zoom-setting-card{display:none!important}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio .zoom-setting-card.zoom-studio-card-visible{display:block!important}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio #zoomMotionBlurCard{margin-top:24px!important}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio #zoomEditorPresetBar{display:none!important}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio #zoomDownloadPanel{display:block!important;position:static!important;padding:0!important;margin:0!important;border:0!important;max-height:none!important;overflow:visible!important}
body.zoom-studio-active:not(.landing-active) #zoomCanvasPlayBtn{display:none!important}
body.zoom-studio-active.zoom-studio-placing #gpxStudio :is(.studio-stages,.studio-tools,.studio-scope),body.zoom-studio-active.zoom-studio-placing :is(.studio-export-open,#editorTimeline){display:none!important}
body.zoom-studio-active.zoom-studio-placing #gpxStudio .studio-work{display:block}
body.zoom-studio-active.zoom-studio-placing #gpxStudio .studio-scroll{overflow:visible}
.studio-choose-map{display:none}
body.zoom-studio-active #gpxStudio .studio-choose-map{display:block;width:100%;padding:12px;margin:16px 0 10px;background:#fff;border:1px solid #c9d9ce;border-radius:7px;color:#217858;font:600 12px/1.4 "DM Sans",system-ui,sans-serif}
body.zoom-studio-active:not(.landing-active) #editorSidebar #gpxStudio #zoomLocationPanel #statusSection:not([style*="none"]){display:block!important;padding:12px 0 0;margin:0}
body.zoom-studio-active #zoomLocationPanel .status-log{max-height:none;overflow:visible}
body.zoom-studio-active #zoomLocationPanel .status-item{font-family:inherit;font-size:12px;border:0;align-items:flex-start}
body.zoom-studio-active #zoomLocationPanel .status-item.active{color:#61736a}
body.zoom-studio-active #zoomLocationPanel .status-item.error{color:#b42318}
body.zoom-studio-active #zoomLocationPanel .status-dot{margin-top:5px}

body.zoom-studio-active.zoom-studio-placing:not(.landing-active) #editorTimeline:not([hidden]){display:none!important}

/* GPX: section tabs join the settings area; tools retain their vertical rail. */
#gpxStudio .studio-navigation{display:contents}
body.gpx-studio-active #gpxStudio .studio-navigation{display:block;flex:none;background:#f3f7f4;border-bottom:1px solid #dce5df}
body.gpx-studio-active #gpxStudio .studio-stages{gap:3px;padding:9px 10px 0;border:0;background:transparent}
body.gpx-studio-active #gpxStudio .studio-stage{position:relative;border:1px solid transparent;border-bottom:0;border-radius:8px 8px 0 0;background:transparent}
body.gpx-studio-active #gpxStudio .studio-stage.is-selected{border-color:#dce5df;background:#f7faf8}
body.gpx-studio-active #gpxStudio .studio-stage.is-selected::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#f7faf8;z-index:1}
body.gpx-studio-active #gpxStudio .studio-stage > button{min-height:42px;padding:8px 5px;font-size:12px;white-space:nowrap}
body.gpx-studio-active #gpxStudio .studio-stage.is-selected > button{color:#176646;font-weight:700}
body.gpx-studio-active #gpxStudio .studio-stage.is-off > button::after{content:none}
body.gpx-studio-active #gpxStudio .studio-stage.is-off:not(.is-selected) > button{color:#8b958e}
body.gpx-studio-active #gpxStudio .studio-enable{min-width:24px;min-height:42px;padding:7px 6px 7px 0}
body.gpx-studio-active #gpxStudio .studio-tools{gap:8px;padding:12px 5px;background:#f7faf8;border-right-color:#dce5df}
body.gpx-studio-active #gpxStudio .studio-tools button{min-height:62px;border:1px solid transparent;color:#54685d}
body.gpx-studio-active #gpxStudio .studio-tools button[aria-pressed=true]{color:#fff;background:#217858;border-color:#217858;font-weight:600}
body.gpx-studio-active #gpxStudio .studio-scope{display:block;font-size:10px;letter-spacing:.65px;margin-bottom:7px}
body.gpx-studio-active #gpxStudio .studio-stage > button:focus-visible,
body.gpx-studio-active #gpxStudio .studio-tools button:focus-visible{outline:2px solid #278564;outline-offset:-3px}
@media(max-width:900px){
 body.gpx-studio-active #gpxStudio .studio-navigation{position:sticky;top:24px;z-index:61}
 body.gpx-studio-active #gpxStudio .studio-stages{position:static}
 body.gpx-studio-active #gpxStudio .studio-stage > button{min-height:44px}
 body.gpx-studio-active #gpxStudio .studio-enable{min-height:44px}
 body.gpx-studio-active #gpxStudio .studio-tools{top:78px;padding:5px 8px;gap:4px}
 body.gpx-studio-active #gpxStudio .studio-tools button{min-height:54px}
}
@media(max-width:359px){
 body.gpx-studio-active #gpxStudio .studio-stages{padding-inline:6px;gap:1px}
 body.gpx-studio-active #gpxStudio .studio-stage > button{font-size:11px;padding-inline:3px}
 body.gpx-studio-active #gpxStudio .studio-enable{min-width:22px;padding-right:4px}
}

/* Helpful context stays next to the choice, without adding more navigation. */
#gpxStudio[data-mode=gpx] .studio-control-hint{font-size:12px;line-height:1.55;color:#67766d;margin:6px 0 14px}
#gpxStudio[data-mode=gpx] .studio-control-hint:empty{display:none}
#gpxStudio[data-mode=gpx] :is(.studio-tools button,.studio-stages button,.marker-choice-btn,summary):focus-visible{outline:2px solid #278564;outline-offset:2px}
#gpxStudio[data-mode=gpx] :is(.studio-empty button,.studio-disabled button){min-height:44px}

body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-part=intro][data-tool=camera] #gpxIntroStartStage{display:block!important}
#gpxStudio .gpx-intro-start-control{display:grid;gap:10px;padding:0 0 14px}
#gpxStudio .gpx-intro-start-control label{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600}
#gpxStudio .gpx-intro-start-control output{color:#278564;font-variant-numeric:tabular-nums}
#gpxStudio .gpx-intro-start-control input{width:100%;min-height:36px;accent-color:#278564}
#gpxStudio .gpx-intro-distance-ends{display:flex;justify-content:space-between;color:#738278;font-size:10px;margin-top:-8px}
#gpxStudio .gpx-intro-start-control p{margin:0;font-size:12px;color:#243a32}
#gpxStudio .gpx-intro-start-control small{font-size:11px;line-height:1.5;color:#67766d}

body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio[data-part=outro][data-tool=camera] #gpxOutroEndStage{display:block!important}
#gpxStudio .gpx-outro-fit{justify-self:start;min-height:40px;border:1px solid #b8d3c4;border-radius:7px;background:#f4f8f5;color:#217858;font:inherit;font-size:12px;font-weight:600;padding:8px 12px}
#gpxStudio .gpx-outro-fit:disabled{opacity:.5;cursor:default}

/* Same disclosure pattern as Light, around the original GPX controls. */
#gpxStudio[data-mode=gpx].studio-grouped .studio-group{width:100%;min-width:0;margin:0 0 12px;border:1px solid #dce5df;border-radius:10px;background:#fff}
#gpxStudio[data-mode=gpx] .studio-group > summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:64px;padding:12px;cursor:pointer;list-style:none;color:#243a32;border-radius:10px}
#gpxStudio[data-mode=gpx] .studio-group > summary::-webkit-details-marker{display:none}
#gpxStudio[data-mode=gpx] .studio-group > summary > span:first-child{min-width:0;display:grid;gap:3px}
#gpxStudio[data-mode=gpx] .studio-group > summary strong{font-size:13px;font-weight:650}
#gpxStudio[data-mode=gpx] .studio-group-value{font-size:11px;line-height:1.5;color:#67796f;overflow-wrap:anywhere;font-weight:400}
#gpxStudio[data-mode=gpx] .studio-group-chevron{flex:none;width:7px;height:7px;border-right:1.5px solid #597466;border-bottom:1.5px solid #597466;transform:rotate(45deg);margin:0 3px 4px 0}
#gpxStudio[data-mode=gpx] .studio-group[open] > summary{background:#f5f9f6;border-bottom:1px solid #e5ece7;border-radius:10px 10px 0 0}
#gpxStudio[data-mode=gpx] .studio-group[open] > summary .studio-group-chevron{transform:rotate(225deg);margin-top:5px}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio .studio-group-body{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:14px 12px!important;min-width:0}
#gpxStudio[data-mode=gpx] .studio-line-visibility{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:600;font-size:12px}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio.studio-grouped :is(#gpxMapLookCard,#gpxRouteLineCard,#gpxMarkerLookCard) > .gpx-look-card-header,
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio.studio-grouped #gpxAnimationStage > .gpx-animation-stage-header,
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio.studio-grouped [data-studio-group=source] .gpx-source-card-header{display:none!important}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio.studio-grouped :is(#gpxIntroStartStage,#gpxOutroEndStage,#gpxAnimationStage,#zoomIntroStage,#gpxRouteRevealStage,#gpxMotionBlurStage,#routeOverlayRow){padding:0!important;border:0!important;background:none!important;margin:0!important}
#gpxStudio[data-mode=gpx] .studio-group-body .gpx-intro-start-control{padding-bottom:0}
#gpxStudio[data-mode=gpx] .studio-group-body .studio-control-hint{margin:0;font-size:11px}
#gpxStudio[data-mode=gpx] .studio-group-body .gpx-animation-stage-control{min-width:0}
#gpxStudio[data-mode=gpx] .studio-group-body .gpx-animation-stage-title{min-width:0}
#gpxStudio[data-mode=gpx].studio-grouped .studio-shot{display:none!important}

#gpxStudio[data-mode=gpx] .studio-group-body > *{min-width:0;max-width:100%}
body.film-studio-active:not(.landing-active) #editorSidebar #gpxStudio.studio-grouped #gpxRouteLineCard .gpx-look-card-body{opacity:1!important}
/* The old playback-only timeline disabled pointer events on all descendants. */
body.film-studio-active .editor-timeline:not([hidden]){pointer-events:auto!important}

/* Anchor branding to the actual video frame in both paused and playing views. */
body.film-studio-active:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container .map-watermark{
  left:var(--watermark-preview-left,50%)!important;
  top:var(--watermark-preview-top,24px)!important;
  right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;
}
body.film-studio-active:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container .map-watermark img{
  width:var(--watermark-preview-width,var(--watermark-video-width-landscape))!important;
}

/* Shared settings and film sections have distinct scope, without another menu. */
#gpxStudio .studio-stage:has([data-studio-part=general]),#gpxStudio .studio-stage:has([data-zoom-part=general]),#gpxStudio .studio-general-stage{margin-right:8px;position:relative}
#gpxStudio .studio-stage:has([data-studio-part=general])::before,#gpxStudio .studio-stage:has([data-zoom-part=general])::before,#gpxStudio .studio-general-stage::before{content:'';position:absolute;right:-6px;top:9px;bottom:9px;border-right:1px solid #cfdcd4}
/* One shared clock, separate from visual light/weather controls. */
#gpxStudio[data-tool=dates] [data-studio-topic]:not([data-studio-topic=dates]),
#gpxStudio[data-tool=light] [data-studio-topic]:not([data-studio-topic=light]),
#gpxStudio[data-tool=weather] [data-studio-topic]:not([data-studio-topic=weather]),
#gpxStudio[data-tool=dates] [data-aurora-control],
#gpxStudio[data-tool=weather] :is(.solar-status,[data-aurora-control]){display:none!important}
body.travel-studio-active #gpxStudio[data-tool=dates] :is(#travelTimingCard,#travelVehicleStatus){display:none!important}
.solar-date-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;margin:0 0 12px;text-align:left;border:1px solid var(--studio-line,#dce5df);border-radius:8px;background:#f5f9f7;color:#226f58;font:inherit;cursor:pointer;min-height:44px}
.solar-date-link span{display:block;font-size:12px;color:#63766e;margin-top:3px}
.solar-date-link:focus-visible{outline:2px solid #278564;outline-offset:2px}

.studio-expand-preview{display:none}
@media(max-width:900px){
 .studio-expand-preview{display:grid;place-items:center;flex:none;min-width:44px;min-height:44px;border:0;background:transparent;color:#217858;font-size:25px;cursor:pointer}
 body.film-studio-active.gpx-preview-expanded:not(.export-recording):not(.render-job-active) .map-container{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;padding:12px!important}
 body.film-studio-active.gpx-preview-expanded #editorSidebar{display:none!important}
}

.studio-all-legs{flex:none;align-self:center;border:1px solid #c9dad0;border-radius:7px;background:#fff;color:#217858;padding:7px;min-height:44px;font:inherit;font-size:11px;cursor:pointer}
.studio-legs-dialog{width:min(480px,calc(100vw - 24px));max-height:80dvh;border:1px solid #dce5df;border-radius:14px;padding:20px;color:#243a32;background:#fff;font:14px/1.45 "DM Sans",system-ui,sans-serif}
.studio-legs-dialog::backdrop{background:#152c2455}
.studio-legs-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.studio-legs-dialog h2{margin:0;font-size:20px}.studio-legs-dialog header button{border:0;background:none;font-size:26px;min-width:44px;min-height:44px;cursor:pointer}
.studio-legs-dialog label{display:grid;gap:6px;font-size:12px}.studio-legs-dialog input{width:100%;min-height:44px;border:1px solid #c9dad0;border-radius:7px;padding:10px;font-size:16px;box-sizing:border-box}
.studio-legs-list{display:grid;gap:8px;margin-top:16px}.studio-legs-list button{display:grid;text-align:left;gap:4px;padding:12px;border:1px solid #dce5df;border-radius:8px;background:white;color:#243a32;font:inherit;cursor:pointer}
.studio-legs-list button[aria-pressed=true]{border-color:#278564;background:#edf7f1}.studio-legs-list button span{font-size:12px;color:#65786d}.studio-legs-list [hidden]{display:none!important}
.studio-legs-dialog :is(input,button):focus-visible{outline:2px solid #278564;outline-offset:2px}
/* Scroll settings inside the mobile sheet; its navigation and map stay put. */
@media(max-width:900px){
 body.film-studio-active:not(.landing-active):not(.preview-playing):not(.gpx-preview-expanded):not(.export-recording):not(.render-job-active) #editorSidebar{display:flex!important;flex-direction:column;overflow:hidden!important}
 body.film-studio-active #gpxStudio{display:flex;flex-direction:column;flex:1;min-height:0}
 body.film-studio-active #gpxStudio .studio-navigation{position:static;flex:none;background:#fff}
 body.film-studio-active #gpxStudio .studio-stages{position:static;flex:none;background:#fff}
 body.film-studio-active #gpxStudio .studio-work{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
 body.film-studio-active #gpxStudio .studio-tools{position:static;flex:none;background:#fff}
 body.film-studio-active #gpxStudio .studio-scroll{overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain}
 body.film-studio-active #gpxStudio .studio-scope{display:block}
}

/* GPX starts with two clear source choices; editing appears after selection. */
#gpxStudio .gpx-source-switch-btn strong{font:inherit}
#gpxStudio .gpx-source-switch-btn small{display:none}
body.gpx-route-setup #gpxStudio .studio-navigation{display:none!important}
body.gpx-route-setup #gpxStudio [data-studio-group=source]{border:0;background:transparent;overflow:visible}
body.gpx-route-setup #gpxStudio [data-studio-group=source] > summary{display:none}
body.gpx-route-setup #gpxStudio [data-studio-group=source] > .studio-group-body{padding:0;gap:16px}
body.gpx-route-setup #gpxStudio :is(#gpxSourceChoiceCard,#gpxUploadSourceCard,#gpxFindSourceCard){border:0!important;padding:0!important;background:transparent!important}
body.gpx-route-setup #gpxStudio .gpx-source-card-header{display:none!important}
body.gpx-route-setup #gpxStudio .gpx-source-card-body{padding:0!important}
body.gpx-route-setup #gpxStudio #gpxSourceChoiceCard .gpx-source-switch{display:grid!important;grid-template-columns:1fr 1fr;gap:12px;padding:0!important;background:none!important;border:0!important}
body.gpx-route-setup #gpxStudio #gpxSourceChoiceCard .gpx-source-switch-btn{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;min-height:112px;padding:18px!important;border:1px solid #cadbd1!important;border-radius:10px!important;background:#fff!important;text-align:left;white-space:normal;color:#243a32;cursor:pointer}
body.gpx-route-setup #gpxStudio #gpxSourceChoiceCard .gpx-source-switch-btn.active{border:2px solid #278564!important;padding:17px!important;background:#edf7f1!important}
body.gpx-route-setup #gpxStudio .gpx-source-switch-btn strong{font-size:16px;font-weight:650}
body.gpx-route-setup #gpxStudio .gpx-source-switch-btn small{display:block;font-size:12px;line-height:1.5;font-weight:400;color:#61756a}
body.gpx-route-setup #gpxStudio .gpx-source-switch-btn:focus-visible{outline:2px solid #217858;outline-offset:3px}
body.gpx-route-setup #gpxStudio .upload-drop{min-height:160px!important}
body.gpx-route-setup #gpxStudio [data-studio-group=route-edit]{display:none!important}
body.gpx-route-setup #editorSidebar #gpxStudio #statusSection:has(.status-item.error){display:block!important;border:0;margin-top:16px}
body.gpx-route-setup #gpxStudio #statusSection .status-item:not(.error){display:none!important}
body.gpx-route-setup #gpxStudio #statusSection .status-log{max-height:none;overflow:visible}
@media(max-width:900px){
 body.gpx-route-setup #gpxStudio #gpxSourceChoiceCard .gpx-source-switch{grid-template-columns:1fr}
 body.gpx-route-setup #gpxStudio #gpxSourceChoiceCard .gpx-source-switch-btn{min-height:80px;padding:14px!important}
 body.gpx-route-setup #gpxStudio #gpxSourceChoiceCard .gpx-source-switch-btn.active{padding:13px!important}
 body.gpx-route-setup #gpxStudio .studio-work{overflow:visible}
 body.gpx-route-setup #gpxStudio .studio-scroll{overflow:visible}
}

/* Mapped routes have a focused placement step until Route is correct. */
.studio-change-hike{display:none}
body.gpx-route-placement #gpxStudio :is(.studio-navigation,.studio-tools,.studio-scope,[data-studio-group=source]),
body.gpx-route-placement :is(.studio-export-open,#editorTimeline){display:none!important}
body.gpx-route-placement #gpxStudio .studio-work{display:block}
body.gpx-route-placement #gpxStudio .studio-change-hike{display:block;border:0;background:none;color:#217858;font:inherit;font-size:12px;min-height:40px;padding:0;cursor:pointer}
body.gpx-route-placement #gpxStudio .studio-heading{margin-bottom:10px}
body.gpx-route-placement #gpxStudio .studio-heading h2{font-size:20px}
body.gpx-route-placement #gpxStudio [data-studio-group=route-edit]{border:0;background:transparent;margin:0}
body.gpx-route-placement #gpxStudio [data-studio-group=route-edit] > summary{display:none}
body.film-studio-active.gpx-route-placement #editorSidebar #gpxStudio [data-studio-group=route-edit] > .studio-group-body{padding:0!important}
body.film-studio-active.gpx-route-placement #editorSidebar #gpxStudio #gpxMappedRoutePanel{padding:0!important;border:0}
body.gpx-route-placement #gpxStudio .gpx-route-edit-actions{padding:0 0 8px!important}
body.gpx-route-placement #gpxStudio .route-point-btn{min-height:44px}
body.gpx-route-placement #editorSidebar #gpxStudio #statusSection:has(.status-item.error){display:block!important;margin-top:12px}
body.gpx-route-placement #gpxStudio #statusSection .status-item:not(.error){display:none!important}
body.gpx-route-placement #gpxStudio #statusSection .status-log{max-height:none;overflow:visible}
body.film-studio-active.gpx-route-placement:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container{grid-template-rows:minmax(0,1fr)!important;gap:0!important;--editor-timeline-height:0px!important;--editor-timeline-gap:0px!important}
body.film-studio-active.gpx-route-placement:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container #map{width:min(100cqw,calc(100cqh * var(--studio-map-ratio,var(--editor-map-ratio,1.777777778))))!important;height:min(100cqh,calc(100cqw / var(--studio-map-ratio,var(--editor-map-ratio,1.777777778))))!important}
@media(max-width:900px){
 body.film-studio-active.gpx-route-placement:not(.landing-active){--studio-sheet-top:clamp(260px,calc(100dvh - 330px),52dvh)}
 body.gpx-route-placement #gpxStudio .studio-work{display:flex}
 body.gpx-route-placement #gpxStudio .studio-scroll{padding-top:0}
}

/* The selected tool already names the panel. Keep only scope and useful context.
   Source selection and map placement retain their task headings and guidance. */
body.film-studio-active:not(.gpx-route-setup):not(.gpx-route-placement):not(.travel-route-setup):not(.zoom-place-setup):not(.zoom-studio-placing) #gpxStudio .studio-heading{margin:0 0 10px}
body.film-studio-active:not(.gpx-route-setup):not(.gpx-route-placement):not(.travel-route-setup):not(.zoom-place-setup):not(.zoom-studio-placing) #gpxStudio .studio-heading h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
body.film-studio-active:not(.gpx-route-setup):not(.gpx-route-placement):not(.travel-route-setup):not(.zoom-place-setup):not(.zoom-studio-placing) #gpxStudio .studio-heading p{display:none}
body.film-studio-active #gpxStudio .studio-heading .studio-scope{margin-bottom:0}
/* A leg's destinations and the ending behavior add information beyond its tab. */
body.travel-studio-active #gpxStudio[data-part=leg] .studio-heading p,
body.zoom-studio-active #gpxStudio[data-part=ending][data-tool=timing] .studio-heading p{display:block!important;margin-top:5px}
body.travel-studio-active #gpxStudio[data-part=general] .studio-travel-notice{display:none}

/* Mobile density: spend height on controls, not repeated navigation/chrome. */
@media(max-width:900px){
 body.film-studio-active #gpxStudio .studio-stages{padding:4px 8px 0;gap:2px}
 body.film-studio-active #gpxStudio .studio-stage > button{min-height:44px;padding:6px 4px;font-size:12px}
 body.film-studio-active #gpxStudio .studio-enable{min-height:44px;padding:6px 5px 6px 0}
 body.film-studio-active #gpxStudio .studio-tools{gap:3px;padding:3px 8px}
 body.film-studio-active #gpxStudio .studio-tools button{min-height:44px;padding:4px 2px;gap:3px;font-size:11px}
 body.film-studio-active #gpxStudio .studio-tools svg{width:17px;height:17px}
 body.film-studio-active #gpxStudio .studio-scroll{padding:10px 12px 20px}
 body.film-studio-active #gpxStudio :is(.studio-group,.solar-group){margin-bottom:8px;border-radius:8px}
 body.film-studio-active #gpxStudio :is(.studio-group,.solar-group) > summary{min-height:52px;padding:8px 10px}
 body.film-studio-active #gpxStudio :is(.studio-group,.solar-group)[open] > summary{min-height:44px;padding:10px}
 body.film-studio-active #gpxStudio :is(.studio-group,.solar-group)[open] > summary :is(.studio-group-value,.solar-group-value){display:none}
 body.film-studio-active #gpxStudio :is(.studio-group,.solar-group) > summary strong{font-size:12px;line-height:1.4}
 body.film-studio-active #editorSidebar #gpxStudio :is(.studio-group-body,.solar-group-body){padding:10px!important;gap:10px}
 body.film-studio-active #gpxStudio :is(.solar-cloud-settings,.solar-precipitation-settings,.solar-snow-settings){gap:10px}
 body.film-studio-active #gpxStudio .solar-organized{gap:8px}
 body.film-studio-active #gpxStudio :is(.studio-control-hint,.solar-note){font-size:12px;line-height:1.4}
 /* Keep editable text large enough to avoid iOS focus zoom. */
 body.film-studio-active #gpxStudio :is(input:not([type=range]):not([type=checkbox]):not([type=radio]),select){font-size:16px}
 body.film-studio-active #gpxStudio input[type=range]{min-height:36px}
 body.film-studio-active #gpxStudio :is(.map-style-btn,.marker-choice-btn){min-height:44px;padding:8px;font-size:12px}
}
@media(min-width:360px) and (max-width:900px){
 body.gpx-studio-active #gpxStudio .studio-tools button{flex-direction:row;gap:6px;font-size:12px}
}
@media(max-width:900px) and (orientation:portrait){
 /* A landscape frame fits at full width: remove its unused vertical letterbox
    space, while honoring the user's sheet drag and preserving portrait previews. */
 body.film-studio-active:not(.landing-active):not(.export-portrait):not(.export-portrait-post):not(.gpx-route-placement){--studio-sheet-top:clamp(300px,var(--editor-sheet-top,calc(124px + (100vw - 24px) * .5625)),72dvh)}
 body.film-studio-active.gpx-route-setup #editorSidebar #gpxStudio [data-studio-group=source] > .studio-group-body{padding:0!important}
}
/* Ending summary settings: the video artwork is rendered by the shared canvas. */
#gpxStudio .trip-summary-editor{display:grid;gap:14px;min-width:0}
#gpxStudio .trip-summary-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;background:#eff7f2;border:1px solid #d7e7dd;border-radius:10px}
#gpxStudio .trip-summary-toggle strong{font-size:14px;display:block}
#gpxStudio .trip-summary-toggle small{display:block;font-size:12px;color:#65796e;margin-top:4px}
#gpxStudio .trip-summary-editor input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:#217858}
#gpxStudio .trip-summary-settings{display:grid;gap:12px;min-width:0}
#gpxStudio .trip-summary-group{border:1px solid #dce5df;border-radius:9px;min-width:0}
#gpxStudio .trip-summary-group > summary{padding:12px;min-height:44px;cursor:pointer;font-size:13px;font-weight:600;color:#27483a}
#gpxStudio .trip-summary-group[open] > summary{background:#f4f8f5;border-bottom:1px solid #e2e9e5}
#gpxStudio .trip-summary-group > div{padding:12px;display:grid;gap:10px}
#gpxStudio .trip-summary-check{display:flex;align-items:center;gap:8px;min-height:44px;font-size:12px}
#gpxStudio .trip-summary-field{display:grid;gap:6px;font-size:12px;min-width:0}
#gpxStudio .trip-summary-field :is(input,select){width:100%;min-width:0;min-height:44px;padding:8px;border:1px solid #ccdcd2;border-radius:7px;background:white;color:#244335;font:inherit}
#gpxStudio .trip-summary-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#gpxStudio .trip-summary-hint{margin:0;font-size:12px;line-height:1.5;color:#65796e}
#gpxStudio [data-summary-count]{float:right;font-size:11px;color:#65796e}
#gpxStudio [data-intro-count]{float:right;font-size:11px;color:#65796e}
#gpxStudio .trip-summary-metrics > summary{min-height:44px;padding:12px 0;cursor:pointer;color:#416552;font-size:12px}
#gpxStudio .trip-summary-metric{display:grid;grid-template-columns:18px minmax(0,1fr);column-gap:9px;align-items:center;min-height:48px;padding:6px 0;border-top:1px solid #eef2ef;font-size:12px}
#gpxStudio .trip-summary-metric input{grid-row:span 2;margin:0}
#gpxStudio .trip-summary-metric small{grid-column:2;color:#65796e;font-size:11px}
#gpxStudio .trip-summary-metric.is-unavailable{opacity:.55}
#gpxStudio .trip-summary-preview{min-height:44px;border:1px solid #acd0bc;border-radius:8px;background:#eaf5ee;color:#217858;font:600 13px "DM Sans",sans-serif;cursor:pointer}
#gpxStudio .trip-summary-editor :is(button,input,select,summary):focus-visible{outline:2px solid #278564;outline-offset:2px}
@media(max-width:900px){#gpxStudio .trip-summary-field :is(input,select){font-size:16px}}

/* Keep preview preparation inside the visible map area, also above the mobile sheet. */
body.film-studio-active:not(.render-job-active) .map-loader{align-items:center;padding:12px;box-sizing:border-box}

/* Format is visible beside Export without taking height from the preview. */
.studio-format-picker{position:relative;flex:none;margin-left:auto}
.studio-format-picker[hidden]{display:none!important}
.studio-format-picker + .studio-export-open{margin-left:0;flex:none}
.studio-format-picker summary{display:flex;align-items:center;gap:8px;min-height:40px;box-sizing:border-box;padding:0 11px;list-style:none;border:1px solid #ceded4;border-radius:7px;background:#fff;color:#29483a;cursor:pointer;font-size:12px;font-weight:600;white-space:nowrap}
.studio-format-picker summary::-webkit-details-marker{display:none}
.studio-format-picker summary:hover,.studio-format-picker[open] summary{background:#eff7f2;border-color:#8cbba4}
.studio-format-picker summary:focus-visible,.studio-format-picker button:focus-visible{outline:2px solid #278564;outline-offset:3px}
.studio-format-label{font-weight:400;color:#61766a}
.studio-format-current{font-variant-numeric:tabular-nums}
.studio-format-chevron{font-size:15px;margin-top:-4px}
.studio-format-options{position:absolute;right:0;top:calc(100% + 8px);width:226px;box-sizing:border-box;padding:8px;background:#fff;border:1px solid #dce6df;border-radius:10px;box-shadow:0 8px 28px #163c2926}
.studio-format-options > strong{display:block;padding:5px 8px 8px;color:#61766a;font-size:11px;font-weight:500}
.studio-format-options button{display:grid;grid-template-columns:20px 1fr auto 14px;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px;border:0;border-radius:6px;background:transparent;color:#29483a;text-align:left;font-size:12px}
.studio-format-options button:hover{background:#f2f7f4}
.studio-format-options button[aria-pressed=true]{background:#e6f3eb;color:#217858}
.studio-format-options b{font-size:11px;font-weight:600}
.studio-format-check{visibility:hidden}
.studio-format-options [aria-pressed=true] .studio-format-check{visibility:visible}
@media(max-width:900px){
 .studio-appbar{gap:8px}
 .studio-format-label{display:none}
 .studio-format-picker summary{min-height:44px;padding:0 8px;gap:6px}
 .studio-format-options{right:-60px}
 .studio-project{flex:1}
}
@media(max-width:370px){.studio-home img{width:90px}.studio-appbar{padding:0 10px;gap:6px}.studio-export-open{padding:10px}}
/* Paused legacy preview frames retain a high map stacking level. */
.studio-appbar:has(.studio-format-picker[open]){z-index:10100}

/* One shared time axis: range thumb centres and duration-scaled clips align. */
body.film-studio-active:not(.landing-active) #editorTimeline .studio-transport{
  display:grid;grid-template-columns:auto 1fr auto auto;grid-template-rows:40px 28px;
  column-gap:12px;row-gap:0;height:auto;min-height:0;padding:0;
}
body.film-studio-active:not(.landing-active) #editorTimeline input.studio-progress{
  grid-column:1 / -1;grid-row:2;width:100%!important;height:28px!important;margin:0!important;background:transparent!important;
}
body.film-studio-active:not(.landing-active) #editorTimeline .studio-clock{grid-column:2;grid-row:1}
body.film-studio-active:not(.landing-active) #editorTimeline .studio-expand-preview{grid-column:3;grid-row:1}
body.film-studio-active:not(.landing-active) #editorTimeline .studio-timeline-toggle{grid-column:4;grid-row:1}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-heading{display:none}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-scroll{
  width:calc(100% - 20px);margin:0 10px;overflow:visible;padding:0;
}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-track{
  width:100%;min-width:0;gap:0;
}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment[data-duration]{
  flex:var(--timeline-segment-duration,1) 1 0px!important;box-sizing:border-box;
  min-width:0!important;padding:8px 0!important;border:0!important;border-radius:0;
  box-shadow:inset -2px 0 #f8f7f4!important;
}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment:first-child{border-radius:6px 0 0 6px}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment:last-child{border-radius:0 6px 6px 0;box-shadow:none!important}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment.studio-selected{box-shadow:inset 0 0 0 1px #278564!important}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment.is-disabled{display:none}
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment-label,
body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment-time{margin:0 8px;min-width:0}
@media(max-width:900px){
  body.film-studio-active:not(.landing-active):not(.export-recording):not(.render-job-active) .map-container{--editor-timeline-height:68px!important}
  body.film-studio-active:not(.landing-active) #editorTimeline{--editor-timeline-height:68px}
  body.film-studio-active:not(.landing-active) #editorTimeline.studio-timeline-open #studioTimelineDetails{
    top:68px;bottom:auto;left:0;right:0;padding:0 0 8px;border:0;border-radius:0 0 8px 8px;
  }
  body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment[data-duration]{padding:5px 0!important}
  body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment-label,
  body.film-studio-active:not(.landing-active) #editorTimeline .editor-timeline-segment-time{margin:0 4px}
}
/* Use explicit thumb dimensions: the global range styles otherwise enlarge it. */
body.film-studio-active:not(.landing-active) #editorTimeline input.studio-progress::-webkit-slider-thumb{width:20px!important;height:20px!important;margin-top:-8px!important}
body.film-studio-active:not(.landing-active) #editorTimeline input.studio-progress::-moz-range-thumb{width:20px!important;height:20px!important}
@media(max-width:900px){
  body.film-studio-active:not(.landing-active) .map-container:has(#editorTimeline.studio-timeline-open){z-index:70!important;overflow:visible!important}
}

/* Keep tool names readable instead of squeezing seven Zoom tools into a phone. */
@media(max-width:900px){
 body.film-studio-active #editorSidebar #gpxStudio .studio-tools{min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;overscroll-behavior-x:contain}
 body.film-studio-active #editorSidebar #gpxStudio .studio-tools button{flex:1 0 64px;min-width:64px}
}

/* Model appearance stays in Vehicle; timing remains focused on duration. */
.travel-model-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;grid-column:1/-1;margin-bottom:12px;min-width:0}
.travel-model-choice label{font-size:13px;font-weight:600}
.travel-model-choice select{min-width:0;max-width:75%;min-height:40px;border:1px solid #cdded7;border-radius:8px;padding:6px 10px;background:#fff;color:#21473c;font:inherit}
body.travel-studio-active #gpxStudio[data-tool=timing] .travel-model-choice{display:none!important}

/* Shared, compact card presentation controls for intro and ending. */
#gpxStudio .card-size{display:grid;gap:2px;margin:0;min-width:0}
#gpxStudio .card-size>span{display:flex;justify-content:space-between;gap:8px;color:#526b60;font-size:13px}
#gpxStudio .card-size output{font-weight:600;color:#217b5d;font-variant-numeric:tabular-nums}
#gpxStudio .card-size input[type=range]{width:100%;margin:0}
#gpxStudio [data-card-profile-options]{display:grid;gap:10px}
#gpxStudio [data-card-profile-options][hidden]{display:none}
