/* ==========================================================================
   BLACKSTONE LEGAL AI - 100% EXACT Blackstone DESIGN SYSTEM & STYLESHEET
   Matching bs-.ai & app.bs-.ai with exact typography, buttons & layout
   ========================================================================== */

/* Exact Blackstone WOFF2 Fonts */
@font-face {
  font-family: 'Blackstone Serif';
  src: url('../fonts/BlackstoneSerif-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Blackstone Serif';
  src: url('../fonts/BlackstoneSerif-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Blackstone Sans';
  src: url('../fonts/BlackstoneSans-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-serif: 'Blackstone Serif', Garamond, Georgia, serif;
  --font-sans: 'Blackstone Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --bg-white: #ffffff;
  --bg-dark: #171615;
  --bg-charcoal: #141413;
  --bg-sidebar: #171615;
  --bg-dashboard: #fbfbfa;
  --bg-card: #ffffff;
  --bg-hover-dark: #242321;
  --bg-active-dark: #2c2b28;
  
  --text-dark: #171615;
  --text-primary: #171615;
  --text-muted: #71706b;
  --text-subtle: #8e8d88;
  --text-light: #ffffff;
  
  --border-light: #e5e5e4;
  --border-subtle: #ebebea;
  --border-input: #d5d4d0;
  --border-dark: #282725;
  
  --accent-yellow: #facc15;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;
  
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
}

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

html, body {
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  vertical-align: middle;
}

/* Strict SVG Sizing Guard - NEVER let an icon blow up! */
svg {
  max-width: 100%;
}
.cc-sidebar svg,
.cc-brand-icons svg,
.cc-menu-item svg,
.cc-sub-item svg,
.action-icon svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  flex-shrink: 0;
}

/* ==========================================================================
   Blackstone EXACT SCREEN LOADER & TOP PROGRESS BAR (Screenshot 10)
   Pure white screen + centered white card with subtle shadow & black serif B
   ========================================================================== */
#bs-screen-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  pointer-events: auto;
}

#bs-screen-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.bs-loader-box {
  width: 58px;
  height: 58px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bs-Breathe 2s ease-in-out infinite;
}

.bs-loader-monogram {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: #171615;
  line-height: 1;
  user-select: none;
}

@keyframes bs-Breathe {
  0% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); opacity: 0.92; }
}

#bs-top-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 100%;
  background: transparent;
  z-index: 100000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

/* ==========================================================================
   HOMEPAGE NAVIGATION & BANNER (bs-.ai)
   ========================================================================== */
.announcement-banner {
  background-color: #171615;
  color: #ffffff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  gap: 8px;
  position: relative;
  z-index: 1001;
}

.announcement-banner a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
}

.announcement-dismiss {
  position: absolute;
  right: 16px;
  background: transparent;
  border: none;
  color: #a1a1aa;
  cursor: pointer;
  font-size: 16px;
}
.announcement-dismiss:hover {
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  height: 64px;
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-menu-list {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: stretch;
  height: 100%;
}

.nav-menu-list > li {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.nav-link-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  text-decoration: none;
  border-radius: 0;
  height: 100%;
  transition: color 0.15s;
}

.nav-link-btn:hover {
  color: #000000;
}

.nav-link-btn.active::after {
  content: '';
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login-link {
  border: 1px solid var(--border-input);
  background: #ffffff;
  color: var(--text-dark);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-login-link:hover {
  background: #f7f7f6;
  border-color: #c5c4bf;
}

.btn-request-demo {
  background: #171615;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-request-demo:hover {
  background: #000000;
}

/* ==========================================================================
   MEGA DROPDOWN MENUS (Screenshots 6 & 8)
   ========================================================================== */
.mega-dropdown-menu {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  z-index: 999;
  display: none;
  padding: 40px 0 48px;
}

.mega-dropdown-menu.open {
  display: block;
  animation: megaFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mega-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 995;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.mega-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Products Mega Menu Grid */
.products-menu-grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 48px;
}

.platform-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Solutions Mega Menu Grid */
.solutions-menu-grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.2fr 2fr;
  gap: 36px;
}

.resources-menu-grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.6fr;
  gap: 48px;
}

.mega-col-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.mega-stack-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mega-item-link {
  text-decoration: none;
  display: block;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.mega-item-link:hover {
  background: #f7f7f6;
}

.mega-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.mega-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

.badge-yellow-new {
  background: var(--accent-yellow);
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Featured Card in Solutions Menu */
.mega-featured-card {
  background: #fcfcfb;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s;
}

.mega-featured-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.mega-featured-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.mega-featured-body {
  padding: 16px;
}

.mega-featured-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 6px;
}

.mega-featured-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   HOMEPAGE HERO SECTION (bs-.ai)
   3-Line Heading + Single "Request a Demo" button + Textured Preview
   ========================================================================== */
.hero-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 80px 32px 40px;
}

.hero-two-col {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 60px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 78px;
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 400;
  color: var(--text-dark);
}

.hero-right-col {
  padding-bottom: 12px;
}

.hero-subtext {
  font-size: 18px;
  line-height: 1.5;
  color: #3f3e3a;
  max-width: 440px;
  margin-bottom: 28px;
}

.hero-demo-btn {
  background: #171615;
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}

.hero-demo-btn:hover {
  background: #000000;
}

/* Textured Background Container framing the Command Center Mockup */
.hero-mockup-frame {
  background: url('../img/hero-texture-bg.jpg') center/cover no-repeat;
  border-radius: 16px;
  padding: 48px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.hero-dashboard-img {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   PROMINENT HERITAGE STORY SECTION (Sir William Blackstone)
   Bedrock of Modern English & American Common Law, Academic Provenance
   ========================================================================== */
.heritage-section {
  background: #fbfbfa;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 96px 32px;
}

.heritage-container {
  max-width: 1120px;
  margin: 0 auto;
}

.heritage-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.heritage-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f0ee;
  border: 1px solid #e0dfdc;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.heritage-title {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.heritage-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.heritage-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.heritage-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.45;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.heritage-attribution {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.heritage-text {
  font-size: 14px;
  line-height: 1.65;
  color: #4b4a46;
}

/* ==========================================================================
   SOLUTIONS SHOWCASE (For Law Firms & For In-House Teams)
   ========================================================================== */
.solutions-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 96px 32px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.solution-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.solution-card:hover {
  border-color: #c5c4bf;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.solution-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.solution-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.solution-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.solution-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.solution-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   EXACT Blackstone MULTI-COLUMN FOOTER (Dark Theme)
   ========================================================================== */
.bs-site-footer {
  background-color: #171615;
  color: #ffffff;
  padding: 80px 32px 64px;
  border-top: 1px solid #242321;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
}

/* Top CTA Banner inside Footer */
.footer-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 56px;
  gap: 32px;
}

.footer-cta-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
  max-width: 640px;
}

.footer-cta-btn {
  background-color: #f5f5f4;
  color: #171615;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-cta-btn:hover {
  background-color: #e5e5e4;
  transform: translateY(-1px);
}

/* Bottom Columns Wrap */
.footer-columns-wrap {
  display: flex;
  gap: 64px;
}

.footer-brand-col {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-brand-logo span {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.footer-copyright-text {
  font-size: 12px;
  line-height: 1.6;
  color: #8e8d88;
}

/* 5 Navigation Columns */
.footer-nav-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

.footer-col-header {
  font-size: 13px;
  font-weight: 500;
  color: #8e8d88;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  font-size: 13px;
  color: #c5c4bf;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s ease;
}

.footer-links-list a:hover {
  color: #ffffff;
}

.hover-arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  font-size: 12px;
}

.footer-links-list a:hover .hover-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1024px) {
  .footer-cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-columns-wrap {
    flex-direction: column;
    gap: 40px;
  }
  .footer-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .footer-cta-title {
    font-size: 28px;
  }
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   LOGIN PAGE (login.html) - EXACT 50/50 SPLIT (Screenshots 1 & 5)
   ========================================================================== */
.bs-split-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  width: 100vw;
  background: #ffffff;
}

.bs-login-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  align-items: center;
}

.bs-login-box {
  width: 100%;
  max-width: 380px;
  text-align: center;
  margin: auto 0;
}

/* Multi-Account Profile Chooser (Cloudflare Parity) */
.bs-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0 0 6px;
}
.bs-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  user-select: none;
}
.bs-account-card:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}
.bs-account-card:active {
  transform: scale(0.99);
}
.bs-account-card:focus-visible {
  outline: 2px solid #171615;
  outline-offset: 2px;
}
.bs-account-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.bs-google-logo {
  flex: none;
  width: 20px;
  height: 20px;
  display: block;
}
.bs-account-email {
  font-size: 14.5px;
  font-weight: 500;
  color: #171615;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.bs-account-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: 12px;
}
.bs-last-used-pill {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  font-size: 12px;
  font-weight: 500;
  padding: 2.5px 9px;
  border-radius: 9999px;
  line-height: 1.25;
  white-space: nowrap;
}
.bs-account-arrow {
  color: #4b5563;
  flex: none;
  display: block;
  transition: transform 0.15s ease, color 0.15s ease;
}
.bs-account-card:hover .bs-account-arrow {
  color: #111827;
  transform: translateX(2px);
}
.bs-auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 22px 0 16px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 400;
}
.bs-auth-divider::before,
.bs-auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}
.bs-auth-divider span {
  padding: 0 14px;
  color: #9ca3af;
}
.bs-signin-another-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #171615;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.bs-signin-another-btn:hover {
  background-color: #f3f1ec;
  text-decoration: underline;
}
.bs-auth-signup-row {
  text-align: center;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: #4b5563;
}
.bs-auth-signup-link {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
  margin-left: 3px;
}
.bs-auth-signup-link:hover {
  text-decoration: underline;
}
.bs-auth-legal-notice {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.6;
  margin: 10px auto 0;
}
.bs-auth-legal-notice a {
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bs-auth-legal-notice a:hover {
  color: #171615;
}
.bs-back-accounts-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s ease;
}
.bs-back-accounts-btn:hover {
  color: #171615;
  text-decoration: underline;
}
body.dark .bs-account-card, html.dark .bs-account-card, [data-theme=dark] .bs-account-card {
  background: #1c1b1a;
  border-color: #383836;
}
body.dark .bs-account-card:hover, html.dark .bs-account-card:hover, [data-theme=dark] .bs-account-card:hover {
  background: #262524;
  border-color: #4a4846;
}
body.dark .bs-account-email, html.dark .bs-account-email, [data-theme=dark] .bs-account-email {
  color: #ecebe8;
}
body.dark .bs-last-used-pill, html.dark .bs-last-used-pill, [data-theme=dark] .bs-last-used-pill {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border-color: rgba(37, 99, 235, 0.3);
}
body.dark .bs-account-arrow, html.dark .bs-account-arrow, [data-theme=dark] .bs-account-arrow {
  color: #9ca3af;
}
body.dark .bs-auth-divider::before, body.dark .bs-auth-divider::after,
html.dark .bs-auth-divider::before, html.dark .bs-auth-divider::after {
  border-color: #383836;
}
body.dark .bs-signin-another-btn, html.dark .bs-signin-another-btn, [data-theme=dark] .bs-signin-another-btn {
  color: #ecebe8;
}
body.dark .bs-signin-another-btn:hover, html.dark .bs-signin-another-btn:hover {
  background-color: #262524;
}
body.dark .bs-auth-signup-row, html.dark .bs-auth-signup-row {
  color: #9ca3af;
}
body.dark .bs-auth-signup-link, html.dark .bs-auth-signup-link {
  color: #60a5fa;
}
body.dark .bs-auth-legal-notice, html.dark .bs-auth-legal-notice {
  color: #9ca3af;
}
body.dark .bs-auth-legal-notice a, html.dark .bs-auth-legal-notice a {
  color: #9ca3af;
}
body.dark .bs-auth-legal-notice a:hover, html.dark .bs-auth-legal-notice a:hover {
  color: #ecebe8;
}
body.dark .bs-back-accounts-btn, html.dark .bs-back-accounts-btn {
  color: #9ca3af;
}
body.dark .bs-back-accounts-btn:hover, html.dark .bs-back-accounts-btn:hover {
  color: #ecebe8;
}

.bs-logo-badge {
  width: 40px;
  height: 40px;
  background: #000000;
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 24px;
  user-select: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.bs-logo-badge:hover {
  opacity: 0.88;
  transform: scale(1.05);
}

.bs-login-heading {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #171615;
  margin-bottom: 28px;
}

.bs-login-form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.bs-input-label {
  font-size: 13px;
  font-weight: 400;
  color: #555552;
  margin-bottom: 6px;
  display: block;
}

.bs-login-input {
  width: 100%;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  background: #ffffff;
  color: var(--text-dark);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bs-login-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000;
}

.bs-btn-continue {
  background: #0f0e0d;
  color: #ffffff;
  border: 1px solid #0f0e0d;
  border-radius: 6px;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
  width: 100%;
  margin-top: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bs-btn-continue:hover:not(:disabled) {
  background: #262422;
  border-color: #262422;
}

.bs-help-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 16px;
  text-align: center;
  display: block;
}

.bs-help-link:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

.bs-login-footer {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.bs-country-pill {
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  color: #555552;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.bs-privacy-note {
  font-size: 11px;
  color: #888884;
}

.bs-privacy-note a {
  color: #555552;
  text-decoration: underline;
}

.bs-login-right {
  background: url('../img/auth-page-hero.webp') center/cover no-repeat;
  min-height: 100vh;
}

/* ==========================================================================
   COMMAND CENTER DASHBOARD (app.html) - EXPANDED & CONTRACTED STATES (Screenshot 9)
   ========================================================================== */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: var(--bg-dashboard);
}

/* Sidebar Container (Dark Charcoal matching Blackstone ) */
.cc-sidebar {
  width: 260px;
  min-width: 260px;
  background-color: var(--bg-sidebar);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #242321;
  user-select: none;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.25s;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
}

/* Contracted Sidebar State (64px) */
.sidebar-contracted .cc-sidebar {
  width: 64px;
  min-width: 64px;
}

.sidebar-contracted .cc-sidebar-text,
.sidebar-contracted .cc-section-label,
.sidebar-contracted .cc-badge-pill,
.sidebar-contracted .cc-brand-title span,
.sidebar-contracted .cc-user-info,
.sidebar-contracted .recents-list,
.sidebar-contracted .spaces-list {
  display: none !important;
}

.sidebar-contracted .cc-brand-header {
  justify-content: center;
  padding: 16px 0;
}

.sidebar-contracted .cc-brand-icons {
  display: none;
}

.sidebar-contracted .cc-new-thread-btn {
  padding: 10px;
  justify-content: center;
}

.sidebar-contracted .cc-new-thread-btn span {
  display: none;
}

.sidebar-contracted .cc-menu-item {
  justify-content: center;
  padding: 10px 0;
}

.sidebar-contracted .cc-sub-item {
  justify-content: center;
  padding: 8px 0;
}

.sidebar-contracted .cc-sidebar-user {
  justify-content: center;
  padding: 12px 0;
}

/* Sidebar Top Section */
.cc-sidebar-top {
  padding: 16px;
}

.cc-brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cc-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
}

.cc-brand-title span {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.monogram-badge {
  width: 24px;
  height: 24px;
  background: #ffffff;
  color: #171615;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.cc-brand-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #8e8d88;
}

.cc-brand-icons svg {
  cursor: pointer;
  transition: color 0.15s;
}

.cc-brand-icons svg:hover {
  color: #ffffff;
}

.cc-sidebar-toggle-btn {
  background: transparent;
  border: none;
  color: #8e8d88;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.cc-sidebar-toggle-btn:hover {
  color: #ffffff;
}

/* + New Thread Button */
.cc-new-thread-btn {
  background-color: var(--border-dark);
  border: none;
  border-radius: var(--radius-lg);
  padding: 9px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.15s;
}

.cc-new-thread-btn:hover {
  background-color: var(--bg-hover-dark);
}

/* Navigation Items */
.cc-menu-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
}

.cc-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  color: #c5c4bf;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.cc-menu-item:hover {
  background-color: var(--bg-hover-dark);
  color: #ffffff;
}

.cc-menu-item.active {
  background-color: var(--bg-active-dark);
  color: #ffffff;
  font-weight: 500;
}

.cc-badge-pill {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
  color: #a1a19d;
  margin-left: auto;
}

.cc-section-label {
  font-size: 11px;
  font-weight: 600;
  color: #8e8d88;
  letter-spacing: 0.05em;
  margin: 16px 0 8px;
  padding: 0 4px;
}

.cc-sub-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  color: #a1a19d;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}

.cc-sub-item:hover {
  background-color: var(--bg-hover-dark);
  color: #ffffff;
}

.sub-item-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555552;
}

.sub-item-bullet.green {
  background: var(--accent-green);
}

/* Sidebar User Footer */
.cc-sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid #242321;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cc-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2d2c29;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.cc-user-info {
  flex: 1;
  overflow: hidden;
}

.cc-user-name {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-user-role {
  font-size: 11px;
  color: #8e8d88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* User Profile Container & Popover Menu */
.cc-sidebar-user-container {
  position: relative;
  width: 100%;
}

.cc-sidebar-user {
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-radius: 6px;
  margin: 0 6px 6px;
}

.cc-sidebar-user:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.cc-logout-quick-btn {
  background: transparent;
  border: none;
  color: #8e8d88;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.cc-logout-quick-btn:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.12);
}

/* Floating User Dropdown Menu */
.cc-user-dropdown-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 8px;
  right: 8px;
  background-color: #1a1918;
  border: 1px solid #2d2c29;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 8px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: dropdownPopUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cc-user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 12px;
}

.cc-dropdown-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.cc-dropdown-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-dropdown-email {
  font-size: 11px;
  color: #a8a7a1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-dropdown-role-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.1);
  color: #e5e5e4;
  padding: 2px 6px;
  border-radius: 4px;
}

.cc-user-dropdown-divider {
  height: 1px;
  background-color: #282724;
  margin: 4px 0;
}

.cc-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #d6d5cf;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.12s ease;
}

.cc-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.cc-dropdown-logout-btn {
  color: #f87171;
}

.cc-dropdown-logout-btn:hover {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.sidebar-contracted .cc-logout-quick-btn {
  display: none;
}

.sidebar-contracted .cc-user-dropdown-menu {
  left: 60px;
  bottom: 8px;
  width: 240px;
}

/* ==========================================================================
   MAIN DASHBOARD CONTENT AREA (Screenshot 9)
   ========================================================================== */
.app-main {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  padding: 32px 40px;
  background-color: var(--bg-dashboard);
}

/* Top Toolbar */
.cc-top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.cc-title-heading {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text-dark);
}

.cc-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Peers Toggle Switch */
.cc-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
}

.switch-pill {
  width: 34px;
  height: 18px;
  background: #27272a;
  border-radius: 10px;
  position: relative;
  transition: background 0.2s;
}

.switch-knob {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
}

.switch-pill.active .switch-knob {
  transform: translateX(16px);
}

.cc-btn-subtle {
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.cc-btn-subtle:hover {
  background: #f7f7f6;
  border-color: #c5c4bf;
}

.cc-btn-ask {
  background: #171615;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.cc-btn-ask:hover {
  background: #000000;
}

.btn-monogram {
  width: 16px;
  height: 16px;
  background: #ffffff;
  color: #171615;
  border-radius: 3px;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Recommendation Banner (Screenshot 9) */
.cc-alert-bar {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dark);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.cc-badge-icon {
  width: 20px;
  height: 20px;
  background: #171615;
  color: #ffffff;
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 4 METRIC CARDS 2x2 GRID (Screenshot 9) */
.cc-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cc-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  min-height: 280px;
}

.cc-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cc-stat-num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #171615;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-stat-change {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
}

.cc-stat-subtext {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.cc-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

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

.cc-select-pill {
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--text-dark);
  border-radius: var(--radius-md);
  padding: 4px 10px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
}

/* Charts: Rising Area / Vertical Density Bars (Card 1 & Card 3) */
.chart-sim-area {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding-top: 10px;
}

.chart-sim-bar {
  flex: 1;
  background: #71706b;
  border-radius: 2px 2px 0 0;
  transition: height 0.3s ease, background 0.2s;
  min-height: 4px;
}

.chart-sim-bar:hover {
  background: #171615;
}

.chart-sim-bar.peer {
  background: #d4d4d0;
}

/* Card 2: Multi-Group Product Usage Vertical Bars */
.chart-multi-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 120px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.bar-pair {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
}

.bar-sub-1 {
  width: 8px;
  background: #3f3e3a;
  border-radius: 2px 2px 0 0;
}

.bar-sub-2 {
  width: 8px;
  background: #d4d4d0;
  border-radius: 2px 2px 0 0;
}

/* Card 4: Top Power Users Horizontal Bars */
.power-users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.power-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.power-user-name {
  width: 110px;
  color: var(--text-dark);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.power-user-bar-track {
  flex: 1;
  height: 8px;
  background: #f0f0ee;
  border-radius: 4px;
  overflow: hidden;
}

.power-user-bar-fill {
  height: 100%;
  background: #3f3e3a;
  border-radius: 4px;
}

.power-user-days {
  width: 55px;
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
}

/* Legend Row */
.chart-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

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

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.legend-dot.org { background: #3f3e3a; }
.legend-dot.peer { background: #d4d4d0; }
.legend-dot.alert { background: #e09696; }

/* ==========================================================================
   CONTRACT INTELLIGENCE TAB & PROJECT TITAN SPACES
   ========================================================================== */
.table-container {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.contract-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.contract-table th {
  background: #fcfcfb;
  color: var(--text-muted);
  font-weight: 500;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
}

.contract-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-dark);
}

.contract-table tr:hover td {
  background: #fbfbfa;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.in-progress {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}

.status-badge.approved {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.status-badge.flagged {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* ==========================================================================
   ASK BLACKSTONE INTERACTIVE MODAL DIALOG
   ========================================================================== */
.blackstone-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.blackstone-modal-backdrop.open {
  display: flex;
}

.thread-dialog {
  background: #ffffff;
  width: 90%;
  max-width: 680px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 80vh;
}

.thread-dialog-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thread-dialog-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

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

.dialog-close-btn:hover {
  color: #000000;
}

.thread-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.thread-msg {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.msg-avatar.ai {
  background: #171615;
  color: #ffffff;
  font-family: var(--font-serif);
}

.msg-avatar.user {
  background: #2563eb;
  color: #ffffff;
}

.msg-content {
  flex: 1;
  background: #f7f7f6;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
}

.thread-input-bar {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
}

.thread-input {
  flex: 1;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}

.thread-input:focus {
  border-color: #000000;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-headline {
    font-size: 56px;
  }
  .cc-cards-grid {
    grid-template-columns: 1fr;
  }
  .heritage-grid, .solutions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bs-split-login {
    grid-template-columns: 1fr;
  }
  .bs-login-right {
    display: none;
  }
  .nav-menu-list {
    display: none;
  }
  .hero-headline {
    font-size: 42px;
  }
  .app-layout {
    flex-direction: column;
  }
  .cc-sidebar {
    width: 100%;
    height: auto;
  }
}

/* "Powered by" credit */
.powered { margin: 14px 0 0; font-size: 13px; color: #71706b; text-align: center; }
.powered-link { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.powered-link:hover { color: #171615; }
.powered-dark { color: #8e8d88; text-align: left; margin-top: 14px; }
.powered-dark .powered-link:hover { color: #fff; }
.powered-fixed { position: fixed; left: 0; right: 0; bottom: 10px; margin: 0; z-index: 50; pointer-events: none; }
.powered-fixed .powered-link { pointer-events: auto; }
.powered-app { left: auto; right: 16px; width: auto; text-align: right; background: rgba(255,255,255,.9); padding: 4px 10px; border-radius: 6px; font-size: 12px; }
.powered-login { right: 50%; }
@media (max-width: 900px) { .powered-login { right: 0; } }



/* ==========================================================================
   AUTH0 / Blackstone EXACT CAPTCHA & IDENTITY CHALLENGE FLOW
   ========================================================================== */
.auth0-body {
  background-color: #ffffff;
  color: #171615;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  font-family: var(--font-sans);
}

.auth0-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth0-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.auth0-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #000000;
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 24px;
  transition: transform 0.15s ease;
}

.auth0-logo-badge:hover {
  transform: scale(1.04);
}

.auth0-heading {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: #171615;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.auth0-subheading {
  font-size: 14px;
  color: #666663;
  line-height: 1.5;
  margin-bottom: 32px;
}

.auth0-step-section {
  display: none;
}

.auth0-step-section.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

.auth0-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

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

.auth0-label {
  font-size: 13px;
  font-weight: 500;
  color: #383836;
}

.auth0-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: #171615;
  background: #ffffff;
  border: 1px solid #d1d1cf;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth0-input:focus {
  border-color: #171615;
  box-shadow: 0 0 0 2px rgba(23, 22, 21, 0.08);
}

.auth0-otp-input {
  font-size: 24px;
  letter-spacing: 8px;
  text-align: center;
  font-family: 'BlackstoneSans', sans-serif;
  font-weight: 600;
}

/* Captcha Widget */
.auth0-captcha-box {
  background-color: #fafafa;
  border: 1px solid #e2e2e0;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 8px;
}

.captcha-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.captcha-spinner-dots {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(16, 185, 129, 0.25);
  border-top-color: #10b981;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.captcha-checkmark {
  width: 22px;
  height: 22px;
  background-color: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
}

.captcha-status-text {
  font-size: 14px;
  color: #666663;
}

.captcha-success-text {
  font-size: 14px;
  font-weight: 500;
  color: #171615;
}

.captcha-right {
  display: flex;
  align-items: center;
}

.captcha-troubleshoot-link {
  font-size: 11px;
  color: #8e8d88;
  text-decoration: none;
}

.captcha-troubleshoot-link:hover {
  text-decoration: underline;
}

/* Submit Button */
.auth0-btn-submit {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 16px;
  background-color: #0f0e0d;
  color: #ffffff;
  border: 1px solid #0f0e0d;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
  margin-top: 4px;
}

.auth0-btn-submit:hover:not(:disabled) {
  background-color: #262422;
  border-color: #262422;
}

.auth0-btn-submit:hover:not(:disabled) {
  opacity: 0.92;
  transform: translateY(-1px);
}

.auth0-btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Step 2 Email Badge */
.auth0-email-badge {
  background-color: #fafafa;
  border: 1px solid #e5e5e4;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.badge-email-text {
  font-size: 14px;
  color: #171615;
  font-weight: 400;
}

.badge-edit-btn {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  color: #171615;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.auth0-error-text {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
}

.auth0-resend-prompt {
  font-size: 13px;
  color: #666663;
  text-align: center;
  margin-top: 14px;
}

.auth0-link-btn {
  background: none;
  border: none;
  color: #171615;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.auth0-footer {
  padding: 24px;
  text-align: center;
}

/* Toast */
.auth-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #171615;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 99999;
}

.auth-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.auth-toast.error {
  background-color: #dc2626;
}

.hidden {
  display: none !important;
}

/* B mark: crisp sharp rectangle with a white B (loader, headers, badges) */
.bs-loader-monogram,.monogram-badge,.cc-badge-icon,.brand-b,.sf-mark,.bs-logo-badge,.auth0-logo-badge,.rd-logo,.bs-notif-badge,.bs-cookie-badge{display:inline-grid!important;place-items:center;background:#000!important;color:#fff!important;border-radius:0!important;border:0!important;font-family:'BlackstoneSerif',Georgia,serif;font-weight:700;line-height:1}
.bs-loader-monogram{width:56px;height:56px;font-size:32px;border-radius:0!important}
/* wordmark text sits on the same centre line as the badge */
.brand-wordmark,.sp-logo{display:inline-flex!important;align-items:center;line-height:1}
.brand-wordmark,.sp-logo,.cc-brand,.monogram-badge+*{padding-top:0}
.brand-wordmark .brand-b,.sp-logo .brand-b{margin-top:-4px}


/* B mark = pure sharp square (radius 0px) */
.bs-loader-monogram,.monogram-badge,.cc-badge-icon,.brand-b,.sf-mark,.bs-logo-badge,.auth0-logo-badge,.rd-logo,.btn-monogram,.msg-avatar.ai,.brand-mark,.bs-notif-badge,.bs-cookie-badge{border-radius:0!important}
.bs-loader-monogram{border-radius:0!important}
