/**
 * race-page.css — inline <style> blocks extracted from race.html
 * (2026-08-30 consolidation). Order preserved; block boundaries marked below.
 */

/* ═══ block 1/10 ═══ */
.race-map-shell--booting{position:relative;min-height:420px;background:var(--bg-subtle,#f0f5fb)}.race-map-shell--booting>:not(.noribel-loading-overlay){visibility:hidden}
    /* Stage race index — card list */
    .race-roadbook-nearby-streets__chip { cursor: grab; }
    .race-roadbook-nearby-streets__chip--dragging { opacity: .45; }
    .race-map-input--drop { outline: 2px dashed #5ba8d4; outline-offset: 1px; background: rgba(142,199,237,.14) !important; }
    .race-stage-index { padding: 0; overflow: hidden; border: 1px solid var(--border, rgba(15,18,35,.09)); border-radius: var(--radius-md, 16px); background: var(--bg-card, #fff); box-shadow: 0 1px 0 rgba(15,18,35,.04); }
    .race-stage-index__hero { padding: 1.35rem 1.5rem 1rem; border-bottom: 1px solid var(--border, rgba(15,18,35,.08)); background: linear-gradient(180deg, rgba(142,199,237,.12) 0%, transparent 100%); }
    .race-stage-index__title { margin: 0.15rem 0 0; font-size: 1.35rem; }
    .race-stage-index__lede { margin: 0.45rem 0 0; max-width: 42rem; font-size: 0.9rem; line-height: 1.45; color: var(--text-muted, #5c6178); }
    .race-stage-index__list { display: flex; flex-direction: column; gap: 0; }
    .race-stage-index__card { border-bottom: 1px solid var(--border, rgba(15,18,35,.08)); }
    .race-stage-index__card:last-child { border-bottom: 0; }
    .race-stage-index__card-main { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 1.25rem; align-items: center; padding: 1rem 1.25rem; transition: background .15s ease; }
    .race-stage-index__card:hover .race-stage-index__card-main { background: rgba(142,199,237,.06); }
    .race-stage-index__badge { width: 2.5rem; height: 2.5rem; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 1rem; color: #1e4a66; background: linear-gradient(145deg, rgba(142,199,237,.35), rgba(91,168,212,.18)); border: 1px solid rgba(91,168,212,.25); flex-shrink: 0; }
    .race-stage-index__body { min-width: 0; }
    .race-stage-index__headline { margin-bottom: 0.65rem; }
    .race-stage-index__name { margin: 0; font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; color: var(--text, #0f1222); }
    .race-stage-index__route { margin: 0.2rem 0 0; font-size: 0.8125rem; line-height: 1.35; }
    .race-stage-index__metrics { display: flex; flex-wrap: wrap; gap: 0.65rem 1.25rem; margin: 0; }
    .race-stage-index__metric { margin: 0; min-width: 4.5rem; }
    .race-stage-index__metric dt { margin: 0; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-subtle, #85899e); }
    .race-stage-index__metric dd { margin: 0.12rem 0 0; font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text, #0f1222); }
    .race-stage-index__actions { display: flex; flex-direction: column; gap: 0.4rem; align-items: stretch; flex-shrink: 0; }
    .race-stage-index__open-btn { white-space: nowrap; min-width: 6.5rem; }
    .race-stage-index__edit-btn { white-space: nowrap; }
    .race-stage-index__edit { padding: 0 1.25rem 1.15rem 4.75rem; background: var(--bg-subtle, #f0f5fb); border-top: 1px dashed var(--border, rgba(15,18,35,.1)); }
    .race-stage-index__edit-title { margin: 0.85rem 0 0.65rem; font-size: 0.8125rem; font-weight: 650; color: var(--text-muted, #5c6178); }
    .race-stage-index__edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem 0.85rem; }
    .race-stage-index__field { display: flex; flex-direction: column; gap: 0.28rem; font-size: 0.8125rem; }
    .race-stage-index__field span { font-weight: 600; color: var(--text-muted, #5c6178); }
    .race-stage-index__edit-actions { display: flex; gap: 0.5rem; margin-top: 0.85rem; }
    @media (max-width: 720px) {
      .race-stage-index__card-main { grid-template-columns: auto 1fr; }
      .race-stage-index__actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
      .race-stage-index__edit { padding-left: 1.25rem; }
      .race-stage-index__edit-grid { grid-template-columns: 1fr; }
    }

    .race-stage-context-bar { display: inline-flex; align-items: center; gap: 0.5rem; margin-right: 0.25rem; }
    .race-event-nav__dropdown{display:none!important}.race-event-nav__item--single .race-event-nav__link{padding-right:inherit}
    .race-event-nav__link--active{color:var(--accent,#5ba8d4)!important;background:transparent!important;border-color:transparent!important;box-shadow:inset 0 -2px 0 var(--accent,#5ba8d4)!important;border-radius:0!important}
    .race-event-nav__link:hover{background:rgba(91,168,212,.08)!important;color:var(--text)!important}
    .race-stage-context-bar__label { font-size: 0.875rem; font-weight: 600; color: var(--text-muted, #64748b); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .race-event-tabs--stage-index a[data-race-tab="map"],
    .race-event-tabs--stage-index a[data-race-tab="recon"],
    .race-event-tabs--stage-index a[data-race-tab="course-3d"],
    .race-event-tabs--stage-index a[data-race-tab="safety-plan"],
    .race-event-tabs--stage-index a[data-race-tab="guard-management"],
    .race-event-tabs--stage-index a[data-race-tab="event-control"],
    .race-event-tabs--stage-index a[data-race-tab="timetable"],
    .race-event-tabs--stage-index a[data-race-tab="tv-graphics"],
    .race-event-tabs--stage-index [data-race-nav-wrap="map"],
    .race-event-tabs--stage-index [data-race-nav-wrap="course-3d"],
    .race-event-tabs--stage-index [data-race-nav-wrap="safety-plan"],
    .race-event-tabs--stage-index [data-race-nav-wrap="guard-management"],
    .race-event-tabs--stage-index [data-race-nav-wrap="event-control"],
    .race-event-tabs--stage-index [data-race-nav-wrap="timetable"] { display: none !important; }

/* ═══ block 2/10 ═══ */
/* Single toolbar row: search grows, controls stay compact */
    .ecc-map-toolbar {
      flex-wrap: nowrap;
      justify-content: flex-start;
    }
    .ecc-map-toolbar__left {
      flex: 1 1 auto;
      flex-wrap: nowrap;
      align-items: center;
      gap: .4rem;
      min-width: 0;
      width: 100%;
      max-width: 100%;
    }
    .ecc-map-toolbar__left .noribel-map-search--inline {
      flex: 1 1 8rem;
      width: auto !important;
      min-width: 8rem;
      max-width: none;
    }
    .ecc-map-toolbar__left .noribel-map-search--inline .noribel-map-search__box {
      width: 100%;
    }
    .ecc-map-toolbar__left > .ecc-map-toggle,
    .ecc-map-toolbar__left > .ecc-map-layers-wrap,
    .ecc-map-toolbar__left > .ecc-map-basemap-wrap,
    .ecc-map-toolbar__left > .ecc-map-only-btn {
      flex-shrink: 0;
    }
    .ecc-map-toolbar__right { display: none; }
    /* Keep Mapbox zoom below the floating toolbar (no overlap / stray edge line) */
    .ecc-map .mapboxgl-ctrl-top-right {
      top: 4.35rem;
      right: 0.55rem;
      z-index: 4;
    }
    /* Single seam between panels — divider only, not border + divider */
    .ecc-pane--left { border-right: none; }

/* ═══ block 3/10 ═══ */
    /* Map toolbar v2 — icon-only cluster, top-right */
    .race-map-map-top-tools--v2 {
      flex-direction: column;
      align-items: flex-end;
      gap: 0.45rem;
      max-width: min(360px, calc(100% - 4rem));
    }
    .race-map-map-top-tools__row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: flex-end;
      gap: 0.4rem;
    }
    .race-map-tool-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      width: 2.75rem;
      min-width: 2.75rem;
      min-height: 2.75rem;
      padding: 0;
      border: 1px solid rgba(15, 18, 35, 0.1);
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.94);
      color: var(--text, #0f1222);
      font-family: var(--font);
      font-size: 0.78rem;
      font-weight: 650;
      line-height: 1;
      cursor: pointer;
      box-shadow: 0 2px 10px rgba(15, 18, 35, 0.08);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      transition: background 0.16s, border-color 0.16s, box-shadow 0.16s, transform 0.16s;
    }
    .race-map-tool-btn:hover {
      border-color: rgba(91, 168, 212, 0.45);
      background: #fff;
      box-shadow: 0 4px 14px rgba(91, 168, 212, 0.18);
    }
    .race-map-tool-btn:active { transform: scale(0.97); }
    .race-map-tool-btn.is-active,
    .race-map-tool-btn[aria-expanded="true"] {
      border-color: var(--accent, #5ba8d4);
      background: linear-gradient(135deg, #5ba8d4, #8ec7ed);
      color: #fff;
      box-shadow: 0 4px 16px rgba(91, 168, 212, 0.35);
    }
    .race-map-tool-btn__label,
    .race-map-basemap-btn__label,
    .race-map-basemap-chevron { display: none !important; }
    .race-map-basemap-wrap { position: relative; }
    .race-map-basemap-popover {
      position: absolute;
      top: calc(100% + 0.35rem);
      left: auto;
      right: 0;
      z-index: 1200;
      min-width: 10.5rem;
      padding: 0.25rem;
      background: #fff;
      border: 1px solid var(--border, rgba(15, 18, 35, 0.09));
      border-radius: 10px;
      box-shadow: 0 8px 24px rgba(15, 18, 35, 0.14);
      display: flex;
      flex-direction: column;
      gap: 0.1rem;
    }
    .race-map-basemap-popover[hidden] { display: none !important; }
    .race-map-basemap-option {
      appearance: none;
      border: 0;
      background: transparent;
      color: var(--text, #0f1222);
      font-size: 0.78rem;
      font-weight: 600;
      padding: 0.45rem 0.65rem;
      border-radius: 8px;
      text-align: left;
      cursor: pointer;
    }
    .race-map-basemap-option:hover { background: rgba(142, 199, 237, 0.18); }
    .race-map-basemap-option.is-active {
      background: var(--accent, #5ba8d4);
      color: #fff;
    }
    .race-map-search-panel {
      width: min(320px, calc(100vw - 2rem));
    }
    .race-map-search-panel[hidden] { display: none !important; }
    .race-map-map-top-tools--v2 .race-map-search-mount {
      flex: none;
      width: 100%;
      min-width: 0;
      max-width: none;
    }
    .race-map-map-top-tools--v2 .noribel-map-search--inline {
      width: 100% !important;
    }
    .race-map-map-top-tools--v2 .noribel-map-search__box {
      min-height: 2.75rem;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(15, 18, 35, 0.08);
    }
    .noribel-map-search__item-pin--icon {
      width: 1.35rem;
      height: 1.35rem;
      align-items: center;
      justify-content: center;
      color: inherit;
    }
    .noribel-map-search__item-icon {
      display: block;
      width: 1.25rem;
      height: 1.25rem;
      object-fit: contain;
      border-radius: 2px;
    }
    /* Climb scan + detail: centered popups (not the left add-point sidebar) */
    .nor-climb-modal-open .race-map-add-point-modal.nor-climb-modal:not([hidden]) {
      display: flex !important;
      position: fixed !important;
      inset: 0 !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      width: auto !important;
      max-width: none !important;
      height: auto !important;
      z-index: 20000 !important;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      background: rgba(15, 18, 35, 0.48);
      box-sizing: border-box;
    }
    .nor-climb-modal-open .race-map-add-point-modal.nor-climb-modal:not([hidden]) > .race-map-add-point-modal__panel {
      width: auto;
      height: auto;
      max-height: min(92vh, 1100px);
      border-right: none;
      border-radius: 14px;
      box-shadow: 0 24px 64px rgba(15, 18, 35, 0.28);
      padding: 0.85rem 1rem 1rem;
      overflow: auto;
    }
    .nor-climb-scan-panel { max-width: min(720px, 96vw); width: min(720px, 96vw); max-height: min(88vh, 900px); overflow: auto; }
    .nor-climb-scan-intro { margin: 0 0 0.75rem; font-size: 0.85rem; }
    .nor-climb-scan-controls { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: flex-end; margin-bottom: 0.65rem; }
    .nor-climb-scan-controls__field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.75rem; font-weight: 600; flex: 1; min-width: 10rem; }
    .nor-climb-scan-progress { margin-bottom: 0.5rem; }
    .nor-climb-scan-progress progress { width: 100%; height: 6px; accent-color: var(--accent, #5ba8d4); }
    .nor-climb-scan-progress__msg { display: block; font-size: 0.78rem; color: var(--muted, #64748b); margin-top: 0.25rem; }
    .nor-climb-scan-summary { font-size: 0.82rem; margin: 0 0 0.5rem; }
    .nor-climb-scan__warn { color: #b45309; }
    .nor-climb-scan-list { display: flex; flex-direction: column; gap: 0.35rem; max-height: min(42vh, 360px); overflow: auto; margin-bottom: 0.65rem; }
    .nor-climb-scan-row { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.45rem 0.5rem; border: 1px solid var(--border, rgba(15,18,35,.09)); border-radius: 8px; }
    .nor-climb-scan-row:hover { border-color: rgba(91,168,212,.35); background: rgba(91,168,212,.04); }
    .nor-climb-scan-row__pick { display: flex; align-items: flex-start; padding-top: 0.35rem; flex-shrink: 0; cursor: pointer; }
    .nor-climb-scan-row__cb { flex-shrink: 0; }
    .nor-climb-scan-row__icons { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; flex-shrink: 0; padding-top: 0.1rem; }
    .nor-climb-scan-row__icon { width: 30px; height: 30px; object-fit: contain; display: block; }
    .nor-climb-scan-row__icon--start { width: 22px; height: 22px; opacity: 0.85; }
    .nor-climb-scan-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; cursor: pointer; }
    .nor-climb-scan-row__sub { font-size: 0.74rem; color: var(--muted, #64748b); }
    .nor-climb-scan-row__cat { font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.45rem; border: 1.5px solid; border-radius: 999px; flex-shrink: 0; align-self: center; }
    .nor-climb-scan-row__view { flex-shrink: 0; align-self: center; white-space: nowrap; }
    .nor-climb-scan-foot-opt { display: flex; gap: 0.45rem; align-items: flex-start; font-size: 0.8rem; margin-bottom: 0.75rem; }
    .nor-climb-scan-foot-opt__icons { display: inline-flex; align-items: center; gap: 0.2rem; vertical-align: middle; }
    .nor-climb-scan-foot-opt__icons img { width: 18px; height: 18px; object-fit: contain; }
    .nor-climb-detail-panel { max-width: min(1040px, 98vw); width: min(1040px, 98vw); max-height: min(96vh, 1100px); overflow: auto; font-size: 0.875rem; }
    #race-map-climb-detail-modal.nor-climb-modal:not([hidden]) {
      z-index: 20010 !important;
    }
    .nor-climb-detail-panel .race-map-add-point-modal__head { margin-bottom: 0.35rem; }
    .nor-climb-detail-panel .race-map-add-point-modal__title { font-size: 1.15rem; }
    .nor-climb-detail__headline { display: none; }
    .nor-climb-detail-sub { margin: 0 0 0.85rem; font-size: 0.875rem; color: var(--muted, #64748b); display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.55rem; }
    .nor-climb-detail-sub__sep { color: #cbd5e1; font-weight: 700; user-select: none; }
    .nor-climb-detail__cat {
      display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 700;
      padding: 0.15rem 0.55rem; border-radius: 999px; background: #eef2ff; color: #4338ca;
    }
    .nor-climb-detail__metrics {
      display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 0; margin: 0 0 1rem; padding: 0;
      border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; list-style: none;
    }
    @media (max-width: 720px) { .nor-climb-detail__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    .nor-climb-detail__metric {
      padding: 0.65rem 0.75rem; border-right: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0;
      background: #fff;
    }
    .nor-climb-detail__metrics .nor-climb-detail__metric:nth-child(4n) { border-right: none; }
    @media (max-width: 720px) {
      .nor-climb-detail__metrics .nor-climb-detail__metric:nth-child(4n) { border-right: 1px solid #e2e8f0; }
      .nor-climb-detail__metrics .nor-climb-detail__metric:nth-child(2n) { border-right: none; }
    }
    .nor-climb-detail__metric dt {
      margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
      color: #64748b; line-height: 1.25;
    }
    .nor-climb-detail__metric dd {
      margin: 0.2rem 0 0; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; color: #0f172a; line-height: 1.2;
    }
    .nor-climb-detail__chart-block { margin-bottom: 0.75rem; }
    .nor-climb-detail__chart-block .race-overview-elev__head { margin-bottom: 0.45rem; }
    .nor-climb-detail__chart-block .race-overview-elev__title { font-size: 0.72rem; margin: 0; }
    .nor-climb-detail__chart-host {
      width: 100%; min-height: 240px; background: #fff;
      border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.25rem 0.35rem 0.15rem;
    }
    .nor-climb-detail__chart-host[hidden] { display: none !important; }
    .nor-climb-detail__chart-host .race-overview-elev__svg { min-height: 220px; }
    .nor-climb-detail__3d {
      height: min(42vh, 380px);
      margin-top: 0.15rem;
    }
    .nor-climb-detail__chart-block .nor-climb-3d-modes { flex-wrap: wrap; }
    .nor-climb-detail__chart-block .race-overview-elev__head-actions {
      display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; justify-content: flex-end;
    }
    .nor-climb-detail__chart-empty { padding: 2rem 1rem; text-align: center; color: var(--muted, #64748b); font-size: 0.875rem; margin: 0; }
    .nor-climb-detail__note { font-size: 0.8125rem; margin: 0 0 1rem; line-height: 1.45; color: #64748b; }
    .nor-climb-detail__points-mode {
      border: 0; margin: 0 0 0.55rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem 1rem;
    }
    .nor-climb-detail__points-mode legend { padding: 0; margin: 0 0 0.25rem; width: 100%; }
    .nor-climb-detail__radio { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8125rem; font-weight: 550; cursor: pointer; }
    .nor-climb-detail__points-bar {
      display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.65rem;
    }
    .nor-climb-detail__points-summary {
      display: inline-flex; align-items: center; gap: 0.4rem; max-width: min(100%, 28rem);
      margin: 0; padding: 0.28rem 0.55rem; border-radius: 999px; cursor: pointer;
      border: 1px solid rgba(225, 29, 72, 0.28); background: rgba(225, 29, 72, 0.06);
      font: inherit; color: #9f1239; font-size: 0.74rem; font-weight: 650;
    }
    .nor-climb-detail__points-summary:hover { background: rgba(225, 29, 72, 0.1); }
    .nor-climb-detail__points-summary .nor-climb-detail__points-preview {
      flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; font-size: inherit; color: inherit;
    }
    .nor-climb-detail__points-chev {
      width: 0.45rem; height: 0.45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
      transform: rotate(45deg); margin-top: -0.15rem; flex-shrink: 0; opacity: 0.75;
    }
    .nor-climb-detail__points-summary.is-open .nor-climb-detail__points-chev {
      transform: rotate(-135deg); margin-top: 0.15rem;
    }
    .nor-climb-detail__points-panel {
      margin-top: 0.5rem; padding: 0.55rem 0.6rem 0.6rem;
      border: 1px solid #e2e8f0; border-radius: 8px; background: #fff;
    }
    .nor-climb-detail__points-panel[hidden] { display: none !important; }
    .nor-climb-detail__points-toolbar {
      display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.45rem 0.65rem; margin-bottom: 0.45rem;
    }
    .nor-climb-detail__field--mode { min-width: 11rem; flex: 1 1 11rem; }
    .nor-climb-detail__field--places { min-width: 4.5rem; max-width: 5.5rem; }
    .nor-climb-detail__points-select { width: 100%; box-sizing: border-box; }
    .nor-climb-detail__points-hint { margin: 0; font-size: 0.76rem; line-height: 1.35; }
    .nor-climb-detail__points-custom {
      display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.45rem 0.55rem;
    }
    .nor-climb-detail__points-list {
      display: flex; flex-wrap: nowrap; gap: 0.35rem; overflow-x: auto; padding: 0.1rem 0 0.15rem;
      flex: 1 1 12rem; min-width: 0; scrollbar-width: thin;
    }
    .nor-climb-detail__points-place {
      display: inline-flex; flex-direction: column; align-items: center; gap: 0.15rem;
      flex: 0 0 auto; min-width: 3.35rem; padding: 0.28rem 0.3rem 0.35rem;
      border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc;
      font-size: 0.68rem; font-weight: 700; color: #64748b;
    }
    .nor-climb-detail__points-place-pos { letter-spacing: 0.02em; }
    .nor-climb-detail__points-place input {
      width: 2.75rem; min-width: 0; text-align: center; padding: 0.2rem 0.15rem; font-size: 0.8125rem; font-weight: 700;
    }
    .nor-climb-detail__points-place-unit { font-size: 0.62rem; font-weight: 650; color: #be123c; }
    .nor-climb-points-std-body { display: flex; flex-direction: column; gap: 0.45rem; margin: 0.75rem 0 1rem; }
    .nor-climb-points-std-row {
      display: grid; grid-template-columns: auto 1fr auto auto; gap: 0.55rem 0.75rem; align-items: center;
      padding: 0.45rem 0.55rem; border: 1px solid var(--border, rgba(15,18,35,.09)); border-radius: 8px;
    }
    .nor-climb-points-std-row__cat {
      font-size: 0.72rem; font-weight: 700; padding: 0.12rem 0.45rem; border: 1.5px solid; border-radius: 999px;
    }
    .nor-climb-points-std-row__lab { font-size: 0.8125rem; font-weight: 600; }
    .nor-climb-points-std-row label { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.68rem; font-weight: 600; color: #64748b; }
    .nor-climb-points-std-row input { width: 4.5rem; }
    .nor-climb-3d-panel { width: min(1180px, 98vw); max-height: 94vh; }
    .nor-climb-3d-modes { display: inline-flex; gap: 0.25rem; margin-right: 0.35rem; }
    .nor-climb-3d-mode {
      border: 1px solid rgba(15,18,35,.12); background: #fff; border-radius: 8px; padding: 0.28rem 0.65rem;
      font-size: 0.75rem; font-weight: 650; cursor: pointer; color: #475569;
    }
    .nor-climb-3d-mode.is-active { background: rgba(91,168,212,.16); border-color: rgba(91,168,212,.45); color: #1e4a66; }
    .nor-climb-3d-hint { margin: 0 0 0.55rem; font-size: 0.8rem; }
    .nor-climb-3d-opts {
      display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.55rem 0.85rem;
      margin: 0 0 0.55rem; padding: 0.45rem 0.55rem;
      border: 1px solid rgba(15,18,35,.1); border-radius: 10px; background: rgba(248,250,252,.92);
    }
    .nor-climb-3d-opts[hidden] { display: none !important; }
    .nor-climb-3d-opts__field {
      display: flex; flex-direction: column; gap: 0.15rem;
      font-size: 0.68rem; font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase; color: #64748b;
    }
    .nor-climb-3d-opts__field select,
    .nor-climb-3d-opts__field input[type="color"] {
      font: inherit; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 0.78rem;
      color: #0f172a; border: 1px solid rgba(15,18,35,.14); border-radius: 8px; background: #fff;
      padding: 0.28rem 0.45rem; min-height: 2rem;
    }
    .nor-climb-3d-opts__color input[type="color"] {
      width: 2.6rem; padding: 0.15rem; cursor: pointer;
    }
    .nor-climb-3d-opts__check {
      display: inline-flex; align-items: center; gap: 0.35rem;
      font-size: 0.78rem; font-weight: 600; color: #334155; cursor: pointer;
      padding-bottom: 0.2rem;
    }
    .nor-climb-3d-opts__check[hidden] { display: none !important; }
    .nor-climb-3d-canvas {
      width: 100%; height: min(68vh, 640px); border-radius: 12px; overflow: hidden;
      background: #12151a; border: 1px solid rgba(15,18,35,.1);
    }
    .nor-climb-3d-canvas[hidden] { display: none !important; }
    .nor-climb-3d-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
    .nor-climb-detail__profile { display: none; }
    .nor-climb-detail__edit {
      display: flex; flex-direction: column; gap: 0.65rem;
      margin: 0 0 0.85rem; padding: 0.7rem 0.75rem;
      border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc;
    }
    .nor-climb-detail__field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8125rem; }
    .nor-climb-detail__field--sm { min-width: 6.5rem; flex: 1; }
    .nor-climb-detail__field-lab {
      font-size: 0.68rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b;
    }
    .nor-climb-detail__name-input { width: 100%; box-sizing: border-box; }
    .nor-climb-detail__points-enable {
      display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
      margin: 0;
    }
    .nor-climb-detail__points-row { display: flex; flex-wrap: wrap; gap: 0.55rem 0.75rem; align-items: flex-end; margin-top: 0.45rem; }
    .nor-climb-detail__points-preview { margin: 0; font-size: 0.78rem; }
    .nor-climb-detail__prize {
      margin-top: 0.75rem; padding: 0.7rem 0.75rem; border-radius: 10px;
      border: 1px solid rgba(225, 29, 72, 0.22); background: rgba(225, 29, 72, 0.05);
    }
    .nor-climb-detail__prize-head {
      display: flex; align-items: center; gap: 0.45rem; font-size: 0.8125rem; font-weight: 700; margin-bottom: 0.25rem;
    }
    .nor-climb-detail__prize-sum { margin: 0 0 0.45rem; font-size: 0.8rem; color: #64748b; }
    .nor-climb-detail__prize-list {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: 0.3rem;
      list-style: none; margin: 0; padding: 0;
    }
    .nor-climb-detail__prize-list li {
      display: flex; justify-content: space-between; gap: 0.35rem;
      padding: 0.28rem 0.4rem; border-radius: 6px; background: #fff; border: 1px solid #e2e8f0;
      font-size: 0.75rem; font-weight: 650;
    }
    .nor-climb-detail__prize-pos { color: #64748b; }
    .nor-climb-detail__prize-pts { color: #be123c; font-variant-numeric: tabular-nums; }
    .nor-climb-hub-panel { max-width: min(560px, 96vw); width: min(560px, 96vw); max-height: min(84vh, 820px); overflow: auto; }
    .nor-climb-hub-intro { margin: 0 0 0.75rem; font-size: 0.85rem; }
    .nor-climb-hub-empty { margin: 0.5rem 0 0.75rem; }
    .nor-climb-hub-list { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.75rem; max-height: min(48vh, 420px); overflow: auto; }
    .nor-climb-hub-row {
      display: flex; align-items: center; gap: 0.55rem; width: 100%; text-align: left;
      padding: 0.5rem 0.55rem; border: 1px solid var(--border, rgba(15,18,35,.09)); border-radius: 8px;
      background: #fff; cursor: pointer; font: inherit; color: inherit;
    }
    .nor-climb-hub-row:hover { border-color: rgba(91,168,212,.4); background: rgba(91,168,212,.05); }
    .nor-climb-hub-row__icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
    .nor-climb-hub-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
    .nor-climb-hub-row__sub { font-size: 0.74rem; color: var(--muted, #64748b); }
    .nor-climb-hub-row__cat {
      flex-shrink: 0; font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.45rem;
      border: 1.5px solid; border-radius: 999px;
    }
    .nor-climb-profile-fs {
      position: fixed; inset: 0; z-index: 25000;
      display: flex; align-items: center; justify-content: center; padding: 1rem;
    }
    .nor-climb-profile-fs[hidden] { display: none !important; }
    body.nor-climb-profile-fs-open { overflow: hidden; }
    /* Standards / other climb modals above the unified viewer */
    body.nor-climb-profile-fs-open.nor-climb-modal-open .race-map-add-point-modal.nor-climb-modal:not([hidden]) {
      z-index: 26000 !important;
    }
    .nor-climb-profile-fs__backdrop {
      position: absolute; inset: 0; background: rgba(15, 18, 35, 0.58); cursor: pointer;
    }
    .nor-climb-profile-fs__panel {
      position: relative; z-index: 1; width: min(1180px, 98vw); max-height: 94vh; overflow: auto;
      background: #fff; border-radius: 14px; padding: 1rem 1.15rem 1.1rem;
      box-shadow: 0 24px 64px rgba(15, 18, 35, 0.28);
    }
    .nor-climb-viewer-panel { width: min(1180px, 98vw); }
    .nor-climb-profile-fs__head {
      display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem;
      margin-bottom: 0.65rem;
    }
    .nor-climb-profile-fs__title { margin: 0; font-size: 1.15rem; font-weight: 800; color: #0f172a; }
    .nor-climb-profile-fs__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
    .nor-climb-profile-fs__chart {
      min-height: min(560px, 62vh); background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
      padding: 0.35rem 0.45rem 0.2rem;
    }
    .nor-climb-profile-fs__chart[hidden] { display: none !important; }
    .nor-climb-profile-fs__chart .race-overview-elev__svg { min-height: min(520px, 58vh); }
    .nor-climb-profile-fs__hint { margin: 0.55rem 0 0; font-size: 0.8125rem; color: #64748b; line-height: 1.45; }
    .nor-climb-foot-hint {
      position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 12000;
      padding: 0.55rem 1rem; border-radius: 999px; background: #0f1222; color: #fff; font-size: 0.82rem; font-weight: 600;
      box-shadow: 0 8px 24px rgba(15,18,35,.25); pointer-events: none;
    }
    .nor-climb-toast {
      position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 12001;
      padding: 0.55rem 1rem; border-radius: 10px; background: #fff; border: 1px solid rgba(91,168,212,.35);
      font-size: 0.82rem; font-weight: 600; box-shadow: 0 8px 24px rgba(15,18,35,.12);
    }

/* ═══ block 4/10 ═══ */
/* Live Tracking — phone / narrow tablet */
    @media (max-width: 900px) {
      .race-event-panel--ecc .ecc-shell {
        flex-direction: column;
      }
      /* Map first so tracking is visible without scrolling */
      .race-event-panel--ecc .ecc-pane--right {
        order: -1;
        flex: 0 0 clamp(220px, 46vh, 460px);
        min-height: 220px;
        width: 100%;
      }
      .race-event-panel--ecc .ecc-pane--left {
        order: 1;
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        max-height: none;
        min-width: 0;
        border-right: 0;
        border-top: 1px solid var(--border-subtle, #e5e7eb);
        padding: 0.4rem;
      }
      .race-event-panel--ecc .ecc-panel-toggle-btn {
        display: none;
      }
      .race-event-panel--ecc .ecc-map .mapboxgl-ctrl-top-right {
        top: 3.5rem;
      }
    }
    @media (max-width: 720px) {
      .race-event-panel--ecc .ecc-topbar {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
          "lead"
          "status"
          "actions";
        gap: 0.4rem;
        align-items: stretch;
        padding: 0.5rem 0.65rem;
      }
      .race-event-panel--ecc .ecc-topbar__lead {
        grid-area: lead;
        width: 100%;
        min-width: 0;
      }
      .race-event-panel--ecc .ecc-topbar__title h1 {
        font-size: 0.92rem;
      }
      /* Lede competes with status/buttons on narrow screens */
      .race-event-panel--ecc .ecc-topbar__title p {
        display: none;
      }
      .race-event-panel--ecc .ecc-topbar__status {
        grid-area: status;
        width: 100%;
        justify-content: flex-start;
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
      }
      .race-event-panel--ecc .ecc-topbar__status .ecc-status-text {
        white-space: normal;
        line-height: 1.25;
      }
      .race-event-panel--ecc .ecc-topbar__actions {
        grid-area: actions;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem;
      }
      .race-event-panel--ecc .ecc-topbar__actions .btn {
        justify-content: center;
        width: 100%;
        min-width: 0;
      }
      .race-event-panel--ecc .ecc-map-toolbar,
      .race-event-panel--ecc .ecc-map-toolbar__left {
        flex-wrap: wrap;
      }
      .race-event-panel--ecc .ecc-map-toolbar__left .noribel-map-search--inline {
        flex: 1 1 100%;
        min-width: 0;
      }
      .race-event-panel--ecc .ecc-clock__btn-group {
        flex-wrap: wrap;
        justify-content: flex-end;
      }
      .race-event-panel--ecc .ecc-card__head-action {
        margin-left: 0;
      }
      .race-event-panel--ecc .ecc-tracker-cards {
        max-height: none;
      }
    }
    @media (max-width: 400px) {
      .race-event-panel--ecc .ecc-topbar__actions {
        grid-template-columns: 1fr;
      }
      .race-event-panel--ecc .ecc-pane--right {
        flex-basis: clamp(200px, 42vh, 380px);
      }
    }
    .ecc-tracker-row__main {
      flex: 0 0 auto;
      width: 1.5rem;
      height: 1.5rem;
      padding: 0;
      border: 1px solid rgba(15, 23, 42, 0.12);
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.9);
      color: rgba(15, 23, 42, 0.35);
      font-size: 0.85rem;
      line-height: 1;
      cursor: pointer;
    }
    .ecc-tracker-row__main--active {
      color: #d97706;
      border-color: rgba(217, 119, 6, 0.45);
      background: rgba(251, 191, 36, 0.18);
    }

/* ═══ block 5/10 ═══ */
/* Timetable toolbar: display settings dropdown */
    .race-timetable-wave-bar {
      display: flex;
      flex-wrap: wrap;
      align-items: flex-end;
      gap: 0.55rem 0.9rem;
      margin-bottom: 0.65rem;
    }
    .race-timetable-layout-field {
      min-width: 0;
    }
    .race-timetable-settings {
      position: relative;
      flex: 1 1 20rem;
      min-width: 16rem;
      max-width: 32rem;
    }
    .race-timetable-settings__trigger {
      display: flex;
      align-items: center;
      gap: 0.45rem 0.65rem;
      width: 100%;
      max-width: 32rem;
      padding: 0.55rem 0.75rem;
      border: 1px solid var(--border, #e2e8f0);
      border-radius: var(--radius-sm, 6px);
      background: #fff;
      cursor: pointer;
      font: inherit;
      text-align: left;
      color: #0f172a;
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .race-timetable-settings__trigger:hover {
      border-color: color-mix(in srgb, var(--accent, #1e6fa8) 35%, #cbd5e1);
    }
    .race-timetable-settings.is-open .race-timetable-settings__trigger {
      border-color: var(--accent, #1e6fa8);
      box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #1e6fa8) 18%, transparent);
    }
    .race-timetable-settings__trigger-label {
      font-size: 0.6875rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--accent, #1e6fa8);
      flex: 0 0 auto;
    }
    .race-timetable-settings__trigger-summary {
      flex: 1;
      min-width: 0;
      font-size: 0.8125rem;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .race-timetable-settings__chev {
      flex: 0 0 auto;
      font-size: 0.875rem;
      color: #64748b;
      transition: transform 0.15s;
    }
    .race-timetable-settings.is-open .race-timetable-settings__chev {
      transform: rotate(180deg);
    }
    .race-timetable-settings__panel {
      position: absolute;
      top: calc(100% + 0.35rem);
      left: 0;
      z-index: 50;
      min-width: min(38rem, calc(100vw - 2rem));
      max-width: min(44rem, calc(100vw - 2rem));
      max-height: min(72vh, 34rem);
      overflow: auto;
      padding: 0.75rem;
      border: 1px solid color-mix(in srgb, var(--accent, #1e6fa8) 22%, #e2e8f0);
      border-radius: var(--radius-sm, 6px);
      background: #fff;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    }
    /* norTtDropdownFixV1: the generic .panel class sets overflow:hidden, which was
       clipping this dropdown's overflow to the toolbar box (it appeared to vanish
       behind the table below). Only the toolbar panel needs to allow overflow. */
    .race-timetable-toolbar.panel {
      overflow: visible;
    }
    /* WinFleet tracking section inside the live-ingest setup modal */
    .ecc-winfleet-account {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      margin-bottom: 0.6rem;
    }
    .ecc-winfleet-vehicles {
      max-height: 15rem;
      overflow-y: auto;
      border: 1px solid var(--border, #e5e7eb);
      border-radius: 8px;
      padding: 0.35rem;
      margin-bottom: 0.7rem;
    }
    .ecc-winfleet-vehicle {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      padding: 0.35rem 0.45rem;
      border-radius: 6px;
      font-size: 0.84rem;
      cursor: pointer;
    }
    .ecc-winfleet-vehicle:hover {
      background: rgba(0, 0, 0, 0.04);
    }
    .ecc-winfleet-vehicle__main {
      flex: 1 1 auto;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .ecc-winfleet-vehicle__fix {
      flex: 0 0 auto;
      font-size: 0.76rem;
    }
    .ecc-winfleet-status {
      margin: 0.6rem 0 0;
      font-size: 0.82rem;
      line-height: 1.45;
      color: var(--text-muted, #6b7280);
    }
    .ecc-winfleet-status[data-tone="ok"] {
      color: #15803d;
    }
    .ecc-winfleet-status[data-tone="error"] {
      color: #b91c1c;
    }
    .race-timetable-settings__grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
      gap: 0.65rem 1rem;
      align-items: end;
    }
    .race-timetable-settings__waves {
      display: contents;
    }
    .race-timetable-wave-bar--no-waves #race-timetable-pass-mode-wrap,
    .race-timetable-wave-bar--no-waves #race-timetable-wave-pick-wrap,
    .race-timetable-wave-bar--no-waves #race-timetable-wave-pace-wrap {
      display: none !important;
    }
    .race-timetable-wave-hint {
      margin: 0.45rem 0 0;
    }
    .race-timetable-toolbar__row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
      gap: 0.75rem 1rem;
      align-items: start;
    }
    .race-timetable-toolbar__export {
      grid-column: 1 / -1;
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      align-items: center;
    }
    .race-timetable-count {
      grid-column: 1 / -1;
      text-align: left;
      align-self: auto;
    }
    #race-timetable-crossing-filters,
    #race-timetable-layer-filters,
    #race-timetable-column-filters {
      grid-column: 1 / -1;
      flex: none;
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.45rem 0.85rem;
      padding: 0.45rem 0.55rem;
      border: 1px solid var(--border, #e2e8f0);
      border-radius: var(--radius-sm, 6px);
      background: color-mix(in srgb, var(--bg-subtle, #f8fafc) 70%, #fff);
    }
    #race-timetable-crossing-filters > .race-timetable-field__label,
    #race-timetable-layer-filters > .race-timetable-field__label,
    #race-timetable-column-filters > .race-timetable-field__label {
      flex: 0 0 auto;
      min-width: 4.5rem;
      margin-right: 0.15rem;
    }
    #race-timetable-layer-filters .race-timetable-field__sep {
      width: 1px;
      height: 1.1rem;
      background: var(--border, #e2e8f0);
      margin: 0 0.15rem;
      align-self: center;
    }
    .race-timetable-field__inline {
      margin-top: 0;
    }
    .race-timetable-toolbar--waves #race-timetable-column-filters label:has(.race-timetable-col-cb[data-col="pace1"]),
    .race-timetable-toolbar--waves #race-timetable-column-filters label:has(.race-timetable-col-cb[data-col="pace2"]),
    .race-timetable-toolbar--waves #race-timetable-column-filters label:has(.race-timetable-col-cb[data-col="pace3"]) {
      display: none !important;
    }
    /* norTtFullWidthV2: don't depend on a JS class — when the Timetable panel is
       visible, drop the default .race-event-main max-width:960px so the table
       reaches the right edge (same idea as Map / Guard). */
    .race-event-main:has(#race-panel-timetable:not([hidden])),
    .race-event-main--timetable-tab {
      max-width: none !important;
      margin-inline: 0 !important;
      width: 100%;
    }
    /* Budget: same full-bleed as Timetable / Map when the panel is open */
    .race-event-main:has(#race-panel-budget:not([hidden])),
    .race-event-main--budget-tab {
      max-width: none !important;
      margin-inline: 0 !important;
      width: 100% !important;
      padding: 0 !important;
    }
    .race-event-main:has(#race-panel-timetable:not([hidden])) .race-timetable-table-panel,
    .race-event-main:has(#race-panel-timetable:not([hidden])) .race-timetable-table-scroll,
    .race-event-main--timetable-tab .race-timetable-table-panel,
    .race-event-main--timetable-tab .race-timetable-table-scroll {
      width: 100%;
      max-width: none;
    }
    /* Table: keep headers aligned when pass-time column count changes */
    #race-timetable-table {
      table-layout: fixed;
      width: 100%;
      min-width: 56rem;
      max-width: none;
    }
    #race-timetable-table .race-roadbook-th--pace,
    #race-timetable-table .race-roadbook-table__cell--pass-col {
      width: 4.5rem;
      min-width: 3.5rem;
    }
    #race-timetable-table th[data-col="togo"],
    #race-timetable-table td[data-col="togo"],
    #race-timetable-table th[data-col="kmdone"],
    #race-timetable-table td[data-col="kmdone"] {
      width: 3.25rem;
    }
    #race-timetable-table th[data-col="city"],
    #race-timetable-table td[data-col="city"] {
      width: 6rem;
    }
    #race-timetable-table th[data-col="direction"],
    #race-timetable-table td[data-col="direction"] {
      width: 7rem;
      min-width: 5rem;
    }
    /* Cross + Info absorb leftover width so the table fills the panel */
    #race-timetable-table th[data-col="cross"],
    #race-timetable-table td[data-col="cross"] {
      width: auto;
      min-width: 7rem;
    }
    #race-timetable-table .race-roadbook-table__cell--crossing {
      text-align: left;
      white-space: normal;
      overflow-wrap: anywhere;
      word-break: break-word;
      line-height: 1.3;
      vertical-align: top;
      max-width: none;
    }
    #race-timetable-table th[data-col="info"],
    #race-timetable-table td[data-col="info"] {
      width: auto;
      min-width: 6rem;
    }
    #race-timetable-table .race-roadbook-table__cell--info {
      text-align: left;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      word-break: break-word;
      line-height: 1.3;
      vertical-align: top;
      max-width: none;
      font-size: 0.75rem;
    }
    #race-timetable-table th[data-col="icon"],
    #race-timetable-table td[data-col="icon"] {
      width: 2.25rem;
    }
    #race-timetable-table .race-roadbook-th--edit,
    #race-timetable-table .race-roadbook-table__cell--edit,
    #race-timetable-table .race-roadbook-th--eye,
    #race-timetable-table .race-roadbook-table__cell--eye {
      width: 2rem;
    }
    #race-timetable-table .race-roadbook-th--rownum,
    #race-timetable-table .race-roadbook-table__cell--rownum {
      width: 2rem;
    }
    #race-timetable-table thead th[data-col^="pace"],
    #race-timetable-table .race-tt-pace-head {
      white-space: normal;
      line-height: 1.15;
      vertical-align: bottom;
      overflow: hidden;
      text-transform: none;
      letter-spacing: 0;
      font-size: 0.625rem;
    }
    #race-timetable-table .race-tt-pace-head__pace,
    #race-timetable-table .race-tt-pace-head__speed,
    #race-timetable-table .race-tt-pace-head__label {
      display: block;
      white-space: normal;
      overflow-wrap: anywhere;
    }
    @media (max-width: 900px) {
      .race-timetable-settings__trigger,
      .race-timetable-settings__panel {
        max-width: 100%;
        min-width: 0;
      }
      #race-timetable-table {
        min-width: 48rem;
      }
    }

/* ═══ block 6/10 ═══ */
.race-timetable-brand__meta-list li[data-meta="route"] {
      white-space: normal;
      word-break: break-word;
      line-height: 1.35;
    }
    .race-timetable-brand__race-slot {
      align-self: center;
    }
    .race-timetable-brand__race-img {
      max-height: 96px;
      max-width: 220px;
    }

/* ═══ block 7/10 ═══ */
.race-event-mobile-nav-btn {
      display: none;
      align-items: center;
      gap: 0.35rem;
      font: inherit;
      font-size: 0.8125rem;
      font-weight: 700;
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 0.35rem 0.65rem;
      background: var(--bg-card);
      color: var(--text);
      cursor: pointer;
      flex-shrink: 0;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      position: relative;
      z-index: 1;
    }
    .race-event-mobile-nav-btn__icon {
      font-size: 1rem;
      line-height: 1;
    }
    .race-event-mobile-nav {
      position: fixed;
      inset: 0;
      z-index: 10050;
      display: flex;
      justify-content: flex-end;
    }
    .race-event-mobile-nav[hidden] { display: none !important; }
    .race-event-mobile-nav--open {
      display: flex !important;
    }
    .race-event-mobile-nav__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 18, 35, 0.45);
      border: 0;
      padding: 0;
      cursor: pointer;
    }
    .race-event-mobile-nav__panel {
      position: relative;
      width: min(320px, 92vw);
      height: 100%;
      background: var(--bg-card);
      box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
      display: flex;
      flex-direction: column;
      padding: 0.85rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
      animation: race-mobile-nav-in 0.2s var(--ease-out, ease);
    }
    @keyframes race-mobile-nav-in {
      from { transform: translateX(100%); }
      to { transform: translateX(0); }
    }
    .race-event-mobile-nav__head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 0.65rem;
      margin-bottom: 0.75rem;
    }
    .race-event-mobile-nav__eyebrow {
      margin: 0 0 0.15rem;
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--text-subtle);
    }
    .race-event-mobile-nav__title {
      margin: 0;
      font-size: 1rem;
      font-weight: 800;
      line-height: 1.25;
      color: var(--text);
    }
    .race-event-mobile-nav__close {
      flex-shrink: 0;
      width: 2rem;
      height: 2rem;
      border: 0;
      border-radius: 999px;
      background: var(--bg-subtle);
      font-size: 1.25rem;
      line-height: 1;
      cursor: pointer;
      color: var(--text-muted);
    }
    .race-event-mobile-nav__list {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      overflow: auto;
      flex: 1;
      min-height: 0;
      margin: 0;
      padding: 0;
    }
    .race-event-mobile-nav__link {
      display: block;
      padding: 0.7rem 0.85rem;
      border-radius: 10px;
      text-decoration: none;
      font-size: 0.9375rem;
      font-weight: 600;
      color: var(--text);
      border: 1px solid transparent;
    }
    .race-event-mobile-nav__link:hover,
    .race-event-mobile-nav__link:focus-visible {
      background: rgba(79, 70, 229, 0.06);
      outline: none;
    }
    .race-event-mobile-nav__link--active {
      background: rgba(79, 70, 229, 0.1);
      border-color: rgba(79, 70, 229, 0.22);
      color: #3730a3;
    }
    .race-event-mobile-nav__foot {
      margin-top: 0.75rem;
      padding-top: 0.75rem;
      border-top: 1px solid var(--border);
    }
    .race-event-mobile-nav__foot a {
      font-size: 0.875rem;
      font-weight: 700;
      color: var(--accent);
      text-decoration: none;
    }
    @media (max-width: 900px) {
      .race-event-topbar__mid .race-event-tabs,
      .race-event-topbar__sep { display: none !important; }
      .race-event-mobile-nav-btn { display: inline-flex; }
      .race-event-topbar {
        position: relative;
        z-index: 500;
        isolation: isolate;
      }
      .race-event-topbar__title {
        flex: 1 1 auto;
        max-width: none;
        font-size: 0.8125rem;
      }
      .race-event-topbar__mid { flex: 1 1 auto; min-width: 0; }
    }
    @media (min-width: 901px) and (hover: hover) and (pointer: fine) {
      .race-event-mobile-nav-btn,
      .race-event-mobile-nav:not(.race-event-mobile-nav--open) { display: none !important; }
    }

/* ═══ block 8/10 ═══ */
.race-map-course-stats__row {
      align-items: center;
      flex-wrap: nowrap;
    }
    .race-map-course-stats__value {
      flex: 0 1 auto;
      white-space: nowrap;
    }
    .race-map-elev-refresh-btn {
      flex: 0 0 auto;
      width: auto;
      min-width: 1.5rem;
      margin: 0 0 0 0.15rem;
      padding: 0.1rem 0.3rem;
      font-size: 0.95rem;
      line-height: 1;
      opacity: 0.55;
    }
    .race-map-elev-refresh-btn:hover:not(:disabled),
    .race-map-elev-refresh-btn:focus-visible:not(:disabled) {
      opacity: 1;
    }
    .race-map-elev-refresh-btn:disabled {
      opacity: 0.35;
    }
    .race-overview-elev-refresh-btn { white-space: nowrap; }

/* ═══ block 9/10 ═══ */
.nor-course-scan-progress {
      width: min(280px, 88vw);
      margin: 0.75rem auto 0;
    }
    .nor-course-scan-progress__track {
      height: 6px;
      border-radius: 999px;
      background: rgba(15, 18, 35, 0.12);
      overflow: hidden;
    }
    .nor-course-scan-progress__bar {
      height: 100%;
      width: 0%;
      border-radius: inherit;
      background: linear-gradient(90deg, #5ba8d4, #8ec7ed);
      transition: width 0.35s ease;
    }
    .nor-course-scan-progress__pct {
      margin: 0.35rem 0 0;
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-muted, #5c6178);
      text-align: center;
    }
    .noribel-loading-overlay--dark .nor-course-scan-progress__pct {
      color: rgba(255, 255, 255, 0.75);
    }
    .race-roadbook-table-actions__primary {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      grid-column: 1 / -1;
      align-items: center;
    }
    .race-roadbook-table-actions__primary .race-course-scan-btn {
      white-space: nowrap;
      max-width: 100%;
    }
      /* Guard management: columns popover, fence badge, print fixes */
    .guard-mgmt-cols-anchor{position:relative;margin-left:auto;display:inline-flex}
    .guard-mgmt-cols-pop{position:absolute;right:0;top:calc(100% + 4px);z-index:80;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 12px 32px rgba(2,6,23,.18);padding:.55rem .7rem;display:flex;flex-direction:column;gap:.3rem;min-width:11.5rem}
    .guard-mgmt-cols-pop[hidden]{display:none!important}
    .race-map-std-layers-panel__menu{position:relative;margin-left:auto}
    .race-map-std-layers-panel__menu-btn{list-style:none;cursor:pointer;font-size:.74rem;font-weight:600;color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:.28rem .55rem;user-select:none}
    .race-map-std-layers-panel__menu-btn::-webkit-details-marker{display:none}
    .race-map-std-layers-panel__menu[open] .race-map-std-layers-panel__menu-btn{background:#eef2ff;border-color:#c7d2fe;color:#4338ca}
    .race-map-std-layers-panel__menu-body{position:absolute;right:0;top:calc(100% + 4px);z-index:40;min-width:11.5rem;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 10px 28px rgba(15,23,42,.12);padding:.3rem;display:flex;flex-direction:column;gap:.1rem}
    .race-map-std-layers-panel__menu-item{display:block;width:100%;text-align:left;background:none;border:none;border-radius:7px;padding:.42rem .55rem;font:inherit;font-size:.78rem;color:#0f172a;cursor:pointer}
    .race-map-std-layers-panel__menu-item:hover{background:#f1f5f9}
    .race-map-place-attachments{margin-top:.65rem;padding-top:.55rem;border-top:1px solid var(--border)}
    .race-map-place-attachments__head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.25rem .5rem;margin-bottom:.45rem}
    .race-map-place-attachments__hint{font-size:.68rem}
    .race-map-place-attachments__list{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.45rem}
    .race-map-place-attach{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:.35rem .45rem;padding:.35rem .45rem;border:1px solid var(--border);border-radius:8px;background:#fff;font-size:.78rem}
    .race-map-place-attach__thumb{display:block;width:2.25rem;height:2.25rem;border-radius:6px;overflow:hidden;flex-shrink:0}
    .race-map-place-attach__thumb img{width:100%;height:100%;object-fit:cover;display:block}
    .race-map-place-attach__icon{font-size:1.1rem;line-height:1;width:2.25rem;text-align:center}
    .race-map-place-attach__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--accent);text-decoration:none}
    .race-map-place-attach__name:hover{text-decoration:underline}
    span.race-map-place-attach__name{color:var(--text)}
    .race-map-place-attach__meta{font-size:.65rem;white-space:nowrap}
    .race-map-place-attach__rm{background:none;border:none;cursor:pointer;color:var(--text-muted);font-size:1.1rem;line-height:1;padding:.1rem .25rem;border-radius:4px}
    .race-map-place-attach__rm:hover{color:var(--danger);background:#fef2f2}
    .race-map-std-layer__actions{display:flex;flex-wrap:wrap;gap:.25rem .35rem;padding:.35rem 0 .45rem;margin-bottom:.35rem;border-bottom:1px solid var(--border)}
    .race-map-std-layer__action{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:.22rem .45rem;font:inherit;font-size:.72rem;color:#334155;cursor:pointer}
    .race-map-std-layer__action:hover{background:#eef2ff;border-color:#c7d2fe;color:#1e293b}
    .race-map-std-layer__action--danger{color:#b91c1c}
    .race-map-std-layer__action--danger:hover{background:#fef2f2;border-color:#fecaca}
    /* norLayersTargetUiV2 — layer target / active row highlights (color only) */
    #race-map-standard-layers-list > li.race-map-std-layer,
    #race-map-standard-layers-list > .race-map-layer-item{margin:0 -.12rem;padding:0 .12rem;border-radius:8px;transition:background .16s ease,box-shadow .16s ease}
    .race-map-std-layer--custom .race-map-std-layer__head{align-items:center;gap:.2rem}
    .race-map-std-layer--point-target{background:linear-gradient(90deg,rgba(16,185,129,.13) 0%,rgba(16,185,129,.04) 38%,transparent 100%)!important;box-shadow:inset 2px 0 0 #10b981;border-radius:8px}
    .race-map-std-layer__label--pick{cursor:pointer;flex:1 1 auto;min-width:0}
    .race-map-std-layer__label--pick:hover{text-decoration:underline;text-underline-offset:2px}
    .race-map-std-layer--track .race-map-std-layer__head{align-items:center;gap:.2rem}
    .race-map-std-layer--track-active{background:linear-gradient(90deg,rgba(99,102,241,.11) 0%,rgba(99,102,241,.03) 38%,transparent 100%);border-radius:8px;box-shadow:inset 2px 0 0 #6366f1}
    .race-map-std-layer--track-active.race-map-std-layer--point-target{background:linear-gradient(90deg,rgba(16,185,129,.14) 0%,rgba(99,102,241,.07) 45%,transparent 100%)!important;box-shadow:inset 2px 0 0 #10b981}
    .race-map-std-layer__dot--track{cursor:pointer;flex:0 0 auto}
    .race-map-std-layer__track-color-input{position:absolute;width:0;height:0;opacity:0;pointer-events:none}
    .race-map-std-layer--track .race-map-std-layer__label{display:inline-flex;align-items:center;gap:.2rem;flex:1 1 auto;min-width:0;overflow:hidden;cursor:pointer}
    .race-map-std-layer__label-txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .race-map-std-layer__menu{position:relative;flex:0 0 auto}
    .race-map-std-layer__menu-btn{list-style:none;cursor:pointer;font-size:.95rem;line-height:1;width:1.45rem;height:1.45rem;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:6px;color:#64748b;background:transparent}
    .race-map-std-layer__menu-btn::-webkit-details-marker{display:none}
    .race-map-std-layer__menu-btn:hover{background:#f1f5f9;border-color:#e2e8f0;color:#0f172a}
    .race-map-std-layer__menu-body{position:absolute;right:0;top:calc(100% + 2px);z-index:35;min-width:9.5rem;background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 8px 24px rgba(15,23,42,.1);padding:.25rem;display:flex;flex-direction:column;gap:.05rem}
    .race-map-std-layer__menu-item{display:block;width:100%;text-align:left;background:none;border:none;border-radius:6px;padding:.35rem .5rem;font:inherit;font-size:.74rem;color:#0f172a;cursor:pointer;white-space:nowrap}
    .race-map-std-layer__menu-item:hover{background:#f1f5f9}
    .race-map-std-layer__menu-item.danger{color:#b91c1c}
    .race-map-std-layer__menu-item.danger:hover{background:#fef2f2}
    .race-map-tracks__row{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}
    .race-map-tracks__color{width:1.9rem;height:1.9rem;padding:0;border:1px solid #cbd5e1;border-radius:6px;background:none;cursor:pointer;flex:0 0 auto}
    .race-map-tracks__select{flex:1 1 7rem;min-width:6rem}
    .race-map-tracks__btn{flex:0 0 auto}
    .race-map-tracks__hint{margin-top:.4rem}
    .race-map-import-layers-modal__panel{max-width:44rem;width:min(96vw,44rem)}
    .race-map-import-layers-scroll{max-height:min(52vh,26rem);overflow:auto;margin:.65rem 0;border:1px solid #e2e8f0;border-radius:10px}
    .race-map-import-layers-table{width:100%;border-collapse:collapse;font-size:.82rem}
    .race-map-import-layers-table th,.race-map-import-layers-table td{padding:.4rem .5rem;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top}
    .race-map-import-layers-table th{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b;background:#f8fafc;position:sticky;top:0}
    .race-map-import-layers-table td select,.race-map-import-layers-table td input{width:100%;min-width:9rem}
    .race-map-import-layers-table td:first-child{width:2rem;text-align:center}
    .guard-mgmt-cols-pop label{display:flex;gap:.45rem;align-items:center;font-size:.78rem;color:#0f172a;white-space:nowrap;cursor:pointer}
    .guard-mgmt-cols-pop .guard-mgmt-cols-reset{margin-top:.3rem;align-self:flex-start}
    .guard-mgmt-type-badge--fence{display:inline-flex;align-items:center;justify-content:center;font-size:.95rem;width:1.4rem;height:1.4rem}
    @media print{
      body.guard-mgmt-printing .guard-mgmt-table-scroll{overflow:visible!important}
      body.guard-mgmt-printing .guard-mgmt-table{width:100%!important;min-width:0!important;table-layout:fixed!important;font-size:7.5px!important}
      body.guard-mgmt-printing .guard-mgmt-table th,body.guard-mgmt-printing .guard-mgmt-table td{white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;padding:2px 3px!important;max-width:none!important;min-width:0!important}
      body.guard-mgmt-printing .guard-mgmt-table .gmt-num{width:3.5%}
      body.guard-mgmt-printing .guard-mgmt-table .gmt-km{width:4.5%}
      body.guard-mgmt-printing .guard-mgmt-table [data-col="city"]{width:7%}
      body.guard-mgmt-printing .guard-mgmt-table [data-col="street"]{width:10%}
      body.guard-mgmt-printing .guard-mgmt-table [data-col="cross"]{width:13%}
      body.guard-mgmt-printing .guard-mgmt-table [data-col="fast"],body.guard-mgmt-printing .guard-mgmt-table [data-col="slow"]{width:7.5%}
      body.guard-mgmt-printing .guard-mgmt-table [data-col="close"],body.guard-mgmt-printing .guard-mgmt-table [data-col="open"]{width:5.5%}
      body.guard-mgmt-printing .guard-mgmt-table [data-col="club"]{width:8%}
      body.guard-mgmt-printing .guard-mgmt-table [data-col="phone"],body.guard-mgmt-printing .guard-mgmt-table [data-col="email"]{width:7.5%}
      body.guard-mgmt-printing .guard-mgmt-cols-anchor{display:none!important}
      body.guard-mgmt-printing .guard-mgmt-club-trigger__chev{display:none!important}
    }

/* ═══ block 10/10 ═══ */
.race-tv-fc-compare-opts {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: #fafafa;
}
.race-tv-fc-compare-opts[hidden],
.race-tv-fc-compare[hidden],
.race-tv-fc-selected[hidden],
#race-tv-fc-compare-hint[hidden],
#race-tv-fc-mode-wrap[hidden],
#race-tv-fc-results[hidden] {
  display: none !important;
}
.race-tv-fc-compare-opts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  margin-top: 6px;
}
.race-tv-fc-compare-opts__grid label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.race-tv-fc-kind {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0 10px;
}
.race-tv-fc-kind__btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: #444;
}
.race-tv-fc-kind__btn:hover { border-color: rgba(225,6,0,0.35); }
.race-tv-fc-kind__btn.is-active {
  background: #e10600;
  border-color: #e10600;
  color: #fff;
}
.race-tv-fc-search-wrap {
  position: relative;
  z-index: 40;
  margin-bottom: 8px;
}
.race-tv-fc-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  margin: 0;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 8px;
  max-height: min(340px, 48vh);
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
  z-index: 50;
}
.race-tv-fc-results__head {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #888;
  background: #f5f5f5;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1;
}
.race-tv-fc-hit {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 12px;
}
.race-tv-fc-hit:hover { background: rgba(225,6,0,0.06); }
.race-tv-fc-hit--empty { cursor: default; color: #888; padding: 12px 10px; }
.race-tv-fc-hit__photo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  background: #eee;
  flex-shrink: 0;
}
.race-tv-fc-hit__flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.race-tv-fc-hit__text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.race-tv-fc-hit__name {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.race-tv-fc-hit__team {
  color: #888;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.race-tv-fc-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: #fafafa;
}
.race-tv-fc-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
  margin: 8px 0;
}
.race-tv-fc-vs {
  align-self: center;
  font-weight: 900;
  font-style: italic;
  font-size: 14px;
  color: #e10600;
  letter-spacing: .04em;
}
.race-tv-fc-slot {
  appearance: none;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: #fafafa;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.race-tv-fc-slot:hover { border-color: rgba(225,6,0,0.35); }
.race-tv-fc-slot.is-active {
  border-color: #e10600;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(225,6,0,0.12);
}
.race-tv-fc-slot__lab {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #888;
}
.race-tv-fc-slot.is-active .race-tv-fc-slot__lab { color: #e10600; }
.race-tv-fc-slot__body {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}
.race-tv-fc-slot__empty { font-size: 11px; color: #aaa; }
.race-tv-fc-slot__clear {
  align-self: flex-end;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-decoration: underline;
  cursor: pointer;
}
.race-tv-fc-slot__clear:hover { color: #e10600; }
.race-tv-fc-hit__actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.race-tv-fc-hit__actions .btn { min-width: 28px; padding: 2px 6px; font-weight: 800; }
.race-tv-fc-hit__actions .btn.is-preferred {
  background: #e10600;
  border-color: #e10600;
  color: #fff;
}

/* norTrackColorSyncV1: overview "Race track" distance dot follows active track colour */
.race-overview-distance__row--race .race-overview-distance__label:before{
  background: var(--nor-race-track-swatch, var(--noribel-blue, #2196f3)) !important;
}

/* ═══ Collapsible left event siderail (norRaceSiderailV1) ═══ */
.race-event-app {
  --race-siderail-w: 15.5rem;
  --race-siderail-w-collapsed: 4.5rem;
}
.race-event-siderail {
  display: none;
}
.race-event-workspace {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
@media (min-width: 901px) {
  .race-event-app:not([hidden]) {
    flex-direction: row !important;
    align-items: stretch;
  }
  .race-event-app:has(.race-event-main--map-tab) .race-event-workspace {
    min-height: 0;
    overflow: hidden;
  }
  .race-event-siderail {
    --race-siderail-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --race-siderail-dur: 0.38s;
    display: flex;
    flex-direction: column;
    flex: 0 0 var(--race-siderail-w);
    width: var(--race-siderail-w);
    max-width: var(--race-siderail-w);
    min-height: 0;
    background: #f4f6f8;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0 0.7rem 0.85rem;
    box-sizing: border-box;
    transition:
      width var(--race-siderail-dur) var(--race-siderail-ease),
      flex-basis var(--race-siderail-dur) var(--race-siderail-ease),
      max-width var(--race-siderail-dur) var(--race-siderail-ease),
      padding var(--race-siderail-dur) var(--race-siderail-ease);
    z-index: 50;
    color: #334155;
    overflow: visible;
  }
  .race-event-app--nav-collapsed {
    --race-siderail-w: var(--race-siderail-w-collapsed);
  }
  .race-event-app--nav-collapsed .race-event-siderail {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }
  .race-event-siderail__head {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 -0.7rem 0.65rem;
    padding: 0 0.7rem;
    min-height: 3rem;
    height: 3rem;
    box-sizing: border-box;
    /* Continuous marine chrome with the workspace topbar */
    background: var(--noribel-marine, #1c6c9e);
    border-bottom: 1px solid rgba(11, 34, 51, 0.18);
    /* Cover the siderail’s right border so blue meets topbar blue */
    box-shadow: 1px 0 0 var(--noribel-marine, #1c6c9e);
    transition:
      height var(--race-siderail-dur) var(--race-siderail-ease),
      min-height var(--race-siderail-dur) var(--race-siderail-ease),
      padding var(--race-siderail-dur) var(--race-siderail-ease),
      gap var(--race-siderail-dur) var(--race-siderail-ease),
      margin var(--race-siderail-dur) var(--race-siderail-ease);
  }
  .race-event-siderail__brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration: none;
    color: #fff;
    transition: gap 0.22s var(--race-siderail-ease);
  }
  .race-event-siderail__brand-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    transition: transform var(--race-siderail-dur) var(--race-siderail-ease);
  }
  .race-event-siderail__brand-text {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    max-width: 9.5rem;
    opacity: 1;
    transform: translateX(0);
    transition:
      opacity 0.2s ease 0.14s,
      max-width var(--race-siderail-dur) var(--race-siderail-ease),
      transform 0.28s var(--race-siderail-ease) 0.08s;
  }
  .race-event-siderail__toggle {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    transition:
      background 0.18s ease,
      border-color 0.18s ease,
      color 0.18s ease,
      transform 0.18s var(--race-siderail-ease);
  }
  .race-event-siderail__toggle:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
  }
  .race-event-siderail__toggle:active {
    transform: scale(0.94);
  }
  .race-event-app--nav-collapsed .race-event-siderail__toggle-icon {
    transform: rotate(180deg);
  }
  .race-event-siderail__toggle-icon {
    display: grid;
    place-items: center;
    transition: transform 0.36s var(--race-siderail-ease);
  }
  .race-event-siderail__section {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    opacity: 1;
    max-height: 1.4rem;
    overflow: hidden;
    transition:
      opacity 0.2s ease,
      max-height var(--race-siderail-dur) var(--race-siderail-ease),
      margin var(--race-siderail-dur) var(--race-siderail-ease),
      font-size var(--race-siderail-dur) ease;
  }
  .race-event-nav__group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-bottom: 0.55rem;
  }
  .race-event-nav__group > .race-event-siderail__section {
    margin: 0.15rem 0.55rem 0.35rem;
  }
  .race-event-nav__group-toggle {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
    margin: 0;
    padding: 0.15rem 0.35rem 0.35rem 0.55rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
    font: inherit;
    text-align: left;
  }
  .race-event-nav__group-toggle:hover .race-event-siderail__section,
  .race-event-nav__group-toggle:hover .race-event-nav__group-chevron {
    color: #64748b;
  }
  .race-event-nav__group-chevron {
    display: grid;
    place-items: center;
    color: #94a3b8;
    transition: transform 0.22s ease;
  }
  .race-event-nav__group.is-collapsed .race-event-nav__group-chevron {
    transform: rotate(-90deg);
  }
  .race-event-nav__group-body {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
  }
  .race-event-nav__group.is-collapsed .race-event-nav__group-body {
    display: none;
  }
  .race-event-siderail__nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .race-event-siderail__nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
  .race-event-siderail .race-event-tabs__track {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .race-event-siderail .race-event-nav__item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100%;
  }
  .race-event-siderail .race-event-nav__link {
    display: flex !important;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem !important;
    border-radius: 10px !important;
    font-size: 0.875rem !important;
    font-weight: 550 !important;
    color: #475569 !important;
    white-space: nowrap;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    position: relative;
    text-decoration: none;
    transition:
      background 0.18s ease,
      color 0.18s ease,
      gap 0.28s var(--race-siderail-ease),
      padding var(--race-siderail-dur) var(--race-siderail-ease),
      justify-content var(--race-siderail-dur) var(--race-siderail-ease);
  }
  .race-event-siderail .race-event-nav__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    color: #0f172a;
    transition: transform 0.28s var(--race-siderail-ease);
  }
  .race-event-siderail .race-event-nav__icon svg {
    display: block;
  }
  .race-event-siderail .race-event-nav__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 11rem;
    opacity: 1;
    transform: translateX(0);
    transition:
      opacity 0.2s ease 0.14s,
      max-width var(--race-siderail-dur) var(--race-siderail-ease),
      transform 0.28s var(--race-siderail-ease) 0.08s;
  }
  .race-event-siderail .race-event-nav__link:hover {
    background: rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
  }
  .race-event-siderail .race-event-nav__link--active {
    background: var(--noribel-blue, #42abe0) !important;
    color: #fff !important;
    box-shadow: none !important;
    border-color: transparent !important;
  }
  .race-event-siderail .race-event-nav__link--active .race-event-nav__icon {
    color: #fff;
  }
  .race-event-siderail__foot {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }
  .race-event-siderail__exit {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    position: relative;
    transition:
      background 0.18s ease,
      gap 0.28s var(--race-siderail-ease),
      padding var(--race-siderail-dur) var(--race-siderail-ease);
  }
  .race-event-siderail__exit:hover {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
  }
  /* Collapse: fade labels out immediately, then clip width with the rail */
  .race-event-app--nav-collapsed .race-event-siderail__brand-text,
  .race-event-app--nav-collapsed .race-event-siderail .race-event-nav__text,
  .race-event-app--nav-collapsed .race-event-siderail__exit .race-event-nav__text {
    max-width: 0;
    opacity: 0;
    transform: translateX(-0.35rem);
    pointer-events: none;
    transition:
      opacity 0.12s ease,
      max-width var(--race-siderail-dur) var(--race-siderail-ease),
      transform 0.2s ease;
  }
  .race-event-app--nav-collapsed .race-event-siderail__section,
  .race-event-app--nav-collapsed .race-event-nav__group-toggle {
    display: none !important;
  }
  .race-event-app--nav-collapsed .race-event-nav__group.is-collapsed .race-event-nav__group-body {
    display: flex !important;
  }
  .race-event-app--nav-collapsed .race-event-nav__group {
    margin-bottom: 0.25rem;
  }
  .race-event-app--nav-collapsed .race-event-siderail__head {
    justify-content: center;
    flex-direction: column;
    gap: 0.45rem;
    height: auto;
    min-height: 4.35rem;
    margin-left: -0.45rem;
    margin-right: -0.45rem;
    padding: 0.55rem 0.45rem;
  }
  .race-event-app--nav-collapsed .race-event-siderail__brand {
    justify-content: center;
    flex: 0 0 auto;
    gap: 0;
  }
  .race-event-app--nav-collapsed .race-event-siderail__brand-logo {
    transform: scale(1.06);
  }
  .race-event-app--nav-collapsed .race-event-siderail .race-event-nav__link,
  .race-event-app--nav-collapsed .race-event-siderail__exit {
    justify-content: center;
    gap: 0;
    padding-left: 0.45rem !important;
    padding-right: 0.45rem !important;
  }
  .race-event-app--nav-collapsed .race-event-siderail .race-event-nav__link:hover .race-event-nav__icon,
  .race-event-app--nav-collapsed .race-event-siderail .race-event-nav__link--active .race-event-nav__icon {
    transform: scale(1.06);
  }
  @media (prefers-reduced-motion: reduce) {
    .race-event-siderail,
    .race-event-siderail__head,
    .race-event-siderail__brand,
    .race-event-siderail__brand-logo,
    .race-event-siderail__brand-text,
    .race-event-siderail__toggle,
    .race-event-siderail__toggle-icon,
    .race-event-siderail__section,
    .race-event-siderail .race-event-nav__link,
    .race-event-siderail .race-event-nav__icon,
    .race-event-siderail .race-event-nav__text,
    .race-event-siderail__exit {
      transition: none !important;
    }
  }
  /* CSS ::after tips cause a horizontal scrollbar — use #race-siderail-tip instead */
  .race-event-app--nav-collapsed .race-event-siderail .race-event-nav__link[data-label]:hover::after,
  .race-event-app--nav-collapsed .race-event-siderail__exit[data-label]:hover::after {
    content: none !important;
    display: none !important;
  }
  .race-event-workspace .race-event-topbar__brand,
  .race-event-workspace .race-event-topbar__exit {
    display: none !important;
  }
  .race-event-workspace .race-event-topbar__title {
    max-width: min(52vw, 28rem);
  }
  /* Soft edge only under the continuous Sky chrome strip */
  .race-event-workspace {
    border-left: none;
  }
}
#race-siderail-tip {
  position: fixed;
  z-index: 9000;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: var(--noribel-night, #0b2233);
  color: #fff;
  font-family: var(--font, "Outfit", system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(11, 34, 51, 0.18);
  transform: translateY(-50%);
}
#race-siderail-tip[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .race-event-siderail {
    display: none !important;
  }
}

/* ═══ Noribel brand chrome: Marine menu, Blue accents (norBrandChromeV2) ═══ */
.race-event-topbar {
  background: var(--noribel-marine, #1c6c9e) !important;
  border-bottom: 1px solid rgba(11, 34, 51, 0.18) !important;
  box-shadow: none !important;
  min-height: 3rem;
  height: 3rem;
  padding: 0 0.9rem !important;
}
.race-event-topbar__title {
  color: #fff !important;
  max-width: min(48vw, 26rem) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
}
.race-event-topbar__brand {
  gap: 0.45rem;
  color: #fff;
}
.race-event-topbar__brand-name {
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.race-event-topbar__brand-logo {
  height: 32px !important;
  width: 32px !important;
  border-radius: 7px;
  background: transparent;
  object-fit: contain;
}
.race-event-topbar__exit {
  color: #fff !important;
  opacity: 0.92;
}
.race-event-topbar__exit:hover {
  color: #fff !important;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.race-event-topbar__right {
  gap: 0.45rem !important;
}
.race-event-mobile-nav-btn {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}
.race-event-mobile-nav-btn:hover {
  background: var(--noribel-blue, #42abe0) !important;
  border-color: transparent !important;
  color: #fff !important;
}
.race-topbar-settings {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.race-topbar-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.race-topbar-lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  height: 2.15rem;
  padding: 0 0.55rem;
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.race-topbar-lang__btn:hover,
.race-topbar-lang__btn[aria-expanded="true"] {
  background: var(--noribel-blue, #42abe0);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
}
.race-topbar-lang__code {
  line-height: 1;
}
.race-topbar-lang__dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  left: auto;
  z-index: 600;
  width: max-content;
  min-width: 13.5rem;
  max-width: min(18rem, calc(100vw - 1.25rem));
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--border-strong, rgba(11, 34, 51, 0.14));
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(11, 34, 51, 0.18);
}
.race-topbar-lang__dropdown[hidden] {
  display: none !important;
}
.race-topbar-lang__option {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.55rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--noribel-night, #0b2233);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.race-topbar-lang__option:hover:not(:disabled) {
  background: rgba(66, 171, 224, 0.12);
}
.race-topbar-lang__option.is-active {
  color: var(--noribel-marine, #1c6c9e);
  background: rgba(142, 199, 237, 0.28);
}
.race-topbar-lang__option.is-soon,
.race-topbar-lang__option:disabled {
  cursor: default;
  color: var(--text-muted, #5c6178);
  opacity: 1;
}
.race-topbar-lang__option-code {
  grid-column: 1;
  margin-top: 0.1rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: inherit;
  line-height: 1.2;
}
.race-topbar-lang__option-body {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}
.race-topbar-lang__option-name {
  display: block;
  line-height: 1.25;
  white-space: nowrap;
}
.race-topbar-lang__soon {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(28, 108, 158, 0.1);
  color: var(--noribel-marine, #1c6c9e);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
}
.race-topbar-undo {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-right: 0.1rem;
}
.race-topbar-undo__btn.race-undo-redo-btn {
  min-width: 2rem;
  height: 2.15rem;
  padding: 0 0.4rem;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
}
.race-topbar-undo__btn.race-undo-redo-btn:hover:not(:disabled) {
  background: var(--noribel-blue, #42abe0);
  border-color: transparent;
  color: #fff;
}
.race-topbar-undo__btn.race-undo-redo-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.race-topbar-user {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.race-topbar-user__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.race-topbar-user__btn:hover,
.race-topbar-user__btn[aria-expanded="true"] {
  background: var(--noribel-blue, #42abe0);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(66, 171, 224, 0.28);
  transform: translateY(-1px);
}
.race-topbar-user__glyph {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: inherit;
  line-height: 1;
}
.race-topbar-user__dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 600;
  min-width: 11.5rem;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid var(--border-strong, rgba(11, 34, 51, 0.14));
  border-radius: var(--radius-md, 16px);
  box-shadow: 0 12px 32px rgba(11, 34, 51, 0.16);
}
.race-topbar-user__dropdown[hidden] {
  display: none !important;
}
.race-topbar-user__header {
  padding: 0.5rem 0.9rem 0.4rem;
  border-bottom: 1px solid var(--border, rgba(11, 34, 51, 0.09));
}
.race-topbar-user__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted, #5c6178);
}
.race-topbar-user__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.9rem;
  border: 0;
  background: transparent;
  color: var(--text, #0f1222);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.race-topbar-user__item:hover {
  background: rgba(66, 171, 224, 0.12);
  color: var(--noribel-marine, #1c6c9e);
}
.race-topbar-user__item--danger {
  color: var(--danger, #e11d48);
}
.race-topbar-user__sep {
  margin: 0.3rem 0;
  border: 0;
  border-top: 1px solid var(--border, rgba(11, 34, 51, 0.09));
}
.race-event-topbar .race-stage-context-bar {
  color: rgba(255, 255, 255, 0.9);
}
.race-event-topbar .race-stage-context-bar__label {
  color: rgba(255, 255, 255, 0.88) !important;
}
@media (max-width: 900px) {
  .race-topbar-lang__btn {
    min-width: 2.35rem;
    height: 2rem;
    padding: 0 0.45rem;
    font-size: 0.625rem;
  }
  .race-event-topbar__brand-name {
    display: none;
  }
}


/* Compact elevation / inline busy state — not a full-page card */
.noribel-loading-overlay--compact{
  align-items:flex-start;justify-content:center;padding-top:0.85rem;
  background:rgba(248,250,252,.55);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
}
.noribel-loading-overlay--compact .noribel-loading-overlay__inner--compact{
  flex-direction:row;align-items:center;gap:0.75rem;
  max-width:min(420px,92%);padding:0.65rem 0.95rem;
  border-radius:999px;border:1px solid rgba(15,18,35,.1);
  background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.12);
  text-align:left;
}
.noribel-loading-overlay--compact .noribel-loading-overlay__copy{min-width:0}
.noribel-loading-overlay--compact .noribel-loading-overlay__message{
  margin:0;font-size:0.8125rem;font-weight:650;color:#0f172a;letter-spacing:0;
}
.noribel-loading-overlay--compact .noribel-loading-overlay__submessage{
  margin:0.1rem 0 0;font-size:0.72rem;font-weight:500;color:#64748b;
}
.noribel-loading-overlay--compact .noribel-loading-overlay__spinner{margin:0;flex-shrink:0}
.noribel-loading-overlay--compact .noribel-loading-overlay__spinner>span{
  width:6px;height:6px;background:#5ba8d4;
}

/* Multi-select layer features */
.race-map-std-layer__feat{align-items:center}
.race-map-std-layer__feat-check{
  flex-shrink:0;width:1rem;height:1rem;margin:0 .15rem 0 0;accent-color:#5ba8d4;cursor:pointer;
}
.race-map-std-layer__bulk{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.45rem .75rem;
  margin:0 0 .45rem;padding:.4rem .5rem;border-radius:8px;
  border:1px solid rgba(15,18,35,.1);background:rgba(248,250,252,.95);
}
.race-map-std-layer__bulk.is-active{border-color:rgba(225,29,72,.28);background:rgba(225,29,72,.05)}
.race-map-std-layer__bulk-all{
  display:inline-flex;align-items:center;gap:.35rem;
  font-size:.75rem;font-weight:600;color:#334155;cursor:pointer;user-select:none;
}
.race-map-std-layer__bulk-del{
  border:1px solid rgba(225,29,72,.35);background:#fff;color:#be123c;
  border-radius:8px;padding:.28rem .65rem;font-size:.75rem;font-weight:650;cursor:pointer;
}
.race-map-std-layer__bulk-del:disabled{opacity:.45;cursor:not-allowed}
.race-map-std-layer__bulk-del:not(:disabled):hover{background:rgba(225,29,72,.08)}

/* --- Map controls layout: zoom BL, search TL, tools TR, elev BR (norMapChromeV1) --- */
.race-map-shell .race-map-map-top-tools,
.race-map-shell .race-map-map-top-tools--v2 {
  top: 0.75rem !important;
  z-index: 16;
}
.race-map-shell .race-map-map-top-tools--search {
  left: 0.75rem !important;
  right: auto !important;
  align-items: flex-start !important;
}
.race-map-shell .race-map-map-top-tools--search .race-map-map-top-tools__row {
  justify-content: flex-start !important;
}
.race-map-shell .race-map-map-top-tools--actions {
  left: auto !important;
  right: 0.75rem !important;
  align-items: flex-end !important;
}
.race-map-shell .mapboxgl-ctrl-bottom-left {
  bottom: 0;
  left: 0;
  z-index: 12;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.4rem;
  padding: 0 0 0.25rem 0.25rem;
}
.race-map-shell .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl {
  margin: 0;
  position: relative;
  z-index: 1;
}
/* Logo stays in the corner underneath zoom/scale */
.race-map-shell .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-logo {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  margin: 0;
}
.race-map-shell .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-group {
  order: 1;
}
.race-map-shell .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-scale {
  order: 2;
  margin-bottom: 0.2rem;
}
.race-map-shell .race-map-elev-dock {
  left: 0.65rem !important;
  right: 0.65rem !important;
  bottom: 0 !important;
  transform: none !important;
  width: auto !important;
  max-width: none !important;
  align-items: center !important;
}
.race-map-shell .race-map-elev-dock--open {
  align-items: stretch !important;
}
.race-map-shell .race-map-elev-rail-toggle {
  align-self: center;
  width: 2.75rem !important;
  height: 2.75rem !important;
  margin: 0 0 0.65rem 0 !important;
  border: 1px solid rgba(15, 18, 35, 0.1) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: var(--text, #0f1222) !important;
  box-shadow: 0 2px 10px rgba(15, 18, 35, 0.08) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.race-map-shell .race-map-elev-rail-toggle:hover {
  border-color: rgba(91, 168, 212, 0.45) !important;
  background: #fff !important;
  color: var(--noribel-marine, #1c6c9e) !important;
}
.race-map-shell .race-map-elev-dock--open .race-map-elev-rail-toggle {
  align-self: center;
  margin-bottom: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom: none !important;
  background: var(--bg-card, #fff) !important;
  color: var(--noribel-marine, #1c6c9e) !important;
}
.race-map-shell .race-map-elev-rail-toggle__chev {
  display: none !important;
}
.race-map-shell .race-map-elev-rail-toggle__icon {
  display: block;
}
.race-map-shell .race-map-elev-dock--open .race-map-elev-panel {
  width: 100%;
}

/*norCustomLayerAlignV2*/
.race-map-std-layer__head {
  position: relative;
}
.race-map-std-layer__track-color-input {
  position: absolute !important;
  left: 0;
  top: 0;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}
.race-map-std-layer--custom .race-map-std-layer__head {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.3rem;
}
.race-map-std-layer--custom .race-map-std-layer__dot,
.race-map-std-layer--custom .race-map-std-layer__dot--track {
  width: 0.62rem;
  height: 0.62rem;
  min-width: 0.62rem;
  min-height: 0.62rem;
  border-radius: 50%;
  flex: 0 0 auto;
  align-self: center;
  box-shadow: 0 0 0 1px #00000059;
}
.race-map-std-layer--custom .race-map-std-layer__label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}
.race-map-std-layer--custom .race-map-std-layer__lock,
.race-map-std-layer--custom .race-map-std-layer__toggle {
  justify-self: end;
}

/*norElevFiltersMenusV1*//*norElevNoribelChromeV1*//*norElevCompactHeadV1*/
.race-map-shell .race-map-elev-panel {
  padding: 0.28rem 0.45rem 0.35rem !important;
}
.race-map-elev-panel__head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.12rem !important;
  min-height: 0;
}
.race-map-elev-panel__title {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.62rem !important;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.race-map-elev-panel__filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  margin-left: auto;
  flex: 0 0 auto;
}
.race-map-elev-panel__filters .race-3d-course-export-btn {
  appearance: none;
  border: 1px solid rgba(28, 108, 158, 0.22);
  background: #fff;
  color: var(--noribel-marine, #1c6c9e);
  font: 650 0.62rem var(--font, Outfit, system-ui, sans-serif);
  padding: 0.18rem 0.42rem;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1.15;
  white-space: nowrap;
  box-shadow: none;
}
.race-map-elev-panel__filters .race-3d-course-export-btn:hover {
  background: var(--noribel-blue-dim, rgba(142, 199, 237, 0.18));
  border-color: var(--noribel-blue, #42abe0);
  color: var(--noribel-night, #0b2233);
}
.race-map-elev-menus {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  margin-left: 0;
  padding: 0.08rem;
  border-radius: 7px;
  background: var(--bg-subtle, #f0f5fb);
  border: 1px solid rgba(28, 108, 158, 0.14);
}
.race-map-elev-menu {
  position: relative;
}
.race-map-elev-menu__btn {
  list-style: none;
  cursor: pointer;
  user-select: none;
  font: 600 0.62rem var(--font, Outfit, system-ui, sans-serif);
  color: var(--text-muted, #5c6178);
  background: transparent;
  border: 0;
  border-radius: 5px;
  padding: 0.18rem 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  line-height: 1.15;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.race-map-elev-menu__btn::-webkit-details-marker { display: none; }
.race-map-elev-menu__btn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 2.5px solid transparent;
  border-right: 2.5px solid transparent;
  border-top: 3.5px solid currentColor;
  margin-top: 1px;
  opacity: 0.7;
}
.race-map-elev-menu__btn:hover {
  color: var(--noribel-marine, #1c6c9e);
  background: rgba(142, 199, 237, 0.22);
}
.race-map-elev-menu[open] > .race-map-elev-menu__btn {
  background: linear-gradient(135deg, var(--noribel-marine, #1c6c9e), var(--noribel-blue, #42abe0));
  color: #fff;
  box-shadow: 0 1px 6px rgba(28, 108, 158, 0.28);
}
.race-map-elev-menu__panel {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  z-index: 1300;
  min-width: 11.5rem;
  max-width: min(16rem, calc(100vw - 1.5rem));
  max-height: min(45vh, 18rem);
  overflow: auto;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  background: var(--bg-card, #fff);
  border: 1px solid rgba(28, 108, 158, 0.16);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(11, 34, 51, 0.14);
}
.race-map-elev-menu__panel--layers {
  min-width: 12.5rem;
}
.race-map-elev-menu__panel .race-map-elev-filter {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.26rem 0.35rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--noribel-night, #0b2233);
  cursor: pointer;
}
.race-map-elev-menu__panel .race-map-elev-filter:hover {
  background: var(--noribel-blue-dim, rgba(142, 199, 237, 0.18));
}
.race-map-elev-menu__panel .race-map-elev-filter input {
  margin: 0;
  accent-color: var(--noribel-marine, #1c6c9e);
}
.race-map-elev-layers-inline {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.race-map-elev-filter--layer {
  width: 100%;
}
.race-map-elev-chart {
  margin-top: 0;
}

/* Sharper profile + readable labels (map elev chart) */
.race-map-elev-chart .race-overview-elev__line {
  stroke: var(--noribel-marine, #1c6c9e);
  stroke-width: 3.75;
  stroke-linejoin: miter;
  stroke-linecap: butt;
  filter: none;
}
.race-map-elev-chart .race-overview-elev__area {
  fill: rgba(66, 171, 224, 0.28);
}
.race-map-elev-chart .race-overview-elev__axis-label,
.race-map-elev-chart .race-overview-elev__x-tick-label {
  fill: var(--noribel-night, #0b2233);
  font-size: 14px;
  font-weight: 700;
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 3.5px;
  stroke-linejoin: round;
}
.race-map-elev-chart .race-overview-elev__axis-label--km {
  fill: var(--noribel-night, #0b2233);
  font-size: 14px;
  font-weight: 700;
}
.race-map-elev-chart .race-overview-elev__neutral-label {
  fill: var(--noribel-marine, #1c6c9e);
  font-size: 13px;
  font-weight: 700;
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 3.5px;
  stroke-linejoin: round;
}
.race-map-elev-chart .race-overview-elev__x-marker-km {
  fill: var(--noribel-marine, #1c6c9e);
  font-size: 13px;
  font-weight: 800;
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.race-map-elev-chart .race-overview-elev__start-line {
  stroke: var(--noribel-marine, #1c6c9e);
  stroke-width: 2;
}
.race-map-elev-chart .race-overview-elev__grid {
  stroke: rgba(28, 108, 158, 0.16);
}

/*norPlaceRowColorV1*/
.race-map-place-row-color-field {
  margin: 0.35rem 0 0.55rem;
}
.race-map-place-row-color-field .field__label {
  display: block;
  margin-bottom: 0.35rem;
}
.race-map-place-row-color-field .race-roadbook-row-color-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.race-map-place-row-color-field .race-roadbook-row-color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.race-map-place-row-color-field .row-color-swatch {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  border: 1px solid rgba(15, 18, 35, 0.12);
  padding: 0;
  cursor: pointer;
}
.race-map-place-row-color-field .race-roadbook-row-dialog__color-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.race-map-place-row-color-field #race-map-place-row-color {
  width: 2rem;
  height: 1.6rem;
  padding: 0;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

/* -- Sustainability dashboard -- */
.race-event-panel--sustainability {
  padding: 0.85rem 1rem 1.5rem;
  max-width: 1100px;
}
.sus-dash__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.sus-dash__titles .race-event-panel__h1 { margin: 0; }
.sus-dash__window {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: #1f6b4a;
  font-weight: 500;
}
.sus-dash__actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sus-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.sus-kpi {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.sus-kpi--accent {
  background: linear-gradient(160deg, #e8f5ee, #fff);
  border-color: #b7dcc8;
}
.sus-kpi__v {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.sus-kpi__l {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #64748b);
}
.sus-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  padding: 0.2rem;
  background: #eef2ef;
  border-radius: 10px;
}
.sus-tabs__btn {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.sus-tabs__btn--active {
  background: #fff;
  color: #14231a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.sus-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.sus-toolbar__hint { margin: 0; font-size: 0.82rem; }
.sus-table-wrap {
  overflow: auto;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: #fff;
}
.sus-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.sus-table th,
.sus-table td {
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid #eef2f0;
  text-align: left;
  vertical-align: middle;
}
.sus-table tbody tr:last-child td { border-bottom: 0; }
.sus-th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f8faf8;
  white-space: nowrap;
}
.sus-th--check, .sus-th--act { width: 2.2rem; }
.sus-th--num, .sus-td--num { text-align: right; white-space: nowrap; }
.sus-inline {
  width: 100%;
  min-height: 2rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  background: transparent;
}
.sus-inline:hover, .sus-inline:focus {
  border-color: #c5d4cb;
  background: #fff;
  outline: none;
}
.sus-inline--num { width: 5.5rem; text-align: right; }
.sus-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #eef2f0;
  color: #475569;
}
.sus-badge--live {
  background: #d8efe4;
  color: #1f6b4a;
}
.sus-icon-btn {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.35rem;
}
.sus-icon-btn:hover { color: #b91c1c; }
.sus-empty { margin: 0.75rem; }
.sus-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.55rem;
}
.sus-check-card {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sus-check-card[data-status="done"] { border-color: #9dceb2; background: #f3faf6; }
.sus-check-card[data-status="doing"] { border-color: #e8d48a; background: #fffdf5; }
.sus-check-card[data-status="na"] { opacity: 0.72; }
.sus-check-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}
.sus-check-card__top strong { font-size: 0.86rem; }
.sus-check-card__top select,
.sus-check-card input {
  min-height: 1.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.2rem 0.35rem;
}
.sus-check-card input { width: 100%; }
.sus-site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.55rem;
}
.sus-chip-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  padding: 0.45rem 0.55rem;
}
.sus-chip-field span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.sus-chip-field input {
  border: 0;
  padding: 0.2rem 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  background: transparent;
  min-height: 1.6rem;
}
.sus-chip-field input:focus { outline: none; }
.sus-chip-field--wide { grid-column: 1 / -1; }
.sus-share-card {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}
.sus-share-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.sus-share-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  margin-right: auto;
}
.sus-share-url {
  width: 100%;
  margin-top: 0.55rem;
  min-height: 2.2rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
}
.sus-share-help { margin: 0.45rem 0 0; font-size: 0.8rem; }
.sus-summary-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.35rem;
}
.sus-summary {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.4;
  resize: vertical;
  background: #f8faf8;
}
.sus-status {
  margin: 0.65rem 0 0;
  min-height: 1.1rem;
  font-size: 0.82rem;
}
.sus-status[data-tone="ok"] { color: #1f6b4a; }
.sus-status[data-tone="error"] { color: #b91c1c; }

/* Report builder */
.sus-report-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.sus-report-toolbar__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.sus-report-meta {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}
.sus-report-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.sus-report-blocks {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.sus-report-block {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  padding: 0.65rem 0.75rem;
}
.sus-report-block--hidden {
  opacity: 0.55;
  background: #f8faf8;
}
.sus-report-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.sus-report-block__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
}
.sus-report-block__acts .sus-icon-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.sus-report-text {
  width: 100%;
  box-sizing: border-box;
  min-height: 6rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.4;
  resize: vertical;
}
.sus-report-img img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  margin-bottom: 0.45rem;
  object-fit: cover;
}
.sus-report-img__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}
.sus-report-preview {
  font-size: 0.84rem;
  color: #334155;
}
.sus-report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}
.sus-report-kpis div {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #f8faf8;
}
.sus-report-kpis strong {
  display: block;
  font-size: 1rem;
}
.sus-report-kpis span {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.sus-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.sus-report-table th,
.sus-report-table td {
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid #eef2f0;
  text-align: left;
}
.sus-report-table th {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #64748b;
}
.sus-report-list {
  margin: 0;
  padding-left: 1.1rem;
}
.sus-report-list li { margin: 0.2rem 0; }
.sus-report-meta-line {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}
.sus-report-empty {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}
@media (max-width: 800px) {
  .sus-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sus-report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sus-kpis { grid-template-columns: 1fr 1fr; }
}

/* Municipality / City overlay panel */
.race-map-shell { position: relative; }
.nor-city-panel {
  position: absolute;
  top: 3.75rem;
  right: 0.65rem;
  bottom: 4.5rem;
  z-index: 1100;
  width: min(22rem, calc(100vw - 1.25rem));
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0.9rem 0.9rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.race-map-shell > .noribel-loading-overlay {
  z-index: 1400;
}
.nor-city-panel--loading {
  pointer-events: none;
  opacity: 0.72;
}
.nor-city-panel[hidden] { display: none !important; }
.nor-city-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nor-city-panel__head strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #0f172a;
}
.nor-city-panel__sub {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #64748b;
}
.nor-city-panel__close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
}
.nor-city-panel__close:hover { color: #0f172a; }
.nor-city-panel__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  font-size: 0.72rem;
  color: #475569;
  flex-shrink: 0;
}
.nor-city-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  margin-right: 0.2rem;
  vertical-align: -0.1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.nor-city-swatch--on { background: rgba(245, 166, 35, 0.55); }
.nor-city-swatch--off { background: rgba(100, 116, 139, 0.35); }
.nor-city-panel__status {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1f6b4a;
  flex-shrink: 0;
}
.nor-city-view {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}
.nor-city-view__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.nor-city-view__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.nor-city-view__btn {
  appearance: none;
  border: 1px solid #dbe3ea;
  background: #fff;
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.nor-city-view__btn[hidden] {
  display: none !important;
}
.nor-city-view__btn:hover {
  border-color: #f5a623;
  color: #0f172a;
}
.nor-city-view__btn.is-active {
  border-color: #f5a623;
  background: rgba(245, 166, 35, 0.18);
  color: #5a3a0a;
}
.nor-city-view__n {
  display: inline-block;
  min-width: 1.1em;
  margin-left: 0.15rem;
  padding: 0.05rem 0.28rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #9a3412;
  background: #ffedd5;
  vertical-align: 0.05em;
}
.nor-city-view__btn.is-active .nor-city-view__n {
  background: #fed7aa;
}
.nor-city-view__n:empty {
  display: none;
}
.nor-city-panel__hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
}
.nor-city-panel__settings {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.35rem 0.55rem 0.55rem;
  background: #f8fafc;
  flex-shrink: 0;
}
.nor-city-panel__settings > summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  padding: 0.25rem 0;
}
.nor-city-panel__settings-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.nor-city-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.nor-city-fieldset legend {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.15rem;
}
.nor-city-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #334155;
  cursor: pointer;
}
.nor-city-range {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}
.nor-city-range input[type="range"] { width: 100%; }
.nor-city-panel__acts,
.nor-city-panel__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex-shrink: 0;
}
.nor-city-panel__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.nor-city-panel__col {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 0.45rem 0.5rem;
  overflow: hidden;
}
.nor-city-panel__col--muted { background: #f8fafc; }
.nor-city-panel__col h3 {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  flex-shrink: 0;
}
.nor-city-panel__list {
  margin: 0;
  padding: 0 0 0 1rem;
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.35;
  flex: 1;
}
.nor-city-panel__list li { margin: 0.12rem 0; }
.nor-city-popup__status {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}
@media (max-width: 720px) {
  .nor-city-panel {
    top: auto;
    bottom: 0.5rem;
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    max-height: 45vh;
  }
  .nor-city-panel__cols { grid-template-columns: 1fr; }
}

/* Safety menu — dropdown under the map Safety tool button */
.race-map-safety-wrap {
  position: relative;
  display: inline-flex;
}
.nor-safety-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: auto;
  z-index: 1200;
  width: min(15.5rem, calc(100vw - 1.25rem));
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.3rem;
  border: 1px solid var(--border, rgba(15, 18, 35, 0.09));
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 18, 35, 0.14);
}
.nor-safety-panel[hidden] { display: none !important; }
.nor-safety-menu__item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text, #0f1222);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.nor-safety-menu__item:hover {
  background: rgba(142, 199, 237, 0.18);
}
.nor-safety-menu__ico {
  flex: none;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
}
.nor-safety-menu__ico--hosp {
  background: #f0fdfa;
  color: #0d9488;
}
.nor-safety-menu__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.nor-safety-menu__text strong {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}
.nor-safety-menu__text span {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.25;
}
/* Legacy card selectors kept as aliases so older markup still looks ok */
.nor-safety-panel__head,
.nor-safety-panel__close,
.nor-safety-card__chev { display: none !important; }
.nor-safety-cards { display: flex; flex-direction: column; gap: 0.15rem; }
.nor-safety-card {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.55rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.nor-safety-card:hover { background: rgba(142, 199, 237, 0.18); }
.nor-safety-card__ico {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
}
.nor-safety-card__ico--hosp {
  background: #f0fdfa;
  color: #0d9488;
}
.nor-safety-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.nor-safety-card__body strong { font-size: 0.8rem; }
.nor-safety-card__body span { font-size: 0.68rem; color: #64748b; }
.nor-trains-popup__ico--hosp {
  background: #f0fdfa;
  color: #0d9488;
}
.nor-trains-kind--hosp {
  color: #0f766e;
  background: #ccfbf1;
}
.nor-hosp-kind--er {
  color: #166534;
  background: #dcfce7;
}
.nor-hosp-kind--noer {
  color: #991b1b;
  background: #fee2e2;
}
.nor-hosp-kind--trauma {
  color: #9a3412;
  background: #ffedd5;
}
.nor-hosp-kind--uni {
  color: #1e40af;
  background: #dbeafe;
}
.nor-hospitals-hint {
  margin: 0;
  flex: 1;
  font-size: 0.72rem;
  line-height: 1.35;
  min-width: 8rem;
}
.nor-hospitals-loading {
  position: absolute;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(2px);
  pointer-events: all;
}
.nor-hospitals-loading[hidden] {
  display: none !important;
}
.nor-hospitals-loading__ico {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 1.15rem;
  background: #f0fdfa;
  color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px rgba(13, 148, 136, 0.35);
  animation: nor-hosp-pulse 1.15s ease-in-out infinite;
}
@keyframes nor-hosp-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.07); opacity: 0.88; }
}
.nor-safety-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}
.nor-safety-card__body strong {
  font-size: 0.88rem;
  color: #0f172a;
}
.nor-safety-card__body span {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.3;
}
.nor-safety-card__chev {
  color: #94a3b8;
  font-size: 1.2rem;
  font-weight: 600;
}

.nor-trains-popup {
  position: absolute;
  top: 3.5rem;
  right: 0.65rem;
  bottom: 5.25rem; /* clear chat FAB */
  z-index: 1200;
  width: min(21rem, calc(100vw - 1.25rem));
  pointer-events: none;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.nor-trains-popup[hidden] { display: none !important; }
.nor-trains-popup__card {
  pointer-events: auto;
  width: 100%;
  flex: 1 1 auto;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
.nor-trains-popup__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.7rem 0.75rem 0.55rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.nor-trains-popup__title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.nor-trains-popup__ico {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
}
.nor-trains-popup__head h2 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #0f172a;
}
.nor-trains-popup__sub {
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.3;
}
.nor-trains-popup__close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.2rem;
}
.nor-trains-popup__close:hover { color: #0f172a; }
.nor-trains-popup__body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0.55rem 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.nor-trains-popup__foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem 0.7rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.nor-trains-popup__foot[hidden] { display: none !important; }

.nor-trains-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.55rem;
  flex-shrink: 0;
}
.nor-trains-toggle--compact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}
.nor-trains-toggle--compact input {
  margin: 0;
  width: 0.95rem;
  height: 0.95rem;
}
.nor-trains-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.nor-trains-note {
  margin: 0;
  font-size: 0.72rem;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  line-height: 1.35;
}
.nor-trains-status {
  margin: 0;
  min-height: 0;
  font-size: 0.75rem;
  font-weight: 650;
  color: #1f6b4a;
  flex-shrink: 0;
}
.nor-trains-status:empty { display: none; }

.nor-trains-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nor-trains-list-head__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.nor-trains-list-head__acts {
  display: flex;
  gap: 0.55rem;
}
.nor-trains-text-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  color: #2563eb;
  cursor: pointer;
}
.nor-trains-text-btn:hover { text-decoration: underline; }

.nor-trains-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e8eef3;
  border-radius: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.nor-trains-list:empty { display: none; }
.nor-trains-row {
  display: flex;
  align-items: stretch;
  border-top: 1px solid #eef2f0;
}
.nor-trains-row:first-child { border-top: 0; }
.nor-trains-row--warn { background: #fff7ed; }
.nor-trains-row--active { background: #eff6ff; box-shadow: inset 3px 0 0 #2563eb; }
.nor-trains-row__check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
}
.nor-trains-row__check input {
  margin-top: 0.15rem;
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}
.nor-trains-row__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.nor-trains-row__body strong {
  font-size: 0.82rem;
  color: #0f172a;
  line-height: 1.25;
}
.nor-trains-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
}
.nor-trains-row__coords {
  font-size: 0.65rem;
  color: #94a3b8;
}
.nor-trains-kind {
  display: inline-block;
  width: fit-content;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
}
.nor-trains-kind--rail { color: #b91c1c; background: #fee2e2; }
.nor-trains-kind--bridge { color: #b45309; background: #ffedd5; }
.nor-trains-warn {
  font-size: 0.65rem;
  font-weight: 650;
  color: #c2410c;
}
.nor-trains-row__fly {
  appearance: none;
  border: 0;
  border-left: 1px solid #eef2f0;
  background: transparent;
  padding: 0 0.5rem;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.8rem;
  width: auto;
  text-align: center;
}
.nor-trains-row__fly:hover {
  color: #2563eb;
  background: #f8fafc;
}

.nor-trains-tools {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.nor-trains-tools[hidden] { display: none !important; }
.nor-trains-tools__title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
}
.nor-trains-tools__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.nor-trains-detour-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nor-trains-detour-opt {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.nor-trains-detour-opt strong { font-size: 0.76rem; color: #0f172a; }
.nor-trains-detour-opt span { font-size: 0.65rem; color: #64748b; }
.nor-trains-detour-opt.is-active {
  border-color: #2563eb;
  background: #eff6ff;
}

.nor-trains-conflict {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  padding: 0;
}
.nor-trains-conflict > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 650;
  color: #334155;
  user-select: none;
}
.nor-trains-conflict > summary::-webkit-details-marker { display: none; }
.nor-trains-conflict > summary::after {
  content: '▾';
  float: right;
  color: #94a3b8;
}
.nor-trains-conflict[open] > summary::after { content: '▴'; }
.nor-trains-conflict__inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0.5rem 0.5rem;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.45rem;
}
.nor-trains-conflict__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.85fr 0.85fr;
  gap: 0.3rem;
}
.nor-trains-conflict__grid label,
.nor-trains-conflict__trains {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.65rem;
  font-weight: 650;
  color: #64748b;
}
.nor-trains-conflict input {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.28rem 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #0f172a;
  width: 100%;
  box-sizing: border-box;
}
.nor-trains-conflict__out {
  font-size: 0.74rem;
  color: #334155;
}
.nor-trains-conflict__out:empty { display: none; }
.nor-trains-conflict__out p { margin: 0 0 0.3rem; }
.nor-trains-cf-list {
  margin: 0.2rem 0 0;
  padding: 0;
  list-style: none;
}
.nor-trains-cf-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.4rem;
  border-radius: 7px;
  margin-bottom: 0.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.nor-trains-cf-list li span { font-size: 0.66rem; color: #64748b; }
.nor-trains-cf-list li em { font-style: normal; font-size: 0.7rem; color: #0f172a; }
.nor-trains-cf--critical { border-color: #fca5a5 !important; background: #fef2f2 !important; }
.nor-trains-cf--warning { border-color: #fcd34d !important; background: #fffbeb !important; }
.nor-trains-cf--watch { border-color: #93c5fd !important; background: #eff6ff !important; }

.nor-trains-add__field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.nor-trains-add__field .field__label {
  font-size: 0.68rem;
  font-weight: 650;
  color: #64748b;
}
.nor-trains-add__field .race-map-style-select,
.nor-trains-popup__foot .race-map-style-select {
  width: 100%;
}
.nor-trains-add__btn { width: 100%; }

@media (max-width: 720px) {
  .nor-trains-popup {
    top: auto;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 5rem;
    width: auto;
    max-height: 52vh;
  }
  .nor-trains-conflict__grid { grid-template-columns: 1fr 1fr; }
}

/* Map rail: one dropdown language for start time / pace / waves.
   Same card chrome, type scale, and disclosure triangle. Layers slightly tighter. */
.race-map-rail--left .race-map-sect--fold {
  display: block;
  margin-top: 0;
  padding: 0.35rem 0.45rem 0.45rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg-card, #fff);
  gap: 0;
}
.race-map-rail--left .race-map-sect--fold > .race-map-sect__h {
  display: block;
  cursor: pointer;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #5c6178);
}
.race-map-rail--left .race-map-sect--fold > .race-map-sect__h::-webkit-details-marker {
  display: none;
}
.race-map-rail--left .race-map-sect--fold > .race-map-sect__h::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0.35rem;
  border-left: 0.28rem solid var(--text-subtle, #85899e);
  border-top: 0.2rem solid transparent;
  border-bottom: 0.2rem solid transparent;
  vertical-align: 0.05em;
  transition: transform 0.12s ease;
}
.race-map-rail--left .race-map-sect--fold[open] > .race-map-sect__h::before {
  transform: rotate(90deg);
}
.race-map-rail--left .race-map-sect--fold > *:not(.race-map-sect__h) {
  margin-top: 0.35rem;
}
.race-map-rail--left .race-map-sect--fold:not([open]) > *:not(.race-map-sect__h) {
  display: none !important;
}

.race-map-rail--left > .race-map-drawer > .race-map-rail-details,
.race-map-rail--left .race-map-rail-details--pace,
.race-map-rail--left .race-map-opt-details {
  margin-top: 0.35rem;
  padding: 0.35rem 0.45rem 0.45rem;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border, #e2e8f0);
  background: var(--bg-card, #fff);
}

.race-map-rail--left .race-map-rail-details__summary,
.race-map-rail--left .race-map-opt-details__summary,
.race-map-rail--left .race-map-opt-details__summary .race-map-feat-toggle,
.race-map-rail--left .race-map-opt-details__summary .race-map-feat-toggle span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #5c6178);
}

/* Start waves: label matches the other summaries; enable tick sits on the right */
.race-map-rail--left .race-map-opt-details__summary {
  display: flex;
  align-items: center;
  gap: 0;
}
.race-map-rail--left .race-map-opt-details__toggle {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 0.4rem;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}
.race-map-rail--left .race-map-opt-details__toggle span {
  flex: 1;
  min-width: 0;
}
.race-map-rail--left .race-map-opt-details__toggle input[type="checkbox"] {
  order: 2;
  margin: 0 0 0 auto;
  flex: none;
}

/* Nested “Customize speeds” stays a quieter secondary control */
.race-map-rail--left .race-map-rail-details--nested {
  margin-top: 0.15rem;
  padding: 0.2rem 0.3rem 0.3rem;
  border: none;
  background: transparent;
}
.race-map-rail--left .race-map-rail-details--nested > .race-map-rail-details__summary {
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* Layers: slightly more compact */
.race-map-rail--left .race-map-std-layers-panel {
  padding: 0.4rem 0.5rem 0.45rem;
  box-shadow: none;
}
.race-map-rail--left .race-map-std-layers-panel__head {
  margin-bottom: 0.3rem;
}
.race-map-rail--left .race-map-std-layers-panel__title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, #5c6178);
}
.race-map-rail--left .race-map-std-layers-panel__menu-btn {
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
}

/* Start waves actions: one equal row — Add / Timetable / Share */
.race-map-rail--left .race-start-waves-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.55rem;
  align-items: stretch;
}
.race-map-rail--left .race-start-waves-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 3.35rem;
  margin: 0;
  padding: 0.45rem 0.3rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 9px;
  background: #fff;
  color: var(--text, #0f1222);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.race-map-rail--left .race-start-waves-action:hover {
  background: var(--bg-subtle, #f0f5fb);
  border-color: var(--noribel-blue, #8ec7ed);
  color: var(--noribel-marine, #1c6c9e);
}
.race-map-rail--left .race-start-waves-action:focus-visible {
  outline: 2px solid var(--noribel-blue, #42abe0);
  outline-offset: 2px;
}
.race-map-rail--left .race-start-waves-action svg {
  flex: none;
  color: var(--noribel-marine, #1c6c9e);
}
.race-map-rail--left a.race-start-waves-action {
  color: var(--text, #0f1222);
}

/* Play simulation — same chip language, full width above the wave list */
.race-map-rail--left .nor-sim-launch,
.race-map-rail--left #nor-sim-launch-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0.55rem 0 0.45rem !important;
  padding: 0.55rem 0.75rem !important;
  border: 1px solid var(--border, #e2e8f0) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--noribel-marine, #1c6c9e) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  box-shadow: none !important;
}
.race-map-rail--left .nor-sim-launch:hover,
.race-map-rail--left #nor-sim-launch-btn:hover {
  background: var(--bg-subtle, #f0f5fb) !important;
  border-color: var(--noribel-blue, #8ec7ed) !important;
}

/* norTabPerfV1: hidden race tabs should not cost layout */
.race-event-panel[hidden] {
  display: none !important;
}

/* Live Tracking map needs a real box before Mapbox boots */
.race-event-panel--ecc .ecc-map,
#ecc-map-container.ecc-map {
  min-height: 420px;
  height: 100%;
}

/* Safety → Danger scanner (admin, v1) */
.nor-safety-menu__item[hidden] {
  display: none !important;
}
.nor-safety-menu__ico--danger,
.nor-trains-popup__ico--danger {
  background: #fff7ed;
  color: #ea580c;
}
.nor-safety-menu__badge {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}
.nor-danger-body {
  gap: 0.4rem;
}
.nor-danger-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.nor-danger-info {
  margin-left: auto;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font: italic 700 0.62rem/1.05rem Georgia, serif;
  text-align: center;
  cursor: help;
}
.nor-danger-status {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #334155;
  flex-shrink: 0;
}
.nor-danger-status:empty { display: none; }
.nor-danger-progress {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  flex-shrink: 0;
}
.nor-danger-progress[hidden] { display: none; }
.nor-danger-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.nor-danger-progress__bar span {
  display: block;
  height: 100%;
  width: 3%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #ea580c);
  background-size: 200% 100%;
  animation: nor-danger-shimmer 1.4s linear infinite;
  transition: width 0.4s ease;
}
@keyframes nor-danger-shimmer {
  from { background-position: 200% 0; }
  to { background-position: 0 0; }
}
.nor-danger-steps {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.68rem;
  font-weight: 650;
  color: #94a3b8;
}
.nor-danger-step {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nor-danger-step b {
  font-weight: 800;
  color: inherit;
  font-variant-numeric: tabular-nums;
}
.nor-danger-step__ico {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  box-sizing: border-box;
  flex-shrink: 0;
}
.nor-danger-step.is-active { color: #0f172a; }
.nor-danger-step.is-active .nor-danger-step__ico {
  border-color: #fdba74;
  border-top-color: #ea580c;
  animation: nor-danger-spin 0.8s linear infinite;
}
.nor-danger-step.is-done { color: #15803d; }
.nor-danger-step.is-done .nor-danger-step__ico {
  border: 0;
  background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
@keyframes nor-danger-spin {
  to { transform: rotate(360deg); }
}
.nor-danger-strip {
  display: flex;
  gap: 2px;
  height: 14px;
}
.nor-danger-seg {
  flex: 1 1 0;
  min-width: 2px;
  border-radius: 3px;
  background: #e2e8f0;
  transition: background 0.25s;
}
.nor-danger-seg--load,
.nor-danger-legend .nor-danger-seg--load {
  background: #fb923c;
}
.nor-danger-strip .nor-danger-seg--load,
.nor-danger-strip .nor-danger-seg--retry {
  animation: nor-danger-pulse 0.9s ease-in-out infinite alternate;
}
.nor-danger-seg--ok { background: #22c55e; }
.nor-danger-seg--cache { background: #14b8a6; }
.nor-danger-seg--retry { background: #f59e0b; }
.nor-danger-seg--fail { background: #f59e0b; }
.nor-danger-strip .nor-danger-seg--fail {
  background: repeating-linear-gradient(135deg, #f59e0b 0 3px, #fde68a 3px 6px);
}
@keyframes nor-danger-pulse {
  from { opacity: 0.45; }
  to { opacity: 1; }
}
.nor-danger-strip__axis {
  display: flex;
  justify-content: space-between;
  margin-top: -0.2rem;
  font-size: 0.58rem;
  font-weight: 600;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
.nor-danger-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  font-size: 0.58rem;
  color: #64748b;
}
.nor-danger-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.nor-danger-legend i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
}
.nor-danger-progress__meta {
  margin: 0;
  font-size: 0.68rem;
  color: #475569;
}
.nor-danger-progress__meta b { color: #0f172a; }
.nor-danger-progress__warn { color: #b45309; font-weight: 650; }
@media (prefers-reduced-motion: reduce) {
  .nor-danger-progress__bar span,
  .nor-danger-step.is-active .nor-danger-step__ico,
  .nor-danger-strip .nor-danger-seg--load,
  .nor-danger-strip .nor-danger-seg--retry {
    animation: none;
  }
}
.nor-danger-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.66rem;
  line-height: 1.35;
  flex-shrink: 0;
}
.nor-danger-alert[hidden] { display: none; }
.nor-danger-alert .nor-trains-text-btn {
  flex-shrink: 0;
  font-weight: 700;
}
.nor-danger-filters {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex-shrink: 0;
}
.nor-danger-filters[hidden] { display: none; }
.nor-danger-sevbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
}
.nor-danger-sevbtn,
.nor-danger-chipbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.nor-danger-sevbtn {
  padding: 0.3rem 0.35rem;
  border-radius: 8px;
}
.nor-danger-sevbtn b,
.nor-danger-chipbtn b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.nor-danger-sevbtn.is-on { color: #0f172a; border-color: #cbd5e1; background: #f8fafc; }
.nor-danger-sevbtn--high.is-on { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }
.nor-danger-sevbtn--medium.is-on { border-color: #fdba74; background: #fff7ed; color: #9a3412; }
.nor-danger-sevbtn--low.is-on { border-color: #fde047; background: #fefce8; color: #854d0e; }
.nor-danger-sevbtn:not(.is-on) .nor-danger-dot { opacity: 0.35; }
.nor-danger-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.nor-danger-chipbtn {
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
}
.nor-danger-chipbtn.is-on { border-color: #334155; background: #334155; color: #fff; }
.nor-danger-sevbtn:focus-visible,
.nor-danger-chipbtn:focus-visible,
.nor-danger-nav__btn:focus-visible,
.nor-danger-item__main:focus-visible {
  outline: 2px solid #ea580c;
  outline-offset: 1px;
}
.nor-danger-dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #94a3b8;
}
.nor-danger-dot--high { background: #dc2626; }
.nor-danger-dot--medium { background: #f97316; }
.nor-danger-dot--low { background: #eab308; }
.nor-danger-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.nor-danger-nav[hidden] { display: none; }
.nor-danger-nav__btn {
  width: 1.7rem;
  height: 1.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.nor-danger-nav__btn:hover { background: #f1f5f9; }
.nor-danger-nav__pos {
  min-width: 3.6rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #334155;
  font-variant-numeric: tabular-nums;
}
.nor-danger-nav__spacer { flex: 1; }
.nor-danger-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #e8eef3;
  border-radius: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}
.nor-danger-list:empty { display: none; }
.nor-danger-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem 0.35rem 0.45rem;
  border-left: 3px solid transparent;
  border-bottom: 1px solid #f1f5f9;
}
.nor-danger-item:last-child { border-bottom: 0; }
.nor-danger-item--high { border-left-color: #dc2626; }
.nor-danger-item--medium { border-left-color: #f97316; }
.nor-danger-item--low { border-left-color: #eab308; }
.nor-danger-item:hover { background: #f8fafc; }
.nor-danger-item.is-active { background: #fff7ed; }
.nor-danger-item__check {
  flex-shrink: 0;
  margin: 0.15rem 0 0;
  cursor: pointer;
}
.nor-danger-item__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.nor-danger-item__top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.nor-danger-item__top strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0f172a;
}
.nor-danger-item__km {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  font-variant-numeric: tabular-nums;
}
.nor-danger-item__sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 0.9rem;
  font-size: 0.64rem;
  color: #94a3b8;
}
.nor-danger-item__sub:empty { display: none; }
.nor-danger-item__detail {
  padding-left: 0.9rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #334155;
}
.nor-danger-item__detail .nor-danger-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin: 0 0.3rem 0.05rem -0.75rem;
}
.nor-danger-item__detail b {
  font-weight: 700;
  color: #0f172a;
}
.nor-danger-item__src {
  padding-left: 0.9rem;
  font-size: 0.6rem;
  color: #94a3b8;
}
.nor-danger-empty {
  padding: 0.7rem 0.5rem;
  font-size: 0.72rem;
  color: #94a3b8;
  text-align: center;
}

/* Platform app-icon overrides on map chrome */
.race-map-tool-btn .nor-app-icon,
.race-map-elev-rail-toggle .nor-app-icon,
.race-map-elev-refresh-btn .nor-app-icon,
.rail-tab .nor-app-icon,
.ecc-map-toggle--btn .nor-app-icon,
.race-event-nav__link > .nor-app-icon,
.race-event-nav__icon .nor-app-icon,
.cp-top-btn .nor-app-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
  flex: none;
}
.cp-top-btn .nor-app-icon {
  width: 18px;
  height: 18px;
}
.race-map-elev-rail-toggle .nor-app-icon { width: 18px; height: 18px; }
.race-event-nav__link[data-app-icon] > .nor-app-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.55rem;
}
.race-event-nav__icon .nor-app-icon {
  width: 20px;
  height: 20px;
}
.race-event-nav__link[data-app-icon] .race-event-nav__icon:has(> .nor-app-icon) > svg,
.cp-top-btn[data-app-icon]:has(> .nor-app-icon) > svg,
.cp-top-btn.cp-top-sw[data-app-icon]:has(> .nor-app-icon) > svg {
  display: none !important;
}
.race-event-nav__link[data-app-icon] > .race-event-nav__icon:has(+ .nor-app-icon),
.race-event-nav__link[data-app-icon] > svg[hidden] + .race-event-nav__icon { }

/* Custom Super Settings uploads keep their own fill (often marine). Flatten to black so they match the stroke icons. */
img.nor-app-icon {
  filter: brightness(0);
}
.race-event-siderail .race-event-nav__link--active img.nor-app-icon,
.race-map-tool-btn.is-active img.nor-app-icon,
.race-map-tool-btn[aria-expanded="true"] img.nor-app-icon {
  filter: brightness(0) invert(1);
}
