/* ═══════════════════════════════════════════════════════════════════
   panels.css — styles for the four app panels (Itinerary, Challenges,
   Leaderboard, Feed) plus shared badge styles. Loaded after style.css
   in index.html so feature-specific overrides win.
   ═══════════════════════════════════════════════════════════════════ */

/* Responsive rules relocated from the core stylesheet so panel-owned
   selectors stay in this file. */
@media (max-width: 560px) {
  .day-block__header { padding: 16px; }
  .day-block__progress { display: none; }
  .itinerary-item { padding: 14px 16px; }
}

/* --- ITINERARY --- */
.itinerary { background: var(--cream); }

/* ── View toggle (List/Kanban) ───────────────────────────────── */

/* Header row + toggle sit on the same line on desktop so the toggle
   lines up with the sub-text baseline. On mobile (where section__header
   is display:none per the trip-viewer panel rules), the toggle takes
   the full row and centers itself. */
.itin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
.itin-panel-head .section__header { margin-bottom: 0; }

.itin-view-toggle-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 4px;
}
@media (max-width: 760px) {
  /* Kanban is a desktop-only layout for now; hide the toggle on mobile
     and let getItineraryView() force 'list' in JS. */
  .itin-view-toggle-row { display: none; }
}
.itin-view-toggle {
  display: inline-flex;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px; gap: 2px;
  font-size: 0.8rem;
}
.itin-view-toggle button {
  background: none; border: none; padding: 5px 14px;
  border-radius: 6px; cursor: pointer; color: var(--muted);
  font: inherit; font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.itin-view-toggle button:hover { color: var(--charcoal); }
.itin-view-toggle button[aria-pressed="true"] {
  background: #fff; color: var(--charcoal);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Kanban: days flow horizontally as fixed-width columns with
   scroll-snap so mobile swipe moves one day at a time. All day
   bodies are forced open (accordion disabled in this layout). */
.itinerary__days[data-view="kanban"] {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}
.itinerary__days[data-view="kanban"] .day-block {
  flex: 0 0 320px;
  min-width: 320px;
  max-width: 320px;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
}
.itinerary__days[data-view="kanban"] .day-block__header {
  padding: 14px 18px;
  cursor: default;
}
.itinerary__days[data-view="kanban"] .day-block__chevron { display: none; }
.itinerary__days[data-view="kanban"] .day-block__body {
  display: block;
  flex: 1;
}
.itinerary__days[data-view="kanban"] .itinerary-item {
  padding: 14px 18px;
}
.itinerary__days[data-view="kanban"] .itinerary-item__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 760px) {
  .itinerary__days[data-view="kanban"] .day-block {
    flex: 0 0 88vw;
    min-width: 88vw;
    max-width: 88vw;
  }
}
.day-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--cream);
}
.day-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  gap: 16px;
}
.day-block__header:hover { background: var(--terracotta-pale); }
.day-block__header.open { background: var(--terracotta-pale); }
.day-block__meta { display: flex; align-items: center; gap: 16px; flex: 1; }
.day-block__num {
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--terracotta);
  line-height: 1;
  min-width: 48px;
}
.day-block__title { font-family: var(--ff-serif); font-size: 1.3rem; font-weight: 700; color: var(--charcoal); line-height: 1.2; }
.day-block__date { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: none; color: var(--muted); margin-top: 4px; }
.day-block__progress { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.day-block__progress-bar { width: 60px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.day-block__progress-fill { height: 100%; background: var(--olive); border-radius: 2px; transition: width 0.3s ease; }
.day-block__progress-text { font-size: 0.7rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.day-block__chevron { font-size: 0.9rem; color: var(--muted); transition: transform 0.25s ease; flex-shrink: 0; }
.day-block__header.open .day-block__chevron { transform: rotate(180deg); }
.day-block__body { display: none; border-top: 1px solid var(--border); }
.day-block__body.open { display: block; }

.itinerary-item { padding: 16px 24px; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.itinerary-item:last-child { border-bottom: none; }
.itinerary-item.done { opacity: 0.55; }
.itinerary-item__main { display: flex; align-items: flex-start; gap: 14px; }
.itinerary-item__checkbox {
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: var(--cream);
}
.itinerary-item__checkbox.checked { background: var(--olive); border-color: var(--olive); }
.itinerary-item__checkbox.checked::after {
  content: '✓';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.7rem; font-weight: 700;
}
.itinerary-item__content { flex: 1; min-width: 0; }
.itinerary-item__type { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: none; color: var(--terracotta); margin-bottom: 4px; }
.itinerary-item__title { font-size: 1rem; font-weight: 600; color: var(--charcoal); line-height: 1.3; margin-bottom: 4px; }
.itinerary-item__desc { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.itinerary-item__desc .place-link { color: var(--terracotta); font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-style: dotted; }
.itinerary-item__desc .place-link:hover { color: var(--terracotta-light); text-decoration-style: solid; }
.itinerary-item__actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.itinerary-item__location-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: none;
  color: #fff; background: var(--terracotta);
  border: none; border-radius: var(--radius);
  padding: 5px 10px; cursor: pointer; transition: opacity 0.15s;
}
.itinerary-item__location-btn:hover { opacity: 0.85; }
.itinerary-item__location-btn svg { width: 11px; height: 11px; fill: currentColor; }
.itinerary-item__notes-wrap { margin-top: 10px; margin-left: 36px; }
.itinerary-item__notes-toggle {
  font-size: 0.72rem; font-weight: 500; color: var(--muted);
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer; padding: 4px 0; transition: color 0.15s;
}
.itinerary-item__notes-toggle:hover { color: var(--charcoal); }
.itinerary-item__notes-toggle.has-note { color: var(--olive-dark); font-weight: 600; }
.itinerary-item__notes-field { display: none; margin-top: 6px; }
.itinerary-item__notes-field.open { display: block; }
.itinerary-item__notes-textarea {
  width: 100%; min-height: 80px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--ff-sans); font-size: 16px; line-height: 1.5;
  color: var(--charcoal); background: var(--cream); resize: vertical; transition: border-color 0.15s;
}
.itinerary-item__notes-textarea:focus { outline: none; border-color: var(--terracotta); }
.itinerary-item__notes-saved { font-size: 0.65rem; color: var(--olive); font-weight: 500; margin-top: 4px; opacity: 0; transition: opacity 0.3s; }
.itinerary-item__notes-saved.show { opacity: 1; }

/* --- FEED SECTION LABELS --- */
.feed-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: none;
  color: var(--muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* --- SOCIAL PANEL (leaderboard + activity feed) ---
   Mobile: stacked column, leaderboard on top.
   Desktop: 2-column grid, leaderboard : feed = 1 : 3 so the feed has
   room for photos and the leaderboard sits as a narrow sidebar. */
.social-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}
.social-panel__title {
  font-family: var(--ff-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 14px;
}
@media (min-width: 761px) {
  .social-panel {
    display: grid;
    grid-template-columns: 2fr 3fr;
    grid-template-areas: "leaderboard feed";
    gap: clamp(24px, 3vw, 40px);
    align-items: start;
  }
  .social-panel__block--leaderboard { grid-area: leaderboard; }
  .social-panel__block--feed        { grid-area: feed; }
}

/* --- LEADERBOARD --- */
.leaderboard {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.leaderboard-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-row--me { background: var(--terracotta-pale); }
.leaderboard-row__rank { width: 26px; font-size: 1.1rem; flex-shrink: 0; text-align: center; }
.leaderboard-row__initial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal-mid);
  flex-shrink: 0;
}
.leaderboard-row--me .leaderboard-row__initial {
  background: var(--terracotta-pale);
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.leaderboard-row__name { flex: 1; font-size: 0.9rem; font-weight: 600; color: var(--charcoal); }
.leaderboard-row__count {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--charcoal);
}
.leaderboard-row--me .leaderboard-row__count { color: var(--terracotta); }
.leaderboard-row__unit {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--muted);
  width: 28px;
}

/* --- ACTIVITY FEED (timeline) --- */
.activity-feed { width: 100%; }
.feed-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.feed-entry {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 20px;
}
.feed-entry:last-child { padding-bottom: 0; }
/* Rail line — connects dots vertically, stops at the last entry */
.feed-entry__rail {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 3px;
}
.feed-entry__rail::before {
  content: '';
  position: absolute;
  top: 22px;
  bottom: -20px;
  left: 50%;
  width: 1.5px;
  background: var(--border);
  transform: translateX(-50%);
}
.feed-entry:last-child .feed-entry__rail::before { display: none; }
/* Default dot — hollow on desktop; emoji text inside is hidden */
.feed-entry__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--border);
  margin-top: 5px;
  flex-shrink: 0;
  z-index: 1;
  font-size: 0;
  color: transparent;
  overflow: hidden;
}
/* Rich dot — filled with challenge emoji */
.feed-entry__dot--rich {
  width: 36px;
  height: 36px;
  margin-top: 0;
  border: none;
  background: var(--terracotta-pale, rgba(227,83,54,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  color: initial;
  box-shadow: 0 0 0 3px var(--cream);
}
.feed-entry--rich .feed-entry__rail::before { top: 40px; }
.feed-entry__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
}
.feed-entry--rich .feed-entry__body {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--cream);
  padding: 14px 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.feed-entry__row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--charcoal);
}
.feed-entry__row .feed-highfive { flex-shrink: 0; margin-left: auto; }
.feed-entry__who,
.feed-entry__title { font-weight: 700; }
.feed-entry__verb { color: var(--charcoal); font-weight: 400; }
.feed-entry__emoji { font-size: 1rem; display: inline-block; vertical-align: -1px; }
.feed-entry__time {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.feed-entry__card {
  margin: 0;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-dark, #efe7d8);
  width: 100%;
  aspect-ratio: 4 / 3;
}
.feed-entry__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feed-empty { font-size: 0.875rem; color: var(--muted); padding: 28px 0; text-align: center; }

/* Comments list */
.feed-comments {
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feed-comment {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--charcoal);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}
.feed-comment__author { font-weight: 700; }
.feed-comment__body { flex: 1; min-width: 0; }
.feed-comment__time { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }

/* Actions row: high-five + comment input */
.feed-entry__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.feed-highfive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.feed-highfive:hover { border-color: var(--terracotta); color: var(--terracotta); }
.feed-highfive:active { transform: scale(0.96); }
.feed-highfive--on {
  background: var(--terracotta-pale);
  color: var(--terracotta);
  border-color: var(--terracotta);
}
.feed-highfive__emoji { font-size: 1rem; line-height: 1; }
.feed-highfive__count {
  font-variant-numeric: tabular-nums;
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--charcoal);
}
.feed-highfive--on .feed-highfive__count { background: rgba(227,83,54,0.2); color: var(--terracotta); }
/* Compact (icon-only) variant for basic feed entries */
.feed-highfive--compact { padding: 6px 10px; gap: 4px; }
.feed-highfive--compact .feed-highfive__count { padding: 0 4px; font-size: 0.7rem; }

.feed-comment-form {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
}
.feed-comment-form__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--charcoal);
}
.feed-comment-form__input::placeholder { color: var(--muted); }
.feed-comment-form__submit {
  border: none;
  background: var(--terracotta-pale);
  color: var(--terracotta);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s, transform 0.15s;
}
.feed-comment-form__submit:hover { background: var(--terracotta); color: #fff; }
/* Hide Post until the user types something */
.feed-comment-form__input:placeholder-shown ~ .feed-comment-form__submit {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

@media (max-width: 560px) {
  /* All entries get the 40px emoji avatar on the rail (was rich-only on desktop) */
  .feed-entry { grid-template-columns: 40px 1fr; gap: 12px; }
  .feed-entry__dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--terracotta-pale);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; line-height: 1;
    color: initial;
    overflow: visible;
    margin-top: 0;
    box-shadow: 0 0 0 3px var(--cream);
  }
  .feed-entry .feed-entry__rail::before { top: 44px; bottom: -20px; }

  /* Drop the inline sentence structure — rail has the emoji, mobile uses a
     stacked card-style layout: [name · time  🙌] on row 1, [title] on row 2 */
  .feed-entry__verb,
  .feed-entry__emoji { display: none; }

  .feed-entry__row { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
  .feed-entry__who {
    order: 1;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    flex: 0 0 auto;
  }
  .feed-entry__time {
    order: 2;
    font-size: 0.72rem;
    color: var(--muted);
    flex: 0 0 auto;
  }
  .feed-entry__time::before {
    content: '·';
    margin-right: 6px;
    color: var(--muted);
  }
  .feed-entry__row .feed-highfive {
    order: 3;
    margin-left: auto;
    flex-shrink: 0;
  }
  .feed-entry__title {
    order: 4;
    flex: 0 0 100%;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.35;
    margin-top: 2px;
  }

  /* Rich card adjustments */
  .feed-entry--rich .feed-entry__body { padding: 12px 14px; }
  .feed-entry__actions { gap: 8px; }
  .feed-comment-form { width: 100%; flex: 1 0 100%; }

  /* Basic entries: drop high-five + time to a second row, right-aligned */
  .feed-entry:not(.feed-entry--rich) .feed-entry__text { flex: 0 0 100%; }
  .feed-entry:not(.feed-entry--rich) .feed-entry__row .feed-highfive { margin-left: auto; }
}

/* --- BADGES --- */
.badges-section {
  padding: 24px 0 12px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.trip-header .badges-section {
  margin-top: 28px;
}
.badges-section__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.badges-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0;
}
@media (max-width: 820px) {
  .badges-section__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
.badges-row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 3px 3px 4px;
  min-width: 0;
  width: 100%;
}
.badges-row::-webkit-scrollbar { display: none; }
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  min-width: 64px;
  background: var(--cream);
  transition: all 0.2s;
}
.badge--earned { border-color: var(--terracotta); background: var(--terracotta-pale); }
.badge--locked { opacity: 0.28; filter: grayscale(0.7); }
.badge__emoji { font-size: 1.6rem; line-height: 1; }
.badge__name {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: none;
  color: var(--charcoal);
  text-align: center;
  line-height: 1.3;
}
.badge--earned .badge__name { color: var(--terracotta); }


/* ═══════════════════════════════════════════════════════════════════
   Formerly inlined in index.html — moved here to trim the HTML.
   ═══════════════════════════════════════════════════════════════════ */

/* ── CHALLENGES / SWIPE CARDS ── */
/* Header variant: title + desc on the left, progress ring on the right. */
.section__header--with-progress {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; max-width: none;
}
.section__header--with-progress .section__header-text { min-width: 0; flex: 1; }
@media (max-width: 760px) {
  /* style.css hides .app-panel .section__header on mobile (the tab bar
     is the heading). Keep the progress ring visible by overriding just
     for the progress-bearing variant, and suppress only the text part. */
  .app-panel .section__header--with-progress {
    display: flex; justify-content: flex-start; margin-bottom: 16px;
  }
  .app-panel .section__header--with-progress .section__header-text {
    display: none;
  }
}

/* Progress summary. Ring driven by --pct (0–100%). */
.challenge-progress {
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.challenge-progress__ring {
  --ring-size: 64px;
  --ring-track: var(--border);
  --ring-fill:  var(--terracotta);
  position: relative; flex-shrink: 0;
  width: var(--ring-size); height: var(--ring-size);
  border-radius: 50%;
  background: conic-gradient(var(--ring-fill) var(--pct, 0%), var(--ring-track) 0);
  display: grid; place-items: center;
}
.challenge-progress__ring::before {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: #fff;
}
.challenge-progress__count {
  position: relative;
  font-weight: 700; font-size: 0.95rem;
  color: var(--charcoal); letter-spacing: -0.01em;
  line-height: 1;
}
.challenge-progress__total { color: var(--muted); font-weight: 600; }
.challenge-progress__stats { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.challenge-progress__points {
  font-size: 1.05rem; font-weight: 700;
  color: var(--terracotta); line-height: 1.2;
}

/* Inline challenge list */
.challenge-list { width: 100%; }
.ch-row { display: flex; align-items: center; border-bottom: 1px solid var(--border); gap: 8px; }
.ch-row:last-child { border-bottom: none; }
.all-challenge-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  font-size: 0.95rem; color: var(--charcoal); cursor: pointer;
  flex: 1; min-width: 0; background: none; border: none;
  text-align: left; font-family: inherit;
}
.all-challenge-item__title {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.all-challenge-item.is-done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--terracotta); }
.all-challenge-item__emoji { font-size: 1.3rem; flex-shrink: 0; }
.ch-row__points {
  flex-shrink: 0;
  font-size: 0.78rem; font-weight: 700;
  color: var(--terracotta);
  background: var(--terracotta-pale);
  padding: 3px 8px; border-radius: 999px;
  letter-spacing: 0.01em;
}
.ch-photo-btn { background: none; border: none; cursor: pointer; padding: 4px 8px; font-size: 1.1rem; opacity: 0.5; flex-shrink: 0; transition: opacity 0.2s; }
.ch-photo-btn:hover { opacity: 1; }
.ch-photo-btn input,
.photo-prompt__btn--primary input,
.challenge-photo-viewer__btn--replace input { display: none; }
.ch-photo-thumb {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0; margin-left: 6px;
  background: var(--cream-dark);
  overflow: hidden; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ch-photo-thumb:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.ch-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
