
    .poi-action-icons.svelte-10larau {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 8px 0;
      width: 100%;
      box-sizing: border-box;
    }

    .action-row.svelte-10larau {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 12px;
      padding: 4px 12px;
      background-color: transparent;
      color: var(--color-text);
      cursor: pointer;
      transition: background-color 0.2s ease-in-out;
      border: 0;
      margin: 0;
      text-align: left;
      width: 100%;
    }

    .action-row.svelte-10larau:hover {
      background-color: var(--color-background-mute);
    }

    .icon-wrapper.svelte-10larau {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      flex-shrink: 0;
    }

    .action-title.svelte-10larau {
      font-size: 14px;
      color: var(--color-indigo-600);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;

      &:hover {
        text-decoration: underline;
      }
    }

    .action-row.svelte-10larau .logo:where(.svelte-10larau) {
      width: 32px;
      height: 32px;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
    }

    .action-row.youtube.svelte-10larau .logo:where(.svelte-10larau) {
      background-image: url('../../../map-graphics/youtube.png');
      background-size: 28px;
    }

    .action-row.navily.svelte-10larau .logo:where(.svelte-10larau) {
      background-image: url('../../../map-graphics/navily.png');
      background-size: 160px;
      background-position: -14px -6px;
    }

    .action-row.google-maps.svelte-10larau .logo:where(.svelte-10larau) {
      background-image: url('../../../map-graphics/maps.png');
      background-size: 58px;
    }

    .action-row.external.svelte-10larau .logo:where(.svelte-10larau) {
      background-image: url('../../../map-graphics/external.png');
      background-size: 22px;
    }

    @media (max-width: 600px) {
    }

    /* Dark mode (class-based — html.dark) */
    html.dark .action-row.svelte-10larau {
      color: #f3f4f6;
    }
    html.dark .action-row.svelte-10larau:hover {
      background-color: #374151;
    }
    html.dark .action-title.svelte-10larau {
      color: #93c5fd;
    }
    /* The external-link logo is a single-colour black PNG that vanishes on
       the dark panel; invert it to white. The Navily/YouTube/Google-Maps
       logos are full-colour bitmaps and stay untouched. */
    html.dark .action-row.external.svelte-10larau .logo:where(.svelte-10larau) {
      filter: invert(1);
    }


  .button-container.svelte-6v9ve9 {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 8px 0;
  }

  .google-place-button.svelte-6v9ve9 {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: #e8f0fe;
    color: #1a73e8;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.2s ease-in-out;
  }

  .google-place-button.svelte-6v9ve9:hover {
    background-color: #d2e3fc;
  }

  .google-place-button.svelte-6v9ve9:active {
    background-color: #c4d7f5;
  }

  .google-maps-logo.svelte-6v9ve9 {
    width: 20px;
    height: 20px;
    background-image: url('../../../map-graphics/maps.png');
    background-size: 52px;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
  }

  .button-text.svelte-6v9ve9 {
    white-space: nowrap;
  }

  .button-text.svelte-6v9ve9 strong:where(.svelte-6v9ve9) {
    font-weight: 600;
  }

  /* Class-based dark mode toggled by $lib/utils/theme.ts on <html class="dark">. */
  html.dark .google-place-button.svelte-6v9ve9 {
    background-color: #1e3a8a;
    color: #93c5fd;
  }
  html.dark .google-place-button.svelte-6v9ve9:hover {
    background-color: #1e40af;
  }
  html.dark .google-place-button.svelte-6v9ve9:active {
    background-color: #2563eb;
  }


  .contact-details.svelte-d5o650 {
    padding: 4px 10px;
    display: flex;
    flex-direction: column;
    row-gap: 12px;

    .contact-item:where(.svelte-d5o650) {
      display: flex;
      align-items: center;
      column-gap: 12px;
      font-size: 14px;
      color: var(--color-text);

      /* Phone/email fields: keep the original text inline with the swapped-in
         tokens, wrapping as a unit rather than stacking each on its own row. */
      .phone-field:where(.svelte-d5o650),
      .email-field:where(.svelte-d5o650) {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        white-space: pre-wrap;
      }

      /* R29 — a `.contact-item a` rule used to live here, forcing every link
         in this component (email, website, tel fallback) to `#0b57d0` with
         no underline. Its selector (0,1,1) out-specifies the single-class
         `.a-normal` (0,1,0) now on those anchors, so keeping the rule
         alongside the class would have made adding the class a no-op — the
         link would still render with this rule's colour. Removed outright
         rather than merged into `a-normal`, since nothing else in this
         component's markup wants an unstyled link. */
    }
  }

  /* Dark mode (class-based — html.dark) */
  html.dark .contact-details.svelte-d5o650 .contact-item:where(.svelte-d5o650) {
    color: #f3f4f6;
  }
  html.dark .contact-details.svelte-d5o650 .material-symbols-outlined:where(.svelte-d5o650) {
    color: #d1d5db;
  }


  .haven-score-graph.svelte-1ges2s0 {
    /* Horizontal drags are the scrub; vertical ones scroll the POI pane. */
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
    /* The score pill always floats above the line; at high scores it extends
       past the top of the plot frame. Let it draw there (it may overlap the
       slider above — acceptable) rather than being clipped. */
    overflow: visible;
  }

  .haven-score-graph.grabbing.svelte-1ges2s0 {
    cursor: grabbing;
  }

  .curve-layer.svelte-1ges2s0 {
    transition: transform 0.2s ease-out;
  }

  .curve-layer.dragging.svelte-1ges2s0 {
    transition: none;
  }

  /* Fill comes from the per-band alpha-ramp gradient (black); the theme strength
     is applied here as element opacity (× the gradient's 0→1→0 edge ramp). */
  .night-rect.svelte-1ges2s0 {
    opacity: 0.14;
  }

  .gridline.svelte-1ges2s0 {
    stroke: rgba(100, 116, 139, 0.35);
    stroke-width: 1;
  }

  .grid-label.svelte-1ges2s0 {
    font-size: 9px;
    font-family: sans-serif;
    fill: #64748b;
  }

  .axis-title.svelte-1ges2s0 {
    font-size: 9px;
    font-family: sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
    fill: #94a3b8;
  }

  .marker-line.svelte-1ges2s0 {
    stroke: rgba(100, 116, 139, 0.6);
    stroke-width: 1;
    stroke-dasharray: 3 3;
  }

  .score-pill-text.svelte-1ges2s0 {
    font-size: 11px;
    font-family: sans-serif;
    font-weight: 700;
    fill: #fff;
  }

  /* Dot + pill glide vertically between steps; instant while actively scrolling
     (mirrors .curve-layer so the dot tracks the line frame-for-frame mid-drag). */
  .marker-dot.svelte-1ges2s0 {
    transition: transform 0.2s ease-out;
  }

  .marker-dot.dragging.svelte-1ges2s0 {
    transition: none;
  }

  /* Dark mode overrides */
  html.dark .night-rect.svelte-1ges2s0 {
    /* Stronger on dark so the night band stays visible against dark bands. */
    opacity: 0.30;
  }

  html.dark .gridline.svelte-1ges2s0 {
    stroke: rgba(148, 163, 184, 0.25);
  }

  html.dark .grid-label.svelte-1ges2s0 {
    fill: #94a3b8;
  }

  html.dark .axis-title.svelte-1ges2s0 {
    fill: #64748b;
  }

  html.dark .marker-line.svelte-1ges2s0 {
    stroke: rgba(148, 163, 184, 0.5);
  }


  .tide-graph.svelte-fg23a6 {
    /* Horizontal drags scrub; vertical ones scroll the POI pane. */
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
    overflow: visible;
  }
  .tide-graph.grabbing.svelte-fg23a6 { cursor: grabbing; }
  .curve-layer.svelte-fg23a6 { transition: transform 0.2s ease-out; }
  .curve-layer.dragging.svelte-fg23a6 { transition: none; }
  .tide-line.svelte-fg23a6 {
    fill: none;
    stroke: #1976d2;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }
  .envelope-band.svelte-fg23a6 { fill: rgba(25, 118, 210, 0.14); }
  .beyond.svelte-fg23a6 { fill: rgba(100, 116, 139, 0.08); }
  .gridline.svelte-fg23a6 { stroke: rgba(100, 116, 139, 0.35); stroke-width: 1; }
  .gridline.zero.svelte-fg23a6 { stroke: rgba(100, 116, 139, 0.55); }
  .grid-label.svelte-fg23a6, .marker-label.svelte-fg23a6, .horizon-text.svelte-fg23a6 { font-size: 9px; font-family: sans-serif; fill: #64748b; }
  .axis-title.svelte-fg23a6 { font-size: 9px; font-family: sans-serif; font-weight: 600; letter-spacing: 0.3px; fill: #94a3b8; }
  .marker-line.svelte-fg23a6 { stroke: rgba(100, 116, 139, 0.6); stroke-width: 1; stroke-dasharray: 3 3; }
  .extreme-dot.svelte-fg23a6 { fill: #1976d2; }
  .readout-dot.svelte-fg23a6 { fill: #1976d2; stroke: white; stroke-width: 1.5; }
  .pill.svelte-fg23a6 { fill: #1976d2; }
  .pill-text.svelte-fg23a6 { font-size: 10px; font-family: sans-serif; font-weight: 700; fill: #fff; }
  html.dark .tide-line.svelte-fg23a6 { stroke: #60a5fa; }
  html.dark .extreme-dot.svelte-fg23a6, html.dark .readout-dot.svelte-fg23a6, html.dark .pill.svelte-fg23a6 { fill: #60a5fa; }
  html.dark .envelope-band.svelte-fg23a6 { fill: rgba(96, 165, 250, 0.18); }
  html.dark .gridline.svelte-fg23a6 { stroke: rgba(148, 163, 184, 0.25); }
  html.dark .grid-label.svelte-fg23a6, html.dark .marker-label.svelte-fg23a6, html.dark .horizon-text.svelte-fg23a6 { fill: #94a3b8; }
  html.dark .axis-title.svelte-fg23a6 { fill: #64748b; }
  html.dark .marker-line.svelte-fg23a6 { stroke: rgba(148, 163, 184, 0.5); }


  /* Same box as .haven-graph-container: the column's 8 px row gap + this 2 px
     padding = HavenScoreGraph's 10 px GAP_BRIDGE, which now meets this section. */
  .tide-container.svelte-1736t9f {
    position: relative;
    width: 100%;
    padding: 2px 0 0;
    box-sizing: border-box;
  }
  /* The reserved height is the content's, so with the 2 px padding on top the
     placeholder is exactly as tall as the section that replaces it. */
  .tide-placeholder.svelte-1736t9f { box-sizing: content-box; }
  /* Extends 8 px up, across the column's row gap, to meet the slider's night
     bands. This section's own 2 px top padding is already inside this box. */
  .tide-night.svelte-1736t9f {
    position: absolute;
    left: 0;
    right: 0;
    top: -8px;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
  }
  .tide-night-strip.svelte-1736t9f { position: absolute; inset: 0; transition: transform 0.2s ease-out; }
  .tide-night-strip.dragging.svelte-1736t9f { transition: none; }
  .tide-night-band.svelte-1736t9f { position: absolute; top: 0; bottom: 0; background: rgba(0, 0, 0, 0.14); }
  html.dark .tide-night-band.svelte-1736t9f { background: rgba(0, 0, 0, 0.3); }

  .tide-header.svelte-1736t9f, .tide-strip.svelte-1736t9f {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 11px;
    color: #475569;
  }
  .tide-header.svelte-1736t9f { background: none; border: 0; padding: 0 44px; cursor: pointer; }
  .tide-summary.svelte-1736t9f {
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
  }
  /* The same 44 px gutter per side as the header's padding: the strip has no
     padding, so this cap is its only gutter, clear of the 32 px chevron button. */
  .tide-strip.svelte-1736t9f .tide-summary:where(.svelte-1736t9f) { max-width: calc(100% - 88px); }
  .tide-chevron.svelte-1736t9f { position: absolute; right: 12px; font-size: 18px; }
  .tide-strip-scrub.svelte-1736t9f { position: absolute; inset: 0; touch-action: pan-y; cursor: pointer; }
  /* 32 px hit area — the facilities chevron's — overflowing the 20 px strip. */
  .tide-chevron-button.svelte-1736t9f {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    cursor: pointer;
  }
  .tide-graph-wrap.svelte-1736t9f { position: relative; z-index: 1; }
  .tide-credit.svelte-1736t9f {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    padding: 0 44px;
    background: none;
    border: 0;
    font-size: 9px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    cursor: pointer;
  }
  .tide-credit.expanded.svelte-1736t9f { white-space: normal; }
  html.dark .tide-header.svelte-1736t9f, html.dark .tide-strip.svelte-1736t9f { color: #cbd5e1; }
  html.dark .tide-credit.svelte-1736t9f { color: #64748b; }


    /* Three stacked rows, each closed off by a bottom border; the panel
       header's divider above is the first row's top border. */
    .poi-facilities-container.svelte-1l73rip {
        position: relative;
        width: 100%;
        font-size: 14px;
        color: var(--text-color);
        box-sizing: border-box;
    }

    .poi-section.svelte-1l73rip {
        border-bottom: 1px solid rgb(0 0 0 / 10%);
    }

    /* A whole-width button: the title, then (folded) the row's peek, then the
       chevron at the inline end. */
    .poi-section-header.svelte-1l73rip {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 10px;
        width: 100%;
        min-height: 44px;
        padding: 6px 12px 6px 16px;
        font: inherit;
        color: inherit;
        text-align: start;
        cursor: pointer;
        background: transparent;
        border: 0;
    }

    .poi-section-header.svelte-1l73rip:hover {
        background: rgb(0 0 0 / 3%);
    }

    .poi-section-header.svelte-1l73rip:focus-visible {
        outline: 2px solid #3b82f6;
        outline-offset: -2px;
    }

    .poi-section-title.svelte-1l73rip {
        flex-shrink: 0;
        font-size: 14px;
        font-weight: 600;
        color: #374151;
    }

    .poi-section-chevron.svelte-1l73rip {
        flex-shrink: 0;
        margin-inline-start: auto;
        font-size: 24px;
        color: var(--icon-color);
    }

    /* The folded row's peek fills the space between the title and the
       chevron and wraps onto a second line rather than crowding either. */
    .poi-section-peek.svelte-1l73rip {
        display: flex;
        flex: 1 1 auto;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 4px 12px;
        min-width: 0;
    }

    .contact-peek.svelte-1l73rip {
        gap: 8px;
        color: #6b7280;
    }

    /* Its own line, under the title and the chevron. */
    .weather-peek.svelte-1l73rip {
        flex-basis: 100%;
        justify-content: flex-start;
        gap: 4px 14px;
        padding-bottom: 2px;
    }

    .contact-peek.svelte-1l73rip .material-symbols-outlined:where(.svelte-1l73rip) {
        font-size: 18px;
    }

    .poi-section-body.svelte-1l73rip {
        padding: 2px 0 10px;
    }

    .weather-body.svelte-1l73rip {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 4px 3px 10px;
        /* Size container so the weather section can compress its internal
           gap at narrow widths (see @container below). */
        container-type: inline-size;
    }

    .peek-item.svelte-1l73rip {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }

    .peek-item.svelte-1l73rip .material-symbols-outlined:where(.svelte-1l73rip) {
        font-size: 18px;
    }

    .peek-day.svelte-1l73rip {
        font-size: 13px;
        color: #6b7280;
        white-space: nowrap;
    }

    .peek-muted.svelte-1l73rip {
        color: #9ca3af;
    }

    .peek-gust.svelte-1l73rip {
        margin-inline-start: 3px;
        font-size: 11px;
        font-weight: 700;
        color: #b45309;
    }

    .peek-unit.svelte-1l73rip {
        margin-inline-start: 1px;
        font-size: 11px;
        font-weight: 500;
        opacity: 0.75;
    }

    .peek-score.svelte-1l73rip {
        padding: 1px 6px;
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        border-radius: 9999px;
    }

    /* The map pills' bands (WeatherScorePill.ts). */
    .peek-score.band-green.svelte-1l73rip { background: #22c55e; }
    .peek-score.band-amber.svelte-1l73rip { background: #f59e0b; }
    .peek-score.band-red.svelte-1l73rip { background: #ef4444; }

    .peek-dash.svelte-1l73rip {
        margin: 0 2px;
        color: #6b7280;
    }

    .peek-tide.svelte-1l73rip {
        color: #0e7490;
    }

    .weather-wind-section.svelte-1l73rip {
        display: flex;
        flex-direction: row;
        /* stretch so the weather column spans the wind-rose height; that
           lets the 1h/3h toggle (item 13) pin to the bottom, level with
           the wind-rose legend, while the readout stays vertically centered. */
        align-items: stretch;
        gap: 35px; /* 40px to account for wind rose arrow length */
        justify-content: center;
    }

    /* Narrow panels: compress the inter-column gap (the weather column
       already renders above the rose arrows via z-index) — but NEVER stack
       the two columns (R12: temp/humidity never above the rose). */
    @container (max-width: 410px) {
        .weather-wind-section.svelte-1l73rip {
            gap: 12px;
        }
    }

    .weather-column.svelte-1l73rip {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 1; /* Render above wind rose arrows */
    }

    /* Wraps the WeatherDisplay so it centers in the space above the
       bottom-pinned 1h/3h toggle when the column is stretched. */
    .weather-display-wrap.svelte-1l73rip {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wind-rose-column.svelte-1l73rip {
        flex-shrink: 0;
    }

    .time-slider-container.svelte-1l73rip {
        width: 100%;
    }

    /* Item 14: haven score graph (havens only) */
    .haven-graph-container.svelte-1l73rip {
        width: 100%;
        padding: 2px 0 0;
    }

    /* Worst-gust note for coarse cadences (explains a low worst-case score) */
    .max-gust-note.svelte-1l73rip {
        display: inline-flex;
        align-items: center;
        gap: 3px;
        font-size: 11px;
        font-weight: 600;
        color: #b45309; /* amber-700 */
        white-space: nowrap;
    }
    .max-gust-note.svelte-1l73rip .material-symbols-outlined:where(.svelte-1l73rip) {
        font-size: 14px;
    }
    html.dark .max-gust-note.svelte-1l73rip {
        color: #fbbf24; /* amber-400 */
    }

    /* Forecast cadence toggle styles moved to CadenceControl.svelte (U4). */

    .weather-loading.svelte-1l73rip,
    .weather-error.svelte-1l73rip {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 16px;
        color: #666;
        font-size: 13px;
    }

    .weather-error.svelte-1l73rip {
        color: #999;
    }

    .spinning.svelte-1l73rip {
        animation: svelte-1l73rip-spin 1s linear infinite;
    }

    @keyframes svelte-1l73rip-spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    .inline-windrose.svelte-1l73rip {
        display: inline-flex;
        vertical-align: middle;
    }

    /* WindRose's minimized size carries side margins for the old icon strip. */
    .inline-windrose.svelte-1l73rip > div {
        margin: 0;
    }

    .weather-compact-icon.svelte-1l73rip {
        width: 22px;
        height: 22px;
    }

    .temp-compact.svelte-1l73rip {
        color: #333;
    }

    .wind-compact.svelte-1l73rip {
        color: #1976d2;
    }

    /* Dark mode (class-based — html.dark) */
    html.dark .poi-section.svelte-1l73rip {
        border-bottom-color: rgb(255 255 255 / 10%);
    }
    html.dark .poi-section-header.svelte-1l73rip:hover {
        background: rgb(255 255 255 / 4%);
    }
    html.dark .poi-section-title.svelte-1l73rip {
        color: #e5e7eb;
    }
    html.dark .material-symbols-outlined.svelte-1l73rip,
    html.dark .temp-compact.svelte-1l73rip {
        color: #f3f4f6;
    }
    html.dark .contact-peek.svelte-1l73rip .material-symbols-outlined:where(.svelte-1l73rip),
    html.dark .peek-day.svelte-1l73rip,
    html.dark .peek-dash.svelte-1l73rip {
        color: #9ca3af;
    }
    html.dark .wind-compact.svelte-1l73rip,
    html.dark .wind-compact.svelte-1l73rip .material-symbols-outlined:where(.svelte-1l73rip) {
        color: #60a5fa;
    }
    html.dark .peek-gust.svelte-1l73rip {
        color: #fbbf24;
    }
    html.dark .peek-tide.svelte-1l73rip,
    html.dark .peek-tide.svelte-1l73rip .material-symbols-outlined:where(.svelte-1l73rip) {
        color: #67e8f9;
    }
    html.dark .peek-muted.svelte-1l73rip {
        color: #6b7280;
    }


  .poi-share.svelte-1hj3f1v {
    position: relative;
    display: inline-flex;
  }

  .icon.share.svelte-1hj3f1v {
    border: 0;
    background: transparent;
    cursor: pointer;

    span:where(.svelte-1hj3f1v) {
      font-size: 28px;
    }
  }

  .poi-share-backdrop.svelte-1hj3f1v {
    position: fixed;
    inset: 0;
    z-index: 99;
    cursor: default;
    background: transparent;
    border: 0;
  }

  .poi-share-menu.svelte-1hj3f1v {
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    z-index: 100;
    min-width: 200px;
    margin-top: 6px;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgb(0 0 0 / 15%);
  }

  .poi-share-item.svelte-1hj3f1v {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: start;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border: none;
  }

  .poi-share-item.svelte-1hj3f1v:hover,
  .poi-share-item.svelte-1hj3f1v:focus-visible {
    background: #f5f5f5;
  }

  .poi-share-item.svelte-1hj3f1v:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
  }

  .poi-share-item.svelte-1hj3f1v .material-symbols-outlined:where(.svelte-1hj3f1v) {
    font-size: 20px;
    color: #666;
  }

  .dark .poi-share-menu.svelte-1hj3f1v {
    background: #1f2937;
  }

  .dark .poi-share-item.svelte-1hj3f1v {
    color: #e5e7eb;
    border-color: #374151;
  }

  .dark .poi-share-item.svelte-1hj3f1v:hover,
  .dark .poi-share-item.svelte-1hj3f1v:focus-visible {
    background: #374151;
  }

  .dark .poi-share-item.svelte-1hj3f1v .material-symbols-outlined:where(.svelte-1hj3f1v) {
    color: #9ca3af;
  }


  .teaser-editor.svelte-1bsnbzb { margin: 0.75rem 0; display: flex; flex-direction: column; gap: 0.35rem; }
  .teaser-label.svelte-1bsnbzb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8rem; font-weight: 600; }
  .teaser-edited.svelte-1bsnbzb { font-weight: 500; font-size: 0.7rem; padding: 0 0.4rem; border-radius: 999px; background: #e0f2fe; color: #075985; }
  .teaser-text.svelte-1bsnbzb { width: 100%; resize: vertical; font: inherit; font-size: 0.85rem; padding: 0.4rem; border: 1px solid #cbd5e1; border-radius: 0.375rem; color: inherit; background: transparent; }
  .teaser-foot.svelte-1bsnbzb { display: flex; justify-content: space-between; align-items: center; }
  .teaser-count.svelte-1bsnbzb { font-size: 0.75rem; color: #64748b; }
  .teaser-count.over.svelte-1bsnbzb { color: #b91c1c; font-weight: 600; }
  .teaser-save.svelte-1bsnbzb { font-size: 0.8rem; padding: 0.25rem 0.75rem; border-radius: 0.375rem; border: 1px solid #0369a1; background: #0369a1; color: #fff; cursor: pointer; }
  .teaser-save.svelte-1bsnbzb:disabled { opacity: 0.5; cursor: default; }
  .teaser-error.svelte-1bsnbzb { margin: 0; font-size: 0.8rem; color: #b91c1c; }


  .open-questions.svelte-onuewd { margin: 0.75rem 0; padding: 0.6rem 0.75rem; border: 1px solid #fcd34d; border-radius: 0.5rem; background: #fffbeb; color: #78350f; font-size: 0.85rem; }
  .open-questions-label.svelte-onuewd { display: flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.8rem; }
  .open-questions-label.svelte-onuewd .material-symbols-outlined:where(.svelte-onuewd) { font-size: 1.1rem; }
  .open-questions-team.svelte-onuewd { margin-left: auto; font-weight: 500; font-size: 0.7rem; padding: 0 0.4rem; border-radius: 999px; background: #fde68a; }
  ul.svelte-onuewd { margin: 0.35rem 0 0; padding-left: 1.1rem; list-style: disc; }
  li.svelte-onuewd + li:where(.svelte-onuewd) { margin-top: 0.2rem; }
  html.dark .open-questions.svelte-onuewd { background: #422006; border-color: #92400e; color: #fde68a; }
  html.dark .open-questions-team.svelte-onuewd { background: #92400e; color: #fef3c7; }


  .locale-pill-wrapper.svelte-16vdizi {
    position: relative;
    display: inline-flex;
    /* RTL-safe right-align: sits at the logical end of the parent flex row
       in both LTR and RTL. */
    margin-inline-start: auto;
  }

  .locale-pill.svelte-16vdizi {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    border: 1px solid rgb(0 0 0 / 12%);
    background: rgb(255 255 255 / 80%);
    color: #374151;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 120ms ease, opacity 120ms ease;
  }

  .locale-pill.svelte-16vdizi:hover {
    background: rgb(255 255 255 / 100%);
  }

  .locale-pill-disabled.svelte-16vdizi {
    opacity: 0.5;
    pointer-events: none;
    cursor: wait;
  }

  .locale-pill-code.svelte-16vdizi {
    line-height: 1.2;
  }

  .locale-pill-chevron.svelte-16vdizi {
    width: 12px;
    height: 12px;
    color: rgb(0 0 0 / 50%);
  }

  .locale-pill-spinner.svelte-16vdizi {
    font-size: 12px;
    animation: svelte-16vdizi-locale-pill-spin 1s linear infinite;
  }

  @keyframes svelte-16vdizi-locale-pill-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  .locale-pill-popover.svelte-16vdizi {
    /* FIXED, not absolute: the pill's hosts live inside SlidePanel's
       overflow-hidden box, which clips an in-panel popover on the mobile
       bottom sheet whichever direction it opens. The inline style written by
       measurePopover() carries top/left (and max-height when capped);
       placeLocalePopover keeps the RTL-aware inline-end anchoring the old
       `inset-inline-end: 0` provided. */
    position: fixed;
    z-index: 1010;
    min-width: 180px;
    padding: 4px;
    background: #fff;
    border: 1px solid rgb(0 0 0 / 8%);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
  }

  .locale-pill-option.svelte-16vdizi {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 10px;
    border: 0;
    background: transparent;
    color: #1f2937;
    font-size: 13px;
    text-align: start;
    cursor: pointer;
    border-radius: 4px;
  }

  .locale-pill-option.svelte-16vdizi:hover,
  .locale-pill-option.svelte-16vdizi:focus-visible {
    background: rgb(0 0 0 / 5%);
    outline: none;
  }

  .locale-pill-option-active.svelte-16vdizi {
    font-weight: 600;
  }

  .locale-pill-option-check.svelte-16vdizi {
    width: 14px;
    color: #2563eb;
  }

  .locale-pill-option-name.svelte-16vdizi {
    flex: 1;
  }

  .locale-pill-option-code.svelte-16vdizi {
    color: rgb(0 0 0 / 50%);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  /* Dark mode — match the rest of the map panels. */
  html.dark .locale-pill.svelte-16vdizi {
    background: rgb(31 41 55 / 80%);
    color: #e5e7eb;
    border-color: rgb(255 255 255 / 12%);
  }

  html.dark .locale-pill.svelte-16vdizi:hover {
    background: rgb(31 41 55 / 100%);
  }

  html.dark .locale-pill-chevron.svelte-16vdizi {
    color: rgb(255 255 255 / 50%);
  }

  html.dark .locale-pill-popover.svelte-16vdizi {
    background: #1f2937;
    border-color: rgb(255 255 255 / 12%);
    color: #e5e7eb;
  }

  html.dark .locale-pill-option.svelte-16vdizi {
    color: #e5e7eb;
  }

  html.dark .locale-pill-option.svelte-16vdizi:hover,
  html.dark .locale-pill-option.svelte-16vdizi:focus-visible {
    background: rgb(255 255 255 / 10%);
  }

.report-form {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Open Sans", sans-serif;
}

.report-header {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;

  h3 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
  }

  .back-arrow,
  .close-x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
  }
}

.report-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  overflow-y: auto;
}

.section-label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

/* Severity cards */
.severity-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.severity-card {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  transition: border-color 0.15s, background-color 0.15s;

  &:hover {
    background: #f9fafb;
  }

  &.selected {
    background: color-mix(in srgb, var(--card-color) 6%, white);
    border-color: var(--card-color);
  }
}

.severity-emoji {
  grid-row: 1 / -1;
  align-self: center;
  font-size: 22px;
}

.severity-label {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.severity-sublabel {
  font-size: 12px;
  color: #6b7280;
}

/* Description textarea */
textarea#report-description {
  box-sizing: border-box;
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 8px;

  &:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgb(59 130 246 / 20%);
  }
}

/* Photo upload */
.photo-buttons {
  display: flex;
  gap: 8px;
}

.upload-btn {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: background 0.15s;

  &:hover {
    background: #e5e7eb;
  }

  .material-symbols-outlined {
    font-size: 18px;
  }
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (width <= 400px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.photo-preview {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: white;
    cursor: pointer;
    background: rgb(239 68 68 / 90%);
    border: none;
    border-radius: 50%;

    .material-symbols-outlined {
      font-size: 16px;
    }
  }
}

/* Email field */
.email-subtitle {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* Photo upload consent notice (shown under the photo buttons in both modes) */
.photo-consent {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #6b7280;
}

.report-form input[type="text"],
.report-form input[type="email"] {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;

  &:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgb(59 130 246 / 20%);
  }
}

/* Error message */
.error-message {
  margin: 0;
  font-size: 13px;
  color: #ef4444;
}

/* Submit button */
.submit-button {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  margin-top: 8px;
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  background: #3b82f6;
  border: none;
  border-radius: 10px;
  transition: background 0.15s;

  &:hover:not(:disabled) {
    background: #2563eb;
  }

  &:disabled {
    cursor: not-allowed;
    background: #9ca3af;
  }

  .spinning {
    font-size: 18px;
    animation: spin 1s linear infinite;
  }
}

/* Success view */
.success-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;

  .success-icon {
    font-size: 48px;
  }

  h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
  }

  p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
  }

  .email-note {
    font-size: 13px;
    font-style: italic;
    color: #3b82f6;
  }
}

.back-button-full {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  padding: 10px 20px;
  margin-top: 16px;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3b82f6;
  cursor: pointer;
  background: white;
  border: 2px solid #3b82f6;
  border-radius: 10px;
  transition: background 0.15s;

  &:hover {
    background: #eff6ff;
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

  /* Dark mode (class-based — html.dark) lives here so :global() compiles. */
  html.dark .report-form,
  html.dark .severity-label {
    color: #f3f4f6;
  }
  html.dark .report-header {
    border-bottom-color: rgb(255 255 255 / 10%);
  }
  html.dark .report-header .back-arrow,
  html.dark .report-header .close-x {
    color: #f3f4f6;
    background: #374151;
  }
  html.dark .section-label {
    color: #e5e7eb;
  }
  html.dark .severity-card {
    color: #f3f4f6;
    background: #374151;
    border-color: #4b5563;
  }
  html.dark .severity-card:hover {
    background: #4b5563;
  }
  html.dark .severity-card.selected {
    background: color-mix(in srgb, var(--card-color) 18%, #374151);
    border-color: var(--card-color);
  }
  html.dark .severity-sublabel,
  html.dark .email-subtitle,
  html.dark .photo-consent,
  html.dark .success-view p {
    color: #9ca3af;
  }
  html.dark .report-form textarea#report-description,
  html.dark .report-form input[type="text"],
  html.dark .report-form input[type="email"] {
    color: #f3f4f6;
    background: #374151;
    border-color: #4b5563;
  }
  html.dark .report-form textarea#report-description::placeholder,
  html.dark .report-form input[type="text"]::placeholder,
  html.dark .report-form input[type="email"]::placeholder {
    color: #9ca3af;
  }
  html.dark .report-form textarea#report-description:focus,
  html.dark .report-form input[type="text"]:focus,
  html.dark .report-form input[type="email"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgb(59 130 246 / 35%);
  }
  html.dark .upload-btn {
    color: #f3f4f6;
    background: #374151;
    border-color: #4b5563;
  }
  html.dark .upload-btn:hover {
    background: #4b5563;
  }
  html.dark .error-message {
    color: #f87171;
  }
  html.dark .submit-button:disabled {
    background: #4b5563;
  }
  html.dark .success-view h3 {
    color: #f3f4f6;
  }
  html.dark .success-view .email-note,
  html.dark .back-button-full {
    color: #60a5fa;
  }
  html.dark .back-button-full {
    background: transparent;
    border-color: #60a5fa;
  }
  html.dark .back-button-full:hover {
    background: rgb(96 165 250 / 12%);
  }

.slide-panel {
  overflow: hidden;
  background-color: white;
  box-shadow: 0 -2px 10px rgb(0 0 0 / 10%);
  will-change: transform;
}

.slide-panel.portrait {
  border-radius: 20px 20px 0 0;
}

.slide-panel.landscape {
  border-radius: 0;
  box-shadow: -2px 0 10px rgb(0 0 0 / 10%);
}

/* Drag handle areas */
.drag-handle-area {
  flex-shrink: 0;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.drag-handle-area:active {
  cursor: grabbing;
}

/* Portrait: horizontal pill at top */
.portrait-handle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 28px;
}

.portrait-collapse-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #5f6368;
  touch-action: manipulation;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 50%;
  transform: translateY(-50%);
}

.portrait-collapse-btn:active {
  background-color: rgb(0 0 0 / 8%);
}

.portrait-collapse-btn .material-symbols-outlined {
  font-size: 22px;
}

.drag-pill {
  width: 36px;
  height: 4px;
  background-color: #dadce0;
  border-radius: 2px;
}

/* Landscape: vertical bar on left edge */
.landscape-handle {
  position: absolute;
  top: 0;
  left: -12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 100%;
}

.drag-bar {
  width: 4px;
  height: 48px;
  background-color: #dadce0;
  border-radius: 2px;
}

.landscape-handle:hover .drag-bar {
  background-color: #bbb;
}

.landscape-collapse-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #5f6368;
  touch-action: manipulation;
  cursor: pointer;
  background: transparent;
  border: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.landscape-collapse-btn:active {
  background-color: rgb(0 0 0 / 8%);
}

.landscape-collapse-btn .material-symbols-outlined {
  font-size: 20px;
}

/* Inner layout */
.slide-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.slide-panel.portrait .slide-panel-inner {
  height: calc(100% - 28px); /* subtract handle height */
}

.slide-panel-header {
  flex-shrink: 0;
}

.slide-panel-content {
  flex: 1;

  /* Contain scroll chaining so flinging past the end of the panel never
     scrolls the page/map behind it. */
  overflow: hidden auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Smooth max-height transition during snap animation */
.slide-panel.portrait.is-animating .slide-panel-inner {
  transition: max-height 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Disable scrollbar flicker during drag */
.slide-panel.is-dragging .slide-panel-content {
  overflow: hidden;
}

/* Dark-mode rules live inside SlidePanel.svelte's \3c style> block so :global()
   compiles correctly. */

  /* Dark mode lives here in the Svelte \3c style> block (not the imported CSS
     file) so :global() reliably reaches the compiler. Selectors use the
     class-based dark mode set up by $lib/utils/theme.ts on <html class="dark">. */
  html.dark .slide-panel {
    background-color: #1f2937;
    color: #f3f4f6;
    box-shadow: 0 -2px 10px rgb(0 0 0 / 50%);
  }
  html.dark .slide-panel.landscape {
    box-shadow: -2px 0 10px rgb(0 0 0 / 50%);
  }
  html.dark .drag-pill,
  html.dark .drag-bar {
    background-color: #4b5563;
  }
  html.dark .landscape-handle:hover .drag-bar {
    background-color: #6b7280;
  }
  html.dark .portrait-collapse-btn,
  html.dark .landscape-collapse-btn {
    color: #d1d5db;
  }
  html.dark .portrait-collapse-btn:active,
  html.dark .landscape-collapse-btn:active {
    background-color: rgb(255 255 255 / 8%);
  }


  /* The container every @container query below resolves against. The POI panel
     is a fixed-width rail in landscape and the window in portrait, so its width
     is a property of the PANEL and not of the viewport. */
  .wse.svelte-10r4ge5 {
      container-type: inline-size;
      container-name: wse;
      box-sizing: border-box;
      width: 100%;
      padding: 12px 16px;
      font-family: "Open Sans", sans-serif;
      font-size: 13px;
      line-height: 1.5;
      color: #333;
      border-bottom: 1px solid #eee;
  }

  .wse-title.svelte-10r4ge5 {
      margin: 0 0 4px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      color: #6b7280;
  }

  .wse-title-meta.svelte-10r4ge5 {
      /* Undoes the heading's own casing and weight rather than picking new
         ones: a date reads as a date, and an uppercased "Thu 17 Sep" is harder
         to scan than the thing it labels. Colour is deliberately NOT set, so
         the dark-mode rule on `.wse-title` carries it. */
      font-weight: 400;
      text-transform: none;
      letter-spacing: normal;
      /* The score keeps the heading's own weight (see `.wse-title-score`); only
         the period steps down, so the number stays as prominent as the pill it
         is explaining. */
      /* The period wraps like everything else here. Holding it on one line was
         tried and reverted: on the narrowest panel a long locale's date is
         wider than the column, so an unwrappable run would overflow where a
         wrapped one merely takes a second line. Nothing in this section clips —
         the source check below pins that for the whole file. */
      overflow-wrap: break-word;
  }

  .wse-title-score.svelte-10r4ge5 {
      /* The one number the whole section is about, so it carries the heading's
         weight back. Stated rather than inherited: `.wse-title-meta` sets 400
         on the span this sits inside, and inheriting would pick that up. */
      font-weight: 700;
  }

  .wse-verdict.svelte-10r4ge5 {
      /* Long locales wrap. Nothing here clips and nothing ellipsises: the
         verdict is the one line the section exists for. */
      margin: 0;
      font-size: 14px;
      overflow-wrap: break-word;
  }

  .wse-notes.svelte-10r4ge5 {
      margin: 8px 0 0;
      padding: 0;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 6px;
  }

  .wse-note.svelte-10r4ge5 {
      /* A fact about the PLACE, set off by a rule on its leading edge
         (inline-start, so it mirrors in Hebrew) rather than by an icon:
         nothing here is a control. On a narrow panel the pin note's two
         sentences stack; long locales wrap, and nothing clips. */
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding-inline-start: 8px;
      border-inline-start: 3px solid #b45309;
      overflow-wrap: break-word;
  }

  .wse-note.is-pin.svelte-10r4ge5 {
      /* Information, not a warning: the C1 advisory blue. */
      border-inline-start-color: #1e88e5;
  }

  .wse-levers.svelte-10r4ge5 {
      margin: 8px 0 0;
      padding: 0;
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 6px;
  }

  .wse-lever.svelte-10r4ge5 {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 2px;
  }

  .wse-lever-text.svelte-10r4ge5 {
      overflow-wrap: break-word;
  }

  .wse-lever-link.svelte-10r4ge5 {
      padding: 0;
      border: 0;
      background: none;
      font: inherit;
      color: #1976d2;
      text-align: start;
      text-decoration: underline;
      cursor: pointer;
  }

  .wse-actions.svelte-10r4ge5 {
      /* Every control in the section shares this line. `wrap` because at the
         narrowest container width three links plus a chevron do not fit — and
         in Hebrew or Greek two already do not — so the line must break rather
         than overflow; nothing in this section clips. The line's own top
         margin replaces the toggle's, which is why the toggle no longer
         carries one. */
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 16px;
      margin-top: 8px;
  }

  .wse-toggle.svelte-10r4ge5 {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 0;
      border: 0;
      background: none;
      font: inherit;
      font-weight: 600;
      color: #1976d2;
      cursor: pointer;
  }

  .wse-chevron.svelte-10r4ge5 {
      font-size: 18px;
      line-height: 1;
      transition: transform 0.15s;
  }

  .wse-toggle[aria-expanded="true"].svelte-10r4ge5 .wse-chevron:where(.svelte-10r4ge5) {
      transform: rotate(90deg);
  }

  /* RTL: the chevron points the other way before it rotates. */
  .wse[dir="rtl"].svelte-10r4ge5 .wse-chevron:where(.svelte-10r4ge5) {
      transform: rotate(180deg);
  }

  .wse[dir="rtl"].svelte-10r4ge5 .wse-toggle[aria-expanded="true"]:where(.svelte-10r4ge5) .wse-chevron:where(.svelte-10r4ge5) {
      transform: rotate(90deg);
  }

  .wse-breakdown.svelte-10r4ge5 {
      display: none;
  }

  .wse-breakdown.is-open.svelte-10r4ge5 {
      display: block;
      margin-top: 8px;
  }

  .wse-ledger.svelte-10r4ge5 {
      width: 100%;
      margin: 0;
      border-collapse: collapse;
      /* Auto layout on purpose: the value column is sized by its widest entry
         (see `.wse-ledger-title`'s width), which is what lets the values share
         one right edge. No breakpoint — a line is its title and its value on
         one row at EVERY width; the title wraps, the value never does. */
      table-layout: auto;
  }

  .wse-ledger-row.svelte-10r4ge5 > th:where(.svelte-10r4ge5),
  .wse-ledger-row.svelte-10r4ge5 > td:where(.svelte-10r4ge5) {
      padding: 2px 0;
      vertical-align: baseline;
  }

  .wse-ledger-title.svelte-10r4ge5 {
      /* 100% is the auto-layout idiom for "everything the other column does
         not need": the value column collapses to its widest entry and this one
         takes the rest, wrapping as it must. `th` defaults undone: a row
         header here is a label, not a heading. */
      width: 100%;
      font-weight: 400;
      text-align: start;
      color: #4b5563;
      overflow-wrap: break-word;
      padding-inline-end: 12px;
  }

  .wse-ledger-value.svelte-10r4ge5 {
      /* Physically right, in BOTH directions: the values are LTR numeric runs
         whatever the sentence direction, and their rightmost digits — the one
         beside the % — must sit on one vertical line. In RTL the column lands
         at the row's far end (the left) and the numbers align on its right,
         toward the title. */
      white-space: nowrap;
      text-align: right;
      font-variant-numeric: tabular-nums;
  }

  .wse-ledger-row.is-maximum.svelte-10r4ge5 .wse-ledger-title:where(.svelte-10r4ge5) {
      /* The opening balance is context, not a finding; it steps back so the
         deductions under it are what the eye lands on. */
      color: #6b7280;
  }

  .wse-ledger-row.is-total.svelte-10r4ge5 > th:where(.svelte-10r4ge5),
  .wse-ledger-row.is-total.svelte-10r4ge5 > td:where(.svelte-10r4ge5) {
      /* The rule sits on both cells so it runs the row's full width. */
      font-weight: 700;
      border-top: 1px solid #e5e7eb;
      padding-top: 5px;
  }

  .wse-ledger-row.is-total.svelte-10r4ge5 .wse-ledger-title:where(.svelte-10r4ge5) {
      color: inherit;
  }

  .wse-ledger-actions.svelte-10r4ge5 {
      /* The expansion's own control row, shaped like `.wse-actions` above it:
         wraps rather than overflows, the FAQ link last. */
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 6px 16px;
      margin-top: 8px;
  }

  .wse-faq.svelte-10r4ge5 {
      color: #1976d2;
  }

  .wse-caveat.svelte-10r4ge5 {
      margin: 8px 0 0;
      font-size: 12px;
      color: #6b7280;
      overflow-wrap: break-word;
  }

  /* The team line's feedback button: an inline icon riding the title's last
     line rather than a row of its own. */
  .wse-feedback.svelte-10r4ge5 {
      display: inline-flex;
      vertical-align: middle;
      margin-inline-start: 6px;
      padding: 0;
      border: 0;
      background: none;
      color: #1976d2;
      cursor: pointer;
  }

  .wse-feedback.svelte-10r4ge5 .material-symbols-outlined:where(.svelte-10r4ge5) {
      font-size: 18px;
  }

  /* ≥ 480px — landscape `wide` (max(408, 50vw); ≈688px of content on a desktop).
     A lever's sentence and its link now fit on one line. */
  @container wse (min-width: 480px) {
      .wse-lever.svelte-10r4ge5 {
          flex-direction: row;
          align-items: baseline;
          gap: 8px;
      }

      .wse-lever-text.svelte-10r4ge5 {
          flex: 1 1 auto;
      }

      .wse-lever-link.svelte-10r4ge5 {
          flex: none;
      }

      .wse-note.svelte-10r4ge5 {
          /* Wide enough for the pin note's two sentences to flow as one paragraph. */
          display: block;
      }
  }

  html.dark .wse.svelte-10r4ge5 {
      color: #e5e7eb;
      border-bottom-color: #374151;
  }

  html.dark .wse-title.svelte-10r4ge5,
  html.dark .wse-caveat.svelte-10r4ge5,
  html.dark .wse-ledger-row.is-maximum.svelte-10r4ge5 .wse-ledger-title:where(.svelte-10r4ge5) {
      color: #9ca3af;
  }

  html.dark .wse-ledger-title.svelte-10r4ge5 {
      color: #d1d5db;
  }

  html.dark .wse-ledger-row.is-total.svelte-10r4ge5 > th:where(.svelte-10r4ge5),
  html.dark .wse-ledger-row.is-total.svelte-10r4ge5 > td:where(.svelte-10r4ge5) {
      border-top-color: #374151;
  }

  html.dark .wse-lever-link.svelte-10r4ge5,
  html.dark .wse-toggle.svelte-10r4ge5,
  html.dark .wse-faq.svelte-10r4ge5 {
      color: #60a5fa;
  }

  html.dark .wse-note.svelte-10r4ge5 {
      border-inline-start-color: #fbbf24;
  }

  html.dark .wse-note.is-pin.svelte-10r4ge5 {
      border-inline-start-color: #60a5fa;
  }


  .header-menu-button.svelte-w5j88c {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 2px 0 2px 6px;
    color: #374151;
    cursor: pointer;
    background: #fff;
    border: 1px solid rgb(0 0 0 / 14%);
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
    transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  }
  .header-menu-button.svelte-w5j88c:hover:not(:disabled),
  .header-menu-button.svelte-w5j88c:focus-visible,
  .header-menu-button.open.svelte-w5j88c {
    color: #1a73e8;
    background: #e8f0fe;
    border-color: #1a73e8;
    box-shadow: 0 1px 3px rgb(26 115 232 / 25%);
  }
  .header-menu-button.svelte-w5j88c:active:not(:disabled) {
    transform: translateY(1px);
  }
  .header-menu-button.svelte-w5j88c:disabled {
    color: #9ca3af;
    cursor: default;
    box-shadow: none;
  }
  .header-menu-icon.svelte-w5j88c {
    font-size: 18px;
  }
  .header-menu-caret.svelte-w5j88c {
    margin-inline-start: -2px;
    font-size: 18px;
    opacity: 0.7;
  }
  html.dark .header-menu-button.svelte-w5j88c {
    color: #e5e7eb;
    background: #1f2937;
    border-color: #4b5563;
  }
  html.dark .header-menu-button.svelte-w5j88c:hover:not(:disabled),
  html.dark .header-menu-button.svelte-w5j88c:focus-visible,
  html.dark .header-menu-button.open.svelte-w5j88c {
    color: #93c5fd;
    background: rgb(59 130 246 / 18%);
    border-color: #60a5fa;
  }
  html.dark .header-menu-button.svelte-w5j88c:disabled {
    color: #6b7280;
  }


  .nearby-havens.svelte-w2hvzb {
    position: relative;
    display: flex;
  }

/* InfoPanel content styles - positioning handled by SlidePanel */

.poi-header {
  position: relative;
  display: flex;
  flex-flow: column wrap;
  gap: 10px;
  row-gap: 2px;
  align-items: flex-start;
  font-family: "Open Sans", sans-serif;

  .back-button {
    position: absolute;
    top: 6px;
    left: 0;
  }

  .poi-title-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
    padding: 12px 16px 0;
  }

  .poi-header-actions {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    align-items: center;
  }

  .close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
  }

  .draft-tag {
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 4px;
  }

  .edit-location-button {
    cursor: pointer;
    background: transparent;
    border: 0;
  }

  .edit-location-button .material-symbols-outlined {
    font-size: 28px;
  }

  .report-button {
    cursor: pointer;
    background: transparent;
    border: 0;
  }

  .report-button .material-symbols-outlined {
    font-size: 28px;
  }

  .add-to-itinerary-button {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    width: calc(100% - 32px);
    padding: 8px 16px;
    margin: 0 16px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    background: #4caf50;
    border: none;
    border-radius: 8px;
    transition:
      background-color 0.2s ease,
      opacity 0.2s ease;
  }

  .add-to-itinerary-button:hover {
    background: #388e3c;
  }

  .add-to-itinerary-button .material-symbols-outlined {
    font-size: 20px;
  }

  .add-to-itinerary-button .button-text {
    white-space: nowrap;
  }

  .add-to-itinerary-button.add-again {
    background: #1976d2;
  }

  .add-to-itinerary-button.add-again:hover {
    background: #1565c0;
  }

  /* Split "Add to itinerary": main zone (direct add to the last day) +
     arrow zone (day dropdown). The two buttons share one pill silhouette —
     the split lives on the wrapper, each half dropping the outer margin and
     the facing corner radii, with a hairline divider between them. */
  .add-to-itinerary-wrap {
    position: relative;
  }

  .add-to-itinerary-split {
    display: flex;
    align-items: stretch;
    width: calc(100% - 32px);
    margin: 0 16px;
  }

  .add-to-itinerary-split .add-to-itinerary-button {
    width: auto;
    margin: 0;
  }

  .add-to-itinerary-split .add-to-itinerary-main {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .add-to-itinerary-split .add-to-itinerary-arrow {
    flex: 0 0 auto;
    padding: 8px 6px;
    border-left: 1px solid rgb(255 255 255 / 35%);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }

  .add-to-itinerary-button .day-menu-caret {
    margin-left: auto;
  }

  /* Keep the trigger above the click-away backdrop while the menu is open so
     it stays interactive (toggle-to-close) and shows hover/active states. */
  .add-to-itinerary-split.day-menu-open {
    position: relative;
    z-index: 12;
  }

  .dblclick-add-hint {
    width: calc(100% - 32px);
    margin: 4px 16px 0;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    line-height: 1.3;
    color: #6b7280;
  }

  /* The marker double-click shortcut needs a mouse. */
  @media (hover: none), (pointer: coarse) {
    .dblclick-add-hint {
      display: none;
    }
  }

  .day-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10;
  }

  .day-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 16px;
    left: 16px;
    z-index: 11;
    display: flex;
    flex-direction: column;
    max-height: 240px;
    padding: 6px;
    overflow-y: auto;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 18%);
  }

  .day-menu-title {
    padding: 4px 8px 6px;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
  }

  .day-menu-item {
    padding: 8px 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    color: #1f2937;
    text-align: left;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 6px;
  }

  .day-menu-item:hover {
    background: #f3f4f6;
  }

  .day-menu-separator {
    height: 1px;
    margin: 4px 6px;
    background: #e5e7eb;
  }

  .back-button .material-symbols-outlined {
    font-size: 28px;
  }

  .poi-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 24px;
    font-weight: 500;

    &.no-subtitle {
      padding-bottom: 12px;
    }
  }

  /* The right-hand end of the type/subtype row: a haven's place menus and
     "More details" menu, and the locale pill. `margin-inline-start: auto`
     pushes the pair to the row's end and is RTL-safe; it lives here rather
     than on LocalePill so the two stay together when the menu is present. */
  .poi-type-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-inline-start: auto;
  }

  .poi-type {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    padding: 0 16px 8px;
    font-size: 14px;
    color: rgb(1 1 1 / 60%);
    text-transform: capitalize;
    border-bottom: 1px solid rgb(0 0 0 / 8%);
  }

  /* A block, not a flex row: the coordinates tile floats at its inline end
     and the tags flow around it (see the markup). `flow-root` contains the
     float, so a tag-less row is as tall as the tile and the divider below
     never rides up beside it. */
  .poi-tags-row {
    display: flow-root;
    width: 100%;
    padding: 8px 16px 4px;
  }

  .location-tag {
    display: inline-flex;
    padding: 3px 10px;
    margin: 0 4px 4px 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    vertical-align: middle;
    color: #fff;
    text-transform: none;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid #b45309;
    border-radius: 10px;
  }
}

.panel-body {
  flex-grow: 1;
  overflow: auto;

  .poi-additional-info {
    position: relative;
    font-family: "Open Sans", sans-serif;
  }

  .poi-about {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 16px;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    background: white;

    img {
      max-width: 100%;
      height: auto;
    }

    :global(img) {
      max-width: 100%;
      height: auto;
    }

    iframe {
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
    }

    :global(iframe) {
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
    }

    /* R29 — content links in this sanitized-HTML field get the a-normal
       treatment (blue-600, underlined) via CSS rather than a literal class:
       {@html} output has no template to add `a-normal` to, unlike the
       template-owned links in PoiContactDetails.svelte. Excludes the
       linkifyPhonesInHtml WhatsApp/dial pair (`.about-phone-wa` /
       `.about-phone-tel`), which keeps its own bespoke styling per R29.
       `!important` on colour guards against authored About HTML pinning its
       own inline anchor colour — the same problem the dark-mode rules below
       already have to fight. */
    a:not(.about-phone-wa, .about-phone-tel) {
      color: #2563eb !important;
      text-decoration: underline;
    }

    /* Lists. Tailwind's preflight strips list markers (`list-style: none`),
       and Quill 2 — which authored this HTML — stores bullets AND numbering
       as `<ol>`, recording each item's kind in `data-list` and drawing the
       marker itself only inside its own `.ql-editor`. Without these rules no
       About list shows a bullet or a number here, in any language. */
    ol,
    ul {
      padding-inline-start: 1.5em;
    }

    ul > li,
    li[data-list="bullet"] {
      list-style-type: disc;
    }

    ol > li:not([data-list]),
    li[data-list="ordered"] {
      list-style-type: decimal;
    }

    .google-place-loading {
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center;
      justify-content: center;
      height: 200px;
      font-family: "Open Sans", sans-serif;
      color: #666;

      .spinning {
        font-size: 32px;
        animation: spin 1s linear infinite;
      }
    }
  }

  .google-place-inline {
    flex: 1;
    overflow: auto;
    background: white;

    gmp-place-details {
      display: block;
      width: 100%;
      min-height: 400px;
    }

    .google-place-loading {
      display: flex;
      flex-direction: column;
      gap: 12px;
      align-items: center;
      justify-content: center;
      height: 200px;
      font-family: "Open Sans", sans-serif;
      color: #666;

      .spinning {
        font-size: 32px;
        animation: spin 1s linear infinite;
      }
    }
  }

  @keyframes spin {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }
}

.google-place-view {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.google-place-floating-buttons {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  gap: 8px;

  .back-button,
  .close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
  }

  .add-location-button,
  .copy-url-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
  }
}

/* googlePlaceCard's node: the card it builds lays out as the container's own child. */
.google-place-card {
  display: contents;
}

.google-place-body {
  flex: 1;
  height: 100%;
  overflow: auto;
  background: white;

  gmp-place-details {
    display: block;
    width: 100%;
    height: 100%;
  }

  .google-place-loading {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-family: "Open Sans", sans-serif;
    color: #666;

    .spinning {
      font-size: 32px;
      animation: spin 1s linear infinite;
    }
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* U9 — markdown view mode: a curated content page rendered inside the panel.
   Carta emits its own `.markdown-body` wrapper, whose nodes carry no Svelte
   scoping class, so these rules must live here (this file is imported, not
   compiled, and therefore unscoped) rather than in the component's \3c style>. */
.poi-markdown {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 16px;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background: white;
}

/* Carta's viewer defaults to a reading-width column; the panel is already
   narrow, so let it use the full width (the full content page does the same
   from its onMount). */
.poi-markdown .markdown-body {
  max-width: 100%;
}

.poi-markdown img {
  max-width: 100%;
  height: auto;
}

.poi-markdown iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* R29 — same a-normal-via-CSS treatment as `.poi-about a` above, for the
   Carta-rendered curated markdown page (also runtime HTML with no template
   to add `a-normal` to). No phone-pair exclusion needed here: linkifyPhones
   only runs on the About field, never on markdown content. */
.poi-markdown a {
  color: #2563eb !important;
  text-decoration: underline;
}

.markdown-notice {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  color: #666;
  text-align: center;
}

.markdown-notice .material-symbols-outlined {
  font-size: 32px;
}

.markdown-retry {
  padding: 6px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  background: #f0f0f0;
  border: none;
  border-radius: 16px;
}

.markdown-shimmer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.markdown-shimmer .shimmer {
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 1.5s infinite;
}

.markdown-shimmer .md-title {
  width: 60%;
  height: 24px;
}

.markdown-shimmer .md-line {
  width: 100%;
  height: 14px;
}

.markdown-shimmer .md-line.short {
  width: 70%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Dark-mode rules live inside InfoPanel.svelte's \3c style> block (:global()
   fully reaches the Svelte compiler there). */

  /* Coordinate mode — an arbitrary map position picked while editing. */
  .coordinate-latlng.svelte-1rw9vfk {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
  }

  /* The coordinates tile every POI's details carry, at the inline end of
     the tags line. Floated so the tags wrap around it; the margins keep a
     wrapped tag clear of it and match the tags' own 4px row gap. Same height
     as a tag, so a one-line row reads as one line. */
  .poi-coords.svelte-1rw9vfk {
    float: inline-end;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 4px;
    margin-inline: 8px 0;
    padding: 2px 6px 2px 10px;
    font-size: 12px;
    line-height: 1.2;
    color: #555;
    white-space: nowrap;
    background: rgb(0 0 0 / 5%);
    border: 1px solid rgb(0 0 0 / 8%);
    border-radius: 10px;
  }

  /* The team rating, beside the type it rates. Amber like the tags it used
     to sit among, but a quiet tint rather than their solid fill: it is a
     reading about the place, not a label on it. */
  .team-rating.svelte-1rw9vfk {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2px;
    padding: 1px 8px 1px 5px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #92400e;
    text-transform: none;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 10px;
  }

  .team-rating.svelte-1rw9vfk .material-symbols-outlined:where(.svelte-1rw9vfk) {
    font-size: 15px;
    font-variation-settings: 'FILL' 1;
    color: #f59e0b;
  }

  .coords-copy-button.svelte-1rw9vfk {
    display: inline-flex;
    align-items: center;
    padding: 0;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
  }

  .coords-copy-button.svelte-1rw9vfk:hover {
    color: #333;
  }

  .coords-copy-button.svelte-1rw9vfk .material-symbols-outlined:where(.svelte-1rw9vfk) {
    font-size: 14px;
  }
  /* Dark mode (class-based — :global(html.dark) ...) lives in the Svelte
     \3c style> block so the compiler processes :global() reliably. */
  html.dark .poi-header,
  html.dark .poi-header .close-button,
  html.dark .poi-header .edit-location-button,
  html.dark .poi-header .report-button {
    color: #f3f4f6;
  }
  html.dark .poi-header .close-button {
    background: #374151;
  }
  html.dark .poi-header .draft-tag {
    color: #fbbf24;
    background: #422006;
    border-color: #b45309;
  }
  html.dark .poi-header .poi-type {
    color: rgb(243 244 246 / 75%);
    border-bottom-color: rgb(255 255 255 / 10%);
  }
  html.dark .poi-header .poi-coords {
    color: #d1d5db;
    background: rgb(255 255 255 / 8%);
    border-color: rgb(255 255 255 / 12%);
  }
  html.dark .poi-header .coords-copy-button:hover {
    color: #f9fafb;
  }
  html.dark .poi-header .team-rating {
    color: #fde68a;
    background: rgb(245 158 11 / 15%);
    border-color: rgb(245 158 11 / 40%);
  }
  html.dark .poi-header .dblclick-add-hint {
    color: rgb(243 244 246 / 60%);
  }
  /* Item 16: phone numbers detected in the about prose render with the Phone
     affordance (WhatsApp launch + dial link), inline within the sentence. */
  .poi-about .about-phone {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: baseline;
    white-space: nowrap;
  }
  .poi-about .about-phone-wa {
    display: inline-flex;
    align-items: center;
    line-height: 0;
  }
  .poi-about .about-phone-wa img {
    width: 16px;
    height: 16px;
  }
  html.dark .panel-body .poi-about {
    color: #f3f4f6;
    background: #1f2937;
  }
  /* Per-line white backgrounds and per-span black text colours
     occasionally creep into POI descriptions (e.g. the Salamis Battle
     entry stored HTML where the editor pinned `color: #000` and a
     white background on each line). Force every descendant to honour
     the panel's dark surface so the text doesn't end up as black on
     white ribbons. */
  html.dark .panel-body .poi-about * {
    background-color: transparent !important;
    color: #f3f4f6 !important;
  }
  /* R29 — content links get the a-normal dark colour (#60a5fa, matching
     `.a-normal`'s `dark:text-blue-400`), not the `#93c5fd` this rule used to
     apply to every link in the field. The linkifyPhonesInHtml WhatsApp/dial
     pair (`.about-phone-wa` / `.about-phone-tel`) is excluded here so the
     dedicated rule below — its own bespoke `#93c5fd`, unchanged — keeps
     winning for those two anchors specifically. */
  html.dark .panel-body .poi-about a:not(.about-phone-wa, .about-phone-tel),
  html.dark .panel-body .poi-about a:not(.about-phone-wa, .about-phone-tel):visited {
    color: #60a5fa !important;
  }
  /* The phone pair's pre-existing bespoke dark-mode colour, unchanged by
     R29 — narrowed off the rule above so it doesn't compete with the
     a-normal treatment now given to the field's other links. */
  html.dark .panel-body .poi-about a.about-phone-wa,
  html.dark .panel-body .poi-about a.about-phone-wa:visited,
  html.dark .panel-body .poi-about a.about-phone-tel,
  html.dark .panel-body .poi-about a.about-phone-tel:visited {
    color: #93c5fd !important;
  }
  html.dark .panel-body .poi-about .google-place-loading,
  html.dark .panel-body .google-place-inline .google-place-loading {
    color: #9ca3af;
  }
  html.dark .panel-body .google-place-inline {
    background: #1f2937;
  }
  /* Google's <gmp-place-details> (Places UI Kit) has its own dark theme,
     chosen by the CSS color-scheme of the element, and Material colour
     tokens for its surfaces. An inverting filter was used before it had
     one; it now turned Google's own dark card back into dark text on dark
     and inverted every photo (its <img> are in the shadow DOM, out of reach
     of a counter-filter). So: no filter, the element's color-scheme follows
     the app's theme, not the OS's, and its surface matches the panel. */
  .google-place-inline gmp-place-details,
  .google-place-body gmp-place-details {
    color-scheme: light;
  }
  html.dark .google-place-inline gmp-place-details,
  html.dark .google-place-body gmp-place-details {
    --gmp-mat-color-surface: #1f2937;
    color-scheme: dark;
    background: #1f2937;
  }
  html.dark .google-place-floating-buttons .back-button,
  html.dark .google-place-floating-buttons .close-button,
  html.dark .google-place-floating-buttons .add-location-button,
  html.dark .google-place-floating-buttons .copy-url-button {
    color: #f3f4f6;
    background: #374151;
  }
  html.dark .google-place-body {
    background: #1f2937;
  }
  html.dark .google-place-body .google-place-loading {
    color: #9ca3af;
  }
  /* Tables in curated documents — the seamark legend is one symbol per row,
     image in the first column, meaning in the second. The markdown stylesheet
     sets every image as a block with generous vertical margins, which in a
     table cell stretches each row to ~160px with the text baseline-aligned
     at the bottom, and its `max-width: 100%` lets the auto layout squeeze
     the symbol column. Inside a cell an image is inline on the middle line
     and the row hugs it. A cell image is one fixed-height tile — 56px, its
     width from its aspect ratio — so a column of them reads as equal tiles
     regardless of the source's pixel size: the legend renders every symbol
     onto the same 240x112 canvas (shown here at half size, retina-sharp),
     single symbols at one uniform icon size inside it, composites and
     diagrams filling it. Carta's output is {@html}, so the descendants need
     `:global()`. */
  .poi-markdown.svelte-1rw9vfk table {
    width: 100%;
  }
  .poi-markdown.svelte-1rw9vfk th,
  .poi-markdown.svelte-1rw9vfk td {
    vertical-align: middle;
  }
  .poi-markdown.svelte-1rw9vfk td img {
    display: inline-block;
    margin: 0;
    height: 56px;
    width: auto;
    /* Not the stylesheet's `max-width: 100%`: with the height pinned, a
       shrinkable width lets the auto table layout squeeze the symbol
       column and the image with it — circles became ellipses. The tile is
       120px wide; the cell takes it. */
    max-width: none;
    vertical-align: middle;
  }
  html.dark .panel-body .poi-markdown {
    color: #f3f4f6;
    background: #1f2937;
  }
  html.dark .panel-body .poi-markdown * {
    background-color: transparent !important;
    color: #f3f4f6 !important;
  }
  /* R29 — a-normal dark colour (#60a5fa), replacing the ad-hoc #93c5fd.
     No phone-pair exclusion needed: linkifyPhones never runs on markdown
     content, only on the About field (see the .poi-about rule above). */
  html.dark .panel-body .poi-markdown a,
  html.dark .panel-body .poi-markdown a:visited {
    color: #60a5fa !important;
  }
  /* Code blocks and quotes need a surface, which the blanket `transparent`
     above strips; give them a dark one back. */
  html.dark .panel-body .poi-markdown pre,
  html.dark .panel-body .poi-markdown code {
    background-color: #111827 !important;
  }
  html.dark .panel-body .poi-markdown blockquote {
    border-left-color: #4b5563;
  }
  html.dark .panel-body .markdown-notice,
  html.dark .panel-body .markdown-notice * {
    color: #9ca3af !important;
  }
  html.dark .panel-body .markdown-retry {
    color: #f3f4f6 !important;
    background: #374151 !important;
  }
  html.dark .panel-body .markdown-shimmer .shimmer {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%) !important;
    background-size: 200% 100%;
  }

  html.dark .day-menu.svelte-1rw9vfk {
    background: #1f2937;
    border-color: #374151;
  }
  html.dark .day-menu-title.svelte-1rw9vfk {
    /* Lighter than #9ca3af to clear WCAG AA (4.5:1) on the #1f2937 menu bg. */
    color: #cbd5e1;
  }
  html.dark .day-menu-item.svelte-1rw9vfk {
    color: #f3f4f6;
  }
  html.dark .day-menu-item.svelte-1rw9vfk:hover {
    background: #374151;
  }
  html.dark .day-menu-separator.svelte-1rw9vfk {
    background: #374151;
  }

  /* Filling a frame (`fill`): the frame closes itself. */
  .close-button[hidden].svelte-1rw9vfk {
    display: none;
  }

