/* ============================================
   Blabbertree — Annotate the World
   New brand identity: indigo + emerald
   ============================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- Custom Properties --- */
:root {
  --bt-indigo: #6366f1;
  --bt-indigo-light: #818cf8;
  --bt-indigo-dark: #1e1b4b;
  --bt-indigo-deeper: #131136;
  --bt-emerald: #10b981;
  --bt-emerald-light: #34d399;
  --bt-emerald-dark: #059669;
  --bt-orange: #f97316;
  --bt-orange-light: #fb923c;
  --bt-white: #ffffff;
  --bt-bg: #fafaff;
  --bt-gray-50: #f5f5fa;
  --bt-gray-100: #eeeef5;
  --bt-gray-200: #dddde8;
  --bt-gray-400: #9292a8;
  --bt-gray-600: #5e5e76;
  --bt-gray-900: #1a1a2e;

  --font-heading: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Consolas', monospace;

  --max-width: 1100px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(99, 102, 241, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 40px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--bt-gray-900);
  background: var(--bt-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--bt-indigo);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--bt-indigo-light);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */
.site-header {
  background: var(--bt-indigo-dark);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--bt-white);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-icon {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  border-radius: 4px;
}

.logo .logo-dot {
  color: var(--bt-emerald);
}

.site-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--bt-white);
}

.nav-cta {
  background: var(--bt-indigo) !important;
  color: var(--bt-white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--bt-indigo-light) !important;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bt-white);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bt-indigo-dark);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
  }
  .site-nav.open {
    display: flex;
  }
}

/* --- Hero --- */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bt-indigo-dark) 0%, #2d2766 40%, var(--bt-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero-text {
  text-align: left;
}

.hero-text .hero-badge {
  margin-bottom: 1rem;
}

.hero-text .hero-sub {
  margin: 0 0 2rem;
}

.hero-tree {
  flex-shrink: 0;
  width: 320px;
  height: 320px;
  filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.3)) drop-shadow(0 0 80px rgba(16, 185, 129, 0.12));
}

@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    text-align: center;
  }
  .hero-text .hero-sub {
    margin: 0 auto 2rem;
  }
  .hero-tree {
    width: 180px;
    height: 180px;
  }
  .hero-actions {
    justify-content: center;
  }
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bt-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--bt-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero h1 em {
  background: linear-gradient(135deg, var(--bt-emerald), var(--bt-emerald-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--bt-indigo);
  color: var(--bt-white);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: var(--bt-indigo-light);
  color: var(--bt-white);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bt-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--bt-white);
}

/* On light backgrounds */
.demo-banner .btn-primary,
.how-it-works .btn-primary {
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 3.5rem;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-sub {
    font-size: 1.05rem;
  }
}

/* --- How It Works --- */
.how-it-works {
  padding: 5rem 0;
  background: var(--bt-white);
  border-top: 1px solid var(--bt-gray-100);
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bt-indigo);
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
  color: var(--bt-gray-900);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: background 0.2s;
}

.step:hover {
  background: var(--bt-gray-50);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--bt-indigo), #8b5cf6);
  color: var(--bt-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--bt-gray-900);
}

.step p {
  font-size: 0.92rem;
  color: var(--bt-gray-600);
  line-height: 1.65;
}

@media (max-width: 700px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* --- Use Cases / Tiers --- */
.tiers {
  padding: 5rem 0;
  background: var(--bt-bg);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tier-card {
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  transition: all 0.25s;
}

.tier-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.tier-card.featured {
  border-color: var(--bt-indigo);
  border-width: 2px;
  position: relative;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.03) 0%, var(--bt-white) 100%);
}

.tier-badge {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bt-white);
  background: var(--bt-indigo);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 1rem;
}

.tier-card:nth-child(2) .tier-badge {
  background: var(--bt-emerald);
}

.tier-card:nth-child(3) .tier-badge {
  background: var(--bt-orange);
}

.tier-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.tier-card p {
  font-size: 0.92rem;
  color: var(--bt-gray-600);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.tier-card ul {
  list-style: none;
  padding: 0;
}

.tier-card ul li {
  font-size: 0.88rem;
  padding: 0.4rem 0;
  padding-left: 1.6rem;
  position: relative;
  color: var(--bt-gray-600);
}

.tier-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bt-emerald);
}

@media (max-width: 768px) {
  .tier-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* --- The Difference --- */
.difference {
  padding: 5rem 0;
  background: var(--bt-indigo-dark);
  color: var(--bt-white);
  position: relative;
  overflow: hidden;
}

.difference::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.difference .section-label {
  color: var(--bt-emerald);
}

.difference .section-title {
  color: var(--bt-white);
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.diff-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.25s;
}

.diff-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}

.diff-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--bt-indigo-light);
}

.diff-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

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

/* --- Live Demo Banner --- */
.demo-banner {
  padding: 5rem 0;
  text-align: center;
  background: var(--bt-white);
  border-top: 1px solid var(--bt-gray-100);
}

.demo-banner-tree {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.demo-banner h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.demo-banner p {
  font-size: 1.05rem;
  color: var(--bt-gray-600);
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* --- Campaign Attribution --- */
.campaign-link {
  padding: 3rem 0;
  text-align: center;
  background: var(--bt-gray-50);
  border-top: 1px solid var(--bt-gray-100);
}

.campaign-link p {
  font-size: 0.92rem;
  color: var(--bt-gray-400);
  margin-bottom: 0.4rem;
}

.campaign-link a {
  color: var(--bt-indigo);
  font-weight: 600;
}

.rolling-words {
  font-weight: 700;
  color: var(--bt-gray-600);
  letter-spacing: -0.01em;
}

/* --- Auth Header UI --- */
.bt-auth-user {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--bt-indigo);
  margin-right: 0.5rem;
}

.bt-auth-link {
  font-size: 0.85rem;
  color: var(--bt-indigo);
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--bt-indigo);
  border-radius: var(--radius);
  transition: all 0.15s;
}

.bt-auth-link:hover {
  background: var(--bt-indigo);
  color: var(--bt-white);
}

.bt-auth-signout {
  color: var(--bt-gray-400);
  border-color: var(--bt-gray-200);
}

.bt-auth-signout:hover {
  background: var(--bt-gray-100);
  color: var(--bt-gray-600);
}

#bt-auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- Sign In Page --- */
.signin-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.signin-card {
  background: var(--bt-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
}

.signin-card h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.signin-sub {
  color: var(--bt-gray-400);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.signin-card label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--bt-gray-600);
}

.signin-card input[type="email"],
.signin-card input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.15s;
}

.signin-card input:focus {
  outline: none;
  border-color: var(--bt-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.signin-card .btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
}

.signin-error {
  display: none;
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.signin-link {
  color: var(--bt-indigo);
  text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
  background: var(--bt-indigo-dark);
  color: rgba(255, 255, 255, 0.45);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-tree {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem;
  opacity: 0.4;
  filter: brightness(2);
}

.site-footer a {
  color: var(--bt-indigo-light);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--bt-indigo-light);
}

/* --- Groves Landing Page --- */
.groves-header {
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.groves-header h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.groves-sub {
  font-size: 1rem;
  color: var(--bt-gray-600);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

.groves-body {
  padding: 0 0 4rem;
}

.groves-section {
  margin-bottom: 3rem;
}

.groves-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.groves-section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.groves-section-badge {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bt-gray-400);
  background: var(--bt-gray-100);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.groves-empty {
  color: var(--bt-gray-400);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 2rem;
  background: var(--bt-gray-50);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--bt-gray-200);
  text-align: center;
}

.grove-card--featured {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  border: 2px solid var(--bt-indigo);
}

.grove-card--featured:hover {
  border-color: var(--bt-indigo-light);
}

.grove-card-icon {
  flex-shrink: 0;
}

.grove-card-icon img {
  width: 48px;
  height: 48px;
}

.grove-card-body {
  flex: 1;
  min-width: 0;
}

.grove-card--create {
  border: 2px dashed var(--bt-gray-200);
  background: var(--bt-gray-50);
}

.grove-create-icon {
  font-size: 2rem;
  font-weight: 300;
  color: var(--bt-gray-400);
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  border: 2px dashed var(--bt-gray-200);
  margin: 0 auto 0.75rem;
}

/* --- Grove Page (Individual) --- */
.grove-header {
  padding: 1.5rem 0 1.25rem;
  background: linear-gradient(180deg, var(--bt-indigo-dark) 0%, #2d2766 100%);
  color: var(--bt-white);
}

.grove-header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.grove-header-main {
  flex: 1;
  min-width: 0;
}
.grove-header-banner {
  flex-shrink: 0;
  width: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.grove-header-banner img {
  width: 100%;
  display: block;
}
@media (max-width: 700px) {
  .grove-header-row { flex-direction: column; gap: 1.25rem; }
  .grove-header-banner { width: 100%; max-height: 140px; }
  .grove-header-banner img { object-fit: cover; height: 140px; }
}

.grove-header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.grove-header-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
}

.grove-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bt-emerald);
  margin-bottom: 0.25rem;
}

.grove-header h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.grove-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
}

.grove-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.grove-stat strong {
  color: var(--bt-white);
}

.grove-stat-sep {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.grove-body {
  padding: 2.5rem 0 4rem;
}

.grove-category {
  margin-bottom: 3rem;
}

.grove-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bt-gray-200);
}

.grove-category-header h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.grove-category-count {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--bt-indigo);
  color: var(--bt-white);
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
}

.grove-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.grove-card {
  display: block;
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

a.grove-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--bt-indigo);
}

.grove-card--coming {
  opacity: 0.5;
  cursor: default;
}

.grove-card-type {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bt-indigo);
  margin-bottom: 0.5rem;
}

.grove-card--coming .grove-card-type {
  color: var(--bt-gray-400);
}

.grove-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.grove-card p {
  font-size: 0.88rem;
  color: var(--bt-gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.grove-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
}

.grove-card-blabs {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--bt-indigo);
}

.grove-card-status {
  color: var(--bt-emerald);
  font-weight: 500;
}

.grove-card--coming .grove-card-status {
  color: var(--bt-gray-400);
}

/* Tree card with thumbnail image */
.grove-card--has-thumb {
  padding: 0;
  overflow: hidden;
}
.grove-card--has-thumb .grove-card-body {
  padding: 1rem 1.25rem 1.25rem;
}
.grove-card-thumb {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--bt-gray-100);
}
.grove-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grove-empty {
  font-size: 0.92rem;
  color: var(--bt-gray-400);
  padding: 1.5rem 0;
}

.grove-empty a {
  color: var(--bt-indigo);
  font-weight: 600;
}

/* --- Tree Viewer Page --- */
.tree-header {
  padding: 2rem 0 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.tree-back {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bt-indigo);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

.tree-back:hover {
  color: var(--bt-indigo-light);
}

.tree-doc-type {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.tree-header h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tree-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bt-gray-100);
}

.tree-section:last-child {
  border-bottom: none;
}

.tree-section--image {
  text-align: center;
  padding-bottom: 1rem;
}

.tree-article-image {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.tree-section h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bt-gray-900);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.tree-section h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bt-gray-900);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.tree-section p {
  margin-bottom: 0.75rem;
}

.tree-section ol,
.tree-section ul {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.tree-section li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

.tree-section li ul,
.tree-section li ol {
  margin-top: 0.4rem;
}

/* Bill summary grid */
.bill-summary-lead {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.bill-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.bill-summary-item {
  background: var(--bt-gray-50);
  border: 1px solid var(--bt-gray-100);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.bill-summary-item h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bt-indigo);
  margin-bottom: 0.4rem;
  margin-top: 0;
}

.bill-summary-item p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--bt-gray-600);
  margin-bottom: 0;
}

/* Leaf actions row (votes + reply) */
.bb-leaf-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.bb-leaf-actions .bb-votes {
  margin-left: 0;
}
.bb-leaf-actions .bb-reply-btn {
  margin-top: 0;
}

/* Blab count badge on highlights */
.bb-highlight-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bt-white);
  background: var(--bt-indigo);
  border-radius: 100px;
  padding: 0 4px;
  margin-left: 2px;
  vertical-align: super;
  line-height: 1;
  cursor: pointer;
  position: relative;
  top: -2px;
}

/* Voting buttons on blabs */
.bb-votes {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
}

.bb-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: 1px solid var(--bt-gray-200);
  border-radius: 100px;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bt-gray-400);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}

.bb-vote-btn:hover {
  border-color: var(--bt-gray-400);
  color: var(--bt-gray-600);
}

.bb-vote-btn--up.active {
  border-color: var(--bt-emerald);
  color: var(--bt-emerald);
  background: rgba(16, 185, 129, 0.08);
}

.bb-vote-btn--down.active {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.bb-vote-btn .bb-vote-icon {
  font-size: 0.82rem;
  line-height: 1;
}

.bb-vote-count {
  font-size: 0.7rem;
  min-width: 8px;
  text-align: center;
}

/* --- Demo Page --- */
.demo-header {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
}

.demo-header-tree {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}

.demo-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.demo-header p {
  color: var(--bt-gray-600);
  font-size: 1rem;
}

.demo-input-area {
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.demo-textarea {
  width: 100%;
  min-height: 200px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 1.25rem;
  border: 2px solid var(--bt-gray-200);
  border-radius: var(--radius-lg);
  background: var(--bt-white);
  color: var(--bt-gray-900);
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.demo-textarea:focus {
  outline: none;
  border-color: var(--bt-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.demo-textarea::placeholder {
  color: var(--bt-gray-400);
}

.demo-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  align-items: center;
}

.demo-actions .btn {
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
}

.demo-hint {
  font-size: 0.82rem;
  color: var(--bt-gray-400);
}

/* Demo document area */
.demo-document {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}

.demo-doc-content {
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  min-height: 200px;
  line-height: 1.85;
  font-size: 1.02rem;
  box-shadow: var(--shadow);
}

.demo-doc-content p {
  margin-bottom: 1rem;
}

.demo-doc-content p:last-child {
  margin-bottom: 0;
}

.demo-loading {
  text-align: center;
  padding: 2rem;
  color: var(--bt-indigo);
  font-family: var(--font-heading);
  font-weight: 600;
}

.demo-loading p::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--bt-gray-200);
  border-top-color: var(--bt-indigo);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}

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

.demo-source {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--bt-gray-600);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--bt-gray-200);
}

.demo-doc-empty {
  color: var(--bt-gray-400);
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1rem;
}

/* --- Blabbertree Intro Box --- */
.tree-intro {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.bb-intro {
  background: var(--bt-gray-50);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  text-align: center;
}

.bb-intro-badge {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.08);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.bb-intro-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bb-intro-text {
  font-size: 0.9rem;
  color: var(--bt-gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.bb-intro-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bt-gray-900);
}

.bb-intro-arrow {
  color: var(--bt-gray-400);
}

.bb-intro-powered {
  font-size: 0.8rem;
  color: var(--bt-gray-400);
  margin-top: 0.75rem;
}

.bb-intro-powered a {
  color: var(--bt-indigo);
  text-decoration: none;
}

/* --- Tree Content Area --- */
.tree-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Blabbertree Engine Styles --- */

/* Section-level Blab button */
.bb-btn {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bt-indigo);
  color: var(--bt-white);
  border: none;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  cursor: pointer;
  margin-left: 0.75rem;
  vertical-align: middle;
  transition: all 0.15s;
  white-space: nowrap;
}

.bb-btn:hover {
  background: var(--bt-indigo-light);
  transform: scale(1.04);
}

.bb-highlight {
  background: rgba(249, 115, 22, 0.12);
  border-bottom: 2px solid var(--bt-orange);
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 2px;
}

.bb-highlight:hover {
  background: rgba(249, 115, 22, 0.28);
}

.bb-highlight--new {
  animation: bb-highlight-new 1.5s ease;
}

.bb-tooltip {
  position: absolute;
  background: var(--bt-indigo);
  color: var(--bt-white);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  white-space: nowrap;
  user-select: none;
  transition: all 0.15s;
}

.bb-tooltip:hover {
  background: var(--bt-indigo-light);
  transform: scale(1.04);
}

/* Editor Mode — Quick Blab */
.bb-quick-blab {
  position: absolute;
  background: var(--bt-white);
  border: 2px solid var(--bt-indigo);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  z-index: 200;
  width: 320px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25);
  font-family: var(--font-body);
}
.bb-quick-blab-quote {
  font-size: 0.78rem;
  color: var(--bt-gray-400);
  font-style: italic;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bb-quick-blab-name {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
}
.bb-quick-blab-text {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-family: var(--font-body);
  resize: vertical;
  min-height: 2.5rem;
}
.bb-quick-blab-name:focus,
.bb-quick-blab-text:focus {
  outline: none;
  border-color: var(--bt-indigo);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}
.bb-quick-flash {
  position: absolute;
  background: var(--bt-emerald);
  color: var(--bt-white);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  z-index: 200;
  white-space: nowrap;
  pointer-events: none;
  animation: bb-flash-fade 1.2s ease-out forwards;
}
@keyframes bb-flash-fade {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 1; transform: translateY(-8px); }
  100% { opacity: 0; transform: translateY(-16px); }
}
.bb-editor-toggle {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(99, 102, 241, 0.15);
}

.bb-leaf-media {
  margin: 0.5rem 0;
}

.bb-media-item {
  margin-bottom: 0.5rem;
}

.bb-media-img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.15s;
}

.bb-media-img:hover {
  transform: scale(1.02);
}

.bb-media-caption {
  font-size: 0.75rem;
  color: var(--bt-gray-400);
  margin-top: 0.25rem;
  font-style: italic;
}

.bb-media-link {
  display: inline-block;
  color: var(--bt-indigo);
  font-size: 0.85rem;
  text-decoration: underline;
  word-break: break-all;
}

.bb-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bt-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 0;
  animation: bb-panel-in 0.2s ease;
}

@keyframes bb-panel-in {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.bb-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--bt-gray-100);
  position: sticky;
  top: 0;
  background: var(--bt-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 1;
}

.bb-panel-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--bt-indigo);
}

.bb-panel-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--bt-gray-400);
  padding: 0 0.25rem;
  line-height: 1;
  transition: color 0.15s;
}

.bb-panel-close:hover {
  color: var(--bt-gray-900);
}

.bb-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 27, 75, 0.5);
  backdrop-filter: blur(4px);
  z-index: 250;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bb-form {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--bt-gray-100);
}

.bb-form-quote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--bt-gray-600);
  border-left: 3px solid var(--bt-orange);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  background: var(--bt-gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.bb-input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  width: 100%;
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: var(--bt-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bb-input:focus,
.bb-textarea:focus {
  outline: none;
  border-color: var(--bt-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.bb-stances {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.bb-stances label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--bt-gray-600);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.bb-stances label:hover {
  background: var(--bt-gray-50);
}

.bb-textarea {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  width: 100%;
  min-height: 70px;
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  resize: vertical;
  background: var(--bt-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bb-submit {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--bt-indigo);
  color: var(--bt-white);
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
}

.bb-submit:hover {
  background: var(--bt-indigo-light);
}

.bb-thread {
  padding: 1rem 1.5rem;
}

.bb-empty {
  color: var(--bt-gray-400);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem 0;
}

.bb-stance {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.bb-stance--question { background: #eef2ff; color: #4f46e5; }
.bb-stance--support { background: #ecfdf5; color: #059669; }
.bb-stance--oppose { background: #fef2f2; color: #dc2626; }
.bb-stance--context { background: #faf5ff; color: #7c3aed; }

.bb-time {
  font-size: 0.75rem;
  color: var(--bt-gray-400);
  margin-left: 0.5rem;
}

/* Tree */
.bb-tree {
  padding: 0.5rem 0;
}

.bb-tree-branch {
  margin-bottom: 0.75rem;
}

.bb-branch-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  cursor: pointer;
  user-select: none;
}

.bb-branch-toggle {
  font-size: 0.8rem;
  color: var(--bt-gray-400);
  transition: transform 0.2s;
}

.bb-branch--collapsed .bb-branch-toggle {
  transform: rotate(-90deg);
}

.bb-branch-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bt-gray-900);
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb-tree-trunk .bb-branch-label {
  color: var(--bt-gray-600);
  font-style: italic;
}

.bb-branch-count {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--bt-indigo);
  color: var(--bt-white);
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
  min-width: 20px;
  text-align: center;
}

.bb-branch-leaves {
  padding-left: 1rem;
  border-left: 2px solid var(--bt-gray-200);
  margin-left: 0.4rem;
}

.bb-branch--collapsed .bb-branch-leaves,
.bb-branch--collapsed .bb-chat-view,
.bb-branch--collapsed .bb-summary-card,
.bb-branch--collapsed .bb-focus-view {
  display: none;
}

.bb-leaf {
  padding: 0.6rem 0.75rem;
  margin: 0.35rem 0;
  border-radius: var(--radius);
  position: relative;
  transition: background 0.15s;
}

.bb-leaf::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 1rem;
  width: 0.75rem;
  height: 2px;
  background: var(--bt-gray-200);
}

.bb-leaf:hover {
  background: var(--bt-gray-50);
}

.bb-leaf-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-bottom: 0.25rem;
}

.bb-leaf p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--bt-gray-900);
}

.bb-leaf-children {
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--bt-gray-200);
}

.bb-reply-to {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
  display: inline-block;
}

.bb-reply-to strong {
  color: var(--bt-indigo-dark);
}

.bb-reply-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--bt-indigo);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.bb-reply-btn:hover {
  opacity: 1;
}

.bb-reply-form {
  margin: 0.5rem 0;
  padding: 0.75rem;
  background: var(--bt-gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--bt-gray-100);
}

.bb-reply-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.bb-cancel-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  background: none;
  border: none;
  color: var(--bt-gray-400);
  cursor: pointer;
  padding: 0.4rem 0.75rem;
}

.bb-reply-submit {
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
}

/* Hover preview */
.bb-hover-preview {
  position: absolute;
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-md);
  z-index: 150;
  max-width: 300px;
  pointer-events: none;
  animation: bb-pop-in 0.2s ease;
}

.bb-hover-count {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bt-indigo);
  margin-bottom: 0.5rem;
}

.bb-hover-item {
  font-size: 0.82rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--bt-gray-50);
}

.bb-hover-item:last-child {
  border-bottom: none;
}

.bb-hover-item p {
  margin: 0.15rem 0 0;
  color: var(--bt-gray-600);
  font-size: 0.8rem;
}

.bb-hover-more {
  font-size: 0.78rem;
  color: var(--bt-gray-400);
  padding-top: 0.3rem;
}

.bb-hover-hint {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: var(--bt-indigo);
  margin-top: 0.4rem;
  font-weight: 600;
}

/* Popover */
.bb-popover {
  position: absolute;
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-width: 360px;
  width: 90vw;
  animation: bb-pop-in 0.15s ease;
}

.bb-popover-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bt-gray-100);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--bt-gray-600);
}

.bb-popover-body {
  padding: 0.5rem 1rem;
  max-height: 200px;
  overflow-y: auto;
}

.bb-popover-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bt-gray-50);
  font-size: 0.88rem;
}

.bb-popover-item:last-child {
  border-bottom: none;
}

.bb-popover-item p {
  margin-top: 0.2rem;
  color: var(--bt-gray-600);
}

.bb-popover-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--bt-gray-100);
  display: flex;
  gap: 0.5rem;
}

.bb-popover-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}

.bb-popover-btn--primary {
  background: var(--bt-indigo);
  color: var(--bt-white);
}

.bb-popover-btn--primary:hover {
  background: var(--bt-indigo-light);
}

.bb-popover-btn--ghost {
  background: none;
  color: var(--bt-indigo);
}

.bb-popover-btn--ghost:hover {
  background: var(--bt-gray-50);
}

/* Success flash */
.bb-success {
  background: linear-gradient(135deg, var(--bt-indigo), #8b5cf6);
  color: var(--bt-white);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  font-size: 0.95rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Animations */
@keyframes bb-pop-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes bb-highlight-new {
  0% { background: rgba(249, 115, 22, 0.45); }
  100% { background: rgba(249, 115, 22, 0.12); }
}

/* Mobile panel */
@media (max-width: 600px) {
  .bb-panel {
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    animation: bb-slide-up 0.25s ease;
  }
  @keyframes bb-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .bb-popover {
    position: fixed;
    bottom: 0;
    left: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

/* Popover item header */
.bb-popover-item-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* --- Creation Modals --- */
.bt-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 27, 75, 0.5);
  backdrop-filter: blur(4px);
  z-index: 500;
  animation: fade-in 0.2s ease;
}

.bt-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bt-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 510;
  width: 90%;
  max-width: 480px;
  padding: 2rem;
  animation: bb-panel-in 0.2s ease;
}

.bt-modal h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.bt-modal label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bt-gray-600);
  margin-bottom: 0.3rem;
}

.bt-modal input[type="text"],
.bt-modal textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.6rem 0.75rem;
  width: 100%;
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--bt-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bt-modal input[type="text"]:focus,
.bt-modal textarea:focus {
  outline: none;
  border-color: var(--bt-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.bt-modal textarea {
  min-height: 80px;
  resize: vertical;
}

.bt-modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.bt-modal .btn-cancel {
  background: none;
  border: 1px solid var(--bt-gray-200);
  color: var(--bt-gray-600);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
}

.bt-modal .btn-cancel:hover {
  background: var(--bt-gray-50);
}

.bt-modal .bt-modal-status {
  font-size: 0.85rem;
  color: var(--bt-indigo);
  margin-top: 0.5rem;
  display: none;
}

.bt-modal .bt-modal-error {
  font-size: 0.85rem;
  color: #dc2626;
  margin-top: 0.5rem;
  display: none;
}

/* Copy link button */
.tree-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 1rem;
}

.tree-copy-link:hover {
  background: rgba(99, 102, 241, 0.15);
}

@media (max-width: 600px) {
  .bt-modal {
    top: auto;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    animation: bb-slide-up 0.25s ease;
  }
}

/* --- Grove Type Badges --- */
.grove-type-badge {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  display: inline-block;
}

.grove-type-badge--civic {
  background: rgba(16, 185, 129, 0.12);
  color: var(--bt-emerald-dark);
}

.grove-type-badge--teams {
  background: rgba(99, 102, 241, 0.1);
  color: var(--bt-indigo);
}

.grove-type-badge--social {
  background: rgba(249, 115, 22, 0.1);
  color: var(--bt-orange);
}

/* Grove label color variants */
.grove-label--civic { color: var(--bt-emerald); }
.grove-label--teams { color: var(--bt-indigo-light); }
.grove-label--social { color: var(--bt-orange); }

/* --- Tier Picker (Create Grove Modal) --- */
.bt-tier-picker {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bt-tier-picker input[type="radio"] {
  display: none;
}

.bt-tier-pill {
  flex: 1;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--bt-gray-200);
  cursor: pointer;
  transition: all 0.15s;
  color: var(--bt-gray-600);
}

.bt-tier-pill:hover {
  border-color: var(--bt-gray-400);
}

.bt-tier-picker input[type="radio"]:checked + .bt-tier-pill--civic {
  border-color: var(--bt-emerald);
  background: rgba(16, 185, 129, 0.08);
  color: var(--bt-emerald-dark);
}

.bt-tier-picker input[type="radio"]:checked + .bt-tier-pill--teams {
  border-color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.08);
  color: var(--bt-indigo);
}

.bt-tier-picker input[type="radio"]:checked + .bt-tier-pill--social {
  border-color: var(--bt-orange);
  background: rgba(249, 115, 22, 0.08);
  color: var(--bt-orange);
}

/* --- Private Grove Gate --- */
.grove-private-gate {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--bt-gray-600);
}

.grove-private-gate h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bt-gray-900);
  margin-bottom: 0.75rem;
}

.grove-private-gate p {
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Invite Link Button (grove header) --- */
.grove-invite-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bt-indigo-light);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 0.75rem;
}

.grove-invite-link:hover {
  background: rgba(99, 102, 241, 0.22);
}

/* Desktop: keep bb-panel as centered popup (no sidebar) */

/* ============================================
   Watch Page — Video Blabbing
   ============================================ */

.watch-header {
  background: linear-gradient(180deg, var(--bt-indigo-dark) 0%, #2d2766 100%);
  padding: 1.25rem 0 1rem;
  color: var(--bt-white);
}

.watch-header h1 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.watch-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  transition: max-width 0.3s ease;
}

.watch-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 0.5rem;
}

.watch-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Watch Hub (unified box below timeline) --- */
.watch-hub {
  background: var(--bt-gray-50);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius);
  padding: 0 1.25rem;
  margin: 0.5rem 0 0.75rem;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
}

.watch-hub .bb-intro-badge { margin: 0; }
.watch-hub .bb-intro-steps { margin: 0; }

.watch-hub--active {
  background: var(--bt-white);
  border-color: rgba(99, 102, 241, 0.25);
}

.watch-hub-blab-btn {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--bt-indigo);
  color: var(--bt-white);
  border: none;
  padding: 0.45rem 1.5rem;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.35);
  transition: all 0.15s;
  animation: watch-blab-fade 0.2s ease;
}

.watch-hub-blab-btn:hover {
  background: var(--bt-indigo-light);
  transform: scale(1.04);
}

.watch-hub-blab-link {
  display: inline-block;
  max-width: 600px;
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.88rem;
  color: var(--bt-gray-900);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  animation: watch-blab-fade 0.3s ease;
}

.watch-hub-blab-link:hover {
  border-color: var(--bt-indigo);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.watch-hub-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bt-indigo);
  margin-right: 0.35rem;
}

.watch-hub-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--bt-gray-400);
  margin-left: 0.5rem;
}

.watch-hub-countdown {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bt-gray-400);
}

.watch-hub-countdown strong {
  color: var(--bt-indigo);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.watch-hub-empty {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bt-gray-400);
}

.watch-hub-sep {
  width: 1px;
  height: 14px;
  background: var(--bt-gray-200);
  flex-shrink: 0;
}

.watch-hub-instructions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--bt-gray-400);
}

.watch-hub-arrow {
  color: var(--bt-gray-200);
  font-size: 0.7rem;
}

.watch-hub-see-all {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bt-indigo);
  cursor: pointer;
  white-space: nowrap;
}

.watch-hub-see-all:hover {
  color: var(--bt-indigo-light);
  text-decoration: underline;
}

.watch-timeline {
  position: relative;
  height: 48px;
  margin: 0.5rem 0 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.watch-timeline-bar {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bt-gray-200);
  border-radius: 2px;
  transform: translateY(-50%);
}

.watch-timeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--bt-white);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: width 0.3s linear;
  pointer-events: none;
  opacity: 0.9;
}

.watch-timeline-playhead {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: var(--bt-white);
  border: 2px solid var(--bt-gray-400);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 6px rgba(0,0,0,0.3);
  transition: left 0.3s linear;
  pointer-events: none;
  z-index: 2;
}

.watch-timeline-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.15s;
  z-index: 3;
}

.watch-timeline-dot:hover {
  transform: translate(-50%, -50%) scale(1.4);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.watch-timeline-dot--warm {
  width: 12px;
  height: 12px;
}

.watch-timeline-dot--hot {
  width: 14px;
  height: 14px;
}

.watch-timeline-dot--hottest {
  width: 18px;
  height: 18px;
}

.watch-timeline-fire {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Engagement bars rising from timeline */
.watch-timeline-spike {
  position: absolute;
  bottom: 50%;
  width: 6px;
  border-radius: 3px 3px 0 0;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0.6;
}

.watch-timeline-spike--hot {
  opacity: 0.7;
}

.watch-timeline-spike--hottest {
  opacity: 0.85;
  width: 8px;
}

.watch-time-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.watch-cluster-header {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bt-gray-600);
  padding: 0.75rem 0 0.25rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--bt-gray-100);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.watch-cluster-header:first-child {
  border-top: none;
  margin-top: 0;
}

.watch-cluster-count {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--bt-gray-100);
  color: var(--bt-gray-600);
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
}

@keyframes watch-blab-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Timeline dot hover tooltip */
.watch-dot-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  min-width: 200px;
  max-width: 300px;
  box-shadow: var(--shadow-md);
  z-index: 10;
  pointer-events: none;
  animation: watch-blab-fade 0.15s ease;
}

.watch-dot-tooltip .watch-hub-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bt-indigo);
}

.watch-dot-tooltip .watch-dot-blab {
  font-size: 0.82rem;
  color: var(--bt-gray-600);
  margin-top: 0.2rem;
  line-height: 1.4;
}

.watch-dot-tooltip .watch-dot-blab strong {
  color: var(--bt-gray-900);
}

/* Video description / links section */
.watch-description {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.watch-desc-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bt-indigo);
  transition: all 0.15s;
  width: 100%;
  justify-content: space-between;
}

.watch-desc-toggle:hover {
  border-color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.04);
}

.watch-desc-toggle-arrow {
  transition: transform 0.2s;
}

.watch-desc-toggle.open .watch-desc-toggle-arrow {
  transform: rotate(180deg);
}

.watch-desc-body {
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--bt-gray-600);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 400px;
  overflow-y: auto;
}

.watch-desc-body a {
  color: var(--bt-indigo);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.3);
}

.watch-desc-body a:hover {
  text-decoration-color: var(--bt-indigo);
}

.watch-desc-links {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--bt-gray-100);
}

.watch-desc-links a {
  display: block;
  padding: 0.2rem 0;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Stats box */
.watch-stats {
  margin-top: 0.5rem;
}

.watch-stats-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--bt-gray-50);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bt-gray-600);
  transition: background 0.15s;
}

.watch-stats-toggle:hover {
  background: var(--bt-gray-100);
}

.watch-stats-toggle.open .watch-desc-toggle-arrow {
  transform: rotate(180deg);
}

.watch-stats-body {
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1rem 1.25rem;
}

.watch-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
}

.watch-stat {
  text-align: center;
  padding: 0.5rem 0.25rem;
  background: var(--bt-gray-50);
  border-radius: var(--radius);
}

.watch-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bt-indigo);
}

.watch-stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--bt-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.15rem;
}

.watch-stance-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.watch-stance-seg {
  min-width: 4px;
  transition: width 0.3s;
}
.watch-stance-seg--support { background: var(--bt-emerald); }
.watch-stance-seg--oppose { background: var(--bt-orange); }
.watch-stance-seg--question { background: var(--bt-indigo); }
.watch-stance-seg--context { background: var(--bt-gray-400); }

.watch-stance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--bt-gray-600);
}

.watch-stance-key {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.watch-stance-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Inline feed under video */
.watch-feed {
  margin-top: 0.5rem;
}

.watch-feed-form {
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.watch-feed-form .bb-input,
.watch-feed-form .bb-textarea {
  margin-bottom: 0.5rem;
}

.watch-feed-form .bb-stances {
  margin-bottom: 0.5rem;
}

.watch-form-context {
  margin-bottom: 0.75rem;
}

.watch-reply-quote {
  background: var(--bt-gray-50);
  border-left: 3px solid var(--bt-indigo);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.5rem;
}

.watch-reply-quote-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--bt-gray-600);
  margin-bottom: 0.25rem;
}

.watch-reply-quote-text {
  font-size: 0.85rem;
  color: var(--bt-gray-900);
  line-height: 1.4;
}

.watch-new-blab-btn {
  display: block;
  width: 100%;
  padding: 0.4rem 0.75rem;
  background: none;
  border: 1px dashed var(--bt-gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--bt-indigo);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.watch-new-blab-btn:hover {
  background: var(--bt-gray-50);
  border-color: var(--bt-indigo-light);
}

.watch-feed-thread {
  min-height: 60px;
}

.watch-feed-thread .bb-leaf {
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-100);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.watch-feed-thread .bb-leaf-children .bb-leaf {
  border-color: var(--bt-gray-100);
  background: var(--bt-gray-50);
}

/* ============================================
   Image Pin-Drop Blabbing
   ============================================ */

.bb-image-pin-zone {
  position: relative;
  cursor: crosshair;
}

.bb-image-pin-zone .tree-article-image {
  pointer-events: none;
}

.bb-image-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--bt-indigo);
  border: 3px solid var(--bt-white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.15s;
}

.bb-image-pin--hot {
  width: 36px;
  height: 36px;
  background: var(--bt-emerald);
}

.bb-image-pin--hottest {
  width: 44px;
  height: 44px;
  background: var(--bt-orange);
}

.bb-image-pin:hover {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.bb-image-pin-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--bt-white);
  background: var(--bt-indigo-dark);
  border-radius: 100px;
  padding: 0 3px;
  line-height: 1;
}

.bb-image-pin-tooltip {
  position: absolute;
  background: var(--bt-indigo);
  color: var(--bt-white);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  white-space: nowrap;
  user-select: none;
  transform: translate(-50%, -100%);
  margin-top: -8px;
  transition: all 0.15s;
  animation: bb-pop-in 0.15s ease;
}

.bb-image-pin-tooltip:hover {
  background: var(--bt-indigo-light);
  transform: translate(-50%, -100%) scale(1.04);
}

/* ============================================
   Watch — Theater Mode + Blab Overlay
   ============================================ */

.watch-player {
  position: relative;
}

.watch-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.watch-player:hover .watch-fullscreen-btn {
  opacity: 1;
}

.watch-fullscreen-btn:hover {
  background: rgba(99, 102, 241, 0.8);
}

.watch-theater {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-theater #yt-player,
.watch-theater iframe {
  width: 100vw !important;
  height: 100vh !important;
}

.watch-theater .watch-fullscreen-btn {
  opacity: 1;
  z-index: 10001;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
}

.watch-overlay {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.watch-theater .watch-overlay {
  bottom: 60px;
}

.watch-overlay-blab {
  max-width: 600px;
  width: 90%;
}

.watch-overlay-card {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid var(--bt-indigo);
}

.watch-overlay-time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-heading);
  margin-right: 0.5rem;
}

.watch-overlay-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-right: 0.5rem;
}

.watch-overlay-stance {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
}

.watch-overlay-stance--support {
  color: #10b981;
  background: rgba(16, 185, 129, 0.2);
}

.watch-overlay-stance--oppose {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
}

.watch-overlay-stance--question {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
}

.watch-overlay-stance--context {
  color: #818cf8;
  background: rgba(129, 140, 248, 0.2);
}

.watch-overlay-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin-top: 0.35rem;
}

.watch-overlay-fadein {
  animation: watch-overlay-in 0.4s ease forwards;
}

.watch-overlay-fadeout {
  animation: watch-overlay-out 0.6s ease forwards;
}

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

@keyframes watch-overlay-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

/* ============================================
   Social Page
   ============================================ */

.social-header {
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.social-header h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.social-sub {
  font-size: 1rem;
  color: var(--bt-gray-600);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

.social-body {
  padding: 0 0 4rem;
}

.social-section {
  margin-bottom: 3rem;
}

.social-section-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.social-section-desc {
  font-size: 0.9rem;
  color: var(--bt-gray-400);
  margin-bottom: 1.25rem;
}

.social-loading {
  color: var(--bt-gray-400);
  font-size: 0.95rem;
  padding: 2rem;
  text-align: center;
}

.social-empty {
  color: var(--bt-gray-400);
  font-size: 0.95rem;
  padding: 2rem;
  background: var(--bt-gray-50);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--bt-gray-200);
  text-align: center;
}

.social-empty a {
  color: var(--bt-indigo);
}

/* Trending Trees */
.social-trending {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.social-trending-card {
  display: block;
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.social-trending-card:hover {
  border-color: var(--bt-indigo);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.social-trending-body h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--bt-gray-900);
}

.social-trending-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.social-trending-blabs {
  color: var(--bt-indigo);
  font-weight: 600;
}

.social-trending-grove {
  color: var(--bt-gray-400);
}

.social-trending-card--has-img {
  overflow: hidden;
  padding: 0;
}

.social-trending-card--has-img .social-trending-body {
  padding: 1rem 1.25rem 1.25rem;
}

.social-trending-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--bt-gray-100);
}

.social-trending-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Recent Blabs Feed */
.social-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.social-feed-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--bt-gray-100);
}

.social-feed-item:last-child {
  border-bottom: none;
}

.social-feed-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.social-feed-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bt-gray-900);
}

.social-feed-stance {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}

.social-stance--support {
  color: var(--bt-emerald-dark);
  background: #d1fae5;
}

.social-stance--oppose {
  color: #dc2626;
  background: #fee2e2;
}

.social-stance--question {
  color: #d97706;
  background: #fef3c7;
}

.social-stance--context {
  color: var(--bt-indigo);
  background: #e0e7ff;
}

.social-feed-time {
  font-size: 0.78rem;
  color: var(--bt-gray-400);
  margin-left: auto;
}

.social-feed-anchor {
  font-size: 0.85rem;
  color: var(--bt-gray-400);
  font-style: italic;
  margin-bottom: 0.3rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--bt-gray-200);
}

.social-feed-text {
  font-size: 0.95rem;
  color: var(--bt-gray-900);
  line-height: 1.5;
}

.social-load-more {
  display: block;
  margin: 1.5rem auto 0;
}

/* Help Section */
.social-help {
  padding-top: 2rem;
  border-top: 1px solid var(--bt-gray-200);
}

.social-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-help-card {
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.social-help-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--bt-gray-900);
}

.social-help-card p {
  font-size: 0.88rem;
  color: var(--bt-gray-600);
  line-height: 1.5;
}

.social-help-card a {
  color: var(--bt-indigo);
}

.social-help-icon {
  width: 32px;
  height: 32px;
  background: var(--bt-indigo);
  color: var(--bt-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.social-help-extra {
  margin-top: 1.5rem;
}

.social-help-extra h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

/* ============================================
   Teams — Phase 2
   ============================================ */

/* --- My Teams Section (groves.html) --- */
.teams-section {
  margin-bottom: 3rem;
}

.teams-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.teams-section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.team-card {
  display: block;
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: all 0.2s;
}

a.team-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--bt-indigo);
  transform: translateY(-1px);
}

.team-card-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bt-gray-900);
  margin-bottom: 0.25rem;
}

.team-card-desc {
  font-size: 0.88rem;
  color: var(--bt-gray-600);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.team-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--bt-gray-400);
}

.team-card-meta strong {
  color: var(--bt-gray-600);
}

.team-card--create {
  border: 2px dashed var(--bt-gray-200);
  background: var(--bt-gray-50);
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card--create:hover {
  border-color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.03);
}

.team-card--create h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bt-gray-600);
  margin-top: 0.5rem;
}

.team-card--create p {
  font-size: 0.85rem;
  color: var(--bt-gray-400);
  margin-top: 0.25rem;
}

/* --- Team Page (team.html) --- */
.team-header {
  padding: 1.5rem 0 1.25rem;
  background: linear-gradient(180deg, var(--bt-indigo-dark) 0%, #2d2766 100%);
  color: var(--bt-white);
}

.team-header-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.team-header-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.team-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bt-indigo-light);
  margin-bottom: 0.25rem;
}

.team-header h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.team-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
}

.team-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
}

.team-stats strong {
  color: var(--bt-white);
}

.team-body {
  padding: 2rem 0 4rem;
}

.team-section {
  margin-bottom: 2.5rem;
}

.team-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.team-section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Members */
.team-members-list {
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.team-member-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--bt-gray-100);
  gap: 1rem;
}

.team-member-row:last-child {
  border-bottom: none;
}

.team-member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bt-indigo);
  color: var(--bt-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.team-member-info {
  flex: 1;
  min-width: 0;
}

.team-member-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bt-gray-900);
}

.team-member-email {
  font-size: 0.8rem;
  color: var(--bt-gray-400);
}

.team-member-role {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  flex-shrink: 0;
}

.team-member-role--owner {
  background: rgba(99, 102, 241, 0.1);
  color: var(--bt-indigo);
}

.team-member-role--admin {
  background: rgba(16, 185, 129, 0.1);
  color: var(--bt-emerald-dark);
}

.team-member-role--member {
  background: var(--bt-gray-100);
  color: var(--bt-gray-600);
}

.team-member-remove {
  background: none;
  border: 1px solid var(--bt-gray-200);
  color: var(--bt-gray-400);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.78rem;
  font-family: var(--font-heading);
  font-weight: 600;
  transition: all 0.15s;
  flex-shrink: 0;
}

.team-member-remove:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

/* Invite form */
.team-invite-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.team-invite-form input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.team-invite-form input:focus {
  outline: none;
  border-color: var(--bt-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.team-invite-form button {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  background: var(--bt-indigo);
  color: var(--bt-white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.team-invite-form button:hover {
  background: var(--bt-indigo-light);
}

.team-invite-msg {
  font-size: 0.82rem;
  margin-top: 0.4rem;
  min-height: 1.2em;
}

.team-invite-msg.success {
  color: var(--bt-emerald-dark);
}

.team-invite-msg.error {
  color: #dc2626;
}

/* Team groves list */
.team-groves-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Team picker in Create Grove modal */
.bt-team-picker {
  margin-bottom: 1rem;
}

.bt-team-picker select {
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 0.6rem 0.75rem;
  width: 100%;
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius);
  background: var(--bt-white);
  transition: border-color 0.2s;
  cursor: pointer;
}

.bt-team-picker select:focus {
  outline: none;
  border-color: var(--bt-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Team access gate (grove.html) */
.grove-team-gate {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--bt-gray-600);
}

.grove-team-gate h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bt-gray-900);
  margin-bottom: 0.75rem;
}

.grove-team-gate p {
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

.grove-team-gate .btn {
  margin-top: 1.25rem;
}

/* Not authorized state */
.team-not-authorized {
  text-align: center;
  padding: 6rem 2rem;
  color: var(--bt-gray-600);
}

.team-not-authorized h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bt-gray-900);
  margin-bottom: 0.75rem;
}

.team-not-authorized p {
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .teams-grid {
    grid-template-columns: 1fr;
  }
  .team-groves-grid {
    grid-template-columns: 1fr;
  }
  .team-invite-form {
    flex-direction: column;
  }
}

/* ============================================
   Claude Chat Panel
   ============================================ */

/* Talk to Claude button — appears in tree/watch header */
.claude-talk-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bt-white);
  background: linear-gradient(135deg, var(--bt-indigo) 0%, #8b5cf6 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.claude-talk-btn:not(.claude-talk-btn--disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.claude-talk-btn .claude-icon {
  font-size: 1rem;
}

/* Disabled state — no API key */
.claude-talk-btn--disabled {
  background: var(--bt-gray-300);
  cursor: default;
  opacity: 0.7;
  position: relative;
}

.claude-talk-btn--disabled .claude-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 0.25rem;
  cursor: help;
}

.claude-talk-btn--disabled .claude-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bt-gray-900);
  color: var(--bt-white);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 400;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
}

.claude-talk-btn--disabled:hover .claude-tooltip {
  display: block;
}

/* Chat panel overlay */
.claude-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  animation: fadeIn 0.2s ease;
}

.claude-panel {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--bt-white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.25s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* Panel header */
.claude-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bt-gray-200);
  background: linear-gradient(135deg, var(--bt-indigo) 0%, #8b5cf6 100%);
  color: var(--bt-white);
  flex-shrink: 0;
}

.claude-panel-header h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.claude-panel-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--bt-white);
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.claude-panel-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Message area */
.claude-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.claude-msg {
  max-width: 90%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.55;
  word-wrap: break-word;
}

.claude-msg--user {
  align-self: flex-end;
  background: var(--bt-indigo);
  color: var(--bt-white);
  border-bottom-right-radius: 4px;
}

.claude-msg--claude {
  align-self: flex-start;
  background: var(--bt-gray-100);
  color: var(--bt-gray-900);
  border-bottom-left-radius: 4px;
}

.claude-msg--system {
  align-self: center;
  background: transparent;
  color: var(--bt-gray-400);
  font-size: 0.78rem;
  font-style: italic;
  text-align: center;
}

.claude-msg--typing {
  align-self: flex-start;
  background: var(--bt-gray-100);
  color: var(--bt-gray-400);
  font-style: italic;
  font-size: 0.82rem;
}

/* Input area */
.claude-input-area {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--bt-gray-200);
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.claude-input {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-family: var(--font-body);
  resize: none;
  min-height: 40px;
  max-height: 100px;
  outline: none;
  transition: border-color 0.15s;
}

.claude-input:focus {
  border-color: var(--bt-indigo);
}

.claude-send-btn {
  padding: 0.6rem 1rem;
  background: var(--bt-indigo);
  color: var(--bt-white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.claude-send-btn:hover {
  background: var(--bt-indigo-dark);
}

.claude-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Commit button area */
.claude-commit-area {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--bt-gray-200);
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.claude-commit-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  background: var(--bt-emerald);
  color: var(--bt-white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
}

.claude-commit-btn:hover {
  background: #059669;
}

.claude-commit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Claude AI member badge in team members list */
.team-member-avatar--ai {
  background: linear-gradient(135deg, var(--bt-indigo) 0%, #8b5cf6 100%);
  color: var(--bt-white);
  font-size: 0.75rem;
}

.team-member-role--ai {
  background: linear-gradient(135deg, var(--bt-indigo) 0%, #8b5cf6 100%);
  color: var(--bt-white);
}

/* Add Claude button in team invite section */
.team-add-claude-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 0.75rem;
}

.team-add-claude-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--bt-indigo);
}

@media (max-width: 600px) {
  .claude-panel {
    width: 100vw;
  }
}

/* ============================================
   Video Upload — Progress Bar
   ============================================ */

.bt-upload-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bt-upload-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bt-gray-200);
  border-radius: 4px;
  overflow: hidden;
}

#tree-upload-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--bt-indigo), var(--bt-emerald));
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

.bt-upload-progress-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bt-indigo);
  min-width: 3em;
  text-align: right;
}

/* ============================================
   HTML5 Video Player in Watch
   ============================================ */

#html5-player {
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.watch-theater #html5-player {
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 0;
}

/* ============================================
   Video Editor — Render / Revert / Download
   ============================================ */

.claude-render-area {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--bt-gray-200);
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.claude-render-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, var(--bt-orange) 0%, #fb923c 100%);
  color: var(--bt-white);
  border: none;
  border-radius: var(--radius-md, 8px);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.15s;
}

.claude-render-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.claude-render-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.claude-revert-btn {
  padding: 0.65rem 1rem;
  background: none;
  border: 1px solid var(--bt-gray-200);
  color: var(--bt-gray-600);
  border-radius: var(--radius-md, 8px);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.claude-revert-btn:hover {
  border-color: var(--bt-gray-400);
  background: var(--bt-gray-50);
}

.claude-revert-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.claude-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  background: var(--bt-emerald);
  color: var(--bt-white);
  border: none;
  border-radius: var(--radius-md, 8px);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.claude-download-btn:hover {
  background: var(--bt-emerald-dark);
}

/* Render progress */
.claude-render-progress {
  padding: 0.5rem 1.25rem;
  display: none;
  flex-shrink: 0;
}

.claude-render-progress.active {
  display: block;
}

.claude-render-progress-bar {
  height: 6px;
  background: var(--bt-gray-200);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.claude-render-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--bt-orange), var(--bt-emerald));
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
}

.claude-render-status {
  font-size: 0.78rem;
  color: var(--bt-gray-400);
  text-align: center;
}

/* EDL code blocks in Claude messages */
.claude-msg pre {
  background: var(--bt-gray-50);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius, 10px);
  padding: 0.75rem;
  margin: 0.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.claude-msg code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(99, 102, 241, 0.08);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

/* Mobile warning for video editing */
.claude-mobile-warning {
  padding: 0.5rem 1.25rem;
  background: rgba(249, 115, 22, 0.08);
  border-top: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--bt-orange);
  font-size: 0.78rem;
  text-align: center;
  flex-shrink: 0;
}

@media (min-width: 601px) {
  .claude-mobile-warning {
    display: none;
  }
}

/* ============================================
   New Blab Indicators + @ Mentions
   ============================================ */

/* Pulse animation for new-blab dot */
@keyframes bb-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* "New" dot — pulsing blue on markers with unseen blabs */
.bb-new { position: relative; }
.bb-new::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  animation: bb-pulse 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

/* "Mention" dot — red, takes priority over blue */
.bb-mention { position: relative; }
.bb-mention::after {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  animation: bb-pulse 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

/* Blab button count — needs relative for dot positioning */
.bb-btn .bb-count.bb-new::after,
.bb-btn .bb-count.bb-mention::after {
  top: -4px;
  right: -6px;
}

/* Timeline dots — adjust dot position */
.watch-timeline-dot.bb-new::after,
.watch-timeline-dot.bb-mention::after {
  top: -4px;
  right: -4px;
}

/* Image pins — adjust dot position */
.bb-image-pin.bb-new::after,
.bb-image-pin.bb-mention::after {
  top: -2px;
  right: -2px;
}

/* Mentioned blab leaf — orange left border + @You badge */
.bb-leaf--mention {
  border-left: 3px solid #ef4444 !important;
  padding-left: 0.75rem;
  background: rgba(239, 68, 68, 0.05);
}

.bb-mention-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* @Name tag styling in blab text */
.bb-mention-tag {
  font-weight: 700;
  color: var(--bt-indigo);
}

/* @ autocomplete dropdown */
.bb-mention-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 160px;
  overflow-y: auto;
  z-index: 200;
  min-width: 140px;
}

.bb-mention-option {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.1s;
}

.bb-mention-option:hover,
.bb-mention-option.active {
  background: rgba(99, 102, 241, 0.08);
  color: var(--bt-indigo);
}

/* --- Blab-on-Blab (Phase 1) --- */
.bb-leaf-text {
  cursor: text;
  user-select: text;
}

.bb-highlight--blab {
  background: rgba(99, 102, 241, 0.12);
  border-bottom: 2px solid var(--bt-indigo);
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 2px;
}

.bb-highlight--blab:hover {
  background: rgba(99, 102, 241, 0.28);
}

.bb-highlight-badge--blab {
  background: var(--bt-orange);
}

.bb-leaf-subblabs {
  margin-top: 0.5rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px dashed var(--bt-indigo);
}

.bb-subblab-branch {
  margin: 0.35rem 0;
}

.bb-subblab-header {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  font-style: italic;
  color: var(--bt-indigo);
  padding: 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bb-subblab-branch--flash {
  animation: bb-subblab-flash 1.5s ease;
}

@keyframes bb-subblab-flash {
  0% { background: rgba(99, 102, 241, 0.2); }
  100% { background: transparent; }
}

/* --- Branch View Mode Switcher --- */
.bb-mode-switcher {
  display: inline-flex;
  gap: 0.15rem;
  margin-left: auto;
  padding-left: 0.5rem;
  flex-shrink: 0;
}

.bb-mode-btn {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bt-gray-400);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.bb-mode-btn:hover {
  color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.06);
}

.bb-mode-btn--active {
  color: var(--bt-white);
  background: var(--bt-indigo);
}

.bb-mode-btn--active:hover {
  color: var(--bt-white);
  background: var(--bt-indigo-light);
}

/* --- Collapsible Depth --- */
.bb-depth-collapsed {
  margin: 0.35rem 0 0.35rem 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px dashed var(--bt-gray-200);
}

.bb-depth-expand-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.06);
  border: 1px dashed var(--bt-indigo);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin: 0.25rem 0;
}

.bb-depth-expand-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--bt-indigo-dark);
}

/* --- Conversation View (Chat Mode) --- */
.bb-chat-view {
  padding: 0.5rem 0;
}

.bb-chat-bubble {
  padding: 0.6rem 0.75rem;
  margin: 0.35rem 0;
  border-radius: var(--radius);
  border-left: 3px solid var(--bt-indigo);
  background: var(--bt-gray-50);
  transition: background 0.15s;
}

.bb-chat-bubble:hover {
  background: var(--bt-gray-100);
}

.bb-chat-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-bottom: 0.25rem;
}

.bb-chat-bubble p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--bt-gray-900);
}

/* --- Summary Card Mode --- */
.bb-summary-card {
  background: var(--bt-gray-50);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin: 0.5rem 0;
}

.bb-summary-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.bb-summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bb-summary-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bt-indigo);
  line-height: 1;
}

.bb-summary-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--bt-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bb-summary-stances {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.bb-stance-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.bb-summary-top {
  font-size: 0.82rem;
  color: var(--bt-gray-600);
  padding: 0.5rem 0;
  border-top: 1px solid var(--bt-gray-200);
  line-height: 1.5;
}

.bb-summary-top-label {
  font-weight: 600;
  color: var(--bt-indigo);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bb-summary-time {
  font-size: 0.72rem;
  color: var(--bt-gray-400);
  margin-top: 0.35rem;
}

.bb-summary-expand-btn {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bt-indigo);
  background: var(--bt-white);
  border: 1px solid var(--bt-indigo);
  border-radius: var(--radius);
  padding: 0.4rem 1rem;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: background 0.15s, color 0.15s;
}

.bb-summary-expand-btn:hover {
  background: var(--bt-indigo);
  color: var(--bt-white);
}

/* --- Focus Mode --- */
.bb-focus-view {
  padding: 0.5rem 0;
}

.bb-focus-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0;
}

.bb-focus-crumb {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.08);
  border: none;
  border-radius: 100px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: background 0.15s;
}

.bb-focus-crumb:hover {
  background: rgba(99, 102, 241, 0.18);
}

.bb-focus-crumb--active {
  color: var(--bt-white);
  background: var(--bt-indigo);
}

.bb-focus-sep {
  color: var(--bt-gray-400);
  font-size: 0.85rem;
}

.bb-focus-card {
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--bt-gray-50);
  border: 1px solid var(--bt-gray-200);
}

.bb-focus-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--bt-gray-900);
}

.bb-focus-children {
  margin-top: 0.75rem;
}

.bb-focus-children-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bt-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.bb-focus-child-btn {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--bt-gray-900);
  background: var(--bt-white);
  border: 1px solid var(--bt-gray-200);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  margin: 0.25rem 0;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.bb-focus-child-btn:hover {
  border-color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.03);
}

.bb-focus-child-btn p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--bt-gray-600);
}

.bb-focus-child-count {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--bt-indigo);
  background: rgba(99, 102, 241, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  margin-top: 0.25rem;
  display: inline-block;
}

/* Grove card NEW badge (legacy) */
.grove-card-new {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  margin-left: 0.5rem;
  animation: bb-pulse 2s ease-in-out infinite;
}

/* Grove card indicators — colored dot with count */
.grove-card-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0 0.35rem;
  border-radius: 100px;
  margin-left: 0.5rem;
  animation: bb-pulse 2s ease-in-out infinite;
}
.grove-card-indicator--new {
  color: #fff;
  background: #6366f1;
}
.grove-card-indicator--mention {
  color: #fff;
  background: #ef4444;
}

/* ── Notification Bell ────────────────────────────── */
.bt-notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  color: #64748b;
  transition: color 0.15s;
}
.bt-notif-bell:hover { color: #6366f1; }
.bt-notif-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  border-radius: 100px;
  padding: 0 0.25rem;
  animation: bb-pulse 2s ease-in-out infinite;
}
.bt-notif-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 1000;
  margin-top: 0.5rem;
}
.bt-notif-item {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: #1e293b;
  transition: background 0.15s;
}
.bt-notif-item:hover { background: #f8fafc; }
.bt-notif-item.bt-notif-read { opacity: 0.5; }
.bt-notif-item strong { color: #6366f1; }
.bt-notif-text {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
  line-height: 1.4;
}
.bt-notif-time {
  font-size: 0.7rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}
.bt-notif-empty {
  padding: 1.5rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* Send to X button on blabs */
.bb-notify-btn {
  font-size: 0.75rem;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  margin-left: 0.5rem;
  transition: all 0.15s;
}
.bb-notify-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
}
.bb-notify-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
