/* ═══════════════════════════════════════════════════════════════════════════
   MetisSI (Metis Super Intelligence) — International Bright Daylight Editorial Theme
   Inspired by Reuters, Apple News+, The Guardian & Bloomberg Day
   Strictly Bright, Luminous, High-Craft Light Mode Across All Views & Tabs
   Fonts: Outfit + Noto Sans Telugu + Noto Sans Devanagari
═══════════════════════════════════════════════════════════════════════════ */

/* ─── CSS Variables (100% Bright Daylight Palette) ──────────────────────── */
:root {
  /* Primary International Editorial Blue & Cyan */
  --primary:        #2563EB;
  --primary-light:  #3B82F6;
  --primary-bright: #06B6D4;
  --primary-pale:   #EFF6FF;
  --primary-soft:   #DBEAFE;
  --primary-glow:   rgba(37, 99, 235, 0.16);

  /* Radiant Sunlit Amber / Coral (Replaces old dark browns) */
  --gold:           #F59E0B;
  --gold-light:     #FBBF24;
  --gold-bright:    #FF6B00;
  --gold-pale:      #FFFBEB;
  --gold-dark:      #D97706;
  --gold-glow:      rgba(245, 158, 11, 0.18);

  /* Editorial AI Indigo & Emerald Studio Accents */
  --indigo:         #4F46E5;
  --indigo-pale:    #EEF2FF;
  --emerald:        #10B981;
  --emerald-bright: #059669;
  --emerald-pale:   #ECFDF5;

  /* Pure Bright Daylight Backgrounds */
  --bg-page:        #F4F8FF;
  --bg-warm:        #F8FAFF;
  --bg-card:        #FFFFFF;
  --bg-card-alt:    #F8FAFC;
  --bg-glass:       rgba(255, 255, 255, 0.92);
  --bg-overlay:     rgba(244, 248, 255, 0.94);

  /* High-Contrast Crisp Editorial Typography (No muddy browns) */
  --text-primary:   #0F172A;
  --text-secondary: #334155;
  --text-muted:     #64748B;
  --text-telugu:    #1E293B;
  --text-gold:      #2563EB;

  /* Crisp Bright Borders */
  --border:         rgba(37, 99, 235, 0.22);
  --border-light:   #E2E8F0;
  --border-card:    #DCE6F7;
  --border-soft:    #F1F5F9;

  /* Vibrant Category Colors */
  --cat-general:       #2563EB;
  --cat-andhrapradesh: #F59E0B;
  --cat-telangana:     #06B6D4;
  --cat-india:         #FF6B00;
  --cat-world:         #0284C7;
  --cat-movies:        #EC4899;
  --cat-sports:        #10B981;
  --cat-business:      #4F46E5;
  --cat-health:        #16A34A;
  --cat-tech:          #7C3AED;
  --cat-auto:          #EA580C;
  --cat-history:       #D97706;
  --cat-editorial:     #E11D48;

  /* Luminous Bright Gradients */
  --gradient-bg:      linear-gradient(145deg, #F0F6FF 0%, #FFFFFF 45%, #F5F8FF 80%, #FFFDF7 100%);
  --gradient-gold:    linear-gradient(135deg, #2563EB 0%, #3B82F6 55%, #06B6D4 100%);
  --gradient-amber:   linear-gradient(135deg, #FF6B00 0%, #F59E0B 60%, #FBBF24 100%);
  --gradient-emerald: linear-gradient(135deg, #059669 0%, #10B981 60%, #34D399 100%);
  --gradient-card:    linear-gradient(180deg, #FFFFFF 0%, #FAF7FF 100%);
  --gradient-header:  linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
  --gradient-hero:    linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 55%, #F0FDFA 100%);
  --gradient-ribbon:  linear-gradient(90deg, #2563EB 0%, #06B6D4 25%, #10B981 50%, #F59E0B 75%, #EC4899 100%);

  /* Blur */
  --blur:             blur(20px);
  --blur-card:        blur(12px);

  /* Airy Daylight Shadows */
  --shadow-gold:       0 6px 22px rgba(37, 99, 235, 0.14);
  --shadow-card:       0 4px 20px rgba(37, 99, 235, 0.06), 0 1px 4px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 14px 36px rgba(37, 99, 235, 0.13), 0 4px 12px rgba(6, 182, 212, 0.08);
  --shadow-button:     0 6px 20px rgba(37, 99, 235, 0.32);
  --shadow-header:     0 2px 16px rgba(37, 99, 235, 0.07);

  /* Timing */
  --transition:      0.22s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 0.4s cubic-bezier(0.22, 1, 0.36, 1);

  /* Spacing */
  --header-height: 98px;
  --container-max: 1420px;
  --card-radius:   20px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  background: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ─── Luminous Daylight Ambient Background ──────────────────────────────── */
.bg-particles {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}

.bg-particle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(6, 182, 212, 0.04) 45%, transparent 70%);
  animation: floatParticle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes floatParticle {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 0.55; }
  50%       { transform: translate(-50%,-53%) scale(1.08); opacity: 0.9; }
}

.bg-gradient-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background:
    radial-gradient(ellipse at 12% 12%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 88% 18%, rgba(6, 182, 212, 0.08) 0%, transparent 48%),
    radial-gradient(ellipse at 80% 85%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}

/* ─── International Masthead Header (Bright Sky & Cyan Theme) ───────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(135deg, #EFF6FF 0%, #E0F2FE 50%, #F0FDFA 100%);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 2px solid #93C5FD;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
  height: auto;
}

/* Bright International Top Accent Bar */
.site-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563EB 0%, #06B6D4 35%, #10B981 70%, #6366F1 100%);
}

.header-inner {
  max-width: var(--container-max); margin: 0 auto;
  padding: 4px 28px 0; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 14px; }

.crown-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 15px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: crownFloat 3.6s ease-in-out infinite;
  filter: drop-shadow(0 5px 14px rgba(29, 78, 216, 0.28));
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.crown-icon:hover {
  transform: scale(1.07) translateY(-2px);
  filter: drop-shadow(0 8px 18px rgba(6, 182, 212, 0.42));
}

.metis-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes crownFloat {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50%     { transform: translateY(-3px) rotate(1.5deg); }
}

.brand-text { display: flex; flex-direction: column; gap: 3px; }

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.05;
}

.brand-metis {
  background: linear-gradient(135deg, #0F296B 0%, #1D4ED8 52%, #0891B2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-si-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  margin-left: 1px;
  border-radius: 8px;
  font-size: 0.7em;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #FFFFFF;
  -webkit-text-fill-color: #FFFFFF;
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 50%, #06B6D4 100%);
  border: 1px solid rgba(125, 211, 252, 0.9);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  line-height: 1.15;
}

.greek-script {
  font-family: 'EB Garamond', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.3px;
}

.brand-greek-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #92400E;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 52%, #E0F2FE 100%);
  border: 1px solid #FCD34D;
  border-radius: 999px;
  padding: 2.5px 10px;
  line-height: 1.25;
  box-shadow: 0 2px 7px rgba(245, 158, 11, 0.16);
}

.brand-greek-pill .greek-script {
  color: #0F296B;
  font-size: 13.5px;
}

.brand-greek-pill .greek-dot {
  color: #D97706;
  font-weight: 900;
}

.brand-property-pill {
  font-size: 11px;
  font-weight: 700;
  color: #0369A1;
  background: linear-gradient(135deg, #FFFFFF 0%, #E0F2FE 100%);
  border: 1px solid #7DD3FC;
  border-radius: 999px;
  padding: 3px 11px;
  line-height: 1.3;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
}

.brand-subtitle {
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 11.5px; color: #1E3A8A; font-weight: 600; letter-spacing: 0.2px;
}

.live-indicator {
  display: flex; align-items: center; gap: 6px;
  background: #FFFFFF;
  border: 1.5px solid #6EE7B7;
  border-radius: 999px; padding: 5px 12px;
  font-size: 11px; font-weight: 800; color: #059669; letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.14);
}

.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #10B981; animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.35; transform: scale(0.75); }
}

.header-stats { display: flex; align-items: center; gap: 14px; }

.stat-item {
  display: flex; align-items: center; gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #93C5FD;
  border-radius: 14px;
  padding: 6px 14px;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.08);
}
.stat-icon { font-size: 15px; }

.stat-value { font-size: 16px; font-weight: 800; color: var(--primary); }

.stat-label {
  font-size: 10.5px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ─── Main Container (z-index: auto so fixed modals inside main layer above .site-header) ─── */
.main-container {
  position: relative;
  max-width: var(--container-max); margin: 0 auto;
  padding: calc(var(--header-offset, 128px) + 20px) 24px 56px;
}

/* ─── Multi-Language Dock & Tabs (1: English, 2: Hindi, 3: Telugu, 4: Intl) */
.lang-dock-section {
  background: #FFFFFF;
  border: 1.5px solid #DCE6F7;
  border-radius: 24px;
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  animation: slideDown 0.35s ease both;
}

.lang-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lang-dock-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
}

.lang-dock-crown {
  font-size: 16px;
}

.lang-dock-active-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #EFF6FF 0%, #E0F2FE 100%);
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.lang-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1360px) {
  .lang-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .lang-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .lang-tabs {
    grid-template-columns: 1fr;
  }
}

.lang-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  text-align: left;
  overflow: hidden;
}

.lang-tab::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: transparent;
  transition: background 0.25s ease;
}

.lang-tab:hover {
  border-color: #93C5FD;
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
}

/* Vibrant Edition-Specific Active Tab States */
.lang-tab.active[data-lang="en"] {
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 65%, #DBEAFE 100%);
  border-color: #3B82F6;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.16), 0 0 0 1px rgba(59, 130, 246, 0.2);
}
.lang-tab.active[data-lang="en"]::before { background: linear-gradient(180deg, #2563EB, #06B6D4); }
.lang-tab.active[data-lang="en"] .lang-tab-name { color: #1D4ED8; }

.lang-tab.active[data-lang="hi"] {
  background: linear-gradient(135deg, #FFFFFF 0%, #EEF2FF 65%, #E0E7FF 100%);
  border-color: #6366F1;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.16), 0 0 0 1px rgba(99, 102, 241, 0.2);
}
.lang-tab.active[data-lang="hi"]::before { background: linear-gradient(180deg, #4F46E5, #6366F1); }
.lang-tab.active[data-lang="hi"] .lang-tab-name { color: #4338CA; }

.lang-tab.active[data-lang="te"] {
  background: linear-gradient(135deg, #FFFFFF 0%, #ECFDF5 65%, #D1FAE5 100%);
  border-color: #10B981;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.16), 0 0 0 1px rgba(16, 185, 129, 0.2);
}
.lang-tab.active[data-lang="te"]::before { background: linear-gradient(180deg, #059669, #10B981); }
.lang-tab.active[data-lang="te"] .lang-tab-name { color: #047857; }

.lang-tab.active[data-lang="intl"] {
  background: linear-gradient(135deg, #FFFFFF 0%, #ECFEFF 65%, #CFFAFE 100%);
  border-color: #06B6D4;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.16), 0 0 0 1px rgba(6, 182, 212, 0.2);
}
.lang-tab.active[data-lang="intl"]::before { background: linear-gradient(180deg, #0284C7, #06B6D4); }
.lang-tab.active[data-lang="intl"] .lang-tab-name { color: #0369A1; }

.lang-tab.active[data-lang="govt_pubs"] {
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 55%, #FEF3C7 100%);
  border-color: #1E3A8A;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.18), 0 0 0 1px rgba(30, 58, 138, 0.22);
}
.lang-tab.active[data-lang="govt_pubs"]::before { background: linear-gradient(180deg, #1E3A8A, #D97706); }
.lang-tab.active[data-lang="govt_pubs"] .lang-tab-name { color: #1E3A8A; }

.lang-tab-badge {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.badge-en {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #FFFFFF;
}

.badge-hi {
  background: linear-gradient(135deg, #4F46E5, #6366F1);
  color: #FFFFFF;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 21px;
}

.badge-te {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #FFFFFF;
  font-family: 'Noto Sans Telugu', sans-serif;
  font-size: 20px;
}

.badge-intl {
  background: linear-gradient(135deg, #0284C7, #06B6D4);
  color: #FFFFFF;
  font-size: 21px;
}

.badge-govt {
  background: linear-gradient(135deg, #1E3A8A, #2563EB);
  color: #FFFFFF;
  font-size: 20px;
}

.lang-tab.active .lang-tab-badge {
  transform: scale(1.06);
}

.lang-tab-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.lang-tab-top {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.lang-tab-name {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.lang-tab-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.lang-tab-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-tab-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.25s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.lang-tab.active .lang-tab-check {
  opacity: 1;
  transform: scale(1);
}

/* ─── Control Panel ─────────────────────────────────────────────────────── */
.control-panel {
  background: #FFFFFF;
  border: 1.5px solid #DCE6F7;
  border-radius: 24px;
  padding: 24px 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  animation: slideDown 0.45s ease both;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.control-panel-inner { display: flex; flex-direction: column; gap: 20px; }

/* ─── Prompt Section ────────────────────────────────────────────────────── */
.prompt-section { display: flex; flex-direction: column; gap: 10px; }

.prompt-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.9px;
}

.prompt-input-wrapper {
  position: relative; display: flex; align-items: center;
}

.prompt-input {
  width: 100%; padding: 15px 58px 15px 22px;
  background: #F8FAFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 50px;
  color: var(--text-primary);
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 15px;
  outline: none; transition: all var(--transition);
}

.prompt-input::placeholder { color: #94A3B8; }

.prompt-input:focus {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.prompt-submit-btn {
  position: absolute; right: 7px;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--gradient-gold); color: #fff;
  font-size: 18px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); box-shadow: var(--shadow-button);
}

.prompt-submit-btn:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.42); }

.prompt-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }

.suggestion-tag {
  padding: 6px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
}

.suggestion-tag:hover {
  border-color: #60A5FA; color: #1D4ED8;
  background: #EFF6FF; transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.1);
}

/* ─── Filters Row ───────────────────────────────────────────────────────── */
.filters-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }

.filter-group { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 8px; }
.filter-group--action { flex: 0 0 auto; min-width: auto; }

.filter-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.8px;
}

/* Custom Select */
.custom-select-wrapper { position: relative; }

.custom-select {
  width: 100%; padding: 13px 44px 13px 16px;
  background: #F8FAFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  color: var(--text-primary);
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 14.5px; font-weight: 600;
  outline: none; appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: all var(--transition);
}

.custom-select:focus, .custom-select:hover {
  border-color: var(--primary); background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.custom-select option { background: #fff; color: var(--text-primary); padding: 8px; }

.select-arrow {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%); color: var(--primary);
  font-size: 14px; pointer-events: none;
}

/* Date Input */
.date-input-wrapper { position: relative; }

.date-input {
  width: 100%; padding: 13px 16px;
  background: #F8FAFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 14px; color: var(--text-primary);
  font-family: 'Outfit', sans-serif; font-size: 14.5px; font-weight: 600;
  outline: none; cursor: pointer; transition: all var(--transition);
}

.date-input:focus, .date-input:hover {
  border-color: var(--primary); background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Fetch Button */
.fetch-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 12px 30px;
  background: var(--gradient-gold);
  border: none; border-radius: 14px; color: #fff;
  cursor: pointer; font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  transition: all var(--transition); box-shadow: var(--shadow-button);
  min-width: 175px; position: relative; overflow: hidden;
}

.fetch-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37, 99, 235, 0.38); }
.fetch-btn:active { transform: translateY(0); }
.fetch-btn.loading { opacity: 0.82; pointer-events: none; }

.fetch-btn-icon { font-size: 19px; }
.fetch-btn-text { font-size: 14px; font-weight: 800; }
.fetch-btn-sub  { font-size: 10.5px; font-weight: 600; opacity: 0.9; }

/* ─── Status Bar ────────────────────────────────────────────────────────── */
.status-bar {
  background: #FFFFFF;
  border: 1.5px solid #BFDBFE;
  border-radius: 14px; padding: 13px 20px;
  margin-bottom: 18px; animation: slideDown 0.3s ease;
  box-shadow: var(--shadow-card);
}

.status-bar-inner { display: flex; align-items: center; gap: 16px; }

.status-crawler {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--primary); min-width: 220px;
}

.spinning { animation: spin 1s linear infinite; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.progress-bar-wrapper {
  flex: 1; height: 6px;
  background: #EFF6FF; border-radius: 999px; overflow: hidden;
}

.progress-bar {
  height: 100%; background: var(--gradient-ribbon); border-radius: 999px;
  transition: width 0.45s ease;
}

/* ─── Empty State ───────────────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 72px 24px;
  background: #FFFFFF;
  border: 1.5px solid #DCE6F7;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.empty-crown {
  width: 92px;
  height: 92px;
  margin: 0 auto 14px;
  animation: crownFloat 3.6s ease-in-out infinite;
  filter: drop-shadow(0 12px 26px rgba(29, 78, 216, 0.28));
}

.empty-logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.empty-greek-motto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 45%, #EFF6FF 100%);
  border: 1px solid #FCD34D;
  color: #1E3A8A;
  font-size: 12.5px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.08);
}

.empty-greek-motto .greek-script {
  font-size: 15px;
  color: #0F296B;
}

.empty-title {
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 28px; font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px;
}

.empty-subtitle {
  font-size: 16px;
  color: var(--text-secondary); margin-bottom: 8px;
}

.empty-hint { font-size: 13.5px; color: var(--text-muted); margin-bottom: 28px; }

.empty-categories { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.empty-cat {
  padding: 10px 20px;
  background: #F8FAFF; border: 1.5px solid #DBEAFE;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all var(--transition);
}

.empty-cat:hover {
  border-color: var(--primary); color: var(--primary);
  background: #EFF6FF; transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

/* ─── Error State ───────────────────────────────────────────────────────── */
.error-state {
  text-align: center; padding: 60px 24px;
  background: #FFFFFF; border-radius: 24px; border: 1.5px solid #FECDD3;
}
.error-icon  { font-size: 48px; margin-bottom: 16px; }
.error-title { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.error-message { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.retry-btn {
  padding: 12px 28px;
  background: var(--primary-pale); border: 1.5px solid var(--primary);
  border-radius: 10px; color: var(--primary);
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
}

.retry-btn:hover { background: var(--gradient-gold); color: #fff; transform: translateY(-2px); }

/* ─── Loading Skeletons ─────────────────────────────────────────────────── */
.loading-skeletons { display: flex; flex-direction: column; gap: 20px; }

.skeleton-card {
  height: 280px;
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  border-radius: var(--card-radius); border: 1px solid #E2E8F0;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* ─── Results Header Bar ────────────────────────────────────────────────── */
.results-header {
  display: flex; flex-direction: column;
  padding: 14px 20px; margin-bottom: 8px;
  background: #FFFFFF;
  border: 1.5px solid #DCE6F7;
  border-left: 5px solid var(--primary);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.05);
  gap: 12px;
}
.rh-top-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.rh-left  { display: flex; align-items: center; gap: 12px; }
.rh-right { display: flex; align-items: center; gap: 12px; }
.rh-icon  { font-size: 24px; }
.rh-title { font-size: 17px; font-weight: 800; color: var(--text-primary); }
.rh-sub   { font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-top: 2px; }
.rh-ai-pill {
  font-size: 12px; color: #1D4ED8; font-weight: 700;
  background: #EFF6FF; border: 1px solid #BFDBFE;
  padding: 4px 12px; border-radius: 999px;
}
.rh-time  {
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  background: #F8FAFC; padding: 4px 10px; border-radius: 999px; border: 1px solid #E2E8F0;
}
.rh-sort-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed #E2E8F0;
}
.rh-sort-label {
  font-size: 12px; font-weight: 800; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.6px;
}
.rh-sort-pills {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.rh-sort-pill {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid #DBEAFE;
  background: #F8FAFF;
  color: var(--text-secondary);
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rh-sort-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #EFF6FF;
  transform: translateY(-1px);
}
.rh-sort-pill.active {
  background: var(--gradient-gold);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

/* ─── News Cards Container & International Editorial Card ───────────────── */
.news-cards-container { display: flex; flex-direction: column; gap: 22px; }

.news-card {
  background: #FFFFFF;
  border: 1.5px solid #DCE6F7;
  border-radius: var(--card-radius); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-slow);
  animation: cardReveal 0.45s ease both;
  position: relative;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: #93C5FD;
}

/* Category top bright accent bar */
.news-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; border-radius: var(--card-radius) var(--card-radius) 0 0;
  background: var(--gradient-gold);
}

.news-card[data-category="general"]::before       { background: linear-gradient(90deg, #2563EB, #06B6D4); }
.news-card[data-category="andhrapradesh"]::before { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.news-card[data-category="telangana"]::before     { background: linear-gradient(90deg, #06B6D4, #3B82F6); }
.news-card[data-category="india"]::before         { background: linear-gradient(90deg, #FF6B00, #F59E0B); }
.news-card[data-category="world"]::before         { background: linear-gradient(90deg, #0284C7, #38BDF8); }
.news-card[data-category="movies"]::before        { background: linear-gradient(90deg, #EC4899, #F43F5E); }
.news-card[data-category="sports"]::before        { background: linear-gradient(90deg, #10B981, #34D399); }
.news-card[data-category="business"]::before      { background: linear-gradient(90deg, #4F46E5, #818CF8); }
.news-card[data-category="health"]::before        { background: linear-gradient(90deg, #16A34A, #4ADE80); }
.news-card[data-category="tech"]::before          { background: linear-gradient(90deg, #7C3AED, #A78BFA); }
.news-card[data-category="auto"]::before          { background: linear-gradient(90deg, #EA580C, #FB923C); }
.news-card[data-category="history"]::before       { background: linear-gradient(90deg, #D97706, #FBBF24); }
.news-card[data-category="editorial"]::before     { background: linear-gradient(90deg, #E11D48, #FB7185); }

/* ── nc-header ─────────────────────────────────────────────────────────── */
.nc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 0; gap: 10px; flex-wrap: wrap;
}
.nc-badges       { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nc-header-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Category badge (Bright Pastel Pills) */
.badge-cat {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase;
}
.badge-general       { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.badge-andhrapradesh { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.badge-telangana     { background: #ECFEFF; color: #0891B2; border: 1px solid #A5F3FC; }
.badge-india         { background: #FFF7ED; color: #EA580C; border: 1px solid #FED7AA; }
.badge-world         { background: #F0F9FF; color: #0284C7; border: 1px solid #BAE6FD; }
.badge-movies        { background: #FDF2F8; color: #DB2777; border: 1px solid #FBCFE8; }
.badge-sports        { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
.badge-business      { background: #EEF2FF; color: #4F46E5; border: 1px solid #C7D2FE; }
.badge-health        { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.badge-tech          { background: #F5F3FF; color: #7C3AED; border: 1px solid #DDD6FE; }
.badge-auto          { background: #FFF7ED; color: #EA580C; border: 1px solid #FED7AA; }
.badge-history       { background: #FFFBEB; color: #D97706; border: 1px solid #FDE68A; }
.badge-editorial     { background: #FFF1F2; color: #E11D48; border: 1px solid #FECDD3; }

/* Source badge */
.badge-src {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px;
  background: #F8FAFC; border: 1px solid #E2E8F0;
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
}

/* Time badge */
.badge-time {
  font-size: 11.5px; font-weight: 600; color: var(--text-muted);
  background: #F8FAFC; padding: 4px 10px; border-radius: 999px; border: 1px solid #F1F5F9;
}

/* AI status badges */
.badge-ai {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: 999px; font-size: 11px; font-weight: 800;
}
.badge-gemini {
  background: #EEF2FF; border: 1px solid #C7D2FE; color: #4F46E5;
}
.badge-fallback {
  background: #ECFDF5; border: 1px solid #A7F3D0; color: #059669;
}

/* ── nc-body ───────────────────────────────────────────────────────────── */
.nc-body { padding: 16px 22px; display: flex; flex-direction: column; }

.nc-image-wrapper {
  width: 100%;
  max-height: 370px;
  background: linear-gradient(135deg, #F0F6FF 0%, #F8FAFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nc-image {
  width: auto;
  max-width: 100%;
  max-height: 370px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  transition: transform 0.35s ease;
}

.news-card:hover .nc-image {
  transform: scale(1.015);
}

.own-image-wrapper {
  max-height: 260px;
  margin-bottom: 0;
}

.own-image-wrapper .nc-image {
  max-height: 260px;
}

/* Meta row */
.nc-meta-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12.5px; color: var(--text-muted); margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid #E2E8F0;
}
.meta-item { display: flex; align-items: center; gap: 4px; }
.meta-item strong { color: var(--text-secondary); }
.meta-sep  { opacity: .35; }

/* ── Section wrapper ───────────────────────────────────────────────────── */
.nc-section {
  border-radius: 14px; padding: 15px 18px;
  margin-bottom: 12px; border: 1px solid transparent;
}

.nc-section-label {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.1px;
  margin-bottom: 8px;
}
.label-icon { font-size: 14px; }

/* ── ① Original Title (Bright Sky Editorial Headline Card) ─────────────── */
.nc-section-title {
  background: linear-gradient(135deg, #F8FAFF 0%, #EFF6FF 100%);
  border-color: #BFDBFE;
  border-left: 4px solid #2563EB;
  padding: 16px 18px;
}
.label-title { color: #1D4ED8; }

.nc-title {
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 20.5px; font-weight: 800;
  color: var(--text-primary); line-height: 1.42; margin: 0;
}
.nc-title-link {
  color: inherit; text-decoration: none; transition: color var(--transition);
}
.nc-title-link:hover { color: var(--primary); }

/* ── ② Original News Details (Clean Daylight Pearl Card) ──────────────── */
.nc-section-orig {
  background: #F8FAFC;
  border-color: #E2E8F0;
  border-left: 4px solid #38BDF8;
}
.label-orig { color: #0284C7; }

.label-source-pill {
  margin-left: auto; padding: 2px 10px; border-radius: 999px;
  background: #E0F2FE; color: #0369A1;
  font-size: 10.5px; font-weight: 700; text-transform: none; letter-spacing: 0;
}

.nc-orig-text {
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 14.5px; line-height: 1.78; color: var(--text-secondary); margin: 0;
  white-space: pre-line;
}

/* ── ③ AI Enhanced Story (Bright Cyan-Sky & Indigo Notification Theme) ── */
.nc-section-ai {
  background: linear-gradient(135deg, #ECFEFF 0%, #EFF6FF 55%, #EEF2FF 100%);
  border: 1.5px solid #7DD3FC;
  border-left: 4px solid #06B6D4;
  transition: all 0.4s ease;
}
.nc-section-ai.ai-upgraded {
  background: linear-gradient(135deg, #E0F2FE 0%, #EEF2FF 100%);
  border-color: #38BDF8;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.14);
}

.label-ai { color: #0284C7; }

.label-gemini-pill {
  margin-left: auto; padding: 2px 10px; border-radius: 999px;
  background: #E0F2FE; color: #0369A1;
  font-size: 10.5px; font-weight: 700; text-transform: none; letter-spacing: 0;
  border: 1px solid #7DD3FC;
}

/* Hook line (Bright Sky-Cyan & Indigo Notification Banner) */
.nc-hook {
  display: flex; align-items: flex-start; gap: 10px;
  background: linear-gradient(135deg, #FFFFFF 0%, #E0F2FE 60%, #DBEAFE 100%);
  border: 1.5px solid #7DD3FC; border-left: 4px solid #2563EB;
  border-radius: 12px; padding: 11px 15px;
  margin-bottom: 12px; transition: all 0.35s ease;
  box-shadow: 0 3px 12px rgba(2, 132, 199, 0.1);
}

.hook-fire  { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.hook-words {
  font-size: 14px; font-weight: 700;
  color: #1E40AF; line-height: 1.5;
}

/* Story text */
.nc-story-text {
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 14.5px; line-height: 1.78;
  color: var(--text-primary); margin: 0;
}

/* ── nc-footer ─────────────────────────────────────────────────────────── */
.nc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-top: 1px solid #E2E8F0;
  background: #F8FAFC; gap: 12px; flex-wrap: wrap;
}
.nc-next-update { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.next-time { color: var(--text-secondary); font-weight: 700; }

.nc-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.nc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; border: 1px solid transparent;
}
.nc-btn-read {
  background: #EFF6FF; border-color: #93C5FD; color: #1D4ED8;
}
.nc-btn-read:hover {
  background: var(--gradient-gold); color: #fff; box-shadow: var(--shadow-button);
}
.nc-btn-share {
  background: #FFFFFF; border-color: #CBD5E1; color: var(--text-secondary);
}
.nc-btn-share:hover {
  border-color: var(--primary); color: var(--primary); background: #EFF6FF;
}

/* Bright International Blue-Cyan-Emerald Button for Generate Our News */
.nc-btn-generate {
  background: linear-gradient(135deg, #2563EB 0%, #0891B2 55%, #10B981 100%);
  color: #FFFFFF;
  font-weight: 800;
  border-color: #38BDF8;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.32);
}
.nc-btn-generate:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #06B6D4 55%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38);
}
.nc-btn-generate.loading {
  opacity: 0.78;
  pointer-events: none;
}

/* ── ④ Generated Own News for Website (Bright Mint & Sky Studio) ──────── */
.nc-section-own {
  background: linear-gradient(135deg, #ECFEFF 0%, #EFF6FF 55%, #F0FDF4 100%);
  border: 1.5px solid #67E8F9;
  border-left: 5px solid #06B6D4;
  box-shadow: 0 6px 24px rgba(6, 182, 212, 0.12);
  animation: fadeIn 0.35s ease;
}

.label-own {
  color: #047857;
}

.label-own-pill {
  margin-left: auto;
  padding: 3px 11px;
  border-radius: 999px;
  background: #D1FAE5;
  color: #047857;
  font-size: 10.5px;
  font-weight: 800;
  border: 1px solid #6EE7B7;
  text-transform: none;
  letter-spacing: 0;
}

.own-news-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 700;
  color: #059669;
}

.own-news-error {
  color: #E11D48;
  font-size: 13.5px;
  font-weight: 700;
}

.own-news-block {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

/* Active Style Badges Row */
.own-active-styles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.own-active-style-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #93C5FD;
  color: #1D4ED8;
  font-size: 11.5px;
  font-weight: 800;
}

/* Style Checkboxes Grid */
.own-style-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.own-style-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition);
}
.own-style-chip:hover {
  border-color: #60A5FA;
  background: #EFF6FF;
}
.own-style-chip.checked {
  border-color: #10B981;
  background: #ECFDF5;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.14);
}

.own-style-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #10B981;
  cursor: pointer;
  flex-shrink: 0;
}

.own-style-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.own-style-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.own-style-text strong {
  font-size: 12.5px;
  color: var(--text-primary);
}
.own-style-text small {
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 10.5px;
  color: var(--text-muted);
}

/* Word Count Selector inside Properties Block (Bright Sky/Cyan/Emerald Theme) */
.own-word-badge {
  background: linear-gradient(135deg, #ECFDF5 0%, #E0F2FE 100%);
  border-color: #34D399;
  color: #047857;
}

.own-wordcount-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px dashed #BFDBFE;
}

.own-wc-header {
  margin-bottom: 10px;
}

.own-wordcount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.own-wc-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  cursor: pointer;
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  text-align: left;
  transition: all var(--transition);
}

.own-wc-chip:hover {
  border-color: #38BDF8;
  background: #F0F9FF;
  transform: translateY(-1px);
}

.own-wc-chip.selected {
  border-color: #0284C7;
  background: linear-gradient(135deg, #E0F2FE 0%, #EFF6FF 100%);
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.16);
}

.own-wc-main {
  font-size: 13px;
  font-weight: 800;
  color: #0369A1;
}

.own-wc-chip.selected .own-wc-main {
  color: #1D4ED8;
}

.own-wc-sub {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.own-custom-wc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 10px;
  padding: 8px 12px;
}

.own-custom-wc-label {
  font-size: 12px;
  font-weight: 700;
  color: #0369A1;
}

.own-custom-wc-input {
  width: 95px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1.5px solid #7DD3FC;
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  outline: none;
}

.own-custom-wc-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.own-wc-apply-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  color: #FFFFFF;
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.2);
}

.own-wc-apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.3);
}

.own-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.own-block-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.own-copy-mini {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid #BFDBFE;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.own-copy-mini:hover {
  background: var(--gradient-gold);
  color: #fff;
}

.own-titles-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.own-title-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  cursor: pointer;
  transition: all var(--transition);
}
.own-title-item:hover {
  border-color: #60A5FA;
  background: #EFF6FF;
}
.own-title-item.selected {
  border-color: #10B981;
  background: #ECFDF5;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.12);
}

.own-title-num {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 6px;
  background: #D1FAE5;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
}

.own-title-text {
  flex: 1;
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
}

.own-title-copy {
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all var(--transition);
}
.own-title-copy:hover {
  background: #EFF6FF;
  border-color: var(--primary);
}

.own-paragraphs-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.own-para {
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--text-primary);
  background: #F8FAFC;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #10B981;
  margin: 0;
}

.own-keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.own-kw-tag {
  padding: 4px 11px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 700;
}

.own-keywords-raw {
  font-size: 12px;
  color: var(--text-muted);
  background: #F8FAFC;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px dashed #CBD5E1;
  user-select: all;
}

.own-news-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.own-btn-primary {
  flex: 1;
  min-width: 220px;
  padding: 11px 18px;
  border-radius: 10px;
  border: none;
  background: var(--gradient-emerald);
  color: #fff;
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
  transition: all var(--transition);
}
.own-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.38);
}

.own-btn-regen {
  padding: 11px 16px;
  border-radius: 10px;
  border: 1.5px solid #93C5FD;
  background: #EFF6FF;
  color: #1D4ED8;
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.own-btn-regen:hover {
  background: var(--gradient-gold);
  color: #FFFFFF;
  border-color: transparent;
}

/* ─── Load More ─────────────────────────────────────────────────────────── */
.load-more-section { text-align: center; padding: 32px 0; animation: fadeIn 0.5s ease; }

.load-more-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px; background: #FFFFFF;
  border: 1.5px solid #BFDBFE; border-radius: 999px;
  color: var(--primary); font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.load-more-btn:hover {
  border-color: var(--primary); color: #FFFFFF;
  background: var(--gradient-gold); transform: translateY(-2px);
}

/* ─── Toast Notifications ───────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
}

.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; background: #FFFFFF;
  border: 1.5px solid #BFDBFE; border-radius: 14px;
  box-shadow: var(--shadow-card-hover); font-size: 13.5px; font-weight: 600;
  color: var(--text-primary); animation: toastIn 0.3s ease both;
  max-width: 340px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast.success { border-color: #6EE7B7; background: #ECFDF5; color: #065F46; }
.toast.error   { border-color: #FECDD3; background: #FFF1F2; color: #BE123C; }
.toast.info    { border-color: #BFDBFE; background: #EFF6FF; color: #1D4ED8; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1.5px solid #DCE6F7;
  background: #FFFFFF;
  padding: 22px 24px; margin-top: 44px;
  box-shadow: 0 -4px 20px rgba(37, 99, 235, 0.04);
}

.footer-inner {
  max-width: var(--container-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: var(--text-secondary);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 800;
  color: var(--primary);
}
.footer-logo-svg {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.22);
}
.footer-greek {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: #0369A1;
  font-size: 13.5px;
}
.footer-company { font-weight: 600; color: var(--text-secondary); }
.footer-sep   { margin: 0 6px; opacity: 0.4; }

/* ─── Scrollbar & Selection ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #F0F6FF; }
::-webkit-scrollbar-thumb { background: #93C5FD; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

::selection { background: #DBEAFE; color: #1D4ED8; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .brand-property-pill { display: none; }
  .lang-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-stats { display: none; }
  .brand-title  { font-size: 20px; }
  .filters-row  { flex-direction: column; }
  .filter-group { min-width: 100%; }
  .filter-group--action { min-width: 100%; }
  .fetch-btn    { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-ai    { display: none; }
  .main-container { padding: calc(var(--header-height) + 16px) 16px 40px; }
  .nc-header { padding: 14px 16px 0; }
  .nc-body   { padding: 12px 16px; }
  .nc-footer { flex-direction: column; align-items: flex-start; padding: 12px 16px; }
  .nc-title  { font-size: 18px; }
  .nc-section { padding: 12px 14px; }
}

@media (max-width: 680px) {
  .lang-tabs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .prompt-suggestions { display: none; }
  .nc-body { padding: 12px 14px; }
  .nc-header { padding: 13px 14px 0; }
  .nc-footer { padding: 10px 14px; }
  .nc-meta-row  { gap: 4px; font-size: 11px; }
  .nc-title     { font-size: 16.5px; }
  .nc-orig-text, .nc-story-text { font-size: 13.5px; }
}

/* ─── Opted Category Selector inside Generate Our News ─────────────────── */
.own-cat-section {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed #BFDBFE;
}

.own-cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.own-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1.5px solid #BFDBFE;
  background: #FFFFFF;
  color: #0369A1;
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.own-cat-chip:hover {
  border-color: #38BDF8;
  background: #E0F2FE;
  color: #0284C7;
  transform: translateY(-1px);
}

.own-cat-chip.selected {
  border-color: #0284C7;
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.own-cat-badge {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%) !important;
  border-color: #818CF8 !important;
  color: #3730A3 !important;
}

.own-gist-preserve-box {
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1.5px solid #86EFAC;
  border-left: 4px solid #16A34A;
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 12px;
}

.own-gist-preserve-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 5px;
}

.own-gist-preserve-title {
  font-size: 12px;
  font-weight: 800;
  color: #166534;
  letter-spacing: 0.01em;
}

.own-gist-preserve-pill {
  font-size: 11px;
  font-weight: 700;
  color: #047857;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  border-radius: 999px;
  padding: 2px 9px;
}

.own-gist-preserve-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #1E293B;
}

/* ─── Header User Badge & Logout Button ────────────────────────────────── */
.header-auth-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  border-left: 1.5px solid #BAE6FD;
}

.auth-user-pill {
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #E0F2FE 0%, #DBEAFE 100%);
  border: 1px solid #7DD3FC;
  color: #0369A1;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.auth-logout-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid #FDA4AF;
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  color: #E11D48;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.auth-logout-btn:hover {
  background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
  color: #FFFFFF;
  border-color: #E11D48;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.22);
}

/* ─── Bright International Daylight Login Gate Overlay ─────────────────── */
body.login-locked {
  overflow: hidden;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 82% 20%, rgba(99, 102, 241, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(20, 184, 166, 0.18) 0%, transparent 50%),
    linear-gradient(135deg, rgba(240, 249, 255, 0.96) 0%, rgba(224, 242, 254, 0.97) 50%, rgba(238, 242, 255, 0.96) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.login-card {
  width: 100%;
  max-width: 460px;
  background: #FFFFFF;
  border-radius: 24px;
  border: 2px solid #BAE6FD;
  box-shadow:
    0 24px 60px rgba(2, 132, 199, 0.16),
    0 6px 20px rgba(37, 99, 235, 0.08);
  padding: 32px 30px 26px;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0284C7 0%, #2563EB 35%, #4F46E5 70%, #0D9488 100%);
}

.login-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-crown-badge {
  width: 78px;
  height: 78px;
  margin: 0 auto 12px;
  padding: 0;
  border-radius: 22px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 26px rgba(29, 78, 216, 0.30));
  animation: crownFloat 3.8s ease-in-out infinite;
}

.login-brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.login-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin-bottom: 0;
}

.greek-origin-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 48%, #E0F2FE 100%);
  border: 1.5px solid #FCD34D;
  font-size: 12px;
  font-weight: 800;
  color: #1E3A8A;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.16);
}

.greek-origin-pill .greek-script {
  font-size: 15px;
  color: #0F296B;
}

.greek-origin-pill .greek-divider {
  color: #D97706;
  font-weight: 900;
}

.greek-origin-pill .si-tag {
  color: #1D4ED8;
}

.login-brand-sub {
  font-size: 13.5px;
  font-weight: 700;
  color: #0369A1;
  margin-bottom: 12px;
}

.login-property-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.login-property-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #B45309;
  font-size: 11px;
  font-weight: 700;
}

.login-company-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  color: #0369A1;
  font-size: 11px;
  font-weight: 700;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-error-box {
  padding: 10px 14px;
  border-radius: 12px;
  background: #FFF1F2;
  border: 1.5px solid #FDA4AF;
  color: #BE123C;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #0369A1;
}

.login-pass-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1.5px solid #93C5FD;
  background: #F8FAFC;
  color: #0284C7;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  outline: none;
  transition: all var(--transition);
}

.login-pass-wrapper .login-input {
  padding-right: 44px;
}

.login-input::placeholder {
  color: #64748B;
  font-weight: 500;
}

.login-input:focus {
  background: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.16);
}

.login-pass-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.login-submit-btn {
  margin-top: 4px;
  padding: 13px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 55%, #4F46E5 100%);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.26);
  transition: all var(--transition);
}

.login-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.34);
}

.login-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-card-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1.5px dashed #BAE6FD;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #0369A1;
}


/* ═══════════════════════════════════════════════════════════════════════════
   METIS-SI (Μῆτις) CINEMA, STORY, SCREENPLAY & 4-STAGE FILM PRODUCTION STUDIO
═══════════════════════════════════════════════════════════════════════════ */

/* ─── Top Platform Workspace Switcher Dock ──────────────────────────────── */
.ws-switcher-dock {
  background: #FFFFFF;
  border: 1.5px solid #BFDBFE;
  border-radius: 22px;
  padding: 8px;
  margin-bottom: 20px;
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.08);
}

.ws-switcher-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ws-mode-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid transparent;
  background: #F8FAFC;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.ws-mode-tab:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  transform: translateY(-1px);
}

.ws-mode-tab.active {
  background: linear-gradient(135deg, #EFF6FF 0%, #E0F2FE 55%, #EEF2FF 100%);
  border-color: #2563EB;
  color: #0F172A;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.14);
}

.ws-tab-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #FFFFFF;
  border: 1px solid #BFDBFE;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.1);
}

.ws-mode-tab.active .ws-tab-icon {
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 60%, #06B6D4 100%);
  border-color: transparent;
  color: #FFFFFF;
}

.ws-tab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-tab-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ws-tab-text strong {
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
}

.ws-tab-text span {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.ws-new-pill {
  font-size: 10px !important;
  font-weight: 900 !important;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.28);
}

/* News Card Story Studio Bridge Button */
.nc-btn-studio {
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  color: #3730A3;
  border: 1.5px solid #A5B4FC;
  font-weight: 800;
}

.nc-btn-studio:hover {
  background: linear-gradient(135deg, #4F46E5 0%, #2563EB 100%);
  color: #FFFFFF;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.26);
}

/* ─── Cinema Studio Hero & 3-Step Pipeline Stepper ──────────────────────── */
.cinema-studio-view {
  animation: fadeIn 0.3s ease both;
}

.cs-hero-banner {
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 50%, #F5F3FF 100%);
  border: 1.5px solid #93C5FD;
  border-radius: 24px;
  padding: 26px 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.cs-hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #2563EB 0%, #7C3AED 35%, #F59E0B 70%, #10B981 100%);
}

.cs-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.cs-hero-brand {
  max-width: 880px;
}

.cs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1px solid #FCD34D;
  color: #92400E;
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 10px;
}

.cs-hero-title {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.4px;
  background: linear-gradient(135deg, #0F296B 0%, #2563EB 50%, #6D28D9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.cs-hero-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.cs-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cs-export-all-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(16, 185, 129, 0.28);
  transition: all var(--transition);
}

.cs-export-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.36);
}

.cs-reset-btn {
  padding: 10px 15px;
  border-radius: 12px;
  border: 1.5px solid #BFDBFE;
  background: #FFFFFF;
  color: #1D4ED8;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
}

.cs-reset-btn:hover {
  background: #EFF6FF;
  border-color: #2563EB;
}

.cs-pipeline-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cs-step-pill {
  flex: 1;
  min-width: 210px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.cs-step-pill.active {
  border-color: #2563EB;
  background: #EFF6FF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.cs-step-pill.completed {
  border-color: #10B981;
  background: #ECFDF5;
}

.cs-step-pill.locked {
  opacity: 0.62;
  background: #F8FAFC;
}

.cs-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cs-step-pill.completed .cs-step-num {
  background: #059669;
}

.cs-step-pill.locked .cs-step-num {
  background: #94A3B8;
}

.cs-step-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cs-step-meta strong {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}

.cs-step-meta span {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
}

.cs-step-connector {
  font-size: 18px;
  font-weight: 900;
  color: #64748B;
}

/* ─── Phase Cards (Steps 1, 2, 3) ───────────────────────────────────────── */
.cs-phase-card {
  background: #FFFFFF;
  border: 1.5px solid #DCE6F7;
  border-radius: 24px;
  padding: 26px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}

.cs-phase-card.cs-phase-locked {
  background: #F8FAFC;
  border-style: dashed;
  border-color: #CBD5E1;
}

.cs-phase-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.cs-phase-badge {
  padding: 6px 13px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cs-phase-badge.badge-step2 {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
}

.cs-phase-badge.badge-step3 {
  background: linear-gradient(135deg, #059669 0%, #0D9488 100%);
}

.cs-phase-title {
  font-size: 21px;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 4px;
}

.cs-phase-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cs-lock-banner {
  padding: 16px 20px;
  border-radius: 14px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}

/* ─── Sample Seeds & Form Inputs ────────────────────────────────────────── */
.cs-samples-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #F8FAFF;
  border: 1px solid #DBEAFE;
}

.cs-samples-label {
  font-size: 12px;
  font-weight: 800;
  color: #1E40AF;
}

.cs-samples-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-sample-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #93C5FD;
  background: #FFFFFF;
  color: #1D4ED8;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.cs-sample-chip:hover {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
  transform: translateY(-1px);
}

.cs-field-block {
  margin-bottom: 20px;
}

.cs-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.cs-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #1E3A8A;
  margin-bottom: 7px;
}

.cs-label-row .cs-label {
  margin-bottom: 0;
}

.cs-label-hint {
  font-weight: 600;
  color: #64748B;
  font-size: 12px;
}

.cs-selected-genres-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: #EEF2FF;
  border: 1px solid #A5B4FC;
  color: #3730A3;
  font-size: 12px;
  font-weight: 800;
}

.cs-textarea,
.cs-input,
.cs-select {
  width: 100%;
  border-radius: 14px;
  border: 1.5px solid #93C5FD;
  background: #F8FAFF;
  color: #0F172A;
  font-family: 'Outfit', 'Noto Sans Telugu', 'Noto Sans Devanagari', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 15px;
  outline: none;
  transition: all var(--transition);
}

.cs-textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.55;
}

.cs-textarea:focus,
.cs-input:focus,
.cs-select:focus {
  background: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* ─── Genre Selection Grid ──────────────────────────────────────────────── */
.cs-genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 10px;
}

.cs-genre-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
}

.cs-genre-card:hover {
  border-color: #93C5FD;
  background: #EFF6FF;
  transform: translateY(-1px);
}

.cs-genre-card.selected {
  border-color: #2563EB;
  background: linear-gradient(135deg, #EFF6FF 0%, #E0E7FF 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.14);
}

.cs-genre-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cs-genre-icon {
  font-size: 17px;
}

.cs-genre-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  flex: 1;
}

.cs-genre-order {
  padding: 1px 7px;
  border-radius: 999px;
  background: #2563EB;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 900;
}

.cs-genre-vibe {
  font-size: 11px;
  color: #475569;
  line-height: 1.35;
}

.cs-params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.cs-action-bar {
  display: flex;
  justify-content: flex-end;
}

.cs-primary-btn {
  padding: 14px 26px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #0891B2 100%);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
  transition: all var(--transition);
}

.cs-primary-btn.btn-indigo {
  background: linear-gradient(135deg, #4338CA 0%, #6D28D9 60%, #2563EB 100%);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.28);
}

.cs-primary-btn.btn-emerald {
  background: linear-gradient(135deg, #047857 0%, #059669 55%, #0891B2 100%);
  box-shadow: 0 8px 22px rgba(5, 150, 105, 0.28);
  white-space: nowrap;
}

.cs-primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.cs-primary-btn:disabled {
  opacity: 0.68;
  cursor: not-allowed;
}

/* ─── Generated Story Bible Output ──────────────────────────────────────── */
.cs-output-wrap {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px dashed #BFDBFE;
  animation: fadeIn 0.35s ease both;
}

.cs-story-banner {
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 55%, #FFFBEB 100%);
  border: 1.5px solid #93C5FD;
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 18px;
}

.cs-story-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cs-pill {
  padding: 4px 11px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #334155;
  font-size: 11.5px;
  font-weight: 800;
}

.cs-pill-ai {
  background: #ECFDF5;
  border-color: #6EE7B7;
  color: #065F46;
}

.cs-pill-genre {
  background: #EEF2FF;
  border-color: #A5B4FC;
  color: #3730A3;
}

.cs-story-main-title {
  font-size: 28px;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}

.cs-story-tagline {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
  color: #1D4ED8;
  margin-bottom: 12px;
}

.cs-alt-titles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

.cs-alt-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  font-weight: 700;
  color: #1E293B;
}

.cs-logline-box {
  background: linear-gradient(135deg, #FEFCE8 0%, #FFFBEB 100%);
  border: 1.5px solid #FDE047;
  border-left: 5px solid #F59E0B;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.cs-box-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.9px;
  color: #B45309;
  margin-bottom: 6px;
}

.cs-pillar-card .cs-box-kicker {
  color: #1D4ED8;
}

.cs-logline-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  color: #0F172A;
}

.cs-story-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.cs-pillar-card {
  background: #F8FAFF;
  border: 1px solid #DBEAFE;
  border-radius: 16px;
  padding: 15px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1E293B;
}

.cs-subsection {
  margin-bottom: 22px;
}

.cs-subsection-title {
  font-size: 17px;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 12px;
}

.cs-chars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.cs-char-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.cs-char-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.cs-char-name {
  font-size: 15.5px;
  font-weight: 900;
  color: #0F172A;
}

.cs-char-role {
  padding: 2px 9px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 800;
}

.cs-char-archetype {
  font-size: 12px;
  font-weight: 700;
  color: #6D28D9;
  margin-bottom: 8px;
}

.cs-char-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 8px;
}

.cs-char-arc {
  font-size: 12px;
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: 10px;
  background: #F8FAFC;
  border-left: 3px solid #2563EB;
  color: #1E293B;
}

.cs-acts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.cs-act-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
  border: 1.5px solid #DBEAFE;
  border-radius: 16px;
  padding: 18px;
}

.cs-act-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.cs-act-tag {
  padding: 3px 9px;
  border-radius: 8px;
  background: #1D4ED8;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
}

.cs-act-name {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
}

.cs-act-summary {
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 10px;
}

.cs-act-beats {
  padding-left: 18px;
  font-size: 12.5px;
  color: #1E3A8A;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-story-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
}

.cs-secondary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cs-sec-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.cs-sec-btn:hover {
  border-color: #2563EB;
  color: #2563EB;
  background: #EFF6FF;
}

.cs-next-step-cta {
  padding: 13px 24px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 55%, #EC4899 100%);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.28);
  transition: all var(--transition);
}

.cs-next-step-cta.cta-emerald {
  background: linear-gradient(135deg, #059669 0%, #10B981 55%, #0284C7 100%);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.28);
}

.cs-next-step-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* ─── Step 2: Hollywood Screenplay Studio Viewer ────────────────────────── */
.cs-script-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.cs-script-meta,
.cs-script-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-script-note {
  padding: 12px 16px;
  border-radius: 12px;
  background: #EEF2FF;
  border: 1px solid #C7D2FE;
  color: #312E81;
  font-size: 13px;
  margin-bottom: 14px;
}

.cs-scene-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cs-scene-jump-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #C7D2FE;
  background: #F8FAFF;
  color: #3730A3;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.cs-scene-jump-chip:hover {
  background: #4F46E5;
  color: #FFFFFF;
}

.cs-screenplay-paper {
  max-width: 880px;
  margin: 0 auto 20px;
  background: #FFFEF9;
  border: 1.5px solid #D6D3D1;
  border-radius: 16px;
  padding: 36px 44px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  color: #18181B;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
}

.cs-screenplay-paper.dark-paper {
  background: #0F172A;
  border-color: #334155;
  color: #F1F5F9;
}

.cs-script-title-page {
  text-align: center;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1.5px dashed #CBD5E1;
}

.cs-screenplay-paper.dark-paper .cs-script-title-page {
  border-bottom-color: #334155;
}

.cs-script-doc-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-decoration: underline;
  margin-bottom: 8px;
}

.cs-script-doc-sub {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.cs-script-scene-block {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.cs-scene-header-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 12px;
  border-radius: 8px;
  background: #EFF6FF;
  border-left: 4px solid #2563EB;
  margin-bottom: 8px;
}

.cs-screenplay-paper.dark-paper .cs-scene-header-strip {
  background: #1E293B;
  border-left-color: #38BDF8;
}

.cs-scene-num-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 900;
  color: #1D4ED8;
}

.cs-screenplay-paper.dark-paper .cs-scene-num-badge {
  color: #38BDF8;
}

.cs-scene-slug {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.cs-scene-purpose {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-style: italic;
  color: #64748B;
  margin-bottom: 12px;
}

.cs-screenplay-paper.dark-paper .cs-scene-purpose {
  color: #94A3B8;
}

.cs-scene-fountain-body {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: 'Courier Prime', 'Courier New', Courier, monospace;
  font-size: 14.5px;
  line-height: 1.65;
}

.cs-script-end-mark {
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
  padding-top: 8px;
}

/* ─── Step 3: 4-Stage Filmmaking Tabs & Module Grid ─────────────────────── */
.cs-stages-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.cs-stage-tab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  font-family: 'Outfit', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.cs-stage-tab:hover {
  border-color: #38BDF8;
  background: #F0F9FF;
  transform: translateY(-2px);
}

.cs-stage-tab.active {
  border-color: #059669;
  background: linear-gradient(135deg, #ECFDF5 0%, #EFF6FF 100%);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.14);
}

.cs-stage-tab-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.cs-stage-num-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-stage-tab.active .cs-stage-num-circle {
  background: #059669;
}

.cs-stage-icon {
  font-size: 18px;
}

.cs-stage-count-pill,
.cs-stage-done-pill {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.cs-stage-count-pill {
  background: #E2E8F0;
  color: #475569;
}

.cs-stage-done-pill {
  background: #10B981;
  color: #FFFFFF;
}

.cs-stage-tab-title {
  font-size: 15.5px;
  font-weight: 900;
  color: #0F172A;
}

.cs-stage-tab-sub {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.cs-active-stage-box {
  background: #F8FAFF;
  border: 1.5px solid #BFDBFE;
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.cs-stage-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #DBEAFE;
}

.cs-stage-kicker {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.9px;
  color: #059669;
  margin-bottom: 4px;
}

.cs-stage-heading {
  font-size: 19px;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 4px;
}

.cs-stage-desc {
  font-size: 13.5px;
  color: #334155;
}

.cs-stage-quick-btns {
  display: flex;
  gap: 8px;
}

.cs-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.cs-module-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: all var(--transition);
}

.cs-module-card.checked {
  border-color: #2563EB;
  background: linear-gradient(180deg, #FFFFFF 0%, #EFF6FF 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.cs-module-card.generated {
  border-color: #10B981;
}

.cs-module-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cs-mod-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.cs-mod-checkbox {
  width: 17px;
  height: 17px;
  accent-color: #2563EB;
  cursor: pointer;
}

.cs-mod-icon {
  font-size: 18px;
}

.cs-mod-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #0F172A;
}

.cs-mod-ready-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #047857;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

.cs-mod-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #475569;
}

.cs-module-card-foot {
  display: flex;
  justify-content: flex-end;
}

.cs-mod-single-btn {
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid #93C5FD;
  background: #EFF6FF;
  color: #1D4ED8;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
}

.cs-mod-single-btn:hover:not(:disabled) {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.cs-stage-generate-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px dashed #BFDBFE;
}

.cs-stage-notes-input {
  flex: 1;
  min-width: 260px;
  background: #FFFFFF;
}

/* ─── Generated Production Binder ───────────────────────────────────────── */
.cs-binder-section {
  padding-top: 12px;
}

.cs-binder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.cs-binder-title {
  font-size: 20px;
  font-weight: 900;
  color: #0F172A;
}

.cs-binder-sub {
  font-size: 12.5px;
  color: #475569;
  font-weight: 600;
}

.cs-binder-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-binder-filter-btn {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition);
}

.cs-binder-filter-btn.active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

.cs-binder-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cs-deliverable-card {
  background: #FFFFFF;
  border: 1.5px solid #93C5FD;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
  animation: fadeIn 0.3s ease both;
}

.cs-deliv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.cs-deliv-stage-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #047857;
  margin-bottom: 4px;
}

.cs-deliv-title {
  font-size: 19px;
  font-weight: 900;
  color: #0F172A;
}

.cs-deliv-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-deliv-summary {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: #1E3A8A;
  background: #EFF6FF;
  border-radius: 12px;
  padding: 12px 15px;
  margin-bottom: 16px;
}

.cs-deliv-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.cs-deliv-sec-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 15px 16px;
}

.cs-deliv-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #0F172A;
}

.cs-deliv-sec-badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 10.5px;
  font-weight: 800;
}

.cs-deliv-list {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
}

.cs-deliv-protips {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: #92400E;
}

.cs-deliv-protips ul {
  padding-left: 18px;
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 1080px) {
  .cs-stages-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ws-switcher-tabs,
  .cs-stages-tabs {
    grid-template-columns: 1fr;
  }
  .cs-step-connector {
    display: none;
  }
  .cs-phase-card,
  .cs-hero-banner {
    padding: 18px 16px;
  }
  .cs-screenplay-paper {
    padding: 22px 18px;
  }
  .cs-primary-btn.btn-emerald {
    width: 100%;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   YELLOW BRANDING BADGE, MULTI-FEATURE HEADER, STUDIO MODIFICATION PANELS,
   TRENDING & VIRAL HUB + SOCIAL PULSE (X • INSTAGRAM • FACEBOOK)
═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. Yellow "Metis - Super Intelligence" Branding Badge ─────────────── */
.metis-yellow-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3.5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FEF08A 0%, #FACC15 55%, #F59E0B 100%);
  border: 1.5px solid #D97706;
  color: #1E293B;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(234, 179, 8, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.metis-yellow-badge--sm {
  font-size: 10.5px;
  padding: 2px 9px;
}

.empty-yellow-wrap {
  margin-bottom: 10px;
}

/* ─── 2. Multi-Feature Header Pills (#siteHeader) ───────────────────────── */
.header-stats {
  gap: 8px;
  flex-wrap: nowrap;
}

.header-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  border: 1.5px solid #93C5FD;
  border-radius: 13px;
  padding: 5px 10px;
  font-family: 'Outfit', sans-serif;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
  transition: all 0.2s ease;
}

.header-feature-pill:hover {
  border-color: #2563EB;
  background: #EFF6FF;
  transform: translateY(-1px);
}

.header-feature-pill.active {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-color: #1D4ED8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

.hf-icon {
  font-size: 15px;
  line-height: 1;
}

.hf-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hf-meta strong {
  font-size: 11.5px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
}

.hf-meta small {
  font-size: 9.5px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

/* 4-Tab Workspace Switcher Responsive Refinements */
.ws-tab-text strong {
  font-size: 14px;
}

.ws-tab-text span {
  font-size: 11.5px;
}

/* ─── 3. Cinema Studio Modification Panels (Regenerate Story & Script) ──── */
.cs-pill-variation {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%) !important;
  color: #92400E !important;
  border: 1px solid #F59E0B !important;
  font-weight: 800 !important;
}

.cs-applied-mod-alert {
  margin: 12px 0 14px;
  padding: 11px 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1.5px solid #F59E0B;
  color: #78350F;
  font-size: 13px;
  line-height: 1.45;
}

.cs-mod-panel {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #F8FAFF 0%, #EFF6FF 60%, #FFFBEB 100%);
  border: 1.5px solid #93C5FD;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.cs-mod-panel-script {
  background: linear-gradient(135deg, #F5F3FF 0%, #EEF2FF 60%, #FFFBEB 100%);
  border-color: #A5B4FC;
}

.cs-mod-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cs-mod-title {
  display: block;
  font-size: 15.5px;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 3px;
  cursor: pointer;
}

.cs-mod-sub {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
}

.cs-mod-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: #FEF08A;
  border: 1px solid #EAB308;
  color: #1E293B;
  font-size: 10.5px;
  font-weight: 800;
}

.cs-mod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.cs-mod-chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #BFDBFE;
  background: #FFFFFF;
  color: #1E40AF;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cs-mod-chip:hover {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
}

.cs-mod-textarea {
  background: #FFFFFF;
  border: 1.5px solid #93C5FD;
  min-height: 68px;
  margin-bottom: 12px;
}

.cs-mod-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cs-regen-action-btn {
  padding: 11px 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.cs-regen-action-btn.btn-regen-indigo {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  box-shadow: 0 5px 14px rgba(79, 70, 229, 0.25);
}

.cs-regen-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ─── 4. Trending & Viral Hub + Social Pulse Hub ────────────────────────── */
.pulse-workspace-view {
  animation: fadeIn 0.3s ease both;
}

.pulse-hub-banner {
  background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 55%, #FFFBEB 100%);
  border: 1.5px solid #93C5FD;
  border-radius: 24px;
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.pulse-hub-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #F59E0B 0%, #EF4444 35%, #2563EB 70%, #10B981 100%);
}

.pulse-social-banner::before {
  background: linear-gradient(90deg, #0F172A 0%, #E1306C 45%, #1877F2 100%);
}

.pulse-banner-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pulse-banner-brand {
  max-width: 820px;
}

.pulse-banner-title {
  font-size: 25px;
  font-weight: 900;
  color: #0F172A;
  margin: 8px 0 5px;
  letter-spacing: -0.3px;
}

.pulse-banner-sub {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
}

.pulse-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pulse-lang-box {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  border: 1.5px solid #BFDBFE;
  border-radius: 12px;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1E3A8A;
}

.pulse-select {
  border: 1px solid #CBD5E1;
  border-radius: 9px;
  padding: 5px 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
  background: #F8FAFC;
  cursor: pointer;
}

.pulse-refresh-btn {
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #2563EB 0%, #0891B2 100%);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
  transition: all 0.2s ease;
}

.pulse-refresh-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Scope Tabs (Globe / India / States / Local) */
.pulse-scope-tabs,
.social-platform-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.pulse-scope-tab,
.social-plat-tab {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pulse-scope-tab:hover,
.social-plat-tab:hover {
  border-color: #2563EB;
  background: #EFF6FF;
}

.pulse-scope-tab.active,
.social-plat-tab.active {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-color: #2563EB;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16);
}

.pulse-scope-icon,
.social-plat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
  flex-shrink: 0;
}

.pulse-scope-tab.active .pulse-scope-icon,
.social-plat-tab.active .social-plat-icon {
  background: #2563EB;
  color: #FFFFFF;
}

.social-plat-tab.plat-x.active .social-plat-icon { background: #0F172A; color: #FFFFFF; }
.social-plat-tab.plat-instagram.active .social-plat-icon { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); color: #FFFFFF; }
.social-plat-tab.plat-facebook.active .social-plat-icon { background: #1877F2; color: #FFFFFF; }

.pulse-scope-tab strong,
.social-plat-tab strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
}

.pulse-scope-tab span,
.social-plat-tab span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

/* Subscope & Filter Chips */
.pulse-subscope-panel {
  background: #F8FAFC;
  border: 1px solid #DBEAFE;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.pulse-drill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-filter-row {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
}

.pulse-filter-kicker {
  font-size: 12px;
  font-weight: 800;
  color: #1E3A8A;
  white-space: nowrap;
}

.pulse-chip-list,
.pulse-topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pulse-chip,
.pulse-topic-pill {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.pulse-chip:hover,
.pulse-topic-pill:hover {
  border-color: #2563EB;
  color: #1D4ED8;
}

.pulse-chip.active,
.pulse-topic-pill.active {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border-color: #1D4ED8;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
}

.pulse-topic-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Local Area & Custom Person Inputs */
.pulse-local-top-row {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 14px;
  margin-bottom: 12px;
}

.pulse-local-field label,
.pulse-local-custom-box label,
.social-search-row label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #1E3A8A;
  margin-bottom: 5px;
}

.pulse-inline-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-input {
  flex: 1;
  padding: 9px 13px;
  border-radius: 11px;
  border: 1.5px solid #93C5FD;
  background: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: #0F172A;
}

.pulse-apply-btn {
  padding: 9px 15px;
  border-radius: 11px;
  border: none;
  background: #1D4ED8;
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.pulse-clear-btn {
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid #FCA5A5;
  background: #FEF2F2;
  color: #B91C1C;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

/* Meta Bar & Results Grid */
.pulse-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #FFFFFF;
  border: 1.5px solid #DBEAFE;
  border-radius: 16px;
  padding: 12px 18px;
  margin-bottom: 16px;
}

.pulse-meta-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #0F172A;
}

.pulse-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #047857;
  font-size: 11px;
  font-weight: 900;
}

.pulse-meta-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 11.5px;
  font-weight: 700;
}

.pulse-meta-hint {
  font-size: 12px;
  color: #475569;
}

.pulse-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.pulse-viral-card,
.social-post-card {
  background: #FFFFFF;
  border: 1.5px solid #DCE6F7;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pulse-viral-card:hover,
.social-post-card:hover {
  transform: translateY(-3px);
  border-color: #60A5FA;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.12);
}

.pulse-viral-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pulse-viral-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pulse-heat-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FEF2F2 0%, #FFEDD5 100%);
  border: 1px solid #FDBA74;
  color: #C2410C;
  font-size: 11px;
  font-weight: 900;
}

.pulse-scope-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  font-size: 11px;
  font-weight: 800;
}

.pulse-time-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
}

.pulse-card-headline {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  color: #0F172A;
}

.pulse-card-headline a {
  color: inherit;
  text-decoration: none;
}

.pulse-card-headline a:hover {
  color: #2563EB;
}

.pulse-source-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pulse-source-pill {
  padding: 2px 9px;
  border-radius: 7px;
  background: #F1F5F9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 800;
}

.pulse-topic-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #0369A1;
}

.pulse-card-snippet {
  font-size: 13.5px;
  line-height: 1.55;
  color: #334155;
  flex: 1;
}

.pulse-ai-details {
  background: #F8FAFF;
  border: 1px solid #DBEAFE;
  border-radius: 11px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #1E3A8A;
}

.pulse-ai-details summary {
  font-weight: 800;
  cursor: pointer;
}

.pulse-ai-details p {
  margin-top: 6px;
  color: #334155;
  line-height: 1.5;
}

.pulse-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
}

.pulse-btn-link {
  padding: 6px 12px;
  border-radius: 9px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.pulse-btn-link:hover {
  background: #2563EB;
  color: #FFFFFF;
}

.pulse-btn-copy {
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.pulse-btn-studio {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid #A5B4FC;
  background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
  color: #3730A3;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.pulse-btn-studio:hover {
  background: #4F46E5;
  color: #FFFFFF;
}

/* Verified Handles Strip & Social Post Specifics */
.social-handles-box {
  background: #FFFFFF;
  border: 1.5px solid #DBEAFE;
  border-radius: 20px;
  padding: 16px 20px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}

.social-handles-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.social-handles-head strong {
  font-size: 14px;
  font-weight: 900;
  color: #0F172A;
}

.social-handles-head span {
  font-size: 12px;
  color: #475569;
}

.social-handles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 10px;
}

.social-handle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
  transition: all 0.18s ease;
}

.social-handle-card.active,
.social-handle-card:hover {
  border-color: #2563EB;
  background: #EFF6FF;
}

.social-handle-filter-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  border: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  text-align: left;
  cursor: pointer;
  padding: 0;
  min-width: 0;
  flex: 1;
}

.social-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-handle-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.social-handle-meta strong {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-handle-meta span {
  font-size: 10.5px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-handle-meta em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  color: #2563EB;
}

.social-direct-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.soc-mini-link {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F172A;
}

.soc-mini-link:hover {
  transform: scale(1.08);
  border-color: #2563EB;
}

/* Social Post Cards */
.social-border-x { border-top: 4px solid #0F172A; }
.social-border-instagram { border-top: 4px solid #E1306C; }
.social-border-facebook { border-top: 4px solid #1877F2; }
.social-border-verified_web { border-top: 4px solid #0D9488; }

.social-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.social-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-author-name-line {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.social-author-name-line strong {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}

.social-verified-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1D9BF0;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
}

.social-handle-link {
  font-size: 12px;
  font-weight: 700;
  color: #2563EB;
  text-decoration: none;
}

.social-author-role {
  display: block;
  font-size: 11.5px;
  color: #64748B;
}

.social-plat-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-x { background: #0F172A; color: #FFFFFF; }
.badge-instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); color: #FFFFFF; }
.badge-facebook { background: #1877F2; color: #FFFFFF; }
.badge-verified_web { background: #0D9488; color: #FFFFFF; }

.social-engagement-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.social-eng-pill {
  padding: 2.5px 9px;
  border-radius: 999px;
  background: #FEF3C7;
  color: #92400E;
  font-size: 11px;
  font-weight: 800;
}

.social-eng-pill.soc-ver-direct {
  background: #ECFDF5;
  border: 1px solid #6EE7B7;
  color: #065F46;
}

.social-eng-pill.soc-ver-cited {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}

.social-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.social-profile-jumps,
.social-card-right-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.soc-jump-btn {
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #1E293B;
}

.soc-jump-btn.jump-direct-verify {
  background: #ECFDF5;
  border-color: #34D399;
  color: #065F46;
}
.soc-jump-btn.jump-direct-verify:hover {
  background: #059669;
  border-color: #059669;
  color: #FFFFFF;
}
.soc-jump-btn.jump-x:hover { background: #0F172A; color: #FFFFFF; border-color: #0F172A; }
.soc-jump-btn.jump-ig:hover { background: #E1306C; color: #FFFFFF; border-color: #E1306C; }
.soc-jump-btn.jump-fb:hover { background: #1877F2; color: #FFFFFF; border-color: #1877F2; }

/* Loading & Empty States */
.pulse-loading-card {
  height: 220px;
  border-radius: 20px;
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: pulseShimmer 1.3s infinite linear;
}

@keyframes pulseShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.pulse-empty-box,
.pulse-error-box {
  grid-column: 1 / -1;
  padding: 26px;
  border-radius: 16px;
  text-align: center;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  font-weight: 700;
}

.pulse-error-box {
  border-color: #FCA5A5;
  background: #FEF2F2;
  color: #991B1B;
}

@media (max-width: 1260px) {
  .ws-switcher-tabs,
  .pulse-scope-tabs,
  .social-platform-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .hf-meta small {
    display: none;
  }
}

@media (max-width: 960px) {
  .header-feature-pill {
    display: none;
  }
  .pulse-local-top-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ws-switcher-tabs,
  .pulse-scope-tabs,
  .social-platform-tabs,
  .pulse-cards-grid {
    grid-template-columns: 1fr;
  }
  .pulse-inline-search {
    flex-wrap: wrap;
  }
}


/* ─── Logo Mouseover / Tooltip Card (Metis Mythology & Super Intelligence) ─ */
.login-card {
  overflow: visible;
}

.login-card::before {
  border-radius: 22px 22px 0 0;
}

.logo-tooltip-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-tooltip-anchor.logo-tooltip-center {
  display: flex;
  justify-content: center;
}

.footer-logo-svg {
  cursor: pointer;
}

.metis-logo-tooltip {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(410px, 88vw);
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #172554 100%);
  border: 1.5px solid #FACC15;
  color: #F8FAFC;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.15px;
  text-align: left;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.34), 0 0 0 1px rgba(250, 204, 21, 0.25);
  z-index: 10050;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.metis-logo-tooltip::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 19px;
  width: 12px;
  height: 12px;
  background: #0F172A;
  border-top: 1.5px solid #FACC15;
  border-left: 1.5px solid #FACC15;
  transform: rotate(45deg);
}

/* Centered variant (Login Card & Empty State Logo) */
.logo-tooltip-anchor.logo-tooltip-center .metis-logo-tooltip {
  left: 50%;
  transform: translate(-50%, -6px);
}

.logo-tooltip-anchor.logo-tooltip-center .metis-logo-tooltip::before {
  left: 50%;
  margin-left: -6px;
}

/* Upward variant (Footer Logo) */
.logo-tooltip-anchor.logo-tooltip-up .metis-logo-tooltip {
  top: auto;
  bottom: calc(100% + 12px);
  left: 0;
  transform: translateY(6px);
}

.logo-tooltip-anchor.logo-tooltip-up .metis-logo-tooltip::before {
  top: auto;
  bottom: -7px;
  border-top: none;
  border-left: none;
  border-bottom: 1.5px solid #FACC15;
  border-right: 1.5px solid #FACC15;
}

/* Show Tooltip on Mouseover or Keyboard Focus */
.logo-tooltip-anchor:hover > .metis-logo-tooltip,
.logo-tooltip-anchor:focus-within > .metis-logo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.logo-tooltip-anchor.logo-tooltip-center:hover > .metis-logo-tooltip,
.logo-tooltip-anchor.logo-tooltip-center:focus-within > .metis-logo-tooltip {
  transform: translate(-50%, 0);
}


/* ═══════════════════════════════════════════════════════════════════════════
   ONLINE GOVT PUBLICATIONS — DAILY POSITIVE NEWS REFERENCE PDF HUB
   (12 English + 5 Hindi Newspapers • Landscape Double-Bordered Dossier)
   ═══════════════════════════════════════════════════════════════════════════ */

.govt-pubs-workspace {
  margin-top: 18px;
}

.gp-hub-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gp-hero-card {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.gp-hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid #E2E8F0;
}

.gp-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.gp-kicker-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, #1E3A8A, #2563EB);
  color: #FFFFFF;
}

.gp-kicker-count {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.gp-hero-title {
  font-size: 21px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.gp-hero-desc {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
  max-width: 820px;
  line-height: 1.55;
}

.gp-hero-cta-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.gp-cta-hint {
  font-size: 11.5px;
  color: #64748B;
}

.gp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gp-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.gp-btn-generate {
  padding: 13px 22px;
  font-size: 14.5px;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

.gp-btn-generate:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.36);
}

.gp-btn-primary {
  background: linear-gradient(135deg, #1D4ED8, #2563EB);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.24);
}

.gp-btn-primary:hover {
  background: linear-gradient(135deg, #1E40AF, #1D4ED8);
  transform: translateY(-1px);
}

.gp-btn-secondary {
  background: #EFF6FF;
  color: #1D4ED8;
  border-color: #BFDBFE;
}

.gp-btn-secondary:hover {
  background: #DBEAFE;
}

.gp-btn-outline {
  background: #FFFFFF;
  color: #1E293B;
  border-color: #CBD5E1;
}

.gp-btn-outline:hover {
  border-color: #2563EB;
  color: #1D4ED8;
}

.gp-btn-ghost {
  background: #F8FAFC;
  color: #475569;
  border-color: #E2E8F0;
}

.gp-btn-ghost:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* Config Row */
.gp-config-bar {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
  align-items: end;
}

@media (max-width: 960px) {
  .gp-config-bar {
    grid-template-columns: 1fr;
  }
  .gp-hero-cta-box {
    align-items: stretch;
    width: 100%;
  }
}

.gp-config-field label,
.gp-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.gp-title-combo {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8px;
}

@media (max-width: 680px) {
  .gp-title-combo {
    grid-template-columns: 1fr;
  }
}

.gp-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  color: #0F172A;
  font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  box-sizing: border-box;
}

.gp-input:focus {
  outline: none;
  border-color: #2563EB;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* 17 Newspapers Selector */
.gp-portals-panel {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.gp-portals-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.gp-portals-lbl {
  font-size: 13px;
  font-weight: 800;
  color: #1E293B;
}

.gp-portal-quick-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gp-chip-action {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.gp-chip-action:hover {
  border-color: #2563EB;
  color: #1D4ED8;
}

.gp-portal-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gp-group-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #1D4ED8;
  margin-bottom: 7px;
}

.gp-group-tag-hi {
  color: #4338CA;
}

.gp-portal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.gp-portal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.gp-portal-chip.active {
  border-color: #2563EB;
  background: #EFF6FF;
  color: #1E40AF;
  font-weight: 700;
}

.gp-portal-chip.gp-chip-hi.active {
  border-color: #4F46E5;
  background: #EEF2FF;
  color: #3730A3;
}

.gp-chip-check {
  font-size: 11px;
  font-weight: 900;
}

/* Generating Progress Card */
.gp-generating-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 60%, #FEF3C7 100%);
  border: 1.5px solid #60A5FA;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.gp-gen-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3.5px solid #BFDBFE;
  border-top-color: #1D4ED8;
  animation: gpSpin 0.85s linear infinite;
  flex-shrink: 0;
}

@keyframes gpSpin {
  to { transform: rotate(360deg); }
}

.gp-gen-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #1E3A8A;
  margin-bottom: 4px;
}

.gp-gen-sub {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.45;
}

/* Ready Downloadable Link Banner */
.gp-ready-download-banner {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 55%, #EFF6FF 100%);
  border: 2px solid #16A34A;
  border-radius: 18px;
  padding: 18px 22px;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.12);
}

.gp-ready-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.gp-ready-live-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #15803D;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #86EFAC;
  margin-bottom: 6px;
}

.gp-ready-filename {
  margin: 0 0 4px 0;
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  word-break: break-word;
}

.gp-ready-meta {
  margin: 0;
  font-size: 13px;
  color: #334155;
}

.gp-ready-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gp-direct-link-strip {
  margin-top: 12px;
  padding: 9px 13px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px dashed #94A3B8;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.gp-link-lbl {
  font-weight: 800;
  color: #1E293B;
}

.gp-direct-link-anchor {
  color: #1D4ED8;
  font-weight: 700;
  text-decoration: underline;
  word-break: break-all;
}

/* Manage Archive Table */
.gp-manage-section,
.gp-preview-section {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.gp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.gp-section-title {
  margin: 0 0 4px 0;
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
}

.gp-section-sub {
  margin: 0;
  font-size: 12.5px;
  color: #64748B;
}

.gp-preview-head-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gp-archive-table-wrap {
  overflow-x: auto;
}

.gp-archive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gp-archive-table th {
  text-align: left;
  padding: 10px 12px;
  background: #F1F5F9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  border-bottom: 1.5px solid #CBD5E1;
}

.gp-archive-table td {
  padding: 12px;
  border-bottom: 1px solid #E2E8F0;
  vertical-align: middle;
}

.gp-row-active {
  background: #EFF6FF;
}

.gp-date-badge {
  color: #1E3A8A;
  font-weight: 800;
}

.gp-row-title {
  font-weight: 700;
  color: #0F172A;
}

.gp-row-file {
  font-size: 11.5px;
  color: #64748B;
  margin-top: 2px;
}

.gp-cov-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: #DBEAFE;
  color: #1E40AF;
  font-size: 11.5px;
  font-weight: 800;
}

.gp-cov-sub {
  display: block;
  font-size: 11px;
  color: #64748B;
  margin-top: 3px;
}

.gp-row-time {
  font-size: 12.5px;
  color: #1E293B;
  font-weight: 600;
}

.gp-row-user {
  font-size: 11px;
  color: #64748B;
}

.gp-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gp-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.gp-act-btn:hover,
.gp-act-btn.active {
  border-color: #2563EB;
  background: #EFF6FF;
  color: #1D4ED8;
}

.gp-act-pdf {
  background: #1D4ED8;
  border-color: #1D4ED8;
  color: #FFFFFF;
}

.gp-act-pdf:hover {
  background: #1E40AF;
  color: #FFFFFF;
}

.gp-act-del:hover {
  border-color: #DC2626;
  background: #FEF2F2;
  color: #DC2626;
}

.gp-empty-archive {
  padding: 20px;
  text-align: center;
  color: #64748B;
  background: #F8FAFC;
  border-radius: 12px;
}

/* ── Live Reference-Format Landscape Sheets Preview ── */
.gp-pages-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 12px;
}

.gp-ref-page-wrapper {
  background: #F1F5F9;
  padding: 14px 16px 18px 16px;
  border-radius: 16px;
  border: 1px solid #CBD5E1;
}

.gp-ref-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.gp-page-num-pill {
  font-size: 12px;
  font-weight: 800;
  color: #1E3A8A;
  background: #DBEAFE;
  padding: 4px 11px;
  border-radius: 999px;
}

.gp-page-mini-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gp-mini-link {
  font-size: 12px;
  font-weight: 700;
  color: #1D4ED8;
  text-decoration: none;
}

.gp-mini-link:hover {
  text-decoration: underline;
}

.gp-mini-del-btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #FECACA;
  background: #FEF2F2;
  color: #B91C1C;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

/* Exact Landscape A4 Sheet with Double Dark Navy Frame */
.gp-ref-landscape-sheet {
  background: #FFFFFF;
  padding: 18px;
  border-radius: 4px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.12);
}

.gp-ref-double-border {
  border: 5px double #1F3864;
  padding: 24px 34px 28px 34px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

@media (max-width: 760px) {
  .gp-ref-double-border {
    padding: 14px 16px;
    min-height: auto;
  }
}

.gp-ref-cover-heading {
  text-align: center;
  margin-bottom: 18px;
  font-family: Calibri, 'Segoe UI', 'Outfit', sans-serif;
}

.gp-ref-cover-title {
  font-size: 26px;
  font-weight: 700;
  color: #4472C4;
  line-height: 1.25;
}

.gp-ref-cover-date {
  font-size: 19px;
  font-weight: 700;
  color: #4472C4;
  margin-top: 6px;
}

.gp-ref-pub-meta {
  font-family: 'Times New Roman', Times, Georgia, serif;
  margin-bottom: 16px;
}

.gp-ref-pub-name {
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  line-height: 1.3;
}

.gp-ref-pub-link {
  font-size: 16.5px;
  font-weight: 700;
  color: #000000;
  word-break: break-all;
  line-height: 1.35;
}

.gp-ref-pub-link a {
  color: #0535C9;
  text-decoration: underline;
}

.gp-ref-clipping-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.gp-ref-uploaded-clip img {
  max-width: 100%;
  max-height: 440px;
  border: 1px solid #27272A;
  padding: 6px;
  background: #FFFEFC;
}

.gp-ref-newspaper-cutout {
  width: min(740px, 100%);
  background: #FDFDFB;
  border: 1px solid #27272A;
  padding: 16px 20px 14px 20px;
  font-family: Georgia, 'Times New Roman', 'Noto Serif Devanagari', serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.gp-ref-newspaper-cutout.is-hindi {
  font-family: 'Noto Sans Devanagari', Georgia, serif;
}

.gp-cutout-headline {
  margin: 0 0 10px 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  color: #111111;
  border-bottom: 1px solid #D4D4D8;
  padding-bottom: 8px;
}

.gp-cutout-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 760px) {
  .gp-cutout-grid {
    grid-template-columns: 1fr;
  }
}

.gp-cutout-cols {
  column-count: 2;
  column-gap: 14px;
  column-rule: 1px solid #E4E4E7;
}

@media (max-width: 620px) {
  .gp-cutout-cols {
    column-count: 1;
  }
}

.gp-cutout-byline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid #27272A;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: #18181B;
}

.gp-red-sq {
  color: #B91C1C;
}

.gp-cutout-cols p {
  margin: 0 0 8px 0;
  font-size: 12.2px;
  line-height: 1.38;
  text-align: justify;
  color: #18181B;
}

.gp-cutout-signal {
  border-top: 2.5px solid #991B1B;
  border-bottom: 1.5px solid #27272A;
  background: #FAF9F5;
  padding: 10px 12px;
  font-family: 'Outfit', 'Noto Sans Devanagari', sans-serif;
}

.gp-signal-kicker {
  font-size: 12.5px;
  font-weight: 800;
  color: #991B1B;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.gp-signal-photo {
  width: 100%;
  max-height: 135px;
  object-fit: cover;
  display: block;
  margin-bottom: 8px;
  border: 1px solid #CBD5E1;
}

.gp-signal-point {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.38;
  color: #111827;
}

.gp-cutout-bottom-rule {
  margin-top: 10px;
  border-bottom: 2px solid #111111;
}

/* Custom Clipping Modal */
.gp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 10080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.gp-modal-card {
  width: min(640px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.gp-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.gp-modal-head h3 {
  margin: 0 0 4px 0;
  font-size: 18px;
  color: #0F172A;
}

.gp-modal-head p {
  margin: 0;
  font-size: 12.5px;
  color: #64748B;
}

.gp-modal-close {
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: 800;
}

.gp-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gp-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.gp-upload-ok {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #15803D;
}

.gp-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO SI — MULTI-PLATFORM VIDEO INTELLIGENCE STUDIO (YT • FB • IG • X)
   ═══════════════════════════════════════════════════════════════════════════ */

.vsi-platform-selector-wrap {
  margin: 14px 0 12px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1.5px solid #DBEAFE;
}

.vsi-platform-selector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}

.vsi-step-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #1E40AF;
  text-transform: uppercase;
}

.vsi-detect-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
}

.vsi-detect-badge.detected {
  background: #ECFDF5;
  border-color: #6EE7B7;
  color: #065F46;
}

.vsi-detect-badge.detected.plat-youtube {
  background: #FEF2F2;
  border-color: #FCA5A5;
  color: #991B1B;
}

.vsi-detect-badge.detected.plat-facebook {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1E40AF;
}

.vsi-detect-badge.detected.plat-instagram {
  background: #FDF2F8;
  border-color: #F9A8D4;
  color: #9D174D;
}

.vsi-detect-badge.detected.plat-x {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

.vsi-detect-badge.warn {
  background: #FFFBEB;
  border-color: #FCD34D;
  color: #92400E;
}

.vsi-platform-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1120px) {
  .vsi-platform-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .vsi-platform-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

.vsi-plat-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}

.vsi-plat-tab:hover {
  border-color: var(--plat-col, #2563EB);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.07);
}

.vsi-plat-tab.active {
  border-color: var(--plat-col, #2563EB);
  background: var(--plat-bg, #EFF6FF);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.09), inset 0 0 0 1px var(--plat-col, #2563EB);
}

.vsi-plat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  background: #F1F5F9;
  color: #0F172A;
  flex-shrink: 0;
}

.vsi-plat-tab.active .vsi-plat-icon {
  background: var(--plat-col, #2563EB);
  color: #FFFFFF;
}

.vsi-plat-tab.plat-instagram.active .vsi-plat-icon {
  background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF);
  color: #FFFFFF;
}

.vsi-plat-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vsi-plat-txt strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.vsi-plat-txt small {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.vsi-url-box {
  border-color: #BFDBFE;
  background: #FFFFFF;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.vsi-url-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.vsi-context-toggle-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.2px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.vsi-context-toggle-btn:hover,
.vsi-context-toggle-btn.active {
  border-color: #2563EB;
  background: #EFF6FF;
  color: #1D4ED8;
}

.vsi-accepted-formats {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.vsi-fmt-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
}

.vsi-fmt-pill {
  padding: 2.5px 8px;
  border-radius: 6px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
}

.vsi-context-drawer {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #F8FAFC;
  border: 1.5px dashed #93C5FD;
}

.vsi-context-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.vsi-context-drawer-head strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 3px;
}

.vsi-context-drawer-head p {
  margin: 0;
  font-size: 12px;
  color: #475569;
  max-width: 780px;
  line-height: 1.45;
}

.vsi-context-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.vsi-ctx-field.vsi-ctx-wide {
  grid-column: span 4;
}

.vsi-ctx-field:nth-child(2) {
  grid-column: span 2;
}

@media (max-width: 980px) {
  .vsi-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vsi-ctx-field.vsi-ctx-wide,
  .vsi-ctx-field:nth-child(2) {
    grid-column: span 2;
  }
}

.vsi-ctx-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.vsi-ctx-field .cos-input {
  padding: 8px 10px;
  font-size: 12.5px;
}

.vsi-sample-chip.plat-youtube { border-color: #FCA5A5; background: #FEF2F2; color: #991B1B; }
.vsi-sample-chip.plat-facebook { border-color: #93C5FD; background: #EFF6FF; color: #1E40AF; }
.vsi-sample-chip.plat-instagram { border-color: #F9A8D4; background: #FDF2F8; color: #9D174D; }
.vsi-sample-chip.plat-x { border-color: #94A3B8; background: #F1F5F9; color: #0F172A; }

.vsi-hero-plat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  color: #FFFFFF;
  background: #2563EB;
}

.vsi-hero-plat-pill.plat-youtube { background: #DC2626; }
.vsi-hero-plat-pill.plat-facebook { background: #1877F2; }
.vsi-hero-plat-pill.plat-instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.vsi-hero-plat-pill.plat-x { background: #0F172A; }

/* Platform Algorithm & Viral Distribution Scorecard */
.vsi-platform-scorecard {
  border-top: 3.5px solid var(--vsi-accent, #2563EB);
}

.vsi-surfaces-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vsi-surface-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  font-size: 11px;
  font-weight: 700;
}

.vsi-native-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .vsi-native-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.vsi-native-kpi-card {
  padding: 12px 14px;
  border-radius: 13px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.vsi-nk-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
}

.vsi-nk-val {
  font-size: 19px;
  font-weight: 900;
  color: #0F172A;
}

.vsi-nk-sub {
  font-size: 11px;
  font-weight: 600;
  color: #2563EB;
}

.vsi-signals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 860px) {
  .vsi-signals-grid {
    grid-template-columns: 1fr;
  }
}

.vsi-signal-card {
  padding: 13px 15px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
}

.vsi-sig-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.vsi-sig-head strong {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
}

.vsi-sig-score {
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.vsi-sig-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vsi-sig-note {
  margin: 6px 0 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}


/* =========================================================================
   VIDEOS SI — 6-STAGE FUNCTIONAL SEGMENTATION & ACTIONABLE INSIGHTS PANEL
   ========================================================================= */

.vsi-segmentation-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vsi-stage-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.vsi-stage-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vsi-stage-pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.vsi-stage-pill:hover {
  border-color: #2563EB;
  color: #1D4ED8;
  background: #EFF6FF;
}

.vsi-stage-pill.active {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  border-color: #1D4ED8;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
}

.vsi-short-scale-badge {
  font-size: 11.5px;
  font-weight: 800;
  color: #475569;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 4px 10px;
  border-radius: 999px;
}

.vsi-stage-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 12px;
}

.vsi-stage-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #3B82F6;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.vsi-stage-card.vsi-stage-card-wide {
  grid-column: 1 / -1;
}

.vsi-stage-card.stage-hook { border-left-color: #EF4444; }
.vsi-stage-card.stage-setup { border-left-color: #F59E0B; }
.vsi-stage-card.stage-body { border-left-color: #2563EB; }
.vsi-stage-card.stage-interrupts { border-left-color: #0EA5E9; }
.vsi-stage-card.stage-peaks { border-left-color: #F59E0B; }
.vsi-stage-card.stage-outro { border-left-color: #8B5CF6; }

.vsi-stage-card.is-alert {
  background: linear-gradient(180deg, #FFFDF9 0%, #FFFFFF 100%);
}

.vsi-stage-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.vsi-stage-num {
  font-size: 12.5px;
  font-weight: 900;
  color: #0F172A;
}

.vsi-ts-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.vsi-ts-chip:hover {
  background: #DBEAFE;
}

.vsi-stage-metric-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #334155;
}

.vsi-stage-metric-line strong {
  font-size: 15px;
  font-weight: 900;
  color: #0F172A;
}

.vsi-stage-sub {
  font-size: 11.8px;
  color: #475569;
  line-height: 1.4;
}

.vsi-chapter-mini-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.vsi-chapter-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}

.vsi-chapter-mini-row.cls-winning {
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.vsi-chapter-mini-row.cls-dipping {
  background: #FFF7ED;
  border-color: #FED7AA;
}

.vsi-ch-title-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.vsi-ch-title-col strong {
  font-size: 12.2px;
  font-weight: 800;
  color: #0F172A;
}

.vsi-ch-stats-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  white-space: nowrap;
}

.vsi-ch-hold {
  font-size: 12px;
  font-weight: 900;
  color: #0F172A;
}

.vsi-ch-delta {
  font-size: 10.8px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: #E2E8F0;
  color: #334155;
}

.vsi-ch-delta.winning {
  background: #D1FAE5;
  color: #047857;
}

.vsi-ch-delta.dipping {
  background: #FFEDD5;
  color: #C2410C;
}

.vsi-mini-tag-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vsi-intr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  font-size: 11.8px;
  color: #1E293B;
  text-decoration: none;
  flex-wrap: wrap;
}

.vsi-intr-row:hover {
  border-color: #93C5FD;
  background: #EFF6FF;
}

.vsi-intr-row em {
  font-style: normal;
  font-weight: 800;
  font-size: 11px;
  color: #0369A1;
}

.vsi-intr-row.outcome-spiked em {
  color: #047857;
}

.vsi-intr-row.outcome-dropped em {
  color: #C2410C;
}

/* Actionable Insights Panel */
.vsi-insights-panel {
  border: 1.5px solid #BFDBFE;
  background: linear-gradient(180deg, #F8FBFF 0%, #FFFFFF 38%);
}

.vsi-insights-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.vsi-insights-subtitle {
  margin: 5px 0 0 0;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
}

.vsi-export-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vsi-insights-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1.5px solid #E2E8F0;
  padding-bottom: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.vsi-insights-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.vsi-insights-tab-btn:hover {
  border-color: #2563EB;
  color: #1D4ED8;
}

.vsi-insights-tab-btn.active {
  background: linear-gradient(135deg, #1E40AF, #2563EB);
  border-color: #1E40AF;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.vsi-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.08);
}

.vsi-insights-tab-btn.active .vsi-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.vsi-reedit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vsi-reedit-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #2563EB;
  transition: opacity 0.16s ease, background 0.16s ease;
}

.vsi-reedit-card.prio-border-high { border-left-color: #DC2626; }
.vsi-reedit-card.prio-border-medium { border-left-color: #D97706; }
.vsi-reedit-card.prio-border-low { border-left-color: #10B981; }

.vsi-reedit-card.is-checked {
  opacity: 0.68;
  background: #F8FAFC;
}

.vsi-reedit-card.is-checked .vsi-reedit-action {
  text-decoration: line-through;
}

.vsi-reedit-check-wrap {
  padding-top: 2px;
  cursor: pointer;
}

.vsi-reedit-check-wrap input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #2563EB;
  cursor: pointer;
}

.vsi-reedit-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vsi-reedit-meta-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.vsi-prio-pill {
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.vsi-prio-pill.prio-high {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

.vsi-prio-pill.prio-medium {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.vsi-prio-pill.prio-low {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.vsi-cat-pill {
  font-size: 11.5px;
  font-weight: 800;
  color: #0F172A;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 6px;
}

.vsi-stage-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
}

.vsi-ts-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #EFF6FF;
  border: 1px solid #93C5FD;
  color: #1D4ED8;
  font-size: 11.5px;
  font-weight: 900;
  text-decoration: none;
}

.vsi-ts-jump-link:hover {
  background: #DBEAFE;
}

.vsi-trigger-chip {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 2px 8px;
  border-radius: 999px;
}

.vsi-reedit-action {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.5;
}

.vsi-reedit-impact {
  font-size: 11.8px;
  color: #047857;
}

/* Next Video Strategy Blueprint */
.vsi-blueprint-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vsi-blueprint-banner {
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #EFF6FF, #F0FDF4);
  border: 1px solid #BFDBFE;
  font-size: 12.8px;
  color: #1E293B;
  line-height: 1.45;
}

.vsi-blueprint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.vsi-blueprint-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.vsi-blueprint-card h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 900;
  color: #0F172A;
}

.vsi-bp-summary {
  margin: 0;
  font-size: 12.3px;
  color: #334155;
  line-height: 1.45;
}

.vsi-bp-bullets {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: #1E293B;
  line-height: 1.45;
}

.vsi-winning-topics-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.vsi-wt-label {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
}

.vsi-wt-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}


/* =========================================================================
   VIDEOS SI — MODULE 12: ROLE-BASED PRODUCTION & GROWTH TEAM ADVISORIES
   (Video Director • Producer • Video Editor • SEO / SMO Specialist)
   ========================================================================= */

.vsi-team-advisory-section {
  border: 1.5px solid #C7D2FE;
  background: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 34%);
}

.vsi-team-top-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.vsi-team-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1.5px solid #E2E8F0;
}

.vsi-track-pill.active {
  background: linear-gradient(135deg, #0F766E, #0D9488);
  border-color: #0F766E;
}

.vsi-team-roles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vsi-team-roles-grid.single-role-focus {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 980px) {
  .vsi-team-roles-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vsi-role-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-top: 4px solid var(--role-accent, #2563EB);
  border-radius: 14px;
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}

.vsi-role-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vsi-role-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.vsi-role-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.vsi-role-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vsi-role-name-row h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #0F172A;
}

.vsi-role-dept {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748B;
}

.vsi-role-telemetry-pill {
  font-size: 11.5px;
  font-weight: 800;
  color: #1E293B;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 6px 10px;
}

.vsi-role-directive {
  margin: 0;
  font-size: 12.6px;
  font-weight: 600;
  color: #334155;
  line-height: 1.48;
  padding: 8px 11px;
  border-radius: 9px;
  background: #EFF6FF;
  border-left: 3px solid var(--role-accent, #2563EB);
}

.vsi-role-track-box {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #FAFCFF;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vsi-role-track-box.track-next {
  background: #F8FDFB;
  border-color: #D1FAE5;
}

.vsi-role-track-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  color: #0F172A;
}

.vsi-role-track-head small {
  font-size: 11px;
  font-weight: 800;
  color: #64748B;
}

.vsi-role-task-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.vsi-role-task-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.vsi-role-task-item:hover {
  border-color: #93C5FD;
}

.vsi-role-task-item input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: #2563EB;
  cursor: pointer;
  flex-shrink: 0;
}

.vsi-role-task-item.is-checked {
  opacity: 0.65;
  background: #F8FAFC;
}

.vsi-role-task-item.is-checked .vsi-role-task-text span {
  text-decoration: line-through;
}

.vsi-role-task-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vsi-role-task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.vsi-role-task-top strong {
  font-size: 12.2px;
  font-weight: 800;
  color: #0F172A;
}

.vsi-role-task-text span {
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
}


/* =========================================================================
   VIDEOS SI — WORLD-CLASS MULTI-STAGE VIDEO PRODUCTION CHECKLIST
   Distinct Color Notation: Completed (Emerald Green) vs Missed (Crimson Red)
   ========================================================================= */

.vsi-wc-checklist-section {
  border: 1.5px solid #CBD5E1;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 28%);
}

.vsi-wc-top-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.vsi-wc-grade-badge {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.vsi-wc-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vsi-wc-legend {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.vsi-wc-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
}

.vsi-wc-legend-chip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.vsi-wc-legend-chip.completed {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #86EFAC;
}
.vsi-wc-legend-chip.completed .dot {
  background: #16A34A;
}

.vsi-wc-legend-chip.missed {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}
.vsi-wc-legend-chip.missed .dot {
  background: #DC2626;
}

.vsi-wc-legend-chip.resolved {
  background: #E0F2FE;
  color: #075985;
  border: 1px solid #7DD3FC;
}
.vsi-wc-legend-chip.resolved .dot {
  background: #0284C7;
}

/* Segmented Readiness Progress Bar */
.vsi-wc-scoreboard {
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vsi-wc-score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.4px;
  color: #334155;
}

.vsi-wc-segmented-bar {
  width: 100%;
  height: 13px;
  border-radius: 999px;
  background: #F1F5F9;
  overflow: hidden;
  display: flex;
  border: 1px solid #CBD5E1;
}

.vsi-wc-segmented-bar .seg-completed {
  background: linear-gradient(90deg, #16A34A, #10B981);
  height: 100%;
  transition: width 0.25s ease;
}

.vsi-wc-segmented-bar .seg-resolved {
  background: linear-gradient(90deg, #0284C7, #38BDF8);
  height: 100%;
  transition: width 0.25s ease;
}

.vsi-wc-segmented-bar .seg-missed {
  background: linear-gradient(90deg, #EF4444, #DC2626);
  height: 100%;
  transition: width 0.25s ease;
}

/* Filter Bar */
.vsi-wc-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1.5px solid #E2E8F0;
}

.vsi-wc-status-pills {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.vsi-wc-status-pill {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s ease;
}

.vsi-wc-status-pill.pill-all.active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

.vsi-wc-status-pill.pill-completed {
  border-color: #86EFAC;
  color: #166534;
  background: #F0FDF4;
}
.vsi-wc-status-pill.pill-completed.active {
  background: #16A34A;
  border-color: #15803D;
  color: #FFFFFF;
}

.vsi-wc-status-pill.pill-missed {
  border-color: #FCA5A5;
  color: #991B1B;
  background: #FEF2F2;
}
.vsi-wc-status-pill.pill-missed.active {
  background: #DC2626;
  border-color: #B91C1C;
  color: #FFFFFF;
}

.vsi-wc-status-pill.pill-resolved {
  border-color: #7DD3FC;
  color: #075985;
  background: #F0F9FF;
}
.vsi-wc-status-pill.pill-resolved.active {
  background: #0284C7;
  border-color: #0369A1;
  color: #FFFFFF;
}

/* Stage Blocks & Color-Coded Activity Cards */
.vsi-wc-stages-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vsi-wc-stage-block {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-top: 4px solid var(--wc-stage-accent, #2563EB);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.vsi-wc-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
}

.vsi-wc-stage-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vsi-wc-stage-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.vsi-wc-stage-title-group h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 900;
  color: #0F172A;
}

.vsi-wc-stage-title-group small {
  font-size: 11.5px;
  color: #64748B;
}

.vsi-wc-stage-counters {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vsi-wc-cnt-pill {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.vsi-wc-cnt-pill.completed {
  background: #DCFCE7;
  color: #166534;
}

.vsi-wc-cnt-pill.missed {
  background: #FEE2E2;
  color: #991B1B;
}

.vsi-wc-cnt-pill.zero-missed {
  background: #ECFDF5;
  color: #047857;
}

.vsi-wc-cnt-pill.resolved {
  background: #E0F2FE;
  color: #075985;
}

.vsi-wc-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 11px;
}

.vsi-wc-item {
  border-radius: 11px;
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

/* 🟢 COMPLETED COLOR NOTATION */
.vsi-wc-item.is-completed {
  background: linear-gradient(180deg, #ECFDF5 0%, #F7FEE7 100%);
  border: 1.5px solid #86EFAC;
  border-left: 5px solid #16A34A;
}

/* 🔴 MISSED COLOR NOTATION */
.vsi-wc-item.is-missed {
  background: linear-gradient(180deg, #FEF2F2 0%, #FFF7ED 100%);
  border: 1.5px solid #FCA5A5;
  border-left: 5px solid #DC2626;
}

/* 🔵 TEAM RESOLVED COLOR NOTATION */
.vsi-wc-item.is-team-resolved {
  background: linear-gradient(180deg, #F0F9FF 0%, #FFFFFF 100%);
  border: 1.5px solid #7DD3FC;
  border-left: 5px solid #0284C7;
}

.vsi-wc-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.vsi-wc-status-tag-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vsi-wc-badge {
  padding: 2.5px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.35px;
}

.vsi-wc-badge.badge-completed {
  background: #16A34A;
  color: #FFFFFF;
}

.vsi-wc-badge.badge-missed {
  background: #DC2626;
  color: #FFFFFF;
}

.vsi-wc-badge.badge-resolved {
  background: #0284C7;
  color: #FFFFFF;
}

.vsi-wc-verified-seal {
  font-size: 11px;
  font-weight: 900;
  color: #15803D;
}

.vsi-wc-resolve-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #CBD5E1;
  padding: 2px 8px;
  border-radius: 999px;
  cursor: pointer;
}

.vsi-wc-resolve-toggle input {
  width: 13.5px;
  height: 13.5px;
  accent-color: #0284C7;
  cursor: pointer;
}

.vsi-wc-activity-title {
  font-size: 13px;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.38;
}

.vsi-wc-standard {
  font-size: 11.3px;
  color: #475569;
  line-height: 1.38;
}

.vsi-wc-evidence-line {
  font-size: 11.8px;
  line-height: 1.42;
  padding-top: 2px;
}

.vsi-wc-item.is-completed .vsi-wc-evidence-line {
  color: #14532D;
}

.vsi-wc-item.is-missed .vsi-wc-evidence-line {
  color: #991B1B;
}

.vsi-wc-item.is-team-resolved .vsi-wc-evidence-line {
  color: #0C4A6E;
}

.vsi-wc-fix-box {
  margin-top: 3px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed #F87171;
  font-size: 11.7px;
  color: #1E293B;
  line-height: 1.44;
}

.vsi-wc-item.is-team-resolved .vsi-wc-fix-box {
  border-color: #38BDF8;
}


/* Top Auto-Audit Summary Ribbon & Detailed Color PDF Export Button */
.vsi-top-auto-ribbon {
  margin: 12px 0 14px 0;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #EFF6FF 0%, #ECFDF5 52%, #FFF7ED 100%);
  border: 1.5px solid #93C5FD;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.vsi-tar-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 280px;
}

.vsi-tar-headline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #0F172A;
}

.vsi-autocheck-pulse-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1E40AF, #2563EB);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.vsi-tar-stage-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.vsi-tar-stage-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.3px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.vsi-tar-stage-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

.vsi-tar-stage-chip.stage-pass {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #14532D;
}

.vsi-tar-stage-chip.stage-mid {
  background: #FEF9C3;
  border-color: #FDE047;
  color: #713F12;
}

.vsi-tar-stage-chip.stage-gap {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #7F1D1D;
}

.vsi-tar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vsi-pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: #FFFFFF;
  font-size: 12.2px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.vsi-pdf-download-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.35);
}

.vsi-pdf-download-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.vsi-pdf-download-btn.vsi-pdf-btn-lg {
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 13px;
}

.vsi-wc-autochecked-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #14532D;
  font-size: 11px;
  font-weight: 900;
}

.vsi-wc-autochecked-pill input[type="checkbox"] {
  width: 13.5px;
  height: 13.5px;
  accent-color: #16A34A;
  margin: 0;
}

/* Full Video Intelligence Report button (teal variant) */
.vsi-pdf-download-btn.vsi-full-report-btn {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  border-color: #0f766e;
  color: #ffffff;
}
.vsi-pdf-download-btn.vsi-full-report-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #115e59 0%, #0f766e 100%);
}

/* ==========================================================================
   VIDEOS SI — UPLOAD & ANALYZE VIDEO STUDIO + SHORTS/REELS TIMINGS & IMPROVEMENTS
   ========================================================================== */
.vsi-mode-switcher {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 14px 0 16px;
}
.vsi-mode-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 14px;
  border: 2px solid #CBD5E1;
  background: #F8FAFC;
  color: #0F172A;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s ease;
}
.vsi-mode-tab:hover {
  border-color: #60A5FA;
  background: #FFFFFF;
}
.vsi-mode-tab.active {
  border-color: #2563EB;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.14);
}
.vsi-mode-ic {
  font-size: 24px;
  line-height: 1;
}
.vsi-mode-tab strong {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  color: #0F172A;
}
.vsi-mode-tab small {
  display: block;
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}

.vsi-demo-upload-btn {
  background: #ECFDF5 !important;
  border: 1.5px solid #34D399 !important;
  color: #065F46 !important;
  font-weight: 800 !important;
}
.vsi-upload-dropzone {
  margin-top: 10px;
  border: 2px dashed #93C5FD;
  border-radius: 14px;
  background: #F8FAFF;
  padding: 20px;
  transition: all 0.18s ease;
}
.vsi-upload-dropzone.drag-active {
  border-color: #2563EB;
  background: #DBEAFE;
}
.vsi-upload-dropzone.has-file {
  border-style: solid;
  border-color: #BFDBFE;
  background: #FFFFFF;
}
.vsi-upload-empty-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
  padding: 10px;
  text-align: left;
}
.vsi-up-big-ic {
  font-size: 38px;
  background: #DBEAFE;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vsi-upload-empty-prompt strong {
  font-size: 15px;
  color: #0F172A;
}
.vsi-up-link {
  color: #2563EB;
  text-decoration: underline;
}
.vsi-upload-empty-prompt p {
  margin: 5px 0 0;
  font-size: 12.8px;
  color: #475569;
}
.vsi-upload-selected-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.vsi-upload-mini-vid {
  width: 220px;
  max-height: 132px;
  border-radius: 10px;
  object-fit: cover;
  background: #0F172A;
  border: 1px solid #CBD5E1;
}
.vsi-upload-file-meta {
  flex: 1;
  min-width: 240px;
}
.vsi-up-name {
  font-size: 15px;
  color: #0F172A;
  margin-bottom: 8px;
}
.vsi-up-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.vsi-up-change-btns {
  display: flex;
  gap: 8px;
}
.vsi-upload-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.vsi-ctx-field.vsi-ctx-full {
  grid-column: 1 / -1;
}
.vsi-srt-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.vsi-up-textarea {
  min-height: 62px;
  resize: vertical;
  font-family: inherit;
}
.vsi-upload-cta-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.vsi-upload-cta-row .vsi-analyze-btn {
  flex: 1;
}

/* Results: Studio Player + Keyframes + Shorts/Reels Cut Cards + Schedule + Improvements */
.vsi-studio-player-deck {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}
.vsi-studio-video-el {
  width: 100%;
  max-height: 330px;
  border-radius: 12px;
  background: #0F172A;
  display: block;
}
.vsi-clip-audition-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 8px 12px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  font-size: 12.5px;
}
.vsi-clip-bar-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vsi-loop-toggle {
  font-size: 12px;
  font-weight: 700;
  color: #1E3A8A;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.vsi-kf-head {
  font-size: 12.5px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 8px;
}
.vsi-keyframe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.vsi-keyframe-grid.vsi-kf-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}
.vsi-keyframe-strip-only {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}
.vsi-kf-card {
  position: relative;
  border: 1px solid #CBD5E1;
  border-radius: 9px;
  background: #FFFFFF;
  padding: 4px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.vsi-kf-card:hover {
  transform: translateY(-2px);
  border-color: #2563EB;
}
.vsi-kf-card img {
  width: 100%;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.vsi-kf-card small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #334155;
  margin-top: 4px;
  line-height: 1.25;
}
.vsi-kf-best {
  position: absolute;
  top: 7px;
  left: 7px;
  background: #16A34A;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 999px;
}

.vsi-clip-timeline-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.vsi-clip-tl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.8px;
  margin-bottom: 10px;
}
.vsi-clip-tl-head small {
  color: #475569;
}
.vsi-clip-tl-track {
  position: relative;
  height: 32px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}
.vsi-clip-tl-seg {
  position: absolute;
  top: 3px;
  height: 26px;
  border: none;
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
}

.vsi-shorts-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.vsi-short-cut-card {
  border: 1.5px solid #DBEAFE;
  border-top: 4px solid #0D9488;
  border-radius: 14px;
  padding: 14px 16px;
  background: #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.vsi-short-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.vsi-short-rank-badge {
  font-size: 12px;
  font-weight: 900;
  color: #0F172A;
  background: #F1F5F9;
  padding: 3px 10px;
  border-radius: 999px;
}
.vsi-short-score-pill {
  font-size: 12px;
  font-weight: 900;
  color: #065F46;
  background: #DCFCE7;
  padding: 3px 10px;
  border-radius: 999px;
}
.vsi-short-media-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.vsi-short-thumb {
  width: 118px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  flex-shrink: 0;
}
.vsi-short-time-big {
  font-size: 16px;
  font-weight: 900;
  color: #1D4ED8;
}
.vsi-short-dur-tag {
  font-size: 11.5px;
  background: #DBEAFE;
  color: #1E40AF;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
}
.vsi-short-plats {
  font-size: 11.5px;
  color: #64748B;
  font-weight: 700;
  margin: 2px 0 4px;
}
.vsi-short-overlay-chip {
  font-size: 12px;
  background: #FEF3C7;
  color: #92400E;
  padding: 3px 9px;
  border-radius: 7px;
  display: inline-block;
}
.vsi-short-title-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.vsi-short-title-box small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #64748B;
  margin-bottom: 3px;
}
.vsi-short-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
}
.vsi-short-why, .vsi-short-crop {
  font-size: 12.4px;
  color: #334155;
  margin: 5px 0;
  line-height: 1.45;
}
.vsi-short-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.vsi-audition-clip-btn {
  border: none;
  border-radius: 9px;
  padding: 7px 13px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.vsi-schedule-panel {
  background: #F8FAFF;
  border: 1px solid #DBEAFE;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.vsi-schedule-head h4, .vsi-improvements-head h4 {
  margin: 0 0 4px;
  font-size: 15.5px;
  color: #0F172A;
}
.vsi-schedule-head p, .vsi-improvements-head p {
  margin: 0 0 12px;
  font-size: 12.8px;
  color: #475569;
}
.vsi-schedule-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.vsi-sched-slot-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 11px;
  padding: 10px 12px;
}
.vsi-sched-slot-card.is-prime {
  border: 2px solid #F59E0B;
  background: #FFFBEB;
}
.vsi-sched-lbl {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: #475569;
}
.vsi-sched-time {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: #0F172A;
  margin: 3px 0;
}
.vsi-sched-asset {
  display: block;
  font-size: 11.8px;
  font-weight: 700;
  color: #1D4ED8;
}
.vsi-sched-lift {
  display: inline-block;
  margin: 4px 0;
  font-size: 11px;
  font-weight: 900;
  background: #DCFCE7;
  color: #166534;
  padding: 2px 7px;
  border-radius: 999px;
}
.vsi-sched-slot-card small {
  display: block;
  font-size: 11.2px;
  color: #64748B;
  line-height: 1.35;
}
.vsi-rollout-strip {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-left: 4px solid #2563EB;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
}
.vsi-rollout-strip ol {
  margin: 6px 0 0;
  padding-left: 18px;
}

.vsi-improvements-panel {
  border-top: 1px solid #E2E8F0;
  padding-top: 14px;
}
.vsi-improvements-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.vsi-tech-telemetry-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.vsi-tech-chip {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 10px;
}
.vsi-tech-chip span {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
}
.vsi-tech-chip strong {
  font-size: 12.5px;
  color: #0F172A;
}
.vsi-improve-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.vsi-improve-card {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #E2E8F0;
  border-left: 5px solid #2563EB;
  background: #FFFFFF;
  font-size: 12.6px;
}
.vsi-improve-card.prio-high {
  background: #FEF2F2;
  border-color: #FCA5A5;
  border-left-color: #DC2626;
}
.vsi-improve-card.prio-medium {
  background: #FFFBEB;
  border-color: #FDE68A;
  border-left-color: #D97706;
}
.vsi-improve-card.prio-opportunity {
  background: #F0FDF4;
  border-color: #86EFAC;
  border-left-color: #16A34A;
}
.vsi-improve-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.vsi-imp-prio {
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}
.vsi-imp-ts-pill {
  margin-left: auto;
  border: 1px solid #BFDBFE;
  background: #EFF6FF;
  color: #1D4ED8;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 9px;
  cursor: pointer;
}
.vsi-imp-finding, .vsi-imp-fix {
  margin: 4px 0;
  color: #1E293B;
  line-height: 1.42;
}
.vsi-imp-lift {
  display: inline-block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 800;
  color: #065F46;
}

@media (max-width: 960px) {
  .vsi-mode-switcher,
  .vsi-studio-player-deck,
  .vsi-shorts-cards-grid,
  .vsi-improve-cards-grid,
  .vsi-schedule-slots-grid {
    grid-template-columns: 1fr;
  }
  .vsi-upload-meta-grid,
  .vsi-tech-telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Translate SI — "For Kids" vs "Other" Audience Selector & Kids Script Output
   ═══════════════════════════════════════════════════════════════════════════ */

.trn-util-kids-sample {
  background: #FFFBEB !important;
  border-color: #F59E0B !important;
  color: #92400E !important;
  font-weight: 700 !important;
}
.trn-util-kids-sample:hover {
  background: #FEF3C7 !important;
}

.trn-audience-mode-box {
  background: linear-gradient(135deg, #F8FAFC 0%, #FFFBEB 100%);
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.trn-audience-mode-head {
  margin-bottom: 12px;
}

.trn-audience-mode-title {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.trn-audience-active-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
}
.trn-audience-active-pill.is-kids {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #F59E0B;
}
.trn-audience-active-pill.is-other {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #93C5FD;
}

.trn-audience-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.trn-audience-card {
  text-align: left;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: inherit;
  color: #0F172A;
}
.trn-audience-card:hover {
  border-color: #64748B;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.trn-audience-card.active[data-audience-mode="kids"] {
  background: #FFFDF5;
  border-color: #D97706;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
.trn-audience-card.active[data-audience-mode="other"] {
  background: #F8FAFF;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.trn-audience-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.trn-audience-icon {
  font-size: 24px;
  line-height: 1;
}
.trn-audience-card-top strong {
  display: block;
  font-size: 15.5px;
  font-weight: 800;
  color: #0F172A;
}
.trn-audience-tag {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
}
.trn-audience-radio {
  margin-left: auto;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: #F1F5F9;
  color: #334155;
}
.trn-audience-card.active[data-audience-mode="kids"] .trn-audience-radio {
  background: #F59E0B;
  color: #FFFFFF;
}
.trn-audience-card.active[data-audience-mode="other"] .trn-audience-radio {
  background: #2563EB;
  color: #FFFFFF;
}

.trn-audience-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #334155;
}
.trn-audience-card code,
.trn-kids-context-banner code {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11.5px;
  color: #0F172A;
}

.trn-kids-context-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: 12px;
}

.trn-ctx-badge.kids {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #F59E0B;
  font-weight: 800;
  white-space: nowrap;
}

.trn-kids-translate-btn {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
  color: #FFFFFF !important;
}
.trn-kids-translate-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #B45309 0%, #92400E 100%) !important;
}

/* Kids Output Document Page */
.trn-kids-document-sheet {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 24px 26px;
  margin: 14px 0 16px;
  color: #0F172A;
  line-height: 1.68;
}

.trn-kids-doc-h1 {
  font-size: 20px;
  font-weight: 900;
  color: #0F172A;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid #E2E8F0;
}

.trn-kids-doc-h2 {
  font-size: 16.5px;
  font-weight: 800;
  color: #1E293B;
  margin: 18px 0 10px;
  padding: 6px 12px;
  background: #F8FAFC;
  border-left: 4px solid #D97706;
  border-radius: 6px;
}

.trn-kids-pairs-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trn-kids-pair-row {
  padding: 8px 12px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #FFFFFF;
}
.trn-kids-pair-row.is-scene {
  background: #FFFBEB;
  border-color: #FCD34D;
}
.trn-kids-pair-row.is-moral {
  background: #ECFDF5;
  border-color: #6EE7B7;
}

.trn-kids-line {
  font-size: 14.5px;
  line-height: 1.65;
  word-break: break-word;
}
.trn-kids-line.src {
  color: #334155;
}
.trn-kids-line.tgt {
  color: #0F172A;
  font-weight: 600;
  margin-top: 2px;
}
.trn-kids-lbl {
  font-weight: 800;
  color: #0F172A;
  margin-right: 4px;
}
.trn-kids-line.tgt .trn-kids-lbl {
  color: #B45309;
}

.trn-kids-raw-pre {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 22px 24px;
  margin: 14px 0 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.8px;
  line-height: 1.72;
  color: #0F172A;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 760px;
  overflow-y: auto;
}

@media (max-width: 820px) {
  .trn-audience-mode-grid {
    grid-template-columns: 1fr;
  }
  .trn-kids-context-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* Prominent Downloadable .txt File Link Banner on Generated Kids Output */
.trn-kids-txt-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 6px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #ECFDF5 0%, #FFFBEB 100%);
  border: 1.5px solid #34D399;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.08);
}

.trn-kids-txt-file-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.trn-kids-txt-icon {
  font-size: 28px;
  line-height: 1;
  margin-top: 2px;
}

.trn-kids-txt-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.trn-kids-txt-title-row strong {
  font-size: 15.5px;
  font-weight: 900;
  color: #065F46;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.trn-kids-txt-meta-chip {
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  background: #D1FAE5;
  border: 1px solid #6EE7B7;
  border-radius: 999px;
  padding: 2px 9px;
}

.trn-kids-txt-file-info p {
  margin: 0;
  font-size: 12.8px;
  color: #1E293B;
  line-height: 1.45;
}

.trn-kids-txt-file-info code {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11.5px;
  color: #0F172A;
}

.trn-kids-txt-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.trn-kids-txt-download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none !important;
  border: 1px solid #047857;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.22);
  transition: all 0.15s ease;
  cursor: pointer;
}

.trn-kids-txt-download-link:hover {
  background: linear-gradient(135deg, #047857 0%, #065F46 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.28);
}

@media (max-width: 820px) {
  .trn-kids-txt-download-card {
    flex-direction: column;
    align-items: stretch;
  }
  .trn-kids-txt-cta-group {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}
