/* =========================================================
   Ocean Avenue · Talent Scout
   Editorial scouting journal — ivory paper, oxblood accent
   ========================================================= */

:root,
[data-theme="light"] {
  /* Surfaces — clean white, warm undertones preserved in borders */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #fafaf8;
  --color-surface-offset: #f4f1ea;
  --color-surface-offset-2: #e8e3d6;
  --color-divider: #e5e0d2;
  --color-border: #d4cdb8;

  /* Ink — deep warm black */
  --color-text: #1a1814;
  --color-text-muted: #6e6657;
  --color-text-faint: #a89e85;
  --color-text-inverse: #faf6ec;

  /* Primary — Oxblood / theatre curtain */
  --color-primary: #6e1620;
  --color-primary-hover: #501018;
  --color-primary-active: #380b10;
  --color-primary-highlight: #e8d0d3;

  /* Accent — antique gold */
  --color-accent: #a87f2c;
  --color-accent-hover: #876522;
  --color-accent-highlight: #ece1c3;

  /* Discipline tags */
  --tag-film: #2f4a3d;
  --tag-film-bg: #d8e1d6;
  --tag-theater: #6e1620;
  --tag-theater-bg: #e8d0d3;
  --tag-music: #1e3a5f;
  --tag-music-bg: #d2dde7;
  --tag-dance: #5a3e1a;
  --tag-dance-bg: #e6d8bf;
  --tag-multi: #4a3b5e;
  --tag-multi-bg: #d9d3e2;

  /* Status (CRM) */
  --status-spotted: #6e6657;
  --status-spotted-bg: #e0d8c4;
  --status-watching: #1e3a5f;
  --status-watching-bg: #d2dde7;
  --status-reached: #a87f2c;
  --status-reached-bg: #ece1c3;
  --status-signed: #2f4a3d;
  --status-signed-bg: #d8e1d6;
  --status-passed: #6e6657;
  --status-passed-bg: #ebe4d4;

  /* Radius / motion */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 14px;
  --shadow-sm: 0 1px 2px rgba(40, 25, 10, 0.06);
  --shadow-md: 0 4px 16px rgba(40, 25, 10, 0.08);
  --shadow-lg: 0 16px 40px rgba(40, 25, 10, 0.14);
  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Type */
  --font-body: "General Sans", "Helvetica Neue", system-ui, sans-serif;
  --font-display: "Editorial New", "Times New Roman", serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.83rem + 0.2vw, 0.9375rem);
  --text-base: 1rem;
  --text-lg: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --text-display: clamp(2.25rem, 1.5rem + 3vw, 4rem);
}

[data-theme="dark"] {
  --color-bg: #161412;
  --color-surface: #1d1b18;
  --color-surface-2: #232017;
  --color-surface-offset: #2a2620;
  --color-surface-offset-2: #322d24;
  --color-divider: #2e2a23;
  --color-border: #3d3830;

  --color-text: #ece5d4;
  --color-text-muted: #8b8474;
  --color-text-faint: #5a5448;
  --color-text-inverse: #1d1b18;

  --color-primary: #c97179;
  --color-primary-hover: #d68d93;
  --color-primary-active: #e1a5aa;
  --color-primary-highlight: #4a2a2e;

  --color-accent: #d4a84a;
  --color-accent-hover: #e3bd6b;
  --color-accent-highlight: #4a3a1d;

  --tag-film: #a8c3b0;
  --tag-film-bg: #2a3a30;
  --tag-theater: #d68d93;
  --tag-theater-bg: #4a2a2e;
  --tag-music: #8db4d6;
  --tag-music-bg: #1f2e42;
  --tag-dance: #c9a665;
  --tag-dance-bg: #3a2e1a;
  --tag-multi: #b09cc4;
  --tag-multi-bg: #2f2738;

  --status-spotted: #a8a08c;
  --status-spotted-bg: #2a2620;
  --status-watching: #8db4d6;
  --status-watching-bg: #1f2e42;
  --status-reached: #d4a84a;
  --status-reached-bg: #3a2e1a;
  --status-signed: #a8c3b0;
  --status-signed-bg: #2a3a30;
  --status-passed: #6b6555;
  --status-passed-bg: #2a2620;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(168, 127, 44, 0.05), transparent 40%),
    radial-gradient(circle at 88% 92%, rgba(110, 22, 32, 0.04), transparent 40%);
  background-attachment: fixed;
}

button, input, textarea, select {
  font: inherit; color: inherit;
}
button { cursor: pointer; background: none; border: none; }

a, button, [role="button"], input, textarea, select {
  transition: color var(--transition), background var(--transition),
    border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ===== Layout shell ===== */
.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg), transparent 8%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  display: grid;
  place-items: center;
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-tabs {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  position: relative;
  padding: 8px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}
.nav-tab:hover { color: var(--color-text); }
.nav-tab.active {
  color: var(--color-text);
}
.nav-tab.active::after {
  content: "";
  position: absolute;
  bottom: -19px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--color-primary);
}

.nav-tab .count {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.6875rem;
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}

.theme-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-text-muted); }

/* ===== Hero / Discovery header ===== */
.discovery-hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 32px 12px;
}
.hero-compact { padding: 20px 32px 8px; }

.hero-eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 22ch;
  margin-bottom: 18px;
}
.hero-title em {
  font-style: italic;
  color: var(--color-primary);
}

.hero-meta {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 60ch;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--color-divider);
  padding-top: 12px;
  margin-top: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  flex-wrap: nowrap;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.hero-stats::-webkit-scrollbar { display: none; }

.stat {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-surface-offset);
  border: 1px solid var(--color-divider);
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}
.stat-label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ===== Filter bar ===== */
.filter-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 32px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-bar-sub { padding-top: 0; padding-bottom: 8px; }
.filter-bar-sub .chips {
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scrollbar-width: none;
  padding-bottom: 2px;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.filter-bar-sub .chips::-webkit-scrollbar { display: none; }

.search-input {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.search-input:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.search-input input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--text-sm);
}
.search-input svg { color: var(--color-text-muted); flex-shrink: 0; }

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  padding: 7px 14px;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full, 999px);
  color: var(--color-text-muted);
  background: var(--color-surface);
}
.chip:hover {
  color: var(--color-text);
  border-color: var(--color-text-muted);
}
.chip.active {
  background: var(--color-text);
  color: var(--color-text-inverse);
  border-color: var(--color-text);
}

.select {
  padding: 10px 14px;
  font-size: var(--text-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
}

/* ===== Festival cards grid ===== */
.cards-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 32px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-text-muted);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.tag-film { color: var(--tag-film); background: var(--tag-film-bg); }
.tag-theater { color: var(--tag-theater); background: var(--tag-theater-bg); }
.tag-music { color: var(--tag-music); background: var(--tag-music-bg); }
.tag-dance { color: var(--tag-dance); background: var(--tag-dance-bg); }
.tag-multi { color: var(--tag-multi); background: var(--tag-multi-bg); }
.tag-conservatory { color: var(--tag-multi); background: var(--tag-multi-bg); }

.card-month {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.card-location {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-location .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--color-text-faint);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-divider);
}

.age-pill {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.btn-spot {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  background: transparent;
}
.btn-spot:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-spot.saved {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* ===== Modal (festival detail) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in oklab, var(--color-text), transparent 30%);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 100;
  animation: fade-in 200ms ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  max-width: 720px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slide-up 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-head {
  position: sticky;
  top: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  padding: 24px 32px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modal-close {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.modal-close:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.modal-body {
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.modal-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  padding: 18px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
}

.detail-item .label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}
.detail-item .value {
  font-size: var(--text-sm);
  font-weight: 500;
}

.modal-section h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.modal-section p {
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 10px;
  padding-top: 8px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-primary);
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface-offset);
}

/* ===== Scouting CRM ===== */
.crm-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}

.crm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.crm-title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.crm-title em { font-style: italic; color: var(--color-primary); }

.crm-empty {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  text-align: center;
}
.crm-empty h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.crm-empty p {
  color: var(--color-text-muted);
  margin: 0 auto 24px;
  max-width: 50ch;
}

/* Talent list */
.talent-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1100px) { .talent-board { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .talent-board { grid-template-columns: 1fr; } }

.lane {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-divider);
}
.lane-name {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-text);
}
.lane-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.talent-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.talent-card:hover {
  border-color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.talent-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.talent-discipline {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.talent-source {
  font-size: 0.6875rem;
  color: var(--color-text-faint);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Add talent form modal */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}
.form-input, .form-textarea, .form-select {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  font-family: inherit;
  width: 100%;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* Status badge */
.status-badge {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}
.status-spotted { color: var(--status-spotted); background: var(--status-spotted-bg); }
.status-watching { color: var(--status-watching); background: var(--status-watching-bg); }
.status-reached { color: var(--status-reached); background: var(--status-reached-bg); }
.status-signed { color: var(--status-signed); background: var(--status-signed-bg); }
.status-passed { color: var(--status-passed); background: var(--status-passed-bg); }

/* Empty state on no results */
.no-results {
  grid-column: 1 / -1;
  padding: 64px 24px;
  text-align: center;
  color: var(--color-text-muted);
}
.no-results svg { margin: 0 auto 18px; opacity: 0.5; }

/* Responsive header */
@media (max-width: 720px) {
  .header-inner { padding: 14px 20px; gap: 16px; }
  .nav-tabs { gap: 0; }
  .nav-tab { padding: 6px 12px; }
  .brand-text { display: none; }
  .discovery-hero, .crm-shell, .filter-bar, .cards-grid { padding-left: 16px; padding-right: 16px; }
  .discovery-hero { padding-top: 16px; padding-bottom: 8px; }
  .hero-compact { padding-top: 12px; padding-bottom: 4px; }
  .hero-stats { gap: 6px; padding-top: 10px; }
  .filter-bar { padding-top: 8px; padding-bottom: 6px; gap: 8px; }
}

/* Detail row inside talent modal */
.talent-detail-section {
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  padding: 16px;
}
.talent-detail-section .label {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.talent-detail-section .value {
  font-size: var(--text-sm);
  line-height: 1.5;
}

.danger-link {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.danger-link:hover { color: var(--color-primary); }

a.external {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a.external:hover { color: var(--color-primary-hover); }

/* =========================================================
   Pathways — Artist origin stories
   ========================================================= */

.pathways-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.pathways-intro {
  max-width: 60ch;
  margin-bottom: 48px;
}

.pathway-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 80px;
}

.pathway-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 780px) {
  .pathway-card { grid-template-columns: 1fr; padding: 24px; gap: 18px; }
}

.pathway-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 24px;
  border-right: 1px solid var(--color-divider);
}
@media (max-width: 780px) {
  .pathway-meta { border-right: none; border-bottom: 1px solid var(--color-divider); padding: 0 0 18px 0; flex-direction: row; flex-wrap: wrap; gap: 24px; }
}

.pathway-name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.pathway-stat-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pathway-stat-row .label {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.pathway-stat-row .value {
  font-size: 0.9375rem;
  font-weight: 500;
}

.pathway-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pathway-section h4 {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.pathway-section p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.pathway-lesson {
  background: var(--color-accent-highlight);
  border-left: 3px solid var(--color-accent);
  padding: 14px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.pathway-lesson h4 {
  color: var(--color-accent);
  margin-bottom: 4px;
}
.pathway-lesson p {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--color-text);
}

.pathway-archetypes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.archetype-pill {
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-surface-offset);
  color: var(--color-text);
  border: 1px solid var(--color-divider);
  cursor: pointer;
}
.archetype-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pathway-sources {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.pathway-sources a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-decoration-color: var(--color-divider);
  text-underline-offset: 3px;
}
.pathway-sources a:hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary);
}

/* Archetypes section */
.archetypes-section {
  margin-top: 24px;
  padding-top: 56px;
  border-top: 1px solid var(--color-divider);
}

.archetypes-section .section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.archetypes-section .section-title em { font-style: italic; color: var(--color-primary); }

.archetypes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.archetype-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.archetype-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.archetype-card p {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
}
.archetype-card .watch {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-divider);
  padding-top: 10px;
  margin-top: auto;
}
.archetype-card .watch strong {
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  display: block;
  margin-bottom: 4px;
}
.archetype-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Hide babel debug noise */
[type="text/babel"] { display: none !important; }

/* =========================================================
   Targets — Signing Pipeline
   ========================================================= */

.targets-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
}

.target-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.target-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(26, 24, 20, 0.06);
  border-color: var(--color-primary);
}

.target-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.target-name {
  font-family: "Editorial New", "General Sans", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0;
}

.target-meta {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.target-pill {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-online {
  color: var(--tag-music);
  background: var(--tag-music-bg);
}
.pill-festival {
  color: var(--tag-dance);
  background: var(--tag-dance-bg);
}
.pill-conservatory {
  color: var(--tag-theater);
  background: var(--tag-theater-bg);
}
.pill-other {
  color: var(--tag-multi);
  background: var(--tag-multi-bg);
}
.pill-industry-list {
  color: var(--tag-musical-theater, var(--tag-multi));
  background: var(--tag-musical-theater-bg, var(--tag-multi-bg));
}
.pill-recurring {
  color: var(--tag-acting, var(--tag-multi));
  background: var(--tag-acting-bg, var(--tag-multi-bg));
}
.pill-established {
  color: #555;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .pill-established {
  color: #ccc;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.targets-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--color-text-muted, #6b6b6b);
}

.feed-card-readonly {
  opacity: 0.92;
}
.feed-card-readonly .feed-card-name {
  color: var(--color-text, inherit);
}

.target-why {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0;
}

.target-channel-line {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.target-channel-line strong {
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.target-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.target-actions .btn {
  font-size: 13px;
  padding: 7px 12px;
}
.target-actions .btn.on-roster {
  color: var(--status-signed);
  border-color: var(--status-signed);
  background: var(--status-signed-bg);
  cursor: default;
}

.filter-bar-sub {
  padding-top: 0;
  padding-bottom: 16px;
  justify-content: space-between;
}
.filter-bar-sub .chip {
  font-size: 11px;
  padding: 5px 11px;
}
.result-count {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-left: auto;
}

@media (max-width: 720px) {
  .targets-grid {
    padding: 0 16px 60px;
    grid-template-columns: minmax(0, 1fr);
  }
  .target-name {
    font-size: 19px;
  }
  .target-card {
    padding: 18px 16px 16px;
    min-width: 0;
  }
}

/* ---------- Target media (photo + signature clip) ---------- */
.target-media {
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-areas:
    "photo video"
    "caption caption";
  gap: 12px;
  margin: 14px 0 4px;
}
.target-photo {
  grid-area: photo;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-surface-2, #ece6da);
  border: 1px solid var(--color-border, rgba(0,0,0,0.08));
  flex-shrink: 0;
}
.target-photo a,
.target-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.target-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, Georgia, serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-primary, #6e1620);
  background: var(--color-surface-2, #ece6da);
}
[data-theme="dark"] .target-photo-fallback {
  color: var(--color-primary, #c97179);
}

.target-video {
  grid-area: video;
  position: relative;
  width: 100%;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--color-border, rgba(0,0,0,0.08));
}
.target-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.target-video-play {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}
.target-video-play img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 180ms ease, transform 220ms ease;
}
.target-video-play:hover img {
  opacity: 1;
  transform: scale(1.03);
}
.target-video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.target-video-badge {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 3px;
}
.target-video-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(110,22,32,0.92), rgba(201,113,121,0.85));
  text-decoration: none;
  color: #fff;
  transition: transform 180ms ease, filter 180ms ease;
}
.target-video-link:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.target-video-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 8px;
}
.target-video-platform-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.target-video-platform-cta {
  font-size: 11px;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.target-video-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2, #ece6da);
  color: var(--color-text-muted, #7a7468);
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px dashed var(--color-border, rgba(0,0,0,0.12));
}
.target-video-caption {
  grid-area: caption;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-muted, #6f6a5e);
  font-style: italic;
}

@media (max-width: 720px) {
  .target-media {
    grid-template-columns: 80px 1fr;
  }
  .target-photo,
  .target-video {
    width: auto;
    height: 80px;
  }
  .target-photo {
    width: 80px;
  }
}

/* ---------- Calendar urgency states ---------- */
.card.cal-imminent {
  border-left: 4px solid #c8553d;
}
.card.cal-imminent .card-month {
  color: #c8553d;
}
.card.cal-soon {
  border-left: 4px solid var(--color-accent);
}
.card.cal-soon .card-month {
  color: var(--color-accent);
}
.card.cal-future {
  border-left: 4px solid var(--color-border);
}
.card.cal-past {
  opacity: 0.55;
}
.card.cal-past .card-month {
  color: var(--color-text-muted);
}

/* ---------- Compact hero (Targets-first redesign 2026-05-25) ---------- */
.discovery-hero.hero-compact {
  padding: 24px 0 16px;
  text-align: left;
}
.hero-title-sm {
  font-family: var(--font-display, "Editorial New", serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.hero-count {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0;
  font-family: var(--font-sans, "General Sans", system-ui);
}
.discovery-hero.hero-compact .hero-stats {
  margin-top: 0;
  justify-content: flex-start;
  gap: 32px;
}

/* ---------- New additions feature (2026-05-25) ---------- */
.new-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  font-family: var(--font-sans, "General Sans", system-ui);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-radius: 3px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}
.chip-new {
  border-color: var(--color-accent);
}
.chip-new.is-active,
.chip-new[aria-pressed="true"] {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
}
.chip-count {
  margin-left: 6px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 400;
}
.chip-new.is-active .chip-count,
.chip-new[aria-pressed="true"] .chip-count {
  color: var(--color-text-inverse);
  opacity: 0.85;
}

/* =========================================================
   Feed layout (2026-05-25)
   - Chip rows become single-line horizontal scroll on mobile
   - Cards become Instagram-style: square photo + name/meta
   ========================================================= */

/* ----- Mobile chip overflow: prevent vertical chip explosion ----- */
@media (max-width: 720px) {
  .filter-bar .chips,
  .filter-bar-sub .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    width: calc(100% + 32px);
  }
  .filter-bar .chips::-webkit-scrollbar,
  .filter-bar-sub .chips::-webkit-scrollbar {
    display: none;
  }
  .filter-bar .chips .chip,
  .filter-bar-sub .chips .chip {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .filter-bar {
    padding: 8px 16px 12px;
    gap: 10px;
  }
  .filter-bar-sub {
    padding: 4px 16px 12px;
  }
  .filter-bar .select {
    width: 100%;
  }
  .result-count {
    margin-left: 0;
  }
}

/* ----- Feed grid ----- */
.targets-grid {
  /* Override the auto-fill 360px grid for feed look */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 8px 32px 80px;
}
@media (max-width: 1100px) {
  .targets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .targets-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 4px 16px 60px;
  }
}

/* ----- Feed card ----- */
.feed-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26, 24, 20, 0.08);
  border-color: var(--color-primary);
}

.feed-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-surface-2, #ece6da);
  overflow: hidden;
}

.feed-photo,
.feed-photo a {
  display: block;
  width: 100%;
  height: 100%;
}
.feed-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.feed-photo .target-photo-fallback {
  width: 100%;
  height: 100%;
  font-size: 64px;
}

.feed-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 10px;
  padding: 4px 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.feed-new-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-family: var(--font-sans, "General Sans", system-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.feed-card-body {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.feed-card-name {
  font-family: "Editorial New", "General Sans", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.15;
  color: var(--color-text);
  margin: 0;
}
.feed-card-meta {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 2px 0 4px;
}
.feed-card-why {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0;
}
.rep-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 999px;
  margin: 0 0 6px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rep-badge.rep-none {
  background: rgba(120, 120, 120, 0.12);
  color: var(--color-text-muted);
  border: 1px solid rgba(120, 120, 120, 0.2);
}
.rep-badge.rep-signed {
  background: rgba(220, 130, 30, 0.14);
  color: #b86a18;
  border: 1px solid rgba(220, 130, 30, 0.3);
}
.velocity-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 999px;
  margin: 0 0 6px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.velocity-badge.velocity-pending {
  background: rgba(80, 120, 200, 0.10);
  color: #4c6fb0;
  border: 1px solid rgba(80, 120, 200, 0.25);
}
.velocity-badge.velocity-hot {
  background: rgba(210, 50, 90, 0.12);
  color: #b8316a;
  border: 1px solid rgba(210, 50, 90, 0.3);
}
.velocity-badge.velocity-cold {
  background: rgba(120, 120, 120, 0.10);
  color: var(--color-text-muted);
  border: 1px solid rgba(120, 120, 120, 0.2);
}
[data-theme="dark"] .velocity-badge.velocity-pending {
  color: #8aa8e0;
}
[data-theme="dark"] .velocity-badge.velocity-hot {
  color: #e26a98;
}
.feed-footer-link-chartmetric {
  color: #4c6fb0;
  font-weight: 600;
}
.feed-footer-link-chartmetric:hover {
  color: #2e4a8a;
  border-bottom-color: #2e4a8a;
}
[data-theme="dark"] .feed-footer-link-chartmetric {
  color: #8aa8e0;
}
.feed-card-primary-hint {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 600;
}

/* Card-as-link wrapper */
.feed-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  flex: 1;
}
a.feed-card-link:hover .feed-card-name {
  color: var(--color-primary);
}

/* Footer with secondary links + Add button */
.feed-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 14px;
  margin-top: 4px;
}
.feed-card-footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.feed-footer-link {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 140ms ease, border-color 140ms ease;
}
.feed-footer-link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.feed-footer-link-faint {
  opacity: 0.6;
}
.feed-add-btn {
  margin-left: auto;
  font-size: 13px;
  padding: 7px 14px;
  flex-shrink: 0;
}
.feed-add-btn.on-roster {
  color: var(--status-signed);
  border-color: var(--status-signed);
  background: var(--status-signed-bg);
  cursor: default;
}

/* === Ranking + tagging (added 2026-05-25) === */
.feed-card-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.feed-card-name-row .feed-card-name {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.score-hot {
  background: linear-gradient(135deg, #ff7a59 0%, #ff4d6d 100%);
  color: #fff;
}
.score-warm {
  background: #ffd166;
  color: #4a3500;
  border-color: rgba(0, 0, 0, 0.08);
}
.score-cool {
  background: rgba(127, 127, 127, 0.18);
  color: var(--text-secondary, #666);
  border-color: rgba(127, 127, 127, 0.25);
}

.feed-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tag-buttons {
  display: inline-flex;
  gap: 4px;
}
.tag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(127, 127, 127, 0.25);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: 0.55;
  transition: opacity 120ms ease, background 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.tag-btn:hover { opacity: 1; transform: translateY(-1px); }
.tag-btn.tag-active { opacity: 1; }
.tag-btn.tag-pursue.tag-active {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.6);
}
.tag-btn.tag-watch.tag-active {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.6);
}
.tag-btn.tag-skip.tag-active {
  background: rgba(127, 127, 127, 0.22);
  border-color: rgba(127, 127, 127, 0.5);
}

/* ============================================================
   Targets header redesign — clean single-row filter (2026-05-25)
   Replaces: discovery-hero count pills + 3 stacked filter bars
   ============================================================ */

.targets-header {
  padding: 24px 32px 12px;
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 5;
}

.targets-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.targets-title {
  font-family: var(--font-display, "Editorial New", "Times New Roman", serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.targets-title-count {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 22px;
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}

.targets-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-input-slim {
  min-width: 200px;
  max-width: 260px;
  padding: 6px 12px;
  border-radius: 8px;
}
.search-input-slim input {
  font-size: 14px;
}

.filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--color-border, rgba(0,0,0,0.14));
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}
.filter-trigger:hover {
  background: var(--color-surface-hover, rgba(0,0,0,0.04));
}
.filter-trigger.is-active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.filter-trigger-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.filter-trigger:not(.is-active) .filter-trigger-count {
  background: var(--color-text);
  color: var(--color-bg);
}

.select-slim {
  padding: 7px 28px 7px 12px;
  font-size: 14px;
  border-radius: 8px;
}

/* Channel row — single horizontal-scroll line of chips */
.channel-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  margin-left: -4px;
  margin-right: -4px;
}
.channel-row::-webkit-scrollbar { display: none; }

.channel-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--color-border, rgba(0,0,0,0.12));
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
  line-height: 1.2;
}
.channel-chip:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}
.channel-chip.active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* Filter sheet (modal) */
.filter-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 16px;
  animation: oa-fade-in 0.15s ease-out;
}
@keyframes oa-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.filter-sheet {
  background: var(--color-bg);
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  animation: oa-sheet-in 0.18s ease-out;
}
@keyframes oa-sheet-in {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.08));
}
.filter-sheet-header h2 {
  font-family: var(--font-display, "Editorial New", serif);
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}
.filter-sheet-close {
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0 4px;
  border-radius: 6px;
}
.filter-sheet-close:hover {
  color: var(--color-text);
  background: var(--color-surface-hover, rgba(0,0,0,0.04));
}

.filter-sheet-group {
  padding: 16px 22px;
  border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.06));
}
.filter-sheet-group:last-of-type { border-bottom: none; }
.filter-sheet-group h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 10px;
}

.filter-sheet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sheet-chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--color-border, rgba(0,0,0,0.14));
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sheet-chip:hover {
  border-color: var(--color-text);
}
.sheet-chip.active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.sheet-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  padding: 0 5px;
  height: 16px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  font-size: 10px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sheet-chip.active .sheet-chip-count {
  background: rgba(255,255,255,0.22);
  color: inherit;
}

.filter-sheet-footer {
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--color-border, rgba(0,0,0,0.08));
  background: var(--color-bg);
  position: sticky;
  bottom: 0;
}

/* Hide the old discovery-hero in case anything still renders it */
.targets-header + .discovery-hero { display: none; }

/* Mobile tweaks */
@media (max-width: 720px) {
  .targets-header {
    padding: 16px 16px 10px;
  }
  .targets-header-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
  }
  .targets-title { font-size: 24px; }
  .targets-header-tools {
    width: 100%;
    gap: 6px;
  }
  .search-input-slim { flex: 1; min-width: 0; }
  .filter-trigger, .select-slim { font-size: 13px; }
  .filter-sheet {
    max-width: 100%;
    margin-top: 40px;
  }
  .filter-sheet-overlay {
    padding: 40px 8px 8px;
    align-items: flex-end;
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .filter-trigger {
  border-color: rgba(255,255,255,0.18);
}
[data-theme="dark"] .filter-trigger:hover {
  background: rgba(255,255,255,0.06);
}
[data-theme="dark"] .channel-chip {
  border-color: rgba(255,255,255,0.15);
}
[data-theme="dark"] .sheet-chip {
  border-color: rgba(255,255,255,0.18);
}
[data-theme="dark"] .sheet-chip-count {
  background: rgba(255,255,255,0.12);
}
[data-theme="dark"] .filter-sheet {
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}

/* Feeders → Targets focus flash */
.feed-card-flash {
  animation: feedCardFlash 2.4s ease-out;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.55), 0 8px 24px rgba(37, 99, 235, 0.18);
}
@keyframes feedCardFlash {
  0%   { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.75), 0 10px 30px rgba(37, 99, 235, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0), 0 0 0 rgba(37, 99, 235, 0); }
}
.sample-name-link:hover {
  filter: brightness(1.15);
  text-decoration: underline;
}
