/* ==========================================================================
   Verdant — design system
   ========================================================================== */
:root {
  --bg: #f4f1e8;
  --surface: #fffdf7;
  --surface-2: #ece7da;
  --surface-3: #e3ddcd;
  --ink: #1a2a1f;
  --ink-2: #536257;
  --ink-3: #87938a;
  --line: #e0d9c8;
  --brand: #2e6a44;
  --brand-2: #3f8a5a;
  --brand-soft: #dfeadf;
  --brand-ink: #ffffff;
  --accent: #c98f2b;
  --accent-soft: #f5e6c8;
  --danger: #b2442f;
  --danger-soft: #f6ddd6;
  --water: #2f7bb0;
  --water-soft: #d9e9f4;
  --ok: #2e7d4f;
  --warn: #b7791f;
  --shadow-1: 0 1px 2px rgba(30, 40, 30, .06), 0 2px 8px rgba(30, 40, 30, .05);
  --shadow-2: 0 8px 28px rgba(25, 40, 28, .14);
  --radius: 18px;
  --radius-sm: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1410; --surface: #141e18; --surface-2: #1b2820; --surface-3: #233229;
    --ink: #e7eee8; --ink-2: #a1b2a6; --ink-3: #6e8074; --line: #26352c;
    --brand: #6cc08b; --brand-2: #86d3a2; --brand-soft: #1d3326; --brand-ink: #0c140f;
    --accent: #e3b45c; --accent-soft: #3a2f1a; --danger: #ef8a73; --danger-soft: #3c211b;
    --water: #6eb3e3; --water-soft: #173041; --ok: #6cc08b; --warn: #e3b45c;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 10px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1410; --surface: #141e18; --surface-2: #1b2820; --surface-3: #233229;
  --ink: #e7eee8; --ink-2: #a1b2a6; --ink-3: #6e8074; --line: #26352c;
  --brand: #6cc08b; --brand-2: #86d3a2; --brand-soft: #1d3326; --brand-ink: #0c140f;
  --accent: #e3b45c; --accent-soft: #3a2f1a; --danger: #ef8a73; --danger-soft: #3c211b;
  --water: #6eb3e3; --water-soft: #173041; --ok: #6cc08b; --warn: #e3b45c;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 10px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
h1, h2, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2.5px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.ic { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- shell ---------- */
.app { min-height: 100%; display: flex; flex-direction: column; }
.view { flex: 1; outline: none; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
.view.enter { animation: viewIn .32s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.offline-bar { position: sticky; top: 0; z-index: 60; display: flex; gap: 8px; align-items: center; justify-content: center; padding: calc(6px + var(--safe-t)) 12px 6px; background: var(--accent); color: #1d1404; font-size: 13px; font-weight: 600; }

.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + var(--safe-t)) 12px 10px; min-height: 56px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
}
.offline-bar:not([hidden]) ~ .view .topbar { padding-top: 10px; }
.topbar h1 { font-size: 22px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sub { font-size: 12px; color: var(--ink-2); font-family: var(--font); font-weight: 500; }
.topbar.over { position: absolute; left: 0; right: 0; background: linear-gradient(rgba(0,0,0,.45), transparent); backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.topbar.over .icon-btn { background: rgba(0,0,0,.3); color: #fff; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; justify-content: space-around; align-items: flex-end;
  height: calc(var(--tab-h) + var(--safe-b)); padding: 0 6px var(--safe-b);
  background: color-mix(in srgb, var(--surface) 88%, transparent); border-top: 1px solid var(--line);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--tab-h); border: 0; background: none; color: var(--ink-3); font-size: 11px; font-weight: 600;
  text-decoration: none; position: relative; transition: color .2s;
}
.tab.active { color: var(--brand); }
.tab .dot { position: absolute; top: 8px; right: calc(50% - 18px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; line-height: 17px; text-align: center; }
.tab-cam { flex: 0 0 76px; }
.tab-cam .cam-btn {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-top: -22px;
  background: linear-gradient(145deg, var(--brand-2), var(--brand)); color: var(--brand-ink);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
  border: 4px solid var(--bg); transition: transform .15s var(--ease);
}
.tab-cam:active .cam-btn { transform: scale(.94); }
.tab-cam span { margin-top: 1px; }

/* ---------- boot ---------- */
.boot { min-height: 80vh; display: grid; place-items: center; }
.boot-leaf { width: 46px; height: 46px; border-radius: 0 60% 0 60%; background: var(--brand); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.85) rotate(-8deg); opacity: .6; } }

/* ---------- layout utils ---------- */
.row { display: flex; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.gap { gap: 10px; } .gap-s { gap: 6px; } .gap-l { gap: 16px; }
.end { justify-content: flex-end; } .between { justify-content: space-between; } .center { justify-content: center; }
.grow { flex: 1; min-width: 0; }
.mt { margin-top: 14px; } .mt-s { margin-top: 6px; } .mt-l { margin-top: 24px; } .mb { margin-bottom: 14px; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); } .small { font-size: 13px; } .tiny { font-size: 11.5px; }
.ital { font-style: italic; } .bold { font-weight: 700; } .nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .grid-2.auto { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-3.auto { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 10px; }
.section-title h2 { font-size: 19px; }
.section-title a, .section-title button { font-size: 14px; font-weight: 600; color: var(--brand); background: none; border: 0; text-decoration: none; padding: 0; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.card.pad { padding: 16px; }
.card.flat { box-shadow: none; }
.card-link { display: block; color: inherit; text-decoration: none; transition: transform .15s var(--ease); }
.card-link:active { transform: scale(.985); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 14px; border: 1px solid transparent; font-weight: 650; font-size: 15px; text-decoration: none;
  background: var(--surface-2); color: var(--ink); transition: transform .12s var(--ease), background .2s, opacity .2s; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn.accent { background: var(--accent); color: #1d1404; }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn.water { background: var(--water-soft); color: var(--water); }
.btn.block { width: 100%; }
.btn.lg { min-height: 56px; font-size: 17px; border-radius: 16px; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 11px; }
.icon-btn {
  width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 0;
  background: var(--surface-2); color: var(--ink); transition: transform .12s, background .2s; text-decoration: none;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn.plain { background: transparent; }
.icon-btn.on { color: var(--danger); }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.brand { background: var(--brand); color: var(--brand-ink); }

/* ---------- chips / segmented ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px; margin: 0 -16px; scroll-padding: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 17px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.chip.on, .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.static { height: 26px; padding: 0 10px; font-size: 12px; background: var(--surface-2); border-color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.pill.hi { background: var(--brand-soft); color: var(--brand); }
.pill.mid { background: var(--accent-soft); color: var(--warn); }
.pill.lo, .pill.vlo { background: var(--danger-soft); color: var(--danger); }
.pill.water { background: var(--water-soft); color: var(--water); }
.seg { display: flex; padding: 4px; background: var(--surface-2); border-radius: 14px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; height: 38px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- forms ---------- */
.input, select.input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 25%, transparent); }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.45; }
.search { position: relative; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { padding-left: 42px; border-radius: 99px; background: var(--surface-2); border-color: transparent; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 15px; background: var(--surface-3); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(20px); }
input[type="range"] { width: 100%; accent-color: var(--brand); }
.stepper { display: inline-flex; align-items: center; background: var(--surface-2); border-radius: 12px; }
.stepper button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; font-weight: 700; color: var(--ink-2); }
.stepper output { min-width: 42px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- lists ---------- */
.list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 56px; color: inherit; text-decoration: none; background: none; border: 0; width: 100%; text-align: left; }
.list-item + .list-item { border-top: 1px solid var(--line); }
.list-item:active { background: var(--surface-2); }
.list-item .li-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-title { font-weight: 600; }
.list-item .li-sub { font-size: 13px; color: var(--ink-2); }
.list-item .chev { color: var(--ink-3); }
.list-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 24px 6px 8px; }

/* ---------- thumbs ---------- */
.thumb { width: 56px; height: 56px; border-radius: 13px; object-fit: cover; background: var(--surface-2); flex: none; }
.thumb.lg { width: 72px; height: 72px; }
.thumb.round { border-radius: 50%; }
.ph { display: grid; place-items: center; color: var(--ink-3); background: var(--surface-2); }

/* ---------- identify ---------- */
.hero-id { padding-top: 4px; }
.greet { margin: 6px 2px 18px; }
.greet h1 { font-size: 30px; }
.greet p { color: var(--ink-2); margin-top: 4px; }
.capture {
  position: relative; border-radius: 26px; overflow: hidden; min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
  background: radial-gradient(120% 90% at 90% 0%, rgba(80,160,105,.55), transparent 60%), linear-gradient(160deg, #2e6a44, #173a26);
  color: #fff; box-shadow: var(--shadow-2);
}
.capture::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M150 20c-60 5-100 50-95 115 55-5 100-50 95-115z' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='2'/%3E%3Cpath d='M58 133C85 95 115 60 148 25' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='2'/%3E%3C/svg%3E") right -30px top -10px / 260px no-repeat; pointer-events: none; }
.capture h2 { font-size: 26px; color: #fff; position: relative; }
.capture p { opacity: .85; margin: 6px 0 18px; position: relative; max-width: 30ch; }
.capture .row { position: relative; }
.capture .btn.primary { background: #fff; color: #173a26; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.capture .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.mode-seg { margin: 0 0 14px; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shot { position: relative; border-radius: 18px; overflow: hidden; background: var(--surface-2); aspect-ratio: 3 / 4; box-shadow: var(--shadow-1); animation: pop .3s var(--ease); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .shot-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.shot .shot-tools .icon-btn { width: 32px; height: 32px; background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(6px); }
.shot .organ-pick { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 12px; background: rgba(10,20,14,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.shot .organ-pick::-webkit-scrollbar { display: none; }
.organ-pick button { flex: 1 0 28%; border: 0; height: 28px; padding: 0 4px; border-radius: 8px; background: transparent; color: rgba(255,255,255,.85); font-size: 11.5px; font-weight: 700; }
.organ-pick button.on { background: #fff; color: #173a26; }
.shot .warn-badge { position: absolute; top: 8px; left: 8px; display: inline-flex; gap: 4px; align-items: center; padding: 3px 8px; border-radius: 99px; background: var(--accent); color: #1d1404; font-size: 11px; font-weight: 800; }
.shot.add { display: grid; place-items: center; border: 2px dashed var(--line); background: transparent; box-shadow: none; color: var(--ink-2); font-weight: 650; text-align: center; animation: none; }
.shot.add .ic { margin: 0 auto 6px; }
.id-bar { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); z-index: 30; margin-top: 16px; }
.flora-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tip { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.tip .ic { color: var(--brand); margin-bottom: 6px; }
.tip b { display: block; font-size: 14px; }
.tip span { font-size: 12.5px; color: var(--ink-2); }
.quota { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-2); padding: 4px 10px; border-radius: 99px; background: var(--surface-2); }
.due-strip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--water-soft); color: var(--water); text-decoration: none; font-weight: 650; }

/* analysing overlay */
.analyzing { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.scan { position: relative; width: 220px; height: 220px; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-2); }
.scan img { width: 100%; height: 100%; object-fit: cover; }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 40%; top: -40%; background: linear-gradient(transparent, color-mix(in srgb, var(--brand-2) 60%, transparent), transparent); animation: scan 1.6s ease-in-out infinite; }
@keyframes scan { to { top: 100%; } }
.analyzing .msg { text-align: center; margin-top: 20px; font-weight: 650; }
.analyzing .msg small { display: block; font-weight: 500; color: var(--ink-2); margin-top: 4px; }

/* ---------- results ---------- */
.res-hero { position: relative; height: 46vh; min-height: 300px; max-height: 480px; background: var(--surface-2); overflow: hidden; }
.res-hero .rh-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.res-hero .rh-track::-webkit-scrollbar { display: none; }
.res-hero img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.res-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.rh-dots { position: absolute; bottom: 70px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.rh-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); transition: width .2s; }
.rh-dots i.on { width: 18px; background: #fff; }
.res-main { position: relative; margin-top: -64px; z-index: 3; }
.top-card { padding: 18px; }
.top-card h1 { font-size: 28px; }
.top-card .sci { font-style: italic; color: var(--ink-2); font-size: 16px; margin-top: 2px; }
.top-card .sci small { font-style: normal; color: var(--ink-3); }
.ring .ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 6; }
.ring .ring-fg { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.ring-hi .ring-fg { stroke: var(--ok); } .ring-mid .ring-fg { stroke: var(--accent); } .ring-lo .ring-fg, .ring-vlo .ring-fg { stroke: var(--danger); }
.ring text { font-weight: 800; font-size: 17px; fill: var(--ink); font-family: var(--font); }
.ring text tspan { font-size: 10px; font-weight: 700; }
.advice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.advice .ic { color: var(--warn); margin-top: 2px; }
.actions-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 650; color: var(--ink-2); text-decoration: none; }
.act .ic { color: var(--brand); }
.act.on .ic { color: var(--danger); fill: currentColor; }
.ref-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; scroll-snap-type: x proximity; }
.ref-strip::-webkit-scrollbar { display: none; }
.ref-strip button { flex: none; padding: 0; border: 0; background: none; border-radius: 14px; overflow: hidden; scroll-snap-align: start; position: relative; }
.ref-strip img { width: 116px; height: 140px; object-fit: cover; background: var(--surface-2); }
.ref-strip .org { position: absolute; bottom: 6px; left: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(0,0,0,.55); color: #fff; font-size: 10.5px; font-weight: 700; text-transform: capitalize; }
.alt { display: flex; gap: 12px; padding: 12px; align-items: center; }
.alt + .alt { border-top: 1px solid var(--line); }
.alt .alt-main { flex: 1; min-width: 0; }
.alt .alt-name { font-weight: 650; }
.alt .alt-sci { font-style: italic; font-size: 13px; color: var(--ink-2); }
.bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand-2); transform-origin: left; animation: grow .8s var(--ease); }
@keyframes grow { from { transform: scaleX(0); } }
.alt.chosen { background: var(--brand-soft); }
.attr { font-size: 11.5px; color: var(--ink-3); }
.powered { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--ink-3); margin: 26px 0 6px; text-align: center; }
.powered a { color: var(--ink-2); font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.kv dd.i { font-style: italic; }
.compare-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.compare-row img { width: 110px; height: 130px; object-fit: cover; border-radius: 12px; flex: none; background: var(--surface-2); }
.compare-row .you { outline: 3px solid var(--brand-2); outline-offset: -3px; }

/* ---------- species ---------- */
.sp-hero { position: relative; height: 38vh; min-height: 240px; max-height: 420px; background: linear-gradient(160deg, #2e6a44, #173a26); overflow: hidden; }
.sp-hero img { width: 100%; height: 100%; object-fit: cover; }
.sp-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, var(--bg)); }
.sp-head { position: relative; z-index: 2; margin-top: -70px; }
.sp-head h1 { font-size: 30px; }
.taxo { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 13px; color: var(--ink-2); }
.taxo span::after { content: "›"; margin-left: 6px; color: var(--ink-3); }
.taxo span:last-child::after { content: ""; }
.iucn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--surface-2); }
.iucn b { display: grid; place-items: center; width: 26px; height: 22px; border-radius: 11px; color: #fff; font-size: 11px; }
.iucn-LC b { background: #3d8b4f; } .iucn-NT b { background: #8bb34a; } .iucn-VU b { background: #d6a21e; } .iucn-EN b { background: #d4691e; } .iucn-CR b { background: #c0392b; } .iucn-EW b, .iucn-EX b { background: #222; } .iucn-DD b, .iucn-NE b { background: #888; }
.map-box { height: 260px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); z-index: 1; }
.month-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 90px; }
.month-bars div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.month-bars i { width: 100%; border-radius: 5px 5px 2px 2px; background: var(--brand-2); min-height: 3px; }
.month-bars i.now { background: var(--accent); }
.month-bars span { font-size: 10px; color: var(--ink-3); font-weight: 700; }
.country-row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 5px 0; }
.country-row .bar { flex: 1; margin: 0; }
.ext-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ext-links a { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.ext-links a .ic { color: var(--ink-3); margin-left: auto; }
.wiki-text { font-size: 15.5px; line-height: 1.6; }
.names-wrap { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- journal ---------- */
.j-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .j-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.j-card { position: relative; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); text-decoration: none; color: inherit; display: block; }
.j-card img, .j-card .ph { width: 100%; aspect-ratio: 1; object-fit: cover; }
.j-card .j-body { padding: 10px 12px 12px; }
.j-card .j-name { font-weight: 650; font-size: 14.5px; }
.j-card .j-sci { font-style: italic; font-size: 12.5px; color: var(--ink-2); }
.j-card .j-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.j-card .j-score { position: absolute; top: 8px; left: 8px; }
.j-card .j-fav { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.4); color: #ff8f8f; }
.j-card .j-fav .ic { fill: currentColor; }
.j-card .j-status { position: absolute; inset: 0 0 auto 0; aspect-ratio: 1; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; font-size: 13px; text-align: center; }
.day-head { font-size: 13px; font-weight: 750; color: var(--ink-3); margin: 22px 4px 10px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- garden ---------- */
.today { padding: 16px; background: linear-gradient(150deg, var(--water-soft), var(--surface)); }
.task-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.task-row + .task-row { border-top: 1px solid var(--line); }
.task-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--water-soft); color: var(--water); }
.task-ic.fertilize { background: var(--accent-soft); color: var(--warn); }
.task-ic.prune, .task-ic.repot, .task-ic.check, .task-ic.rotate { background: var(--brand-soft); color: var(--brand); }
.check-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-3); transition: all .2s var(--ease); flex: none; }
.check-btn.done, .check-btn:active { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.08); }
.p-card { border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); text-decoration: none; color: inherit; display: block; position: relative; }
.p-card img, .p-card .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.p-card .p-body { position: absolute; inset: auto 0 0 0; padding: 30px 12px 12px; background: linear-gradient(transparent, rgba(8,16,10,.82)); color: #fff; }
.p-card .p-name { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.15; }
.p-card .p-sci { font-style: italic; font-size: 12px; opacity: .8; }
.p-card .p-due { position: absolute; top: 10px; left: 10px; display: inline-flex; gap: 4px; align-items: center; padding: 4px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; background: rgba(255,255,255,.92); color: var(--water); }
.p-card .p-due.over { background: var(--danger); color: #fff; }
.care-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.care-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.care-item.off { opacity: .55; }
.care-item .ci-main { flex: 1; min-width: 0; }
.care-item .ci-title { font-weight: 650; }
.care-item .ci-sub { font-size: 12.5px; color: var(--ink-2); }
.care-item .ci-sub.over { color: var(--danger); font-weight: 700; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 6px 0 12px; }
.tl-item::before { content: ""; position: absolute; left: -19px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 3px var(--bg); }
.tl-item.water::before { background: var(--water); } .tl-item.fertilize::before { background: var(--accent); }
.photo-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.photo-strip::-webkit-scrollbar { display: none; }
.photo-strip figure { margin: 0; flex: none; }
.photo-strip img { width: 120px; height: 150px; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.photo-strip figcaption { font-size: 11px; color: var(--ink-3); margin-top: 4px; text-align: center; }
.preset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.preset-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 650; }
.preset-grid button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.preset-grid .emo { font-size: 24px; }
.guide p + p { margin-top: 8px; }
.guide b { color: var(--brand); }

/* ---------- explore ---------- */
.ex-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; }
.ex-item + .ex-item { border-top: 1px solid var(--line); }
.ex-img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: var(--surface-2); flex: none; }
.radius-pick { display: flex; gap: 6px; }

/* ---------- map ---------- */
.full-map { position: fixed; inset: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 1; }
.map-fab { position: fixed; right: 14px; bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 20; display: flex; flex-direction: column; gap: 10px; }
.map-fab .icon-btn { width: 48px; height: 48px; box-shadow: var(--shadow-2); background: var(--surface); }
.map-top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding: calc(10px + var(--safe-t)) 12px 10px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.map-top > * { pointer-events: auto; }
.map-top .chip { box-shadow: var(--shadow-1); }
.leaflet-container { font: inherit; background: var(--surface-2); }
.leaflet-popup-content-wrapper { border-radius: 14px; background: var(--surface); color: var(--ink); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 10px; }
.pop { display: flex; gap: 10px; align-items: center; min-width: 190px; text-decoration: none; color: var(--ink); }
.pop img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.pin-mk { width: 38px; height: 38px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35); overflow: hidden; background: var(--brand); }
.pin-mk img { width: 100%; height: 100%; object-fit: cover; transform: rotate(45deg) scale(1.4); }
.pin-mk.garden { background: var(--accent); }
[data-theme="dark"] .leaflet-tile-pane, :root:not([data-theme="light"]) .dark-tiles .leaflet-tile-pane { }

/* ---------- stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); }
.stat b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.stat.feat { background: linear-gradient(150deg, #2e6a44, #173a26); color: #fff; }
.stat.feat span { color: rgba(255,255,255,.8); }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.heat i { width: 13px; height: 13px; border-radius: 3px; background: var(--surface-2); }
.heat i.l1 { background: color-mix(in srgb, var(--brand-2) 35%, var(--surface-2)); }
.heat i.l2 { background: color-mix(in srgb, var(--brand-2) 65%, var(--surface-2)); }
.heat i.l3 { background: var(--brand); }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 560px) { .badges { grid-template-columns: repeat(5, 1fr); } }
.badge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 6px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.badge .b-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); position: relative; }
.badge.earned .b-ic { background: linear-gradient(145deg, #f0c76a, #c98f2b); color: #3b2604; box-shadow: 0 4px 12px rgba(201,143,43,.35); }
.badge b { font-size: 12.5px; line-height: 1.2; }
.badge small { font-size: 11px; color: var(--ink-3); line-height: 1.25; }
.badge .bar { width: 80%; height: 4px; margin-top: 2px; }
.fam-row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; }
.fam-row .bar { flex: 1; margin: 0; height: 8px; }
.fam-row .n { width: 26px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- more menu ---------- */
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.more-tile { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); }
.more-tile .mt-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.more-tile b { font-size: 15.5px; }
.more-tile span { font-size: 12.5px; color: var(--ink-2); }

/* ---------- empty / skeleton ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--ink-2); }
.empty-ic { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 28px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.empty h3 { color: var(--ink); font-family: var(--serif); font-size: 21px; margin-bottom: 6px; }
.empty p { max-width: 34ch; margin: 0 auto 18px; }
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel.line { height: 14px; margin: 8px 0; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--surface-3); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 100; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5,12,8,.45); opacity: 0; transition: opacity .25s; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; display: flex; flex-direction: column; max-width: 640px; margin: 0 auto;
  background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-2); transform: translateY(100%); transition: transform .3s var(--ease);
  padding-bottom: var(--safe-b); outline: none;
}
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-grip { width: 100%; height: 22px; flex: none; position: relative; cursor: grab; }
.sheet-grip::after { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--surface-3); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 8px 20px; }
.sheet-head h3 { font-family: var(--serif); font-size: 21px; }
.sheet-body { padding: 6px 20px 22px; overflow-y: auto; overscroll-behavior: contain; }
.confirm-msg { font-size: 16px; color: var(--ink-2); }
.opt-list { display: flex; flex-direction: column; gap: 6px; }
.opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; width: 100%; }
.opt.on { border-color: var(--brand); background: var(--brand-soft); }
.opt .opt-main { flex: 1; min-width: 0; }
.opt small { display: block; color: var(--ink-2); font-size: 12.5px; }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { display: flex; align-items: center; gap: 12px; max-width: 520px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 14.5px; font-weight: 550; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(12px) scale(.98); transition: all .25s var(--ease); pointer-events: auto; }
.toast.in { opacity: 1; transform: none; }
.toast-error { background: #a33a26; color: #fff; }
.toast-success { background: #2e6a44; color: #fff; }
.toast-btn { border: 0; background: rgba(255,255,255,.18); color: inherit; font-weight: 800; padding: 6px 10px; border-radius: 9px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; background: #000; opacity: 0; transition: opacity .2s; }
.lightbox.open { opacity: 1; }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; margin: 0; display: flex; flex-direction: column; justify-content: center; scroll-snap-align: center; touch-action: pan-x pinch-zoom; }
.lb-slide img { max-height: 82vh; width: 100%; object-fit: contain; }
.lb-slide figcaption { color: rgba(255,255,255,.75); font-size: 12.5px; text-align: center; padding: 12px 20px calc(12px + var(--safe-b)); }
.lb-close { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; background: rgba(255,255,255,.15); color: #fff; }
.lb-count { position: absolute; top: calc(22px + var(--safe-t)); left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; font-size: 14px; pointer-events: none; }

/* ---------- onboarding ---------- */
.onb { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; flex-direction: column; }
.onb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.onb-track::-webkit-scrollbar { display: none; }
.onb-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: center; padding: calc(40px + var(--safe-t)) 28px 20px; text-align: center; }
.onb-art { width: 190px; height: 190px; margin: 0 auto 30px; border-radius: 60px; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, var(--brand-2), var(--brand)); color: #fff; box-shadow: var(--shadow-2); transform: rotate(-4deg); }
.onb-slide h2 { font-size: 30px; margin-bottom: 10px; }
.onb-slide p { color: var(--ink-2); font-size: 16.5px; max-width: 34ch; margin: 0 auto; }
.onb-foot { padding: 16px 24px calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.onb-dots { display: flex; gap: 8px; }
.onb-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--surface-3); transition: all .25s; }
.onb-dots i.on { width: 24px; background: var(--brand); }

/* ---------- misc ---------- */
.share-preview { width: 100%; border-radius: 16px; box-shadow: var(--shadow-1); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); font-size: 14px; }
.notice .ic { color: var(--brand); margin-top: 1px; }
.notice.warn { background: var(--accent-soft); } .notice.warn .ic { color: var(--warn); }
.notice.err { background: var(--danger-soft); } .notice.err .ic { color: var(--danger); }
.tag-input { display: flex; flex-wrap: wrap; gap: 6px; }
.kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.disease-desc { font-size: 15px; line-height: 1.5; }
.fab { position: fixed; right: 18px; bottom: calc(var(--tab-h) + var(--safe-b) + 18px); z-index: 30; width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: var(--shadow-2); }
.fab:active { transform: scale(.94); }
@media (min-width: 900px) {
  .tabbar { left: 50%; right: auto; transform: translateX(-50%); width: 520px; bottom: 14px; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-2); padding-bottom: 0; height: var(--tab-h); }
  .tab-cam .cam-btn { margin-top: -26px; }
}
.ic.filled, .icon-btn.on .ic { fill: currentColor; }
.topbar.over .icon-btn.on { color: #ff8080; }
:root[data-theme="dark"] .basemap { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .basemap { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); } }
