 
#touring-global-sidebar{background:var(--tg-header,#112f31)!important}
#touring-global-sidebar .tg-link[aria-current="page"]{background:var(--tg-accent,#e2f0c4)!important;color:var(--tg-accent-ink,#163b30)!important}
#touring-global-sidebar .tg-brand-mark{background:var(--tg-accent,#e2f2be)!important;color:var(--tg-accent-ink,#163b30)!important}
#touring-global-sidebar .tg-brand-dot{color:var(--tg-accent,#ddf2b5)!important}
#tg-appearance-open{width:100%;text-align:left;cursor:pointer;font:700 13px Arial,sans-serif}
html[data-touring-palette] :is(.topline,.page-heading,.p1-header){background:var(--tg-header)!important}
html[data-touring-palette] :is(.btn:not(.soft):not(.outline),.tab.active,.nav-button.active,#nav-dest-go,#start:not(:disabled),.touring-action-primary){background:var(--tg-primary)!important;border-color:var(--tg-primary)!important;color:#fff!important}
html[data-touring-palette] :is(.nav-button.active,.filter.active){border-color:var(--tg-border)!important}
html[data-touring-vision="contrast"] :is(a,button,input,select,textarea):focus-visible{outline:4px solid var(--tg-focus)!important;outline-offset:3px!important}
html[data-touring-vision="contrast"] :is(button,input,select,textarea){border-width:2px!important}
html[data-touring-mode="night"] body{background:var(--tg-bg)!important;color:var(--tg-text)!important}
html[data-touring-mode="night"] :is(.main,.app,.mapshell:not(.map),.workspace,.page,.content,.wrapper){background-color:var(--tg-bg)!important;color:var(--tg-text)!important}
html[data-touring-mode="night"] :is(.topbar,.panel,.card,.chapter,.section,.settings-panel,.actions,.travel-card,.weather-card,.site-card,.searchbox,.result-card,.tg-light-card,.destination,.vehicle,.filterpanel,.filter-panel,.form-card,.report-card){background-color:var(--tg-surface)!important;color:var(--tg-text)!important;border-color:var(--tg-border)!important}
html[data-touring-mode="night"] :is(.panel,.card,.chapter,.section,.settings-panel,.actions,.topbar) :is(h1,h2,h3,h4,strong,label){color:var(--tg-text)!important}
html[data-touring-mode="night"] :is(input,select,textarea){background-color:var(--tg-field)!important;color:var(--tg-text)!important;border-color:var(--tg-border)!important}
html[data-touring-mode="night"] input::placeholder{color:var(--tg-muted)!important}
html[data-touring-mode="night"] :is(.chip,.tab:not(.active),.filter:not(.active),.round,.soft,.outline,.nav-shortcuts button,.dest-help,.rl-launch){background:var(--tg-soft)!important;color:var(--tg-text)!important;border-color:var(--tg-border)!important}
html[data-touring-mode="night"] :is(.small-print,.muted,.sub,.soft-text,.eyebrow,.caption,.destcoords,.nav-group){color:var(--tg-muted)!important}
html[data-touring-mode="night"] .leaflet-tile-pane img.leaflet-tile{filter:invert(92%) hue-rotate(182deg) brightness(.76) contrast(1.15) saturate(.65)}
html[data-touring-mode="night"] .leaflet-container{background:#152735!important}
html[data-touring-mode="night"] :is(.leaflet-control-zoom a,.leaflet-popup-content-wrapper,.leaflet-popup-tip){background:var(--tg-field)!important;color:var(--tg-text)!important;border-color:var(--tg-border)!important}
html[data-touring-mode="night"] :is(.nav-search-compact,.nav-search-compact .rl-launch,#nav-search-expand){background:var(--tg-field)!important;color:var(--tg-text)!important}
html[data-touring-mode="night"] .dest-search-row button{background:var(--tg-primary)!important;color:#fff!important}
html[data-touring-mode="night"] #drive-hud,html[data-touring-mode="night"] #touring-drive-dock{background:var(--tg-header)!important;border-color:var(--tg-border)!important}
html[data-touring-mode="night"] :is(#touring-route-library .rl-sheet,#touring-appearance-dialog .ta-sheet){background:var(--tg-surface)!important}
html[data-touring-palette] :is(#touring-global-sidebar,.touring-route-options,.panel,.card,.site-card,.dest-search,.actions){transition:background-color .2s,color .2s,border-color .2s}
@media(prefers-reduced-motion:reduce){html[data-touring-palette] *{transition:none!important}}
#touring-appearance-dialog[hidden]{display:none!important}
#touring-appearance-dialog{position:fixed;inset:0;z-index:47000;display:flex;justify-content:center;align-items:center;font:500 14px/1.45 "DM Sans",Arial,sans-serif;color:var(--tg-text)}
#touring-appearance-dialog *{box-sizing:border-box}
#touring-appearance-dialog .ta-shade{position:absolute;inset:0;background:#071e24c4}
#touring-appearance-dialog .ta-sheet{position:relative;width:min(530px,calc(100vw - 28px));max-height:90dvh;display:flex;flex-direction:column;background:var(--tg-surface,#fff);border:1px solid var(--tg-border,#cadccf);border-radius:18px;box-shadow:0 14px 48px #091b1f55;overflow:hidden}
#touring-appearance-dialog header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid var(--tg-border,#cadccf)}
#touring-appearance-dialog header h2{font:800 24px "Outfit","DM Sans",Arial,sans-serif;line-height:1.13;letter-spacing:-.5px;margin:3px 0;color:var(--tg-text)}
#touring-appearance-dialog header small{font-size:10px;font-weight:850;color:var(--tg-muted);letter-spacing:1.4px}
#touring-appearance-dialog .ta-close{width:40px;height:40px;border-radius:10px;border:1px solid var(--tg-border);background:var(--tg-field);color:var(--tg-text);font-size:25px;cursor:pointer}
#touring-appearance-dialog .ta-content{overflow:auto;min-height:0;padding:13px 17px}
#touring-appearance-dialog .ta-group{border:0;padding:0;margin:0 0 18px;min-width:0}
#touring-appearance-dialog legend{font-size:15px;font-weight:850;padding:0;color:var(--tg-text)}
#touring-appearance-dialog .ta-group>p{margin:4px 0 10px;color:var(--tg-muted);font-size:11px}
#touring-appearance-dialog .ta-palettes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#touring-appearance-dialog .ta-palette{border:2px solid var(--tg-border);border-radius:12px;background:var(--tg-field);color:var(--tg-text);padding:7px;min-height:82px;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11px;cursor:pointer}
#touring-appearance-dialog .ta-swatch{height:27px;border-radius:7px;display:block;width:100%;border:1px solid #0003}
#touring-appearance-dialog .ta-choices{display:flex;gap:6px;flex-wrap:wrap}
#touring-appearance-dialog .ta-choices button{flex:1 1 125px;min-height:43px;border:2px solid var(--tg-border);border-radius:11px;background:var(--tg-field);color:var(--tg-text);font-size:12px;font-weight:800;padding:7px}
#touring-appearance-dialog button[aria-pressed="true"]{border-color:var(--tg-primary)!important;background:var(--tg-accent)!important;color:var(--tg-accent-ink)!important;box-shadow:inset 0 0 0 1px var(--tg-primary)}
#touring-appearance-dialog .ta-route-preview{display:flex;gap:10px;margin:14px 0 5px}
#touring-appearance-dialog .ta-route-preview span{flex:1;text-align:center;font-size:11px;font-weight:850;padding:9px 0;border-bottom:7px solid}
#touring-appearance-dialog .ta-route-dash{border-bottom-style:dashed!important}
#touring-appearance-dialog .ta-route-dot{border-bottom-style:dotted!important}
#touring-appearance-dialog .ta-note{font-size:11px;line-height:1.45;color:var(--tg-muted);margin:10px 0}
#touring-appearance-dialog .ta-reset{background:var(--tg-field);border:1px solid var(--tg-border);color:var(--tg-text);border-radius:10px;padding:9px 12px;font-weight:800;margin:6px 0}
#touring-appearance-dialog footer{padding:12px 16px;border-top:1px solid var(--tg-border);display:flex;justify-content:flex-end}
#touring-appearance-dialog .ta-done{background:var(--tg-primary);color:white;border:0;border-radius:10px;padding:11px 28px;min-height:43px;font-weight:850}
#touring-appearance-dialog button:focus-visible{outline:3px solid var(--tg-focus);outline-offset:2px}
@media(max-width:700px){#touring-appearance-dialog{align-items:flex-end}#touring-appearance-dialog .ta-sheet{width:100%;max-height:90dvh;border-radius:18px 18px 0 0;margin:0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom,0px)}#touring-appearance-dialog header h2{font-size:21px}#touring-appearance-dialog .ta-content{padding:11px 13px}#touring-appearance-dialog .ta-palettes{grid-template-columns:repeat(3,minmax(0,1fr))}}


 
html[data-touring-mode="night"] .leaflet-tile-pane img.leaflet-tile {
  filter:invert(.86) hue-rotate(184deg) brightness(1.85) contrast(.88) saturate(.6)!important;
}
html[data-touring-mode="night"] .leaflet-container {
  background:#334e5b!important;
}
html[data-touring-mode="night"] :is(.metric,.tt-eval,.traffic-card,.fuel-result,.ukvoice-field,.touring-route-options) {
  background:var(--tg-soft,#263b43)!important;
  color:var(--tg-text,#f3f8f8)!important;
  border-color:var(--tg-border,#6a8590)!important;
}
html[data-touring-mode="night"] .metric b,
html[data-touring-mode="night"] :is(.tt-eval h4,.tt-eval label,.tt-eval-label,.traffic-top,.ukvoice-field label,.touring-route-options .route-options-heading,.fuel-result,.route-stats strong) {
  color:var(--tg-text,#f3f8f8)!important;
}
html[data-touring-mode="night"] :is(.metric small,.tt-eval p,.tt-eval #tt-eval-feedback,.traffic-card p,.ukvoice-field small,.touring-route-options .route-facts,.touring-route-options .route-info,.settings-disclaimer,.vfield,.nav-voice-feedback,#nav-routing-disclaimer,.small-print) {
  color:var(--tg-muted,#c3d4d5)!important;
}
html[data-touring-mode="night"] .tt-eval #tt-eval-feedback.error,
html[data-touring-mode="night"] .nav-voice-feedback.error {color:#ffbdb6!important}
html[data-touring-mode="night"] .tt-eval-badge {
  background:#405a60!important;
  color:#f0f8f8!important;
}
html[data-touring-mode="night"] .tt-eval-badge.active {
  background:#166e52!important;
  color:#ffffff!important;
}
html[data-touring-mode="night"] .tt-eval input,
html[data-touring-mode="night"] .tt-eval select,
html[data-touring-mode="night"] .vfield input,
html[data-touring-mode="night"] .vfield select,
html[data-touring-mode="night"] .ukvoice-field select {
  background:var(--tg-field,#243743)!important;
  color:var(--tg-text,#f3f8f8)!important;
  border-color:var(--tg-border,#6a8590)!important;
}
html[data-touring-mode="night"] .tt-eval input::placeholder {
  color:#c4d3d8!important;
  opacity:1;
}
html[data-touring-mode="night"] .pro-label {
  background:var(--tg-accent,#f5df95)!important;
  color:var(--tg-accent-ink,#26312d)!important;
}
html[data-touring-mode="night"] .touring-route-options button {
  background:var(--tg-field,#243743)!important;
  color:var(--tg-text,#f3f8f8)!important;
  border-color:var(--tg-border,#6a8590)!important;
}
html[data-touring-mode="night"] .touring-route-options button[aria-pressed="true"] {
  background:#2d5256!important;
  border-color:#a2d1bd!important;
  box-shadow:inset 3px 0 #b8efda!important;
}
html[data-touring-mode="night"] .touring-route-tools>button,
html[data-touring-mode="night"] .nav-shortcuts button,
html[data-touring-mode="night"] .close-settings,
html[data-touring-mode="night"] #nav-more-options summary {
  background:var(--tg-field,#243743)!important;
  color:var(--tg-text,#f3f8f8)!important;
  border-color:var(--tg-border,#6a8590)!important;
}
html[data-touring-mode="night"] .status:not(.warn):not(.error) {
  background:var(--tg-soft,#263b43)!important;
  color:var(--tg-text,#f3f8f8)!important;
  border-color:var(--tg-border,#6a8590)!important;
}
html[data-touring-mode="night"] :is(.status.warn,.restriction) {
  background:#40341f!important;
  color:#ffe6a3!important;
  border-color:#947342!important;
}
html[data-touring-mode="night"] :is(.status.warn,.restriction) strong {color:#ffe6a3!important}
html[data-touring-mode="night"] .status.error {
  background:#4b282b!important;
  color:#ffd4ca!important;
  border-color:#a76365!important;
}
html[data-touring-mode="night"] .settings-divider {background:var(--tg-border,#67808a)!important}
html[data-touring-mode="night"] .side {background:var(--tg-bg,#111f27)!important;color:var(--tg-text,#f3f8f8)!important}
html[data-touring-mode="night"] :is(.alt-route-badge,.map-caption) {
  background:var(--tg-surface,#1d2c37)!important;
  color:var(--tg-text,#f3f8f8)!important;
  border-color:var(--tg-border,#67808a)!important;
}
html[data-touring-mode="night"] .float-controls button {
  background:var(--tg-field,#273d49)!important;
  color:var(--tg-text,#f3f8f8)!important;
  border-color:var(--tg-border,#67808a)!important;
}
html[data-touring-mode="night"] .float-controls button:disabled {opacity:.65!important}
html[data-touring-mode="night"] body.tg-nav-route:not(.driving) .chapter {
  background:var(--tg-surface,#1d2c37)!important;
  color:var(--tg-text,#f3f8f8)!important;
  border-color:var(--tg-border,#67808a)!important;
}
html[data-touring-mode="night"] :is(.destination,.vehicle,.nav-search-compact,.nav-search-place) {
  background:var(--tg-soft,#263b43)!important;
  color:var(--tg-text,#f3f8f8)!important;
  border-color:var(--tg-border,#67808a)!important;
}
html[data-touring-mode="night"] :is(.metric,.tt-eval,.traffic-card,.fuel-result,.ukvoice-field,.touring-route-options) *::selection {
  color:#061e22;
  background:#f3e28d;
}
html[data-touring-mode="night"] .tt-eval .btn:not(:disabled),
html[data-touring-mode="night"] .touring-route-tools button:not(:disabled) {
  opacity:1;
}
