.map-compass-dock{position:absolute;right:max(12px,env(safe-area-inset-right,0px));top:calc(var(--yau-ui-top) + 66px);pointer-events:auto;z-index:5}
html[data-skin] #fusionShell #compassButton{display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:5px;border:1px solid var(--leaf-border);border-radius:50%;background:var(--leaf-panel);color:var(--leaf-ink);box-shadow:0 2px 8px #0002}
#compassButton>.map-action-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html[data-skin] #fusionShell #compassButton[aria-pressed=true]{border-color:var(--leaf-mint);box-shadow:0 0 0 2px var(--leaf-mint)}
html[data-skin=watch] #fusionShell #compassButton{border:2px solid var(--watch-rim);border-radius:7px;background:var(--watch-key);box-shadow:var(--watch-depth)}
.compass-live-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
#fusionJourneyTools{margin:18px 0;padding-top:12px;border-top:1px solid var(--leaf-border)}
#fusionJourneyTools h3{margin:0 0 10px;font-size:13px;font-weight:500;color:var(--leaf-muted)}
/* Leave enough room for the corner compass while reading a county callout. */
html[data-skin] #fusionShell .map-compass-dock button{touch-action:manipulation}

.watch-caption>span{min-width:0;line-height:1.6;padding-right:8px}

.watch-brand strong{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#yauPanelNameForm{display:grid;gap:10px}
#yauPanelNameInput{width:100%;min-height:48px;box-sizing:border-box;border:1px solid var(--leaf-border);border-radius:7px;padding:10px;background:var(--leaf-bg);color:var(--leaf-ink);font:inherit}
#yauPanelNameForm p{font-size:12px;color:var(--leaf-muted)}

/* Symbol keys sit together on the lower edge of the watch display. */
.watch-controls{display:flex;justify-content:flex-end;gap:8px;margin-top:9px;pointer-events:auto}
html[data-skin=watch] #fusionShell .watch-controls :is(#watchSize,#watchLight){position:static!important;display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--watch-rim);border-radius:6px;background:var(--watch-key);box-shadow:inset 0 1px 0 var(--watch-highlight),0 2px 0 var(--watch-rim);color:var(--leaf-ink)}
.watch-controls svg{flex-shrink:0;pointer-events:none}
.watch-controls #watchLight>.ticket-icon[data-c01-adornment]{display:none}
html[data-skin=watch] #fusionShell .watch-controls #watchLight[aria-pressed=true]{background:#344b35;color:#eff3df;box-shadow:inset 0 2px 4px #142b2366}
.watch-status{padding-right:0}
html[data-skin=watch] #fusionShell .watch-face.is-compact{width:min(236px,calc(100% - 38px))}
.watch-face.is-compact .watch-lcd{position:relative}
.watch-face.is-compact .watch-controls{position:absolute;right:5px;top:2px;margin:0;gap:4px}
html[data-skin=watch] #fusionShell .watch-face.is-compact .watch-time{padding-right:96px}

@media(max-width:760px){html[data-skin=watch] #fusionShell .watch-face:not(.is-compact) .watch-brand{padding-right:56px}html[data-skin=watch] .watch-face:not(.is-compact) .watch-status{padding-right:48px}}

/* UI09: icon-only compass. Preserve sensor handler, state and accessible descriptions. */
html[data-skin] #fusionShell #compassButton{width:44px;height:44px;min-height:44px;border:0;background:transparent;box-shadow:none;padding:8px;border-radius:50%}
html[data-skin] #fusionShell #compassButton .mobile-action-caption,
html[data-skin] #fusionShell #compassButton .map-action-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;padding:0!important;margin:-1px!important}
html[data-skin] #fusionShell #compassButton .ticket-icon{width:25px;height:25px;filter:drop-shadow(0 0 1px var(--leaf-bg)) drop-shadow(0 0 1px var(--leaf-bg))}
html[data-skin] #fusionShell #compassButton[aria-pressed=true]{box-shadow:none;color:var(--leaf-mint)}
html[data-skin] #fusionShell #compassButton:focus-visible{outline:2px solid var(--leaf-mint);outline-offset:2px}

/* Watch instruments share the existing key row in both display sizes. */
html[data-skin=watch] #fusionShell .watch-controls{align-items:center;gap:4px}
html[data-skin=watch] #fusionShell .watch-controls .map-compass-dock{position:static;flex:0 0 44px}
html[data-skin=watch] body[data-leaf-fusion] #fusionShell .watch-controls .yau-scale{position:static!important;flex:1 1 54px;min-width:0;max-width:none!important;padding:0 3px 0 0;background:transparent;box-shadow:none;opacity:1;visibility:visible}
html[data-skin=watch] #fusionShell .watch-controls .leaflet-control-scale-line{max-width:100%;color:inherit!important;border-color:currentColor!important;font-size:9px!important}
html[data-skin=watch] #fusionShell .watch-face.is-compact .watch-controls{position:static;margin-top:0;gap:4px}
html[data-skin=watch] #fusionShell .watch-face.is-compact .watch-time{padding-right:0}

/* Watch-only round More key: keep its accessible name and original action. */
html[data-skin=watch] body[data-leaf-fusion] #mapWorkspace #fusionShell .fusion-top #fusionTools{display:flex;align-items:center;justify-content:center;gap:0!important;width:44px;min-width:44px;height:44px;min-height:44px!important;padding:0!important;border-radius:50%!important;font-size:0!important}
html[data-skin=watch] #fusionTools>.ticket-icon{width:23px;height:23px;margin:0;flex-shrink:0}

/* Watch-side control column, using the same widths as the watch itself. */
html[data-skin=watch] #fusionShell{--watch-side-width:min(342px,calc(100% - 86px));--watch-side-left:max(19px,calc(env(safe-area-inset-left,0px) + 10px))}
html[data-skin=watch] #fusionShell:has(.watch-face.is-compact){--watch-side-width:min(236px,calc(100% - 86px))}
html[data-skin=watch] #fusionShell .watch-face,
html[data-skin=watch] #fusionShell .watch-face.is-compact{width:var(--watch-side-width);left:var(--watch-side-left)}
html[data-skin=watch] #fusionShell .map-mode-switch{position:absolute;top:calc(var(--yau-ui-top) + 66px);left:calc(var(--watch-side-left) + var(--watch-side-width) + 12px);right:auto;transform:none;width:44px;display:grid;grid-template-columns:44px;gap:7px;padding:0}
html[data-skin=watch] #fusionShell .map-mode-switch>button,
html[data-skin=watch] #fusionShell .map-mode-switch .theme-picker>button{width:44px;height:44px;padding:3px;gap:3px}
html[data-skin=watch] #fusionShell .map-mode-switch .basemap-check{width:10px;height:10px;flex-basis:10px}
html[data-skin=watch] #fusionShell .map-mode-switch .basemap-check::after{left:2px;top:-1px;width:3px;height:6px}
html[data-skin=watch] #fusionShell .theme-choices{right:0}

/* Keep the watch and its keys directly beneath the ad, aligned to the LCD. */
html[data-skin=watch] #fusionShell .watch-face,
html[data-skin=watch] #fusionShell .watch-face.is-compact{top:calc(var(--yau-ui-top) + 8px)}
html[data-skin=watch] #fusionShell .watch-brand{height:24px;box-sizing:border-box;margin-bottom:9px}
html[data-skin=watch] #fusionShell .map-mode-switch{top:calc(var(--yau-ui-top) + 41px)}
html[data-skin=watch] #fusionShell:has(.watch-face.is-compact) .map-mode-switch{top:calc(var(--yau-ui-top) + 8px)}
/* In the test build, softly blink the report symbol while its label stays steady. */
html[data-skin=watch] body[data-internal-review=true] #feedbackQuick>.ticket-icon>path:nth-of-type(2){animation:yau-feedback-blink 1.6s steps(1,end) infinite}
@keyframes yau-feedback-blink{0%,49%{opacity:1}50%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){html[data-skin=watch] body[data-internal-review=true] #feedbackQuick>.ticket-icon>path:nth-of-type(2){animation:none;opacity:1}}

/* Translucent bezel only; action keys keep their original contrast. */
html[data-skin=watch] #fusionShell .fusion-nav{background:linear-gradient(150deg,rgba(192,197,180,.3),rgba(154,165,140,.3));border-color:rgba(89,99,79,.5);box-shadow:inset 0 1px 0 rgba(231,235,214,.3),inset 0 -2px 0 rgba(98,110,85,.15),0 3px 0 rgba(105,116,93,.3)}

/* The LCD itself is the backlight easter egg; leave the instruments uncluttered. */
html[data-skin=watch] #fusionShell .watch-controls :is(#watchSize,#watchLight){display:none!important}
html[data-skin=watch] body[data-leaf-fusion] #fusionShell .watch-controls .yau-scale{flex:0 1 100px;max-width:100px!important;margin-right:auto!important}
html[data-skin=watch] #fusionShell .watch-controls{margin-top:0}
html[data-skin=watch] #fusionShell .watch-lcd{transition:background-color .25s,box-shadow .25s}
html[data-skin=watch] #fusionShell .watch-lcd.is-touch-lit{background:#edb66a;box-shadow:inset 0 0 20px #ffdca0,0 0 0 5px #a1a78f,0 0 22px #edb66a55}
@media(prefers-reduced-motion:reduce){html[data-skin=watch] #fusionShell .watch-lcd{transition:none}}

/* A simple measured underline, without the Leaflet bracket or fill. */
html[data-skin=watch] #fusionShell .watch-controls .leaflet-control-scale-line{border:0!important;border-bottom:1px solid currentColor!important;background:transparent!important;box-shadow:none!important;border-radius:0;padding:0 0 2px}
/* Optional comparison tab: touch lights the complete control set. */
html[data-skin=watch][data-backlight-preview=all]:has(.watch-lcd.is-touch-lit){--leaf-ink:#493018;--leaf-muted:#79552e;--leaf-mint:#693a16;--leaf-border:#a97131;--watch-rim:#95682f;--watch-key:linear-gradient(155deg,#ffdda0,#e7ac58);--watch-case:linear-gradient(150deg,#e4bd80,#ad8046)}
html[data-skin=watch][data-backlight-preview=all]:has(.watch-lcd.is-touch-lit) body[data-leaf-fusion] #mapWorkspace #fusionShell :is(.fusion-nav,.fusion-top,.map-mode-switch) button,
html[data-skin=watch][data-backlight-preview=all]:has(.watch-lcd.is-touch-lit) body[data-leaf-fusion] #mapWorkspace #fusionShell :is(#fusionPocket,#fusionLocation){background:linear-gradient(155deg,#ffdda0,#e7ac58)!important;color:#493018!important;border-color:#95682f!important;box-shadow:inset 0 1px 0 #ffe9bd,0 2px 0 #95682f!important}
html[data-skin=watch][data-backlight-preview=all]:has(.watch-lcd.is-touch-lit) #fusionShell .fusion-nav{background:linear-gradient(150deg,#e4bd804d,#ad80464d)}

html[data-skin=watch] body[data-leaf-fusion] #fusionShell .watch-controls .yau-scale{background:transparent!important;border:0!important;box-shadow:none!important}

/* Small controls share a translucent fill and a thinner raised bezel. */
html[data-skin=watch]{--small-key-fill:linear-gradient(155deg,rgba(230,234,217,.5),rgba(186,197,167,.5));--small-key-rim:#8c997d;--small-key-shadow:inset 0 1px 0 #f5f7e9,inset 0 -2px 0 #34422b,0 2px 0 #59634f;--small-key-active:linear-gradient(#465e4399,#2e462f99)}
html[data-skin=watch][data-backlight-preview=all]:has(.watch-lcd.is-touch-lit){--small-key-fill:linear-gradient(155deg,rgba(255,221,160,.5),rgba(231,172,88,.5));--small-key-rim:#be945e;--small-key-shadow:inset 0 1px 0 #ffe9bd,inset 0 -2px 0 #95682f,0 2px 0 #95682f;--small-key-active:linear-gradient(#a56e3299,#85511e99)}
html[data-skin=watch] body[data-leaf-fusion] #mapWorkspace #fusionShell :is(#fusionTools,#yauThemeSwitch,[data-basemap-choice]),
html[data-skin=watch] body[data-leaf-fusion] :is(#feedbackQuick,#yauAdRemove){background:var(--small-key-fill)!important;border:2px solid var(--small-key-rim)!important;box-shadow:var(--small-key-shadow)!important;backdrop-filter:none}
html[data-skin=watch] body[data-leaf-fusion] #mapWorkspace #fusionShell [data-basemap-choice][aria-pressed=true]{background:var(--small-key-active)!important;color:#eff3df!important}
html[data-skin=watch] #fusionShell #yauThemeSwitch{gap:0;padding:0}
html[data-skin=watch] #fusionShell .map-mode-switch>button[data-basemap-choice]{padding:1px}

/* Map/theme keys stay docked to the right edge as the watch changes size. */
html[data-skin=watch] #fusionShell .map-mode-switch,
html[data-skin=watch] #fusionShell:has(.watch-face.is-compact) .map-mode-switch{left:auto;right:max(12px,env(safe-area-inset-right,0px));top:calc(var(--yau-ui-top) + 41px)}

/* Transparency belongs to the fill; small-key symbols stay solid black. */
html[data-skin=watch] #fusionShell .map-mode-switch .ticket-icon,
html[data-skin=watch] body :is(#feedbackQuick,#yauAdRemove,#fusionTools) .ticket-icon{color:#000!important;opacity:1;filter:none}
html[data-skin=watch] #fusionShell .map-mode-switch :is(.basemap-check,.theme-current-check){color:#000!important;opacity:1}

/* Optional LCD comparison: translucent display, opaque bezel and lettering. */
html[data-skin=watch][data-lcd-preview=glass] #fusionShell .watch-lcd{background:linear-gradient(125deg,rgba(205,212,181,.3),rgba(185,196,164,.3))}
html[data-skin=watch][data-lcd-preview=glass] #fusionShell .watch-lcd.is-touch-lit{background:rgba(237,182,106,.3);box-shadow:inset 0 0 20px #ffdca033,0 0 0 5px #a1a78f,0 0 22px #edb66a33}

/* Solid-black LCD lettering in the translucent comparison only. */
html[data-skin=watch][data-lcd-preview=glass] #fusionShell .watch-lcd{color:#000}
html[data-skin=watch][data-lcd-preview=glass] #fusionShell .watch-calendar small{opacity:1}
html[data-skin=watch][data-lcd-preview=glass] #fusionShell .watch-controls .leaflet-control-scale-line{color:#000!important}

/* Align the right-docked keys with the compact LCD upper edge. */
html[data-skin=watch] #fusionShell:has(.watch-face.is-compact) .map-mode-switch{top:calc(var(--yau-ui-top) + 8px)}

/* Readable scale values with a compact map-centre reference beneath the instruments. */
html[data-skin=watch] body[data-leaf-fusion] #fusionShell .watch-controls .leaflet-control-scale-line{font-size:14px!important;line-height:1.3!important;font-weight:600!important}
.watch-coordinates{display:none}
html[data-skin=watch] #fusionShell .watch-coordinates{display:block;margin-top:2px;padding-top:3px;border-top:1px solid #62725544;font:9px/1.4 ui-monospace,monospace;letter-spacing:0;color:inherit;white-space:nowrap}
