:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #1c2230;
  --border: #2a3242;
  --text: #e6edf3;
  --muted: #9aa7b8;
  --primary: #1f6feb;
  --primary-press: #1a5fc4;
  --meal: #f0a72b;
  --meal-bg: rgba(240, 167, 43, 0.12);
  --event: #58a6ff;
  --event-bg: rgba(88, 166, 255, 0.10);
  --owner: #f0a72b;
  --attendee: #3fb950;
  --danger: #f85149;
  --radius: 18px;        /* 14px × 1.25 */
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --topbar-h: 80px;      /* updated dynamically by JS */
}

* { box-sizing: border-box; }

html {
  font-size: 20px; /* 16px × 1.25 — all rem values scale by 25% */
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ---------- Top bar ---------- */
.topbar {
  z-index: 20;
  background: linear-gradient(180deg, rgba(22,27,34,0.98), rgba(22,27,34,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  #gap: 8px 15px;
  padding: 15px 20px;
}
/* Right-side row: cost badge · identity · share button */
.topbar-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.auth-note {
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 8px 0 12px;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  white-space: normal;
}
.subbar {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 12px;
  color: var(--muted);
  font-size: 0.85rem;
}
.subbar a { color: var(--primary); text-decoration: underline; }
.subbar a:hover { color: #5aacff; }
.holiday-item h3 a { color: inherit; text-decoration: underline; }
.holiday-item h3 a:hover { color: var(--primary); }
.badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
/* ---------- Identity selector (Wer bin ich?) ---------- */
.identity-wrap {
  position: relative;
}
.identity-badge {
  /* erbt das Aussehen von .cost-badge */
  cursor: pointer;
}
.identity-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 6px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.identity-option {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.identity-option:hover { background: var(--surface-2); }
.identity-option.active {
  color: var(--primary);
  font-weight: 600;
}
/* ---------- Cost badge & expandable breakdown ---------- */
.cost-badge {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  line-height: 1.4;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-align: right;
}
.cost-badge:hover { background: var(--surface-2); color: var(--text); }
.cost-badge.active {
  background: var(--surface-2);
  border-color: var(--primary);
  color: var(--primary);
}
.cost-breakdown {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 14px;
}
.cost-breakdown-inner {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.78rem;
}
.cost-breakdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.cost-breakdown-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
}
.cost-day-section { margin-bottom: 12px; }
.cost-day-section:last-of-type { margin-bottom: 0; }
.cost-day-title {
  font-weight: 700;
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(42,50,66,0.5);
}
.cost-item:last-of-type { border-bottom: none; }
.cost-item-name {
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cost-item-detail {
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.cost-item-pp {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.cost-day-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0 0;
  font-weight: 700;
  color: var(--text);
  border-top: 1px solid var(--border);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.cost-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0 0;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
  border-top: 2px solid var(--border);
  margin-top: 9px;
  font-variant-numeric: tabular-nums;
}
.cost-item.is-mine {
  background: rgba(88, 166, 255, 0.08);
  border-radius: 5px;
  margin: 1px -4px;
  padding: 3px 4px;
}
.cost-mine-badge {
  font-size: 0.75rem;
  opacity: 0.85;
}
.cost-my-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0 0;
  font-size: 0.75rem;
  color: var(--attendee);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.cost-my-grand {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0 0;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--attendee);
  border-top: 1px dashed var(--border);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.cost-settle-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--border);
}
.cost-settle-title {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text);
  margin-bottom: 7px;
}
.cost-settle-row {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.cost-settle-row.is-mine {
  color: var(--attendee);
  font-weight: 700;
}

/* ---------- Layout ---------- */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px;
}
.center-screen {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.center { text-align: center; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.big { font-size: 3rem; margin: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card h1, .card h2 { margin-top: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}
input[type=text],
input[type=password],
input[type=time],
input[type=datetime-local],
textarea,
select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 15px;
  font-size: 1rem;
  font-family: inherit;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,111,235,0.25);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 18px;
}
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.perms {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 18px;
  margin: 5px 0 20px;
}
.perms legend { color: var(--muted); font-size: 0.82rem; padding: 0 6px; }
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  padding: 8px 0;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.05s;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--primary); color: #fff; width: 100%; }
.btn.primary:hover { background: var(--primary-press); }
.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { padding: 9px 15px; font-size: 0.82rem; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--border); }
.icon-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px 10px;
}
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.row-end { display: flex; gap: 12px; justify-content: flex-end; margin-top: 10px; }
.row-end .btn { width: auto; }

.error { color: var(--danger); font-size: 0.85rem; min-height: 1.1em; margin: 8px 0 0; }

/* ---------- Admin holiday list ---------- */
.holiday-list { display: flex; flex-direction: column; gap: 15px; }
.holiday-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 18px;
}
.holiday-item h3 { margin: 0 0 4px; font-size: 1.05rem; }
.holiday-item .meta { color: var(--muted); font-size: 0.82rem; margin-bottom: 12px; }
.share-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.share-row input { font-size: 0.8rem; padding: 10px 12px; }
.perm-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 10px 0;
}
.perm-toggles label { font-size: 0.82rem; display: flex; gap: 6px; align-items: center; }
.holiday-actions { display: flex; gap: 10px; margin-top: 8px; }

/* ---------- Admin holiday edit form ---------- */
.holiday-edit-form { margin-bottom: 12px; }
.holiday-edit-form .field { margin-bottom: 10px; }
.holiday-edit-form .row-end { margin-top: 4px; }

/* ---------- Holiday day planner ---------- */
.days { display: flex; flex-direction: column; gap: 22px; }
.day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}
.day-head .dow { font-weight: 700; }
.day-head .date { color: var(--muted); font-size: 0.82rem; }
.day-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.add-row { display: flex; gap: 10px; margin-top: 5px; }
.add-row .btn { flex: 1; }

.empty-day { color: var(--muted); font-size: 0.88rem; padding: 8px 0; }

/* ---------- Time gap indicator ---------- */
.time-gap {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 2px 0;
  user-select: none;
}
.time-gap::before,
.time-gap::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
  opacity: 0.6;
}

/* ---------- Activity card ---------- */
.activity {
  border: 1px solid var(--border);
  border-left: 5px solid var(--event);
  border-radius: 12px;
  background: var(--event-bg);
  padding: 15px 18px;
}
.activity.meal {
  border-left-color: var(--meal);
  background: var(--meal-bg);
}
.activity-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; cursor: pointer; user-select: none; }
.activity-title { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.activity-chevron { color: var(--muted); flex-shrink: 0; transition: transform 0.15s ease; }
.activity.collapsed .activity-chevron { transform: rotate(-90deg); }
.activity.collapsed .activity-body { display: none; }
.kind-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
  display: inline-block;
  margin-top: 10px;
}
.kind-tag.meal { background: var(--meal); color: #1b1300; }
.kind-tag.event { background: var(--event); color: #00264d; }
.activity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 10px 0;
}
.activity-meta span { display: inline-flex; gap: 5px; align-items: center; }
.activity-notes { font-size: 0.85rem; margin: 8px 0; white-space: pre-wrap; }

/* Clickable links inside activity cards */
.activity a {
  color: var(--primary);
  text-decoration: underline;
  word-break: break-all;
}
.activity a:hover { color: #5aacff; }

.people { margin-top: 10px; }
.people-group { margin-bottom: 8px; }
.people-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.8rem;
}
.chip.owner { border-color: var(--owner); }
.chip.attendee { border-color: var(--attendee); }
.chip .x { cursor: pointer; color: var(--muted); font-weight: 700; }
.chip .x:hover { color: var(--danger); }

.activity-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.activity-actions .btn { width: auto; flex: 1 1 auto; }

/* ---------- Segmented control ---------- */
.seg {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  gap: 5px;
  margin-bottom: 18px;
}
.seg-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 11px;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}
.seg-btn.active { background: var(--primary); color: #fff; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 50;
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
@media (min-width: 560px) {
  .modal { align-items: center; }
  .modal-card { border-radius: var(--radius); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 15px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 100;
  font-size: 0.9rem;
  max-width: 90%;
}

/* ---------- Date + time pair input ---------- */
.date-time-pair {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.date-time-pair input[type="time"] {
  width: auto;
  min-width: 110px;
}

/* ---------- Admin persons section ---------- */
.persons-section {
  margin: 12px 0;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.persons-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.persons-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  min-height: 28px;
}
.persons-add-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.persons-add-row input {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.88rem;
}

/* ---------- Activity attendees toggle ---------- */
.attendees-section { margin-top: 10px; }
.attendees-toggle {
  width: 100%;
  justify-content: flex-start;
  gap: 6px;
  font-size: 0.82rem;
}
.attendees-panel {
  margin-top: 8px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.attendees-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 4px;
}
.person-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 6px 4px;
  white-space: nowrap;
}
.person-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ---------- Organizer info line ---------- */
.organizer-info {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 6px 0;
}

.cost-item.is-rechnung {
  cursor: pointer;
  user-select: none;
}
.cost-item.is-rechnung.expanded {
  border-bottom: none;
}
.rechnung-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 4px 0 6px;
  border-bottom: 1px solid rgba(42,50,66,0.5);
}

/* ---------- Cost per-person hint in meta ---------- */
.cost-pp {
  color: var(--attendee);
  font-size: 0.78rem;
}

/* ---------- Holiday cover image banner ---------- */
.holiday-cover {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 12px;
}
.holiday-cover img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* ---------- Admin cover image section ---------- */
.image-section {
  margin: 12px 0;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.image-preview {
  margin: 8px 0 10px;
  min-height: 32px;
}
.cover-preview {
  max-width: 100%;
  max-height: 160px;
  width: auto;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: contain;
}
.image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.image-upload-label { cursor: pointer; }

.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 500px;
  background: var(--surface);
}
.hero-img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 500px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.38);
  padding: 20px;
}
.hero-title {
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}
.hero-subtitle {
  font-size: clamp(0.88rem, 2.5vw, 1.05rem);
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feature-list li {
  font-size: 0.95rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }

/* ---------- Eventempfehlung ---------- */
.reco-toggle-btn {
  margin-bottom: 8px;
  width: 100%;
}
.reco-panel {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.reco-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}
.reco-controls select {
  flex: 1;
  width: auto;
  padding: 6px 10px;
  font-size: 0.82rem;
}
.reco-list {
  max-height: 260px;
  overflow-y: auto;
}
.reco-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(42,50,66,0.5);
  transition: background 0.1s;
}
.reco-item:last-child { border-bottom: none; }
.reco-item:hover { background: rgba(31,111,235,0.07); }
.reco-icon { font-size: 1.15rem; flex-shrink: 0; line-height: 1.3; }
.reco-info { flex: 1; min-width: 0; }
.reco-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reco-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  margin-top: 2px;
}
.reco-cat {
  font-size: 0.72rem;
  color: var(--primary);
  text-transform: capitalize;
}
.reco-dist {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.reco-addr {
  font-size: 0.72rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reco-loading,
.reco-empty,
.reco-error {
  padding: 14px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}
.reco-error { color: var(--danger); font-style: normal; }
#reco-more-btn {
  display: flex;
  width: 100%;
  border-radius: 0 0 11px 11px;
  border-color: transparent;
  border-top-color: var(--border);
  margin: 0;
}

/* Category chip bar */
.reco-cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.reco-cat-chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  text-transform: capitalize;
  transition: background 0.1s, color 0.1s, border-color 0.1s;
  white-space: nowrap;
}
.reco-cat-chip:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--muted);
}
.reco-cat-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
