/* Editing tools stay beside the arena, outside the bottom panel. */
html body #app #cwMapEditTools{position:absolute;z-index:28;right:12px;bottom:calc(var(--dock-height,130px) + 72px);display:flex;flex-direction:column;gap:6px;margin:0;pointer-events:auto}
html body #app #cwMapEditTools button{display:grid;place-items:center;box-sizing:border-box;flex:none;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:10px;border:1px solid #ffffff30;border-radius:14px;background:#292a2ae8;color:#eae5d3;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
html body #app #cwMapEditTools svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html body #app #cwMapEditTools button[aria-pressed=true]{background:#d2c895;color:#222;border-color:#d2c895}
@media(max-width:600px) and (orientation:portrait){
 html.course-essentials.course-one-hand.rider-focused body #app.compact-app .cw-app-brand{top:0!important;left:12px!important;height:44px!important;padding:8px 0!important}
 html.course-essentials.course-one-hand.rider-focused body #app.compact-app .cw-app-brand img{width:82px!important}
 html.course-essentials.course-one-hand.rider-focused body #app.compact-app .cw-language{position:absolute!important;top:0!important;right:56px!important;left:auto!important;height:44px!important;display:flex!important;align-items:center;z-index:31;max-width:110px!important}
 html body #app .cw-language select{min-height:44px!important;width:105px!important;font-size:12px!important}
 html.course-essentials.course-one-hand.rider-focused body #app.compact-app .cw-top-tools{top:0!important;right:8px!important;gap:0!important}
 html body #app .cw-top-tools>button:not(#settings){display:none!important}
 html.course-essentials.course-one-hand.rider-focused body #app.compact-app .cw-course-header{top:44px!important;left:8px!important;right:8px!important;width:auto!important;transform:none!important}
 html body #app .cw-course-nav{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;gap:4px!important;align-items:center!important;margin:0!important;min-height:44px!important}
 html.course-essentials.course-one-hand.rider-focused body #app.compact-app .cw-course-nav .cw-round-switch{position:static!important;inset:auto!important;transform:none!important;max-width:100%!important;width:max-content!important;justify-self:center;display:flex;min-width:0;overflow:hidden;padding:2px!important}
 html body #app .cw-course-nav .cw-round-switch[hidden]{display:none!important}
 html body #app .cw-course-nav .cw-round-switch button{box-sizing:border-box;min-width:0!important;min-height:36px!important;padding:5px 7px!important;font-size:10px!important;white-space:nowrap!important}
 html body #app #cwCourseBack,html body #app #cwCourseResults{box-sizing:border-box;min-width:0!important;width:44px!important;min-height:44px!important;padding:0 3px!important;font-size:11px!important}
 html body #app #cwCourseBack{grid-column:1;grid-row:1}
 html body #app .cw-course-nav .cw-round-switch{grid-column:2;grid-row:1}
 html body #app #cwCourseResults{grid-column:3;grid-row:1;font-size:10px!important}
 html body #app #cwPrintedFacts{min-height:58px!important;height:58px!important}
 html body #app #cwPrintedFacts>div{padding:5px 3px!important}
 html body #app #cwPrintedFacts b{font-size:17px!important}
 html body #app #cwPrintedFacts small,html body #app #cwPrintedFacts em{font-size:9px!important}
 html.course-essentials.course-one-hand.rider-focused body #app.compact-app #dock{padding:6px 8px!important}
 html.course-essentials.course-one-hand.rider-focused body #app.compact-app #dock .compact-summary{min-height:44px!important}
 html.course-essentials.course-one-hand.rider-focused body #app.compact-app #dock .compact-counters #bigStrides{height:62px!important;min-height:62px!important;grid-template-rows:14px 28px 20px!important}
 html body #app.cw-takeoff-editing #dock .compact-counters{display:none!important}
 html body #app.cw-takeoff-editing #dock #cwPreciseHelp{margin-top:4px!important;padding:5px!important;gap:4px!important;border-radius:12px!important;min-height:62px!important}
 html body #app.cw-takeoff-editing #cwPreciseHelp label{font-size:11px!important;line-height:13px!important}
 html body #app.cw-takeoff-editing #cwPreciseHelp button{min-height:44px!important}
 html body #app.cw-takeoff-editing #cwPreciseHelp input{min-height:44px!important;font-size:16px!important}
 html.course-essentials.course-one-hand.rider-focused body #app.compact-app .map-layer{padding-bottom:0!important;bottom:calc(var(--dock-height,120px) + 10px)!important}
 html body #app .map-layer #arena{height:100%!important;bottom:0!important}
 html body #app #cwArenaActions{top:calc(var(--map-top,150px) + 4px)!important;right:8px!important;gap:4px!important}
 html body #app #cwMapEditTools{right:8px;bottom:calc(var(--dock-height,120px) + 64px)}
}

html.course-essentials.course-one-hand.rider-focused body #app.compact-app:has(#sheet.show) .cw-language{display:none!important}

/* The map is a continuous canvas behind floating chrome, with no panel edge. */
html.course-essentials.course-one-hand.rider-focused body #app.compact-app #mapHolder.map-layer{inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:visible!important;background:#222324!important}
html.course-essentials.course-one-hand.rider-focused body #app.compact-app #mapHolder #arena{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;overflow:visible!important;touch-action:none!important}
.cw-takeoff-hit{fill:transparent;stroke:none;pointer-events:all;cursor:grab;touch-action:none}
.cw-takeoff-outline{fill:#222324dc;stroke:#efb18a;stroke-width:3;vector-effect:non-scaling-stroke;pointer-events:none}
.cw-takeoff-measure{fill:none;stroke:#efb18a;stroke-width:2.5;stroke-dasharray:4 3;vector-effect:non-scaling-stroke;pointer-events:none}
.cw-takeoff-label-bg{fill:#222324ee;stroke:#efb18a;stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none}
.cw-takeoff-label{fill:#fff2e4;font-family:Arial,sans-serif;paint-order:stroke;stroke:#222324;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}
.cw-angle-axis{stroke:#9ad6c6;stroke-width:3;stroke-dasharray:6 4;vector-effect:non-scaling-stroke;pointer-events:none}
.cw-angle-diamond{fill:#9ad6c6;stroke:#222324;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}
html body #app #dock #cwPreciseHelp{display:flex!important;flex-direction:column!important;gap:4px!important;padding:6px!important}
html body #app #dock #cwPreciseHelp[hidden]{display:none!important}
html body #app #cwPreciseHelp .cw-takeoff-modes{display:flex;gap:5px;width:100%}
html body #app #cwPreciseHelp .cw-takeoff-modes button{flex:1;min-width:0;min-height:44px!important;background:#ffffff0c;color:#dedace;border:1px solid #ffffff22}
html body #app #cwPreciseHelp .cw-takeoff-modes button[aria-pressed=true]{background:#efb18a;color:#222;border-color:#efb18a}
html body #app #cwPreciseHelp output{font:600 14px/18px Arial;color:#ffe8d5;font-variant-numeric:tabular-nums}
html body #app #cwPreciseHelp small{font:11px/15px Arial;color:#d5d1c3;text-align:center}
#cwArenaExpand{position:absolute;z-index:28;left:12px;top:calc(var(--map-top,150px) + 8px);display:flex;align-items:center;gap:6px;min-height:44px;padding:8px 10px;border:1px solid #ffffff30;border-radius:14px;background:#292a2ae8;color:#eae5d3;font:11px Arial;backdrop-filter:blur(14px)}
#cwArenaExpand svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
html body #app:has(#welcome:not(.hide)) #cwArenaExpand,html body #app:has(#sheet.show) #cwArenaExpand{display:none!important}
html body #app.cw-map-expanded .cw-course-header,html body #app.cw-map-expanded .cw-language,html body #app.cw-map-expanded .cw-app-brand,html body #app.cw-map-expanded .cw-top-tools{display:none!important}
html body #app.cw-map-expanded #dock .compact-counters{display:none!important}
html body #app.cw-map-expanded #cwArenaExpand{top:12px!important}
html.course-essentials.course-one-hand.rider-focused body #app.compact-app.cw-map-expanded #cwArenaActions{top:12px!important}

html.course-essentials.course-one-hand.rider-focused body #app.compact-app.cw-map-expanded :is(.cw-course-header,.cw-language,.cw-app-brand,.cw-top-tools){display:none!important}
.cw-angle-control .cw-takeoff-label{fill:#9ad6c6}

/* Direct manipulation stays on the map; no bottom editing panel. */
html body #app #dock #cwPreciseHelp{display:none!important}
.cw-takeoff-ring .cw-takeoff-outline{fill:#22232480;stroke:#efb18a;stroke-width:2.5}
.cw-takeoff-ring.is-selected .cw-takeoff-outline{stroke:#ffe2c7;stroke-width:4;fill:#efb18a55}
.cw-takeoff-done{cursor:pointer;touch-action:manipulation}
.cw-takeoff-done circle{fill:#292a2af5;stroke:#d2c895;stroke-width:1;vector-effect:non-scaling-stroke}
.cw-takeoff-done path{fill:none;stroke:#d2c895;stroke-width:2.5;vector-effect:non-scaling-stroke;pointer-events:none}
/* Avoid continuously recompositing blurred glass over the moving SVG on iOS. */
html.course-essentials.course-one-hand.rider-focused body #app.compact-app :is(#dock,.cw-course-header,#cwPrintedFacts,#cwArenaActions,#cwArenaActions button,#cwMapEditTools button,.cw-route-actions,#cwArenaExpand){backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
