/* ==========================================================================
   Wandor Design System: Cultural Intelligence Console
   Aesthetic: Light Editorial Travel Studio / Terracotta & Frosted Glass
   Accents: Terracotta (#905831) & Warm Paper (#FFFFFF)
   ========================================================================== */

:root {
  --bg-canvas: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F7F5F2;
  --bg-surface-elevated: #FFFFFF;
  --bg-surface-active: #F1EDE8;
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.15);
  --border-focus: #905831;
  
  --text-main: #1A1A1A;
  --text-secondary: #4A4A4A;
  --text-muted: #767676;
  --text-dark: #FAFAFA;
  
  --accent-acid: #905831;
  --accent-acid-glow: rgba(144, 88, 49, 0.18);
  --accent-acid-tint: rgba(144, 88, 49, 0.08);
  --accent-green: #6F8F5F;
  --accent-amber: #B7791F;
  --accent-red: #B33A3A;
  
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-wordmark: 'Special Elite', serif;
  --font-mono: 'Geist', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(144, 88, 49, 0.04) 0%, transparent 70%),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.02) 0%, transparent 40%);
  background-attachment: fixed;
}

.app-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px 80px 28px;
}

/* ==========================================================================
   Header & Studio Top Navigation
   ========================================================================== */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-monogram {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.brand-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-acid);
  box-shadow: 0 0 10px var(--accent-acid);
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.brand-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-acid);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-wordmark);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-main);
  line-height: 1;
}

.brand-name .accent-text {
  color: var(--accent-acid);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qloo-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 7px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 6px rgba(0, 255, 102, 0.6);
}

.qloo-status-pill.unconfigured .status-dot {
  background-color: var(--accent-amber);
  box-shadow: 0 0 6px rgba(255, 184, 0, 0.6);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

.btn-primary {
  background: var(--accent-acid);
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: 0 0 14px rgba(144, 88, 49, 0.2);
}

.btn-primary:hover {
  background: #7A4828;
  box-shadow: 0 0 20px rgba(144, 88, 49, 0.35);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 11px;
}

/* Sonic Equalizer Animation */
.eq-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 14px;
  height: 12px;
}

.eq-bar {
  width: 2px;
  background-color: currentColor;
  border-radius: 1px;
  height: 4px;
}

.eq-bar:nth-child(1) { height: 4px; }
.eq-bar:nth-child(2) { height: 9px; }
.eq-bar:nth-child(3) { height: 6px; }
.eq-bar:nth-child(4) { height: 11px; }

.is-playing .eq-bar:nth-child(1) { animation: eq-anim 0.4s ease-in-out infinite alternate; }
.is-playing .eq-bar:nth-child(2) { animation: eq-anim 0.6s ease-in-out infinite alternate 0.1s; }
.is-playing .eq-bar:nth-child(3) { animation: eq-anim 0.5s ease-in-out infinite alternate 0.2s; }
.is-playing .eq-bar:nth-child(4) { animation: eq-anim 0.7s ease-in-out infinite alternate 0.15s; }

@keyframes eq-anim {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* ==========================================================================
   Hero Section & System Meta Banner
   ========================================================================== */
.hero-section {
  margin-bottom: 36px;
}

.hero-header {
  margin-bottom: 28px;
}

.system-meta-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-acid);
}

.meta-sep {
  color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 14px;
}

.hero-title .highlight-lead {
  color: var(--accent-acid);
  text-decoration: underline;
  text-decoration-color: rgba(144, 88, 49, 0.4);
  text-underline-offset: 6px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 820px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* View Mode Segmented Control */
.view-mode-tabs {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-md);
  gap: 4px;
  flex-wrap: wrap;
}

.mode-tab {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.mode-tab .tab-index {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.mode-tab:hover {
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.04);
}

.mode-tab.active {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-medium);
}

.mode-tab.active .tab-index {
  color: var(--accent-acid);
}

/* ==========================================================================
   Configuration Deck (Artist & City Matrix)
   ========================================================================== */
.tour-config-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  margin-bottom: 24px;
}

@media (max-width: 960px) {
  .config-grid {
    grid-template-columns: 1fr;
  }
}

.col-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.config-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.label-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Preset Buttons */
.artist-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.preset-btn {
  background: var(--bg-canvas);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.preset-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
  border-color: var(--border-medium);
}

.preset-btn.active {
  background: var(--accent-acid-tint);
  color: var(--text-main);
  border-color: var(--accent-acid);
  font-weight: 600;
}

.preset-btn.active .preset-dot {
  background: var(--accent-acid);
  box-shadow: 0 0 6px var(--accent-acid);
}

/* Custom Artist Input */
.input-with-icon {
  display: flex;
  align-items: center;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  gap: 8px;
  transition: border-color var(--transition-fast);
}

.input-with-icon:focus-within {
  border-color: var(--accent-acid);
}

.input-prefix {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-acid);
  letter-spacing: 0.05em;
  user-select: none;
}

.input-with-icon input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  width: 100%;
}

.input-with-icon input::placeholder {
  color: var(--text-muted);
}

/* City Grid */
.city-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.city-btn {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all var(--transition-fast);
}

.city-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-medium);
}

.city-btn.active {
  background: var(--accent-acid-tint);
  border-color: var(--accent-acid);
}

.city-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.city-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.city-code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.city-btn.active .city-code {
  color: var(--accent-acid);
}

.city-venue {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Generate Tour CTA */
.config-action {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.btn-generate {
  background: var(--accent-acid);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
  box-shadow: 0 0 16px rgba(144, 88, 49, 0.25);
}

.btn-generate:hover {
  background: #7A4828;
  box-shadow: 0 0 24px rgba(144, 88, 49, 0.4);
  transform: translateY(-1px);
}

.btn-generate:active {
  transform: translateY(1px);
}

.btn-kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.12);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

/* ==========================================================================
   Loading State Radar
   ========================================================================== */
.loading-state {
  background: var(--bg-surface);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  margin-top: 24px;
}

.loading-radar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--border-medium);
  margin: 0 auto 18px auto;
  position: relative;
  overflow: hidden;
}

.radar-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: var(--accent-acid);
  transform-origin: 0 0;
  animation: radar-spin 1.4s linear infinite;
  box-shadow: 0 0 10px var(--accent-acid);
}

@keyframes radar-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-acid);
  margin-bottom: 6px;
}

.loading-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Results Section: Executive Artist Dossier Header
   ========================================================================== */
.tour-results {
  margin-top: 28px;
}

.results-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.results-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.badge-market-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  margin-bottom: 8px;
}

.badge-market-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-acid);
}

.badge-market {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-main);
}

.artist-header-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 6px;
}

.artist-vibe-tag {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 650px;
}

.provenance-tag {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.provenance-title {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.provenance-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-acid);
}

.provenance-spec {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--text-muted);
}

/* Demographic Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.stat-badge.accent {
  background: var(--accent-acid-tint);
  color: var(--accent-acid);
  border-color: var(--accent-acid);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-value.text-accent {
  color: var(--accent-acid);
}

.stat-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.tags-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.tag {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.02em;
}

.summary-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 4px;
}

/* ==========================================================================
   Dashboard Columns (Left: Affinities/Sponsors, Right: Timeline/Chat)
   ========================================================================== */
.dashboard-columns {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-header-main {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Domain Tabs */
.affinity-tabs {
  display: flex;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--bg-surface-elevated);
  color: var(--accent-acid);
  border: 1px solid var(--border-medium);
}

/* Affinity List */
.affinity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.affinity-item {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color var(--transition-fast);
}

.affinity-item:hover {
  border-color: var(--border-medium);
}

.affinity-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.affinity-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.affinity-score-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-acid);
  background: var(--accent-acid-tint);
  border: 1px solid var(--accent-acid);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}

.affinity-meter-bg {
  width: 100%;
  height: 4px;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  overflow: hidden;
}

.affinity-meter-fill {
  height: 100%;
  background: var(--accent-acid);
  border-radius: var(--radius-full);
}

.affinity-rationale {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Sponsorship Grid (Goldman Sachs / Live Nation Spec) */
.sponsorship-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sponsor-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--transition-fast);
}

.sponsor-card:hover {
  border-color: var(--border-medium);
}

.sponsor-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sponsor-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.sponsor-score {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-acid);
  background: var(--accent-acid-tint);
  border: 1px solid var(--accent-acid);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.sponsor-concept {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface);
  border-left: 2px solid var(--accent-acid);
  padding: 6px 10px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.sponsor-pitch {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.sponsor-lift {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   24-Hour Timeline Call Sheet (Right Column)
   ========================================================================== */
.itinerary-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 12px;
  width: 1px;
  background: var(--border-subtle);
}

.timeline-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 16px 16px 20px;
  position: relative;
  transition: all var(--transition-fast);
}

.timeline-card:hover {
  border-color: var(--border-medium);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-acid);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}

.timeline-stage {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.timeline-venue {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.timeline-address {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.timeline-callout {
  background: var(--bg-surface);
  border-left: 2px solid var(--accent-acid);
  padding: 8px 12px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.timeline-callout strong {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ==========================================================================
   AI Tour Co-Pilot Chat
   ========================================================================== */
.card-chat {
  display: flex;
  flex-direction: column;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}

.chat-bubble {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 1.5;
}

.chat-bubble.agent {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.chat-bubble.user {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  align-self: flex-end;
  max-width: 80%;
}

.chat-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.quick-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 10.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-chip:hover {
  background: var(--bg-surface-hover);
  color: var(--accent-acid);
  border-color: var(--accent-acid);
}

.chat-datapoint-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.chat-datapoint-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-acid);
  background: var(--accent-acid-tint);
  padding: 4px 8px;
  border-radius: var(--radius-xs);
}

.chat-input-bar {
  display: flex;
  gap: 8px;
}

.chat-input-bar input {
  flex: 1;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12.5px;
  outline: none;
}

.chat-input-bar input:focus {
  border-color: var(--accent-acid);
}

.btn-send {
  background: var(--accent-acid);
  color: var(--text-dark);
  border: none;
  width: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-send:hover {
  background: #7A4828;
}

/* ==========================================================================
   Festival Co-Billing & Overlap Engine
   ========================================================================== */
.card-compare-config {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.compare-selectors-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .compare-selectors-grid {
    grid-template-columns: 1fr;
  }
}

.compare-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-select {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
}

.compare-select:focus {
  border-color: var(--accent-acid);
}

.compare-vs-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-acid);
  background: var(--bg-canvas);
  border: 1px solid var(--accent-acid);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  align-self: center;
}

.compare-summary-banner {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.compare-score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--accent-acid);
  background: var(--accent-acid-tint);
  flex-shrink: 0;
}

.score-number {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-acid);
}

.score-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.verdict-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-acid);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.verdict-headline {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.verdict-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.shared-vectors-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.shared-vector-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.divergence-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.divergence-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--accent-amber);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.divergence-artist {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.divergence-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   Telemetry & API Inspector
   ========================================================================== */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.raw-inspector-box {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.raw-inspector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.raw-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.raw-code-block {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #88C0D0;
  overflow-x: auto;
  max-height: 480px;
  line-height: 1.5;
}

/* ==========================================================================
   Modals & Dialogs
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.modal-large {
  max-width: 720px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.btn-close:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 22px;
}

.modal-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.modal-body code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-canvas);
  padding: 2px 5px;
  border-radius: var(--radius-xs);
  color: var(--accent-acid);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.input-group label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.input-group input {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12.5px;
  outline: none;
}

.input-group input:focus {
  border-color: var(--accent-acid);
}

.key-status-msg {
  font-family: var(--font-mono);
  font-size: 11px;
  min-height: 16px;
}

.export-textarea {
  width: 100%;
  height: 320px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}

.footer-left strong {
  color: var(--text-secondary);
}

.footer-sep {
  color: var(--border-medium);
}

.footer-right {
  font-size: 11px;
  color: var(--text-muted);
}

/* Helper Utilities */
.hidden {
  display: none !important;
}

/* ==========================================================================
   Promoter Deal Model & Tour Routing Planner
   ========================================================================== */
.deal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.kpi-card.highlight {
  border-color: var(--accent-terracotta);
  background: rgba(144, 88, 49, 0.04);
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-terracotta);
}

.kpi-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.capacity-tier-switcher {
  display: flex;
  gap: 6px;
  background: var(--bg-canvas);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.tier-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.tier-btn:hover {
  color: var(--text-primary);
}

.tier-btn.active {
  background: var(--bg-surface);
  color: var(--accent-terracotta);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.deal-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .deal-details-grid {
    grid-template-columns: 1fr;
  }
}

.pitch-quote-box {
  background: rgba(144, 88, 49, 0.04);
  border-left: 3px solid var(--accent-terracotta);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  line-height: 1.6;
}

.route-stop-card {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.route-stop-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-terracotta);
}

.qloo-status-pill.llm-pill.live .status-dot {
  background: #2b7a4b;
}

.qloo-status-pill.llm-pill.unconfigured .status-dot {
  background: #b58900;
}
