/* ───────────────────────────────────────────────────────────────────────────────
   Travel Trove — scrapbook theme
   Cream paper background, pastel die-cut sticker cards, washi tape accents,
   handwritten display type. All data-art is custom SVG (assets/sprites/),
   never emoji — see .claude/rules/assets.md.
   ─────────────────────────────────────────────────────────────────────────────── */

:root {
  --paper:        #FFF9F2;
  --paper-dot:    #F0E4D7;
  --ink:          #5B5468;
  --ink-muted:    #9B94A8;
  --blush:        #F9C5D1;
  --blush-deep:   #F0A3B8;
  --mint:         #BEE7D0;
  --sky:          #BDE0FE;
  --butter:       #FDE9A9;
  --lavender:     #DCD0F2;
  --terracotta:   #F4A988;
  --card:         #FFFFFF;
  --border:       #EADFD2;

  /* aliases used by the shared auth-ui rule */
  --bg:           var(--card);
  --bg-card:      var(--paper);
  --text-primary: var(--ink);
  --text-muted:   var(--ink-muted);

  --accent:       var(--blush-deep);
  --accent-hover: #E88BA5;

  --app-max-width: 520px;
  --app-padding:   1rem;
  --font-sans:    'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Caveat', cursive;
}

/* ── Layout & paper background ───────────────────────────────────── */
html { background: var(--paper); }
body {
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: var(--app-padding);
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(var(--paper-dot) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--paper);
}
h1, h2, h3, .ts-display {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: 0.01em;
}
.hidden { display: none !important; }
a { color: var(--blush-deep); font-weight: 700; }
a:hover { color: var(--accent-hover); }

/* ── Header ──────────────────────────────────────────────────── */
/* Two stacked rows at every width: the title row (wordmark left, Settings gear
   top-right), then the four content tabs spread evenly on their own row below.
   Settings lives apart from the browse tabs because it's app config, not a
   content destination — and pulling it out lets the four tabs breathe. */
.ts-header {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 0.5rem; padding: 0.25rem 0 1rem;
}
.ts-header__top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.ts-header__brand {
  display: flex; align-items: center; gap: 0.45rem; text-decoration: none;
  flex: 1 1 auto; min-width: 0;
}
.ts-header__logo { width: 40px; height: 40px; flex-shrink: 0; }
.ts-header__title {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ts-header__nav { display: flex; gap: 0.25rem; justify-content: space-evenly; }
.ts-header__nav button, .ts-header__settings {
  width: 44px; height: 44px; border-radius: 14px; border: 2px solid transparent;
  background: transparent; color: var(--ink); cursor: pointer; flex-shrink: 0;
  display: grid; place-items: center;
}
.ts-header__nav button:hover, .ts-header__settings:hover { background: var(--card); border-color: var(--border); }
.ts-header__nav button.active, .ts-header__settings.active { background: var(--card); border-color: var(--blush); }

/* ── Splash ──────────────────────────────────────────────────── */
.ts-splash {
  min-height: 70vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
.ts-splash__logo { width: 96px; height: 96px; animation: bob 1.6s ease-in-out infinite; }
.ts-splash__text { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink-muted); }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

/* ── Motion ──────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.card-list > *, .card-grid > *, .stop-zones-grid > * {
  animation: fadeUp 220ms ease both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
/* Entrance animation plays on a visit's first paint only — re-renders from
   background revalidates / poll ticks / mutation patches would otherwise
   replay the stagger as a visible blink (View.settleMotion sets the class). */
.view-settled .card-list > *, .view-settled .card-grid > *, .view-settled .stop-zones-grid > * { animation: none; }
.card-lift { transition: transform 0.15s ease, box-shadow 0.15s ease; cursor: pointer; }
.card-lift:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(91, 84, 104, 0.16); }
.card-lift:active { transform: translateY(0); }

/* ── Sticker cards (the core scrapbook surface) ──────────────────────── */
.sticker-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(91, 84, 104, 0.08);
  padding: 0.9rem;
}
/* Cards stand upright; only the taped section decorations keep a tilt (.washi
   tape strip below). */
/* Scrap cards lay out as a flex column so their action cluster (source/maps
   links, priority meta, consensus, add/remove or wishlist footer) can pin to
   the bottom edge. In a grid row every card stretches to the tallest sibling,
   so the pinned cluster keeps all cards' buttons aligned even when some carry a
   one-line location and others wrap to two. */
.scrap-card { display: flex; flex-direction: column; }
.scrap-card__actions { margin-top: auto; }
/* washi tape strip */
.washi::before {
  content: "";
  position: absolute; top: -9px; left: 50%;
  width: 74px; height: 18px; margin-left: -37px;
  background: var(--sky); opacity: 0.75;
  border-radius: 2px;
  transform: rotate(-3deg);
  box-shadow: 0 1px 2px rgba(91, 84, 104, 0.15);
}
.washi--mint::before   { background: var(--mint); }
.washi--butter::before { background: var(--butter); }
.washi--blush::before  { background: var(--blush); }

/* ── Sprites ─────────────────────────────────────────────────── */
.ts-sprite { display: inline-block; vertical-align: middle; }
.ts-sprite--sm { width: 28px; height: 28px; }
.ts-sprite--md { width: 44px; height: 44px; }
.ts-sprite--lg { width: 72px; height: 72px; }
.ts-sprite--xl { width: 110px; height: 110px; }

/* ── Buttons ──────────────────────────────────────────────── */
.ts-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 2px solid var(--ink);
  background: var(--butter); color: var(--ink);
  font-family: var(--font-sans); font-weight: 800; font-size: 0.95rem;
  padding: 10px 20px; min-height: 44px; cursor: pointer;
  box-shadow: 2.5px 2.5px 0 var(--ink);
  transition: transform 0.1s, box-shadow 0.1s;
}
.ts-btn:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 3.5px 3.5px 0 var(--ink); }
.ts-btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 0.5px 0.5px 0 var(--ink); }
.ts-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ts-btn--blush { background: var(--blush); }
.ts-btn--mint  { background: var(--mint); }
.ts-btn--sky   { background: var(--sky); }
.ts-btn--ghost { background: var(--card); box-shadow: none; border-color: var(--border); font-weight: 700; }
.ts-btn--ghost:hover:not(:disabled) { border-color: var(--ink-muted); box-shadow: none; }
.ts-btn--danger { background: #F8B4B4; }
.ts-btn--sm { padding: 6px 14px; min-height: 36px; font-size: 0.85rem; box-shadow: 2px 2px 0 var(--ink); }

/* ── Inputs ──────────────────────────────────────────────── */
.ts-input, .ts-select, .ts-textarea {
  width: 100%; background: var(--card); color: var(--ink);
  border: 2px solid var(--border); border-radius: 14px;
  padding: 10px 14px; font-family: var(--font-sans); font-size: 0.95rem;
  min-height: 44px;
}
.ts-input:focus, .ts-select:focus, .ts-textarea:focus {
  outline: none; border-color: var(--blush-deep);
  box-shadow: 0 0 0 3px rgba(240, 163, 184, 0.25);
}
.ts-label { display: block; font-weight: 800; font-size: 0.82rem; margin: 0.8rem 0 0.3rem; color: var(--ink); }

/* Segmented radio control (trip scope picker). Radios are visually hidden; the
   selected pill fills with the accent. Each option keeps a ≥44px hit area. */
.ts-segmented { display: flex; gap: 0.4rem; }
.ts-segmented__opt { flex: 1; position: relative; }
.ts-segmented__opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ts-segmented__opt span {
  display: grid; place-items: center; min-height: 44px; padding: 0 0.5rem;
  border: 2px solid var(--border); border-radius: 14px; background: var(--card);
  font-weight: 800; font-size: 0.9rem; color: var(--ink); transition: all 0.12s;
}
.ts-segmented__opt input:checked + span { border-color: var(--blush-deep); background: var(--blush); color: #8a3350; }
.ts-segmented__opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(240, 163, 184, 0.25); }
/* Compact variant for the in-list "group by" toolbar. */
.ts-segmented--sm { gap: 0.35rem; }
.ts-segmented--sm .ts-segmented__opt span { min-height: 40px; font-size: 0.82rem; border-radius: 12px; }

/* ── Plan zones (trip plans, auto-grouped by geography) ─────────────────────────
   All plan cards live in ONE gap-less grid, in region order. Each cell is tinted
   by its region and a dotted outline is traced around exactly the cells a region
   occupies — so regions interlock like tetris pieces with no wasted half-rows.
   The dotted dot-pattern echoes the paper background; the outline sides + colour
   are computed per cell in stop-zones.js. Colour is hashed from the region label
   so a region keeps its tint across re-renders. */
.stop-zones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* fixed 2-up: the outline math assumes it */
  gap: 0;
  margin: 1rem 0 1.2rem;
}
.zone-cell {
  position: relative;
  min-width: 0;
  padding: 26px 7px 9px; /* uniform top gutter holds the region title on start cells */
  --zone-line: 2px dotted var(--zone-edge, var(--border));
  background:
    radial-gradient(var(--paper-dot) 1px, transparent 1.5px) 0 0 / 18px 18px,
    var(--zone-tint, transparent);
}
/* Condensed half-width card, matching .card-grid--2col. */
.zone-cell > .sticker-card { padding: 0.7rem; }
.zone-cell .scrap-card__sub {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.zone-cell__label {
  position: absolute; top: 4px; left: 7px; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-display); font-size: 1.15rem; line-height: 1.4; color: var(--ink);
  background: var(--card); border: 2px solid var(--zone-edge, var(--border));
  border-radius: 999px; padding: 0 0.6rem;
  box-shadow: 0 1px 3px rgba(91, 84, 104, 0.12);
  max-width: calc(100% - 14px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.zone-cell__count {
  font-family: var(--font-sans); font-weight: 800; font-size: 0.7rem;
  color: var(--ink-muted); background: var(--paper);
  border: 1.5px solid var(--border); border-radius: 999px; padding: 0 0.4rem; flex-shrink: 0;
}
.stop-zone--blush      { --zone-tint: color-mix(in srgb, var(--blush) 26%, var(--paper));      --zone-edge: var(--blush-deep); }
.stop-zone--mint       { --zone-tint: color-mix(in srgb, var(--mint) 30%, var(--paper));       --zone-edge: #7FCBA4; }
.stop-zone--sky        { --zone-tint: color-mix(in srgb, var(--sky) 30%, var(--paper));        --zone-edge: #8FC4F5; }
.stop-zone--butter     { --zone-tint: color-mix(in srgb, var(--butter) 34%, var(--paper));     --zone-edge: #E7C766; }
.stop-zone--lavender   { --zone-tint: color-mix(in srgb, var(--lavender) 34%, var(--paper));   --zone-edge: #B9A6E0; }
.stop-zone--terracotta { --zone-tint: color-mix(in srgb, var(--terracotta) 26%, var(--paper)); --zone-edge: #E0906F; }
.stop-zone--neutral    { --zone-tint: color-mix(in srgb, var(--ink-muted) 12%, var(--paper));  --zone-edge: var(--border); }

/* Trips list: Upcoming / Past section headers. */
.trips-section { display: flex; align-items: center; gap: 0.5rem; font-size: 1.5rem; margin: 1.4rem 0 0.6rem; }
.trips-section__count {
  font-weight: 800; font-size: 0.78rem; color: var(--ink-muted); font-family: var(--font-sans);
  background: var(--paper); border: 1.5px solid var(--border); border-radius: 999px; padding: 1px 10px;
}

/* Trip detail: toolbar row (back + edit/collaborators/delete), then the
   title/subtitle span the full width on their own row below. */
.trip-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.trip-toolbar__actions { display: flex; align-items: center; gap: 0.35rem; }
.trip-toolbar__btn { padding: 0; width: 40px; min-width: 40px; min-height: 40px; }
.trip-heading { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.9rem; }

/* ── Scrap card specifics ────────────────────────────────────── */
/* Media wrapper anchors the type bubble (top-left) + pencil (top-right) to the
   photo's corners so they read as a matched, aligned pair. */
.scrap-card__media { position: relative; }
.scrap-card__photo {
  display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: 12px; border: 2px solid var(--border);
  background: var(--paper);
}
.scrap-card__sprite-fallback {
  width: 100%; aspect-ratio: 16/9;
  border-radius: 12px; border: 2px dashed var(--border);
  display: grid; place-items: center; background: var(--paper);
}
/* Type bubble on the photo's top-left: the category sprite only, until tapped —
   then it wobbles and the label unrolls to the right, holds, and slides shut
   (TypeBubble.pop toggles .is-open). Hidden when the image failed and fell back
   to the sprite (the sprite already shows the type). */
.cat-bubble {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  display: inline-flex; align-items: center; cursor: pointer;
  max-width: calc(100% - 16px);
  padding: 3px; border-radius: 999px;
  border: 1.5px solid var(--border); background: rgba(255, 249, 242, 0.96);
  box-shadow: 1.5px 1.5px 0 rgba(91, 84, 104, 0.18);
  font-size: 0.74rem; font-weight: 800; color: var(--ink);
}
.cat-bubble .ts-sprite { flex-shrink: 0; }
.cat-bubble__label {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
}
/* Open: the label unrolls; the bubble rises above the pencil so its opaque pill
   simply covers it for the ~2s it's shown, then slides shut and the pencil
   reappears. */
.cat-bubble.is-open { z-index: 4; animation: cat-wobble 0.5s ease; }
.cat-bubble.is-open .cat-bubble__label { max-width: 160px; opacity: 1; margin: 0 5px 0 3px; }
.scrap-card__media.is-fallback .cat-bubble { display: none; }
@keyframes cat-wobble {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-7deg); }
  45% { transform: rotate(6deg); }
  70% { transform: rotate(-3deg); }
  85% { transform: rotate(2deg); }
}
/* Icon-only source / maps buttons, side by side under the card. */
/* Source + Maps buttons each take half the card width, side by side. */
.scrap-card__links { gap: 0.5rem; }
.scrap-card__links > .link-icon-btn { flex: 1; }
.link-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 40px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--paper);
  color: var(--ink-muted); cursor: pointer;
}
.link-icon-btn:hover { border-color: var(--ink-muted); color: var(--ink); }
.link-icon-btn:active { transform: translateY(1px); }
.link-icon-btn [data-lucide] { width: 18px; height: 18px; }
/* Note + priority together span the card width: the note chip stays compact,
   the priority/rating chip fills the rest (so long labels don't wrap on the
   narrow 2-col card). */
.scrap-card__meta { flex-wrap: nowrap; }
.scrap-card__meta > .note-chip { flex: 0 0 auto; }
.scrap-card__meta > .priority-chip,
.scrap-card__meta > .rating-badge { flex: 1 1 auto; min-width: 0; justify-content: center; }
/* "Add to trips" / community "Add" spans the card width. */
.scrap-card__addtrip { width: 100%; }
/* Any action alone in a card row fills the row — a lone button or the disabled
   "Saved"/"Added" pill alike. */
.scrap-card__row > .ts-btn:only-child { width: 100%; }
/* Two side-by-side actions (e.g. Needs-review keep/remove) share the row width;
   icon-only, so a 44px tap target. */
.scrap-card__row--split > .ts-btn { flex: 1; min-height: 44px; }
/* Community "Saved by N travelers" line. */
.scrap-card__saved-by { display: flex; align-items: center; gap: 4px; }
.scrap-card__saved-by [data-lucide] { width: 13px; height: 13px; }

/* "Add to trips" multi-select picker (AddToTrips widget). */
.att-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.6rem; max-height: 50vh; overflow-y: auto; }
.att-row {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-weight: 700;
  padding: 0.5rem 0.6rem; border: 1.5px solid var(--border); border-radius: 12px;
}
.att-row:hover { border-color: var(--ink-muted); }
.att-row input { width: 18px; height: 18px; flex-shrink: 0; }
.att-row .ts-sprite { flex-shrink: 0; }
/* "Suggested" pill on a trip this place fits — dashed language, tinted mint
   since it's a positive nudge, pinned to the row end. */
.att-suggested-badge {
  margin-left: auto; padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  border: 1.5px dashed var(--mint, #7fd0a8); font-size: 0.66rem; font-weight: 800;
  color: var(--ink-muted);
}
/* Pencil edit affordance at the whole card's top-right corner. Carries no
   handler — a click bubbles to the card's own click-to-edit listener. */
.scrap-card__edit {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1.5px solid var(--border); cursor: pointer;
  background: rgba(255, 249, 242, 0.94); color: var(--ink);
  box-shadow: 1.5px 1.5px 0 rgba(91, 84, 104, 0.18);
}
.scrap-card__edit:hover { border-color: var(--ink-muted); }
.scrap-card__edit:active { transform: translateY(1px); }
.scrap-card__edit [data-lucide] { width: 16px; height: 16px; }
/* Source picker list (SourceLinks.open) */
.source-links__list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.6rem; }
.source-links__item { justify-content: flex-start; }
.scrap-card__title {
  font-weight: 800; font-size: 1rem; margin: 0.55rem 0 0;
  overflow: hidden; white-space: nowrap; position: relative;
}
.scrap-card__title-inner { display: inline-block; }
/* Sliding back-and-forth marquee for titles too long to fit the card width,
   in place of wrapping/clamping. _checkTitleMarquee (scrap-card.js) toggles
   this class and sets --marquee-shift to the exact overflow in px. */
.scrap-card__title.is-marquee .scrap-card__title-inner {
  animation: title-marquee 6s ease-in-out infinite;
}
@keyframes title-marquee {
  0%, 12%   { transform: translateX(0); }
  45%, 55%  { transform: translateX(var(--marquee-shift, 0)); }
  88%, 100% { transform: translateX(0); }
}
.scrap-card__sub { font-size: 0.82rem; color: var(--ink-muted); overflow-wrap: anywhere; margin: 0.15rem 0 0; }
.scrap-card__row { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.55rem; flex-wrap: wrap; }
/* ── Scrap footer (the always-there capture box) ──────────────────────── */
.scrap-footer {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; gap: 0.5rem; align-items: center;
  margin-top: 1.2rem;
  padding: 0.7rem 0.6rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 2px solid var(--border);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -6px 16px rgba(91, 84, 104, 0.10);
}

/* ── Geo filter bar: Region / Country / City selects (browse views) ───────── */
.filter-bar {
  display: flex; align-items: center; gap: 0.5rem;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 0.6rem 0 0.4rem; margin-top: 0.2rem;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar__select {
  flex-shrink: 0; min-height: 34px; max-width: 46vw;
  padding: 0.15rem 0.7rem; border: 1.5px dashed var(--border); border-radius: 999px;
  background: transparent; color: var(--ink-muted);
  font-size: 0.76rem; font-weight: 800; cursor: pointer;
}
.filter-bar__select:hover { border-color: var(--ink-muted); color: var(--ink); }
/* A select with an active filter reads like a set chip. */
.filter-bar__select.is-active {
  border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
}

/* Note chip — a read-only badge showing another traveler's note on a shared
   card. Only ever rendered as a filled <span>; editing happens in the plan
   editor / StopPopup, not here. */
.note-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 1px;
  min-width: 34px; min-height: 26px; padding: 0 8px; border-radius: 999px;
  border: 1.5px dashed var(--border); background: transparent;
  color: var(--ink-muted); cursor: pointer; font-size: 0.72rem; font-weight: 800;
}
.note-chip [data-lucide] { width: 14px; height: 14px; }
.note-chip.is-filled {
  border-style: solid; border-color: var(--ink);
  background: var(--butter, #FDE9A9); color: var(--ink);
}
span.note-chip { cursor: default; }

/* Read-only rating chip (Visited view + anywhere the control is hidden). */
.rating-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 0.5rem;
  padding: 2px 10px; border-radius: 999px; border: 2px solid var(--border);
  font-size: 0.74rem; font-weight: 800; color: var(--ink);
}
.rating-badge [data-lucide] { width: 13px; height: 13px; }
.rating-badge--booked { background: var(--vibe-booked); }
.rating-badge--must_do { background: var(--vibe-must_do); }
.rating-badge--interested { background: var(--vibe-interested); }
.rating-badge--could_skip { background: var(--vibe-could_skip); }

/* Visited state on the card: the priority chip shows green "Visited" and the
   card gently dims so been-there places read as done without disappearing. */
.sticker-card.is-visited { opacity: 0.72; }
/* Inside the Visited view every card is visited, so drop the redundant dim. */
.visited-grid .sticker-card.is-visited { opacity: 1; }

/* Selectable card (trip "add from Wander List" picker). Whole card toggles. */
.scrap-card--select { cursor: pointer; }
.scrap-card--select.is-selected { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(190, 231, 208, 0.55); }
.scrap-card__check { position: absolute; top: 10px; right: 10px; z-index: 1; color: var(--ink-muted); }
.scrap-card--select.is-selected .scrap-card__check { color: #2F8F5B; }
.scrap-card__check [data-lucide] { width: 22px; height: 22px; }
.scrap-card__fits-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.68rem; font-weight: 900; color: #8a3350;
  background: var(--blush); border: 1.5px solid var(--blush-deep);
  border-radius: 999px; padding: 2px 9px;
}
.scrap-card__fits-badge [data-lucide] { width: 13px; height: 13px; }
/* "New" tag — a place imported since the user last opened the Wander List.
   Sits on the media's top-left; the category bubble slides right to clear it. */
.scrap-card__new-badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.68rem; font-weight: 900; letter-spacing: 0.02em; color: #FFFFFF;
  background: var(--blush-deep); border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px; padding: 2px 9px;
  box-shadow: 1.5px 1.5px 0 rgba(91, 84, 104, 0.18);
}
.scrap-card__new-badge [data-lucide] { width: 13px; height: 13px; }
.scrap-card--new .cat-bubble { left: 58px; }

/* Unified "add to trip" suggestion picker (TripSuggestions): a type-filter chip
   row, a paged 2-column grid of basic cards (3×2), ‹ › pager, manual fallback. */
.ts-modal__card.ts-suggestions { max-height: 86vh; display: flex; flex-direction: column; }
.ts-suggestions__filter { flex-shrink: 0; }
.ts-suggestions #ts-grid { overflow-y: auto; flex: 1; min-height: 0; }
/* Type-filter chip: category sprite + label + count, in the scrollable row. */
.ts-chip {
  display: inline-flex; align-items: center; gap: 0.35rem; flex-shrink: 0;
  min-height: 40px; padding: 0.2rem 0.7rem; border-radius: 999px;
  border: 1.5px dashed var(--border); background: transparent; color: var(--ink-muted);
  font-size: 0.78rem; font-weight: 800; cursor: pointer;
}
.ts-chip:hover { border-color: var(--ink-muted); color: var(--ink); }
.ts-chip.is-active {
  border: 1.5px solid var(--ink); background: var(--card); color: var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
}
.ts-chip .ts-sprite, .ts-chip svg { width: 16px; height: 16px; }
.ts-chip__count { opacity: 0.6; font-variant-numeric: tabular-nums; }
/* ‹ › pager */
.ts-suggestions__pager {
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  flex-shrink: 0; padding-top: 0.6rem;
}
.ts-suggestions__pager:empty { display: none; }
.ts-suggestions__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--card); color: var(--ink); cursor: pointer;
}
.ts-suggestions__arrow:disabled { opacity: 0.35; cursor: default; }
.ts-suggestions__pageinfo { font-size: 0.82rem; font-weight: 800; color: var(--ink-muted); }
.ts-suggestions__footer {
  flex-shrink: 0; position: sticky; bottom: 0; padding-top: 0.7rem; margin-top: 0.2rem;
  background: var(--card);
}
.ts-suggestions__footer .ts-btn { width: 100%; }

.source-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 800; color: var(--ink-muted);
  background: var(--paper); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 2px 10px;
}
.confidence-hint { font-size: 0.72rem; color: var(--ink-muted); font-style: italic; }

/* processing shimmer (source cards, skeletons) */
.shimmer {
  background: linear-gradient(100deg, var(--paper) 40%, #FFFFFF 50%, var(--paper) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Checkpoints (stay/travel cards in the Plans tab) ─────────────────── */
.checkpoint-list { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.7rem; }
.checkpoint-card { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; }
.checkpoint-card__icon {
  width: 40px; height: 40px; border-radius: 999px; border: 2px solid var(--border);
  display: grid; place-items: center; flex-shrink: 0;
}
.checkpoint-card__icon--travel { background: var(--sky, #BDE0FE); }
.checkpoint-card__icon--stay { background: var(--mint, #BEE7D0); }
.checkpoint-card__icon [data-lucide] { width: 20px; height: 20px; }
.checkpoint-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.checkpoint-card__type {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-muted);
}
.checkpoint-card__name { font-weight: 800; overflow-wrap: anywhere; }
/* Dashed placeholder for the uncovered dates between two dated checkpoints. */
.checkpoint-gap {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; width: 100%; border-radius: 14px;
  border: 2px dashed var(--border); background: transparent;
  color: var(--ink-muted); font-weight: 800; font-size: 0.84rem; cursor: pointer;
}
.checkpoint-gap:hover { border-color: var(--ink-muted); color: var(--ink); }
.checkpoint-gap [data-lucide] { width: 16px; height: 16px; }

.bookend-same__hint { color: var(--ink-muted); font-weight: 700; }
.bookend-same__note { color: var(--ink-muted); font-size: 0.78rem; margin: 0.35rem 0 0; }

/* ── Toast ────────────────────────────────────────────────── */
#toast-root { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.ts-toast {
  background: var(--ink); color: var(--paper);
  border-radius: 999px; padding: 10px 20px;
  font-weight: 700; font-size: 0.88rem;
  animation: fadeUp 200ms ease both;
  box-shadow: 0 6px 18px rgba(91, 84, 104, 0.3);
}
.ts-toast--error { background: #B4485E; }

/* ── Empty states ────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2.5rem 1rem; gap: 0.6rem;
  animation: fadeIn 300ms ease both;
}
.empty-state img { width: 210px; max-width: 80%; }
.empty-state .empty-title { font-family: var(--font-display); font-size: 1.6rem; margin: 0; }
.empty-state .empty-desc { font-size: 0.9rem; color: var(--ink-muted); margin: 0; max-width: 280px; }

/* ── Modal (shared confirm/editor surface) ─────────────────────────── */
.ts-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 1rem; }
.ts-modal__backdrop { position: absolute; inset: 0; background: rgba(91, 84, 104, 0.45); }
.ts-modal__card {
  position: relative; width: 100%; max-width: 420px; max-height: 86vh; overflow-y: auto;
  background: var(--card); border: 2px solid var(--border); border-radius: 20px;
  padding: 1.3rem; box-shadow: 0 16px 40px rgba(91, 84, 104, 0.3);
  animation: fadeUp 180ms ease both;
}
.ts-modal__title { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 0.4rem; }
.ts-modal__close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px;
  border-radius: 999px; border: 2px solid var(--border); background: var(--card);
  cursor: pointer; display: grid; place-items: center; color: var(--ink);
}

/* ── Auth (shared vibelab auth-ui rule) ────────────────────────────── */
.auth-card { max-width: 380px; margin: 8vh auto 0; }
.auth-oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; background: var(--bg); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 11px 16px; font-size: 15px; font-weight: 600; cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.auth-oauth-btn:hover:not(:disabled) { background: var(--bg-card); border-color: var(--text-muted); }
.auth-oauth-btn:active:not(:disabled) { transform: translateY(1px); }
.auth-oauth-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-oauth-logo { width: 18px; height: 18px; flex-shrink: 0; }
.auth-oauth-apple .auth-oauth-logo { color: var(--text-primary); }
.auth-divider {
  display: flex; align-items: center; text-align: center;
  margin: 18px 0 16px; color: var(--text-muted); font-size: 13px; font-weight: 400;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.auth-divider span { padding: 0 12px; }
.auth-error { color: #B4485E; background: #FDECEF; border-radius: 10px; padding: 8px 12px; font-size: 0.85rem; margin: 0.6rem 0 0; }

/* ── Scrap popup (bookmarklet window) ────────────────────────────── */
body.popup-mode .ts-header { display: none !important; }
body.popup-mode { max-width: 420px; }
.scrap-popup__success { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 2rem 0; }
.scrap-popup__success img { width: 120px; animation: stamp 400ms cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes stamp { from { transform: scale(2.2) rotate(-14deg); opacity: 0; } to { transform: scale(1) rotate(-4deg); opacity: 1; } }

/* ── Bookmarklet chip (settings) ────────────────────────────────── */
.bookmarklet-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blush); border: 2px solid var(--ink); border-radius: 999px;
  padding: 10px 20px; font-weight: 800; color: var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink); cursor: grab; text-decoration: none;
}

/* ── Tutorial carousel (Settings → How it works) ─────────────────────── */
.tutorial-card { text-align: center; padding-top: 2.2rem; }
.tutorial-card__art { width: 100%; max-width: 260px; margin: 0 auto 0.6rem; display: block; }
.tutorial-card__title { font-size: 1.7rem; margin: 0.2rem 0 0.4rem; }
.tutorial-card__body { font-size: 0.92rem; color: var(--ink-muted); line-height: 1.5; margin: 0 auto 1rem; max-width: 320px; }
.tutorial-card__footnote { font-size: 0.78rem; color: var(--ink-muted); opacity: 0.75; line-height: 1.45; margin: -0.5rem auto 1rem; max-width: 320px; }
.tutorial-card__dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 1.1rem; }
.tutorial-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--border);
  cursor: pointer; transition: background 0.15s, transform 0.15s;
}
.tutorial-dot.is-active { background: var(--blush-deep); transform: scale(1.3); }
.tutorial-card__nav { display: flex; justify-content: space-between; gap: 0.6rem; }
.tutorial-card__nav .ts-btn { flex: 1; }

/* ── Misc ─────────────────────────────────────────────────── */
.loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 60vh; }
.error-banner {
  background: #FDECEF; border: 1px solid #F0B9C4; border-radius: 12px;
  padding: 0.75rem 1rem; color: #B4485E; font-size: 0.875rem; margin: 1rem 0;
  display: flex; align-items: center; gap: 0.5rem;
}
.card-grid { display: grid; gap: 0.8rem; margin: 1rem 0; }
/* Grid items default to a content-based automatic minimum width, which would
   let an unbreakable nowrap title (see .scrap-card__title) force the column
   wider than its track instead of clipping/marqueeing inside it. */
.card-grid > .sticker-card { min-width: 0; }
/* Two cards per row everywhere — cards are condensed to fit half-width.
   Only truly tiny screens fall back to a single column. */
.card-grid--2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 339px) { .card-grid--2col { grid-template-columns: 1fr; } }
.card-grid--2col > .sticker-card { padding: 0.7rem; }
.card-grid--2col .sticker-card .scrap-card__sub {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
[data-lucide] { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon-sm [data-lucide] { width: 16px; height: 16px; }
.icon-md [data-lucide] { width: 20px; height: 20px; }
.icon-lg [data-lucide] { width: 24px; height: 24px; }

/* ── Source cards (inbox: processing / failed capture events) ───────────── */
.source-card--processing { min-height: 64px; }
.source-card--failed { border-color: #F0B9B9; background: #FFF7F5; }

/* Staged scraps awaiting review get a lavender "hold" tint. */
.scrap-card--staged { border-color: var(--lavender); background: #FBF9FF; }
.washi--lavender::before { background: var(--lavender); }

/* Inbox nav badge (unsorted finds count). */
.nav-badge {
  position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; background: var(--blush-deep);
  color: #FFFFFF; font-size: 0.62rem; font-weight: 800; line-height: 17px;
  text-align: center; pointer-events: none;
}

/* ── Trip sharing: vibes, consensus, crew ──────────────────────────── */
/* Per-level accents shared by the vibe control segments and consensus chips. */
:root {
  --vibe-booked:      var(--mint);
  --vibe-must_do:     var(--blush);
  --vibe-interested:  var(--sky);
  --vibe-could_skip:  var(--border);
}

/* "Added by X" / "Shared by X" attribution line. */
.added-by {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 700; color: var(--ink-muted);
  margin-top: 0.55rem;
}
.added-by i { width: 13px; height: 13px; }

/* ── Trip timeline (endpoint bookends, day cards, suggested rows) ─────────── */
.tl-bookend { display: flex; align-items: center; gap: 0.7rem; }
.tl-bookend__icon {
  width: 40px; height: 40px; border-radius: 999px; border: 2px solid var(--border);
  background: var(--sky, #BDE0FE); display: grid; place-items: center; flex-shrink: 0;
}
.tl-bookend__icon [data-lucide] { width: 20px; height: 20px; }
.tl-bookend__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tl-bookend__role {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-muted);
}
.tl-bookend__name { font-weight: 800; overflow-wrap: anywhere; }
.tl-add-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; width: 100%; border-radius: 14px;
  border: 2px dashed var(--border); background: transparent;
  color: var(--ink-muted); font-weight: 800; font-size: 0.9rem; cursor: pointer;
}
.tl-add-btn:hover { border-color: var(--ink-muted); color: var(--ink); }
.tl-add-btn [data-lucide] { width: 17px; height: 17px; }
/* Auto-placed (route-suggested) rows read dashed + slightly faded; anchored
   rows are solid. */
.tl-row--auto { border-style: dotted; opacity: 0.94; background: var(--paper); }

/* Route summary line atop the timeline. */
.tl-route-summary {
  display: flex; align-items: center; gap: 0.45rem; margin: 0;
  font-size: 0.82rem; font-weight: 700; color: var(--ink-soft, #7a6f63);
}
.tl-route-summary [data-lucide] { width: 16px; height: 16px; flex: 0 0 auto; }

/* Tappable title (opens the plan popup) + the auto/anchored placement icon. */
.tl-row__title {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.4rem;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  font: inherit; color: inherit; text-align: left; min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.tl-row__name { overflow-wrap: anywhere; }
.tl-row__place {
  flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px;
  color: var(--ink-muted);
}
.tl-row--auto .tl-row__place { color: var(--butter-deep, #C9A227); }
.tl-row:not(.tl-row--auto) .tl-row__place { color: var(--accent, #E07A5F); }

/* Leg connector between two consecutive stops: distance + estimated time. */
.tl-leg {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.1rem 0.5rem 0.1rem 0.9rem;
  font-size: 0.72rem; color: var(--ink-muted);
}
.tl-leg__rail { width: 2px; height: 14px; margin-left: 8px; background: var(--border); border-radius: 2px; }
.tl-leg [data-lucide] { width: 14px; height: 14px; flex: 0 0 auto; }
.tl-leg__text { overflow-wrap: anywhere; }


.tl-day__head { display: flex; align-items: baseline; gap: 0.6rem; }
.tl-day__num { font-family: var(--font-display, 'Caveat', cursive); font-size: 1.5rem; font-weight: 700; }
.tl-day__rows { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.5rem; }
.tl-row {
  display: flex; align-items: center; gap: 0.5rem; min-height: 44px;
  padding: 0.3rem 0.5rem; border-radius: 10px; flex-wrap: wrap;
}
.tl-row [data-lucide] { width: 16px; height: 16px; flex-shrink: 0; }
.tl-row--marker { background: var(--paper); font-size: 0.85rem; }
.tl-row--stop { border: 1.5px dashed var(--border); font-size: 0.85rem; }
.tl-row--stop.is-visited { opacity: 0.6; }
.tl-row--stop.is-skipped { opacity: 0.55; }
.tl-row--stop.is-skipped .tl-row__label { text-decoration: line-through; text-decoration-color: var(--ink-muted); }
.tl-row--booked { border-style: solid; border-color: var(--vibe-booked); background: color-mix(in srgb, var(--vibe-booked) 18%, transparent); }
.tl-row__time {
  min-width: 44px; text-align: center; font-weight: 800; font-size: 0.72rem;
  color: var(--ink-muted); flex-shrink: 0;
}
.tl-row__label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tl-row__btn {
  width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--border);
  background: var(--card); color: var(--ink-muted); cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0;
}
.tl-booked-badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--vibe-booked); font-size: 0.68rem; font-weight: 800;
}

/* ── Timeline plan checkbox: cycles clear → Visited → Skipped → clear ─────── */
.tl-check {
  width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 0;
  background: transparent; cursor: pointer; display: grid; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.tl-check [data-lucide] { width: 26px; height: 26px; }
.tl-check--clear { color: var(--ink-muted); }
.tl-check--visited { color: #2F8F5B; }
.tl-check--skipped { color: var(--ink-muted); }
.tl-check--ro { opacity: 0.8; cursor: default; }
.tl-outcome-badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em;
  vertical-align: middle;
}
.tl-outcome-badge--visited { background: #EAF7EF; color: #2F8F5B; border: 1.5px solid #2F8F5B; }
.tl-outcome-badge--skipped { background: var(--paper); color: var(--ink-muted); border: 1.5px solid var(--border); }

/* ── Swipe scaffold: right = schedule, left = off-timeline ──────────────── */
.tl-swipe { position: relative; overflow: hidden; border-radius: 10px; }
.tl-swipe__action {
  position: absolute; top: 0; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 0.4rem; padding: 0 0.95rem;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink); opacity: 0; transition: opacity 0.12s;
}
.tl-swipe__action [data-lucide] { width: 18px; height: 18px; }
.tl-swipe__action--schedule { justify-content: flex-start; background: var(--mint); }
.tl-swipe__action--remove { justify-content: flex-end; background: var(--blush); }
.tl-swipe.is-swipe-schedule .tl-swipe__action--schedule { opacity: 1; }
.tl-swipe.is-swipe-remove .tl-swipe__action--remove { opacity: 1; }
.tl-swipe > .tl-row {
  position: relative; z-index: 1; background: var(--card);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.tl-swipe > .tl-row--auto { background: var(--paper); }
.tl-swipe > .tl-row--booked { background: color-mix(in srgb, var(--vibe-booked) 18%, var(--card)); }

/* ── Press-and-hold drag: pick a plan up, drop it on any day ───────────── */
.tl-row--draggable { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.tl-row__grip { color: var(--ink-muted); background: none; border: none; padding: 0; display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; cursor: pointer; touch-action: none; }
.tl-row__grip:active { cursor: grabbing; }
.tl-row__grip [data-lucide] { width: 16px; height: 16px; }
.tl-swipe.is-dragging > .tl-row { opacity: 0.35; }
.tl-drag-clone {
  position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none;
  border-radius: 10px; background: var(--card); opacity: 0.97; rotate: -1.5deg;
  box-shadow: 0 14px 30px rgba(60, 40, 20, 0.25);
}
.tl-day { transition: outline-color 0.1s, background 0.1s; }
.tl-day--drop { outline: 2.5px dashed #5FB98A; outline-offset: 3px; background: color-mix(in srgb, var(--mint) 22%, var(--card)); }

/* ── Plan popup (title-tap detail: read-only place + editable notes/day) ── */
.pp-head { display: flex; align-items: center; gap: 0.7rem; }
.pp-head .ts-sprite { flex-shrink: 0; }
.pp-photo {
  display: block; width: 100%; max-height: 180px; object-fit: cover;
  border-radius: 12px; margin-top: 0.7rem; border: 2px solid var(--ink);
}

/* Priority/vibe chip on scrap cards: one chip showing the current level;
   tapping opens the PriorityPicker popup. */
.priority-chip {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 34px; padding: 0.15rem 0.7rem;
  border: 1.5px solid var(--ink); border-radius: 999px;
  color: var(--ink); font-size: 0.74rem; font-weight: 800; cursor: pointer;
  box-shadow: 1.5px 1.5px 0 var(--ink);
  transition: transform 0.08s;
}
.priority-chip:active { transform: translateY(1px); box-shadow: none; }
.priority-chip [data-lucide] { width: 15px; height: 15px; }
.priority-chip--booked { background: var(--vibe-booked); }
.priority-chip--must_do { background: var(--vibe-must_do); }
.priority-chip--interested { background: var(--vibe-interested); }
.priority-chip--could_skip { background: var(--vibe-could_skip); }
.priority-chip--visited { background: #EAF7EF; border-color: #2F8F5B; color: #2F8F5B; box-shadow: 1.5px 1.5px 0 #2F8F5B; }
.priority-chip--ghost {
  border: 1.5px dashed var(--border); color: var(--ink-muted);
  background: transparent; box-shadow: none;
}
.priority-chip--ghost:hover { border-color: var(--ink-muted); color: var(--ink); }

/* The picker popup's option rows. */
.priority-options { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; }
.priority-option {
  display: flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0.3rem 0.8rem;
  border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font-size: 0.9rem; font-weight: 800; cursor: pointer; text-align: left;
}
.priority-option [data-lucide] { width: 18px; height: 18px; }
.priority-option:hover { border-color: var(--ink-muted); }
.priority-option.is-on { border-color: var(--ink); box-shadow: 1.5px 1.5px 0 var(--ink); }
.priority-option--booked.is-on, .priority-option--booked:hover { background: var(--vibe-booked); }
.priority-option--must_do.is-on, .priority-option--must_do:hover { background: var(--vibe-must_do); }
.priority-option--interested.is-on, .priority-option--interested:hover { background: var(--vibe-interested); }
.priority-option--could_skip.is-on, .priority-option--could_skip:hover { background: var(--vibe-could_skip); }
.priority-option--visited.is-on, .priority-option--visited:hover { background: #EAF7EF; }
.priority-option--visited { color: #2F8F5B; }
.priority-option--clear { color: var(--ink-muted); border-style: dashed; }
.priority-option__check { margin-left: auto; }

/* Export/download picker (widgets/export-menu.js) */
.export-scope { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.8rem; }
.export-scope__label { font-size: 0.78rem; font-weight: 700; color: var(--ink-muted); }
.export-scope__select { width: 100%; }
.export-options { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; }
.export-option {
  display: flex; align-items: center; gap: 0.7rem;
  min-height: 56px; padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  cursor: pointer; text-align: left; width: 100%;
}
.export-option:hover:not(:disabled) { border-color: var(--ink-muted); }
.export-option:disabled { opacity: 0.5; cursor: not-allowed; }
.export-option__icon { width: 22px; height: 22px; flex-shrink: 0; }
.export-option__text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; flex: 1; }
.export-option__label { font-size: 0.95rem; font-weight: 800; }
.export-option__sub { font-size: 0.78rem; font-weight: 600; color: var(--ink-muted); }
.export-option__go { width: 16px; height: 16px; flex-shrink: 0; color: var(--ink-muted); margin-left: auto; }
.export-legs { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.6rem; }
.export-legs:empty { display: none; }

/* Group consensus: one avatar chip per traveler + a headline. */
.vibe-consensus {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.55rem;
}
.vibe-consensus__chips { display: inline-flex; }
.vibe-consensus__chips .vibe-chip:not(:first-child) { margin-left: -6px; }
.vibe-chip {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 999px;
  border: 2px solid var(--card); background: var(--border);
  font-size: 0.66rem; font-weight: 800; color: var(--ink);
}
.vibe-chip--booked { background: var(--vibe-booked); }
.vibe-chip--must_do { background: var(--vibe-must_do); }
.vibe-chip--interested { background: var(--vibe-interested); }
.vibe-chip--could_skip { background: var(--vibe-could_skip); }
.vibe-consensus__headline { font-size: 0.74rem; font-weight: 800; color: var(--ink); }

/* Crew list (share modal + invitations banner). */
.crew-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.crew-row {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.4rem 0;
}
.crew-avatar {
  flex-shrink: 0; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--sky); border: 2px solid var(--ink);
  font-weight: 800; color: var(--ink);
}
.crew-role-badge {
  font-size: 0.68rem; font-weight: 800; color: var(--ink-muted);
  background: var(--paper); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 2px 9px;
}
.crew-remove {
  flex-shrink: 0; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  border: none; background: none; color: var(--ink-muted); cursor: pointer;
}
.crew-remove:hover { color: var(--accent); }
