﻿:root {
  --bg: #f5f7f8;
  --panel: #ffffff;
  --line: #dee2e6;
  --text: #1e2c30;
  --muted: #63747a;
  --brand: #0b5f73;
  --brand-dark: #08495a;
  --success: #198754;
  --danger: #b00020;
  --warning: #d8902f;
  --shadow: 0 10px 28px rgba(15, 37, 43, .12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.4 Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.appTopbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px clamp(10px, 3vw, 22px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 248, .96);
  backdrop-filter: blur(10px);
}
.appTopbar h1 { margin: 0; font-size: 18px; letter-spacing: 0; line-height: 1.15; }
.appTopbar p { margin: 1px 0 0; color: var(--muted); font-size: 12px; line-height: 1.2; }
.statusBar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.syncTopBtn {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid #b4232c;
  border-radius: 50%;
  background: linear-gradient(145deg, #ef4b55, #b81722);
  color: #fff;
  box-shadow: 0 4px 12px rgba(184, 23, 34, .3);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  z-index: 2;
}
.syncTopBtn:hover { background: linear-gradient(145deg, #ff5a64, #a9121c); box-shadow: 0 6px 15px rgba(184, 23, 34, .38); }
.syncTopBtn:active { transform: scale(.93); box-shadow: 0 2px 7px rgba(184, 23, 34, .26); }
.syncTopBtn:focus-visible { outline: 3px solid rgba(239, 75, 85, .3); outline-offset: 2px; }
.syncTopBtn:disabled { opacity: .82; cursor: wait; }
.syncTopIcon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.syncTopBtn.isSyncing .syncTopIcon { animation: syncTopSpin .8s linear infinite; }
@keyframes syncTopSpin { to { transform: rotate(360deg); } }
.status, .badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 700;
  background: #e9ecef;
  color: var(--text);
}
.statusOnline { background: #d9f0e4; color: #12663d; }
.statusOffline { background: #f7ded8; color: #9b3028; }
.statusLoginOk { background: #d9f0e4; color: #12663d; }
.statusLoginMissing, .statusLoginUnknown { background: #fff1cc; color: #7a5200; }
.loginLink { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; }
.loginLink:hover { background: var(--brand-dark); color: #fff; }
.wakeLockBtn {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e9ecef;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.wakeLockBtn.active { border-color: #198754; background: #198754; color: #fff; }
.wakeLockBtn.pending { border-color: var(--line); background: #e9ecef; color: var(--text); }
.sessionExpiry {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  min-width: 48px;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6f8;
  color: #34545c;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.page { max-width: 1420px; margin: 0 auto; padding: 16px clamp(10px, 3vw, 28px) 36px; }
.filterBar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.filterBar label, .filterLabel { font-weight: 700; color: var(--muted); }
.creatorLabel { min-width: 240px; min-height: 36px; display: inline-flex; align-items: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #f8fbfc; color: var(--text); font-weight: 800; }
.checkLabel { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; color: var(--text) !important; white-space: nowrap; }
.checkLabel input { width: 18px; height: 18px; margin: 0; }
.favoriteToggle { min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.favoriteListFilter { min-width: 220px; }
.favoriteState { min-height: 36px; display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 6px; background: #eef6f8; color: #34545c; font-weight: 800; }
.favoriteState[hidden] { display: none !important; }
.gpsToggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text) !important;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.gpsToggle input { width: 15px; height: 15px; margin: 0; }
.gpsRadiusControl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 2px 4px 2px 8px;
  border: 1px solid #cfdadd;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.gpsRadiusControl[hidden] { display: none; }
.gpsRadiusControl select {
  min-height: 20px;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
}
.gpsStatus {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #eef6f8;
  color: #34545c;
  font-weight: 800;
  white-space: normal;
}
.gpsDataLine {
  flex-basis: 100%;
  width: 100%;
  gap: 8px;
  justify-content: space-between;
}
#gpsStatusText {
  min-width: 0;
  overflow-wrap: anywhere;
}
.gpsSmsLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.gpsSmsLink:hover { background: var(--brand-dark); color: #fff; }
.gpsSmsLink[hidden] { display: none !important; }
.gpsStatus.active { background: #d9f0e4; color: #12663d; }
.gpsStatus.error { background: #f7ded8; color: #9b3028; }
.user-location-marker {
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .32), 0 4px 12px rgba(0,0,0,.28);
}
.filterBar select { min-width: 240px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.btn, .linkBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #cfd6da;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover, .linkBtn:hover { border-color: var(--brand); color: var(--brand); }
.btnPrimary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btnPrimary:hover { background: var(--brand-dark); color: #fff; }
.btnSuccess { background: var(--success); border-color: var(--success); color: #fff; font-size: 16px; min-height: 44px; }
.btnSuccess:hover { filter: brightness(.94); color: #fff; }
.btnDanger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-color: #b71c1c;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: #fff;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: .02em;
  box-shadow: 0 5px 14px rgba(183, 28, 28, .24);
}
.gpsStatus[hidden] { display: none !important; }
.btnDanger:hover {
  border-color: #9f1717;
  background: linear-gradient(135deg, #c62828, #9f1717);
  color: #fff;
}
.btnDanger .fa-floppy-disk { font-size: 18px; }
.btnLight { background: #f8f9fa; }
.mapShell { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #e8efe9; box-shadow: var(--shadow); }
.map {
  position: relative;
  touch-action: pan-y;
  cursor: grab;
  height: 500px;
  width: 100%;
  overflow: hidden;
  background: #dce8dc;
}
.map .leaflet-container { touch-action: pan-y; }
.tileLayer { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.tileLayer img { position: absolute; width: 256px; height: 256px; user-select: none; pointer-events: none; image-rendering: auto; }
.mapGrid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(rgba(11, 95, 115, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 95, 115, .2) 1px, transparent 1px);
  background-size: 48px 48px;
}
.mapControls { position: absolute; left: 10px; top: 10px; z-index: 6; display: grid; gap: 6px; }
.mapControls button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 6px;
  background: rgba(255,255,255,.96);
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}
.mapControls button:hover { color: var(--brand); }
.mapAttribution { position: absolute; right: 8px; bottom: 8px; z-index: 6; padding: 3px 6px; border-radius: 4px; background: rgba(255,255,255,.9); font-size: 12px; color: #34454a; }
.map.dragging { cursor: grabbing; }
.spiderLeg {
  position: absolute;
  z-index: 3;
  height: 2px;
  transform-origin: left center;
  background: rgba(11, 95, 115, .65);
  pointer-events: none;
}
.mapMessage { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: var(--muted); font-weight: 700; pointer-events: none; }
.blastCluster {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  cursor: pointer;
}
.blastCluster.selected { background: var(--warning); color: #342303; }
.blast-marker {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 26px;
  border: 2px solid var(--brand);
  border-radius: 13px;
  background: #ffffff;
  color: #0b4a59;
  font-weight: 700;
  font-size: 11px;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  overflow: visible;
  white-space: nowrap;
}
.blast-marker.selected { background: #fff0cc; border-color: var(--warning); color: #5d3d03; }
.blast-marker .tooltip {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  max-width: 180px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,.95);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
}
.blast-marker:hover .tooltip { opacity: 1; }
.selectedHeader { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.selectedHeader h2 { margin: 0; font-size: 20px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.blastLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 10px 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9fa;
  font-size: 13px;
}
.blastLegend strong { margin-right: 2px; }
.blastGridWrap { border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; }
th, td { border: 1px solid #ccc; padding: 6px; font-size: 13px; vertical-align: top; }
th { position: sticky; top: 0; z-index: 1; background: #f2f2f2; white-space: nowrap; }
.radioGroup { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 14px; row-gap: 3px; align-items: center; width: max-content; max-width: 100%; }
.radioGroup.sizeGroup { grid-template-columns: repeat(2, max-content); }
.radioOption { display: inline-flex; align-items: center; gap: 1px; margin: 0; white-space: nowrap; }
.radioOption input { margin: 0 1px 0 0; }
.removeBtn { color: white; background: var(--danger); border: none; border-radius: 4px; padding: 5px 8px; cursor: pointer; }
.blastEntrySeparator { display: none; }
.saveBar { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.queuePanel { margin-top: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.queueTitle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.queueTitle h2 { margin: 0; font-size: 18px; }
.queueList { display: grid; gap: 8px; padding: 12px; }
.queueItem { border: 1px solid var(--line); border-radius: 6px; padding: 10px; background: #f8f9fa; }
.queueItem strong { display: block; }
.queueItem span { color: var(--muted); }
.lakoBar { margin-top: 12px; }
.lakoButton {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.lakoButton:hover { background: var(--brand-dark); color: #fff; }
.lakoArrow {
  position: absolute;
  right: 24px;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(20px); min-width: min(92vw, 380px); padding: 12px 14px; border-radius: 8px; background: #1f2726; color: #fff; opacity: 0; pointer-events: none; transition: .2s ease; text-align: center; z-index: 30; }
.gpsCaptureFlash {
  position: fixed;
  inset: 0;
  z-index: 2147483647 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  isolation: isolate;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.gpsCaptureFlash[hidden] { display: none !important; }
.gpsCaptureFlash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 204, 0, .24);
  opacity: 0;
}
.gpsCaptureCard {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(88vw, 390px);
  padding: 20px 22px 22px;
  border: 3px solid #d31f2b;
  border-radius: 18px;
  background: rgba(255, 255, 255, .97);
  color: #172f36;
  text-align: center;
  box-shadow: 0 14px 40px rgba(51, 13, 17, .35), 0 0 0 7px rgba(255, 255, 255, .55);
  opacity: 0;
  transform: scale(.72);
}
.gpsCaptureBomb {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-top: -4px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ef4b55, #b81722);
  color: #fff;
  box-shadow: 0 6px 16px rgba(184, 23, 34, .32);
}
.gpsCaptureBomb svg { width: 46px; height: 46px; fill: currentColor; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gpsCaptureBomb svg path { fill: none; }
.gpsCaptureLabel { margin-top: 10px; color: #c01c27; font-size: 13px; font-weight: 900; letter-spacing: .16em; }
.gpsCaptureName { margin-top: 4px; font-size: clamp(22px, 7vw, 32px); line-height: 1.12; overflow-wrap: anywhere; }
.gpsCaptureFlash.play::before { animation: gpsScreenFlash 1.9s ease-out both; }
.gpsCaptureFlash.play .gpsCaptureCard { animation: gpsCapturePop 1.9s ease-out both; }
.gpsCaptureFlash.play .gpsCaptureBomb { animation: gpsBombPulse .52s ease-in-out 2; }
@keyframes gpsScreenFlash {
  0% { opacity: 0; }
  9%, 24% { opacity: 1; }
  16%, 34% { opacity: .18; }
  100% { opacity: 0; }
}
@keyframes gpsCapturePop {
  0% { opacity: 0; transform: scale(.72); }
  12% { opacity: 1; transform: scale(1.06); }
  20%, 78% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.96); }
}
@keyframes gpsBombPulse { 50% { transform: scale(1.13) rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) {
  .gpsCaptureFlash.play::before, .gpsCaptureFlash.play .gpsCaptureCard, .gpsCaptureFlash.play .gpsCaptureBomb { animation-duration: 1.9s; animation-iteration-count: 1; }
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); }
@media (max-width: 768px) {
  .appTopbar { align-items: flex-start; flex-direction: column; gap: 7px; padding: 7px 62px 7px 10px; }
  .appTopbar h1 { font-size: 15px; }
  .appTopbar p { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .statusBar { justify-content: flex-start; gap: 5px; width: 100%; }
  .status, .badge, .loginLink, .wakeLockBtn, .sessionExpiry { min-height: 24px; font-size: 12px; }
  .sessionExpiry { display: none !important; }
  .syncTopBtn { top: 10px; right: 12px; width: 42px; height: 42px; min-height: 42px; }
  .map { height: 380px; }
  .filterBar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 7px;
  }
  .filterBar select, .filterBar .btn, .filterBar .linkBtn, .filterBar .creatorLabel, .filterBar .gpsStatus { width: 100%; min-width: 0; }
  .filterBar #gpsStatus,
  .filterBar .favoriteState,
  .filterBar #insertFavoriteListBtn { grid-column: 1 / -1; }
  .filterBar .filterLabel { align-self: center; padding-left: 2px; }
  .filterBar select { overflow: hidden; text-overflow: ellipsis; }
  .filterBar .favoriteToggle,
  .filterBar .favoriteListFilter,
  .filterBar #insertFavoriteListBtn {
    min-height: 34px;
  }
  .filterBar .favoriteToggle {
    padding: 5px 8px;
  }
  .filterBar #insertFavoriteListBtn {
    padding: 6px 10px;
  }
  .selectedHeader { align-items: stretch; flex-direction: column; }
  #blastGrid, #blastGrid > thead, #blastGrid > tbody, #blastGrid > thead > tr > th, #blastGrid > tbody > tr > td, #blastGrid > tbody > tr { display: block; width: 100%; }
  #blastGrid > thead { display: none; }
  .blastGridWrap { border: 0; background: transparent; box-shadow: none; }
  #blastGrid > tbody > tr { margin-bottom: 12px; padding: 10px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
  #blastGrid > tbody > tr > td { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; align-items: start; border: 0; padding: 6px 0; font-size: 13px; line-height: 1.35; }
  #blastGrid > tbody > tr > td::before { content: attr(data-label); color: #6c757d; font-weight: 600; }
  #blastGrid > tbody > tr > td[data-label="Lawine"], #blastGrid > tbody > tr > td[data-label="Größe"], #blastGrid > tbody > tr > td[data-label="Aktion"] { border-top: 1px solid #e1e5ea; margin-top: 6px; padding-top: 9px; }
  .radioGroup, .radioGroup.sizeGroup { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 18px; row-gap: 7px; width: max-content; max-width: 100%; }
  .radioOption { line-height: 1.35; min-height: 28px; align-items: center; }
  .radioOption input { margin-right: 5px; }
}









.leaflet-marker-icon .blast-marker { position: static; transform: none; }
.leaflet-container .blast-marker { box-sizing: border-box; }

/* mobile-card grid redesign */
@media (max-width: 768px) {
  .selectedHeader h2 { font-size: 17px; }
  .blastLegend { display: none; }
  .blastGridWrap { padding-bottom: 8px; }
  #blastGrid > tbody > tr.blastEntryCard {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid #d8e0e4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(14, 45, 52, .08);
  }
  #blastGrid > tbody > tr.blastEntryCard > td {
    border: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.3;
  }
  #blastGrid > tbody > tr.blastEntryCard > td::before { content: none; }
  #blastGrid .actionCell { display: none !important; }
  #blastGrid .removeBtn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 7px;
    font-size: 21px;
    line-height: 1;
    background: #7f0018;
    box-shadow: 0 3px 10px rgba(0,0,0,.22);
  }
  #blastGrid .entryNumber {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: #18353d;
    font-weight: 900;
    border: 2px solid rgba(255,255,255,.72);
    box-shadow: 0 2px 8px rgba(0,0,0,.22);
  }
  #blastGrid .blastEntrySeparator {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  #blastGrid .blastEntrySeparator td {
    display: block;
    padding: 0 !important;
    border: 0 !important;
    background: transparent;
  }
  #blastGrid .blastEntrySeparator td::before { content: none; }
  #blastGrid .blastEntrySeparator hr {
    border: 0;
    border-top: 2px solid #cfd8dc;
    margin: 14px 0;
  }
  #blastGrid .mobileCardTop,
  #blastGrid .mobileCardBottom,
  #blastGrid .mobileCardSolo {
    background: #fff;
    border: 0 !important;
    box-shadow: none;
  }
  #blastGrid .mobileCardTop {
    border-radius: 0;
    background: linear-gradient(180deg, #29474f, #1d363d);
  }
  #blastGrid .mobileCardBottom,
  #blastGrid .mobileCardSolo {
    border-top: 1px solid #e1e8ec !important;
    margin: 0;
  }
  #blastGrid .infoCell {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    padding: 9px 10px !important;
  }
  #blastGrid .cellLabel {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #111;
    font-weight: 850;
  }
  #blastGrid .cellLabel i,
  #blastGrid .titleValue i,
  #blastGrid .titleInline i,
  #blastGrid .triggerIcon,
  #blastGrid .editGlyph i { color: #111; }
  #blastGrid .regionCell {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    padding-right: 10px !important;
    column-gap: 9px;
  }
  #blastGrid .regionCell .titleInline {
    font-weight: 850;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  #blastGrid .infoCell span {
    min-width: 0;
    color: #17282e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #blastGrid .infoCell .titleInline,
  #blastGrid .infoCell .titleText,
  #blastGrid .infoCell .regionText,
  #blastGrid .infoCell .titleText i,
  #blastGrid .infoCell .regionText i { color: #fff; }
  #blastGrid .infoCell .entryNumber { color: #18353d; }
  #blastGrid .titleCell {
    min-height: 74px;
    grid-template-columns: 76px minmax(0, 1fr) 28px;
    align-items: center;
    padding-right: 12px !important;
  }
  #blastGrid .titleCell .titleValue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
  }
  
  #blastGrid .editGlyph {
    justify-self: end;
    color: #111;
    font-size: 19px;
    line-height: 1;
  }
  #blastGrid .triggerSegmentCell {
    display: block !important;
    padding: 12px !important;
  }
  #blastGrid .triggerSegmentCell::before {
    margin: 0 0 10px 2px;
  }
  #blastGrid .triggerSegment {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    background: #f8fafb;
  }
  #blastGrid .triggerPill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    padding: 8px 4px;
    border-right: 1px solid #cfd8dc;
    color: #142a31;
    font-size: 13px;
    font-weight: 650;
    text-align: center;
  }
  #blastGrid .triggerPill:last-child { border-right: 0; }
  #blastGrid .triggerPill.active {
    background: linear-gradient(180deg, #08788d, #075c70);
    color: #fff;
  }
  #blastGrid .triggerIcon { color: #111; font-size: 14px; line-height: 1; }
  #blastGrid .choiceCell {
    display: block !important;
    padding: 14px 12px !important;
    border-top: 0 !important;
  }
  #blastGrid .choiceCell::before {
    margin: 0 0 10px 2px;
  }
  #blastGrid .radioGroup,
  #blastGrid .radioGroup.sizeGroup {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    max-width: none;
  }
  #blastGrid .chargeCell .radioGroup {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  #blastGrid .avalancheKindCell .radioGroup,
  #blastGrid .avalancheSizeCell .radioGroup {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  #blastGrid .avalancheKindCell .radioOption:nth-child(4) { grid-column: 1 / span 2; }
  #blastGrid .avalancheKindCell .radioOption:nth-child(5) { grid-column: 3 / span 1; }
  #blastGrid .radioOption {
    display: block;
    min-height: 0;
    line-height: 1.2;
    white-space: normal;
  }
  #blastGrid .radioOption input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  #blastGrid .radioOption span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 7px;
    border: 1.5px solid var(--brand);
    border-radius: 8px;
    background: #fff;
    color: #073f50;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 1px 4px rgba(12, 52, 62, .08);
  }
  #blastGrid .chargeCell .radioOption span { min-height: 40px; }
  #blastGrid .radioOption:has(input:checked) span {
    border-color: var(--brand);
    background: linear-gradient(180deg, #08788d, #075c70);
    color: #fff;
    box-shadow: 0 4px 12px rgba(11, 95, 115, .22);
  }
  #blastGrid .avalancheSizeCell .sizeOption-blind span { border-color: #111; background: linear-gradient(135deg, #111 0 20%, #ffd43b 20% 100%); color: #111; }
  #blastGrid .avalancheSizeCell .sizeOption-blind span::before { content: "⚠"; margin-right: 5px; color: #111; font-weight: 900; }
}











/* compact selected header and inline title/region */
#selectVisibleBtn { display: none !important; }
.selectedHeader {
  align-items: center;
}
.selectedHeader .actions {
  align-items: center;
  margin-left: auto;
}
#blastGrid .regionCell .titleInline {
  display: grid;
  gap: 3px;
  align-items: center;
}
#blastGrid .regionCell .titleText,
#blastGrid .regionCell .regionText {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
#blastGrid .regionCell .regionText {
  font-size: 12px;
  font-weight: 750;
  color: #2f4248;
}
#blastGrid .regionCell .titleText i,
#blastGrid .regionCell .regionText i { color: #111; }
@media (max-width: 768px) {
  .selectedHeader {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .selectedHeader h2 {
    margin: 0;
    line-height: 38px;
  }
  .selectedHeader .actions {
    display: flex;
    margin-left: 8px;
  }
  #resetBtn {
    min-height: 38px;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  #blastGrid .infoCell.regionCell .titleInline,
  #blastGrid .infoCell.regionCell .titleText,
  #blastGrid .infoCell.regionCell .regionText,
  #blastGrid .infoCell.regionCell .titleText i,
  #blastGrid .infoCell.regionCell .regionText i { color: #fff; }
  #blastGrid .infoCell.regionCell .entryNumber { color: #18353d; }
}

/* Selected blast cards mobile hard reset v106 */
@media (max-width: 768px) {
  #blastGrid > tbody > tr.blastEntryCard {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #d8e0e4 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 3px 12px rgba(14, 45, 52, .08) !important;
  }
  #blastGrid > tbody > tr.blastEntryCard::before,
  #blastGrid > tbody > tr.blastEntryCard::after {
    content: none !important;
    display: none !important;
  }
  #blastGrid > tbody > tr.blastEntryCard > td {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  #blastGrid > tbody > tr.blastEntryCard > td::before {
    content: none !important;
    display: none !important;
  }
  #blastGrid > tbody > tr.blastEntryCard > td.mobileCardTop.regionCell {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) 34px !important;
    align-items: center !important;
    gap: 9px !important;
    min-height: 54px !important;
    padding: 9px 10px !important;
    background: linear-gradient(180deg, #29474f, #1d363d) !important;
    color: #fff !important;
    border-radius: 8px 8px 0 0 !important;
  }
  #blastGrid .mobileCardTop .entryNumber {
    display: inline-grid !important;
    place-items: center !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #18353d !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.22) !important;
    overflow: visible !important;
  }
  #blastGrid .mobileCardTop .titleInline,
  #blastGrid .mobileCardTop .titleText,
  #blastGrid .mobileCardTop .regionText,
  #blastGrid .mobileCardTop .titleText i,
  #blastGrid .mobileCardTop .regionText i {
    color: #fff !important;
  }
  #blastGrid .mobileCardTop .titleInline {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  #blastGrid .mobileCardTop .titleText,
  #blastGrid .mobileCardTop .regionText {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  #blastGrid .mobileCardTop .removeBtn {
    justify-self: end !important;
    align-self: center !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 7px !important;
    background: #7f0018 !important;
    color: #fff !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }
  #blastGrid > tbody > tr.blastEntryCard > td.triggerSegmentCell,
  #blastGrid > tbody > tr.blastEntryCard > td.choiceCell {
    padding: 12px !important;
    border-top: 1px solid #e1e8ec !important;
    background: #fff !important;
  }
  #blastGrid > tbody > tr.blastEntryCard > td.mobileCardSolo {
    margin-top: 0 !important;
  }
  #blastGrid > tbody > tr.blastEntrySeparator {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  #blastGrid > tbody > tr.blastEntrySeparator > td {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  #blastGrid > tbody > tr.blastEntrySeparator hr {
    border: 0 !important;
    border-top: 2px solid #cfd8dc !important;
    margin: 14px 0 !important;
  }
}

.notifyBtn { border: 0; cursor: pointer; font: inherit; }
.notifyBtn[hidden] { display: none !important; }
.notifyBtn:disabled { opacity: .7; cursor: not-allowed; background: #d7dde0; color: #42535a; }

/* Vorschlag C: Kartenfokus + Detektionshilfe, reine Design-Ebene v168 */
:root {
  --bg: #f2f5f3;
  --panel: #ffffff;
  --line: #dce5df;
  --text: #17251e;
  --muted: #607168;
  --brand: #08783f;
  --brand-dark: #055b31;
  --success: #0d8748;
  --warning: #d4a414;
  --shadow: 0 7px 22px rgba(13, 65, 39, .10);
}

body.compactCapture { background: linear-gradient(180deg, #eef4f0 0, #f7f9f8 360px); }
body.compactCapture .appTopbar {
  color: #fff;
  border-bottom: 0;
  background: linear-gradient(135deg, #075a35 0%, #0a7442 58%, #09683c 100%);
  box-shadow: 0 8px 22px rgba(6, 77, 43, .22);
  backdrop-filter: none;
}
body.compactCapture .appTopbar h1,
body.compactCapture .appTopbar p { color: #fff; }
body.compactCapture .appTopbar p { opacity: .74; }
body.compactCapture .status {
  border: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}
body.compactCapture #onlineState::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.16);
}
body.compactCapture #loginStatus::before { content: "♟"; margin-right: 6px; font-size: 13px; }
body.compactCapture #onlineState.statusOffline::before { background: #ffb0b0; }
body.compactCapture .syncTopBtn {
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  color: #fff;
  box-shadow: none;
}
body.compactCapture .syncTopBtn:hover { background: rgba(255,255,255,.18); box-shadow: none; }
body.compactCapture .syncTopBtn:focus-visible { outline-color: rgba(255,255,255,.65); }
body.compactCapture .wakeLockBtn,
body.compactCapture .gpsToggle,
body.compactCapture .gpsRadiusControl {
  min-height: 40px;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,.68);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
body.compactCapture .wakeLockBtn { gap: 7px; }
body.compactCapture .wakeLockBtn::before { content: "☀"; font-size: 19px; line-height: 1; }
body.compactCapture .wakeLockBtn.active { border-color: rgba(255,255,255,.78); background: rgba(255,255,255,.13); color: #fff; }
body.compactCapture .gpsToggle { gap: 8px; padding-inline: 14px; }
body.compactCapture .gpsToggle input { width: 18px; height: 18px; accent-color: #fff; }
body.compactCapture .gpsRadiusControl { gap: 7px; padding-inline: 14px 8px; }
body.compactCapture .gpsRadiusControl::before { content: "◉"; font-size: 18px; }
body.compactCapture .gpsRadiusControl select { color: #fff; }
body.compactCapture .gpsRadiusControl select option { color: #17251e; background: #fff; }
body.compactCapture .loginLink {
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.14);
  color: #fff;
  box-shadow: none;
}
body.compactCapture .loginLink:hover { background: rgba(255,255,255,.24); color: #fff; }

body.compactCapture .page { max-width: 1180px; }
body.compactCapture .gpsStatus {
  border: 1px solid #dbe6df;
  border-radius: 10px;
  background: #fff;
  color: #21372c;
  box-shadow: 0 3px 12px rgba(13, 65, 39, .07);
}
body.compactCapture .gpsStatus::before {
  content: "●";
  flex: 0 0 auto;
  color: #334b5d;
  font-size: 18px;
}
body.compactCapture .gpsStatus.active { border-color: #cfe2d5; background: #fff; color: #163d29; }
body.compactCapture .gpsStatus.error { border-color: #efc7c7; background: #fff9f9; color: #8f2323; }
body.compactCapture .gpsSmsLink {
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b8b4a, #06753e);
  box-shadow: 0 4px 11px rgba(8,120,63,.20);
}
body.compactCapture .gpsSmsLink::before { content: "➤"; margin-right: 7px; transform: rotate(-35deg); }
body.compactCapture .filterBar select,
body.compactCapture .favoriteToggle,
body.compactCapture .creatorLabel {
  min-height: 44px;
  border: 1px solid #dce3df;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 7px rgba(17, 58, 36, .035);
}
body.compactCapture .favoriteToggle { position: relative; cursor: pointer; }
body.compactCapture .favoriteToggle::before { content: "★"; color: #d7ab20; font-size: 19px; }
body.compactCapture .favoriteToggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
body.compactCapture .favoriteToggle:has(input:checked) { border-color: #96d2aa; background: #eff9f2; color: #075f34 !important; }
body.compactCapture #insertFavoriteListBtn {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0a8547, #08733e);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 4px 12px rgba(8,120,63,.16);
}
body.compactCapture #insertFavoriteListBtn:hover { background: linear-gradient(135deg, #0b914e, #066635); color: #fff; }
body.compactCapture .mapShell {
  border-color: #cddbd2;
  border-radius: 11px;
  box-shadow: 0 9px 26px rgba(12, 67, 39, .14);
}
body.compactCapture .mapControls button,
body.compactCapture .leaflet-control-zoom a {
  border-color: #d3ddd7;
  background: rgba(255,255,255,.96);
  color: #163d29;
}
body.compactCapture .selectedHeader,
body.compactCapture .queuePanel,
body.compactCapture .blastGridWrap { color: #17251e; }
body.compactCapture .selectedHeader h2 { color: #143d28; }
body.compactCapture .selectedHeader .badge { background: #e3f2e8; color: #08733e; }
body.compactCapture .queuePanel,
body.compactCapture .blastGridWrap { border-color: #dbe5de; border-radius: 10px; box-shadow: var(--shadow); }
body.compactCapture .queueTitle { background: linear-gradient(180deg, #fff, #f8fbf9); }
body.compactCapture .btnSuccess { border-color: #08783f; background: #08783f; }
body.compactCapture .lakoButton { background: linear-gradient(135deg, #075f37, #087b42); box-shadow: 0 5px 14px rgba(8,120,63,.18); }
body.compactCapture .lakoButton:hover { background: #055b31; }
body.compactCapture .toast { background: #123c28; }

body.compactCapture .bottomNav {
  border-top-color: #dce5df;
  background: rgba(255,255,255,.97);
  box-shadow: 0 -8px 24px rgba(12, 62, 37, .13);
}
body.compactCapture .bottomNav a,
body.compactCapture .bottomNav button {
  border-color: transparent;
  background: transparent;
  color: #17251e;
}
body.compactCapture .bottomNav a.active {
  border-color: #08783f;
  border-radius: 9px;
  background: linear-gradient(145deg, #0b8a49, #06713b);
  color: #fff;
  box-shadow: 0 5px 13px rgba(8,120,63,.22);
}

@media (max-width: 768px) {
  body.compactCapture .appTopbar {
    position: sticky;
    display: block;
    padding: 12px 58px 13px 11px;
  }
  body.compactCapture .appTopbar > div:first-child { display: none; }
  body.compactCapture .statusBar { gap: 7px 8px; width: 100%; }
  body.compactCapture .status { min-height: 26px; padding: 2px 3px; font-size: 11px; }
  body.compactCapture #loginStatus { max-width: calc(100vw - 175px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.compactCapture .syncTopBtn { top: 11px; right: 10px; width: 42px; height: 42px; min-height: 42px; }
  body.compactCapture .wakeLockBtn,
  body.compactCapture .gpsToggle,
  body.compactCapture .gpsRadiusControl { flex: 1 1 29%; min-width: 88px; min-height: 40px; font-size: 12px; }
  body.compactCapture .loginLink { min-height: 28px; padding: 3px 10px; font-size: 11px; }
  body.compactCapture .page { padding: 12px 8px 34px; }
  body.compactCapture .filterBar { gap: 9px 8px; margin-bottom: 11px; }
  body.compactCapture .filterBar .filterLabel,
  body.compactCapture .filterBar .creatorLabel { display: none; }
  body.compactCapture .filterBar #gpsStatus { grid-column: 1 / -1; min-height: 58px; padding: 9px 10px; }
  body.compactCapture #gpsStatusText { line-height: 1.35; }
  body.compactCapture .filterBar select,
  body.compactCapture .filterBar .favoriteToggle { min-height: 44px; padding: 8px 11px; }
  body.compactCapture .filterBar #insertFavoriteListBtn { min-height: 44px; }
  body.compactCapture .map { height: clamp(470px, 62vh, 690px); }
  body.compactCapture .mapShell { border-radius: 10px; }
  body.compactCapture .selectedHeader { margin-top: 13px; padding: 0 2px; }
  body.compactCapture .selectedHeader h2 { font-size: 16px; }
  body.compactCapture #resetBtn { border-color: #d6e1da; border-radius: 8px; background: #fff; }
  body.compactCapture .saveBar .btn { width: 100%; border-radius: 8px; }
  body.compactCapture .queuePanel { margin-top: 13px; }
  body.compactCapture .lakoBar { margin-bottom: 4px; }
  body.compactCapture .bottomNav { gap: 4px; padding-inline: 6px; }
  body.compactCapture .bottomNav a,
  body.compactCapture .bottomNav button { min-height: 54px; border-radius: 9px; }
}

/* Vorschlag C: kompakter Funktionskopf und Benutzer-Menü v169 */
body.compactCapture .userMenu { position: relative; z-index: 25; }
body.compactCapture .userMenu summary {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  color: #fff;
  cursor: pointer;
  list-style: none;
}
body.compactCapture .userMenu summary::-webkit-details-marker { display: none; }
body.compactCapture .userMenu summary:hover,
body.compactCapture .userMenu[open] summary { background: rgba(255,255,255,.20); }
body.compactCapture .userMenu summary svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
body.compactCapture .userMenuPanel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 150px;
  padding: 8px;
  border: 1px solid #d6e2da;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(7, 55, 32, .28);
}
body.compactCapture .userMenuPanel .loginLink {
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #08783f;
  color: #fff;
}
body.compactCapture .gpsRadiusControl > span { display: none; }

@media (max-width: 768px) {
  body.compactCapture .appTopbar { padding: 10px; }
  body.compactCapture .statusBar {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px 6px;
    align-items: center;
  }
  body.compactCapture #onlineState { grid-column: 1 / 3; }
  body.compactCapture #queueState { grid-column: 3 / 5; }
  body.compactCapture #loginStatus { grid-column: 5 / 9; max-width: none; }
  body.compactCapture .userMenu { grid-column: 9 / 11; justify-self: end; }
  body.compactCapture .syncTopBtn {
    position: static;
    grid-column: 11 / 13;
    justify-self: end;
    top: auto;
    right: auto;
  }
  body.compactCapture .status {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 2px 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.compactCapture #loginStatus::before { display: none; }
  body.compactCapture .wakeLockBtn { grid-column: 1 / 5; }
  body.compactCapture .gpsToggle { grid-column: 5 / 9; }
  body.compactCapture .gpsRadiusControl { grid-column: 9 / 13; }
  body.compactCapture .wakeLockBtn,
  body.compactCapture .gpsToggle,
  body.compactCapture .gpsRadiusControl {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding-inline: 7px;
    font-size: 12px;
  }
  body.compactCapture .userMenuPanel { right: -48px; }
  body.compactCapture .gpsStatus::before { font-size: 15px; }
  body.compactCapture #gpsStatusText { white-space: nowrap; font-size: 12px; }
  body.compactCapture .gpsSmsLink { flex: 0 0 auto; min-height: 38px; padding-inline: 11px; font-size: 12px; }
}

@media (max-width: 390px) {
  body.compactCapture .statusBar { column-gap: 4px; }
  body.compactCapture .status { font-size: 10px; }
  body.compactCapture #onlineState::before { width: 7px; height: 7px; margin-right: 4px; }
  body.compactCapture .wakeLockBtn,
  body.compactCapture .gpsToggle,
  body.compactCapture .gpsRadiusControl { font-size: 11px; }
}

/* Vorschlag C: Ebenen- und Headerkorrektur v170 */
body.compactCapture .mapShell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  contain: paint;
}
body.compactCapture .map { z-index: 0; }
body.compactCapture .selectedHeader,
body.compactCapture .blastGridWrap,
body.compactCapture .saveBar,
body.compactCapture .queuePanel,
body.compactCapture .lakoBar {
  position: relative;
  z-index: 2;
}
body.compactCapture .bottomNav { z-index: 1200 !important; }
body.compactCapture .gpsStatus::before { content: none !important; display: none !important; }

@media (max-width: 768px) {
  body.compactCapture .statusBar {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 7px;
  }
  body.compactCapture #onlineState { grid-column: 1 / 2; }
  body.compactCapture #queueState { grid-column: 2 / 3; }
  body.compactCapture #loginStatus { grid-column: 3 / 5; }
  body.compactCapture .userMenu { grid-column: 5 / 6; justify-self: center; }
  body.compactCapture .syncTopBtn { grid-column: 6 / 7; justify-self: center; }
  body.compactCapture .wakeLockBtn { grid-column: 1 / 3; }
  body.compactCapture .gpsToggle { grid-column: 3 / 5; }
  body.compactCapture .gpsRadiusControl { grid-column: 5 / 7; }
  body.compactCapture .userMenu summary,
  body.compactCapture .syncTopBtn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
  }
  body.compactCapture .userMenu summary svg,
  body.compactCapture .syncTopIcon { width: 21px; height: 21px; }
  body.compactCapture .userMenuPanel { right: -42px; }
  body.compactCapture .gpsStatus { gap: 0; }
  body.compactCapture .mapShell { margin-bottom: 0; }
  body.compactCapture .map { display: block; position: relative; height: clamp(470px, 62vh, 690px); }
  body.compactCapture .selectedHeader { clear: both; margin-top: 14px; }
  body.compactCapture .saveBar { clear: both; margin-top: 14px; }
}

/* Lokale Font-Awesome-Symbole v171 */
body.compactCapture .wakeLockBtn::before,
body.compactCapture .gpsRadiusControl::before,
body.compactCapture .gpsSmsLink::before,
body.compactCapture .favoriteToggle::before { content: none !important; display: none !important; }
body.compactCapture .wakeLockBtn .fa-sun,
body.compactCapture .gpsRadiusControl .fa-bullseye { flex: 0 0 auto; font-size: 17px; }
body.compactCapture .gpsSmsLink { gap: 7px; }
body.compactCapture .gpsSmsLink .fa-paper-plane { font-size: 15px; }
body.compactCapture .favoriteToggle .fa-star { flex: 0 0 auto; color: #d7ab20; font-size: 18px; }
body.compactCapture #insertFavoriteListBtn { gap: 7px; }
body.compactCapture #insertFavoriteListBtn .fa-plus { font-size: 12px; }
body.compactCapture .userMenu summary .fa-user { font-size: 21px; }
body.compactCapture .syncTopBtn .fa-arrows-rotate { font-size: 21px; }
body.compactCapture .syncTopBtn.isSyncing .fa-arrows-rotate { animation: syncTopSpin .8s linear infinite; }
body.compactCapture .gpsCaptureBomb .fa-bomb { font-size: 43px; }
body.compactCapture .lakoArrow { font-size: 25px; }
body.compactCapture .bottomNav .fa-solid::before {
  content: "" !important;
  display: block !important;
  width: 1em !important;
  height: 1em !important;
  background: currentColor !important;
  -webkit-mask: var(--fa-mask) center / contain no-repeat !important;
  mask: var(--fa-mask) center / contain no-repeat !important;
}

/* Exakte Header-Icons nach Vorschlag C v172 */
body.compactCapture .gpsToggle { position: relative; }
body.compactCapture .gpsToggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
body.compactCapture .gpsToggle .fa-circle-check {
  flex: 0 0 auto;
  color: #fff;
  font-size: 18px;
  opacity: .42;
}
body.compactCapture .gpsToggle:has(input:checked) .fa-circle-check { opacity: 1; }
body.compactCapture .gpsToggle:has(input:focus-visible) { outline: 3px solid rgba(255,255,255,.35); outline-offset: 2px; }
body.compactCapture .syncTopBtn .fa-rotate-right { font-size: 22px; }
body.compactCapture .syncTopBtn.isSyncing .fa-rotate-right { animation: syncTopSpin .8s linear infinite; }

/* Schalterzustände und Menüicons v173 */
body.compactCapture .wakeLockBtn:not(.active),
body.compactCapture .gpsToggle:not(:has(input:checked)) {
  border-color: #d5dad7;
  background: #e9eceb;
  color: #48534e !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
body.compactCapture .wakeLockBtn.active,
body.compactCapture .gpsToggle:has(input:checked) {
  border-color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.13);
  color: #fff !important;
}
body.compactCapture .gpsToggle .gpsOffIcon,
body.compactCapture .gpsToggle .gpsOnIcon { flex: 0 0 auto; font-size: 18px; }
body.compactCapture .gpsToggle .gpsOnIcon { display: none; }
body.compactCapture .gpsToggle:has(input:checked) .gpsOffIcon { display: none; }
body.compactCapture .gpsToggle:has(input:checked) .gpsOnIcon { display: inline-grid; opacity: 1; }
body.compactCapture .syncTopBtn .fa-cloud-arrow-down { font-size: 22px; }
body.compactCapture .syncTopBtn.isSyncing .fa-cloud-arrow-down { animation: syncCloudPulse .75s ease-in-out infinite alternate; }
@keyframes syncCloudPulse { to { transform: translateY(2px); opacity: .58; } }

/* Nächster Favorit und gespeicherte Marker v174 */
body.compactCapture .nearestFavoriteCard {
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #a9d8b6;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff9f1, #e4f4e8);
  color: #17492d;
  box-shadow: 0 3px 11px rgba(8,120,63,.08);
}
body.compactCapture .nearestFavoriteCard[hidden] { display: none !important; }
body.compactCapture .filterBar .nearestFavoriteCard { grid-column: 1 / -1; }
body.compactCapture .nearestFavoriteIcon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #08783f;
  color: #fff;
  font-size: 20px;
}
body.compactCapture .nearestFavoriteInfo { display: grid; min-width: 0; line-height: 1.15; }
body.compactCapture .nearestFavoriteInfo small { color: #43815b; font-size: 10px; }
body.compactCapture .nearestFavoriteInfo strong { overflow: hidden; color: #163d29; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
body.compactCapture .nearestFavoriteInfo > span { margin-top: 3px; color: #08783f; font-size: 11px; font-weight: 800; }
body.compactCapture .nearestFavoriteSelectBtn {
  min-height: 38px;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: #08783f;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
body.compactCapture .nearestFavoriteSelectBtn:disabled { background: #7e9e8b; cursor: default; }
body.compactCapture .blast-marker.selectedStored {
  border-color: #8f1018 !important;
  background: #c62828 !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(198,40,40,.25), 0 3px 9px rgba(91,8,13,.35) !important;
}
body.compactCapture .blast-marker.nearestFavoriteMarker {
  outline: 4px solid rgba(8,120,63,.32);
  outline-offset: 3px;
  animation: nearestFavoritePulse 1.5s ease-in-out infinite alternate;
}
body.compactCapture .marker-cluster-stored div { background-color: rgba(198,40,40,.72) !important; color: #fff !important; }
body.compactCapture .marker-cluster-stored { background-color: rgba(198,40,40,.28) !important; }
@keyframes nearestFavoritePulse { to { outline-color: rgba(8,120,63,.7); outline-offset: 6px; } }

@media (max-width: 390px) {
  body.compactCapture .nearestFavoriteCard { gap: 8px; padding: 9px; }
  body.compactCapture .nearestFavoriteIcon { width: 36px; height: 36px; }
  body.compactCapture .nearestFavoriteSelectBtn { padding-inline: 9px; font-size: 11px; }
}

/* Karten-Pins nach Markervorlage v175 */
body.compactCapture .blast-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 2px solid #0b5f73;
  border-radius: 50% 50% 50% 0;
  background: #fff;
  color: #133f4a;
  font-size: 16px;
  line-height: 1;
  overflow: visible;
  box-shadow: 0 3px 9px rgba(9,45,55,.32);
}
body.compactCapture .leaflet-marker-icon .blast-marker {
  position: absolute;
  left: 2px;
  top: 2px;
  transform: rotate(-45deg);
}
body.compactCapture .map > .blast-marker {
  transform: translate(-50%, -100%) rotate(-45deg);
}
body.compactCapture .blast-marker .fa-solid {
  position: relative;
  z-index: 2;
  transform: rotate(45deg);
}
body.compactCapture .blast-marker .markerNearestIcon { display: none; }
body.compactCapture .blast-marker.nearestFavoriteMarker {
  border-color: #fff !important;
  background: #08783f !important;
  color: #fff !important;
  outline: none;
  animation: none;
  box-shadow: 0 0 0 2px #08783f, 0 4px 12px rgba(8,120,63,.42) !important;
}
body.compactCapture .blast-marker.nearestFavoriteMarker .markerDefaultIcon { display: none; }
body.compactCapture .blast-marker.nearestFavoriteMarker .markerNearestIcon { display: inline-grid; }
body.compactCapture .blast-marker.nearestFavoriteMarker::before,
body.compactCapture .blast-marker.nearestFavoriteMarker::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(8,120,63,.7);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: favoriteMarkerRing 1.8s ease-out infinite;
}
body.compactCapture .blast-marker.nearestFavoriteMarker::after { animation-delay: .6s; }
body.compactCapture .blast-marker.selectedStored,
body.compactCapture .blast-marker.selectedStored.nearestFavoriteMarker {
  border-color: #fff !important;
  background: #c62828 !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px #9c1720, 0 4px 12px rgba(124,10,18,.43) !important;
}
@keyframes favoriteMarkerRing {
  0% { opacity: .85; transform: translate(-50%, -50%) scale(.55); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.35); }
}

/* Dunkler Waldgrün-Look und rotes Auswahl-Badge v176 */
:root {
  --brand: #04552f;
  --brand-dark: #023d22;
  --success: #056537;
}
body.compactCapture .appTopbar {
  background: linear-gradient(135deg, #023d24 0%, #055a32 58%, #034b2b 100%);
  box-shadow: 0 8px 22px rgba(2,52,29,.28);
}
body.compactCapture .gpsSmsLink { background: linear-gradient(135deg, #066238, #034b2b); }
body.compactCapture .favoriteToggle:has(input:checked) { border-color: #76b58b; background: #edf6f0; color: #034b2b !important; }
body.compactCapture #insertFavoriteListBtn { background: linear-gradient(135deg, #065f35, #034b2b); }
body.compactCapture #insertFavoriteListBtn:hover { background: linear-gradient(135deg, #076b3b, #023d22); }
body.compactCapture .btnSuccess { border-color: #034b2b; background: #034b2b; }
body.compactCapture .lakoButton { background: linear-gradient(135deg, #034629, #055c33); }
body.compactCapture .lakoButton:hover { background: #023d22; }
body.compactCapture .bottomNav a.active {
  border-color: #034b2b;
  background: linear-gradient(145deg, #065f35, #034526);
  box-shadow: 0 5px 13px rgba(3,75,43,.28);
}
body.compactCapture .userMenuPanel .loginLink { background: #034b2b; }
body.compactCapture .nearestFavoriteIcon,
body.compactCapture .nearestFavoriteSelectBtn { background: #034b2b; }
body.compactCapture .nearestFavoriteInfo > span { color: #034b2b; }
body.compactCapture .nearestFavoriteCard { border-color: #8fbea0; background: linear-gradient(135deg, #edf6f0, #deeee3); }
body.compactCapture .blast-marker.nearestFavoriteMarker {
  background: #034b2b !important;
  box-shadow: 0 0 0 2px #034b2b, 0 4px 12px rgba(3,75,43,.48) !important;
}
body.compactCapture .blast-marker.nearestFavoriteMarker::before,
body.compactCapture .blast-marker.nearestFavoriteMarker::after { border-color: rgba(3,75,43,.72); }
body.compactCapture .selectedHeader .badge {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #c62828;
  color: #fff;
  box-shadow: 0 3px 9px rgba(124,10,18,.3);
  font-weight: 900;
}

/* Browser-eigene schwarze Select-Pfeile durch weissen Pfeil ersetzen v182 */
body.compactCapture .gpsRadiusControl select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 17px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2012%208%22%3E%3Cpath%20d%3D%22M1%201.5l5%205%205-5%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 10px 7px;
}
body.compactCapture .gpsRadiusControl select::-ms-expand { display: none; }
@media (max-width: 768px) {
  body.compactCapture #blastGrid > tbody > tr.blastEntryCard > td.mobileCardTop.regionCell {
    background: linear-gradient(180deg, #075533, #033d25) !important;
  }
  body.compactCapture #blastGrid .radioOption:has(input:checked) span {
    border-color: #034b2b;
    background: linear-gradient(180deg, #065f35, #034526);
  }
}

