/**
 * Projekt: Foto Geo-Tool
 * Datei: https://overpass-osm.de.cool/FotoGeoTool/style.css
 * Autor: Lutz Müller
 * Programmiersprache: CSS
 *
 * Cronik:
 *   Version-Datum:
 *     0.0.1, 2.5.2026, 11:46:01 // UTC+2 Deutschland
 *      - Datei erstellt
 *     0.0.2, 7.5.2026, 12:35:00 // UTC+2 Deutschland
 *      - CSS für Kopf-Standortanzeige mit Hover-Ortssuche ergänzt
 *     0.0.4, 7.5.2026, 13:05:00 // UTC+2 Deutschland
 *      - Ortssuche als Panel über der Karte gestaltet wie im Tour Analyzer Plus
 *     0.0.5, 7.5.2026, 15:10:00 // UTC+2 Deutschland
 *      - Layout nach Screenshot: Titel links, Standort/Hilfe rechts, Bilder-Liste als Auswahlfeld, Suchpanel im Kartenbild
 *     0.0.6, 7.5.2026, 15:40:00 // UTC+2 Deutschland
 *      - GeoImgr-ähnlichen EXIF-Arbeitsbereich unter der Karte ergänzt
 *     0.0.7, 7.5.2026, 16:20:00 // UTC+2 Deutschland
 *      - Mehrfach-Bildliste und Hover-Vorschau im oberen Bildbereich ergänzt
 *     0.0.9, 7.5.2026, 16:55:00 // UTC+2 Deutschland
 *      - Linken Speicher-Button ausgeblendet; rechter Speichern-Button im Geo-Editor ist maßgeblich
 *     0.1.0, 7.5.2026, 17:15:00 // UTC+2 Deutschland
 *      - Hauptlayout als klares Zwei-Spalten-Grid umgesetzt
 *     0.1.1, 7.5.2026, 17:35:00 // UTC+2 Deutschland
 *      - Versionseintrag für Datum-Fallback ergänzt; keine CSS-Layoutänderung
 *     0.1.2, 7.5.2026, 18:05:00 // UTC+2 Deutschland
 *      - FORMAT: Überschrift verkleinert, weiße Orientierungs-Linien entfernt, Karte nach oben gerückt, Geo-Editor-Inputs verkleinert
 *     0.1.3, 7.5.2026, 18:35:00 // UTC+2 Deutschland
 *      - BUGFIX: Bildgruppen werden ohne localStorage-Quota-Fehler geladen; große Bilddaten bleiben in der aktuellen Sitzung nutzbar
 *     0.1.4, 7.5.2026, 18:55:00 // UTC+2 Deutschland
 *      - Versionseintrag für Kartenzoom ergänzt; keine CSS-Layoutänderung
 *     0.1.5, 7.5.2026, 19:10:00 // UTC+2 Deutschland
 *      - Versionseintrag für zuverlässigen Detailzoom ergänzt; keine CSS-Layoutänderung
 *     0.1.6, 7.5.2026, 19:25:00 // UTC+2 Deutschland
 *      - Versionseintrag für Reset-/Cache-Bugfix ergänzt; keine CSS-Layoutänderung
 *     0.1.9, 8.5.2026, 07:20:00 // UTC+2 Deutschland
 *      - FORMAT: Fortbewegungsart-Panel an dunkles Layout angepasst; Hintergrund/Rahmen entfernt, Buttons blau/weiß mit grauem Hover
 *     0.1.10, 8.5.2026, 07:40:00 // UTC+2 Deutschland
 *      - FORMAT: Fortbewegungsart-Panel: größere Überschrift, Taxi-Icon, größere Button-Icons und ausgewählte Farbe angepasst
 *     0.1.11, 8.5.2026, 08:05:00 // UTC+2 Deutschland
 *      - Versionseintrag für Keyword-/WhatsApp-Metadaten-Bugfix ergänzt; keine CSS-Layoutänderung
 *     0.1.12, 8.5.2026, 08:20:00 // UTC+2 Deutschland
 *      - FORMAT: Abstand der Fortbewegungsart-Überschrift angepasst
 *     0.1.13, 8.5.2026, 08:40:00 // UTC+2 Deutschland
 *      - Versionseintrag für Layout-Tausch der Bilder-Liste ergänzt; keine CSS-Änderung
 *     0.1.14, 8.5.2026, 09:15:00 // UTC+2 Deutschland
 *      - NEU: Panoramax-Anmeldepanel und Token-Eingabe formatiert
 *     0.1.15, 8.5.2026, 09:35:00 // UTC+2 Deutschland
 *      - FORMAT: Panoramax-Logo und Geo-Aktionsbuttons angepasst
 *     0.1.16, 8.5.2026, 09:55:00 // UTC+2 Deutschland
 *      - FORMAT: Panoramax-Aktionsbuttons für Meine Bilder, Upload starten und Token generieren ergänzt
 *     0.1.17, 8.5.2026, 10:10:00 // UTC+2 Deutschland
 *      - Versionseintrag für dauerhaft gespeicherten Panoramax-Token ergänzt; keine CSS-Änderung
 *     0.1.18, 8.5.2026, 10:35:00 // UTC+2 Deutschland
 *      - Geo-Editor/Panoramax-Anmeldung getauscht und Layout für 80%-Browserzoom kompakter/breiter gemacht
 *     0.1.19, 8.5.2026, 10:55:00 // UTC+2 Deutschland
 *      - Versionseintrag für chronologische Bildsortierung ergänzt; keine CSS-Änderung
     0.1.22, 8.5.2026 // UTC+2 Deutschland
      - Schriftgrößen auf zentrale Standardskala vereinheitlicht.
      - Geo-Editor und Panoramax-Bereich lesbarer gesetzt.
     0.1.23, 8.5.2026 // UTC+2 Deutschland
      - Geo-Editor-Buttons sauber in eigener Button-Zeile ausgerichtet.
      - Eingabefelder/Buttons im Geo-Editor auf gemeinsame Breitenlogik gesetzt.
     0.1.24, 8.5.2026 // UTC+2 Deutschland
      - Description/Alternativtext als wachsende Eingabezeile gestaltet.
      - Plus-/Copyright-/Alt-Text-Buttons ergänzt.
     0.1.25, 8.5.2026 // UTC+2 Deutschland
      - BUGFIX: script.js-Fehler bei Description-Helfern und Karteninitialisierung behoben.
     0.1.26, 8.5.2026 // UTC+2 Deutschland
      - Description-Feld als Morph-Eingabe nach unten erweitert.
      - Seitenbuttons +, @ und ALT fest positioniert.
      - Fortbewegungsart-Button-Reihenfolge optisch passend korrigiert.
     0.1.27, 8.5.2026 // UTC+2 Deutschland
      - Description-Morph-Leiste wie Suchpanel gestaltet.
      - Speichern/Schließen in vergrößerter Description-Leiste ergänzt.
     0.1.28, 8.5.2026 // UTC+2 Deutschland
      - CSS für entfernten ALT-Link bereinigt.
      - Description-Morph-Leiste auf +, Text, @, Speichern, Schließen angepasst.
     0.1.29, 8.5.2026 // UTC+2 Deutschland
      - Google-Lens-Button im Geo-Editor ergänzt.
      - Geo-Editor-Button-Zeile auf vier Buttons angepasst.
     0.1.30, 8.5.2026 // UTC+2 Deutschland
      - Description-Morph-Leiste als Fixed-Dialog außerhalb des Geo-Editor-Flows umgesetzt.
      - Dialoggröße responsiv, mit Overlay-Schatten und hoher z-index-Ebene.
     0.1.31, 8.5.2026 // UTC+2 Deutschland
      - Description-Bearbeitung auf echten dialog umgestellt.
      - Kompakte Anzeige-Box ersetzt die expandierende Textarea im Geo-Editor.
     0.1.32, 8.5.2026 // UTC+2 Deutschland
      - Description-Dialog kompakter, nicht-modal wirkend positioniert und verschiebbar gestaltet.
     0.1.33, 8.5.2026 // UTC+2 Deutschland
      - Lens-/Alt-Text-Buttons in kompakter Description-Zeile und Dialog ergänzt.
      - Description-Kompaktzeile auf vier Spalten angepasst.
     0.1.34, 8.5.2026 // UTC+2 Deutschland
      - CSS bereinigt: mehrfach überschriebene Deklarationen entfernt und Regeln konsolidiert.
     0.1.35, 8.5.2026 // UTC+2 Deutschland
      - Doppelte .geo-editor-actions-Regeln bereinigt.
      - Geo-Editor-Button-Zeile von Grid auf Flex umgestellt und Hintergrund entfernt.
     0.1.36, 8.5.2026 // UTC+2 Deutschland
      - Version zur Google-Lens-Popup-Korrektur ergänzt.
     0.1.37, 8.5.2026 // UTC+2 Deutschland
      - Version zum temporären Google-Lens-Upload ergänzt.
     0.1.38, 8.5.2026 // UTC+2 Deutschland
      - Version zur Google-Lens-Zwischenablage-Korrektur ergänzt.
     0.1.39, 8.5.2026 // UTC+2 Deutschland
      - Version zur Google-Lens-Vorbereitungsseite mit drehender Sanduhr ergänzt.
     0.1.40, 8.5.2026 // UTC+2 Deutschland
      - Version zur Panoramax-Tokenfeld-Anzeige ergänzt.
     0.1.41, 8.5.2026 // UTC+2 Deutschland
      - Deaktivierter Panoramax-Upload-Button optisch markiert.
     0.1.42, 8.5.2026 // UTC+2 Deutschland
      - Version zur Panoramax-Upload-Diagnose ergänzt.
     0.1.43, 8.5.2026 // UTC+2 Deutschland
      - Doppelte CSS-Regeln innerhalb gleicher Ebene zusammengeführt.
      - Spätere Werte gewinnen; @media-Regeln bleiben getrennt.
     0.1.44, 8.5.2026 // UTC+2 Deutschland
      - Metadaten-Zeile für Beschreibung ergänzt.
     0.1.45, 8.5.2026 // UTC+2 Deutschland
      - Version zur Panoramax-Tag-Syntax ergänzt.
     0.1.46, 8.5.2026 // UTC+2 Deutschland
      - Version zur Meta-/Lizenz-Ergänzung ergänzt.
     0.1.47, 8.5.2026 // UTC+2 Deutschland
      - Version zur Panoramax-Testversion ergänzt.
     0.1.48, 8.5.2026 // UTC+2 Deutschland
      - Version Panoramax-Minimaltest ergänzt.
     0.1.49, 8.5.2026 // UTC+2 Deutschland
      - Version Panoramax-Rein-EXIF-Test ergänzt.
     0.1.50, 8.5.2026 // UTC+2 Deutschland
      - Version Panoramax-Reencode-Test ergänzt.
     0.1.51, 8.5.2026 // UTC+2 Deutschland
      - Version BUGFIX async JPEG-Reencode ergänzt.
     0.1.52, 8.5.2026 // UTC+2 Deutschland
      - Version Panoramax-360-Test ergänzt.
     0.1.53, 8.5.2026 // UTC+2 Deutschland
      - Styles für Link zum Video-Frame-Extractor ergänzt.
     0.1.54, 9.5.2026 // UTC+2 Deutschland
      - Integriertes Video-Frame-Extractor-Panel ergänzt.
     0.1.55, 9.5.2026 // UTC+2 Deutschland
      - Serien-Hinweis im Video-Frame-Extractor ergänzt.
     0.1.56, 9.5.2026 // UTC+2 Deutschland
      - Video-Dateiname im Video-Kasten und Dialogkopf besser platziert.
     0.1.57, 9.5.2026 // UTC+2 Deutschland
      - Deaktivierte Video-Frame-Buttons optisch klarer dargestellt.
     0.1.58, 9.5.2026 // UTC+2 Deutschland
      - Fotoframeextraktor-Layout links/rechts und ausgeschlossene Thumbnails ergänzt.
     0.1.59, 9.5.2026 // UTC+2 Deutschland
      - Linker Arbeitsbereich im Fotoframeextraktor für Beschreibung, Serien-Hinweis, Fortschritt und Thumbnail-Auswahl ergänzt.
     0.1.60, 9.5.2026 // UTC+2 Deutschland
      - Geo-Editor-Aktionsbuttons ohne Zwischenraum und ohne feste Clear-Mindestbreite.
      - Panoramax-Upload-Button rot, wenn der Upload als nächster Arbeitsschritt bereitsteht.
     0.1.61, 9.5.2026 // UTC+2 Deutschland
      - Version zur Hilfeseite ergänzt.
     0.1.62, 9.5.2026 // UTC+2 Deutschland
      - Panoramax-Upload-Bereit-Button ohne ::after-Zusatz „bereit“.
      - Bereit-Button rot mit success-farbigem Rahmen; Hover-Text weiß.
     0.1.63, 9.5.2026 // UTC+2 Deutschland
      - Fotoframeextraktor: Beschreibungstextarea, Serienhinweis, Fortschritt und Thumbnail-Hinweis kompakter dargestellt.
     0.1.64, 9.5.2026 // UTC+2 Deutschland
      - Version zur Hilfetext-Erweiterung ergänzt; keine Layoutänderung.
     0.1.65, 9.5.2026 // UTC+2 Deutschland
      - Geo-Editor-Buttonleiste von Flex auf stabiles Grid gesetzt.
      - Button-Margins entfernt, box-sizing korrigiert und Clear-Spalte begrenzt.
     0.1.66, 9.5.2026 // UTC+2 Deutschland
      - Fotoframeextraktor: Fortschrittsanzeige links kompakt, rechte Einstellungsleiste ohne Fortschrittsblock.
     0.1.67, 9.5.2026 // UTC+2 Deutschland
      - Version zur Koordinatenerkennung aus Dateinamen ergänzt.
     0.1.68, 9.5.2026 // UTC+2 Deutschland
      - Version zur Koordinaten-Reihenfolge im Dateinamen ergänzt.
     0.1.69, 9.5.2026 // UTC+2 Deutschland
      - Version zur Copyright-Pipe-Normalisierung ergänzt.
     0.1.70, 9.5.2026 // UTC+2 Deutschland
      - Version zur gleichmäßigen Frame-Verteilung ergänzt.
     0.1.72, 11.5.2026 // UTC+2 Deutschland
      - Anzeige für Höhe ergänzt; Richtungshinweis aktualisiert.
     0.1.73, 11.5.2026 // UTC+2 Deutschland
      - CSS für roten Richtungspfeil auf Kreisbogen ergänzt.
     0.1.74, 11.5.2026 // UTC+2 Deutschland
      - Metadaten-Zeilen für Höhe und Blickrichtung ergänzt.
     0.1.75, 11.5.2026 // UTC+2 Deutschland
      - Keine CSS-Änderung; HTML-Icon-Link ergänzt.
     0.1.76, 11.5.2026 // UTC+2 Deutschland
      - Keine Layoutänderung; Panoramax-Upload wurde serverseitig repariert.
     0.1.77, 11.5.2026 // UTC+2 Deutschland
      - Pfeilspitzen-Logik angepasst; CSS bleibt kompatibel.
     0.1.78, 11.5.2026 // UTC+2 Deutschland
      - UI: .brand-block und .brand-block span für Kamera-Icon und Titel/Subtext angepasst.
     0.1.79, 11.5.2026 // UTC+2 Deutschland
      - UI: .brand-block span auf 3.5rem gesetzt und Titel/Subtext als eigener Textblock vorbereitet.
     0.1.80, 11.5.2026 // UTC+2 Deutschland
      - UI: roter Richtungsbogen ist nun gestrichelt; gespeicherte Bilder zeigen nur Standort und gespeicherte Richtung in den Metadaten.
     0.1.81, 11.5.2026 // UTC+2 Deutschland
      - UI: Rote Pfeilspitze bleibt tangential gedreht, wird aber optisch innen positioniert.
     0.1.82, 11.5.2026 // UTC+2 Deutschland
      - UI: Rote Pfeilspitze optisch wieder näher an den gestrichelten Bogen gesetzt.
     0.1.83, 11.5.2026 // UTC+2 Deutschland
      - UI: gespeicherter Token wird im Eingabefeld ausgegraut und mit Punkten angezeigt.
     0.1.84, 11.5.2026 // UTC+2 Deutschland
      - Keine Layout-Änderung; Upload-Fix in PHP.
     0.1.85, 11.5.2026 // UTC+2 Deutschland
      - Keine CSS-Layoutänderung; Pfeilposition wird nun in script.js pixelgenau berechnet.
     0.1.86, 11.5.2026 // UTC+2 Deutschland
      - BUGFIX: alte span-basierte Pfeiloptik durch svg-basierte Pfeiloptik ersetzt.
     0.1.87, 11.5.2026 // UTC+2 Deutschland
      - Keine CSS-Layoutänderung; Pfeilversatz in script.js entfernt.
     0.1.88, 11.5.2026 // UTC+2 Deutschland
      - Keine Layout-Änderung; Upload-/Weiterleitungsfix in script.js und panoramax_upload.php.
     0.1.89, 11.5.2026 // UTC+2 Deutschland
      - Keine Layout-Änderung; Ortsdaten aktualisiert.
     0.1.90, 11.5.2026 // UTC+2 Deutschland
      - Keine Layout-Änderung; Upload-Dateinamen werden serverseitig normalisiert.
     0.1.91, 11.5.2026 // UTC+2 Deutschland
      - UI: Ortssuche zeigt bei Fallback-Koordinaten einen kleinen Hinweis.
     0.1.92, 11.5.2026 // UTC+2 Deutschland
      - Keine Layout-Änderung; Panoramax-Upload-ID-Fix in PHP.
     0.1.93, 11.5.2026 // UTC+2 Deutschland
      - Keine Layout-Änderung; Panoramax-Upload-Diagnose in PHP/JS erweitert.
     0.1.94, 14.5.2026 // UTC+2 Deutschland
      - Versionseintrag für FotoGeoTool-Linkparameter ergänzt; keine CSS-Layoutänderung.
     0.1.95, 14.5.2026 // UTC+2 Deutschland
      - Keine Layoutänderung; Versionsstand v0.1.95.
     0.1.96, 14.5.2026 // UTC+2 Deutschland
      - Version zu Panoramax-JPEG-Härtung synchronisiert.
     0.1.97, 15.5.2026 // UTC+2 Deutschland
      - BEREINIGUNG: Dateikopf/Verweise auf overpass-osm.de.cool aktualisiert; keine Layoutänderung.
     0.1.99, 15.5.2026 // UTC+2 Deutschland
      - Versionsstand zur Karten-/Richtungskreis-Korrektur aktualisiert.
     0.1.100, 15.5.2026 // UTC+2 Deutschland
      - HILFE: Hilfeseite vollständig mit neuen Screenshots und Schritt-für-Schritt-Anleitung überarbeitet.
 */

:root {
  --bg: #0f0f13;
  --surface: #1a1a22;
  --surface2: #22222e;
  --border: #2e2e3e;
  --accent: #6ee7b7;
  --accent2: #818cf8;
  --text: #e2e8f0;
  --muted: #64748b;
  --danger: #f87171;
  --success: #4ade80;
  --warn-bg: rgba(251, 191, 36, 0.10);
  --warn-border: rgba(251, 191, 36, 0.35);
  --warn-text: #fbbf24;
  --radius: 12px;
  --font-head: "Syne", sans-serif;
  --font-mono: "Fira Code", monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


header {
  margin-bottom: 2.5rem;
}

header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}


.top-location-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: clamp(1rem, 2.5vw, 1.45rem);
  line-height: 1.25;
}

.app-title-link {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-title-link:hover, .app-title-link:focus-visible {
  color: var(--accent);
  text-decoration: none;
  outline: none;
}

.top-separator {
  color: rgba(255,255,255,0.85);
  user-select: none;
}


.top-location-status:hover, .top-location-status:focus-visible, .top-location-bar:hover .top-location-status {
  background: rgba(110, 231, 183, 0.12);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.28);
  outline: none;
}


.top-location-bar:hover .top-location-search-popover, .top-location-bar:focus-within .top-location-search-popover, .top-location-search-popover.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.top-search-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.top-search-wrapper {
  flex: 1;
  position: relative;
}

#top-location-search {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.95rem;
  padding: 0.58rem 0.75rem;
}

#top-location-search:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.top-btn-locate {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.5rem 0.8rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.top-btn-locate:hover {
  background: rgba(110, 231, 183, 0.10);
  border-color: var(--accent);
}

#top-search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 230px;
  overflow-y: auto;
  z-index: 2600;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.top-search-hint {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.74rem;
}


.header-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.4rem 0.8rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.header-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.header-btn.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.header-btn.upload:hover {
  border-color: var(--success);
  color: var(--success);
}

.header-btn.zip:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}


@media (max-width: 800px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


#drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

#drop-zone.drag-over {
  border-color: var(--accent);
  background: rgba(110, 231, 183, 0.06);
}

#drop-zone .drop-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

#drop-zone p {
  color: var(--muted);
  font-size: 0.9rem;
}

#file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}


#meta-section {
  display: none;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.meta-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
  text-align: right;
  word-break: break-all;
}

#date-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.3rem 0.5rem;
  width: 100%;
  max-width: 200px;
  color-scheme: dark;
}

#date-input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.status-box {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  display: none;
  line-height: 1.6;
}

.status-box.info {
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: var(--accent2);
}

.status-box.warn {
  background: rgba(248, 113, 113, 0.10);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--danger);
}

.status-box.success {
  background: rgba(74, 222, 128, 0.10);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--success);
}

.image-list {
  max-height: 200px;
  overflow-y: auto;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
}

.image-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  position: relative;
}

.image-list-item:last-child {
  border-bottom: none;
}

.image-list-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.image-list-name:hover {
  color: var(--accent);
}

.image-hover-preview {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: min(360px, 70vw);
  max-height: 260px;
  padding: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
  z-index: 1500;
  pointer-events: none;
}

.image-hover-preview img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--surface2);
}

.image-hover-caption {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-list-name:hover + .image-hover-preview, .image-list-item:focus-within .image-hover-preview {
  display: none;
}

.image-list-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 0 0.3rem;
  font-size: 1rem;
}

.image-list-remove:hover {
  opacity: 0.7;
}


.search-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

#location-search {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
}

#location-search:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.search-wrapper {
  flex: 1;
  position: relative;
}

#search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.suggestion-item {
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.suggestion-item:hover {
  background: rgba(110, 231, 183, 0.08);
}

.suggestion-zip {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.78rem;
  margin-right: 0.5rem;
}

#coords-display {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

#coords-display.coords-top {
  margin-bottom: 0.25rem;
}

.coords-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.coords-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
}


#save-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-locate {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.45rem 0.75rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-locate:hover {
  background: rgba(110, 231, 183, 0.1);
}

.leaflet-popup-content-wrapper {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
}

.leaflet-popup-tip {
  background: var(--surface) !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

.fade-in {
  animation: fadeIn 0.35s ease forwards;
}

.top-location-search-popover {
  position: absolute;
  left: 0.85rem;
  top: calc(100% + 0.45rem);
  width: min(520px, calc(100vw - 3rem));
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.55);
  z-index: 2500;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  display: none !important;
}


.location-search-panel.aktiv {
  display: flex;
  flex-wrap: wrap;
}


#locationSearchInput:focus {
  border-color: #111;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.28);
}


#locationSearchBtn.search:hover, #locationSearchBtn.search:focus-visible {
  background: #31964e;
}

#locationSearchCloseBtn:hover, #locationSearchCloseBtn:focus-visible {
  background: #1f2f42;
}


@media (max-width: 700px) {
  .location-search-panel {
    padding: 0.75rem;
  }

  #locationSearchInput, #locationSearchBtn, #locationSearchCloseBtn {
    height: 2.8rem;
  }

  #locationSearchBtn.search {
    flex: 1 1 auto;
  }

}

.app-wrapper {
  margin: 0 auto;
  max-width: 1180px;
  padding: 1.35rem 1.45rem 2rem;
}

.app-header {
  margin-bottom: 1.1rem;
}

.header-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-block {
  min-width: 0;
}

.brand-title-link {
  display: inline-block;
  text-decoration: none;
}

.brand-title-link:hover h1, .brand-title-link:focus-visible h1 {
  filter: brightness(1.12);
}

.header-right-box {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.15rem;
  max-width: 100%;
}

.top-location-bar {
  position: relative;
  margin-bottom: 1rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.top-location-status {
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.35rem;
  border-radius: 0;
  color: #fff;
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.22rem;
  cursor: pointer;
}

.top-location-status:hover, .top-location-status:focus-visible {
  background: rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(110,231,183,0.9);
}

.help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0 1rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(45,64,85,0.96);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.help-btn:hover, .help-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.header-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.95rem;
}

.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}


#savedImageSelect:focus {
  outline: 3px solid rgba(110,231,183,0.35);
  border-color: var(--accent);
}

#map-panel {
  position: relative;
  min-height: 0;
  padding-bottom: 0.75rem;
}

.map-shell {
  position: relative;
  width: 100%;
}

#map {
  width: 100%;
  border: 1px solid var(--border);
  filter: grayscale(0.2);
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}

.coords-hidden {
  display: none;
}

@media (max-width: 900px) {
  .header-top-row {
    flex-direction: column;
    gap: 0.65rem;
  }

  .header-right-box {
    width: 100%;
    justify-content: space-between;
  }

  .top-location-status {
    white-space: normal;
  }

}

@media (max-width: 700px) {
  .image-list-select-row {
    grid-template-columns: 1fr;
  }

}


.geo-editor-panel.aktiv {
  display: grid;
}


.geo-editor-thumb-wrap img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}


.inline-link-btn {
  border: none;
  background: transparent;
  color: #88c7ff;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.inline-link-btn:hover {
  text-decoration: underline;
}


.geo-action-btn.clear {
  background: #f5f5f5;
  color: #222;
}

.geo-action-btn:hover {
  filter: brightness(1.08);
}


@media (max-width: 900px) {
  .geo-editor-panel {
    grid-template-columns: 1fr;
  }

  .geo-editor-fields {
    grid-template-columns: 1fr;
  }

  .geo-editor-thumb-wrap img {
    height: 180px;
  }

}

.header-right-box .top-location-bar {
  padding: 0.25rem 0.35rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.header-right-box .top-location-status {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0.18rem 0.25rem;
}

.header-right-box .top-location-status:hover, .header-right-box .top-location-status:focus-visible {
  background: rgba(110, 231, 183, 0.12);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(110, 231, 183, 0.30);
}

.image-list-select-row {
  display: grid;
  align-items: center;
  margin-top: 0.15rem;
  grid-template-columns: auto minmax(240px, 1fr);
  gap: 0.75rem;
}

.image-list-select-row label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #ffffff;
  white-space: nowrap;
}

#savedImageSelect {
  width: 100%;
  appearance: none;
  cursor: pointer;
  min-height: 2.35rem;
  height: 2.35rem;
  padding: 0 2.45rem 0 0.8rem;
  border: 2px solid rgba(110, 231, 183, 0.75);
  border-radius: 10px;
  background: linear-gradient(45deg, transparent 50%, #5aa7f0 50%) calc(100% - 24px) 50% / 11px 11px no-repeat,
    linear-gradient(135deg, #151923 0%, #10131a 100%);
  color: #f8fafc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

#savedImageSelect option {
  background: #10131a;
  color: #f8fafc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
}

#savedImageSelect option:checked {
  background: #2563eb;
  color: #ffffff;
}

.location-search-panel {
  display: none;
  position: absolute;
  z-index: 2500;
  align-items: center;
  backdrop-filter: blur(6px);
  top: 1rem;
  left: 2.65rem;
  right: 1.15rem;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(203, 213, 225, 0.95);
  box-shadow: 0 12px 26px rgba(0,0,0,0.22);
  font-family: Arial, Helvetica, sans-serif;
}

#locationSearchInput {
  min-width: 0;
  outline: none;
  height: 2.25rem;
  flex: 1 1 280px;
  padding: 0 2.2rem 0 0.75rem;
  border: 2px solid #111827;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
}

#locationSearchInput::placeholder {
  color: #6b7280;
  opacity: 1;
}

#locationSearchBtn, #locationSearchCloseBtn {
  border: none;
  cursor: pointer;
  height: 2.25rem;
  border-radius: 10px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
}

#locationSearchBtn.search {
  padding: 0 1rem;
  background: #3fad5f;
  color: #ffffff;
}

#locationSearchCloseBtn {
  width: 2.4rem;
  background: #2d4055;
  color: #ffffff;
  font-size: 1.15rem;
  line-height: 1;
}

.location-search-results {
  display: none;
  flex: 1 1 100%;
  overflow-y: auto;
  border: 1px solid #d5d8df;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  max-height: 210px;
  margin-top: 0.25rem;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
}

.location-search-result {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef0f4;
  cursor: pointer;
  text-align: left;
  padding: 0.58rem 0.8rem;
  background: #ffffff;
  color: #111827;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.25;
}


.location-search-result:hover, .location-search-result:focus-visible {
  outline: none;
  background: rgba(110, 231, 183, 0.16);
  color: #0f172a;
}

.location-search-empty {
  padding: 0.85rem 1rem;
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .header-right-box .top-location-status {
    font-size: 0.92rem;
  }

  #savedImageSelect {
    font-size: 0.92rem;
  }

  .location-search-panel {
    left: 0.75rem;
    right: 0.75rem;
    top: 0.85rem;
  }

}

#save-btn {
  display: none !important;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: #0f0f13;
  transition: opacity 0.15s, transform 0.1s;
}


.layout-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.layout-left {
  padding-right: 0.35rem;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
}

.layout-right {
  padding-left: 0.35rem;
  border-left: 2px solid rgba(255, 255, 255, 0.85);
}


.layout-left .left-column, .layout-right #map-panel {
  margin-top: 0;
}


.layout-left .image-list-select-row label {
  font-size: 1rem;
  font-weight: 800;
}

.layout-left #savedImageSelect {
  height: 2.05rem;
  min-height: 2.05rem;
  font-size: 0.82rem;
  border-radius: 8px;
}


.layout-right .geo-editor-panel {
  margin-top: 0.9rem;
}

@media (max-width: 980px) {
  .app-wrapper.layout-grid {
    grid-template-columns: 1fr;
    width: min(760px, calc(100vw - 1rem));
    padding: 0.75rem;
  }

  .layout-left, .layout-right {
    padding: 0;
    border-left: 0;
    border-right: 0;
  }

  .right-header .header-right-box {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .left-header .brand-block h1 {
    white-space: normal;
  }

  .left-header .brand-block p, .right-header .top-location-status {
    white-space: normal;
  }

  .layout-left .image-list-select-row {
    grid-template-columns: 1fr;
  }

}


.layout-left, .layout-right {
  border-left: 0 !important;
  border-right: 0 !important;
}


.right-header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 0.15rem;
  margin-bottom: 0.25rem;
}

.right-header .header-right-box {
  width: 100%;
  justify-content: flex-end;
  gap: 0.8rem;
  margin: 0;
  align-items: center;
}

.right-header .top-location-bar {
  margin-top: 0;
}

.right-header .top-location-status {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  font-size: 0.88rem;
  min-height: 1.65rem;
}

.right-header .help-btn {
  font-family: Arial, Helvetica, sans-serif;
  min-height: 2rem;
  padding: 0 0.85rem;
  font-size: 0.86rem;
}


.geo-editor-thumb-wrap {
  background: #444;
  padding: 0.35rem;
}


@media (max-width: 980px) {
  .app-wrapper.layout-grid {
    row-gap: 0.75rem;
  }

  .right-header {
    margin-top: 0;
  }

}

#transport-section {
  padding: 0.9rem 1rem;
}

.entry-transport-editor {
  border-radius: 8px;
  padding: 0.75rem;
  font-family: Arial, Helvetica, sans-serif;
}


.entry-transport-editor .info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  color: #0a1f69;
  font-weight: 800;
  cursor: help;
}

.transport-buttons-wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #0a1f69;
  border-radius: 6px;
  overflow: hidden;
}


.transport-select-button:last-child {
  border-right: 0;
}

.transport-select-button:hover, .transport-select-button:focus-visible {
  background: #9498a5;
  outline: none;
}

.transport-select-button.button-selected {
  background: #6c7288;
  color: #ffffff;
}


.metadata-quality-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.metadata-quality-button {
  min-height: 5.9rem;
  border: 1px solid #0a1f69;
  border-radius: 8px;
  background: linear-gradient(180deg, #4d83bc 0%, #34679d 100%);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 3px 8px rgba(0,0,0,0.18);
}

.metadata-quality-button svg {
  width: 2.65rem;
  height: 2.65rem;
  display: block;
}

.metadata-quality-button span {
  font-size: var(--text-xs);
  line-height: 1.15;
  text-align: center;
  font-weight: 700;
}

.metadata-quality-button:hover,
.metadata-quality-button:focus-visible {
  background: linear-gradient(180deg, #5d90c8 0%, #3c73ad 100%);
  outline: none;
}

.metadata-quality-button.button-selected {
  background: linear-gradient(180deg, #6c7288 0%, #555b70 100%);
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22), 0 3px 8px rgba(0,0,0,0.2);
}

@media (max-width: 640px) {
  .metadata-quality-wrapper {
    grid-template-columns: 1fr;
  }
}


.layout-right .right-meta-panel {
  margin-left: 0;
  margin-right: 0;
}


@media (max-width: 640px) {
  .transport-buttons-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transport-select-button:nth-child(2) {
    border-right: 0;
  }

  .transport-select-button:nth-child(-n/**/+2) {
    border-bottom: 1px solid #0a1f69;
  }

}

.panoramax-auth-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.panoramax-auth-subtitle {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}


#panoramaxTokenInput:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}


.panoramax-link-btn:hover, .panoramax-link-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.panoramax-upload-inline {
  border-color: rgba(110, 231, 183, 0.45);
}

.panoramax-token-generate {
  border-color: rgba(129, 140, 248, 0.55);
}

.panoramax-auth-status {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.panoramax-auth-status.ok {
  color: var(--success);
}

.panoramax-auth-status.warn {
  color: var(--danger);
}

@media (max-width: 700px) {
  .panoramax-token-row {
    grid-template-columns: 1fr;
  }

}


.geo-action-btn.primary, .geo-action-btn.download {
  background: #3d78ad;
  padding: 7px;
}

.panoramax-auth-panel.panoramax-highlight {
  box-shadow: 0 0 0 2px rgba(110, 231, 183, 0.85), 0 0 22px rgba(110, 231, 183, 0.25);
}

.app-wrapper.layout-grid {
  margin: 0 auto;
  display: grid;
  align-items: start;
  padding-top: 0.85rem;
  width: min(1320px, calc(100vw - 0.8rem));
  max-width: 99%;
  padding: 0.55rem 0.55rem 0.8rem;
  grid-template-columns: minmax(470px, 1.05fr) minmax(500px, 1fr);
  column-gap: 1.05rem;
}

.left-header, .right-header {
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.75rem 0.6rem;
  border-top: 0 !important;
  border-bottom: 0 !important;
  min-height: auto;
  padding-top: 0.15rem;
  padding-bottom: 0.28rem;
  margin-bottom: 0.25rem;
}

.left-header .brand-block h1 {
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.045em;
  font-size: clamp(1.95rem, 2.85vw, 2.55rem);
}

.left-header .brand-block p {
  white-space: nowrap;
  margin-top: 0.15rem;
  font-size: 0.74rem;
}

.left-header .header-buttons {
  margin-top: 0.42rem;
  gap: 0.5rem;
}

.left-header .header-btn {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  min-height: 1.72rem;
  padding: 0.26rem 0.58rem;
  font-size: 0.69rem;
}

.layout-left .panel, .layout-right #map-panel {
  margin-left: 0.35rem;
  margin-right: 0.35rem;
}

.layout-right #map-panel {
  min-height: 0;
  margin-top: 0;
  padding: 0.7rem;
}

.layout-right #map {
  height: clamp(250px, 31vh, 330px);
}

.map-hint {
  color: var(--muted);
  margin-top: 0.32rem;
  font-size: 0.72rem;
}

#preview-img {
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface2);
  max-height: clamp(230px, 42vh, 390px);
}

#preview-container {
  display: none;
  flex-direction: column;
  gap: 0.45rem;
}

.img-filename {
  color: var(--muted);
  font-family: var(--font-mono);
  word-break: break-all;
  font-size: 0.72rem;
}

.btn.btn-ghost {
  padding: 0.22rem 0.75rem;
  line-height: 1.15;
}

.layout-left .image-list-select-row {
  margin: 0 0 0.65rem;
  padding: 0 0.75rem 0.6rem;
  border-bottom: 0 !important;
  grid-template-columns: auto minmax(190px, 1fr);
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0;
}

#transport-section, #image-list-panel, .right-meta-panel, .panoramax-auth-panel {
  padding: 0.65rem 0.8rem;
}


.panoramax-auth-panel {
  margin-top: 0.55rem;
  gap: 0.45rem;
}

.panoramax-auth-logo {
  width: 4rem;
  object-fit: contain;
  border-radius: 8px;
  height: 3.5rem;
}

.panoramax-auth-subtitle, .panoramax-auth-status {
  font-size: 0.68rem;
  line-height: 1.25;
}

.panoramax-token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.38rem;
}

#panoramaxTokenInput {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font-mono);
  min-height: 1.72rem;
  padding: 0.22rem 0.45rem;
  font-size: 0.68rem;
}

.panoramax-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.panoramax-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface2);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  min-height: 1.72rem;
  padding: 0.24rem 0.58rem;
  font-size: 0.72rem;
}

.right-meta-panel {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-top: 0.55rem;
}

.right-meta-panel .meta-row {
  padding: 0.26rem 0;
}

.right-meta-panel #date-input {
  max-width: 210px;
  height: 1.65rem;
  font-size: 0.72rem;
}

@media (max-width: 1100px) {
  .app-wrapper.layout-grid {
    grid-template-columns: 1fr;
    width: min(860px, calc(100vw - 0.8rem));
  }

}

.geo-action-btn.primary.is-finished {
  background: #6c7288 !important;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.20);
}

.geo-action-btn.primary.is-finished:hover {
  filter: brightness(1.04);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  min-height: 100vh;
  background-image: linear-gradient(rgba(110, 231, 183, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 231, 183, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  font-size: var(--text-base);
}

.left-header .brand-block p, header p {
  font-size: var(--text-sm);
}

.left-header .header-btn, .header-btn {
  font-size: var(--text-sm);
}

.right-header .top-location-status, .header-right-box .top-location-status, .top-location-status {
  font-size: var(--text-sm);
}

.right-header .help-btn, .help-btn {
  font-size: var(--text-sm);
}

.panel-title {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: var(--text-sm);
}

.meta-label, .meta-value, .right-meta-panel #date-input, #date-input {
  font-size: var(--text-sm);
}

.img-filename, .image-list-item, .image-hover-caption, .map-hint, .coords-label, .coords-value {
  font-size: var(--text-sm);
}

.layout-left .image-list-select-row label, .image-list-select-row label {
  font-size: var(--text-lg);
}

.layout-left #savedImageSelect, #savedImageSelect, #savedImageSelect option {
  font-size: var(--text-base);
}


.geo-field-block label {
  display: block;
  margin: 0 0 0.15rem;
  color: #f5f5f5;
  font-weight: 700;
  white-space: nowrap;
  margin-bottom: 0.1rem;
  font-size: var(--text-xs);
  line-height: 1.15;
}


.geo-editor-filename {
  grid-column: 1 / -1;
  color: #b8b8b8;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0.08rem 0.32rem 0.16rem;
  font-size: var(--text-xs);
}

.entry-transport-editor .entry-label {
  margin-bottom: 0.75rem;
  margin-top: -0.75rem;
  margin-left: -0.55rem;
  font-weight: 700;
  font-size: var(--text-xl);
}

.transport-select-button {
  min-height: 3.05rem;
  border: 0;
  border-right: 1px solid #0a1f69;
  background: #4379b0;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  font-size: var(--text-xl);
}

button.transport-select-button span {
  font-size: var(--text-xs);
}

.panoramax-auth-subtitle, .panoramax-auth-status, #panoramaxTokenInput, .panoramax-link-btn {
  font-size: var(--text-sm);
}

#panoramaxTokenInput, .panoramax-link-btn {
  min-height: 2rem;
}

#locationSearchInput, #location-search {
  font-size: var(--text-base);
}

#locationSearchBtn, #locationSearchCloseBtn, .location-search-result, .location-search-empty {
  font-size: var(--text-sm);
}

.location-search-result .suggestion-zip, .location-search-result strong, .suggestion-zip {
  color: var(--accent);
  font-family: "Fira Code", monospace;
  font-weight: 500;
  font-size: var(--text-sm);
}

.geo-editor-panel {
  display: none;
  gap: 0;
  border: 1px solid #333;
  color: #f3f4f6;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
  margin-top: 0.55rem;
  margin-bottom: 0.55rem;
  font-size: var(--text-xs);
  grid-template-columns: minmax(180px, 32%) minmax(0, 1fr);
  align-items: stretch;
}


.geo-editor-fields {
  gap: 0.35rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  column-gap: 0.55rem;
  row-gap: 0.25rem;
  align-items: end;
  width: 100%;
}

.geo-field-block input {
  display: block;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #333;
  padding: 0.08rem 0.25rem;
  border-radius: 3px;
  margin-bottom: 0.14rem;
  font-size: var(--text-sm);
  height: 1.6rem;
  line-height: 1.2;
  width: 100%;
  min-width: 0;
}

.geo-action-btn {
  border: 0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  margin: 0.18rem;
  border-radius: 3px;
  padding: 0.24rem 0.5rem !important;
  font-size: var(--text-sm);
  min-height: 1.8rem;
  line-height: 1.15;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  justify-content: center;
  text-align: center;
}

@media (max-width: 760px) {
  .geo-editor-panel {
    grid-template-columns: 1fr;
  }

  .geo-editor-fields {
    grid-template-columns: 1fr;
  }

  .geo-action-btn.clear {
    min-width: 0;
  }

}


.description-side-btn:hover, .description-side-btn:focus-visible {
  background: #6c7288;
  outline: none;
}


@media (max-width: 760px) {
  .description-input-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

}

.transport-buttons-wrapper .transport-select-button {
  border-right: 1px solid #0a1f69;
}

.transport-buttons-wrapper .transport-select-button:last-child {
  border-right: 0;
}

#descriptionInput:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  width: 100%;
  min-height: 6rem;
  height: 6rem;
  overflow-y: auto;
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(110, 231, 183, 0.28);
  position: relative;
  z-index: 5;
}


#descriptionInput:focus + .description-side-btn, .description-input-row:focus-within .description-side-btn {
  top: 0;
}

.geo-field-block {
  min-width: 0;
}

.geo-field-block input, .geo-field-block textarea {
  max-width: 100%;
}

@media (max-width: 760px) {
  #descriptionInput {
    padding-right: 5.8rem;
  }

  .description-alt-link {
    grid-column: auto;
    justify-self: auto;
  }

}

.geo-editor-main {
  padding: 0.25rem 0.32rem 0.16rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}


.description-input-row:focus-within .description-alt-link {
  min-width: 3.8rem;
  font-size: var(--text-base);
}

@media (max-width: 900px) {
  .description-input-row:focus-within {
    top: calc(100% - 4rem);
  }

}

.description-alt-link {
  font-size: var(--text-xs);
  right: 0;
  min-width: 2.55rem;
  display: none !important;
}


@media (max-width: 900px) {
  .description-input-row:focus-within {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .description-input-row:focus-within .description-morph-save {
    grid-column: 2 / 3;
  }

  .description-input-row:focus-within .description-morph-close {
    grid-column: 3 / 4;
  }

}


.geo-action-btn.lens:hover, .geo-action-btn.lens:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

@media (max-width: 760px) {
  
.geo-action-btn.lens {
    min-width: 0;
  }

}

.geo-editor-panel, .geo-editor-main, .geo-field-block {
  overflow: visible;
}

.description-input-row {
  gap: 0.35rem;
  align-items: stretch;
  grid-template-columns: auto minmax(0, 1fr) auto;
  position: relative;
  display: block;
  width: 100%;
  z-index: 20;
}

#descriptionInput {
  font-family: var(--font-head);
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.18);
  background: #ffffff;
  color: #111827;
  padding-right: 3.1rem;
  width: 100%;
  min-width: 0;
  min-height: 1.7rem;
  height: 1.7rem;
  padding: 0.28rem 3.1rem 0.28rem 2.35rem;
  font-size: var(--text-sm);
  line-height: 1.25;
  resize: none;
  overflow-y: hidden;
  box-sizing: border-box;
  transition: width 0.26s ease-in-out,
    height 0.26s ease-in-out,
    box-shadow 0.26s ease-in-out,
    border-color 0.26s ease-in-out;
}

.description-side-btn {
  border: 1px solid rgba(255,255,255,0.25);
  background: #3d78ad;
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  position: absolute;
  top: 0;
  height: 1.7rem;
  min-height: 1.7rem;
  min-width: 2rem;
  padding: 0 0.42rem;
  z-index: 102;
  border-radius: 5px;
}

#restoreDescriptionBtn {
  left: 0;
}

#insertCopyrightBtn {
  right: 0;
}

.description-morph-save, .description-morph-close {
  display: none;
}

.description-input-row:focus-within {
  right: 0;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 18px 65px rgba(0,0,0,0.62),
    0 0 0 9999px rgba(0,0,0,0.42),
    0 0 0 3px rgba(110,231,183,0.22);
  z-index: 9999;
}

.description-input-row:focus-within #descriptionInput {
  min-height: 4.25rem;
  height: 4.25rem;
  padding: 0.72rem 0.95rem;
  font-size: var(--text-lg);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.25;
  border: 3px solid #111111;
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
  box-shadow: none;
  overflow-y: auto;
  position: relative;
  z-index: 10000;
}

.description-input-row:focus-within .description-side-btn {
  position: static;
  height: 4.25rem;
  min-height: 4.25rem;
  min-width: 4.25rem;
  border-radius: 10px;
  font-size: var(--text-xl);
}

.description-input-row:focus-within .description-morph-save, .description-input-row:focus-within .description-morph-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 4.25rem;
  border: 0;
  border-radius: 12px;
  font-family: var(--font-head);
  font-size: var(--text-lg);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.description-input-row:focus-within .description-morph-save {
  padding: 0 1.35rem;
  background: #45ad55;
  color: #ffffff;
}

.description-input-row:focus-within .description-morph-save:hover, .description-input-row:focus-within .description-morph-save:focus-visible {
  filter: brightness(1.06);
  outline: none;
}

.description-input-row:focus-within .description-morph-close {
  width: 4.25rem;
  background: #2d3e56;
  color: #ffffff;
  font-size: var(--text-2xl);
}

.description-input-row:focus-within .description-morph-close:hover, .description-input-row:focus-within .description-morph-close:focus-visible {
  background: #1f2d40;
  outline: none;
}

.geo-action-btn.lens {
  padding: 7px;
  min-width: 5.4rem;
  background: #3d78ad;
  color: #ffffff;
}

@media (max-width: 760px) {
  .description-input-row:focus-within {
    width: calc(100vw - 1rem);
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
  }

  .description-input-row:focus-within #descriptionInput {
    grid-column: 1 / -1;
    order: 2;
    min-height: 7rem;
    height: 7rem;
  }

  .description-input-row:focus-within #restoreDescriptionBtn {
    order: 1;
  }

  .description-input-row:focus-within #insertCopyrightBtn {
    order: 1;
  }

  .description-input-row:focus-within .description-morph-save {
    order: 3;
    grid-column: 1 / 3;
  }

  .description-input-row:focus-within .description-morph-close {
    order: 3;
    grid-column: 3 / 4;
  }

}

.description-input-row, .description-input-row:focus-within {
  display: none !important;
}


.description-display-input {
  width: 100%;
  min-width: 0;
  height: 1.7rem;
  padding: 0.28rem 0.5rem;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.18);
  background: #ffffff;
  color: #111827;
  font-family: var(--font-head);
  font-size: var(--text-sm);
  line-height: 1.15;
  text-align: left;
  cursor: text;
  overflow: hidden;
}

.description-display-input span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.description-display-input:hover, .description-display-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.description-side-btn.compact {
  position: static !important;
  height: 1.7rem;
  min-height: 1.7rem;
  min-width: 2rem;
  padding: 0 0.42rem;
  border-radius: 5px;
  background: #3d78ad;
  color: #fff;
}


.description-dialog-textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}


.description-dialog-save {
  background: #45ad55;
  color: #ffffff;
}

.description-dialog-cancel {
  background: #2d3e56;
  color: #ffffff;
}

@media (max-width: 760px) {
  .description-dialog-footer {
    flex-direction: column;
  }

}

.description-dialog {
  width: min(620px, calc(100vw - 1.2rem));
  max-width: 620px;
  margin: 0;
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: transparent;
  color: #111827;
  z-index: 99999;
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
}

.description-dialog[open] {
  display: block;
}

.description-dialog::backdrop {
  background: rgba(0,0,0,0.28);
}

.description-dialog-box {
  display: grid;
  gap: 0.55rem;
  padding: 0.65rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 12px 34px rgba(0,0,0,0.42);
  border: 2px solid rgba(110,231,183,0.35);
}

.description-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #111827;
  font-family: var(--font-head);
  cursor: move;
  user-select: none;
  font-size: var(--text-base);
  padding: 0.1rem 0.15rem 0.2rem;
}

.description-dialog-head strong::before {
  content: "↕ ";
  color: #3d78ad;
  font-weight: 900;
}

.description-dialog-close {
  border: 0;
  background: #2d3e56;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9px;
  font-size: var(--text-xl);
}

.description-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.description-dialog-tool {
  border: 0;
  background: #3d78ad;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  font-size: var(--text-sm);
  padding: 0.38rem 0.65rem;
}

.description-dialog-textarea {
  width: 100%;
  resize: vertical;
  background: #ffffff;
  color: #111111;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  box-sizing: border-box;
  min-height: 5.7rem;
  max-height: 32vh;
  padding: 0.55rem 0.7rem;
  border: 2px solid #111111;
  border-radius: 10px;
  font-size: var(--text-base);
  line-height: 1.3;
}

.description-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.description-dialog-save, .description-dialog-cancel {
  border: 0;
  font-family: var(--font-head);
  font-weight: 800;
  cursor: pointer;
  min-height: 2.35rem;
  border-radius: 10px;
  font-size: var(--text-sm);
  padding: 0 0.95rem;
}

.description-dialog.is-dragging {
  opacity: 0.94;
}

@media (max-width: 760px) {
  .description-dialog {
    width: calc(100vw - 0.8rem);
    max-width: none;
    left: 0.4rem;
    top: 0.8rem;
    transform: none;
  }

  .description-dialog-head {
    font-size: var(--text-sm);
  }

  .description-dialog-textarea {
    min-height: 7rem;
  }

}

.description-compact-row {
  display: grid;
  gap: 0.35rem;
  align-items: stretch;
  width: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.description-side-btn.lens {
  background: #3d78ad;
  color: #ffffff;
}

.description-side-btn.lens:hover, .description-side-btn.lens:focus-visible {
  background: #6c7288;
}

.description-dialog-tool.lens {
  background: #45ad55;
  color: #ffffff;
}

.description-dialog-tool.lens:hover, .description-dialog-tool.lens:focus-visible {
  filter: brightness(1.06);
  outline: none;
}

@media (max-width: 760px) {
  .description-compact-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

}

/* =====================================================
   Version 0.1.35 – Geo-Editor-Buttons: Flex ohne Hintergrund
===================================================== */
.geo-editor-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0;
  background: transparent;
}

.geo-editor-actions .geo-action-btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.geo-editor-actions .geo-action-btn.clear {
  flex: 0 0 auto;
  min-width: 6.5rem;
}

@media (max-width: 760px) {
  .geo-editor-actions {
    flex-wrap: wrap;
  }

  .geo-editor-actions .geo-action-btn {
    flex: 1 1 100%;
  }

  .geo-editor-actions .geo-action-btn.clear {
    flex-basis: 100%;
    min-width: 0;
  }
}

/* =====================================================
   Version 0.1.41 – Panoramax-Upload ohne Token deaktiviert
===================================================== */
#panoramaxUploadBtn:disabled,
#panoramaxUploadBtn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.45);
  border-color: rgba(255,255,255,0.18);
}

#panoramaxUploadBtn:disabled:hover,
#panoramaxUploadBtn.is-disabled:hover {
  transform: none;
  box-shadow: none;
}



/* =====================================================
   Version 0.1.44 – Metadaten: Beschreibung anzeigen
===================================================== */
.meta-description-value {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  text-align: right;
}


/* =====================================================
   Version 0.1.53 – Link zum Video-Frame-Extractor
===================================================== */
.video-frame-tool-link,
.video-frame-tool-toplink .geo-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.video-frame-tool-toplink {
  padding: 0.75rem;
  text-align: center;
}

.geo-action-btn.secondary.video-frame-tool-link {
  background: #eef4ff;
  color: #173b6d;
  border: 1px solid #b7c9e8;
}


/* =====================================================
   Version 0.1.54 – integrierter Video-Frame-Extractor
===================================================== */
.video-source-box {
  margin-top: 0.75rem;
  border: 1px solid #b7c9e8;
  background: #eef4ff;
  color: #173b6d;
  border-radius: 12px;
  padding: 0.75rem;
}

.video-source-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.video-source-name {
  font-size: var(--text-sm, 0.875rem);
  overflow-wrap: anywhere;
  margin-bottom: 0.6rem;
}

.video-frame-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(9, 18, 32, 0.54);
  padding: 1.25rem;
  overflow: auto;
}

.video-frame-dialog {
  width: min(1120px, 96vw);
  margin: 2vh auto;
  background: #ffffff;
  color: #102033;
  border-radius: 16px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.32);
  border: 1px solid #ccd8ea;
  overflow: hidden;
}

.video-frame-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: #eef4ff;
  border-bottom: 1px solid #ccd8ea;
}

.video-frame-subtitle {
  font-size: var(--text-sm, 0.875rem);
  color: #52657c;
  margin-top: 0.25rem;
}

.video-frame-close {
  border: 0;
  background: #fff;
  color: #333;
  border-radius: 9px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-weight: 700;
}

.video-frame-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 360px;
  gap: 1rem;
  padding: 1rem;
}

.video-frame-preview video {
  width: 100%;
  max-height: 58vh;
  background: #000;
  border-radius: 12px;
  display: block;
}

.video-frame-info {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--text-sm, 0.875rem);
  color: #52657c;
  margin-top: 0.5rem;
}

.video-frame-settings {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-frame-settings label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-weight: 700;
  font-size: var(--text-sm, 0.875rem);
}

.video-frame-settings input,
.video-frame-settings textarea {
  font: inherit;
  font-weight: 400;
  border: 1px solid #b7c9e8;
  border-radius: 9px;
  padding: 0.48rem 0.6rem;
  background: #fff;
  color: #111;
}

.video-frame-current {
  font-size: var(--text-sm, 0.875rem);
  background: #f7f9fc;
  border: 1px solid #dce5f2;
  border-radius: 10px;
  padding: 0.65rem;
  display: grid;
  gap: 0.25rem;
}

.video-frame-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.video-frame-progress {
  min-height: 1.4rem;
  font-size: var(--text-sm, 0.875rem);
  color: #52657c;
}

.video-frame-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.6rem;
  max-height: 210px;
  overflow: auto;
  padding: 0 1rem 1rem;
}

.video-frame-strip img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #dce5f2;
  background: #f7f9fc;
}

@media (max-width: 820px) {
  .video-frame-grid {
    grid-template-columns: 1fr;
  }
}


.video-frame-series-hint {
  font-size: var(--text-sm, 0.875rem);
  background: #fff7df;
  border: 1px solid #f2d279;
  color: #5d4700;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  line-height: 1.35;
}


/* =====================================================
   Version 0.1.56 – Video-Dateiname oben / GPS später erlaubt
===================================================== */
.video-source-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.video-source-topline .video-source-title {
  margin-bottom: 0;
  flex: 0 0 auto;
}

.video-source-topline .video-source-name {
  margin-bottom: 0;
  text-align: right;
  color: #173b6d;
  font-weight: 700;
  max-width: 68%;
  overflow-wrap: anywhere;
}

.video-frame-title-name {
  display: inline-block;
  margin-left: 0.6rem;
  color: #173b6d;
  font-size: var(--text-base, 1rem);
  font-weight: 700;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .video-source-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .video-source-topline .video-source-name {
    text-align: left;
    max-width: 100%;
  }

  .video-frame-title-name {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
  }
}


/* =====================================================
   Version 0.1.57 – deaktivierte Video-Frame-Buttons
===================================================== */
.video-frame-actions .geo-action-btn:disabled,
.video-frame-actions .geo-action-btn[disabled] {
  opacity: 0.38;
  filter: grayscale(1);
  cursor: not-allowed;
  box-shadow: none;
}


/* =====================================================
   Version 0.1.58 – Video-Frames auslassen / Beschreibung nach links
===================================================== */
.video-frame-left-status {
  grid-column: 1 / 2;
  margin: 0 1rem 0.55rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #dce5f2;
  background: #f7f9fc;
  color: #52657c;
  border-radius: 10px;
  font-size: var(--text-sm, 0.875rem);
}

.video-frame-strip {
  grid-column: 1 / 2;
  margin: 0 1rem 1rem;
  padding: 0.2rem 0.1rem 0.6rem;
  min-height: 54px;
  max-height: 240px;
  background: #ffffff;
  border: 1px dashed #d2ddeb;
  border-radius: 10px;
}

.video-frame-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
}

.video-frame-thumb img {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid #dce5f2;
  background: #f7f9fc;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.video-frame-thumb .video-frame-skip-badge {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #e00000;
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(255,255,255,0.85);
  pointer-events: none;
}

.video-frame-thumb.is-skipped img {
  opacity: 0.32;
  filter: grayscale(1);
}

.video-frame-thumb.is-skipped .video-frame-skip-badge {
  display: flex;
}

@media (max-width: 820px) {
  .video-frame-left-status,
  .video-frame-strip {
    grid-column: 1 / -1;
  }
}


/* =====================================================
   Version 0.1.59 – Beschreibung und Fortschritt nach links
===================================================== */
.video-frame-preview {
  min-width: 0;
}

.video-frame-left-tools {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.video-frame-description-label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-weight: 700;
  font-size: var(--text-sm, 0.875rem);
  color: #102033;
}

.video-frame-description-label textarea {
  width: 100%;
  min-height: 4.2rem;
  resize: vertical;
  font: inherit;
  font-weight: 400;
  border: 1px solid #b7c9e8;
  border-radius: 9px;
  padding: 0.48rem 0.6rem;
  background: #fff;
  color: #111;
  box-sizing: border-box;
}

.video-frame-preview .video-frame-series-hint,
.video-frame-preview .video-frame-progress,
.video-frame-preview .video-frame-left-status {
  margin: 0;
}

.video-frame-preview .video-frame-left-status {
  padding: 0.65rem 0.8rem;
  border: 1px solid #dce5f2;
  background: #f7f9fc;
  color: #52657c;
  border-radius: 10px;
  font-size: var(--text-sm, 0.875rem);
}

.video-frame-settings {
  align-self: start;
}

.video-frame-strip {
  margin-top: 0.25rem;
}


/* Version 0.1.59 – alte Positionierung der linken Statusbox überschreiben */
.video-frame-preview .video-frame-left-status {
  grid-column: auto;
  margin: 0;
}


/* =====================================================
   Version 0.1.60 – Geo-Editor-Buttons enger / Upload bereit rot
===================================================== */
.geo-editor-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0;
  background: transparent;
}

.geo-editor-actions .geo-action-btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.geo-editor-actions .geo-action-btn.clear {
  flex: 0 0 auto;
  min-width: 0;
}

#panoramaxUploadBtn.is-ready-to-upload:not(:disabled) {
  color: #ff2b2b;
  border-color: rgba(255, 43, 43, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 43, 43, 0.12);
}



/* =====================================================
   Version 0.1.62 – Panoramax-Upload bereit ohne Zusatztext
===================================================== */
#panoramaxUploadBtn.is-ready-to-upload:not(:disabled) {
  color: #ff2b2b;
  border-color: var(--success);
  box-shadow: 0 0 0 2px rgba(255, 43, 43, 0.12);
}

#panoramaxUploadBtn.is-ready-to-upload:not(:disabled)::after {
  content: none;
}

#panoramaxUploadBtn.is-ready-to-upload:not(:disabled):hover {
  color: #ffffff;
}


/* =====================================================
   Version 0.1.63 – Fotoframeextraktor links kompakt/einzeilig
===================================================== */
.video-frame-left-tools {
  margin-top: 0.55rem;
  gap: 0.38rem;
}

.video-frame-description-label {
  gap: 0.18rem;
}

.video-frame-description-label textarea,
#videoFrameDescription {
  min-height: 2.45rem;
  height: 2.45rem;
  max-height: 2.45rem;
  resize: none;
  overflow-y: auto;
  line-height: 1.35;
  padding: 0.45rem 0.6rem;
}

.video-frame-preview .video-frame-series-hint,
.video-frame-preview .video-frame-progress,
.video-frame-preview .video-frame-left-status,
.video-frame-series-hint,
.video-frame-progress,
.video-frame-left-status {
  min-height: 2.2rem;
  padding: 0.42rem 0.6rem;
  display: flex;
  align-items: center;
  line-height: 1.2;
  font-size: var(--text-sm, 0.875rem);
}

.video-frame-progress {
  color: #52657c;
}

.video-frame-strip {
  margin-top: 0.35rem;
}


/* =====================================================
   Version 0.1.65 – Geo-Editor-Buttons exakt ausrichten
   Ziel:
   - kein Überlaufen am rechten Rand
   - keine versteckten Button-Margins
   - Speichern/Download gleich breit
   - Clear rechts als feste, begrenzte Spalte
===================================================== */
.geo-editor-main,
.geo-editor-fields,
.geo-editor-actions,
.geo-editor-actions .geo-action-btn {
  box-sizing: border-box;
  min-width: 0;
}

.geo-editor-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(5.9rem, 0.56fr);
  align-items: stretch;
  justify-content: stretch;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  margin: 0.35rem 0 0 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.geo-editor-actions .geo-action-btn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding-left: 0.45rem !important;
  padding-right: 0.45rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.geo-editor-actions .geo-action-btn.clear {
  flex: initial;
  min-width: 5.9rem;
}

@media (max-width: 720px) {
  .geo-editor-actions {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .geo-editor-actions .geo-action-btn.clear {
    min-width: 0;
  }
}


/* =====================================================
   Version 0.1.66 – videoFrameProgress links erzwingen
===================================================== */
.video-frame-left-tools > #videoFrameProgress.video-frame-progress {
  margin: 0;
  min-height: 2.2rem;
  padding: 0.42rem 0.6rem;
  display: flex;
  align-items: center;
  line-height: 1.2;
  font-size: var(--text-sm, 0.875rem);
  color: #52657c;
  border: 1px solid #dce5f2;
  background: #f7f9fc;
  border-radius: 10px;
}

.video-frame-settings > #videoFrameProgress.video-frame-progress {
  display: none !important;
}

/* v0.1.71: Blickrichtung / Drehbereich */
.direction-display {
  margin-top: 0.5rem;
}
#direction-text {
  font-size: 0.86rem;
  line-height: 1.35;
}
.leaflet-interactive {
  cursor: crosshair;
}


/* =====================================================
   Version 0.1.72 – Höhe und klickbarer Richtungskreis
===================================================== */
.altitude-display .coords-value {
  color: var(--muted);
}

.leaflet-interactive {
  cursor: crosshair;
}


/* =====================================================
   Version 0.1.73 – roter Drehrichtungspfeil am Kreisbogen
===================================================== */
.direction-arc-arrow-icon {
  background: transparent;
  border: 0;
}

.direction-arc-arrow-svg {
  display: block;
  width: 30px;
  height: 30px;
  overflow: visible;
  transform-origin: 15px 15px;
}

.direction-arc-arrow-shadow {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4;
  stroke-linejoin: round;
  opacity: 0.9;
}

.direction-arc-arrow-fill {
  fill: #d60000;
  stroke: #d60000;
  stroke-width: 1.5;
  stroke-linejoin: round;
}




/* v0.1.79: Header-Logo links, Titel/Subtext rechts */
.brand-block {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 0.5rem;
}

.brand-block span {
  font-size: 3.5rem;
  line-height: 1.2;
  flex: 0 0 auto;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: flex-end;
}

.brand-title-link {
  display: inline-flex;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-title-link h1 {
  margin: 0;
}

.brand-block p {
  margin: 0 0 0.18rem 0;
  min-width: 0;
}



/* v0.1.83: gespeicherter Token nicht als Passwortfeld behandeln */
#panoramaxTokenInput.is-token-stored,
#panoramaxTokenInput:disabled.is-token-stored {
  opacity: 0.68;
  color: var(--muted);
  background: rgba(31, 34, 49, 0.72);
  cursor: not-allowed;
  -webkit-text-security: none;
}



/* v0.1.91: Hinweis, wenn Ortseintrag keine eigene Koordinate hat */
.location-search-result .suggestion-place {
  flex: 1 1 auto;
}

.location-search-result .suggestion-coord-hint {
  margin-left: auto;
  font-size: 0.78rem;
  color: #9a6b00;
  background: rgba(255, 210, 77, 0.22);
  border: 1px solid rgba(255, 210, 77, 0.45);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}


/* v0.1.109: Metadaten-Hinweise sauber als zweite Button-Reihe unter Fortbewegungsart */
#transport-section .metadata-quality-wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(8.8rem, 13.5rem));
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  margin: 1.05rem auto 0;
  width: min(100%, 46rem);
  border: 0;
  overflow: visible;
}

#transport-section button.metadata-quality-button {
  all: unset;
  box-sizing: border-box;
  min-height: 6.2rem;
  padding: 0.55rem 0.65rem 0.62rem;
  border: 1px solid #0a1f69;
  border-radius: 8px;
  background: linear-gradient(180deg, #4d83bc 0%, #34679d 100%);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 3px 8px rgba(0,0,0,0.18);
}

#transport-section button.metadata-quality-button img,
#transport-section button.metadata-quality-button svg {
  width: 3.1rem !important;
  height: 3.1rem !important;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

#transport-section button.metadata-quality-button span {
  display: block;
  color: #ffffff;
  font-size: var(--text-xs);
  line-height: 1.15;
  font-weight: 700;
  white-space: normal;
  text-shadow: 0 1px 1px rgba(0,0,0,0.35);
}

#transport-section button.metadata-quality-button:hover,
#transport-section button.metadata-quality-button:focus-visible {
  background: linear-gradient(180deg, #5d90c8 0%, #3c73ad 100%);
  outline: 2px solid rgba(141, 255, 195, 0.55);
  outline-offset: 2px;
}

#transport-section button.metadata-quality-button.button-selected,
#transport-section button.metadata-quality-button[aria-pressed="true"] {
  background: linear-gradient(180deg, #6c7288 0%, #555b70 100%);
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22), 0 3px 8px rgba(0,0,0,0.2);
}

@media (max-width: 760px) {
  #transport-section .metadata-quality-wrapper {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 0.65rem;
  }

  #transport-section button.metadata-quality-button {
    min-height: 4.8rem;
    flex-direction: row;
    justify-content: flex-start;
    padding-inline: 0.9rem;
  }

  #transport-section button.metadata-quality-button img,
  #transport-section button.metadata-quality-button svg {
    width: 2.6rem !important;
    height: 2.6rem !important;
  }
}

/* v0.1.110: Notbremse gegen natives Button-Layout/Cache-Reste bei Metadaten-Hinweisen */
#transport-section .metadata-quality-wrapper,
.entry-transport-editor .metadata-quality-wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(8.8rem, 13.5rem)) !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 1rem !important;
  margin: 1.05rem auto 0 !important;
  width: min(100%, 46rem) !important;
  overflow: visible !important;
}

#transport-section .metadata-quality-button,
.entry-transport-editor .metadata-quality-button,
button.metadata-quality-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  min-height: 6.2rem !important;
  padding: 0.55rem 0.65rem 0.62rem !important;
  border: 1px solid #0a1f69 !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #4d83bc 0%, #34679d 100%) !important;
  color: #ffffff !important;
  font: 700 var(--text-xs)/1.15 Arial, Helvetica, sans-serif !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  text-align: center !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 3px 8px rgba(0,0,0,0.18) !important;
  overflow: hidden !important;
}

#transport-section .metadata-quality-button img,
.entry-transport-editor .metadata-quality-button img,
button.metadata-quality-button img {
  width: 3.1rem !important;
  height: 3.1rem !important;
  max-width: 3.1rem !important;
  max-height: 3.1rem !important;
  object-fit: contain !important;
  display: block !important;
  flex: 0 0 auto !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

#transport-section .metadata-quality-button span,
.entry-transport-editor .metadata-quality-button span,
button.metadata-quality-button span {
  display: block !important;
  color: #ffffff !important;
  font: 700 var(--text-xs)/1.15 Arial, Helvetica, sans-serif !important;
  text-align: center !important;
  white-space: normal !important;
  text-shadow: 0 1px 1px rgba(0,0,0,0.35) !important;
}

#transport-section .metadata-quality-button.button-selected,
#transport-section .metadata-quality-button[aria-pressed="true"],
.entry-transport-editor .metadata-quality-button.button-selected,
.entry-transport-editor .metadata-quality-button[aria-pressed="true"] {
  background: linear-gradient(180deg, #6c7288 0%, #555b70 100%) !important;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.22), 0 3px 8px rgba(0,0,0,0.2) !important;
}


/* v0.1.132: sichtbares Upload-Overlay für Panoramax */
.panoramax-upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 9, 18, 0.72);
  backdrop-filter: blur(4px);
}

.panoramax-upload-overlay.is-visible {
  display: flex;
}

.panoramax-upload-overlay-card {
  width: min(92vw, 32rem);
  border: 1px solid rgba(132, 151, 190, 0.42);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(28, 31, 45, 0.98), rgba(17, 20, 33, 0.98));
  box-shadow: 0 1.4rem 4rem rgba(0,0,0,0.48);
  padding: 1.6rem;
  text-align: center;
  color: #e9edf7;
}

.panoramax-upload-hourglass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: rgba(79, 131, 188, 0.22);
  font-size: 2.4rem;
  animation: panoramaxHourglassSpin 1.15s linear infinite;
}

.panoramax-upload-overlay-title {
  font: 800 clamp(1.25rem, 3vw, 1.7rem)/1.2 Arial, Helvetica, sans-serif;
  color: #8dffc3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.panoramax-upload-overlay-detail {
  margin-top: 0.45rem;
  color: #a8b4cd;
  font-size: 1rem;
  line-height: 1.35;
}

.panoramax-upload-progress {
  position: relative;
  overflow: hidden;
  height: 1rem;
  margin-top: 1.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.45);
}

.panoramax-upload-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4d83bc, #8dffc3);
  transition: width 0.35s ease;
}

.panoramax-upload-progress-bar.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: panoramaxProgressSweep 1.1s ease-in-out infinite;
}

@keyframes panoramaxHourglassSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes panoramaxProgressSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}


/* v0.1.132: Drehbereich-Steuerung im Fotoframeextraktor */
.video-frame-arc-tools {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.05);
}
.video-frame-arc-tools label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.video-frame-arc-tools select {
  width: 100%;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
  color: #0f172a;
}
.video-frame-arc-preview {
  font-size: 0.88rem;
  line-height: 1.35;
  color: #334155;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 8px 10px;
}


/* v0.1.132: Karte + Kompass direkt im Fotoframeextraktor
   Weniger Elemente: EIN Leaflet-Kreis ist Kompassring und Zieh-Radius. */
.video-frame-mini-map-wrap {
  position: relative;
  min-height: 220px;
  border: 1px solid rgba(15, 23, 42, 0.28);
  border-radius: 12px;
  overflow: hidden;
  background: #eef2e4;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.65);
}

.video-frame-mini-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.video-frame-mini-map .leaflet-control-attribution {
  font-size: 10px;
}

.video-frame-compass-overlay,
.video-frame-compass-readout,
.video-frame-mini-map-help {
  display: none !important;
}

.video-frame-compass-label {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  color: rgba(220, 38, 38, 0.78);
  text-shadow: 0 1px 0 rgba(255,255,255,0.95), 0 0 6px rgba(255,255,255,0.75);
  pointer-events: none;
}

.video-frame-start-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.65), 0 3px 8px rgba(0,0,0,0.22);
}

.video-frame-arrow-label {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 2px solid #f87171;
  background: rgba(31,41,55,0.94);
  color: #fca5a5;
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(0,0,0,0.28);
}

.video-frame-arrowhead {
  color: #b91c1c;
  font-size: 30px;
  line-height: 30px;
  text-shadow: 0 0 2px #fff, 0 3px 8px rgba(0,0,0,0.35);
}


.video-frame-target-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 5px solid #dc2626;
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.96), 0 4px 12px rgba(0,0,0,0.34);
  cursor: grab;
}
.video-frame-target-icon:hover {
  box-shadow: 0 0 0 4px rgba(255,255,255,1), 0 0 0 8px rgba(220,38,38,0.28), 0 4px 12px rgba(0,0,0,0.34);
}


.video-frame-start-point-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 4px solid #facc15;
  background: #fde047;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 4px 10px rgba(0,0,0,0.22);
}
