/* WILDROUTE v0.5 — EARTH-TONES CYBER
   Warm midnight base · 4 vibrant outline colors (cyan/emerald/violet/amber)
   Restrained glow (cards/buttons/active only · NO text glow)
   Subtle drifting ember particles · s26-discipline */

:root, [data-theme="dark"] {
  --bg: #1a1612;
  --bg-deeper: #110d0a;
  --bg-soft: #221d17;
  --card: #2a2218;
  --card-hi: #322a1e;
  --border: rgba(232, 224, 212, 0.08);
  --border-hi: rgba(232, 224, 212, 0.18);

  --text: #e8e0d4;
  --text-strong: #ffffff;
  --text-dim: #a89a85;
  --muted: #6e6452;

  --accent: #00d4ff;
  --accent-bright: #7df3ff;
  --a2: #7c3aed;
  --a2-bright: #a78bfa;
  --a3: #10b981;
  --a3-bright: #34d399;
  --a4: #f5b849;
  --a4-bright: #fbcf72;

  --warn: #f5b849;
  --red: #ef4444;

  /* Restrained glow — s26 discipline */
  --glow-cyan: rgba(0, 212, 255, 0.14);
  --glow-cyan-mid: rgba(0, 212, 255, 0.30);
  --glow-violet: rgba(124, 58, 237, 0.14);
  --glow-violet-mid: rgba(124, 58, 237, 0.30);
  --glow-emerald: rgba(16, 185, 129, 0.14);
  --glow-emerald-mid: rgba(16, 185, 129, 0.30);
  --glow-amber: rgba(245, 184, 73, 0.14);
  --glow-amber-mid: rgba(245, 184, 73, 0.30);
  --glow-red: rgba(239, 68, 68, 0.30);

  --shadow-soft: 0 8px 28px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.30);
  --shadow-deep: 0 20px 50px rgba(0,0,0,0.55), 0 4px 14px rgba(0,0,0,0.35);

  --safe-bottom: env(safe-area-inset-bottom, 0);
  --tap: 48px;
  --radius: 14px;
}

[data-theme="light"] {
  --bg: #f5efe2;
  --bg-deeper: #ebe3d0;
  --bg-soft: #faf6ec;
  --card: #ffffff;
  --card-hi: #fcf9f0;
  --border: rgba(50, 40, 28, 0.10);
  --border-hi: rgba(50, 40, 28, 0.22);

  --text: #2a221a;
  --text-strong: #14100b;
  --text-dim: #6e6452;
  --muted: #9b9080;

  --accent: #0099bb;
  --accent-bright: #00d4ff;
  --a2: #6628d1;
  --a2-bright: #7c3aed;
  --a3: #047857;
  --a3-bright: #10b981;
  --a4: #c89030;
  --a4-bright: #f5b849;

  --warn: #b87a1c;
  --red: #c4382e;

  --glow-cyan: rgba(0, 153, 187, 0.14);
  --glow-cyan-mid: rgba(0, 153, 187, 0.28);
  --glow-violet: rgba(102, 40, 209, 0.14);
  --glow-violet-mid: rgba(102, 40, 209, 0.28);
  --glow-emerald: rgba(4, 120, 87, 0.14);
  --glow-emerald-mid: rgba(4, 120, 87, 0.28);
  --glow-amber: rgba(200, 144, 48, 0.14);
  --glow-amber-mid: rgba(200, 144, 48, 0.28);
  --glow-red: rgba(196, 56, 46, 0.24);

  --shadow-soft: 0 8px 24px rgba(50,40,28,0.10), 0 2px 6px rgba(50,40,28,0.06);
  --shadow-deep: 0 18px 40px rgba(50,40,28,0.18), 0 4px 12px rgba(50,40,28,0.10);
}

/* aliases */
:root {
  --forest: var(--bg); --moss: var(--bg-soft); --fern: var(--accent);
  --sage: var(--text-dim); --mist: var(--text); --cream: var(--bg);
  --warm: var(--border); --bark: var(--text-dim); --gold: var(--a4);
  --terracotta: var(--a2); --sky: var(--accent); --ocean: var(--bg-soft);
  --alert: var(--red);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  min-height: 100vh;
  padding-bottom: calc(96px + var(--safe-bottom));
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  transition: background 0.4s ease, color 0.4s ease;
}

/* DRIFTING EMBERS — subtle, ambient, slow */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 92%, rgba(245,184,73,0.55), transparent 50%),
    radial-gradient(1px 1px at 23% 78%, rgba(0,212,255,0.50), transparent 50%),
    radial-gradient(2px 2px at 41% 96%, rgba(124,58,237,0.45), transparent 50%),
    radial-gradient(1px 1px at 56% 82%, rgba(16,185,129,0.45), transparent 50%),
    radial-gradient(1.5px 1.5px at 71% 88%, rgba(245,184,73,0.50), transparent 50%),
    radial-gradient(1px 1px at 88% 94%, rgba(0,212,255,0.45), transparent 50%),
    radial-gradient(1px 1px at 14% 65%, rgba(124,58,237,0.40), transparent 50%),
    radial-gradient(1.5px 1.5px at 33% 58%, rgba(16,185,129,0.40), transparent 50%),
    radial-gradient(1px 1px at 49% 70%, rgba(245,184,73,0.45), transparent 50%),
    radial-gradient(2px 2px at 67% 64%, rgba(0,212,255,0.40), transparent 50%),
    radial-gradient(1px 1px at 79% 76%, rgba(124,58,237,0.35), transparent 50%),
    radial-gradient(1px 1px at 92% 60%, rgba(245,184,73,0.40), transparent 50%),
    radial-gradient(1.5px 1.5px at 20% 40%, rgba(16,185,129,0.30), transparent 50%),
    radial-gradient(1px 1px at 38% 32%, rgba(0,212,255,0.30), transparent 50%),
    radial-gradient(1px 1px at 60% 44%, rgba(124,58,237,0.30), transparent 50%),
    radial-gradient(1px 1px at 84% 36%, rgba(245,184,73,0.30), transparent 50%);
  background-size: 100% 100%;
  animation: emberRise 80s linear infinite;
  opacity: 0.85;
}
[data-theme="light"] body::before { opacity: 0.35; }
@keyframes emberRise {
  0% { transform: translateY(0); opacity: 0.85; }
  50% { opacity: 0.6; }
  100% { transform: translateY(-100vh); opacity: 0.85; }
}

/* Soft warm ambient glow from corners */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 35% at 8% 0%, rgba(245,184,73,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 45% 30% at 92% 100%, rgba(124,58,237,0.06) 0%, transparent 60%);
}

header, .filter-bar, main, .footer-note, .install-banner, .fab-group, .toast {
  position: relative; z-index: 1;
}

/* HEADER */
header {
  background: rgba(26, 22, 18, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--text);
  padding: 14px 16px 12px;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] header { background: rgba(245, 239, 226, 0.85); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px;
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--accent); flex-shrink: 0; font-weight: 700;
  box-shadow: 0 0 0 0 var(--glow-cyan-mid);
  animation: markPulse 3.5s ease-in-out infinite;
}
@keyframes markPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow-cyan-mid); }
  50% { box-shadow: 0 0 0 8px rgba(0,212,255,0); }
}
.brand-text h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px; line-height: 1; letter-spacing: -0.4px; font-weight: 700;
  color: var(--text-strong);
}
.brand-text .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
  margin-top: 3px;
}
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.theme-toggle {
  background: var(--bg-soft);
  border: 1px solid var(--border-hi);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
}
.theme-toggle:hover { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow-cyan); }

.share-btn {
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 13px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: 12px;
  cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: all 0.22s;
}
.share-btn:hover { box-shadow: 0 0 0 4px var(--glow-cyan); }

.install-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 8px 14px;
  border-radius: 8px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 12px;
  cursor: pointer; display: none; align-items: center; gap: 6px; flex-shrink: 0;
  box-shadow: 0 0 0 0 var(--glow-cyan-mid);
  animation: glowpulse 2.6s ease-in-out infinite;
}
.install-btn.show { display: inline-flex; }
@keyframes glowpulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow-cyan-mid); }
  50% { box-shadow: 0 0 0 8px rgba(0,212,255,0); }
}

/* TICKER */
.ticker {
  background: var(--bg-soft);
  border: 1px solid var(--red);
  color: var(--text);
  padding: 10px 13px; border-radius: 10px;
  font-size: 12.5px; font-weight: 500; margin-top: 10px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 0 0 0 var(--glow-red);
  animation: glowpulseRed 2s ease-in-out infinite;
}
@keyframes glowpulseRed {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow-red); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
.ticker .pulse {
  width: 8px; height: 8px; background: var(--red);
  border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 6px var(--red);
  animation: blink 1.6s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* FILTER PILLS */
.filter-bar {
  background: rgba(26, 22, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  position: sticky; top: 96px; z-index: 90;
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .filter-bar { background: rgba(245, 239, 226, 0.88); }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; -ms-overflow-style: none; }
.filters::-webkit-scrollbar { display: none; }
.pill {
  background: var(--bg-soft);
  border: 1px solid var(--border-hi);
  color: var(--text-dim);
  padding: 8px 14px; border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: all 0.22s ease; min-height: 36px;
  display: flex; align-items: center;
}
.pill:hover { color: var(--text); border-color: var(--accent); }
.pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 4px var(--glow-cyan);
}

main { padding: 16px 12px 0; max-width: 1200px; margin: 0 auto; }
@media(min-width: 1024px) { main { display: grid; grid-template-columns: 1fr 360px; gap: 24px; } }

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); margin: 22px 4px 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border-hi), transparent);
}

/* TIDE BAR (uses cyan outline as primary) */
.tide-bar {
  background: var(--bg-soft);
  border: 1px solid rgba(0, 212, 255, 0.30);
  color: var(--text); border-radius: 14px; padding: 14px 16px;
  margin: 0 0 16px; display: none;
  box-shadow: 0 0 0 4px var(--glow-cyan), var(--shadow-soft);
}
.tide-bar.show { display: block; }
.tide-bar h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-strong); font-size: 15px; margin-bottom: 8px; font-weight: 700;
}
.tide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.tide-cell {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.20);
  border-radius: 8px; padding: 7px 4px; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
}
.tide-cell .ev { color: var(--accent); font-weight: 700; display: block; }
.tide-cell .tm { color: var(--text-strong); font-size: 11px; }
.tide-tip { font-size: 12px; margin-top: 10px; line-height: 1.55; color: var(--text-dim); }
.tide-tip a { color: var(--accent); text-decoration: none; }
.tide-tip a:hover { text-decoration: underline; }

/* PRIORITY CARD (red/amber outline) */
.priority-card {
  background: var(--bg-soft);
  border: 1px solid var(--red);
  color: var(--text-strong); border-radius: 16px; padding: 16px 18px; margin-bottom: 18px;
  box-shadow: 0 0 0 4px var(--glow-red), var(--shadow-soft);
  display: flex; align-items: center; gap: 14px;
}
.priority-card .icon { font-size: 28px; flex-shrink: 0; }
.priority-card .text { flex: 1; }
.priority-card .label {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--red);
}
.priority-card .name {
  font-family: 'Space Grotesk', sans-serif; font-size: 17px; line-height: 1.2;
  margin-top: 2px; color: var(--text-strong); font-weight: 700;
}
.priority-card .meta { font-size: 12px; margin-top: 4px; color: var(--text-dim); }
.priority-card button {
  background: var(--red);
  color: white; border: none; padding: 9px 14px; border-radius: 9px;
  font-weight: 700; font-size: 12px; cursor: pointer; flex-shrink: 0; min-height: 38px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.priority-card button:hover { box-shadow: 0 0 0 4px var(--glow-red); }

/* GRID */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1024px) { .grid { grid-template-columns: repeat(2, 1fr); } }

/* CARDS — the s26 entry-card pattern: 4 distinct outline colors, glow on hover ONLY */
.card {
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column; position: relative;
  transform-style: preserve-3d; perspective: 600px;
  box-shadow: var(--shadow-soft);
}
.card.in-trip { box-shadow: 0 0 0 1px var(--a3), 0 0 0 5px var(--glow-emerald), var(--shadow-soft); }
[data-theme="light"] .card { background: var(--card); }

/* 4 outline color families — assigned per category */
.cat-blooms { border-color: rgba(245, 184, 73, 0.40); }
.cat-blooms:hover { border-color: var(--a4); transform: translateY(-4px) rotateX(2deg); box-shadow: var(--shadow-deep), 0 0 30px var(--glow-amber-mid); }
.cat-blooms .card-accent { background: linear-gradient(90deg, var(--a4), transparent); }

.cat-waterfall { border-color: rgba(0, 212, 255, 0.40); }
.cat-waterfall:hover { border-color: var(--accent); transform: translateY(-4px) rotateX(2deg); box-shadow: var(--shadow-deep), 0 0 30px var(--glow-cyan-mid); }
.cat-waterfall .card-accent { background: linear-gradient(90deg, var(--accent), transparent); }

.cat-beach { border-color: rgba(0, 212, 255, 0.40); }
.cat-beach:hover { border-color: var(--accent); transform: translateY(-4px) rotateX(2deg); box-shadow: var(--shadow-deep), 0 0 30px var(--glow-cyan-mid); }
.cat-beach .card-accent { background: linear-gradient(90deg, var(--accent), transparent); }

.cat-camping { border-color: rgba(16, 185, 129, 0.40); }
.cat-camping:hover { border-color: var(--a3); transform: translateY(-4px) rotateX(2deg); box-shadow: var(--shadow-deep), 0 0 30px var(--glow-emerald-mid); }
.cat-camping .card-accent { background: linear-gradient(90deg, var(--a3), transparent); }

.cat-hike { border-color: rgba(16, 185, 129, 0.40); }
.cat-hike:hover { border-color: var(--a3); transform: translateY(-4px) rotateX(2deg); box-shadow: var(--shadow-deep), 0 0 30px var(--glow-emerald-mid); }
.cat-hike .card-accent { background: linear-gradient(90deg, var(--a3), transparent); }

.cat-springs { border-color: rgba(124, 58, 237, 0.40); }
.cat-springs:hover { border-color: var(--a2); transform: translateY(-4px) rotateX(2deg); box-shadow: var(--shadow-deep), 0 0 30px var(--glow-violet-mid); }
.cat-springs .card-accent { background: linear-gradient(90deg, var(--a2), transparent); }

.cat-fishing { border-color: rgba(0, 212, 255, 0.40); }
.cat-fishing:hover { border-color: var(--accent); transform: translateY(-4px) rotateX(2deg); box-shadow: var(--shadow-deep), 0 0 30px var(--glow-cyan-mid); }
.cat-fishing .card-accent { background: linear-gradient(90deg, var(--accent), transparent); }

.cat-wildlife { border-color: rgba(245, 184, 73, 0.40); }
.cat-wildlife:hover { border-color: var(--a4); transform: translateY(-4px) rotateX(2deg); box-shadow: var(--shadow-deep), 0 0 30px var(--glow-amber-mid); }
.cat-wildlife .card-accent { background: linear-gradient(90deg, var(--a4), transparent); }

.cat-scenic { border-color: rgba(124, 58, 237, 0.40); }
.cat-scenic:hover { border-color: var(--a2); transform: translateY(-4px) rotateX(2deg); box-shadow: var(--shadow-deep), 0 0 30px var(--glow-violet-mid); }
.cat-scenic .card-accent { background: linear-gradient(90deg, var(--a2), transparent); }

.cat-coffee { border-color: rgba(245, 184, 73, 0.40); }
.cat-coffee:hover { border-color: var(--a4); transform: translateY(-4px) rotateX(2deg); box-shadow: var(--shadow-deep), 0 0 30px var(--glow-amber-mid); }
.cat-coffee .card-accent { background: linear-gradient(90deg, var(--a4), transparent); }

.card-accent { height: 3px; }
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-meta-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 4px; }
.card-cat-icons { display: flex; gap: 6px; font-size: 14px; }
.status {
  font-size: 9.5px; font-weight: 700; padding: 4px 9px; border-radius: 50px;
  letter-spacing: 0.6px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase;
  border: 1px solid transparent;
}
.s-open, .s-open-peak-bloom {
  background: rgba(16,185,129,0.10); color: var(--a3-bright);
  border-color: rgba(16,185,129,0.30);
}
[data-theme="light"] .s-open, [data-theme="light"] .s-open-peak-bloom { color: var(--a3); }
.s-closing-today {
  background: rgba(239,68,68,0.14); color: var(--text-strong);
  border-color: var(--red);
  animation: blink 1.6s infinite;
}
[data-theme="light"] .s-closing-today { color: var(--red); }
.s-open-partial {
  background: rgba(245,184,73,0.10); color: var(--a4-bright);
  border-color: rgba(245,184,73,0.35);
}
[data-theme="light"] .s-open-partial { color: var(--a4); }
.s-upcoming {
  background: rgba(0,212,255,0.08); color: var(--accent);
  border-color: rgba(0,212,255,0.30);
}
.s-closed {
  background: rgba(110,100,82,0.14); color: var(--muted);
  border-color: rgba(110,100,82,0.35);
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700; line-height: 1.25;
  color: var(--text-strong); margin-bottom: 5px;
}
.card-dist {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  color: var(--text-dim); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.card-dist .sep { color: var(--border-hi); }
.card-desc {
  font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 12px; flex: 1;
}

.card-info {
  background: var(--bg-deeper);
  border: 1px solid var(--border);
  border-radius: 9px; padding: 10px 12px;
  font-size: 12.5px; color: var(--text-dim); line-height: 1.65;
  margin-bottom: 12px;
}
[data-theme="light"] .card-info { background: var(--bg-deeper); }
.card-info strong { color: var(--text-strong); font-weight: 700; }
.card-info .row { display: flex; justify-content: space-between; gap: 6px; padding: 1px 0; }

.status-note {
  background: rgba(124,58,237,0.08);
  border-left: 3px solid var(--a2);
  padding: 9px 12px; border-radius: 0 8px 8px 0;
  font-size: 12px; color: var(--text); margin-bottom: 12px; line-height: 1.5;
}
.status-note.warn {
  background: rgba(239,68,68,0.08);
  border-left-color: var(--red);
}

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.tag {
  font-size: 11px; padding: 4px 9px; border-radius: 5px;
  background: var(--bg-deeper); color: var(--text-dim);
  border: 1px solid var(--border);
  font-weight: 500; font-family: 'JetBrains Mono', monospace;
}

.card-weather {
  background: var(--bg-deeper);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--text); border-radius: 11px; padding: 10px 12px; margin-bottom: 12px;
  font-size: 12.5px; display: flex; align-items: center; gap: 12px;
}
.card-weather .wico { font-size: 24px; }
.card-weather .wmeta { flex: 1; }
.card-weather .wmeta .wtemp {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px;
  color: var(--accent);
}
.card-weather .wmeta .wnotes { font-size: 11.5px; color: var(--text-dim); }

.card-actions {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
  padding: 10px;
  background: var(--bg-deeper);
  border-top: 1px solid var(--border);
}
.act-btn {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border-hi);
  padding: 10px 4px; border-radius: 8px;
  font-size: 11.5px; font-weight: 600; cursor: pointer; min-height: 40px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.act-btn:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--glow-cyan); }
.act-btn:active { transform: scale(0.96); }
.act-btn.add {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
}
.act-btn.add:hover { box-shadow: 0 0 0 4px var(--glow-cyan); }
.act-btn.added {
  background: var(--a3); color: var(--bg); border-color: var(--a3);
}
.act-btn.added:hover { box-shadow: 0 0 0 4px var(--glow-emerald); }
.act-btn .ico { font-size: 13px; }

.map-toggle {
  width: 100%; padding: 11px;
  background: var(--bg-deeper); color: var(--accent);
  border: none; border-top: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; cursor: pointer;
  letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
  transition: all 0.2s;
}
.map-toggle:hover { background: rgba(0,212,255,0.06); }
.map-frame {
  width: 100%; height: 0; border: none;
  transition: height 0.35s cubic-bezier(.2,.8,.2,1);
  display: block;
  border-top: 1px solid var(--border-hi);
}
.map-frame.open { height: 260px; }

/* FAB */
.fab-group {
  position: fixed; bottom: calc(20px + var(--safe-bottom)); right: 16px;
  display: flex; flex-direction: column; gap: 12px; z-index: 95;
}
.fab-discover {
  background: var(--a2);
  color: white; border: none;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  font-size: 24px; font-weight: 300;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 0 0 var(--glow-violet-mid);
  transition: all 0.2s;
  animation: glowpulseViolet 3s ease-in-out infinite;
}
@keyframes glowpulseViolet {
  0%, 100% { box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 0 0 var(--glow-violet-mid); }
  50% { box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 0 8px rgba(124,58,237,0); }
}
.fab-discover:active { transform: scale(0.92); }
.fab-trip {
  background: var(--accent);
  color: var(--bg); border: none; height: 52px; border-radius: 50px;
  padding: 0 20px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 0 0 var(--glow-cyan-mid);
  display: flex; align-items: center; gap: 9px;
  animation: glowpulse 3s ease-in-out infinite;
}
.fab-trip .num {
  background: var(--bg); color: var(--accent);
  border-radius: 50%; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}

/* SHEETS */
.sheet {
  position: fixed; inset: 0;
  background: rgba(17, 13, 10, 0.78);
  z-index: 200; display: none;
  align-items: flex-end;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
[data-theme="light"] .sheet { background: rgba(50, 40, 28, 0.40); }
.sheet.open { display: flex; }
.sheet-content {
  background: var(--bg-soft);
  color: var(--text); width: 100%; max-height: 90vh;
  border-radius: 22px 22px 0 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 18px calc(28px + var(--safe-bottom));
  animation: slideUp 0.32s cubic-bezier(.2,.8,.2,1);
  border-top: 1px solid var(--accent);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.5);
  position: relative;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-handle {
  width: 42px; height: 4px;
  background: var(--border-hi); border-radius: 2px;
  margin: 4px auto 14px;
}
.sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-header h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px; color: var(--text-strong); font-weight: 700;
}
.sheet-close {
  background: var(--bg-deeper);
  border: 1px solid var(--border-hi);
  color: var(--text); width: 36px; height: 36px;
  border-radius: 50%; font-size: 18px; cursor: pointer;
  transition: all 0.2s;
}
.sheet-close:hover { border-color: var(--accent); color: var(--accent); }

.sheet-tabs {
  display: flex; gap: 4px; margin-bottom: 14px;
  background: var(--bg-deeper); padding: 4px; border-radius: 12px;
  border: 1px solid var(--border);
}
.sheet-tab {
  flex: 1; padding: 9px;
  background: transparent; border: none;
  color: var(--text-dim); font-size: 12.5px; font-weight: 600;
  cursor: pointer; border-radius: 9px; font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.sheet-tab:hover { color: var(--text); }
.sheet-tab.active {
  background: var(--accent);
  color: var(--bg);
}

.trip-empty {
  text-align: center; padding: 36px 16px;
  color: var(--text-dim); font-size: 14px; line-height: 1.6;
  border: 1.5px dashed var(--border-hi); border-radius: 12px;
}
.trip-empty .icon {
  font-size: 36px; display: block; margin-bottom: 10px;
}

.trip-meta {
  background: var(--bg-deeper);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 12px;
  margin-bottom: 14px;
  display: flex; justify-content: space-around; text-align: center;
  font-family: 'JetBrains Mono', monospace;
}
.trip-meta .stat { font-size: 10.5px; color: var(--text-dim); letter-spacing: 1px; }
.trip-meta .stat strong {
  color: var(--accent); display: block; font-size: 18px; font-weight: 700;
}

.trip-stop {
  background: var(--bg-deeper);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 13px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
  transition: all 0.2s;
}
.trip-stop:hover { border-color: var(--accent); }
.trip-num {
  background: var(--accent);
  color: var(--bg); border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
}
.trip-stop-text { flex: 1; min-width: 0; }
.trip-stop-name { font-size: 13.5px; font-weight: 600; color: var(--text-strong); line-height: 1.25; }
.trip-stop-meta {
  font-size: 10.5px; color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace; margin-top: 3px;
}
.trip-actions { display: flex; flex-direction: column; gap: 4px; }
.trip-mini {
  background: var(--bg-soft);
  border: 1px solid var(--border-hi);
  color: var(--text);
  width: 28px; height: 26px;
  border-radius: 6px; cursor: pointer; font-size: 14px;
  transition: all 0.15s;
}
.trip-mini:hover { border-color: var(--accent); color: var(--accent); }
.trip-mini.danger { color: var(--red); border-color: rgba(239,68,68,0.3); }
.trip-mini.danger:hover { border-color: var(--red); }
.trip-arrow {
  text-align: center; color: var(--text-dim);
  font-size: 11px; padding: 2px 0;
  font-family: 'JetBrains Mono', monospace;
}
.trip-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.trip-controls button {
  padding: 12px; border-radius: 10px; border: none;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
}
.btn-auto {
  background: var(--a4); color: var(--bg);
}
.btn-auto:hover { box-shadow: 0 0 0 4px var(--glow-amber); }
.btn-clear {
  background: var(--bg-deeper);
  color: var(--red);
  border: 1px solid var(--red) !important;
}
.btn-clear:hover { box-shadow: 0 0 0 3px var(--glow-red); }
.btn-go {
  background: var(--accent);
  color: var(--bg); grid-column: 1 / -1; margin-top: 6px;
}
.btn-go:hover { box-shadow: 0 0 0 4px var(--glow-cyan); }

.activity-content { color: var(--text); font-size: 13.5px; line-height: 1.65; }
.activity-status {
  background: var(--bg-deeper);
  border: 1px solid var(--accent);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
  font-size: 13px; color: var(--text);
  border-left: 3px solid var(--accent);
}
.activity-section { margin-bottom: 20px; }
.activity-section h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.activity-section ul { list-style: none; padding-left: 0; }
.activity-section ul li {
  padding: 6px 0 6px 18px; position: relative;
  font-size: 13.5px; line-height: 1.55; color: var(--text);
}
.activity-section ul li::before {
  content: '▸'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.activity-section.warn h4 { color: var(--red); }
.activity-section.warn ul li::before { color: var(--red); }
.permit-link {
  display: inline-block;
  background: var(--bg-deeper); color: var(--accent);
  padding: 6px 11px; border-radius: 7px;
  margin: 3px 4px 3px 0; text-decoration: none;
  font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(0,212,255,0.30);
  transition: all 0.2s;
}
.permit-link:hover { box-shadow: 0 0 0 3px var(--glow-cyan); }

.activity-chooser { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.activity-chooser button {
  background: var(--bg-deeper);
  border: 1px solid var(--border-hi);
  color: var(--text-dim);
  padding: 11px 13px; border-radius: 10px;
  cursor: pointer; font-family: 'Inter', sans-serif; font-size: 13.5px;
  text-align: left; display: flex; gap: 10px; align-items: center;
  transition: all 0.2s;
}
.activity-chooser button:hover { color: var(--text); border-color: var(--accent); }
.activity-chooser button .ico { font-size: 18px; }
.activity-chooser button.active {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
}

.gear-section h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin: 16px 0 8px;
}
.gear-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  background: var(--bg-deeper);
  border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 5px;
  cursor: pointer; user-select: none;
  transition: all 0.2s;
}
.gear-item:hover { border-color: var(--accent); }
.gear-item.checked { opacity: 0.45; text-decoration: line-through; }
.gear-checkbox {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--accent); font-weight: 700;
}
.gear-item.checked .gear-checkbox {
  background: var(--a3); border-color: var(--a3); color: var(--bg);
}
.gear-text { color: var(--text); font-size: 13.5px; line-height: 1.5; }

.route-wx {
  background: var(--bg-deeper);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
}
.route-wx h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.wx-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px;
  padding: 8px 0; border-top: 1px solid var(--border);
  align-items: center; font-size: 12.5px;
}
.wx-row:first-of-type { border-top: none; }
.wx-row .name { font-weight: 600; color: var(--text-strong); font-size: 12.5px; }
.wx-row .icon { font-size: 18px; }
.wx-row .temp {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent); font-weight: 700;
}
.wx-row .precip { font-size: 11.5px; color: var(--text-dim); }

.modal {
  position: fixed; inset: 0;
  background: rgba(17, 13, 10, 0.78);
  z-index: 250; display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
[data-theme="light"] .modal { background: rgba(50, 40, 28, 0.40); }
.modal.open { display: flex; }
.modal-content {
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  border-radius: 18px;
  width: 100%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; padding: 22px;
  box-shadow: 0 0 0 4px var(--glow-cyan), var(--shadow-deep);
}
.modal-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px; color: var(--text-strong); margin-bottom: 4px; font-weight: 700;
}
.modal-content .modal-sub { font-size: 12.5px; color: var(--text-dim); margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field label {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 13px;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 14.5px;
  color: var(--text);
  background: var(--bg-deeper);
  min-height: 46px;
  transition: all 0.2s;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow-cyan);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.modal-actions button {
  padding: 13px; border-radius: 10px; border: none;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
}
.btn-cancel {
  background: var(--bg-deeper); color: var(--text-dim);
  border: 1px solid var(--border-hi) !important;
}
.btn-save {
  background: var(--accent); color: var(--bg);
}
.btn-save:hover { box-shadow: 0 0 0 4px var(--glow-cyan); }
.rating-row { display: flex; gap: 4px; margin-top: 4px; }
.rating-btn {
  flex: 1; background: var(--bg-deeper);
  border: 1px solid var(--border-hi);
  padding: 10px 4px; border-radius: 8px;
  cursor: pointer; font-weight: 700; color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.15s;
}
.rating-btn:hover { color: var(--accent); }
.rating-btn.sel {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
}

@media(min-width: 1024px) {
  .desktop-trip {
    position: sticky; top: 170px;
    height: fit-content; max-height: calc(100vh - 200px);
    background: var(--bg-soft);
    border: 1px solid var(--accent);
    border-radius: 16px; padding: 18px;
    overflow-y: auto;
    box-shadow: 0 0 0 4px var(--glow-cyan), var(--shadow-soft);
  }
  .fab-trip { display: none; }
  .sheet.trip-sheet { display: none !important; }
  .desktop-trip h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-strong); font-size: 19px; margin-bottom: 4px; font-weight: 700;
  }
  .desktop-trip .sub {
    font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
    letter-spacing: 2px; color: var(--accent); margin-bottom: 16px;
    text-transform: uppercase;
  }
}
@media(max-width: 1023px) { .desktop-trip { display: none; } }

.toast {
  position: fixed; bottom: calc(96px + var(--safe-bottom)); left: 50%;
  transform: translateX(-50%);
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  color: var(--text); padding: 11px 22px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 0 0 4px var(--glow-cyan), var(--shadow-soft);
  z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-8px); }

.empty-msg {
  text-align: center; padding: 40px 16px;
  color: var(--text-dim); font-size: 14.5px;
}
.footer-note {
  padding: 32px 16px 24px; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: var(--muted); line-height: 1.7; letter-spacing: 1.5px;
}

.install-banner {
  position: fixed; left: 16px; right: 16px; bottom: 90px;
  background: var(--bg-soft);
  color: var(--text); padding: 14px 18px; border-radius: 14px;
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 4px var(--glow-cyan), var(--shadow-deep);
  z-index: 110; display: none; align-items: center; gap: 12px;
  animation: slideUp 0.35s cubic-bezier(.2,.8,.2,1);
}
.install-banner.show { display: flex; }
.install-banner .text { flex: 1; font-size: 13px; line-height: 1.35; }
.install-banner .text strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--text-strong);
}
.install-banner button {
  background: var(--accent); color: var(--bg);
  border: none;
  padding: 10px 16px; border-radius: 9px;
  font-weight: 700; font-size: 13px; cursor: pointer;
}
.install-banner .dismiss {
  background: transparent; color: var(--text-dim); padding: 6px;
  border: none;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}
::selection { background: var(--accent); color: var(--bg); }

/* ============= v0.6 ADDITIONS ============= */

.view { min-height: 100vh; }
.view[hidden] { display: none !important; }

/* LOGIN VIEW */
.login-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 20px;
}
.login-main {
  max-width: 460px; margin: 0 auto; padding: 24px 20px 60px;
}
.auth-card {
  background: var(--bg-soft);
  border: 1px solid rgba(0,212,255,0.40);
  border-radius: 18px;
  padding: 32px 26px;
  box-shadow: 0 0 0 4px var(--glow-cyan), var(--shadow-soft);
  margin-top: 28px;
}
.auth-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.auth-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px; font-weight: 700; line-height: 1.15;
  color: var(--text-strong); margin-bottom: 8px;
}
.auth-sub {
  font-size: 14.5px; line-height: 1.6;
  color: var(--text-dim); margin-bottom: 24px;
}
.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.auth-field input {
  width: 100%; padding: 14px;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 15px;
  color: var(--text); background: var(--bg-deeper);
  min-height: 48px;
  transition: all 0.2s;
}
.auth-field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--glow-cyan);
}
.auth-submit {
  width: 100%; padding: 14px;
  background: var(--accent); color: var(--bg);
  border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px;
  cursor: pointer; min-height: 48px;
  transition: all 0.2s;
  margin-top: 6px;
}
.auth-submit:hover:not(:disabled) { box-shadow: 0 0 0 4px var(--glow-cyan); }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-toggle-wrap { text-align: center; margin-top: 18px; }
.auth-toggle-wrap a { color: var(--text-dim); font-size: 13px; text-decoration: none; }
.auth-toggle-wrap a:hover { color: var(--accent); }
.auth-result {
  margin-top: 18px; padding: 14px;
  border-radius: 10px; font-size: 13.5px; line-height: 1.5;
}
.auth-result-ok {
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.40);
  color: var(--text);
}
.auth-result-err {
  background: rgba(239,68,68,0.10);
  border: 1px solid var(--red);
  color: var(--text);
}
.login-footer {
  text-align: center; margin-top: 28px;
  color: var(--text-dim); font-size: 12.5px; line-height: 1.6;
}

/* APP HEADER */
.app-header {
  background: rgba(26,22,18,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  padding: 14px 16px 12px;
}
[data-theme="light"] .app-header { background: rgba(245,239,226,0.88); }

.profile-btn {
  background: var(--bg-soft);
  border: 1px solid var(--border-hi);
  color: var(--accent);
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.profile-btn:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-cyan); }

/* Trip banner */
.trip-banner {
  background: linear-gradient(90deg, rgba(0,212,255,0.10), rgba(124,58,237,0.10));
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 0 0 3px var(--glow-cyan);
}
.trip-banner-info { flex: 1; min-width: 0; }
.trip-banner-label {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent);
}
.trip-banner-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 700;
  color: var(--text-strong); margin-top: 2px;
}
.trip-banner-share {
  background: var(--accent); color: var(--bg); border: none;
  padding: 7px 12px; border-radius: 7px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.trip-banner-exit {
  background: var(--bg-soft); color: var(--text-dim);
  border: 1px solid var(--border-hi);
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; font-size: 16px;
}
.trip-banner-exit:hover { color: var(--red); border-color: var(--red); }

/* Filter dropdown */
.filter-bar {
  position: sticky; top: 78px; z-index: 90;
  background: rgba(26,22,18,0.85); backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .filter-bar { background: rgba(245,239,226,0.88); }
.filter-control {
  background: var(--bg-soft);
  border: 1px solid var(--border-hi);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.filter-control:hover { border-color: var(--accent); color: var(--accent); }
.filter-control .chev { color: var(--text-dim); font-size: 11px; }
.filter-menu {
  position: absolute; top: calc(100% + 4px); left: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 4px var(--glow-cyan);
  z-index: 200;
  min-width: 220px;
  max-height: 70vh; overflow-y: auto;
}
.filter-menu button {
  display: block; width: 100%;
  background: transparent; border: none;
  padding: 10px 12px; text-align: left;
  color: var(--text); font-size: 14px; font-weight: 500;
  cursor: pointer; border-radius: 8px;
  font-family: 'Inter', sans-serif;
}
.filter-menu button:hover { background: var(--bg-deeper); color: var(--accent); }

/* App main */
.app-main { padding: 16px 12px 0; max-width: 800px; margin: 0 auto; }

/* COMPACT CARD */
.card {
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
}
.grid {
  display: flex; flex-direction: column; gap: 10px;
}
.card-collapsed {
  cursor: pointer;
  padding: 14px 16px;
  user-select: none;
}
.card-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 6px;
}
.card-icon {
  font-size: 22px; flex-shrink: 0;
  width: 38px; height: 38px;
  background: var(--bg-soft);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.card-main { flex: 1; min-width: 0; }
.card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--text-strong); line-height: 1.2;
  margin-bottom: 3px;
}
.card-meta-line {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.card-dist {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px;
  color: var(--text-dim);
}
.card-chev {
  color: var(--text-dim); font-size: 14px; flex-shrink: 0;
  transition: transform 0.2s;
}
.card.expanded .card-chev { transform: rotate(180deg); }
.card-oneline {
  font-size: 13px; color: var(--text-dim); line-height: 1.5;
  margin-left: 50px;
  margin-top: 2px;
}

.card-expanded-body {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  animation: expandIn 0.25s ease;
}
@keyframes expandIn { from { opacity: 0; } to { opacity: 1; } }
.card-full-desc {
  font-size: 14px; color: var(--text); line-height: 1.6;
  margin: 12px 0;
}
.card-map {
  width: 100%; height: 220px;
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  margin-top: 12px;
  display: block;
}

/* Profile sheet */
.profile-section {
  text-align: center;
  padding: 20px 0 24px;
}
.profile-avatar {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--accent), var(--a2));
  color: var(--bg);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: 0 0 0 4px var(--glow-cyan);
  margin-bottom: 14px;
}
.profile-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px; font-weight: 700; color: var(--text-strong);
}
.profile-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--text-dim);
  margin-top: 4px;
}

.profile-actions { display: flex; flex-direction: column; gap: 6px; }
.profile-action {
  background: var(--bg-deeper);
  border: 1px solid var(--border-hi);
  color: var(--text);
  padding: 14px 16px; border-radius: 11px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 14.5px; font-weight: 500;
  transition: all 0.18s;
  text-align: left;
}
.profile-action:hover { border-color: var(--accent); }
.profile-action .ico { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; color: var(--accent); }
.profile-action .lbl { flex: 1; }
.profile-action .chev { color: var(--text-dim); font-size: 18px; }

/* Trip list items */
.trip-list-item {
  background: var(--bg-deeper);
  border: 1px solid var(--border-hi);
  border-radius: 11px;
  padding: 14px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s;
}
.trip-list-item:hover { border-color: var(--accent); }
.trip-list-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px; font-weight: 700; color: var(--accent);
  background: var(--bg-soft);
  padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--accent);
  flex-shrink: 0;
}
.trip-list-info { flex: 1; min-width: 0; }
.trip-list-name { font-weight: 700; color: var(--text-strong); font-size: 14.5px; }
.trip-list-meta { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; font-family: 'JetBrains Mono', monospace; }

.trip-members-row {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.member-chip {
  background: rgba(0,212,255,0.10); color: var(--accent);
  border: 1px solid rgba(0,212,255,0.30);
  padding: 5px 10px; border-radius: 50px;
  font-size: 11.5px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.fab-trip[hidden] { display: none !important; }

/* ── Feedback FAB ── */
.fab-feedback {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--a4);
  color: var(--a4);
  font-size: 19px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px var(--glow-amber), 0 4px 12px rgba(0,0,0,0.4);
  transition: box-shadow 0.2s, transform 0.15s;
}
.fab-feedback:hover { box-shadow: 0 0 0 5px var(--glow-amber-mid), 0 4px 18px rgba(0,0,0,0.5); }
.fab-feedback:active { transform: scale(0.92); }

/* ── Feedback sheet ── */
.fb-intro {
  font-size: 12.5px; color: var(--text-dim);
  margin: 0 0 14px 0; line-height: 1.5;
}

.fb-cats { display: flex; flex-direction: column; gap: 8px; }
.fb-cat {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-deeper);
  border: 1.5px solid var(--border);
  border-radius: 10px; padding: 11px 13px;
  cursor: pointer; text-align: left; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fb-cat:hover { border-color: var(--a4); }
.fb-cat.selected {
  border-color: var(--a4);
  box-shadow: 0 0 0 3px var(--glow-amber);
  background: var(--bg-card);
}
.fb-cat-icon { font-size: 18px; flex-shrink: 0; line-height: 1; }
.fb-cat-info { display: flex; flex-direction: column; gap: 2px; }
.fb-cat-info strong { font-size: 13px; font-weight: 700; color: var(--text); }
.fb-cat-info span { font-size: 11.5px; color: var(--text-dim); line-height: 1.4; }

.fb-ctx {
  font-size: 11.5px; color: var(--text-dim);
  background: var(--bg-deeper); border-radius: 6px;
  padding: 6px 10px; margin-top: 6px;
}
.fb-ctx-label { font-weight: 600; }

/* ── Admin notes list ── */
.fb-note {
  background: var(--bg-deeper);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px;
  margin-bottom: 9px;
}
.fb-note-header {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 5px; flex-wrap: wrap;
}
.fb-note-cat {
  font-size: 11.5px; font-weight: 700;
  color: var(--a4); text-transform: capitalize;
}
.fb-note-who {
  font-size: 11.5px; color: var(--text-dim); margin-left: auto;
}
.fb-note-time {
  font-size: 10.5px; color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}
.fb-note-ctx {
  font-size: 11px; color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 5px;
}
.fb-note-comment { font-size: 13px; color: var(--text); line-height: 1.5; }

@media(min-width: 900px) {
  .grid {
    flex-direction: row; flex-wrap: wrap; align-items: flex-start;
  }
  .card { flex: 1 1 calc(50% - 5px); max-width: calc(50% - 5px); }
}
