
  /* Option F: a frame, border only, small rounded corners; its top 2px above the
     date row's middle (the date row's centre is 17px down the 52px bar), its foot
     5px off the bar's. */
  .time-slider-coverage.svelte-1vgzbzq {
    z-index: 0;
    top: 15px;
    bottom: 5px;
    border: 1.5px solid #1976d2;
    border-radius: 5px;
  }

  html.dark .time-slider-coverage.svelte-1vgzbzq { border-color: #60a5fa; }


  /* 1h/3h/6h/12h/1d forecast cadence toggle (moved from PoiFacilities, U4). */
  .resolution-toggle.svelte-a42hs2 {
      display: inline-flex;
      flex-shrink: 0;
      border: 1px solid var(--color-gray-200, #e5e7eb);
      border-radius: 9999px;
      overflow: hidden;
      background: var(--card-background, #fff);
  }

  .res-btn.svelte-a42hs2 {
      border: 0;
      background: transparent;
      padding: 2px 8px;
      font-size: 12px;
      font-weight: 600;
      line-height: 1.5;
      color: #6b7280;
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
  }

  .res-btn.active.svelte-a42hs2 {
      background: #1976d2;
      color: #fff;
  }

  html.dark .resolution-toggle.svelte-a42hs2 {
      border-color: #374151;
      background: #1f2937;
  }
  html.dark .res-btn.svelte-a42hs2 {
      color: #9ca3af;
  }
  html.dark .res-btn.active.svelte-a42hs2 {
      background: #60a5fa;
      color: #0b1220;
  }


  /* The tiles sit side by side and use the same number of lines,
     `--lines`, worked out in amenityRowLayout.ts from the row's width: the
     mooring tile fills its lines column by column, the facilities tile row
     by row, so the two stand the same height. The legend button sits at
     the row's end, vertically centred. Sizes here must match that file's
     constants; `--cell` and `--gap` come from it. */
  .amenity-row.svelte-1j1rtrh {
    display: flex;
    gap: 6px;
    align-items: stretch;
    padding: 8px 12px 8px 16px;
  }

  .amenity-tile.svelte-1j1rtrh {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 3px;
    border: 1px solid transparent;
    border-radius: 8px;
  }

  .column-grid.svelte-1j1rtrh {
    display: grid;
    grid-template-rows: repeat(var(--lines), var(--cell));
    grid-auto-columns: var(--cell);
    grid-auto-flow: column;
    gap: var(--gap);
  }

  .row-grid.svelte-1j1rtrh {
    display: grid;
    grid-template-columns: repeat(var(--facility-cols), var(--cell));
    grid-auto-rows: var(--cell);
    gap: var(--gap);
  }

  /* Mooring is about the water — a blue tint; facilities are ashore — a warm
     sand one. Different hues, not just shades, so the two read apart even
     where they sit side by side on one line. */
  .mooring-tile.svelte-1j1rtrh {
    background: #eff6ff;
    border-color: #dbeafe;
  }

  .facilities-tile.svelte-1j1rtrh {
    background: #fdf8ee;
    border-color: #f3e7c9;
  }

  .tile-separator.svelte-1j1rtrh {
    align-self: stretch;
    width: 1px;
    margin: 2px 4px;
    background: #bfdbfe;
  }

  .amenity-icon.svelte-1j1rtrh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--cell);
    height: var(--cell);
    padding: 0;
    cursor: help;
    background: transparent;
    border: 0;
    border-radius: 6px;
  }

  .amenity-icon.svelte-1j1rtrh:hover,
  .amenity-icon.svelte-1j1rtrh:focus-visible {
    background: rgb(255 255 255 / 85%);
    outline: none;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 10%);
  }

  .facility-icon.svelte-1j1rtrh {
    width: 26px;
    height: 26px;
  }

  .legend-button.svelte-1j1rtrh {
    display: inline-flex;
    flex-shrink: 0;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    margin-inline-start: auto;
    color: #6b7280;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 9999px;
  }

  .legend-button.svelte-1j1rtrh:hover {
    color: #374151;
    background: rgb(0 0 0 / 6%);
  }

  .legend-button.svelte-1j1rtrh .material-symbols-outlined:where(.svelte-1j1rtrh) {
    font-size: 20px;
  }

  .amenity-tooltip.svelte-1j1rtrh {
    position: fixed;
    z-index: 1600;
    max-width: 240px;
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1.35;
    color: #fff;
    text-align: center;
    pointer-events: none;
    background: rgb(17 24 39 / 92%);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
    transform: translate(-50%, -100%);
  }

  .amenity-tooltip.below.svelte-1j1rtrh {
    transform: translate(-50%, 0);
  }

  /* The header sticks while the list scrolls under it — on a phone the list
     runs two screens, and its close button must not scroll away. So the
     padding lives on the header and the body, not on the scrolling card. */
  .legend-header.svelte-1j1rtrh {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 18px 8px;
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
  }

  .legend-body.svelte-1j1rtrh {
    padding: 0 18px 18px;
  }

  .legend-header.svelte-1j1rtrh h2:where(.svelte-1j1rtrh) {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
  }

  .legend-header.svelte-1j1rtrh p:where(.svelte-1j1rtrh) {
    margin-top: 2px;
    font-size: 13px;
    color: #6b7280;
  }

  .legend-close.svelte-1j1rtrh {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #374151;
    cursor: pointer;
    background: #f3f4f6;
    border: 0;
    border-radius: 9999px;
  }

  .legend-section.svelte-1j1rtrh h3:where(.svelte-1j1rtrh) {
    margin: 14px 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .legend-section.svelte-1j1rtrh ul:where(.svelte-1j1rtrh) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 4px 12px;
  }

  .legend-section.svelte-1j1rtrh li:where(.svelte-1j1rtrh) {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
    opacity: 0.42;
  }

  .legend-section.svelte-1j1rtrh li:where(.svelte-1j1rtrh) .legend-icon:where(.svelte-1j1rtrh) {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    filter: grayscale(1);
  }

  .legend-section.svelte-1j1rtrh li.available:where(.svelte-1j1rtrh) {
    opacity: 1;
  }

  .legend-section.svelte-1j1rtrh li.available:where(.svelte-1j1rtrh) .legend-icon:where(.svelte-1j1rtrh) {
    filter: none;
  }

  .legend-section.svelte-1j1rtrh li.available:where(.svelte-1j1rtrh) .legend-icon.tone-mooring:where(.svelte-1j1rtrh) {
    background: #eff6ff;
    border-color: #93c5fd;
  }

  .legend-section.svelte-1j1rtrh li.available:where(.svelte-1j1rtrh) .legend-icon.tone-facility:where(.svelte-1j1rtrh) {
    background: #fdf8ee;
    border-color: #e9cf8c;
  }

  .legend-text.svelte-1j1rtrh {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .legend-label.svelte-1j1rtrh {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
  }

  .legend-meaning.svelte-1j1rtrh {
    font-size: 11.5px;
    line-height: 1.3;
    color: #6b7280;
  }

  /* Dark mode (class-based — html.dark), as the rest of the panel. */
  html.dark .mooring-tile.svelte-1j1rtrh {
    background: rgb(59 130 246 / 14%);
    border-color: rgb(59 130 246 / 30%);
  }

  html.dark .facilities-tile.svelte-1j1rtrh {
    background: rgb(217 170 80 / 13%);
    border-color: rgb(217 170 80 / 30%);
  }

  html.dark .tile-separator.svelte-1j1rtrh {
    background: rgb(59 130 246 / 40%);
  }

  html.dark .amenity-icon.svelte-1j1rtrh:hover,
  html.dark .amenity-icon.svelte-1j1rtrh:focus-visible {
    background: rgb(255 255 255 / 10%);
  }

  html.dark .facility-icon.svelte-1j1rtrh {
    /* The icon SVGs ship black-on-transparent. */
    filter: invert(1);
  }

  html.dark .legend-button.svelte-1j1rtrh {
    color: #9ca3af;
  }

  html.dark .legend-button.svelte-1j1rtrh:hover {
    color: #f3f4f6;
    background: rgb(255 255 255 / 10%);
  }

  html.dark .legend-header.svelte-1j1rtrh h2:where(.svelte-1j1rtrh),
  html.dark .legend-label.svelte-1j1rtrh {
    color: #f3f4f6;
  }

  html.dark .legend-header.svelte-1j1rtrh p:where(.svelte-1j1rtrh),
  html.dark .legend-meaning.svelte-1j1rtrh,
  html.dark .legend-section.svelte-1j1rtrh h3:where(.svelte-1j1rtrh) {
    color: #9ca3af;
  }

  html.dark .legend-header.svelte-1j1rtrh {
    background: #1f2937;
    border-bottom-color: #374151;
  }

  html.dark .legend-close.svelte-1j1rtrh {
    color: #f3f4f6;
    background: #374151;
  }

  html.dark .legend-section.svelte-1j1rtrh li:where(.svelte-1j1rtrh) .legend-icon:where(.svelte-1j1rtrh) {
    background: rgb(255 255 255 / 6%);
    border-color: rgb(255 255 255 / 12%);
  }

  /* The lit tiles need dark tints too: the light ones hide the icons, which
     are inverted to white above. */
  html.dark .legend-section.svelte-1j1rtrh li.available:where(.svelte-1j1rtrh) .legend-icon.tone-mooring:where(.svelte-1j1rtrh) {
    background: rgb(59 130 246 / 22%);
    border-color: rgb(96 165 250 / 60%);
  }

  html.dark .legend-section.svelte-1j1rtrh li.available:where(.svelte-1j1rtrh) .legend-icon.tone-facility:where(.svelte-1j1rtrh) {
    background: rgb(217 170 80 / 20%);
    border-color: rgb(217 170 80 / 55%);
  }

