/* ═══════════════════════════════════════════════════════════════
   KULTURRADAR — Monochrome Luxury UI
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:           #07070a;
  --surface:      #0c0c10;
  --surface-2:    #111116;
  --surface-3:    #18181e;
  --border:       rgba(255,255,255,0.05);
  --border-hover: rgba(255,255,255,0.10);
  --text:         #a8a8b0;
  --text-strong:  #e0ddd6;
  --text-muted:   #4e4e58;
  --text-faint:   #28282e;
  --warm:         #f0ebe3;
  --warm-dim:     rgba(240,235,227,0.06);
  --accent:       #8fbccc;
  --text-soft:    #7a7a84;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Outfit', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --ease:         cubic-bezier(0.25, 0, 0.2, 1);
  --radius:       3px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; background: transparent; border: none; outline: none; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,7,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1000px; margin: 0 auto;
  padding: 0 2rem;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 400;
  color: var(--warm);
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 0; }
.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--warm); }
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -1px; left: 1rem; right: 1rem;
  height: 1px; background: var(--warm);
  opacity: 0.4;
}

main {
  max-width: 1000px; margin: 0 auto;
  padding: 96px 2rem 4rem;
  min-height: 100vh;
}

.view-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.view-header h1 {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 300;
  color: var(--warm);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.view-header .count {
  font-size: 0.75rem; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-pill {
  padding: 0.4rem 0.9rem;
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--border-hover); color: var(--text); }
.filter-pill.active {
  background: var(--warm-dim);
  border-color: rgba(240,235,227,0.15);
  color: var(--warm);
}

.event-list { display: flex; flex-direction: column; gap: 1px; }
.event-card {
  background: var(--surface);
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  animation: fadeUp 0.4s var(--ease) both;
}
.event-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}
.event-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.event-type {
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
}
.event-score {
  font-family: var(--font-mono);
  font-size: 0.7rem; color: var(--text-muted);
}
.event-score-bar {
  display: inline-block; width: 40px; height: 2px;
  background: var(--text-faint);
  border-radius: 1px; margin-right: 0.5rem;
  vertical-align: middle; position: relative;
  overflow: hidden;
}
.event-score-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: var(--text-muted);
  border-radius: 1px;
  transition: width 0.5s var(--ease);
}
.event-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 400;
  color: var(--text-strong);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.event-card-venue {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.event-card-venue span { color: var(--text); }
.event-card-dates {
  font-size: 0.75rem; color: var(--text-muted);
  margin-bottom: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.event-card-summary {
  font-size: 0.82rem; line-height: 1.65;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: 600px;
}
.event-card-image {
  margin: 0.75rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 220px;
}
.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.event-card-image img.loaded { opacity: 1; }

.event-card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding: 0.2rem 0.55rem;
  background: var(--warm-dim);
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.tag:hover { border-color: var(--border-hover); color: var(--text); }
.tag.tag-active {
  background: var(--warm-dim);
  border-color: rgba(240,235,227,0.15);
  color: var(--warm);
}

.tag-filter-bar {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem; margin-top: -1.5rem;
}
.tag-filter-label {
  font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
}
.tag-filter-active {
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  background: var(--warm-dim);
  border: 1px solid rgba(240,235,227,0.15);
  border-radius: 2px;
  color: var(--warm);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.tag-filter-active:hover { color: var(--text); border-color: var(--border-hover); }

.venue-grid { display: flex; flex-direction: column; gap: 1px; }
.venue-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.75rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  transition: all 0.3s var(--ease);
  animation: fadeUp 0.35s var(--ease) both;
}
.venue-card:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
}
.venue-info { flex: 1; min-width: 0; }
.venue-name {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 400;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.venue-meta {
  font-size: 0.72rem; color: var(--text-muted);
  display: flex; gap: 0.75rem; align-items: center;
}
.venue-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #4ade80; display: inline-block;
}
.venue-dot.inactive { background: var(--text-faint); }
.venue-type-badge {
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  white-space: nowrap;
}
.venue-events {
  width: 100%;
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.3rem;
}
.venue-event-row {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-size: 0.7rem; color: var(--text-muted);
  line-height: 1.3;
}
.venue-event-row .ev-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-faint);
  white-space: nowrap;
  min-width: 4.5em;
}
.venue-event-row .ev-type {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0.7;
  white-space: nowrap;
}
.venue-event-row .ev-title {
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.venue-events-more {
  font-size: 0.6rem;
  color: var(--text-faint);
  font-style: italic;
}
.venue-actions { display: flex; gap: 0.5rem; }
.btn-icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: all 0.2s var(--ease);
}
.btn-icon:hover { border-color: var(--border-hover); color: var(--text); background: var(--surface-2); }

.cal-nav {
  display: flex; align-items: center; gap: 2rem;
  margin-bottom: 2.5rem;
}
.cal-nav button {
  font-size: 0.75rem; color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}
.cal-nav button:hover { color: var(--text); border-color: var(--border-hover); }
.cal-month-label {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 300;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}
.cal-day-header {
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
  text-align: center; padding: 0.5rem;
}
.cal-day {
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 300;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  cursor: default; position: relative;
  gap: 4px;
}
.cal-day.other-month { color: var(--text-faint); }
.cal-day.today { color: var(--warm); border-color: rgba(240,235,227,0.12); }
.cal-day { cursor: pointer; }
.cal-day:hover { background: var(--surface); border-color: var(--border); }
.cal-day.other-month { cursor: default; }
.cal-day.other-month:hover { background: transparent; border-color: transparent; }
.cal-day.selected {
  background: var(--surface-2);
  border-color: rgba(240,235,227,0.18);
  color: var(--warm);
}
.cal-dots { display: flex; gap: 3px; }
.cal-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-muted);
}
.cal-day.today .cal-dot { background: var(--warm); }
.cal-day.selected .cal-dot { background: var(--warm); }
.cal-day-events {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.cal-day-events-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.5rem;
}
.cal-day-events-date {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 300;
  color: var(--warm);
}
.cal-day-events-count {
  font-size: 0.75rem; font-weight: 300;
  color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase;
}
.cal-discovery-prompt {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.cal-discovery-btn {
  width: 100%;
  padding: 0.9rem 1.2rem;
  font-size: 0.84rem; font-weight: 300;
  color: var(--warm);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.02em;
}
.cal-discovery-btn:hover {
  background: var(--surface-2);
  border-color: rgba(240,235,227,0.15);
}

/* ── Discovery Flow ────────────────────────────────────── */
.discovery-step {
  margin-top: 1.5rem;
  animation: fadeIn 0.3s var(--ease);
}
.discovery-step.searching {
  text-align: center;
  padding: 4rem 0;
}
.discovery-searching-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.discovery-question {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 300;
  color: var(--warm);
  margin-bottom: 1.5rem;
}
.discovery-searching-sub {
  font-size: 0.84rem; color: var(--text-muted);
  margin-top: 0.5rem;
}
.discovery-options {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.discovery-option {
  padding: 0.7rem 1.2rem;
  font-size: 0.84rem; font-weight: 300;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.discovery-option:hover {
  color: var(--warm);
  background: var(--surface-2);
  border-color: rgba(240,235,227,0.15);
}
.discovery-option.surprise {
  color: var(--warm);
  border-color: rgba(240,235,227,0.1);
}
.discovery-option.subtle {
  color: var(--text-muted);
  font-size: 0.78rem;
}
.discovery-option.primary {
  color: var(--warm);
  border-color: rgba(240,235,227,0.2);
  background: var(--surface-2);
}
.discovery-custom-city {
  display: flex; gap: 0.5rem;
  margin-top: 0.5rem;
}
.discovery-city-input {
  flex: 1;
  padding: 0.7rem 1rem;
  font-size: 0.84rem; font-weight: 300;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.discovery-city-input:focus {
  border-color: rgba(240,235,227,0.15);
  outline: none;
}
.discovery-steps-indicator {
  display: flex; gap: 6px;
  justify-content: center;
  margin-top: 2.5rem;
}
.discovery-step-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: background 0.2s var(--ease);
}
.discovery-step-dot.active { background: var(--warm); }
.discovery-step-dot.done { background: var(--text-muted); }

/* Discovery map */
.discovery-map {
  height: 280px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.discovery-location-btns {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}

/* Discovery results */
.discovery-results-map {
  height: 250px;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.discovery-tiles {
  display: flex; flex-direction: column;
  gap: 1rem;
}
.discovery-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: border-color 0.2s var(--ease);
}
.discovery-tile:hover {
  border-color: var(--border-hover);
}
.discovery-tile-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.6rem;
}
.discovery-tile-score {
  font-size: 0.72rem; font-weight: 300;
  color: var(--text-muted);
}
.discovery-tile-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 300;
  color: var(--text-strong);
  margin-bottom: 0.4rem;
}
.discovery-tile-venue {
  font-size: 0.8rem; color: var(--text-soft);
  margin-bottom: 0.3rem;
}
.discovery-tile-time {
  font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.discovery-tile-distance {
  margin-bottom: 0.4rem;
}
.distance-value {
  font-size: 0.78rem; font-weight: 400;
  color: var(--text-soft);
}
.discovery-tile-modes {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.discovery-mode-link {
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}
.discovery-mode-link:hover {
  color: var(--warm);
  border-color: rgba(240,235,227,0.12);
}
.discovery-tile-desc {
  font-size: 0.8rem; color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}
.discovery-tile-link {
  font-size: 0.78rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s var(--ease);
}
.discovery-tile-link:hover { color: var(--warm); }

/* ── Chat UI ────────────────────────────────────────────── */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 160px);
  min-height: 400px;
}
.chat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
.chat-toolbar-left {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.chat-toolbar-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.chat-history-btn {
  padding: 0.35rem 0.8rem;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.chat-history-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.chat-history-btn.active {
  background: var(--warm-dim);
  border-color: rgba(240,235,227,0.15);
  color: var(--warm);
}
.chat-history-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.chat-history-panel.open {
  max-height: 300px;
  overflow-y: auto;
  padding: 0.5rem 0;
  border-bottom-color: var(--border);
}
.chat-history-panel::-webkit-scrollbar { width: 3px; }
.chat-history-panel::-webkit-scrollbar-track { background: transparent; }
.chat-history-panel::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 2px; }
.chat-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}
.chat-history-row:hover {
  background: var(--surface);
}
.chat-history-row.current {
  background: var(--warm-dim);
}
.chat-history-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.chat-history-title {
  font-size: 0.78rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-history-row.current .chat-history-title {
  color: var(--warm);
}
.chat-history-meta {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  color: var(--text-faint);
  margin-top: 0.15rem;
}
.chat-history-del {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-faint);
  border-radius: var(--radius);
  opacity: 0;
  transition: all 0.15s var(--ease);
}
.chat-history-row:hover .chat-history-del {
  opacity: 1;
}
.chat-history-del:hover {
  color: rgba(255,80,80,0.7);
  background: rgba(255,80,80,0.08);
}
.chat-history-loading,
.chat-history-empty {
  font-size: 0.72rem;
  color: var(--text-faint);
  padding: 1rem 0.6rem;
  text-align: center;
  font-style: italic;
}
.model-toggle {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.model-toggle button {
  padding: 0.35rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.model-toggle button.active {
  background: var(--warm-dim);
  color: var(--text-strong);
}
.model-toggle button:hover:not(.active) {
  color: var(--text);
}
.chat-status {
  font-size: 0.62rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 2px; }
.chat-bubble {
  max-width: 85%;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.84rem;
  line-height: 1.7;
  animation: chatFadeIn 0.3s var(--ease);
}
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-bubble.user {
  align-self: flex-end;
  background: var(--warm-dim);
  color: var(--text-strong);
  border: 1px solid rgba(240,235,227,0.08);
}
.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.chat-bubble.assistant p { margin-bottom: 0.6em; }
.chat-bubble.assistant p:last-child { margin-bottom: 0; }
.chat-bubble.assistant strong { color: var(--text-strong); font-weight: 500; }
.chat-bubble.assistant ul, .chat-bubble.assistant ol {
  padding-left: 1.2em;
  margin: 0.4em 0;
}
.chat-bubble.assistant li { margin-bottom: 0.3em; }
.chat-bubble.assistant code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--surface-2);
  padding: 0.15em 0.4em;
  border-radius: 2px;
}
/* ── Rich chat content ────────────────────────────────────── */
.chat-bubble.assistant pre {
  background: var(--surface-2);
  padding: 1em;
  border-radius: 4px;
  overflow-x: auto;
  margin: 0.6em 0;
  border: 1px solid var(--border);
}
.chat-bubble.assistant pre code {
  background: none;
  padding: 0;
  font-size: 0.76rem;
  line-height: 1.6;
}
.chat-bubble.assistant table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8em 0;
  font-size: 0.78rem;
}
.chat-bubble.assistant th {
  background: var(--surface-3);
  text-align: left;
  padding: 0.5em 0.8em;
  font-weight: 500;
  color: var(--text-strong);
  border-bottom: 1px solid var(--border-hover);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}
.chat-bubble.assistant td {
  padding: 0.45em 0.8em;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
}
.chat-bubble.assistant tr:hover td {
  background: var(--warm-dim);
}
.chat-bubble.assistant a {
  color: var(--warm);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(240,235,227,0.3);
  transition: text-decoration-color 0.2s var(--ease);
}
.chat-bubble.assistant a:hover {
  text-decoration-color: var(--warm);
}
.chat-bubble.assistant h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-strong);
  margin: 1.2em 0 0.4em;
  letter-spacing: -0.01em;
}
.chat-bubble.assistant h3:first-child { margin-top: 0; }
.chat-bubble.assistant h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-strong);
  margin: 1em 0 0.3em;
}
.chat-bubble.assistant h5 {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.8em 0 0.3em;
}
.chat-bubble.assistant hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
  margin: 1.2em 0;
}
.chat-bubble.assistant blockquote {
  border-left: 2px solid var(--warm);
  padding-left: 1em;
  margin: 0.6em 0;
  color: var(--text);
  font-style: italic;
  opacity: 0.85;
}
.chat-bubble.assistant ol {
  padding-left: 1.4em;
  margin: 0.4em 0;
  list-style-type: decimal;
}
.chat-bubble.assistant ol li {
  margin-bottom: 0.3em;
  padding-left: 0.2em;
}
.chat-bubble.system {
  align-self: center;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.4rem 0.8rem;
  border: 1px dashed var(--border);
  font-style: italic;
}
.chat-meta {
  align-self: flex-start;
  display: flex;
  gap: 1rem;
  padding: 0.2rem 0.4rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  opacity: 0.5;
  margin-top: -0.3rem;
  margin-bottom: 0.5rem;
}
.chat-typing {
  align-self: flex-start;
  padding: 0.8rem 1.2rem;
  display: flex;
  gap: 0.35rem;
  animation: chatFadeIn 0.3s var(--ease);
}
.chat-typing span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.25; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}
/* Action cards — distinct from chat bubbles */
.action-card {
  background: rgba(240,235,227,0.04);
  border: 1.5px solid rgba(240,235,227,0.12);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  animation: chatFadeIn 0.3s var(--ease);
}
.action-card .action-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.action-card .action-icon {
  font-size: 1rem;
  opacity: 0.7;
}
.action-card .action-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-strong);
  flex: 1;
}
.action-card .action-type {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border: 1px solid rgba(240,235,227,0.08);
  border-radius: 6px;
}
.action-card .action-url {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 100%;
  transition: color 0.2s;
}
.action-card .action-url:hover {
  color: var(--text);
}
.action-buttons {
  display: flex;
  gap: 0.5rem;
}
.action-btn {
  padding: 0.55rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text);
  letter-spacing: 0.02em;
}
.action-btn.confirm {
  border-color: rgba(120,200,120,0.25);
  color: rgba(120,200,120,0.9);
  background: rgba(120,200,120,0.06);
}
.action-btn.confirm:hover {
  background: rgba(120,200,120,0.12);
  border-color: rgba(120,200,120,0.4);
}
.action-btn.reject {
  color: var(--text-muted);
  border-color: rgba(240,235,227,0.08);
}
.action-btn.reject:hover {
  background: rgba(255,80,80,0.06);
  border-color: rgba(255,80,80,0.2);
  color: rgba(255,80,80,0.7);
}
.action-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.action-result {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}
.action-result.success {
  color: rgba(120,200,120,0.9);
  background: rgba(120,200,120,0.06);
}
.action-result.error {
  color: rgba(255,100,100,0.8);
  background: rgba(255,100,100,0.06);
}
/* Mini map for add_venue action cards */
.action-minimap-wrap {
  margin: 0.6rem 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.action-minimap {
  width: 100%;
  height: 140px;
  background: var(--surface-2);
}
.action-minimap-status {
  padding: 0.4rem 0.7rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  background: var(--surface);
}
.action-minimap-address {
  padding: 0.4rem 0.7rem;
  font-size: 0.7rem;
  color: var(--text);
  font-weight: 300;
  background: var(--surface);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
/* Chat input */
.chat-input-area {
  display: flex;
  gap: 0.6rem;
  padding: 1rem 0 0 0;
  border-top: 1px solid var(--border);
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--text-strong);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  resize: none;
  min-height: 42px;
  max-height: 120px;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease);
}
.chat-input:focus {
  outline: none;
  border-color: rgba(240,235,227,0.12);
}
.chat-input::placeholder { color: var(--text-faint); }
.chat-send-btn {
  padding: 0.7rem 1.2rem;
  background: var(--warm-dim);
  border: 1px solid rgba(240,235,227,0.1);
  border-radius: var(--radius);
  color: var(--text-strong);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.chat-send-btn:hover {
  background: rgba(240,235,227,0.1);
  border-color: rgba(240,235,227,0.18);
}
.chat-send-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
}
.btn:hover { border-color: var(--border-hover); background: var(--surface-2); }
.btn-primary {
  background: var(--warm);
  color: var(--bg);
  border-color: var(--warm);
}
.btn-primary:hover { opacity: 0.85; background: var(--warm); }
.btn:disabled { opacity: 0.3; cursor: not-allowed; }

.profile-section { margin-bottom: 3rem; }
.profile-section-title {
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.2rem;
}
.interest-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.interest-tag {
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem; font-weight: 300;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  display: flex; align-items: center; gap: 0.5rem;
  transition: all 0.2s var(--ease);
}
.interest-tag:hover { border-color: var(--border-hover); }
.interest-tag .remove {
  font-size: 0.65rem; color: var(--text-faint);
  cursor: pointer; transition: color 0.2s;
  line-height: 1;
}
.interest-tag .remove:hover { color: var(--text); }
.add-interest {
  display: flex; gap: 0.5rem;
  margin-top: 1rem;
}
.add-interest input {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-strong);
  flex: 1; max-width: 280px;
}
.add-interest input::placeholder { color: var(--text-faint); }
.add-interest input:focus { border-color: var(--border-hover); }

.slider-row {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 0.5rem;
}
.slider-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 200px; height: 2px;
  background: var(--text-faint); border-radius: 1px;
  outline: none;
}
.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--warm);
  cursor: pointer;
}
.slider-value {
  font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--text-muted);
  min-width: 2.5rem;
}

.toggle-row {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.78rem; color: var(--text);
}
.toggle {
  width: 36px; height: 20px;
  background: var(--text-faint); border-radius: 10px;
  position: relative; cursor: pointer;
  transition: background 0.25s var(--ease);
}
.toggle.on { background: rgba(240,235,227,0.25); }
.toggle::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.25s var(--ease);
}
.toggle.on::after { left: 19px; background: var(--warm); }

.form-inline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  display: none;
  animation: fadeUp 0.3s var(--ease);
}
.form-inline.open { display: block; }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1rem;
}
.form-field label {
  display: block;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.form-field input, .form-field select {
  width: 100%; padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-strong);
}
.form-field input:focus, .form-field select:focus { border-color: var(--border-hover); }
.form-field select option { background: var(--surface-2); }

.status-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px; margin-top: 1rem;
}
.status-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.status-label {
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
}
.status-value {
  font-size: 0.82rem; color: var(--text);
  display: flex; align-items: center; gap: 0.4rem;
}

.loading { display: flex; flex-direction: column; gap: 1px; }
.skeleton {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 120px;
  animation: pulse 1.5s ease-in-out infinite;
}

.empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-faint);
}
.empty h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.empty p { font-size: 0.82rem; }

.result-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  animation: fadeUp 0.4s var(--ease);
}
.result-panel h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400;
  color: var(--text-strong);
  margin-bottom: 1.5rem;
}

.suggestion-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  animation: fadeUp 0.4s var(--ease);
  transition: border-color 0.25s var(--ease);
  position: relative;
}
.suggestion-card:hover { border-color: var(--border-hover); }
.suggestion-card-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.6rem;
}
.suggestion-card-top .venue-type-badge {
  font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.suggestion-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 400;
  color: var(--text-strong);
  margin-bottom: 0.3rem;
}
.suggestion-card-city {
  font-size: 0.72rem; color: var(--text-muted);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.suggestion-card-reason {
  font-size: 0.8rem; color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.suggestion-card-actions {
  display: flex; gap: 0.5rem; align-items: center;
  margin-top: 0.4rem;
}
.suggestion-card-tags {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin-bottom: 0.8rem;
}
.suggestion-card-tags .tag {
  font-size: 0.62rem;
  color: var(--text-faint);
  padding: 0.15rem 0.4rem;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 2px;
}
.btn-add {
  padding: 0.4rem 1rem;
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--warm);
  border-radius: var(--radius);
  color: var(--warm);
  transition: all 0.25s var(--ease);
}
.btn-add:hover { background: var(--warm); color: var(--bg); }
.btn-add.added {
  border-color: var(--text-faint);
  color: var(--text-muted);
  cursor: default;
}
.btn-link {
  padding: 0.4rem 0.8rem;
  font-size: 0.65rem; font-weight: 300;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}
.btn-link:hover { border-color: var(--border-hover); color: var(--text); }
.suggestions-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.suggestions-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
}
.suggestions-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 300;
  color: var(--text-strong);
}
.suggestion-grid {
  display: flex; flex-direction: column; gap: 1px;
}
.generating-indicator {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.generating-indicator .spinner {
  width: 14px; height: 14px;
  border: 1.5px solid var(--text-faint);
  border-top-color: var(--warm);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 0.3; }
}

@media (max-width: 640px) {
  main { padding: 80px 1.25rem 3rem; }
  .nav-inner { padding: 0 1.25rem; }
  .nav-link { padding: 0.5rem 0.6rem; font-size: 0.65rem; }
  .view-header h1 { font-size: 2rem; }
  .event-card { padding: 1.25rem 1.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .venue-card { flex-direction: column; align-items: flex-start; }
  .event-card-image { max-height: 140px; }
}
/* ── Map View ─────────────────────────────────────────────── */
#map-container {
  width: 100%;
  height: calc(100vh - 56px - 4rem);
  min-height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* Leaflet dark-theme overrides */
.leaflet-container { background: var(--bg) !important; }
.leaflet-popup-content-wrapper {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-radius: 6px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
  border: 1px solid var(--border) !important;
}
.leaflet-popup-tip { background: var(--surface-2) !important; }
.leaflet-popup-content { margin: 0.8rem 1rem !important; font-family: var(--font-body) !important; font-size: 0.8rem !important; }
.leaflet-popup-close-button { color: var(--text-muted) !important; }
.leaflet-popup-close-button:hover { color: var(--warm) !important; }
.leaflet-control-zoom a {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
.leaflet-control-zoom a:hover { background: var(--surface-3) !important; color: var(--warm) !important; }
.leaflet-control-attribution { background: rgba(7,7,10,0.7) !important; color: var(--text-faint) !important; font-size: 0.6rem !important; }
.leaflet-control-attribution a { color: var(--text-muted) !important; }

.map-popup-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--warm);
  margin-bottom: 0.3rem;
}
.map-popup-type {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.map-popup-city {
  font-size: 0.75rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.map-popup-events {
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin-bottom: 0.6rem;
}
.map-popup-event {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.map-popup-gmaps {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--warm);
  background: rgba(240,235,227,0.06);
  border: 1px solid rgba(240,235,227,0.12);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.map-popup-gmaps:hover {
  background: rgba(240,235,227,0.12);
  border-color: rgba(240,235,227,0.25);
}

/* ── Expandable Venue Cards ──────────────────────────────── */
.venue-header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.venue-card.expanded {
  border-color: var(--border-hover);
}
.venue-detail {
  overflow: hidden;
  max-height: 600px;
  transition: max-height 0.35s var(--ease), opacity 0.25s, padding 0.3s;
  opacity: 1;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.venue-detail.collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  border-top-color: transparent;
  margin-top: 0;
}
.venue-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.venue-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  color: var(--warm);
  background: rgba(240,235,227,0.05);
  border: 1px solid rgba(240,235,227,0.1);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.03em;
}
.venue-link:hover {
  background: rgba(240,235,227,0.1);
  border-color: rgba(240,235,227,0.2);
}
.venue-extra-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}
.venue-notes {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.8rem;
}
.venue-notes-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.3rem;
}
.venue-notes p {
  font-size: 0.8rem;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
}
.venue-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem;
}
.venue-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.meta-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.meta-value {
  font-size: 0.78rem;
  color: var(--text);
}
.meta-value.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Venue Detail Page ──────────────────────────────────── */
.venue-detail-back {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s var(--ease);
}
.venue-detail-back:hover {
  color: var(--warm);
}
.venue-detail-header {
  margin-bottom: 1.5rem;
}
.venue-detail-header h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--warm);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.venue-detail-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.venue-detail-checked {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.venue-detail-map-wrap {
  margin-bottom: 2rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.venue-detail-map {
  width: 100%;
  height: 200px;
  background: var(--surface-2);
}
/* ── Venue Name Links (in event cards) ─────────────────── */
.venue-name-link {
  color: var(--warm);
  text-decoration: underline;
  text-decoration-color: rgba(240,235,227,0.2);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s var(--ease);
}
.venue-name-link:hover {
  text-decoration-color: rgba(240,235,227,0.6);
}
/* ── Map Popup Venue Link ──────────────────────────────── */
.map-popup-venue-link {
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s var(--ease);
}
.map-popup-venue-link:hover {
  opacity: 0.8;
}
.map-popup-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ── Enhanced Action Cards ───────────────────────────────── */
.action-params {
  margin: 0.5rem 0;
  padding: 0.5rem 0.7rem;
  background: var(--surface-2);
  border-radius: 4px;
  font-size: 0.75rem;
}
.action-param-row {
  display: flex;
  gap: 0.6rem;
  padding: 0.15rem 0;
}
.param-key {
  color: var(--text-muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 50px;
  flex-shrink: 0;
}
.param-val {
  color: var(--text);
  word-break: break-all;
}
.action-result-rich {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.action-venue-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.action-rich-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  color: var(--warm);
  background: rgba(240,235,227,0.06);
  border: 1px solid rgba(240,235,227,0.12);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.action-rich-link:hover {
  background: rgba(240,235,227,0.12);
  border-color: rgba(240,235,227,0.25);
}
.action-crawl-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
}
.spinner-small {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--warm);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

/* ── Language Tags (Profile) ─────────────────────────────── */
.lang-tags {
  gap: 0.4rem !important;
}
.lang-tag {
  cursor: pointer;
  transition: all 0.2s var(--ease);
  opacity: 0.4;
  border-style: dashed;
}
.lang-tag.active {
  opacity: 1;
  border-style: solid;
  background: rgba(240,235,227,0.08);
  border-color: var(--warm);
}
.lang-tag:hover {
  opacity: 0.8;
  border-color: var(--warm);
}
.main-lang-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
}
.main-lang-row label {
  font-size: 0.78rem;
  color: var(--text);
  white-space: nowrap;
}
.main-lang-select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.main-lang-select:focus {
  outline: none;
  border-color: var(--warm);
}
.profile-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
  font-style: italic;
  line-height: 1.4;
}


/* ═══════════════════════════════════════════════════════════════════════════
   REVIEW / FEEDBACK WIDGET
   ═══════════════════════════════════════════════════════════════════════════ */

/* Floating Action Button */
.review-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.review-fab:hover {
  background: var(--warm-dim);
  border-color: var(--warm);
  color: var(--warm);
  transform: scale(1.08);
}
.review-fab.active {
  background: var(--warm);
  color: var(--bg);
  border-color: var(--warm);
}

/* Panel */
.review-panel {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 100;
  width: 360px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  animation: reviewSlideUp 0.25s var(--ease);
}

@keyframes reviewSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.review-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-strong);
}
.review-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.review-close:hover { color: var(--text); }

.review-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem;
}

/* Tiles */
.review-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.review-tiles-pages {
  grid-template-columns: repeat(4, 1fr);
}
.review-tile {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.3rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-size: 0.75rem;
  color: var(--text);
}
.review-tile:hover {
  border-color: var(--border-hover);
  background: var(--surface-3);
}
.review-tile.selected {
  background: var(--warm-dim);
  border-color: var(--warm);
  color: var(--warm);
}
.review-tile-icon {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.review-tile-label {
  font-size: 0.72rem;
  font-weight: 500;
}
.review-tile-sm {
  padding: 0.4rem 0.2rem;
  font-size: 0.68rem;
}

/* Feature tiles — more compact, wrap nicely */
.review-tiles-features {
  grid-template-columns: repeat(3, 1fr);
}
.review-tile-feature {
  padding: 0.35rem 0.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.01em;
}
.review-tile-plus {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
}
.review-tile-plus.selected {
  color: var(--warm);
}

/* Custom feature input */
.review-custom-input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.45rem 0.6rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  transition: border-color 0.2s;
}
.review-custom-input:focus {
  outline: none;
  border-color: var(--warm);
}
.review-custom-input::placeholder {
  color: var(--text-muted);
}

/* Textarea */
.review-textarea {
  width: 100%;
  min-height: 70px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.6rem;
  resize: vertical;
  transition: border-color 0.2s;
}
.review-textarea:focus {
  outline: none;
  border-color: var(--border-hover);
}
.review-textarea::placeholder {
  color: var(--text-muted);
}

/* Screenshot */
.review-screenshot-section {
  margin: 0.75rem 0;
}
.review-screenshot-btn {
  width: 100%;
  padding: 0.5rem;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.review-screenshot-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
.review-screenshot-preview {
  position: relative;
  display: inline-block;
}
.review-screenshot-thumb {
  max-width: 100%;
  max-height: 120px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
}
.review-screenshot-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Submit */
.review-submit {
  width: 100%;
  padding: 0.65rem;
  background: var(--warm-dim);
  border: 1px solid var(--warm);
  border-radius: 6px;
  color: var(--warm);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.5rem;
}
.review-submit:hover {
  background: var(--warm);
  color: var(--bg);
}
.review-submit.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Success */
.review-success {
  text-align: center;
  padding: 2rem 1rem;
}
.review-success-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.review-success-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-strong);
}
.review-success-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ── Annotation Canvas Overlay ── */
.annotation-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(7, 7, 10, 0.15);
}
.annotation-canvas {
  position: absolute;
  inset: 0;
  cursor: crosshair;
}
.annotation-toolbar {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 201;
  display: flex;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.annotation-btn {
  padding: 0.4rem 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.annotation-btn:hover {
  border-color: var(--border-hover);
  background: var(--surface-3);
}
.annotation-btn.done {
  background: var(--warm-dim);
  border-color: var(--warm);
  color: var(--warm);
}
.annotation-btn.done:hover {
  background: var(--warm);
  color: var(--bg);
}
.annotation-btn.discard { color: #ff5555; }
.annotation-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 201;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .review-panel {
    right: 1rem;
    left: 1rem;
    width: auto;
    bottom: 5rem;
  }
  .review-fab {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
  .review-tiles-pages {
    grid-template-columns: repeat(3, 1fr);
  }
  .review-tiles-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN — Testing & Design Tools
   ═══════════════════════════════════════════════════════════════ */

/* Admin nav link */
.nav-link-admin {
  color: var(--accent) !important;
  opacity: 0.5;
}
.nav-link-admin:hover { opacity: 0.8; }
.nav-link-admin.active { opacity: 1; color: var(--accent) !important; }
.nav-link-admin.active::after { background: var(--accent); }

/* Tab bar */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.admin-tab {
  padding: 0.7rem 1.2rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active {
  color: var(--warm);
  border-bottom-color: var(--warm);
}

/* Section titles */
.admin-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-strong);
  margin: 2rem 0 1rem;
  letter-spacing: -0.01em;
}
.admin-section-title:first-child { margin-top: 0; }

/* Hint text */
.admin-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Status row */
.admin-status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.admin-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.admin-status-dot.active {
  background: #4ecf73;
  box-shadow: 0 0 8px rgba(78, 207, 115, 0.4);
  animation: pulse-dot 1.5s ease infinite;
}
.admin-status-dot.recording {
  background: #ff4444;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
  animation: pulse-dot 1s ease infinite;
}
.admin-status-dot.playing {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(143, 188, 204, 0.4);
  animation: pulse-dot 1s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.admin-status-text {
  font-size: 0.8rem;
  color: var(--text);
  flex: 1;
}
.admin-status-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Controls */
.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.admin-btn {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 400;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.admin-btn:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}
.admin-btn.primary {
  background: var(--warm-dim);
  border-color: rgba(240, 235, 227, 0.15);
  color: var(--warm);
}
.admin-btn.primary:hover {
  background: var(--warm);
  color: var(--bg);
}
.admin-btn.danger {
  color: #ff5555;
  border-color: rgba(255, 85, 85, 0.15);
}
.admin-btn.danger:hover {
  background: rgba(255, 85, 85, 0.1);
  border-color: rgba(255, 85, 85, 0.3);
}

/* Mono text */
.admin-mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* Table */
.admin-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.admin-table-row {
  display: grid;
  grid-template-columns: 80px 80px 1fr 60px;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.admin-table-row:last-child { border-bottom: none; }
.admin-table-row.admin-table-header {
  background: var(--surface);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.65rem;
}
.admin-table-row.active {
  background: var(--warm-dim);
}
.admin-table-row.admin-table-more {
  grid-template-columns: 1fr;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Event type badges in table */
.admin-event-type { text-align: center; font-size: 0.85rem; }

/* Stats grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.admin-stat-title {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.admin-stat-row {
  display: grid;
  grid-template-columns: 60px 1fr 30px;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
}
.admin-stat-bar-wrap {
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}
.admin-stat-bar {
  height: 100%;
  background: var(--warm);
  opacity: 0.5;
  border-radius: 3px;
  transition: width 0.3s var(--ease);
}

/* ── Design Lab ── */

.lab-mode-bar {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}
.lab-mode-btn {
  padding: 0.5rem 1.2rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border-right: 1px solid var(--border);
}
.lab-mode-btn:last-child { border-right: none; }
.lab-mode-btn:hover { color: var(--text); background: var(--surface-2); }
.lab-mode-btn.active {
  color: var(--warm);
  background: var(--warm-dim);
}

/* Vote summary */
.lab-vote-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.lab-vote-label { font-weight: 400; }
.lab-vote-count {
  font-family: var(--font-mono);
  color: var(--text);
  padding: 0.2rem 0.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.lab-vote-count.leading {
  color: var(--warm);
  border-color: rgba(240, 235, 227, 0.15);
  background: var(--warm-dim);
}
.lab-vote-vs { color: var(--text-faint); font-size: 0.7rem; }
.lab-reset-btn {
  font-size: 0.65rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
}
.lab-reset-btn:hover { color: var(--text); border-color: var(--border-hover); }

/* Side-by-side grid */
.lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.lab-column {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
}

.lab-variant-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.lab-variant-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  background: var(--warm-dim);
  border: 1px solid rgba(240, 235, 227, 0.15);
  border-radius: var(--radius);
  color: var(--warm);
}
.lab-variant-name {
  font-size: 0.82rem;
  color: var(--text-strong);
  font-weight: 400;
}
.lab-variant-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.lab-vote-btn {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.lab-vote-btn:hover {
  border-color: var(--warm);
  color: var(--warm);
  background: var(--warm-dim);
}

/* Sample container */
.lab-sample {
  border-radius: var(--radius);
  padding: 0.5rem;
}
.lab-sample-full {
  max-width: 600px;
}
.lab-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 1rem;
}
.lab-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Card variant: elevated */
.lab-card-elevated .event-card {
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 1.2rem !important;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Nav variant: centered */
.lab-nav-centered .nav-inner {
  justify-content: center;
  gap: 2rem;
}

/* Sequential toggle */
.lab-seq-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.lab-seq-btn {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  transition: color 0.2s;
}
.lab-seq-btn:hover { color: var(--text); }
.lab-seq-btn.active { color: var(--warm); }
.lab-seq-switch-track {
  width: 44px;
  height: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.lab-seq-switch-track:hover { border-color: var(--border-hover); }
.lab-seq-switch-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--warm);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s var(--ease);
}
.lab-seq-switch-thumb.right { left: 22px; }
.lab-seq-votes {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.lab-seq-votes .lab-vote-btn { margin-bottom: 0; }

/* ── Heatmap Overlay ── */

.heatmap-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: 0.8;
}

/* ── Session Replay ── */

.replay-progress {
  height: 4px;
  background: var(--surface-2);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.replay-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.15s linear;
}

.replay-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 80, 50, 0.6);
  border: 2px solid rgba(255, 80, 50, 0.9);
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  display: none;
}
.replay-cursor.pulse {
  animation: replay-pulse 0.4s ease-out;
}
@keyframes replay-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(2); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ── Component Showcase ── */

.showcase-color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.showcase-color {
  text-align: center;
}
.showcase-color-swatch {
  width: 100%;
  height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 0.4rem;
}
.showcase-color-name {
  font-size: 0.68rem;
  color: var(--text);
  font-weight: 400;
}
.showcase-color-value {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
}

.showcase-typo {
  margin-bottom: 1.5rem;
}
.showcase-typo-row {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.showcase-typo-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  width: 60px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.showcase-buttons {
  margin-bottom: 1.5rem;
}
.showcase-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.showcase-cards {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 1.5rem;
}

.showcase-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.showcase-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.showcase-form-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.showcase-input,
.showcase-textarea,
.showcase-select {
  padding: 0.6rem 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  transition: border-color 0.2s var(--ease);
}
.showcase-input:focus,
.showcase-textarea:focus,
.showcase-select:focus {
  border-color: var(--warm);
  outline: none;
}
.showcase-input::placeholder,
.showcase-textarea::placeholder {
  color: var(--text-muted);
}
.showcase-select {
  appearance: none;
  cursor: pointer;
}

.showcase-scores {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 400px;
}
.showcase-score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.showcase-score-row .event-score-bar {
  flex: 1;
}

.showcase-loading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

/* ── A11y Audit ── */

.a11y-score {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.a11y-score-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  flex-shrink: 0;
}
.a11y-score-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-strong);
  margin-bottom: 0.25rem;
}
.a11y-score-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.a11y-group-title {
  font-size: 0.78rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}
.a11y-group-title.a11y-error { color: #ff5555; }
.a11y-group-title.a11y-warn { color: #f0c040; }
.a11y-group-title.a11y-pass { color: #4ecf73; }

.a11y-item {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  align-items: center;
}
.a11y-item-error { background: rgba(255, 85, 85, 0.05); }
.a11y-item-warn { background: rgba(240, 192, 64, 0.05); }
.a11y-item-pass { background: rgba(78, 207, 115, 0.05); }

.a11y-rule {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  min-width: 100px;
}
.a11y-msg {
  color: var(--text);
}

/* ── Admin responsive ── */

@media (max-width: 768px) {
  .admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-tab {
    padding: 0.6rem 0.8rem;
    font-size: 0.65rem;
    white-space: nowrap;
  }
  .lab-grid {
    grid-template-columns: 1fr;
  }
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
  .showcase-color-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .showcase-forms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-controls {
    flex-direction: column;
  }
  .admin-controls .admin-btn {
    width: 100%;
    text-align: center;
  }
  .showcase-color-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════════════════════ */

.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 3rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.login-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--warm);
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
}

.login-label {
  display: block;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.login-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.login-input:focus {
  border-color: var(--warm);
}
.login-input::placeholder {
  color: var(--text-muted);
}

.login-btn {
  display: block;
  width: 100%;
  padding: 0.85rem 1.5rem;
  margin-top: 1.25rem;
  background: var(--warm);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s var(--ease), transform 0.1s var(--ease);
}
.login-btn:hover { opacity: 0.9; }
.login-btn:active { transform: scale(0.98); }
.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-btn-secondary {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}
.login-btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.login-error {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  background: rgba(200, 60, 60, 0.1);
  border: 1px solid rgba(200, 60, 60, 0.2);
  border-radius: var(--radius);
  color: #e07070;
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-align: left;
}

.login-sent {
  padding: 1rem 0;
}
.login-sent-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.login-sent h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-strong);
  margin-bottom: 0.75rem;
}
.login-sent p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.login-sent strong {
  color: var(--warm);
  font-weight: 500;
}

/* Logout button in nav */
.nav-logout {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-body);
  transition: all 0.2s var(--ease);
}
.nav-logout:hover {
  border-color: rgba(200, 60, 60, 0.3);
  color: #e07070;
}
