/* Nearily Ambassador — soft panel language: rounded cards, hairline borders,
   soft shadows; colours from the Nearily palette (cream canvas, one blue). */

@font-face { font-family: 'Open Runde'; src: url('/fonts/OpenRunde-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Open Runde'; src: url('/fonts/OpenRunde-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Open Runde'; src: url('/fonts/OpenRunde-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Open Runde'; src: url('/fonts/OpenRunde-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --canvas: #FCF6EC;
  --surface: #FFFFFF;
  --surface-alt: #F7F1E6;
  --ink-rgb: 26, 26, 46;
  --ink: #1A1A2E;
  --ink-2: rgba(26, 26, 46, .62);
  --ink-3: rgba(26, 26, 46, .42);
  --line: rgba(26, 26, 46, .08);
  --line-2: rgba(26, 26, 46, .14);
  --brand: #007AFD;
  --brand-hover: #0066D6;
  --brand-text: #007AFD;
  --brand-soft: rgba(0, 122, 253, .10);
  --coffee: #D4A574;
  --success: #34C759;
  --danger: #FF3B30;
  --warning: #FF9500;
  --shadow: 0 1px 2px rgba(31, 38, 135, .05), 0 8px 24px rgba(31, 38, 135, .07);
  --shadow-lg: 0 2px 6px rgba(31, 38, 135, .06), 0 24px 60px rgba(31, 38, 135, .16);
  --map-land: #FFFFFF;
  --map-other: rgba(26, 26, 46, .05);
  --s-new: #8E8E9A;
  --s-contacted: #007AFD;
  --s-replied: #AF52DE;
  --s-meeting: #FF9500;
  --s-won: #34C759;
  --s-lost: #FF3B30;
  --r-sm: 14px;
  --r-lg: 16px;
  --r-sheet: 24px;
  --font: 'Open Runde', -apple-system, BlinkMacSystemFont, Inter, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #30303A; --surface: #3B3B46; --surface-alt: #34343E;
    --ink-rgb: 242, 238, 230; --ink: #F2EEE6; --ink-2: rgba(242, 238, 230, .66); --ink-3: rgba(242, 238, 230, .44);
    --line: rgba(242, 238, 230, .08); --line-2: rgba(242, 238, 230, .16);
    --brand-text: #3D95FF; --brand-soft: rgba(61, 149, 255, .16);
    --success: #48CD6A; --danger: #FF4F45; --warning: #FF9F1A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 24px rgba(0, 0, 0, .22);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
    --map-land: #44444F; --map-other: rgba(242, 238, 230, .05);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-text); }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.shell { display: flex; flex-direction: column; min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand small { font-weight: 500; color: var(--ink-3); font-size: 13px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-weight: 600; font-size: 14px;
}
.nav a:hover { background: var(--line); color: var(--ink); }
.nav a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.nav svg, .tabbar svg { width: 18px; height: 18px; }
.spacer { flex: 1; }
.cc-switch { display: flex; background: var(--line); border-radius: 999px; padding: 3px; }
.cc-switch button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.cc-switch button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(135deg, #7FB8D9, var(--brand)); color: #fff; font-weight: 700; font-size: 14px;
}
main { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 20px 20px 96px; }

.tabbar { display: none; }
@media (max-width: 760px) {
  .topbar { padding: 10px 16px; }
  .nav { display: none; }
  .brand small { display: none; }
  main { padding: 14px 16px 104px; }
  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; justify-content: space-around;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; min-height: 52px;
    text-decoration: none; color: var(--ink-3); font-size: 11px; font-weight: 600; border-radius: 12px;
  }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--brand-text); }
}

/* ---------- primitives ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .12s ease, background .15s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: #fff; border-color: transparent; }
.btn.primary:hover { background: var(--brand-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.danger { color: var(--danger); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.fab { position: fixed; right: 20px; bottom: 24px; z-index: 35; box-shadow: var(--shadow-lg); border-radius: 999px; min-height: 56px; padding: 0 24px; }
@media (max-width: 760px) { .fab { bottom: calc(84px + env(safe-area-inset-bottom)); right: 16px; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field > span em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.input, select.input, textarea.input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); outline: none; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
select.input { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E8E9A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--brand); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--ink-2); white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.pill.live { background: rgba(52, 199, 89, .14); color: #1F8A3E; }
:root[data-theme="dark"] .pill.live { color: #6EE08E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.live { color: #6EE08E; } }
.pill.tag { background: var(--surface-alt); color: var(--ink-2); }
.st-new { --st: var(--s-new); } .st-contacted { --st: var(--s-contacted); } .st-replied { --st: var(--s-replied); }
.st-meeting { --st: var(--s-meeting); } .st-won { --st: var(--s-won); } .st-lost { --st: var(--s-lost); }
.pill.status { background: color-mix(in srgb, var(--st) 14%, transparent); color: color-mix(in srgb, var(--st) 80%, var(--ink)); }
.pill.status .dot { background: var(--st); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
h1 { font-size: 28px; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 20px; margin: 0; }
h3 { font-size: 16px; margin: 0; }
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 100; background: #1A1A2E; color: #fff;
  padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; max-width: calc(100vw - 32px);
}
@media (max-width: 760px) { .toast { bottom: calc(96px + env(safe-area-inset-bottom)); } }
.empty { text-align: center; padding: 48px 16px; color: var(--ink-3); }
.loading { display: grid; place-items: center; min-height: 50vh; color: var(--ink-3); }

/* ---------- login ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: 100%; max-width: 420px; padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.auth .logo { width: 56px; height: 56px; border-radius: 16px; }
.auth h1 { font-size: 26px; }
.auth .err { color: var(--danger); font-weight: 500; font-size: 14px; min-height: 20px; }
.auth .code-input { letter-spacing: .4em; font-size: 22px; text-align: center; font-weight: 700; }
.auth .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- home map ---------- */
.side { display: flex; flex-direction: column; gap: 14px; }
.ccard { padding: 18px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.ccard:hover { box-shadow: var(--shadow-lg); }
.ccard.sel { outline: 2px solid var(--brand); outline-offset: -1px; }
.ccard .top { display: flex; justify-content: space-between; align-items: center; }
.ccard .big { font-size: 30px; font-weight: 700; }
.funnel { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--line); }
.funnel span { display: block; height: 100%; background: var(--st); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--st); margin-right: 5px; }

/* ---------- country view ---------- */
.cview { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 16px; height: calc(100dvh - 104px); }
.cview .listpane { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.cview .listpane .head { padding: 16px 16px 10px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); }
.cview .scroll { overflow: auto; flex: 1; padding: 4px 8px 16px; }
.mappane { position: relative; overflow: hidden; min-height: 300px; }
.mappane .map { position: absolute; inset: 0; }
.mappane .note { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); padding: 24px; text-align: center; }
.maptoggle { display: none; }
@media (max-width: 860px) {
  .cview { grid-template-columns: 1fr; height: auto; }
  .cview .listpane { overflow: visible; }
  .cview .scroll { overflow: visible; }
  .mappane { height: 62dvh; }
  .cview.show-list .mappane, .cview.show-map .listpane { display: none; }
  .maptoggle { display: flex; margin-bottom: 12px; }
}
.group-h { position: sticky; top: 0; background: var(--surface); z-index: 1; padding: 12px 8px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; }
.subgroup-h { padding: 8px 8px 2px; font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; cursor: pointer; min-height: 56px;
  border: 0; background: none; width: 100%; text-align: left;
}
.row:hover, .row.hl { background: var(--surface-alt); }
.row .ava { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--st); font-size: 16px; }
.row .main { flex: 1; min-width: 0; }
.row .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.row .sub { font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .input { min-height: 40px; padding: 8px 12px; font-size: 14px; width: auto; border-radius: 999px; }
.filters select.input { padding-right: 32px; background-position: right 12px center; }
.filters .search { flex: 1 1 220px; min-width: 180px; padding-left: 38px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238E8E9A' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; }
.listhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

/* list view table-ish cards */
.tbl { overflow: hidden; }
.tbl .row { border-radius: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
.tbl .row:last-child { border-bottom: 0; }
.tbl .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .tbl .meta .hide-sm { display: none; } }

/* ---------- board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.col { background: color-mix(in srgb, var(--surface) 55%, transparent); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; min-height: 60vh; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.col.drop { outline: 2px dashed var(--brand); outline-offset: -4px; }
.col-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 6px; font-weight: 700; font-size: 14px; }
.col-h .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--st); display: inline-block; margin-right: 8px; }
.kcard { padding: 12px 14px; cursor: grab; display: flex; flex-direction: column; gap: 6px; border-radius: var(--r-sm); }
.kcard:active { cursor: grabbing; }
.kcard .name { font-weight: 600; display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.kcard .sub { font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) { .board { grid-auto-columns: 82vw; } }

/* ---------- sheet (cafe card / forms) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .32); z-index: 60; animation: fade .18s ease; }
.sheet {
  position: fixed; z-index: 61; top: 12px; right: 12px; bottom: 12px; width: min(620px, calc(100vw - 24px));
  background: var(--canvas); border-radius: var(--r-sheet); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  animation: slidein .22s cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 760px) {
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 94dvh; border-radius: var(--r-sheet) var(--r-sheet) 0 0; animation: slideup .25s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } }
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet, .scrim { animation: none; } }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.sheet-h h2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--line); display: grid; place-items: center; cursor: pointer; flex: none; }
.iconbtn svg { width: 18px; height: 18px; }
.sheet-b { flex: 1; overflow: auto; padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.sheet-f { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; background: var(--canvas); }
.sheet-f .btn { flex: 1; }
.section { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.section > h3 { display: flex; justify-content: space-between; align-items: center; }
.kv { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; font-size: 15px; }
.kv dt { color: var(--ink-3); font-size: 13px; padding-top: 2px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; } }
.statusbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.statusbar button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 12px; min-height: 48px; padding: 6px 4px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.statusbar button .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--st); opacity: .45; }
.statusbar button.on { border-color: var(--st); background: color-mix(in srgb, var(--st) 12%, var(--surface)); color: var(--ink); }
.statusbar button.on .dot { opacity: 1; }
.statusbar button.done .dot { opacity: 1; }
@media (max-width: 480px) { .statusbar { grid-template-columns: repeat(3, 1fr); } }
.minimap { height: 220px; border-radius: 14px; overflow: hidden; position: relative; background: var(--surface-alt); }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.tl:first-child { border-top: 0; }
.tl .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); }
.tl .ic.in { background: rgba(175, 82, 222, .14); color: #AF52DE; }
.tl .ic svg { width: 18px; height: 18px; }
.tl .top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.tl .txt { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; min-height: 44px; padding: 0 16px; cursor: pointer; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.chip.on { background: var(--brand); color: #fff; border-color: transparent; }
.chip svg { width: 16px; height: 16px; }

/* dup dropdown */
.dupbox { position: relative; }
.duplist { margin-top: 8px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--warning) 50%, transparent); background: color-mix(in srgb, var(--warning) 8%, var(--surface)); overflow: hidden; }
.duplist .h { padding: 10px 14px 4px; font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--warning) 70%, var(--ink)); }
.duplist .h small { display: block; font-weight: 400; color: var(--ink-2); }
.duplist .row { min-height: 48px; padding: 8px 14px; border-radius: 0; }
.duplist.hard { border-color: color-mix(in srgb, var(--danger) 55%, transparent); background: color-mix(in srgb, var(--danger) 7%, var(--surface)); }
.duplist.hard .h { color: var(--danger); }

/* settings */
.settings { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.member { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.member:first-child { border-top: 0; }

/* MapLibre touches */
.maplibregl-ctrl-attrib { font-size: 10px; }
.mk { width: 16px; height: 16px; border-radius: 50%; background: var(--st); border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.mk.approx { opacity: .55; }

/* grid/flex children must be allowed to shrink below their content */
.cview > *, .home > *, .board > *, .listpane, .tbl .row { min-width: 0; }
.shell { overflow-x: clip; }
.row > .main { overflow: hidden; }
.row > :not(.main):not(.ava) { flex: none; }
.row .name .nm { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row .name .pill { flex: none; }

/* home: country cards above the list */
.cc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
button.ccard { font: inherit; color: inherit; text-align: left; padding: 12px 14px; gap: 8px; cursor: pointer; background: var(--surface); }
button.ccard .top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
button.ccard .big { font-size: 22px; font-weight: 700; }
button.ccard .funnel { height: 6px; }
button.ccard:not(.sel) { box-shadow: none; }
@media (max-width: 860px) { .cview .mappane { height: 68dvh; } }
.maplibregl-ctrl-group { border-radius: 12px !important; overflow: hidden; }
:root[data-theme="dark"] .maplibregl-ctrl-group, :root[data-theme="dark"] .maplibregl-ctrl-attrib { filter: invert(.9) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .maplibregl-ctrl-group, :root:not([data-theme="light"]) .maplibregl-ctrl-attrib { filter: invert(.9) hue-rotate(180deg); } }
