/* Presentation layer shared by the local preview and reviewed publication.
   Map palettes, scientific values and timestamps remain canonical. */
html[data-design-preview] {
  --design-line: #dbe4e4;
  --design-accent: #287f90;
  --design-shadow: 0 4px 16px rgba(15, 43, 57, .1);
  --design-radius: 12px;
  --design-header-ink: #102c3d;
  --design-header-line: #dbe4e4;
  --design-header-accent: #81e4f0;
  --design-ui-font: 'Swelle Manrope', 'Segoe UI', sans-serif;
}
html[data-design-preview] .brand-version {
  color: #166479; background: #e5f4f3; border-color: #badedc;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
}
html[data-design-preview] .topbar { box-shadow: none; }
/* One favorites list, presented below the header without covering the map. */
html[data-design-preview] .favorites-bar {
  display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 28px;
  background: #fff; color: var(--design-header-ink); border-bottom: 1px solid var(--design-header-line);
  font: 700 13px var(--design-ui-font); letter-spacing: -.015em;
}
.favorites-bar-title { display: flex; align-items: center; gap: 8px; flex: none; min-height: 36px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: #101820; white-space: nowrap; }
.favorites-bar-title svg { width: 20px; height: 20px; }
.favorites-bar-title[aria-expanded="true"] { background: #f2f5f6; }
.favorites-bar-list { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.favorites-bar-list:empty { display: none; }
.favorites-bar-list > li { flex: none; }
.favorites-bar button { font: inherit; letter-spacing: inherit; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease; }
.favorite-spot { max-width: 200px; min-height: 36px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 14px; border: 1px solid var(--design-header-line); border-radius: 10px; background: #fff; color: var(--design-header-ink); }
.favorite-spot:hover { background: #dff7fa; border-color: #81dbe6; }
.favorites-bar-add { display: flex; align-items: center; gap: 8px; flex: none; min-height: 36px; margin-left: 0; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: #101820; white-space: nowrap; }
.favorites-bar-add svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.favorites-bar-title:hover { background: #f2f5f6; }
.favorites-bar-add:hover { background: #f2f5f6; }
.favorites-bar-add:disabled { opacity: .5; cursor: not-allowed; }
.spots-maintenance-notice {
  position: fixed; z-index: 3000; top: 124px; left: 24px;
  padding: 12px 17px; border: 1px solid #dce5e9; border-radius: 12px;
  background: #fff; color: #263d4c; box-shadow: 0 6px 24px #18334124;
  font: 600 13px/1.4 'Swelle Manrope', 'Segoe UI', sans-serif;
  pointer-events: none; max-width: calc(100vw - 48px);
}
.spots-maintenance-notice[hidden] { display: none; }
/* Header colours are global, before responsive layout rules. */
html[data-design-preview][data-ui-theme] .topbar {
  background: #fff; color: var(--design-header-ink); border-color: var(--design-header-line);
}
html[data-design-preview][data-ui-theme] .topbar .contact-link {
  background: var(--design-header-accent); color: var(--design-header-ink); border-color: var(--design-header-accent);
}
@media (min-width: 601px) {
  html[data-design-preview] body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; }
  html[data-design-preview] body > .topbar, html[data-design-preview] body > .favorites-bar { flex-shrink: 0; }
  html[data-design-preview] body > .layout { flex: 1; min-height: 0; height: auto; }
}
@media (max-width: 900px), (max-width: 1100px) and (max-height: 520px) {
  html[data-design-preview] .favorites-bar { position: absolute; z-index: 1899; top: calc(76px + env(safe-area-inset-top, 0px)); left: 10px; right: 10px; height: 44px; gap: 8px; padding: 0 10px; border: 1px solid #dbe4e4; border-radius: 12px; }
  .favorites-bar-title { gap: 5px; padding: 5px 8px; }
  .favorite-spot, .favorites-bar-add { min-height: 34px; padding: 5px 10px; }
  html[data-design-preview] body > .layout { flex: none; height: 100vh; height: 100dvh; }
}
html[data-design-preview] .topbar .header-theme-toggle {
  display: flex; align-items: center; justify-content: space-between; flex: 0 0 82px;
  width: 82px; height: 36px; box-sizing: border-box; padding: 4px;
  gap: 0; border: 0; border-radius: 999px; background: #d6d6d6;
}
html[data-design-preview] .topbar .header-theme-toggle .land-theme-option {
  display: flex; align-items: center; justify-content: center; flex: 0 0 28px;
  width: 28px; height: 28px; min-height: 0; padding: 0; margin: 0;
  border: 0; border-radius: 50%; background: transparent; color: #919191;
  box-shadow: none; cursor: pointer;
}
html[data-design-preview] .topbar .header-theme-toggle .land-theme-option.is-active {
  background: #fff; color: #737373; box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
html[data-design-preview] .header-theme-toggle svg { width: 20px; height: 20px; }
html[data-design-preview] .header-theme-toggle [data-land-theme-choice="light"] svg {
  fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
html[data-design-preview] .header-theme-toggle [data-land-theme-choice="dark"] svg { fill: currentColor; stroke: none; }
html[data-design-preview] .header-theme-toggle button:focus-visible { outline: 2px solid #287f90; outline-offset: 2px; }
html[data-design-preview] .spots-live-dot { fill: #ff1937; stroke: none; }
@media (prefers-reduced-motion: no-preference) {
  html[data-design-preview] .spots-live-dot { animation: spots-live-pulse 2.4s ease-in-out infinite; }
}
@keyframes spots-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
/* Original artwork: trim its white margins while preserving the whole drawing. */
html[data-design-preview] .brand-logo-test {
  display: block; position: relative; overflow: hidden; flex: none;
  width: 194px; height: 60px; background: transparent;
}
html[data-design-preview] .brand-logo-test img {
  display: block; position: absolute; width: 110%; max-width: none; height: auto;
  left: -5%; top: 50%; transform: translateY(-50%); image-rendering: auto;
}
@media (max-width: 600px) {
  html[data-design-preview] .brand-logo-test { width: 152px; height: 48px; }
}
/* Desktop inherits the current site's original brand typography. */
@media (max-width: 900px) {
  html[data-design-preview] .brand-name { font-weight: 750; letter-spacing: .14em; }
}
html[data-design-preview] .contact-link { border-radius: 10px; box-shadow: none; }
html[data-design-preview] .map-controls {
  border-radius: var(--design-radius); box-shadow: none;
}
html[data-design-preview] .map-controls .layer-controls-heading strong {
  font-weight: 700; letter-spacing: .045em; font-size: 13px;
}
html[data-design-preview] .map-controls .visual-setting-title strong {
  font-weight: 650; letter-spacing: .045em; font-size: 11px;
}
html[data-design-preview] .map-controls .visual-option {
  border-radius: 8px; box-shadow: none; font-weight: 600; font-size: 12px;
}
html[data-design-preview] .map-controls .visual-option.is-active {
  background: #e1f2f1; color: #123f4c; border-color: #80babd; box-shadow: none;
}
html[data-design-preview] .map-controls .visual-option svg { width: 20px; height: 20px; }
html[data-design-preview] .flow-color-setting { border-radius: 8px; }
html[data-design-preview] .map-markers-setting .visibility-copy strong { font-weight: 600; }
html[data-design-preview] .land-theme-preview { border-radius: 8px; }
html[data-design-preview] .map-shell > .map-scale-overlay {
  box-shadow: var(--design-shadow); border-radius: 12px;
}
html[data-design-preview] .map-shell > .map-scale-overlay .scale-tick-minor { display: none; }
html[data-design-preview] .wave-point-popup .leaflet-popup-content-wrapper,
html[data-design-preview] .buoy-summary-popup .leaflet-popup-content-wrapper {
  border-radius: 14px; box-shadow: 0 12px 32px rgba(15, 43, 57, .18);
}
html[data-design-preview] .wave-point-card { padding: 16px; }
html[data-design-preview] .wave-point-head > span { font-weight: 650; font-size: 12px; letter-spacing: .025em; }
html[data-design-preview] .wave-point-facts > div { padding-block: 10px; }
html[data-design-preview] .wave-point-facts strong { font-weight: 650; font-variant-numeric: tabular-nums; }
html[data-design-preview] .wave-point-fact-primary strong { font-weight: 750; }
html[data-design-preview] .wave-point-facts .wave-point-fact-primary strong { font-size: 26px; }
html[data-design-preview] .wave-point-advanced > summary,
html[data-design-preview] .point-tide-disclosure > summary {
  border-radius: 8px; font-weight: 600; min-height: 44px;
}
html[data-design-preview] .forecast-table-hour { font-weight: 500; }
html[data-design-preview] .forecast-table { grid-template-rows: 60px repeat(6, minmax(30px, auto)); }
html[data-design-preview] .forecast-table-label {
  min-width: 0; white-space: normal; overflow-wrap: anywhere;
  font-weight: 600; line-height: 1.35;
}
html[data-design-preview] .forecast-table-cell strong { font-weight: 600; font-variant-numeric: tabular-nums; }
html[data-design-preview] :is(button, summary, a, input):focus-visible { outline: 2px solid #287f90; outline-offset: 3px; }
.design-mobile-tools { display: none; }
.design-header-spots { display: none; }
html[data-design-preview] .design-components { margin: 12px 0; padding-top: 12px; border-top: 1px solid var(--ui-border, #34515f); }
html[data-design-preview] .design-components h3 { margin: 0 0 10px; font-size: 12px; font-weight: 650; }
html[data-design-preview] .wave-point-card:has(.wave-point-advanced[open], .point-tide-disclosure[open]) .design-components { display: none; }
html[data-design-preview] .design-component,
html[data-design-preview] .design-components-head { display: grid; grid-template-columns: 1.6fr .8fr .8fr 1fr; gap: 6px; align-items: center; font-size: 11px; line-height: 1.4; }
html[data-design-preview] .design-component { padding-block: 8px; border-bottom: 1px solid var(--ui-border, #34515f); }
html[data-design-preview] .design-component strong { font-weight: 650; }
html[data-design-preview] .design-components-head { color: var(--ui-muted, #a9bfcc); font-size: 10px; }
html[data-design-preview] .design-component.is-unavailable { grid-template-columns: 1.6fr 2.6fr; }
html[data-design-preview] .design-component small { font-size: 11px; color: var(--ui-muted, #a9bfcc); }
html[data-design-preview] .design-forecast-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
html[data-design-preview] .design-forecast-toolbar :is(button, select) {
  min-height: 44px; border: 1px solid var(--ui-border, #34515f); border-radius: 8px;
  color: var(--ui-ink, #edf8fc); background: var(--ui-surface, #102b3b); font: inherit;
}
html[data-design-preview] .design-forecast-toolbar select { flex: 1; min-width: 0; padding-inline: 10px; font-size: 12px; }
html[data-design-preview] .design-forecast-toolbar button { width: 44px; flex: none; font-size: 24px; }
html[data-design-preview] .design-forecast-toolbar button:disabled { opacity: .35; }
html[data-design-preview] .design-forecast-status { margin: 8px 0 0; font-size: 11px; line-height: 1.5; color: var(--ui-muted, #a9bfcc); }
html[data-design-preview] .forecast-table [hidden] { display: none !important; }
html[data-design-preview] .wave-point-popup:has(.wave-point-advanced[open]) .leaflet-popup-content { width: min(600px, var(--point-popup-max-width, 600px), calc(100vw - 46px)) !important; }
html[data-design-preview] .forecast-table { --forecast-label-width: 124px; --forecast-cell-width: 60px; }
/* Keep the original buoy artwork from the current interface in the draft. */
html[data-design-preview] .buoy-icon {
  width: 44px !important;
  height: 62px !important;
  border: 0 !important;
  background: transparent !important;
  filter: drop-shadow(0 2px 2px rgba(24, 51, 65, .28));
}
html[data-design-preview] .buoy-img {
  display: block;
  width: 44px;
  height: 62px;
  object-fit: contain;
  visibility: visible;
  pointer-events: none;
  user-select: none;
}
html[data-design-preview] .buoy-flash { visibility: visible; }
html[data-design-preview] .buoy-icon::after { content: none; }

/* Marine instruments: one primary layer, four secondary choices, quiet settings.
   No extra runtime, font downloads or map/event-handler changes. */
html[data-design-preview] .side-panel { background: #f2f3ef; }
html[data-design-preview] .side-panel .map-controls {
  background: #fffefa; border: 1px solid #dde3df; border-radius: 18px;
  color: #173c49; overflow: hidden;
}
html[data-design-preview] .side-panel .layer-controls-heading {
  min-height: 44px; gap: 10px; border-color: #e3e8e2;
}
html[data-design-preview] .side-panel .layer-controls-heading strong {
  font-size: 14px; font-weight: 750; letter-spacing: .035em; color: #173c49;
}
html[data-design-preview] .side-panel .sidebar-chevron { width: 17px; height: 17px; color: #60818a; }
html[data-design-preview] .side-panel .visual-setting {
  background: none; border: 0; border-radius: 0; padding-inline: 0;
}
html[data-design-preview] .side-panel .visual-setting + .visual-setting {
  margin-top: 6px; border-top: 1px solid #e3e8e2; padding-top: 20px;
}
html[data-design-preview] .side-panel .visual-setting-title { justify-content: space-between; margin-bottom: 10px; }
html[data-design-preview] .side-panel .visual-setting-title strong {
  color: #557681; text-transform: uppercase; font-size: 10px; font-weight: 700; letter-spacing: .12em;
}
html[data-design-preview] .side-panel .visual-setting-title small {
  color: #748a91; font-size: 10px; text-transform: none; font-weight: 500; letter-spacing: 0;
}
html[data-design-preview] .side-panel .visual-options-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
html[data-design-preview] .side-panel .visual-options-5 > * { grid-column: auto; }
html[data-design-preview] .side-panel .visual-options-5 > :first-child {
  grid-column: 1 / -1; justify-content: flex-start; padding-inline: 13px; min-height: 54px;
}
html[data-design-preview] .side-panel .visual-option {
  min-height: 46px; flex-direction: row; gap: 8px; padding: 10px;
  background: #f7f8f4; border: 1px solid #e1e7e2; color: #264957;
  border-radius: 10px; font-size: 12px; font-weight: 600; box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
html[data-design-preview] .side-panel .visual-option:hover { background: #edf4f0; border-color: #a6c6c3; transform: none; }
html[data-design-preview] .side-panel .visual-option.is-active {
  background: #dcefee; border-color: #75afb2; color: #123f4c;
}
html[data-design-preview] .side-panel .visual-option:is(:disabled, .is-disabled) { opacity: .45; cursor: not-allowed; }
html[data-design-preview] .side-panel .visual-option svg { width: 19px; height: 19px; stroke-width: 1.6; }
html[data-design-preview] .side-panel .design-unit {
  margin-left: auto; font-size: 10px; font-weight: 600; color: #517880; white-space: nowrap;
}
html[data-design-preview] .side-panel .flow-options {
  padding: 4px; gap: 3px; border: 1px solid #e1e7e2; border-radius: 12px; background: #f1f4ef;
}
html[data-design-preview] .side-panel .flow-options .visual-option {
  flex-direction: column; gap: 5px; min-height: 56px; padding: 6px 2px; border-color: transparent;
  font-size: 10px; background: transparent; border-radius: 8px;
}
html[data-design-preview] .side-panel .flow-options .visual-option.is-active {
  background: #fffefa; border-color: #d3e0db; color: #163f4e;
}
html[data-design-preview] .side-panel .flow-color-setting {
  padding: 4px 0; background: none; border: 0; color: #557681; font-weight: 500; font-size: 11px;
}
html[data-design-preview] .side-panel .flow-color-setting input { width: 44px; height: 36px; background: #fff; border-color: #ceded9; }
html[data-design-preview] .side-panel .land-theme-options { gap: 8px; }
html[data-design-preview] .side-panel .land-theme-option { padding: 0; box-shadow: none; font-size: 11px; }
html[data-design-preview] .side-panel .land-theme-preview { box-shadow: none; height: 40px; border-radius: 8px; }
html[data-design-preview] .side-panel .visibility-toggle { min-height: 48px; padding: 8px 0; border: 0; background: none; gap: 8px; }
html[data-design-preview] .side-panel .visibility-copy strong {
  color: #264957; white-space: normal; overflow: visible; text-overflow: clip; font-size: 11px; line-height: 1.45; font-weight: 550;
}
html[data-design-preview] .side-panel .visibility-icon { width: 26px; height: 26px; background: none; color: #65858d; border: 0; }
html[data-design-preview] .side-panel .toggle-ui { width: 32px; height: 18px; flex: none; box-shadow: none; background: #3c8e9a; border-color: #3c8e9a; }
html[data-design-preview] .side-panel .toggle-ui i { top: 2px; left: 16px; width: 12px; height: 12px; background: #fff; box-shadow: none; }
html[data-design-preview] .side-panel .visibility-toggle.is-off .toggle-ui { background: #d3dedb; border-color: #c0ceca; }
html[data-design-preview] .side-panel .visibility-toggle.is-off .toggle-ui i { left: 2px; background: #fff; box-shadow: none; }
html[data-design-preview] .side-panel .visibility-toggle:has(input:focus-visible) { outline: 2px solid #287f90; outline-offset: 2px; border-radius: 6px; }
html[data-design-preview] .side-panel .spots-add {
  min-height: 46px; border: 1px dashed #9ebdbb; border-radius: 10px;
  color: #255566; background: #eff6f2; box-shadow: none; font-size: 12px; font-weight: 600;
}

@media (min-width: 901px) {
  @font-face {
    font-family: 'Swelle Inter'; src: url('../fonts/InterVariable.woff2') format('woff2');
    font-style: normal; font-weight: 100 900; font-display: swap;
  }
  /* The land theme must not recolour the approved white header. */
  html[data-design-preview] .topbar {
    background: #fff; color: #102c3d; border-bottom-color: #dbe4e4; box-shadow: none;
  }
  @font-face {
    font-family: 'Swelle Manrope'; src: url('../fonts/ManropeVariable.woff2') format('woff2');
    font-style: normal; font-weight: 200 800; font-display: swap;
  }
  html[data-design-preview] body,
  html[data-design-preview] :is(.topbar, .side-panel, .map-scale-overlay, .wave-point-card, .buoy-summary-popup) {
    font-family: 'Swelle Manrope', 'Segoe UI', sans-serif;
  }
  html[data-design-preview] .topbar :is(button, input, .contact-link),
  html[data-design-preview] .side-panel :is(button, summary, input) {
    font-family: 'Swelle Manrope', 'Segoe UI', sans-serif;
  }
  html[data-design-preview] .side-panel .visual-options .visual-option { font-weight: 600; letter-spacing: .01em; }
  html[data-design-preview] .wave-point-card h3 {
    font-family: 'Swelle Manrope', 'Segoe UI', sans-serif;
    font-weight: 750; letter-spacing: -.02em;
  }
  /* Approved wordmark: keep independent from interface typography. */
  html[data-design-preview] .topbar .brand-name {
    font-family: 'Swelle Inter', 'Segoe UI', sans-serif;
    display: inline-block; font-size: 26px; font-weight: 900;
    font-style: italic; letter-spacing: -.055em; text-transform: none; line-height: 1;
    color: #000;
  }
  html[data-design-preview] .topbar .brand-lockup { gap: 8px; }
  html[data-design-preview] .topbar .brand-mark svg { fill: #81e4f0; }
  html[data-design-preview] .topbar .brand-tagline {
    font-family: 'Swelle Manrope', 'Segoe UI', sans-serif;
    font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.3;
    color: #354758; border-left-color: #d5dbdc;
  }
  html[data-design-preview] .topbar .contact-link {
    font-family: 'Swelle Manrope', 'Segoe UI', sans-serif;
    font-size: 13px; font-weight: 750; letter-spacing: -.01em;
    background: #81e4f0; color: #102c3d; border-color: #81e4f0; box-shadow: none;
  }
  html[data-design-preview] .topbar .contact-link svg { stroke: currentColor; }
  html[data-design-preview] .topbar .contact-link:hover,
  html[data-design-preview] .topbar .contact-link:focus-visible {
    background: #9bebf4; color: #102c3d; border-color: #81e4f0;
  }
  html[data-design-preview] #map-panel > .layer-controls-heading,
  html[data-design-preview] #map-panel > .visual-setting > .visual-setting-title { display: none; }
  html[data-design-preview] .design-flow-settings { margin-top: 8px; pointer-events: none; }
  html[data-design-preview] .design-flow-settings > summary {
    display: grid; place-items: center; width: 38px; height: 38px; padding: 8px;
    border-radius: 50%; color: #285873; background: #fffefa;
    box-shadow: 0 2px 6px rgba(10,28,41,.12); cursor: pointer; pointer-events: auto; list-style: none;
  }
  html[data-design-preview] .design-flow-settings > summary::-webkit-details-marker { display: none; }
  html[data-design-preview] .design-flow-settings > summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
  html[data-design-preview] .design-flow-settings > summary:focus-visible { outline: 2px solid #287f90; outline-offset: 3px; }
  html[data-design-preview] .design-flow-settings[open] > summary { background: #e1f2f1; }
  html[data-design-preview] .design-flow-body { margin-top: 8px; padding: 8px; border-radius: 14px; background: #fffefa; }
  html[data-design-preview] .design-flow-body .flow-setting > .visual-setting-title { display: none; }
  /* Floating instruments inspired by Nicolas' reference, not a second sidebar. */
  html[data-design-preview] .layout { position: relative; grid-template-columns: minmax(0, 1fr); }
  html[data-design-preview] .parent-return {
    background: #fffefa; color: #173c49; border-color: #dbe4e4;
    box-shadow: 0 2px 6px rgba(10,28,41,.12);
  }
  html[data-design-preview] .parent-return svg { color: #285873; stroke: currentColor; }
  html[data-design-preview] .side-panel {
    position: absolute; z-index: 1800; top: 84px; bottom: 124px; left: 16px; right: auto;
    width: 188px; height: auto; min-height: 0; padding: 0; gap: 10px;
    display: flex; flex-direction: column; background: transparent; border: 0; box-shadow: none;
    overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; pointer-events: none;
  }
  html[data-design-preview] .side-panel .map-controls {
    flex: none; padding: 0; margin: 0; background: transparent; border: 0;
    border-radius: 0; overflow: visible; box-shadow: none; pointer-events: none;
  }
  html[data-design-preview] .side-panel .layer-controls-heading {
    display: flex; min-height: 38px; padding: 3px 8px 3px 3px; margin: 0;
    width: 100%; max-width: 100%; gap: 9px; border: 0; border-radius: 999px;
    color: #173c49; background: #fffefa; pointer-events: auto;
    box-shadow: 0 2px 6px rgba(10,28,41,.12);
  }
  html[data-design-preview] .side-panel .layer-controls-heading strong {
    font-size: 12px; letter-spacing: .04em; color: #173c49;
  }
  html[data-design-preview] .side-panel .sidebar-chevron { width: 15px; height: 15px; color: #285873; }
  html[data-design-preview] .side-panel .layer-controls-heading strong { flex: 1; text-align: left; }
  html[data-design-preview] .side-panel .map-controls[open] > .layer-controls-heading {
    margin-bottom: 8px;
  }
  html[data-design-preview] .side-panel .mobile-panel-icon[hidden] {
    display: grid; place-items: center; width: 32px; height: 32px; flex: none;
    border-radius: 50%; background: #fffefa; color: #285873;
  }
  html[data-design-preview] .side-panel .mobile-panel-icon svg {
    width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7;
  }
  html[data-design-preview] .side-panel .visual-setting { padding: 6px 0; margin: 0; border: 0; }
  html[data-design-preview] .side-panel .visual-setting + .visual-setting { margin-top: 4px; border: 0; padding-top: 6px; }
  html[data-design-preview] .side-panel .visual-setting-title {
    width: max-content; margin: 0 0 6px; padding: 3px 8px; border-radius: 999px;
    background: #fffefa;
  }
  html[data-design-preview] .side-panel .visual-setting-title strong { color: #345c6a; font-size: 9px; letter-spacing: .08em; }
  html[data-design-preview] .side-panel .visual-setting-title small { display: none; }
  html[data-design-preview] .side-panel :is(.visual-options-5, .flow-options) {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 0; border: 0; background: transparent;
  }
  html[data-design-preview] .side-panel .visual-options .visual-option {
    display: flex; flex-direction: row; justify-content: flex-start; width: 100%;
    max-width: 100%; min-height: 36px; padding: 2px 8px 2px 2px; gap: 8px;
    border: 0; border-radius: 999px; background: #fffefa; color: #173c49;
    font-size: 12px; font-weight: 600; box-shadow: 0 2px 6px rgba(10,28,41,.12);
    pointer-events: auto;
  }
  html[data-design-preview] .side-panel .visual-options .visual-option svg {
    box-sizing: border-box; width: 32px; height: 32px; flex: none; padding: 7px;
    border-radius: 50%; color: #285873; background: #fffefa; stroke-width: 1.7;
  }
  html[data-design-preview] .side-panel .visual-options .visual-option.is-active {
    background: #e1f2f1; color: #123f4c; box-shadow: inset 0 0 0 1px #80babd;
  }
  html[data-design-preview] .side-panel .visual-options .visual-option.is-active svg { background: #ff7f61; color: #172f40; }
  html[data-design-preview] .side-panel .visual-options .visual-option:hover { background: #edf4f0; transform: none; }
  html[data-design-preview] .side-panel .visual-options .visual-option.is-active:hover { background: #e1f2f1; }
  html[data-design-preview] .side-panel .design-unit { display: none; }
  html[data-design-preview] .side-panel .flow-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4px; }
  html[data-design-preview] .side-panel .flow-options .visual-option {
    flex-direction: column; justify-content: center; gap: 4px; padding: 6px 2px; border-radius: 12px; font-size: 10px;
  }
  html[data-design-preview] .side-panel .flow-options .visual-option svg { width: 28px; height: 28px; padding: 6px; }
  html[data-design-preview] .side-panel .flow-color-setting {
    min-height: 36px; width: 100%; max-width: 100%; margin: 8px 0 0;
    padding: 3px 5px 3px 8px; gap: 8px; border-radius: 10px;
    color: #345c6a; background: #fffefa; pointer-events: auto; font-size: 10px;
  }
  html[data-design-preview] .side-panel .flow-color-setting input { width: 30px; height: 30px; border-radius: 50%; }
  html[data-design-preview] .side-panel .land-theme-options { pointer-events: auto; }
  html[data-design-preview] .side-panel .land-theme-option { color: #173c49; font-size: 11px; }
  html[data-design-preview] .side-panel .land-theme-preview { height: 36px; }
  html[data-design-preview] .side-panel .visibility-toggle { min-height: 40px; pointer-events: auto; }
  html[data-design-preview] .side-panel .visibility-copy strong { color: #173c49; }
  html[data-design-preview] .side-panel .visibility-icon { color: #345c6a; }
  html[data-design-preview] .side-panel .spots-body { pointer-events: auto; padding: 10px; border-radius: 14px; background: #fffefa; }
  html[data-design-preview] .side-panel .spots-status:empty { display: none; }
  html[data-design-preview] .design-header-spots { display: flex; flex: 1; min-width: 0; gap: 12px; align-items: center; margin-left: 0; }
  html[data-design-preview] .topbar > .brand,
  html[data-design-preview] .topbar > .contact-link { flex-shrink: 0; }
  html[data-design-preview] .topbar .design-header-spots button {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 40px; min-width: 122px; padding: 0 14px; border: 1px solid #dce6e9; border-radius: 12px;
    color: #000; background: #fff; flex-shrink: 0;
    font-family: 'Swelle Manrope', 'Segoe UI', sans-serif;
    font-size: 13px; font-weight: 700; letter-spacing: -.015em;
    white-space: nowrap; cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease;
  }
  html[data-design-preview] .topbar .design-header-spots button svg { width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: #cf263d; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  html[data-design-preview] .topbar .design-header-spots button:hover { background: #f1fcfd; }
  html[data-design-preview] .topbar .design-header-spots button[aria-expanded="true"] { background: #f1fcfd; border-color: #81e4f0; box-shadow: none; }
  html[data-design-preview] .topbar .design-header-spots button:focus-visible { outline: 2px solid #cf263d; outline-offset: 3px; }
  html[data-design-preview] .design-spot-search {
    position: relative; display: flex; align-items: center; flex: 1; min-width: 160px; height: 34px;
    padding: 0 14px; background: #e4e7ed; border: 0; border-radius: 999px; box-shadow: none;
  }
  html[data-design-preview] .design-spot-search svg { position: absolute; left: calc(50% - 51px); width: 16px; height: 16px; fill: none; stroke: #99a6b6; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
  html[data-design-preview] .design-spot-search input { width: 100%; min-width: 0; height: 100%; padding: 0 0 0 20px; border: 0; outline: 0; background: transparent; color: #173c49; font-size: 13px; font-weight: 500; text-align: center; }
  html[data-design-preview] .topbar .design-spot-search input { font-family: 'Swelle Manrope', 'Segoe UI', sans-serif; }
  html[data-design-preview] .design-spot-search input::placeholder { color: #8b99ad; opacity: 1; font-weight: 500; }
  html[data-design-preview] .design-spot-search:focus-within { outline: 2px solid #5aa6bd; outline-offset: 2px; box-shadow: none; }
  html[data-design-preview] .design-spot-search:focus-within svg,
  html[data-design-preview] .design-spot-search:has(input:not(:placeholder-shown)) svg { left: 14px; }
  html[data-design-preview] .design-spot-search:focus-within input,
  html[data-design-preview] .design-spot-search input:not(:placeholder-shown) { padding-left: 26px; text-align: left; }
  html[data-design-preview] #my-spots-panel { position: fixed; top: 70px; right: 24px; width: 340px; z-index: 2000; }
  html[data-design-preview] #my-spots-panel > summary { display: none; }
  html[data-design-preview] #my-spots-panel[open] > .spots-body {
    position: relative; z-index: 2; width: 100%; min-height: 320px;
    max-height: calc(100vh - 210px); padding: 20px;
    border-radius: 20px; background: #fff;
    box-shadow: 0 8px 24px rgba(13,39,56,.14); overflow-y: auto;
    animation: design-spots-enter 160ms ease-out;
  }
  html[data-design-preview] #my-spots-panel[open] .spots-list { display: none; }
  html[data-design-preview] #my-spots-panel[open][data-search-active] .spots-list { display: block; }
  html[data-design-preview] #my-spots-panel[open] .spots-status { display: none; }
  html[data-design-preview] #my-spots-panel[open] .spots-body:has(.spots-cancel:not([hidden])) .spots-status { display: block; }
  html[data-design-preview] #my-spots-panel .spots-add {
    min-height: 44px; border-style: solid; background: #eff6f5; border-radius: 12px;
  }
  /* Fill the useful map height, never the timeline; desktop draft only. */
  html[data-design-preview] .map-shell > .map-scale-overlay:not(.is-collapsed) {
    top: 12px; bottom: 124px; right: 8px; width: 96px; height: auto;
    padding: 10px 7px 14px; border-radius: 9px;
    background: #fffefa; color: #123645;
    display: flex; flex-direction: column; --scale-height: 100%;
  }
  html[data-design-preview] .map-shell > .map-scale-overlay > .panel-heading {
    flex: none; margin-bottom: 10px; gap: 3px;
  }
  html[data-design-preview] .map-shell > .map-scale-overlay .panel-heading p { font-size: 11px; line-height: 1.25; font-weight: 700; }
  html[data-design-preview] .map-shell > .map-scale-overlay .panel-heading span {
    min-width: 0; min-height: 0; font-size: 12px; padding: 0;
  }
  html[data-design-preview] .map-shell > .map-scale-overlay > .wave-scale { flex: 1; min-height: 0; height: auto; }
  html[data-design-preview] .map-shell > .map-scale-overlay .wave-scale i {
    width: 30px; flex-basis: 30px; height: 100%; border-width: 1px; border-radius: 5px;
  }
  html[data-design-preview] .map-shell > .map-scale-overlay .scale-ticks { height: 100%; margin-left: 5px; }
  html[data-design-preview] .map-shell > .map-scale-overlay .scale-ticks span {
    display: block; font-size: 14px; font-weight: 650; line-height: 1; color: #123645;
    font-variant-numeric: tabular-nums;
  }
  html[data-design-preview] .map-shell > .map-scale-overlay .scale-ticks span::before { width: 4px; margin-right: 3px; background: #597c88; }
  html[data-design-preview] .map-shell > .map-scale-overlay .scale-ticks .scale-tick-major { font-size: 15px; font-weight: 800; }
  html[data-design-preview] .map-shell > .map-scale-overlay .scale-ticks .scale-tick-major::before { width: 3px; }
  html[data-design-preview] .map-shell > .map-scale-overlay .map-scale-toggle { top: 0; right: 102px; }
  html[data-design-preview] .map-shell > .map-scale-overlay.is-collapsed .map-scale-toggle { right: 0; }
}
@keyframes design-spots-enter {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-design-preview] #my-spots-panel[open] > .spots-body { animation: none; }
}
@media (max-width: 900px) {
  html[data-design-preview] .design-flow-settings > summary { display: none; }
}
  @media (min-width: 901px) and (max-width: 1499px) {
    html[data-design-preview] .topbar .brand-tagline { display: none !important; }
    html[data-design-preview] .topbar .brand { min-width: 0; }
  }
  @media (min-width: 601px) and (max-width: 1100px) {
  html[data-design-preview] .brand-tagline { display: none; }
}
/* Phone presentation is centralized in mobile.css, loaded last. */
/* The relief prototype is deliberately desktop-only. */
/* Compact reference-style colour blocks; the palette itself is unchanged. */
@media (min-width: 901px) {
  html[data-design-preview] .map-shell > .map-scale-overlay:not(.is-collapsed) {
    top: calc(50% - 58px); bottom: auto; transform: translateY(-50%); right: 10px; width: 70px; height: auto;
    padding: 0; border: 0; border-radius: 0; background: transparent;
    box-shadow: none; display: block; backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  html[data-design-preview] .map-shell > .map-scale-overlay > .panel-heading {
    margin: 0 0 2px auto; width: 38px; gap: 0;
  }
  html[data-design-preview] .map-shell > .map-scale-overlay .panel-heading p {
    display: none;
  }
  html[data-design-preview] .map-shell > .map-scale-overlay .panel-heading span {
    display: block; width: 38px; padding: 4px 0; text-align: center;
    background: #fffefa; border-radius: 5px 5px 0 0; font-size: 11px;
  }
  html[data-design-preview] .map-shell > .map-scale-overlay > .wave-scale {
    width: 38px; height: auto; margin-left: auto;
  }
  html[data-design-preview] .map-shell > .map-scale-overlay .wave-scale i { display: none; }
  html[data-design-preview] .map-shell > .map-scale-overlay .scale-ticks {
    display: flex; flex-direction: column; height: auto; width: 38px;
    margin: 0; overflow-x: hidden; overflow-y: auto; border-radius: 0 0 5px 5px;
    max-height: max(72px, calc(100vh - 300px)); scrollbar-width: none;
  }
  html[data-design-preview] .map-shell > .map-scale-overlay .scale-ticks span,
  html[data-design-preview] .map-shell > .map-scale-overlay .scale-ticks .scale-tick-major {
    position: static; transform: none; display: flex; justify-content: center;
    align-items: center; height: clamp(14px, calc((100dvh - 225px) / var(--band-count, 21)), 19px);
    min-height: 14px; font-size: 12px;
    font-weight: 750; line-height: 1; background: var(--band-color);
    color: var(--band-ink); font-variant-numeric: tabular-nums;
  }
  html[data-design-preview] .map-shell > .map-scale-overlay .scale-ticks span::before { display: none; }
  html[data-design-preview] .map-shell > .map-scale-overlay .map-scale-toggle {
    top: -34px; right: 6px; width: 25px; height: 25px;
    background: #fff; color: #102c3d; border: 1px solid #dce6e9;
  }
  html[data-design-preview] .map-shell > .map-scale-overlay.is-collapsed .map-scale-toggle {
    top: 0; left: auto; right: 6px; width: 25px; height: 25px; padding: 4px;
    background: #fff; color: #102c3d; border: 1px solid #dce6e9;
  }
}
/* A lightweight, opaque first-view stage; no partial layers or working controls. */
.map-shell:is(.is-loading-map, .is-map-error) > :not(.map-startup-shield) { visibility: hidden; pointer-events: none; }
.layout:has(.map-shell:is(.is-loading-map, .is-map-error)) > :is(.side-panel, .forecast-timeline, .design-mobile-tools) { visibility: hidden; pointer-events: none; }
.map-startup-shield {
  z-index: 2200; overflow: hidden;
  background: radial-gradient(ellipse at 68% 30%, #276c7f 0%, #123e54 48%, #0a2335 100%);
}
.map-startup-card {
  display: flex; flex-direction: column; gap: 0; width: min(340px, calc(100% - 48px));
  padding: 30px 20px; border: 0; border-radius: 24px; box-shadow: none;
  background: transparent; color: #e8f6f8; text-align: center; font-weight: 500;
}
.startup-wireframe { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.startup-signature { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); color: #c4e5ea; font-size: 10px; font-weight: 650; letter-spacing: .38em; }
.map-shell.is-loading-map .map-startup-card { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-map-error .map-startup-card { position: relative; z-index: 1; background: #0d2a3ded; border: 1px solid #537f8e; }
.map-startup-card > strong { font-size: clamp(19px, 3vw, 23px); line-height: 1.3; letter-spacing: -.03em; font-weight: 750; }
.map-startup-card [data-startup-detail] { display: block; margin-top: 10px; font-size: 12px; line-height: 1.6; color: #b5d0da; letter-spacing: 0; }
.startup-retry { margin-top: 20px; padding: 10px 18px; border: 1px solid #a7c6d0; border-radius: 10px; background: #fff; color: #183e50; font: inherit; cursor: pointer; }
.startup-retry[hidden] { display: none; }
.is-map-error .startup-wireframe { opacity: .3; }
/* Hide paint, not layout: the eye keeps the same anchor at every viewport size. */
.map-scale-overlay.is-scale-hidden > :not(.map-scale-toggle) { visibility: hidden; pointer-events: none; }
.map-scale-overlay.is-scale-hidden .map-scale-toggle-slash { display: block; }
.map-theme-picker { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid #e4eaec; color: #183341; }
.map-theme-picker > h3 { margin: 0; font-size: 12px; font-weight: 750; line-height: 1.4; }
.hs-palette-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; }
.hs-palette-menu > button {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0;
  min-width: 0; padding: 10px 8px 8px; border: 1px solid #dce5e9; border-radius: 11px;
  background: #fff; color: #263d4c; font: inherit; text-align: left; cursor: pointer;
  transition: border-color 150ms, box-shadow 150ms;
}
.hs-palette-menu .theme-name { padding: 0 3px 10px; font-size: 11px; font-weight: 750; }
.hs-palette-menu .theme-spectrum { display: block; height: 18px; border-radius: 4px; margin: 0 3px; }
.theme-spectrum-ticks { position: relative; display: block; height: 11px; margin: 3px 3px 1px; color: #708591; font-size: 8px; font-variant-numeric: tabular-nums; }
.theme-spectrum-ticks > span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.theme-spectrum-ticks > span:first-child { transform: none; }
.theme-spectrum-ticks > span:last-child { transform: translateX(-100%); }
.hs-palette-menu > button:hover { border-color: #87bac6; box-shadow: 0 2px 8px #18334114; }
.hs-palette-menu > button[aria-pressed="true"] { background: #f0f9fa; border-color: #3694a5; box-shadow: 0 0 0 1px #3694a5; }
.hs-palette-menu > button[aria-pressed="true"]::after { content: '✓'; position: absolute; right: 8px; top: 8px; color: #226c7a; font-size: 12px; font-weight: 800; }
.hs-palette-menu > button:disabled { cursor: progress; opacity: .65; }
.map-theme-picker :focus-visible { outline: 2px solid #248eaa; outline-offset: 3px; }
.theme-status:empty { display: none; }
.theme-status { display: block; margin-top: 8px; font-size: 11px; }
@media (prefers-reduced-motion: reduce) { .map-theme-picker * { transition: none !important; } }
/* Desktop layer segments, matching the supplied horizontal reference. */
@media (min-width: 901px) {
  html[data-design-preview] .side-panel {
    top: 12px; right: 16px; left: auto; width: max-content; max-width: calc(100vw - 140px);
  }
  html[data-design-preview] #map-panel { position: relative; padding-right: 40px; }
  html[data-design-preview] .design-flow-settings {
    position: absolute; top: 10px; right: 0; width: 32px; max-width: none; margin: 0;
  }
  html[data-design-preview] .design-flow-settings > summary { margin-left: auto; }
  html[data-design-preview] .side-panel .visual-options-5 {
    flex-direction: row; align-items: center; gap: 3px; width: max-content; max-width: 100%;
    padding: 4px; border-radius: 12px; background: rgba(16, 44, 61, .88);
    box-shadow: 0 2px 8px rgba(6, 25, 37, .16);
  }
  html[data-design-preview] .side-panel .visual-options-5 .layer-option {
    width: auto; flex: 0 0 auto; min-height: 32px;
    padding: 6px 14px; gap: 0; border-radius: 8px; justify-content: center;
    background: transparent; color: #fffefa; font-size: 13px; font-weight: 700;
    white-space: nowrap; box-shadow: none;
  }
  html[data-design-preview] .side-panel .visual-options-5 .layer-option svg {
    display: none;
  }
  html[data-design-preview] .side-panel .visual-options-5 .layer-option.is-active,
  html[data-design-preview] .side-panel .visual-options-5 .layer-option.is-active:hover {
    background: #81e4f0; color: #102c3d; box-shadow: none;
  }
  html[data-design-preview] .side-panel .visual-options-5 .layer-option:hover {
    background: rgba(255,255,255,.1); color: #fffefa; transform: none;
  }
  html[data-design-preview] .side-panel .visual-options-5 .layer-option:focus-visible {
    outline: 2px solid #81e4f0; outline-offset: 2px;
  }
  html[data-design-preview] .design-flow-settings > summary {
    width: 32px; height: 32px; padding: 7px; color: #fffefa; background: #102c3d;
  }
  html[data-design-preview] .design-flow-settings[open] > summary {
    background: #1c4256; color: #fffefa;
  }
  html[data-design-preview] .design-flow-settings > summary svg { width: 18px; height: 18px; }
}
.design-relief-toggle { display: none; }
.design-flow-body .visibility-toggle input {
  position: static; opacity: 1; pointer-events: auto; width: 18px; height: 18px;
  margin-left: auto; flex-shrink: 0; accent-color: #102c3d;
}
.design-flow-body .land-theme-option svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
/* One visual coast for PC and phones, including combined wind/marine mode. */
html[data-design-preview] #map[data-land-theme="light"] .leaflet-coastline-pane path { stroke: #7c919e; stroke-opacity: .55; }
@media (min-width: 901px) {
  html[data-design-preview] .design-relief-toggle { display: flex; }
  /* Display coastline only: never outline the land fill's internal seams. */
  html[data-design-preview] #map[data-land-theme="dark"] .leaflet-coastline-pane path { stroke: #000; }
  html[data-design-preview] .design-flow-settings .design-flow-body {
    position: absolute; top: 100%; right: 0; width: 260px; box-sizing: border-box;
    padding: 16px; border: 1px solid #dce6e9; border-radius: 16px;
    background: #fffefa; color: #102c3d; pointer-events: auto;
    box-shadow: 0 8px 24px rgba(16,44,61,.14);
    max-height: calc(100dvh - 240px); overflow-y: auto;
  }
  html[data-design-preview] .design-flow-body .visual-setting { padding: 0; }
  html[data-design-preview] .design-flow-body .visual-setting + .visual-setting {
    margin-top: 16px; padding-top: 16px; border-top: 1px solid #e4eaec;
  }
  html[data-design-preview] .design-flow-body .visual-setting > .visual-setting-title {
    display: block; width: auto; padding: 0; margin: 0 0 10px; background: transparent;
  }
  html[data-design-preview] .design-flow-body .visual-setting-title strong {
    color: #102c3d; font-size: 12px; font-weight: 750; letter-spacing: 0; text-transform: none;
  }
  html[data-design-preview] .design-flow-body .flow-options { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-design-preview] .design-flow-body .flow-options .visual-option,
  html[data-design-preview] .design-flow-body .land-theme-option {
    min-height: 58px; padding: 8px 4px; border: 0; border-radius: 10px;
    background: #102c3d; color: #fff; box-shadow: none; font-size: 11px; font-weight: 650;
  }
  html[data-design-preview] .design-flow-body .flow-options .visual-option svg {
    width: 20px; height: 20px; padding: 0; border-radius: 0; background: transparent; color: inherit;
  }
  html[data-design-preview] .design-flow-body .flow-options .visual-option.is-active,
  html[data-design-preview] .design-flow-body .land-theme-option.is-active {
    background: #81e4f0; color: #102c3d; box-shadow: none;
  }
  html[data-design-preview] .design-flow-body .flow-options .visual-option.is-active svg { background: transparent; color: inherit; }
  html[data-design-preview] .design-flow-body .flow-options .visual-option:hover,
  html[data-design-preview] .design-flow-body .land-theme-option:hover { background: #1c4256; color: #fff; }
  html[data-design-preview] .design-flow-body .flow-options .visual-option.is-active:hover,
  html[data-design-preview] .design-flow-body .land-theme-option.is-active:hover { background: #9bebf4; color: #102c3d; }
  html[data-design-preview] .design-flow-body :is(.visual-option, .land-theme-option):focus-visible {
    outline: 2px solid #102c3d; outline-offset: 3px;
  }
  html[data-design-preview] .design-flow-body .flow-color-setting { font-size: 11px; padding: 0; background: transparent; }
  html[data-design-preview] .design-flow-body .land-theme-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  html[data-design-preview] .design-flow-body .land-theme-option { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; }
  html[data-design-preview] .design-flow-body .land-theme-option svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  html[data-design-preview] .design-flow-body .land-theme-option > span:last-child { margin: 0; }
  html[data-design-preview] .design-flow-body .marker-options { display: grid; gap: 8px; }
  html[data-design-preview] .design-flow-body .visibility-toggle { padding: 8px; border-radius: 10px; background: #f0f4f5; gap: 8px; cursor: pointer; }
  html[data-design-preview] .design-flow-body .visibility-copy strong { color: #102c3d; font-size: 11px; font-weight: 650; }
  html[data-design-preview] .design-flow-body .visibility-toggle input {
    position: static; opacity: 1; pointer-events: auto; appearance: none; width: 18px; height: 18px; flex: 0 0 18px;
    margin: 0 0 0 auto; border: 1.5px solid #78919d; border-radius: 5px; background: #fff; cursor: pointer;
  }
  html[data-design-preview] .design-flow-body .visibility-toggle input:checked {
    background: #81e4f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m4 9 3 3 7-7' fill='none' stroke='%23102c3d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
    border-color: #81e4f0;
  }
  html[data-design-preview] .design-flow-body .visibility-toggle input:focus-visible { outline: 2px solid #102c3d; outline-offset: 3px; }
}

/* One light card language for theme/motion only; marker controls stay untouched. */
html[data-design-preview] .design-flow-body .flow-setting .flow-options .visual-option {
  position: relative; min-height: 54px; padding: 9px 8px; gap: 6px;
  flex-direction: row; justify-content: flex-start;
  border: 1px solid #dce5e9; border-radius: 11px;
  background: #fff; color: #405967; box-shadow: none;
  font-size: 11px; font-weight: 650;
}
html[data-design-preview] .design-flow-body .flow-setting .flow-options .visual-option svg {
  width: 22px; height: 22px; padding: 0; background: none; color: #55818e;
}
html[data-design-preview] .design-flow-body .flow-setting .flow-options .visual-option:hover {
  background: #f6fafb; border-color: #87bac6; color: #263d4c; transform: none;
}
html[data-design-preview] .design-flow-body .flow-setting .flow-options .visual-option.is-active {
  background: #f0f9fa; border-color: #3694a5; box-shadow: 0 0 0 1px #3694a5; color: #183f4b;
}
html[data-design-preview] .design-flow-body .flow-setting .flow-options .visual-option.is-active svg { color: #227f90; }
html[data-design-preview] .design-flow-body .flow-setting .flow-options .visual-option.is-active::after {
  content: ''; position: absolute; right: 7px; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: #3694a5;
}
html[data-design-preview] .design-flow-body .flow-setting .flow-color-setting {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding: 9px 10px; min-height: 44px; box-sizing: border-box;
  border: 1px solid #dce5e9; border-radius: 11px; background: #f7fafb; color: #405967;
  font-size: 11px; font-weight: 550; cursor: pointer;
}
html[data-design-preview] .design-flow-body .flow-setting .flow-color-setting input {
  box-sizing: border-box; width: 28px; height: 28px; padding: 3px;
  border: 1px solid #cadce2; border-radius: 8px; background: #fff; cursor: pointer;
}
html[data-design-preview] .design-flow-body .flow-setting .flow-color-setting input::-webkit-color-swatch-wrapper { padding: 0; }
html[data-design-preview] .design-flow-body .flow-setting .flow-color-setting input::-webkit-color-swatch { border: 1px solid #dce5e9; border-radius: 4px; }

html[data-design-preview] .wind-model-setting { display: grid; gap: 0; }
html[data-design-preview] .layer-model-picker { position: relative; pointer-events: auto; grid-column: auto !important; padding: 0 !important; min-height: 0 !important; }
html[data-design-preview] .layer-model-picker > summary { list-style: none; cursor: pointer; }
html[data-design-preview] .layer-model-picker > summary::-webkit-details-marker { display: none; }
html[data-design-preview] .layer-model-picker[open] > summary { background: #81e4f0 !important; color: #102c3d !important; }
html[data-design-preview] .layer-model-menu {
  position: absolute; top: calc(100% + 5px); left: 0; z-index: 2100;
  width: 100%; box-sizing: border-box; overflow: hidden;
  padding: 3px; background: #fff; color: #102c3d; border: 1px solid #dce6e9;
  border-radius: 9px; box-shadow: 0 3px 10px rgba(7,30,40,.14); font-size: 11px;
}
html[data-design-preview] .layer-model-menu [hidden] { display: none !important; }
  /* Recolour only the displayed land alpha mask on every viewport,
     never marine raster pixels or the underlying scientific data. */
  html[data-design-preview] #map[data-land-theme="light"] .swan-land-cover {
    filter: url(#soft-land-light-tint) drop-shadow(0 0 0.7px rgba(255,255,255,.72));
  }
  html[data-design-preview] #map[data-land-theme="dark"] .swan-land-cover {
    filter: brightness(0) invert(26.27%) drop-shadow(0 0 0.7px rgba(0,0,0,.72));
  }
html[data-design-preview] .layer-model-menu .model-menu-option {
  display: block; width: 100%; min-height: 44px; padding: 6px 2px; margin: 0;
  border: 0; border-radius: 6px; background: transparent; color: #102c3d;
  font: inherit; font-weight: 650; line-height: 1.2; box-shadow: none;
  cursor: pointer; white-space: normal; transform: none;
}
html[data-design-preview] .layer-model-menu .model-menu-option:is(:hover, .is-selected) { background: #e1f7fa; }
html[data-design-preview] .layer-model-menu .model-menu-option:disabled { color: #899ba2; background: transparent; cursor: not-allowed; }
html[data-design-preview] .model-menu-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wind-forecast-provenance { margin: 8px 12px; font-size: 12px; line-height: 1.5; color: #385465; }
/* Country context: contrasted borders, distinct from muted red motorways. */
html[data-design-preview] #map.map-theme-dark .leaflet-mapDetails-pane .country-border-path {
  stroke: #525b60 !important; stroke-opacity: .6 !important; stroke-width: .65px !important; filter: none !important;
}
html[data-design-preview] #map.map-theme-light .leaflet-mapDetails-pane .country-border-path {
  stroke: #526979 !important; stroke-opacity: 1 !important; stroke-width: 1.8px !important; filter: none !important;
}
.map-city-label-icon { overflow: visible !important; pointer-events: none; }
.map-city-label {
  display: block; width: max-content; transform: translate(-50%, -50%);
  color: #405767; font-family: "Avenir Next", Avenir, Inter, "Segoe UI", sans-serif;
  font-size: 10px; font-weight: 650; letter-spacing: .07em; line-height: 1.2;
  text-transform: uppercase; white-space: nowrap; pointer-events: none;
  text-shadow: 1px 0 1px #e4eaed, -1px 0 1px #e4eaed, 0 1px 1px #e4eaed, 0 -1px 1px #e4eaed;
}

/* Map-only visual hierarchy. No filter is applied to marine data rasters. */
html[data-design-preview] #map[data-land-theme="light"],
html[data-design-preview] #map[data-land-theme="light"] .leaflet-map-pane { background-color: #e4eaed; }
html[data-design-preview] #map[data-land-theme="light"] .map-country-label {
  color: #263d4c; text-shadow: 0 0 2px #e4eaed;
}
html[data-design-preview] #map[data-land-theme="dark"] .map-city-label {
  color: #d5e3ea; text-shadow: 0 0 2px #30383d;
}
html[data-design-preview] .swan-zone-rect { filter: none !important; }
html[data-design-preview] #map-scale-overlay { filter: none; }
.map-city-anchor { position: absolute; left: -2px; top: -2px; width: 4px; height: 4px; border-radius: 50%; background: #405767; box-shadow: 0 0 0 1px #e4eaed; }
#map[data-land-theme="dark"] .map-city-anchor { background: #d5e3ea; box-shadow: 0 0 0 1px #434343; }

/* Dark land is separated by its fill and native mask, not an added black edge. */
html[data-design-preview] #map[data-land-theme="dark"] .leaflet-coastline-pane path,
html[data-design-preview] #map[data-land-theme="dark"] .leaflet-swanLandCover-pane path {
  stroke: none !important;
}
