:root {
  --bg: #071521;
  --panel: rgba(8, 25, 39, 0.97);
  --panel-soft: rgba(14, 40, 57, 0.92);
  --text: #f4f8fb;
  --muted: #91a9b8;
  --accent: #36bffa;
  --accent-green: #2ec4b6;
  --line: rgba(255, 255, 255, 0.09);
  --warning: #ffd166;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}


/* ==================================================
   APP
   ================================================== */

.app-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows:
    auto
    1fr
    auto;
  background: var(--bg);
}


/* ==================================================
   TOPP
   ================================================== */

.topbar {
  padding:
    calc(env(safe-area-inset-top) + 10px)
    15px
    10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    linear-gradient(
      180deg,
      #071521 0%,
      #091b29 100%
    );
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      #1d5a7d,
      #0c2c42
    );
  font-size: 20px;
  border:
    1px solid
    var(--line);
}

.topbar h1,
.sheet h2,
.vessel-card h2 {
  margin: 0;
}

.topbar h1 {
  font-size: 23px;
}

.eyebrow {
  margin:
    0
    0
    3px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ==================================================
   KNAPPER
   ================================================== */

.icon-button,
.floating-button,
.close-button {
  border:
    1px solid
    var(--line);
  background:
    rgba(
      255,
      255,
      255,
      0.07
    );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.close-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}


/* ==================================================
   KART
   ================================================== */

.map-wrap {
  position: relative;
  min-height: 0;
}

#map {
  width: 100%;
  height: 100%;
  background: #102638;
}

.map-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  padding:
    8px
    11px;
  border-radius: 999px;
  background:
    rgba(
      7,
      21,
      33,
      0.88
    );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border:
    1px solid
    var(--line);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow:
    0
    0
    12px
    rgba(
      46,
      196,
      182,
      0.8
    );
}

.floating-button {
  position: absolute;
  right: 14px;
  bottom: 16px;
  z-index: 500;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-size: 22px;
}


/* ==================================================
   AIS-SPOR HURTIGKNAPP
   ================================================== */

.track-close-map {
  position: absolute;
  top: 58px;
  left: 12px;
  z-index: 600;
  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.16
    );
  background:
    rgba(
      7,
      21,
      33,
      0.9
    );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  padding:
    8px
    12px;
  border-radius: 999px;
  font-size: 12px;
  box-shadow:
    0
    4px
    14px
    rgba(
      0,
      0,
      0,
      0.28
    );
}


/* ==================================================
   BUNNMENY
   ================================================== */

.bottom-nav {
  display: grid;
  grid-template-columns:
    repeat(
      5,
      1fr
    );
  padding:
    7px
    6px
    calc(
      env(safe-area-inset-bottom)
      + 7px
    );
  border-top:
    1px solid
    var(--line);
  background:
    rgba(
      7,
      21,
      33,
      0.98
    );
  z-index: 1000;
}

.nav-item {
  border: 0;
  background: transparent;
  padding:
    5px
    2px;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--muted);
}

.nav-item span {
  font-size: 19px;
}

.nav-item small {
  font-size: 9px;
}

.nav-item.active {
  color: var(--accent);
}


/* ==================================================
   SHEETS
   ================================================== */

.sheet {
  position: fixed;
  z-index: 2000;
  left: 9px;
  right: 9px;
  bottom:
    calc(
      env(safe-area-inset-bottom)
      + 8px
    );
  max-height: 80vh;
  overflow-y: auto;
  padding:
    9px
    17px
    20px;
  border-radius: 25px;
  border:
    1px solid
    var(--line);
  background: var(--panel);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow:
    0
    24px
    90px
    rgba(
      0,
      0,
      0,
      0.55
    );
}

.sheet-handle {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background:
    rgba(
      255,
      255,
      255,
      0.25
    );
  margin:
    0
    auto
    14px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  margin:
    22px
    0
    10px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}


/* ==================================================
   KARTVALG
   ================================================== */

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

.map-mode {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 105px;
  padding:
    12px
    5px;
  text-align: center;
  background:
    rgba(
      255,
      255,
      255,
      0.045
    );
  border:
    1px solid
    var(--line);
  border-radius: 17px;
}

.map-mode input {
  position: absolute;
  opacity: 0;
}

.map-mode:has(input:checked) {
  border-color: var(--accent);
  background:
    rgba(
      54,
      191,
      250,
      0.13
    );
}

.map-mode-icon {
  font-size: 27px;
  margin-top: 3px;
}

.map-mode strong {
  display: block;
  font-size: 12px;
}

.map-mode small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}


/* ==================================================
   TOGGLE
   ================================================== */

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding:
    12px
    2px;
  border-bottom:
    1px solid
    var(--line);
}

.toggle-row span {
  display: grid;
  gap: 3px;
}

.toggle-row small {
  color: var(--muted);
}

.toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}


/* ==================================================
   FILTER
   ================================================== */

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding:
    9px
    11px;
  border:
    1px solid
    var(--line);
  border-radius: 999px;
  background:
    rgba(
      255,
      255,
      255,
      0.045
    );
  font-size: 12px;
}

.filter-chip input {
  display: none;
}

.filter-chip:has(input:checked) {
  color: #fff;
  background:
    rgba(
      54,
      191,
      250,
      0.16
    );
  border-color:
    rgba(
      54,
      191,
      250,
      0.7
    );
}


/* ==================================================
   BACKDROP
   ================================================== */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background:
    rgba(
      0,
      0,
      0,
      0.48
    );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}


/* ==================================================
   SØK
   ================================================== */

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  padding:
    11px
    13px;
  border-radius: 15px;
  border:
    1px solid
    var(--line);
  background:
    rgba(
      255,
      255,
      255,
      0.055
    );
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-box input::placeholder {
  color: var(--muted);
}


/* ==================================================
   RESULTATER
   ================================================== */

.result-list {
  margin-top: 12px;
  display: grid;
  gap: 7px;
  max-height: 52vh;
  overflow-y: auto;
}

.result-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border:
    1px solid
    var(--line);
  border-radius: 15px;
  background:
    rgba(
      255,
      255,
      255,
      0.04
    );
  text-align: left;
}

.result-main {
  min-width: 0;
}

.result-main strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-main small {
  color: var(--muted);
}

.result-arrow {
  color: var(--accent);
}

.empty-state {
  padding:
    28px
    12px;
  text-align: center;
  color: var(--muted);
}


/* ==================================================
   FARTØYKORT
   ================================================== */

.vessel-card {
  position: fixed;
  z-index: 2200;
  left: 9px;
  right: 9px;
  bottom:
    calc(
      env(safe-area-inset-bottom)
      + 8px
    );
  max-height: 86vh;
  overflow-y: auto;
  border-radius: 25px;
  border:
    1px solid
    var(--line);
  background: var(--panel);
  box-shadow:
    0
    26px
    90px
    rgba(
      0,
      0,
      0,
      0.65
    );
}

.vessel-photo {
  position: relative;
  height: 175px;
  background:
    linear-gradient(
      160deg,
      #12374f,
      #071521
    );
}

.vessel-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  background:
    radial-gradient(
      circle at 50% 30%,
      #1e607e,
      #0b2536 55%,
      #06141f
    );
  color: var(--muted);
}

.placeholder-ship {
  font-size: 56px;
  color: #fff;
}

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

.vessel-close,
.favorite-button {
  position: absolute;
  top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.15
    );
  background:
    rgba(
      5,
      18,
      28,
      0.78
    );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.vessel-close {
  left: 12px;
}

.favorite-button {
  right: 12px;
  color: var(--warning);
  font-size: 25px;
}

.vessel-card-content {
  padding:
    17px
    17px
    19px;
}

.vessel-card-content h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.vessel-meta-line {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 12px;
}

.vessel-grid {
  display: grid;
  grid-template-columns:
    1fr
    1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.vessel-grid div {
  padding: 11px;
  border-radius: 14px;
  background: var(--panel-soft);
}

.vessel-grid small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}


/* ==================================================
   AIS-SPOR I FARTØYKORT
   ================================================== */

.track-selector {
  padding: 12px;
  border:
    1px solid
    var(--line);
  border-radius: 14px;
  background:
    rgba(
      255,
      255,
      255,
      0.035
    );
  margin-bottom: 12px;
}

.track-selector > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.track-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.track-buttons button {
  border:
    1px solid
    var(--line);
  background:
    rgba(
      255,
      255,
      255,
      0.06
    );
  border-radius: 999px;
  padding:
    7px
    10px;
  font-size: 12px;
}

.track-buttons button.active {
  background:
    rgba(
      54,
      191,
      250,
      0.18
    );
  border-color: var(--accent);
}


/* ==================================================
   HANDLINGER
   ================================================== */

.vessel-actions {
  display: grid;
  grid-template-columns:
    1fr
    1fr;
  gap: 8px;
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 14px;
  padding:
    12px
    10px;
  font-weight: 700;
}

.primary-button {
  background: var(--accent);
  color: #062334;
}

.secondary-button {
  background:
    rgba(
      255,
      255,
      255,
      0.08
    );
  color: var(--text);
  border:
    1px solid
    var(--line);
}


/* ==================================================
   AIS-SYMBOLER
   ================================================== */

.ais-touch-icon {
  background: transparent !important;
  border: 0 !important;
}

.ais-touch-area {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  position: relative;
}

.ais-marker-shell {
  position: relative;
  width: 13px;
  height: 13px;
  overflow: visible;
}

.vessel-glyph {
  position: absolute;
  left: 3px;
  top: 1px;
  width: 0;
  height: 0;
  border-left:
    3.5px solid transparent;
  border-right:
    3.5px solid transparent;
  border-bottom:
    11px solid currentColor;
  filter:
    drop-shadow(
      0
      1px
      1px
      rgba(
        0,
        0,
        0,
        0.55
      )
    );
  transform-origin:
    3.5px
    6.5px;
}

.ais-marker-shell.selected
.vessel-glyph {
  filter:
    drop-shadow(
      0
      0
      5px
      rgba(
        255,
        255,
        255,
        0.95
      )
    );
}


/* ==================================================
   FARTØYNAVN
   ================================================== */

.vessel-label {
  position: absolute;
  left: 11px;
  top: -2px;
  white-space: nowrap;
  padding:
    1px
    4px;
  border-radius: 4px;
  background:
    rgba(
      5,
      18,
      28,
      0.62
    );
  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.08
    );
  color:
    rgba(
      255,
      255,
      255,
      0.94
    );
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  text-shadow:
    0
    1px
    2px
    rgba(
      0,
      0,
      0,
      0.9
    );
  pointer-events: none;
}

.label-left {
  left: auto;
  right: 11px;
}

.label-up {
  left: 0;
  top: -18px;
}

.label-down {
  left: 0;
  top: 13px;
}


/* ==================================================
   FARTØYFARGER
   ================================================== */

.color-fishing {
  color: #ff9500;
}

.color-passenger {
  color: #4dabf7;
}

.color-cargo {
  color: #f59f00;
}

.color-tanker {
  color: #ff6b6b;
}

.color-other {
  color: #b5c0c8;
}


/* ==================================================
   CLUSTER
   ================================================== */

.ais-cluster {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background:
    rgba(
      12,
      91,
      135,
      0.88
    );
  border:
    1px solid
    rgba(
      255,
      255,
      255,
      0.6
    );
  box-shadow:
    0
    2px
    7px
    rgba(
      0,
      0,
      0,
      0.3
    );
  color: white;
  font-size: 10px;
  font-weight: 700;
}


/* ==================================================
   AIS-SPOR LINJE
   ================================================== */

.ais-track {
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==================================================
   SPOROVERSIKT
   ================================================== */

.track-overview {
  position: fixed;
  top:
    calc(
      env(safe-area-inset-top)
      + 82px
    );
  right: 12px;
  z-index: 1100;
  width:
    min(
      280px,
      calc(
        100vw - 24px
      )
    );
  max-height:
    min(
      42vh,
      330px
    );
  overflow: hidden;
  border:
    1px solid
    var(--line);
  border-radius: 18px;
  background:
    rgba(
      7,
      21,
      33,
      0.9
    );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0
    14px
    44px
    rgba(
      0,
      0,
      0,
      0.34
    );
}

.track-overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding:
    11px
    12px
    9px;
  border-bottom:
    1px solid
    var(--line);
}

.track-overview-header strong {
  font-size: 13px;
}

.track-clear-all {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
}

.track-overview-list {
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.track-overview-item {
  display: grid;
  grid-template-columns:
    minmax(
      0,
      1fr
    )
    38px;
  align-items: stretch;
  border-bottom:
    1px solid
    var(--line);
}

.track-overview-item:last-child {
  border-bottom: 0;
}

.track-overview-focus {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  padding:
    10px
    12px;
  text-align: left;
  display: grid;
  gap: 2px;
}

.track-overview-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.track-overview-focus small {
  color: var(--muted);
  font-size: 10px;
}

.track-overview-remove {
  border: 0;
  border-left:
    1px solid
    var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 22px;
}

.track-overview-focus:active,
.track-overview-remove:active {
  background:
    rgba(
      255,
      255,
      255,
      0.06
    );
}


/* ==================================================
   MOBIL
   ================================================== */

@media (
  max-width: 600px
) {
  .track-overview {
    top:
      calc(
        env(safe-area-inset-top)
        + 78px
      );
    right: 10px;
    width:
      min(
        250px,
        calc(
          100vw - 20px
        )
      );
  }
}


/* ==================================================
   HIDDEN
   ================================================== */

.hidden {
  display: none !important;
}


/* ==================================================
   SJØSPOR v0.4 – MARITIME UNDERMENYER
   ================================================== */

.layer-submenu {
  margin:
    2px
    0
    10px
    14px;

  padding:
    2px
    0
    2px
    12px;

  border-left:
    1px solid
    rgba(
      255,
      255,
      255,
      0.10
    );
}

.layer-submenu-title {
  margin:
    10px
    0
    5px;

  color:
    var(--muted);

  font-size:
    10px;

  text-transform:
    uppercase;

  letter-spacing:
    0.08em;
}

.border-option,
.harbour-option {
  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    14px;

  padding:
    9px
    2px;

  border-bottom:
    1px solid
    rgba(
      255,
      255,
      255,
      0.045
    );
}

.border-option:last-child,
.harbour-option:last-child {
  border-bottom:
    0;
}

.border-option span,
.harbour-option span {
  display:
    grid;

  gap:
    2px;
}

.border-option strong,
.harbour-option strong {
  font-size:
    12px;

  font-weight:
    650;
}

.border-option small,
.harbour-option small {
  color:
    var(--muted);

  font-size:
    9px;

  line-height:
    1.3;
}

.border-option input,
.harbour-option input {
  flex:
    0 0 auto;

  width:
    19px;

  height:
    19px;

  accent-color:
    var(--accent);
}

.layer-section-note {
  margin:
    6px
    0
    10px;

  color:
    var(--muted);

  font-size:
    10px;

  line-height:
    1.4;
}


/* Fiskefartøy – Sjøspor-oransje */

.color-fishing {
  color:
    #ff9500;
}


/* ==================================================
   SJØSPOR v0.5 – FANGST OG FISKERIAKTIVITET
   ================================================== */

.fishing-control {
  display: grid;
  gap: 5px;
  padding: 8px 2px;
}

.fishing-control span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fishing-control select,
.catch-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
  padding: 9px 10px;
  outline: none;
}

.catch-panel {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 149, 0, 0.055);
}

.catch-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.catch-panel-header > div {
  display: grid;
  gap: 2px;
}

.catch-panel-header strong {
  font-size: 13px;
}

.catch-kicker {
  color: #ff9500;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.catch-panel select {
  padding: 7px 8px;
  font-size: 11px;
}

.catch-state {
  padding: 13px 4px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.catch-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 9px;
}

.catch-summary > div {
  padding: 9px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.catch-summary small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
}

.catch-summary strong {
  font-size: 13px;
}

.catch-species-list {
  display: grid;
  gap: 2px;
}

.catch-species-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 11px;
}

.catch-species-row:last-child {
  border-bottom: 0;
}

.catch-species-row strong {
  color: #ffb340;
}

.catch-source-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.35;
}

.fishing-activity-marker {
  stroke: #ff9500;
  fill: #ff9500;
}

.fishing-popup {
  min-width: 160px;
  display: grid;
  gap: 4px;
}

.fishing-popup strong {
  color: #7b4400;
}

.fishing-popup small {
  display: block;
}

.fishing-popup p {
  margin: 6px 0 0;
  font-size: 10px;
  opacity: 0.72;
}


/* ==================================================
   SJØSPOR v0.5.1 – BARENTSWATCH
   ================================================== */

.barentswatch-section {
  display: grid;
}

.barentswatch-credit-static {
  margin: 9px 0 2px;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}

.bw-credit-badge {
  position: fixed;
  left: 12px;
  bottom:
    calc(
      env(safe-area-inset-bottom)
      + 66px
    );
  z-index: 1050;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 21, 33, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  text-decoration: none;
  font-size: 9px;
  box-shadow:
    0
    4px
    16px
    rgba(0, 0, 0, 0.28);
}

.bw-popup {
  min-width: 160px;
  display: grid;
  gap: 4px;
}

.bw-popup small {
  display: block;
}

.bw-popup p {
  margin: 5px 0;
  font-size: 10px;
}

.bw-popup-credit {
  margin-top: 4px;
  padding-top: 5px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 9px;
  font-weight: 700;
}

.fishing-popup-weight {
  font-size: 14px;
  font-weight: 700;
}
.catch-fetch-button {
  width: 100%;
  margin-top: 10px;
}

.catch-fetch-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
/* ==================================================
   ERS + VMS LEGEND
   ================================================== */

.ers-vms-legend {
  background: rgba(7, 21, 33, 0.92);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.ers-vms-legend strong {
  display: block;
  margin-bottom: 6px;
}

.ers-vms-legend small {
  display: block;
  margin-top: 6px;
  opacity: 0.7;
}

/* STEP 8: PWA / LOADING / OFFLINE */
.app-boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #071521;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.app-boot-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-boot-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: #f5fbff;
}

.app-boot-icon {
  width: 92px;
  height: 92px;
  margin-bottom: 6px;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.app-boot-card strong {
  font-size: 24px;
}

.app-boot-card span {
  color: #bed0dd;
  font-size: 14px;
}

.app-boot-spinner {
  width: 24px;
  height: 24px;
  margin-top: 8px;
  border: 3px solid rgba(245, 251, 255, 0.18);
  border-top-color: #46c2e8;
  border-radius: 999px;
  animation: sjospor-spin 800ms linear infinite;
}

@keyframes sjospor-spin {
  to { transform: rotate(360deg); }
}

html.is-offline .status-dot {
  background: #f2b84b;
}

html.is-offline .map-status {
  border-color: rgba(242, 184, 75, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .app-boot-overlay { transition: none; }
  .app-boot-spinner { animation: none; }
}
