/* ============================== tokens ============================== */
:root {
  --bg: #070b14;
  --glass: rgb(13 20 36 / .72);
  --glass-strong: rgb(15 23 42 / .92);
  --line: rgb(148 163 184 / .16);
  --line-strong: rgb(148 163 184 / .28);
  --text: #e8eef8;
  --muted: #8b9ab3;
  --accent: #2dd4bf;
  --accent-2: #818cf8;
  --accent-ink: #032b28;
  --warn-bg: rgb(245 158 11 / .14);
  --warn-text: #fcd34d;
  --danger: #f43f5e;
  --ok: #22c55e;
  --card: rgb(255 255 255 / .04);
  --card-hover: rgb(255 255 255 / .08);
  --shadow: 0 10px 40px rgb(0 0 0 / .45);
  --radius: 18px;
  --tiles: invert(1) hue-rotate(185deg) brightness(.92) contrast(.88) saturate(.7);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef2f7;
  --glass: rgb(255 255 255 / .78);
  --glass-strong: rgb(255 255 255 / .95);
  --line: rgb(15 23 42 / .09);
  --line-strong: rgb(15 23 42 / .16);
  --text: #0f172a;
  --muted: #5b6b82;
  --accent: #0d9488;
  --accent-2: #6366f1;
  --accent-ink: #ffffff;
  --warn-bg: #fef3c7;
  --warn-text: #92400e;
  --card: rgb(15 23 42 / .03);
  --card-hover: rgb(15 23 42 / .06);
  --shadow: 0 10px 40px rgb(15 23 42 / .14);
  --tiles: none;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #eef2f7; --glass: rgb(255 255 255 / .78); --glass-strong: rgb(255 255 255 / .95);
    --line: rgb(15 23 42 / .09); --line-strong: rgb(15 23 42 / .16); --text: #0f172a; --muted: #5b6b82;
    --accent: #0d9488; --accent-2: #6366f1; --accent-ink: #fff; --warn-bg: #fef3c7; --warn-text: #92400e;
    --card: rgb(15 23 42 / .03); --card-hover: rgb(15 23 42 / .06); --shadow: 0 10px 40px rgb(15 23 42 / .14);
    --tiles: none; color-scheme: light;
  }
}

/* ============================== basis ============================== */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.error { color: var(--danger); min-height: 1.2em; margin: 8px 0 0; }
b { font-weight: 650; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 18px; letter-spacing: -.02em; }
.brand.big { font-size: 26px; margin-bottom: 28px; }
.logo {
  width: 22px; height: 22px; border-radius: 50%; position: relative; flex: none;
  background: conic-gradient(from 200deg, var(--accent), var(--accent-2), var(--accent));
  -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px 7px, transparent 7.5px 10px, #000 10.5px);
          mask: radial-gradient(circle, transparent 5px, #000 5.5px 7px, transparent 7.5px 10px, #000 10.5px);
}
.logo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 4.5px, transparent 5px); -webkit-mask: none; }
.brand.big .logo { width: 34px; height: 34px; }

select, input[type="text"], input[type="date"] {
  font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 9px 12px; min-width: 0;
  outline: none; transition: border-color .15s;
}
select:focus, input:focus { border-color: var(--accent); }
select option { background: var(--glass-strong); color: var(--text); }
.btn {
  font: inherit; font-weight: 600; color: var(--text); background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 9px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: transform .12s, background .15s, border-color .15s;
}
.btn:hover { background: var(--card-hover); border-color: var(--accent); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: 0; }
.btn.ghost { background: transparent; }
.btn.icon { padding: 9px 13px; }
.row { display: flex; gap: 8px; margin-bottom: 10px; }
.row > select, .row > input { flex: 1; }

/* ============================== koppelen ============================== */
.pair { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; overflow: auto; }
.aurora { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.aurora i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .35;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { background: var(--accent); top: -25vmax; left: -15vmax; }
.aurora i:nth-child(2) { background: var(--accent-2); bottom: -30vmax; right: -20vmax; animation-delay: -7s; }
.aurora i:nth-child(3) { background: #ec4899; top: 30%; left: 45%; width: 35vmax; height: 35vmax; opacity: .18; animation-delay: -14s; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

.pair-card {
  width: min(980px, 100%); display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px;
  padding: 44px; border-radius: 28px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: var(--shadow); animation: rise .6s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.pair h1 { font-size: 30px; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 22px; }
.steps { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.steps span {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-weight: 700; font-size: 14px; color: var(--accent); border: 1.5px solid var(--accent);
}
.trust { display: grid; gap: 10px; margin-bottom: 18px; }
.trust div { padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.trust b { display: block; margin-bottom: 2px; }
.trust span { color: var(--muted); font-size: 13px; }
.alt summary { cursor: pointer; color: var(--muted); font-size: 14px; margin-bottom: 10px; }

.pair-qr { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qr-frame {
  position: relative; width: 300px; max-width: 100%; aspect-ratio: 1; padding: 18px; border-radius: 24px;
  background: #fff; box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgb(45 212 191 / .25);
}
.qr-frame::before {
  content: ""; position: absolute; inset: -3px; border-radius: 27px; z-index: -1;
  background: conic-gradient(from var(--a, 0deg), var(--accent), var(--accent-2), #ec4899, var(--accent));
  animation: spin 6s linear infinite;
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.qr svg { width: 100%; height: 100%; display: block; }
.qr { width: 100%; height: 100%; transition: filter .3s, opacity .3s; }
.qr.blur { filter: blur(6px); opacity: .5; }
.qr-logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 16px; background: #fff; display: grid; place-items: center;
  box-shadow: 0 2px 10px rgb(0 0 0 / .15);
}
.qr-logo .logo { width: 36px; height: 36px; }
.qr-overlay, .qr-done {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 24px;
}
.qr-done { background: rgb(255 255 255 / .94); color: #0f172a; align-content: center; gap: 10px; justify-items: center; }
.qr-done svg { width: 84px; height: 84px; }
.qr-done circle { fill: none; stroke: #22c55e; stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .6s forwards; }
.qr-done path { fill: none; stroke: #22c55e; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .45s forwards; }
.qr-done b { font-size: 20px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.qr-caption { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse-dot 1.6s infinite; }
@keyframes pulse-dot { 50% { opacity: .3; } }

/* ============================== dashboard ============================== */
.app { position: fixed; inset: 0; }
#map { position: absolute; inset: 0; background: var(--bg); }
.leaflet-container { font: inherit; background: var(--bg); }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow) !important; }
.leaflet-control-zoom a { background: var(--glass-strong) !important; color: var(--text) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: var(--glass) !important; color: var(--muted) !important; border-radius: 8px 0 0 0; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--glass-strong); color: var(--text); box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 12px 14px; }
.leaflet-top.leaflet-right { top: 76px; }

.topbar {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1000; height: 56px;
  display: flex; align-items: center; gap: 10px; padding: 0 10px 0 16px; border-radius: 18px;
}
.spacer { flex: 1; }
.conn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); margin-right: 4px; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.conn[data-state="online"] i { background: var(--ok); box-shadow: 0 0 0 0 rgb(34 197 94 / .6); animation: ping 2s infinite; }
.conn[data-state="connecting"] i { background: #f59e0b; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgb(34 197 94 / 0); } 100% { box-shadow: 0 0 0 0 rgb(34 197 94 / 0); } }
.spin-icon { display: inline-block; }
.spinning .spin-icon { animation: rot .9s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.menu {
  position: absolute; right: 8px; top: 62px; border-radius: 14px; padding: 6px; display: grid; min-width: 230px;
  background: var(--glass-strong); animation: rise .15s;
}
.menu button { font: inherit; text-align: left; color: var(--text); background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.menu button:hover { background: var(--card-hover); }
.menu .danger { color: var(--danger); }

.panel {
  position: absolute; z-index: 999; top: 80px; left: 12px; bottom: 12px; width: 380px;
  border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden;
}
.tabs { position: relative; display: flex; padding: 8px 8px 0; gap: 2px; border-bottom: 1px solid var(--line); }
.tabs button {
  flex: 1; font: inherit; font-weight: 650; background: none; border: 0; color: var(--muted);
  padding: 10px 12px 12px; cursor: pointer; transition: color .15s;
}
.tabs button[aria-selected="true"] { color: var(--text); }
.tab-ink {
  position: absolute; bottom: -1px; left: 8px; height: 2px; width: calc(50% - 9px);
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px; transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.tabs[data-tab="history"] .tab-ink { transform: translateX(calc(100% + 2px)); }
.tab { flex: 1; overflow: auto; padding: 14px; scrollbar-width: thin; }
.foot { padding: 10px 16px; border-top: 1px solid var(--line); text-align: center; }

/* leden */
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.member {
  position: relative; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s; animation: rise .35s backwards;
}
.member:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-1px); }
.member .head { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; }
.member .name { font-weight: 650; font-size: 15.5px; }
.member .meta { font-size: 13px; color: var(--muted); }
.member .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--card-hover); color: var(--text); display: inline-flex; gap: 5px; align-items: center; }
.chip.speed { color: #fff; }
.chip.live { color: var(--ok); }
.member .warn { margin-top: 10px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); }
.member.sos { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger), 0 0 30px rgb(244 63 94 / .3); }
.member.stale .avatar { filter: grayscale(.8); opacity: .65; }

.battery { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.battery .cell { width: 26px; height: 12px; border-radius: 3px; border: 1.5px solid currentColor; position: relative; padding: 1px; }
.battery .cell::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
.battery .fill { display: block; height: 100%; border-radius: 1px; background: var(--ok); }
.battery.mid .fill { background: #f59e0b; }
.battery.low .fill { background: var(--danger); }
.battery.low { color: var(--danger); }

.avatar {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; position: relative;
  color: #fff; font-weight: 750; font-size: 16px; border: 3px solid var(--glass-strong);
  box-shadow: 0 4px 14px rgb(0 0 0 / .35);
}

/* kaartmarkers */
.pin { background: none; border: 0; }
.pin .wrap { position: relative; width: 52px; height: 52px; display: grid; place-items: center; }
.pin .avatar { width: 44px; height: 44px; font-size: 15px; border-color: #fff; z-index: 2; }
.pin .pulse { position: absolute; inset: 4px; border-radius: 50%; background: var(--c); opacity: .55; animation: halo 2.2s ease-out infinite; }
@keyframes halo { to { transform: scale(2.2); opacity: 0; } }
.pin .heading { position: absolute; inset: -6px; z-index: 1; transform: rotate(var(--h)); }
.pin .heading::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  border: 7px solid transparent; border-bottom: 11px solid var(--c); border-top: 0;
}
.pin .badge {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap;
  font-size: 11px; font-weight: 750; color: #fff; padding: 2px 7px; border-radius: 999px; box-shadow: 0 2px 6px rgb(0 0 0 / .35);
}
.pin.stale .avatar { filter: grayscale(.85); opacity: .75; }
.pin.sos .avatar { box-shadow: 0 0 0 4px var(--danger), 0 0 24px var(--danger); }
.stay-pin { background: none; border: 0; }
.stay-pin div { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--c); box-shadow: 0 2px 8px rgb(0 0 0 / .4); }
.cursor-pin { background: none; border: 0; }
.cursor-pin div { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 0 0 6px rgb(255 255 255 / .2), 0 2px 10px rgb(0 0 0 / .5); }

/* geschiedenis */
.datebar input { text-align: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; animation: rise .35s backwards; }
.stat b { display: block; font-size: 21px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.hl b { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chart { height: 92px; margin-bottom: 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 8px 8px 4px; position: relative; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .axis { position: absolute; left: 10px; top: 6px; font-size: 11px; color: var(--muted); }
.scrub { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.scrub input { flex: 1; accent-color: var(--accent); }
.play { width: 40px; justify-content: center; }
.readout { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.readout b { color: var(--text); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); border-radius: 2px; }
.timeline li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 10px; padding: 8px 8px 8px 0; border-radius: 12px; cursor: pointer; animation: rise .35s backwards; }
.timeline li:hover { background: var(--card-hover); }
.timeline .ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; z-index: 1; font-size: 16px; background: var(--glass-strong); border: 2px solid var(--line-strong); }
.timeline .move .ico { color: #fff; border: 0; }
.timeline .what { font-weight: 650; }
.timeline .when { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty .big { font-size: 34px; display: block; margin-bottom: 6px; }

.legend { position: absolute; z-index: 998; right: 12px; bottom: 28px; border-radius: 12px; padding: 8px 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.legend i { width: 14px; height: 4px; border-radius: 2px; }

/* modal + toast */
.modal { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgb(0 0 0 / .55); backdrop-filter: blur(4px); padding: 16px; }
.modal .sheet { background: var(--glass-strong); border: 1px solid var(--line); border-radius: 24px; padding: 28px; text-align: center; max-width: 380px; width: 100%; box-shadow: var(--shadow); animation: rise .3s; }
.modal .qr-frame { margin: 18px auto; width: 260px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); z-index: 4000;
  background: var(--glass-strong); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 12px 18px; border-radius: 14px; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.sos { background: var(--danger); color: #fff; font-weight: 700; border: 0; }

/* ============================== mobiel ============================== */
@media (max-width: 820px) {
  .pair-card { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .pair-qr { order: -1; }
  .pair h1 { font-size: 23px; }
  .brand.big { margin-bottom: 16px; }
  .topbar { top: 8px; left: 8px; right: 8px; height: 50px; }
  .topbar .lbl, .conn span { display: none; }
  .panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 46vh; }
  .leaflet-top.leaflet-right { top: 66px; }
  .legend { bottom: calc(46vh + 16px); right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* plaatsnamen */
.members { grid-template-columns: minmax(0, 1fr); }
.member { min-width: 0; }
.member .head > div { min-width: 0; }
.member .name, .member .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member .place { margin-top: 10px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.place-ico {
  flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 15px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.place-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.place-txt b, .place-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-txt b { font-size: 14px; font-weight: 650; }
.place-txt small { font-size: 12.5px; color: var(--muted); }
.shimmer { background: linear-gradient(90deg, var(--muted) 0%, var(--text) 50%, var(--muted) 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.places { margin-bottom: 12px; }
.places-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px 2px; }
.place-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.place-chip {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 11px;
  display: inline-flex; gap: 6px; align-items: baseline; animation: rise .35s backwards; transition: border-color .15s, background .15s;
}
.place-chip:hover { border-color: var(--accent); background: var(--card-hover); }
.place-chip span { font-weight: 500; font-size: 12px; color: var(--muted); }
.timeline .sub { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 270px; }
.timeline .dur { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }

/* MapLibre */
#map .maplibregl-canvas { outline: none; }
.maplibregl-popup-content { background: var(--glass-strong); color: var(--text); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 30px 12px 14px; font: inherit; border: 1px solid var(--line); }
.maplibregl-popup-tip { border-top-color: var(--glass-strong) !important; border-bottom-color: var(--glass-strong) !important; }
.maplibregl-popup-close-button { color: var(--muted); font-size: 18px; right: 6px; top: 4px; }
.maplibregl-ctrl-group { background: var(--glass-strong) !important; border: 1px solid var(--line); box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--line) !important; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: var(--icon-filter, none); }
:root:not([data-theme="light"]) { --icon-filter: invert(1) brightness(1.4); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --icon-filter: none; } }
:root[data-theme="light"] { --icon-filter: none; }
.maplibregl-ctrl-top-right { top: 76px; right: 4px; }
.maplibregl-ctrl-attrib { background: var(--glass) !important; color: var(--muted); border-radius: 10px 0 0 0; }
.maplibregl-ctrl-attrib a { color: var(--muted) !important; }
.maplibregl-marker { cursor: pointer; }
@media (max-width: 820px) { .maplibregl-ctrl-top-right { top: 64px; } }

.sos-warn { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sos-warn .x { font: inherit; font-size: 18px; line-height: 1; background: none; border: 0; color: inherit; cursor: pointer; padding: 0 4px; opacity: .7; }
.sos-warn .x:hover { opacity: 1; }
