html, body, #map { height:100%; width:100%; margin:0; font-family:Inter,Arial,sans-serif; }
body { overflow:hidden; background:#071426; }

/* Make Leaflet raster tiles render as true 256px tiles and avoid browser-side seams. */
.leaflet-tile { width:256px !important; height:256px !important; }
.leaflet-container { background:#071426; }

.topbar {
  position:fixed; z-index:1000; top:10px; left:10px;
  display:flex; gap:6px; align-items:center;
  background:rgba(255,255,255,.96); padding:5px; border-radius:7px;
  box-shadow:0 2px 12px rgba(0,0,0,.25);
}
.topbar button {
  border:0; background:#eef1f5; padding:8px 11px; border-radius:5px;
  cursor:pointer; color:#233044; font-weight:600;
}
.topbar button.active { background:#3b82f6; color:#fff; }
.brand { padding:0 10px; color:#172033; }
.brand span { color:#667085; margin-left:7px; font-size:12px; }

.panel {
  position:fixed; z-index:1000; right:12px; top:10px; width:285px;
  max-height:calc(100vh - 80px); overflow:auto;
  background:rgba(255,255,255,.97); border-radius:8px;
  box-shadow:0 3px 18px rgba(0,0,0,.28); padding:14px;
}
.panel-title { font-size:17px; font-weight:800; display:flex; justify-content:space-between; }
.panel-title button { border:0; background:none; font-size:22px; color:#667085; cursor:pointer; }
.coords { margin-top:9px; font-family:ui-monospace,monospace; font-size:13px; }
.muted { color:#667085; margin-top:5px; font-size:12px; }
.section { border-top:1px solid #e5e7eb; margin-top:13px; padding-top:12px; }
.section-title { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:#667085; font-weight:800; }
label { font-size:12px; display:flex; justify-content:space-between; }
input[type=range] { width:100%; margin:10px 0 2px; }
.hint { font-size:10px; color:#8a94a6; }
#best { margin-top:6px; font-size:14px; line-height:1.55; }
.sat-list { margin-top:5px; }
.sat {
  padding:7px 0; border-bottom:1px solid #edf0f3; cursor:pointer;
  font-size:12px; display:flex; justify-content:space-between; gap:8px;
}
.sat:hover { background:#f7f9fb; }

.timeline {
  position:fixed; z-index:1000; left:50%; bottom:12px; transform:translateX(-50%);
  display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.97);
  padding:7px 10px; border-radius:7px; box-shadow:0 2px 15px rgba(0,0,0,.25);
}
.timeline button {
  border:0; background:#eef1f5; border-radius:5px; padding:6px 9px;
  cursor:pointer; font-weight:700;
}
.timeline input { width:300px; }

.address-form { display:grid; grid-template-columns:1fr auto; gap:5px; margin-top:9px; }
.address-form input { box-sizing:border-box; width:100%; border:1px solid #d0d5dd; border-radius:5px; padding:7px; font-size:12px; }
.address-form button { border:0; border-radius:5px; padding:7px 12px; background:#2563eb; color:#fff; font-weight:700; cursor:pointer; }
.address-form button:disabled { opacity:.6; cursor:wait; }
.addr-results { margin-top:6px; border:1px solid #d0d5dd; border-radius:5px; overflow:hidden; }
.addr-results button { display:block; width:100%; text-align:left; border:0; border-bottom:1px solid #eef0f3; background:#fff; padding:7px 8px; font-size:12px; line-height:1.3; color:#1d2939; cursor:pointer; }
.addr-results button:last-child { border-bottom:0; }
.addr-results button:hover { background:#eff4ff; }
#addrInfo.err { color:#b42318; }
.position-form { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin-top:9px; }
.position-form input { box-sizing:border-box; width:100%; border:1px solid #d0d5dd; border-radius:5px; padding:7px; font-size:12px; }
.position-form button { grid-column:1 / -1; border:0; border-radius:5px; padding:7px; background:#2563eb; color:#fff; font-weight:700; cursor:pointer; }

.map-error {
  position:fixed; z-index:1100; left:50%; top:55px; transform:translateX(-50%);
  max-width:min(700px,calc(100vw - 30px)); padding:8px 12px; border-radius:6px;
  background:#fff3cd; color:#664d03; box-shadow:0 2px 10px rgba(0,0,0,.2); font-size:12px;
}

/* SVG circle markers are used instead of emoji/HTML markers so the symbols are
   identical on Linux, Windows and mobile browsers. */
.leaflet-interactive { vector-effect: non-scaling-stroke; }

/* Observer flag and satellite icons */
.observer-flag-wrap, .sat-icon-wrap { background:transparent; border:0; }
.observer-flag { position:relative; width:32px; height:40px; filter:drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.flag-pole { position:absolute; left:7px; top:1px; width:3px; height:36px; border-radius:2px; background:#f8fafc; box-shadow:0 0 0 1px rgba(0,0,0,.25); }
.flag-cloth { position:absolute; left:9px; top:2px; width:21px; height:14px; background:#ef4444; clip-path:polygon(0 0,100% 0,78% 50%,100% 100%,0 100%); border:1px solid rgba(255,255,255,.85); box-sizing:border-box; }
.flag-cloth:after { content:''; position:absolute; left:4px; top:3px; width:7px; height:7px; border-radius:50%; background:#fff; opacity:.95; }
.sat-icon { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; color:#12c7ff; background:rgba(3,25,51,.92); border:2px solid rgba(70,211,255,.8); box-shadow:0 0 14px rgba(18,199,255,.45); }
.sat-icon svg { width:27px; height:27px; }
.sat-list-icon { display:flex; align-items:center; gap:8px; min-width:0; }
.mini-sat { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:#e8f8ff; color:#159bd0; font-size:15px; flex:0 0 auto; }
.refresh-section select { width:100%; margin-top:7px; box-sizing:border-box; border:1px solid #d0d5dd; border-radius:5px; padding:7px; background:#fff; color:#233044; font-size:12px; }


/* Satellite visibility / connection state */
.sat-icon.not-connected { opacity:.38; filter:grayscale(.7); box-shadow:none; }
.sat-icon.connected { opacity:1; }
.map-connected { color:#079455; font-weight:700; }
.map-disconnected { color:#98a2b3; }
.sat.is-disconnected { opacity:.65; }
.sat-state { text-align:right; white-space:nowrap; }
.sat-state small { color:#98a2b3; font-size:9px; }
.mini-sat.disconnected { opacity:.45; filter:grayscale(1); }


/* Robust satellite SVG markers: no external image/CDN dependency. */
.satellite-map-icon {
  background:transparent !important;
  border:0 !important;
}



.satellite-div-icon{background:transparent!important;border:0!important;overflow:visible!important;}
/* Satellite coverage footprints are rendered as Leaflet circles in coveragePane. */

.map-warn{color:#b54708;font-weight:700}

/* 3D globe view (globe.gl) */
#globe{position:absolute;inset:0;z-index:500;background:#030712;overflow:hidden}
#globe[hidden]{display:none}
#globe canvas{display:block}
.globe-error{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:2000;background:rgba(8,15,28,.96);border:1px solid rgba(255,255,255,.2);border-radius:8px;color:#e7eef7;padding:18px 22px;text-align:center;box-shadow:0 8px 30px rgba(0,0,0,.35)}

/* HTML-Marker im Globus: Satelliten und Standort */
.gmark{position:relative;width:0;height:0}
.gmark-sat{pointer-events:auto;cursor:pointer}
.gmark-sat svg{position:absolute;left:-13px;top:-13px;width:26px;height:26px;overflow:visible;filter:drop-shadow(0 0 3px rgba(0,0,0,.95))}
.gmark-sat .gs-body{fill:#aeb9c7;stroke:#07111b;stroke-width:1.6}
.gmark-sat .gs-panel{fill:#5f6d7e;stroke:#07111b;stroke-width:1.3}
.gmark-sat .gs-ant{fill:none;stroke:#aeb9c7;stroke-width:2;stroke-linecap:round}
.gmark-sat.connected .gs-body{fill:#12c7ff}
.gmark-sat.connected .gs-panel{fill:#0b86b3}
.gmark-sat.connected .gs-ant{stroke:#12c7ff}
.gmark-sat.connected svg{filter:drop-shadow(0 0 5px rgba(18,199,255,.95))}
.gmark-sat.selected svg{filter:drop-shadow(0 0 6px #ffd166) drop-shadow(0 0 2px #ffd166)}
.gmark-sat:hover svg{transform:scale(1.35)}
.gmark-observer{pointer-events:none}
.gmark-observer-dot{position:absolute;left:-10px;top:-10px;width:20px;height:20px;border-radius:50%;background:#ff3b30;border:3px solid #fff;box-sizing:border-box;box-shadow:0 0 12px rgba(255,59,48,.95)}

/* Reserve-Satelliten im Globus */
.gmark-sat.spare svg{width:20px;height:20px;left:-10px;top:-10px;opacity:.45;filter:grayscale(1) drop-shadow(0 0 2px rgba(0,0,0,.8))}
.gmark-sat.spare .gs-body{fill:#6b7686}
.gmark-sat.spare .gs-panel{fill:#4a5464}
.gmark-sat.spare .gs-ant{stroke:#6b7686}

/* 2D-Satellitensymbol: Satellit in Scheibe + Nummer */
.sat2d{position:relative;width:34px;height:34px;cursor:pointer;filter:drop-shadow(0 2px 3px rgba(0,0,0,.55))}
.sat2d svg{display:block;overflow:visible}
.s2-halo{fill:rgba(9,20,36,.88);stroke:#8b98a8;stroke-width:1.6}
.s2-panel{fill:#5d7086;stroke:#0b1626;stroke-width:1}
.s2-grid{fill:none;stroke:rgba(255,255,255,.38);stroke-width:.8}
.s2-boom{fill:#0b1626}
.s2-body{fill:#aab8c9;stroke:#0b1626;stroke-width:1.3}
.s2-dish{fill:#0b1626}
.s2-pulse{display:none;fill:none;stroke:#12c7ff;stroke-width:1.5;transform-box:fill-box;transform-origin:center}
.sat2d-num{position:absolute;left:50%;top:100%;transform:translateX(-50%);margin-top:1px;padding:0 6px;border-radius:9px;
  background:rgba(8,15,28,.88);border:1px solid rgba(255,255,255,.2);color:#e8eef6;
  font:700 11px/16px Inter,Arial,sans-serif;letter-spacing:.02em;white-space:nowrap}

.sat2d.connected{filter:drop-shadow(0 0 6px rgba(18,199,255,.85)) drop-shadow(0 2px 3px rgba(0,0,0,.5))}
.sat2d.connected .s2-halo{fill:rgba(6,42,70,.94);stroke:#12c7ff;stroke-width:2.2}
.sat2d.connected .s2-panel{fill:#0b86b3}
.sat2d.connected .s2-body{fill:#12c7ff}
.sat2d.connected .sat2d-num{background:#0b6f96;border-color:#12c7ff;color:#fff}
.sat2d.connected .s2-pulse{display:block;animation:s2pulse 2.2s ease-out infinite}
@keyframes s2pulse{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.55);opacity:0}}

.sat2d.idle{opacity:.92}
.sat2d.idle .s2-body{fill:#9fb0c3}

/* Reserve: kleiner, blass, gestrichelt */
.sat2d.spare{opacity:.6;transform:scale(.8);transform-origin:17px 17px;filter:grayscale(1) drop-shadow(0 1px 2px rgba(0,0,0,.4))}
.sat2d.spare .s2-halo{stroke-dasharray:3 2.5}

/* Legende der Reichweitenkreise */
.lg-swatch{display:inline-block;width:14px;height:10px;border-radius:3px;vertical-align:-1px;margin-right:5px;box-sizing:border-box}
.lg-conn{background:rgba(34,197,94,.35);border:2px solid #15803d}
.lg-idle{border:1px dashed #8b98a8}
.lg-idle-row[hidden]{display:none}

/* Die Canvas-Zeichenflaeche des Standort-Rings liegt in einer Pane ueber den Satelliten (z-index 650 > 640)
   und faengt sonst alle Mausereignisse ab: Hover-Tooltips und Klick auf Satelliten gingen verloren. */
.leaflet-observer-pane canvas { pointer-events: none; }


/* =====================================================================
   Responsive / Handy
   - App-Leiste: Hoehe wird per JS als --tb-bottom gemessen; Schalter, Legende und Panel richten sich danach.
   - <=700px (Handy Hochformat): Panel als Bottom-Sheet, Leiste zweizeilig, grosse Touch-Ziele, Eingaben 16px (kein iOS-Zoom).
   - niedrige Bildschirme (Handy Querformat): Panel als Seitenleiste.
   - OSM-Quellenangabe bleibt sichtbar (Zeitleiste liegt darueber, nicht davor).
   ===================================================================== */
:root { --tb-bottom: 51px; }
.topbar { max-width:calc(100vw - 20px); box-sizing:border-box; overflow-x:auto; scrollbar-width:none; }
.topbar::-webkit-scrollbar { display:none; }
.topbar button { white-space:nowrap; flex:0 0 auto; }
.timeline { bottom:calc(24px + env(safe-area-inset-bottom)); }
.panel { display:none; max-height:calc(100vh - 196px); }
.leaflet-bottom.leaflet-right { padding-bottom:env(safe-area-inset-bottom); }
.toast { position:fixed; left:50%; bottom:calc(132px + env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:1200;
  max-width:min(560px, calc(100vw - 24px)); box-sizing:border-box; background:rgba(8,15,28,.96); color:#e8eef6; padding:10px 14px;
  border-radius:8px; font-size:13px; line-height:1.35; text-align:center; box-shadow:0 4px 16px rgba(0,0,0,.35); pointer-events:none; }
.toast[hidden] { display:none; }

/* Mittlere Breiten: App-Leiste reicht sonst unter das Panel */
@media (min-width:701px) and (max-width:1200px) {
  .panel { top:calc(var(--tb-bottom) + 8px); max-height:calc(100vh - var(--tb-bottom) - 8px - 190px); }
}

/* Handy Querformat: Panel als Seitenleiste, standardmaessig zu */
@media (min-width:701px) and (max-height:500px) {
  .panel { display:none; z-index:1050; top:calc(var(--tb-bottom) + 6px); bottom:8px; max-height:none; width:min(300px, 45vw); overscroll-behavior:contain; }
  .topbar button { min-height:34px; padding:6px 10px; }
  .timeline button { min-height:34px; }
}

/* Touch-Geraete (Handy, Tablet, Hoch- und Querformat): grosse Ziele, 16px-Eingaben (kein iOS-Zoom) */
@media (pointer:coarse) {
  .topbar button { min-height:40px; }
  .timeline button { min-height:40px; min-width:40px; }
  .panel-title button { min-width:44px; min-height:44px; font-size:28px; }
  .address-form input, .position-form input, .refresh-section select { font-size:16px; min-height:44px; padding:8px 10px; }
  .address-form button, .position-form button { min-height:44px; font-size:15px; }
  .addr-results button { padding:11px 10px; font-size:14px; }
  input[type=range] { min-height:32px; }
  .sat { padding:10px 0; }
  .leaflet-control-zoom a { width:40px !important; height:40px !important; line-height:40px !important; font-size:22px; }
  }

/* Handy Hochformat */
@media (max-width:700px) {
  .brand { display:none; }
  .topbar { left:8px; right:8px; top:calc(8px + env(safe-area-inset-top)); max-width:none; display:flex;
            gap:6px; padding:6px; overflow:visible; }
  .topbar button { flex:1 1 0; min-height:42px; font-size:14px; padding:8px 4px; }

  .panel { display:none; z-index:1050; background:#fff; left:8px; right:8px; top:auto; bottom:calc(8px + env(safe-area-inset-bottom)); width:auto; box-sizing:border-box;
           max-height:70vh; border-radius:14px; padding:14px; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
  @supports (height:1dvh) { .panel { max-height:70dvh; } }
  .panel-title { font-size:19px; align-items:center; }
  .panel-title button { min-width:44px; min-height:44px; font-size:28px; }
  .coords { font-size:15px; }
  .address-form input, .position-form input, .refresh-section select { font-size:16px; min-height:44px; padding:8px 10px; }
  .address-form button, .position-form button { min-height:44px; font-size:15px; }
  .addr-results button { padding:12px 10px; font-size:14px; }
  .hint { font-size:12px; }
  .muted { font-size:13px; }
  input[type=range] { min-height:32px; }
  .sat { padding:11px 0; font-size:13px; }

  .timeline { left:8px; right:8px; width:auto; transform:none; box-sizing:border-box; padding:6px 8px; gap:6px; }
  .timeline button { min-width:42px; min-height:42px; font-size:16px; padding:6px; }
  .timeline input { flex:1; min-width:0; width:auto; }
  #timeLabel { min-width:46px; text-align:right; font-size:13px; }

    .leaflet-bottom.leaflet-right .leaflet-control-zoom { margin-bottom:72px; }   /* ueber der Zeitleiste; die Quellenangabe bleibt ganz unten sichtbar */
  .leaflet-control-zoom a { width:40px !important; height:40px !important; line-height:40px !important; font-size:22px; }
  .toast { bottom:calc(132px + env(safe-area-inset-bottom)); }
}


/* =====================================================================
   v43: aufgeraeumte Oberflaeche
   Hauptansicht = Karte + schlanke Leiste (Map, Globus, Set position, Settings) + Zeitleiste + kleiner Status.
   Alles andere liegt im Seitenfenster: Set position / Settings / Satellites.
   ===================================================================== */
.topbar button.on { background:#dbe7ff; color:#1d4ed8; }

/* Seitenfenster: je Ansicht nur ein Abschnitt */
.panel[data-view="pos"] .sec-settings, .panel[data-view="pos"] .sec-sats,
.panel[data-view="settings"] .sec-pos, .panel[data-view="settings"] .sec-sats,
.panel[data-view="sats"] .sec-pos, .panel[data-view="sats"] .sec-settings { display:none; }
.sec > .section:first-child { border-top:0; margin-top:6px; padding-top:0; }
.wide-btn { display:block; width:100%; box-sizing:border-box; margin-top:9px; border:1px solid #d0d5dd; border-radius:5px;
  padding:8px; background:#f5f7fa; color:#233044; font-weight:600; font-size:13px; cursor:pointer; }
.wide-btn:hover { background:#eaeef4; }

/* Reichweiten: segmentierte Auswahl */
.seg { display:flex; margin-top:8px; border:1px solid #c5ccd6; border-radius:7px; overflow:hidden; }
.seg button { flex:1; border:0; border-right:1px solid #c5ccd6; background:#fff; padding:8px 4px; font-size:13px; font-weight:600; color:#344054; cursor:pointer; }
.seg button:last-child { border-right:0; }
.seg button.active { background:#2563eb; color:#fff; }
.legend { margin-top:9px; padding:8px 10px; border-radius:6px; background:#f5f7fa; font-size:12px; line-height:1.6; color:#344054; }
.legend[hidden] { display:none; }
.legend .lg-title { font-size:11px; color:#667085; margin-bottom:2px; }

/* Checkbox */
.check { justify-content:flex-start; align-items:flex-start; gap:9px; font-size:13px; cursor:pointer; }
.check input { width:18px; height:18px; margin:1px 0 0; flex:0 0 auto; }
.check small { color:#8a94a6; font-size:11px; }

/* Kleiner Status auf der Karte (oeffnet die Satellitenliste) */
.map-view-info { position:fixed; left:12px; top:calc(var(--tb-bottom) + 8px); z-index:1000; display:flex; align-items:center; gap:8px;
  background:rgba(8,15,28,.92); border:1px solid rgba(255,255,255,.16); border-radius:999px; padding:8px 14px; color:#e8eef6;
  font:600 13px/1 Inter,Arial,sans-serif; cursor:pointer; box-shadow:0 2px 10px rgba(0,0,0,.3); }
.map-view-info::before { content:''; width:9px; height:9px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.25); }
.map-view-info.none::before { background:#8b98a8; box-shadow:none; }
.map-view-info:empty { display:none; }
.map-view-info { white-space:nowrap; max-width:calc(100vw - 16px); overflow:hidden; text-overflow:ellipsis; }
#nextSat { margin-top:6px; font-size:14px; line-height:1.5; }
@media (max-width:400px) { .chip-ops { display:none; } }

/* Weltansicht-Knopf ueber den Zoom-Tasten */
.map-fab { position:fixed; right:10px; bottom:calc(100px + env(safe-area-inset-bottom)); z-index:1000; width:34px; height:34px; display:grid; place-items:center;
  padding:0; border:2px solid rgba(0,0,0,.2); border-radius:4px; background:#fff; color:#233044; cursor:pointer; box-shadow:none; }
.map-fab:hover { background:#f4f4f4; }
@media (pointer:coarse) {
  .map-fab { width:40px; height:40px; bottom:calc(120px + env(safe-area-inset-bottom)); }
  .seg button { min-height:44px; font-size:14px; }
  .wide-btn { min-height:44px; font-size:14px; }
  .check { font-size:14px; }
  .map-view-info { min-height:40px; padding:0 16px; box-sizing:border-box; }
}
@media (max-width:700px) {
  .map-view-info { left:8px; }
  .map-fab { bottom:calc(183px + env(safe-area-inset-bottom)); }
}

/* Sehr schmale Handys (z. B. 320 px): etwas kleinere Schrift, damit "Einstellungen" in die Leiste passt */
@media (max-width:340px) {
  .topbar { gap:4px; padding:5px; }
  .topbar button { font-size:12.5px; padding:8px 2px; }
}


/* =====================================================================
   v49: Uebersicht (Zusammenfassung, Verlauf, Himmelsansicht)
   ===================================================================== */
.summary { padding-bottom: 4px; }
.sum-count { display:flex; align-items:baseline; gap:8px; }
.sum-count b { font-size:38px; line-height:1; color:#111827; }
.sum-count span { font-size:15px; color:#475467; }
.sum-line { margin-top:7px; font-size:14px; line-height:1.4; color:#1d2939; }
.sum-note { color:#b45309; }
.sum-note:empty { display:none; }
.viz svg { display:block; width:100%; height:auto; margin-top:6px; }
.viz text { font-family:Inter,Arial,sans-serif; }

.fc-grid { stroke:#e4e9f0; stroke-width:1; }
.fc-tick { font-size:10px; fill:#7b8798; }
.fc-area { fill:rgba(37,99,235,.13); stroke:none; }
.fc-line { fill:none; stroke:#2563eb; stroke-width:2; stroke-linejoin:round; }
.fc-45 { stroke:#f59e0b; stroke-width:1; opacity:.6; }
.fc-el { fill:none; stroke:#f59e0b; stroke-width:1.5; stroke-dasharray:3 2; stroke-linejoin:round; }
.fc-elabel { font-size:10px; fill:#d97706; }

.sky-horizon { fill:#f5f8ff; stroke:#9aa7bb; stroke-width:1.5; }
.sky-min { fill:rgba(37,99,235,.09); stroke:#2563eb; stroke-width:1; stroke-dasharray:4 3; }
.sky-ring { fill:none; stroke:#cbd5e1; stroke-width:1; }
.sky-axis { stroke:#dbe2ec; stroke-width:1; }
.sky-tick { font-size:9px; fill:#8a94a6; }
.sky-card { font-size:13px; font-weight:700; fill:#344054; }
.sky-trail { fill:none; stroke:#b6c2d4; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.sky-trail.on { stroke:#5b8def; stroke-width:1.8; }
.sky-sat circle { fill:#9aa5b5; stroke:#fff; stroke-width:1.5; }
.sky-sat.on circle { fill:#2563eb; }
.sky-num { font-size:10px; fill:#344054; paint-order:stroke; stroke:#fff; stroke-width:2.5px; stroke-linejoin:round; }


/* =====================================================================
   v51: Verbindungsfenster und Luecken
   ===================================================================== */
.win-controls { display:flex; flex-wrap:wrap; gap:8px 12px; margin:6px 0 8px; }
.win-ctl { display:flex; flex-direction:column; gap:3px; flex:1 1 130px; }
.win-ctl > span { font-size:11px; color:#667085; }
.seg-sm { margin-top:0; }
.seg-sm button { padding:5px 4px; font-size:12px; }
.wb-bg { fill:#eef2f7; }
.wb-win { fill:#34c76b; }
.wb-gap { fill:#f59e0b; }
.wb-tick { stroke:#94a3b8; stroke-width:1; }
.win-list { margin-top:4px; }
.win-row { display:grid; grid-template-columns:62px 1fr auto; gap:4px 8px; align-items:start; padding:6px 0; border-top:1px solid #eef0f3; font-size:12.5px; }
.win-row:first-child { border-top:0; }
.win-tag { display:inline-block; min-width:52px; padding:1px 7px; border-radius:9px; font-size:11px; font-weight:700; text-align:center; }
.win-row.win .win-tag { background:#dcfce7; color:#166534; }
.win-row.gap .win-tag { background:#fef3c7; color:#92400e; }
.win-when { color:#1d2939; }
.win-when small { display:block; margin-top:1px; font-size:11.5px; color:#667085; }
.win-dur { color:#667085; text-align:right; white-space:nowrap; }
@media (pointer:coarse) { .seg-sm button { min-height:40px; font-size:13px; } }


/* =====================================================================
   v52: REST-API-Hinweis (Einstellungen, eingeklappt)
   ===================================================================== */
.api-info summary { cursor:pointer; font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#98a2b3; padding:2px 0; }
.api-info summary:hover, .api-info[open] summary { color:#667085; }
.api-info[open] summary { margin-bottom:6px; }
.api-list { margin-top:6px; }
.api-row { padding:7px 0; border-top:1px solid #eef0f3; }
.api-row:first-child { border-top:0; }
.api-head { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.api-head code, .api-example code { font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; font-size:12px; color:#1d2939; }
.api-actions { display:flex; gap:6px; flex:0 0 auto; }
.api-btn { border:1px solid #d0d5dd; border-radius:5px; background:#f8fafc; color:#344054; font-size:11.5px; font-weight:600; padding:3px 9px; cursor:pointer; text-decoration:none; line-height:1.4; }
.api-btn:hover { background:#eef2f7; }
.api-desc { margin-top:2px; font-size:11.5px; line-height:1.4; color:#667085; }
.api-example { margin-top:8px; padding:7px 9px; border-radius:6px; background:#f5f7fa; }
.api-example code { display:block; margin-top:2px; font-size:11px; word-break:break-all; user-select:all; }
.api-docs { display:inline-block; margin-top:6px; font-size:12px; color:#2563eb; }
@media (pointer:coarse) { .api-btn { min-height:36px; padding:6px 12px; font-size:13px; } .api-info summary { padding:8px 0; font-size:12px; } }
