/* ============================================================================
   COTHREAD DESIGN SYSTEM - COTHREAD NEO-BRUTALIST EDITION
   Palette: CoThread Pink (#FF90E8), Safety Yellow (#FFC900), Teal (#23A094),
            Bright Orange (#FF6B00), Paper Gray (#F4F4F0), Pure Black (#000000)
   Borders: 2px solid #000000 | Shadows: Hard Offset 4px 4px 0px #000000
   ============================================================================ */

:root,
html[data-theme="light"] {
  --ct-pink: #FF90E8;
  --ct-yellow: #FFC900;
  --ct-teal: #23A094;
  --ct-orange: #FF6B00;
  --ct-red: #FF4D4D;

  --bg-page: #F4F4F0;
  --bg-elevated: #FFFFFF;
  --bg-sand: #FFF8D6;
  --bg-sand-strong: #FFE885;
  --bg-sidebar: #FFFFFF;
  --bg-glass: #FFFFFF;

  --ink-primary: #000000;
  --ink-secondary: #242423;
  --ink-muted: #52524E;

  --border-hairline: #000000;
  --border-strong: #000000;

  --accent-terracotta: #FF90E8;
  --accent-terracotta-soft: #FFE4F8;
  --accent-emerald: #23A094;
  --accent-emerald-soft: #D9F7F4;
  --accent-indigo: #FFC900;
  --accent-indigo-soft: #FFF5C2;
  --accent-blue: #3B82F6;

  --cta-obsidian-bg: #000000;
  --cta-obsidian-text: #FFFFFF;
  --cta-obsidian-hover: #FF90E8;

  --shadow-soft: 4px 4px 0px #000000;
  --shadow-float: 6px 6px 0px #000000;
  --shadow-pill: 3px 3px 0px #000000;

  --code-bg: #000000;
  --code-text: #FFC900;
}

html[data-theme="dark"] {
  --ct-pink: #FF90E8;
  --ct-yellow: #FFC900;
  --ct-teal: #23A094;
  --ct-orange: #FF6B00;
  --ct-red: #FF4D4D;

  --bg-page: #121212;
  --bg-elevated: #1E1E1E;
  --bg-sand: #262624;
  --bg-sand-strong: #333330;
  --bg-sidebar: #181818;
  --bg-glass: #181818;

  --ink-primary: #FFFFFF;
  --ink-secondary: #E0E0DC;
  --ink-muted: #A0A09C;

  --border-hairline: rgba(255, 255, 255, 0.45);
  --border-strong: #FFFFFF;

  --accent-terracotta: #FF90E8;
  --accent-terracotta-soft: rgba(255, 144, 232, 0.2);
  --accent-emerald: #23A094;
  --accent-emerald-soft: rgba(35, 160, 148, 0.22);
  --accent-indigo: #FFC900;
  --accent-indigo-soft: rgba(255, 201, 0, 0.2);

  --cta-obsidian-bg: #FF90E8;
  --cta-obsidian-text: #000000;
  --cta-obsidian-hover: #FFC900;

  --shadow-soft: 4px 4px 0px rgba(255, 255, 255, 0.35);
  --shadow-float: 6px 6px 0px rgba(255, 255, 255, 0.45);
  --shadow-pill: 3px 3px 0px rgba(255, 255, 255, 0.35);

  --code-bg: #000000;
  --code-text: #FF90E8;
}

:root {
  --font-serif: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.wordmark-serif {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  line-height: 1;
}

.wordmark-serif.sm {
  font-size: 21px;
}

/* ============================================================================
   1. COTHREAD STICKY FULL-WIDTH TOP NAVBAR & CUSTOM LOGO
   ============================================================================ */
.website-root {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-page);
}

.cothread-navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 74px;
  background: var(--bg-elevated);
  border-bottom: 2px solid var(--border-strong);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding-left: 20px;
}

.cothread-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

.cothread-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.cothread-logo-coin {
  flex-shrink: 0;
  display: block;
  transition: transform 0.2s ease;
}

.cothread-brand-link:hover .cothread-logo-coin {
  transform: rotate(-10deg) scale(1.08);
}

.cothread-wordmark {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.cothread-beta-sticker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  background: var(--ct-pink);
  color: #000000;
  border: 2px solid #000000;
  border-radius: 6px;
  box-shadow: 2px 2px 0px #000000;
  flex-shrink: 0;
}

.cothread-github-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 2px solid var(--border-strong);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.cothread-github-pill:hover {
  background: var(--ct-yellow);
  color: #000000;
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0px #000000;
}

.star-icon {
  color: #000000;
  background: var(--ct-pink);
  border: 1.5px solid #000000;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.cothread-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.cothread-nav-pill {
  padding: 7px 13px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.cothread-nav-pill:hover {
  border-color: var(--border-strong);
  background: var(--ct-yellow);
  color: #000000;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px #000000;
}

.cothread-nav-pill.active {
  background: var(--ink-primary);
  color: var(--bg-elevated);
  border-color: var(--border-strong);
}

.cothread-nav-pill.idea-pill {
  background: var(--accent-terracotta-soft);
  border-color: var(--border-strong);
  color: var(--ink-primary);
  font-weight: 700;
}

.cothread-nav-EdgeActions {
  display: flex;
  align-items: stretch;
  height: 100%;
  flex-shrink: 0;
}

.cothread-edge-btn {
  height: 100%;
  padding: 0 20px;
  border: none;
  border-left: 2px solid var(--border-strong);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.cothread-edge-btn.theme-edge {
  background: var(--bg-page);
  color: var(--ink-primary);
  padding: 0 18px;
  font-size: 13.5px;
}
.cothread-edge-btn.theme-edge:hover {
  background: var(--ct-yellow);
  color: #000000;
}

.cothread-edge-btn.login-edge {
  background: var(--bg-elevated);
  color: var(--ink-primary);
}
.cothread-edge-btn.login-edge:hover {
  background: var(--ct-pink);
  color: #000000;
}

.cothread-edge-btn.cta-edge {
  background: #000000;
  color: #FFFFFF;
  padding: 0 28px;
}
html[data-theme="dark"] .cothread-edge-btn.cta-edge {
  background: var(--ct-pink);
  color: #000000;
}
.cothread-edge-btn.cta-edge:hover {
  background: var(--ct-pink);
  color: #000000;
}

/* ============================================================================
   2. COTHREAD HERO SECTION, PARALLAX COINS & TRIPLE-LAYER STACKED BUTTONS
   ============================================================================ */
.cothread-hero-section {
  position: relative;
  padding: 96px 28px 112px;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2.5px solid var(--border-strong);
  overflow: hidden;
  background: var(--bg-page);
}

.hero-coins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-coin {
  position: absolute;
  will-change: transform;
}

.coin-pos-1 { top: 44px; left: 4%; }
.coin-pos-2 { top: 48px; right: 4.5%; }
.coin-pos-3 { bottom: 60px; left: 2.5%; }
.coin-pos-4 { bottom: 52px; right: 3.5%; }
.coin-pos-5 { bottom: 26px; left: 24%; }

.cothread-hero-center {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-brand-emblem-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 22px 8px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 3px solid #000000;
  box-shadow: 5px 5px 0px #000000;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-brand-emblem-wrap:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px #000000;
}

.hero-center-logo-img {
  width: 68px;
  height: 68px;
  display: block;
  flex-shrink: 0;
}

.hero-brand-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink-primary);
}

.cothread-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.3rem, 6.6vw, 5.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink-primary);
}

.cothread-underline-yellow {
  display: inline-block;
  background: var(--ct-yellow);
  color: #000000;
  padding: 0 14px 4px;
  border: 2.5px solid #000000;
  border-radius: 14px;
  box-shadow: 4px 4px 0px #000000;
  transform: rotate(1deg);
}

.cothread-highlight-pink {
  display: inline-block;
  background: var(--ct-pink);
  color: #000000;
  padding: 0 16px 4px;
  border: 2.5px solid #000000;
  border-radius: 16px;
  box-shadow: 5px 5px 0px #000000;
  transform: rotate(-1.5deg);
}

.cothread-hero-subtitle {
  max-width: 720px;
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
  font-weight: 500;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.cothread-hero-subtitle code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--ct-yellow);
  color: #000000;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1.5px solid #000000;
  font-weight: 700;
}

/* Exact CoThread Action Row: Triple-Layer Stacked Button + Search/Sublink Input Box */
.cothread-hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cothread-layered-btn-wrap {
  position: relative;
  display: inline-block;
}

.cothread-layer-red {
  position: absolute;
  inset: 0;
  background: var(--ct-red);
  border: 2px solid #000000;
  border-radius: 10px;
  z-index: 1;
  transition: transform 0.15s ease;
}

.cothread-layer-yellow {
  position: absolute;
  inset: 0;
  background: var(--ct-yellow);
  border: 2px solid #000000;
  border-radius: 10px;
  z-index: 2;
  transition: transform 0.15s ease;
}

.cothread-layer-main {
  position: relative;
  z-index: 3;
  height: 62px;
  padding: 0 32px;
  border-radius: 10px;
  background: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.cothread-layered-btn-wrap:hover .cothread-layer-red {
  transform: translate(8px, 8px);
}
.cothread-layered-btn-wrap:hover .cothread-layer-yellow {
  transform: translate(4px, 4px);
}
.cothread-layered-btn-wrap:hover .cothread-layer-main {
  transform: translate(-4px, -4px);
  background: var(--ct-pink);
  color: #000000;
}

.cothread-hero-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 350px;
  max-width: 100%;
  height: 62px;
  background: #FFFFFF;
  border: 2.5px solid #000000;
  border-radius: 10px;
  box-shadow: 4px 4px 0px #000000;
  padding: 0 8px 0 16px;
}

.cothread-hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #000000;
  outline: none;
}

.cothread-hero-search-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid #000000;
  background: var(--ct-pink);
  color: #000000;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, background 0.12s ease;
}
.cothread-hero-search-btn:hover {
  background: var(--ct-yellow);
  transform: translate(-1px, -1px);
}

.cothread-hero-quick-stickers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.cothread-mini-sticker {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cothread-mini-sticker.yellow { background: var(--ct-yellow); color: #000000; }
.cothread-mini-sticker.teal { background: var(--ct-teal); color: #FFFFFF; }
.cothread-mini-sticker.pink { background: var(--ct-pink); color: #000000; }
.cothread-mini-sticker:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #000000;
}

.cothread-live-studio-section {
  padding: 68px 28px;
  background: var(--ct-pink);
  border-bottom: 2.5px solid #000000;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 28px;
  align-items: stretch;
}

.hero-left-col {
  display: flex;
  flex-direction: column;
}

.claude-style-auth-card {
  width: 100%;
  background: var(--bg-elevated);
  border: 2.5px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: 6px 6px 0px #000000;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-card-sticker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sticker-badge-yellow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  background: var(--ct-yellow);
  color: #000000;
  border: 1.5px solid #000000;
  border-radius: 6px;
}

.sticker-badge-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  background: var(--ct-teal);
  color: #FFFFFF;
  border: 1.5px solid #000000;
  border-radius: 6px;
}

.invite-banner-editorial {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--ct-yellow);
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  font-size: 12px;
}

.invite-pulse-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ct-teal);
  border: 1.5px solid #000000;
  margin-top: 4px;
  flex-shrink: 0;
}

.invite-banner-copy strong {
  display: block;
  font-size: 12.5px;
  color: #000000;
}
.invite-banner-copy p {
  font-size: 11.5px;
  color: #000000;
}

.btn-continue-google {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  color: #000000;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-continue-google:hover {
  background: var(--ct-yellow);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
}

.editorial-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.editorial-or-divider::before,
.editorial-or-divider::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--border-strong);
}

.hero-email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editorial-email-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--bg-page);
  border: 2px solid var(--border-strong);
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 600;
  outline: none;
}
.editorial-email-input:focus {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 3px 3px 0px #000000;
}

.editorial-email-input.sm {
  height: 40px;
  font-size: 12.5px;
}

.signup-drawer .drawer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-continue-obsidian {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  background: var(--ct-pink);
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-continue-obsidian:hover {
  background: var(--ct-yellow);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
}

.auth-card-bottom-row {
  display: flex;
  justify-content: center;
}

.link-toggle-signup {
  background: transparent;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-primary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.instant-demo-strip {
  padding-top: 12px;
  border-top: 2px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-strip-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-primary);
}

.demo-strip-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-launch-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 2px solid var(--border-strong);
  box-shadow: 2px 2px 0px #000000;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  cursor: pointer;
  transition: all 0.12s ease;
}
.demo-launch-pill:hover {
  background: var(--ct-pink);
  color: #000000;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #000000;
}

.avatar-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #FFFFFF;
}
.avatar-dot.alex, .avatar-dot.host { background: #3B82F6; }
.avatar-dot.hasnain, .avatar-dot.guest { background: #23A094; }

/* Right Column: Neo-Brutalist Live Multiplayer Room Preview Window */
.hero-right-stage {
  display: flex;
  align-items: stretch;
}

.interactive-showcase-window {
  width: 100%;
  background: var(--bg-elevated);
  border: 2.5px solid var(--border-strong);
  border-radius: 24px;
  box-shadow: 6px 6px 0px #000000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.showcase-window-bar {
  padding: 12px 18px;
  background: var(--ct-yellow);
  color: #000000;
  border-bottom: 2px solid #000000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.window-dots {
  display: flex;
  gap: 7px;
}
.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #000000;
  background: #FFFFFF;
}
.window-dots span:nth-child(1) { background: var(--ct-red); }
.window-dots span:nth-child(2) { background: var(--ct-pink); }
.window-dots span:nth-child(3) { background: var(--ct-teal); }

.window-route-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
}

.live-green-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ct-teal);
  border: 1.5px solid #000000;
}

.window-avatars {
  display: flex;
  align-items: center;
}
.mini-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-left: -6px;
}
.mini-av:first-child { margin-left: 0; }
.mini-av.alex, .mini-av.host { background: #3B82F6; }
.mini-av.hasnain, .mini-av.guest { background: #23A094; }
.mini-av.sarah { background: #FF6B00; }

.showcase-quota-strip {
  padding: 10px 18px;
  background: var(--accent-emerald-soft);
  color: var(--ink-primary);
  border-bottom: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}
.sq-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ct-teal);
  color: #FFFFFF;
  border: 1.5px solid #000000;
  margin-right: 6px;
}
.sq-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sq-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
}
.sq-bar {
  width: 86px;
  height: 10px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1.5px solid #000000;
  overflow: hidden;
}
.sq-fill {
  height: 100%;
  background: var(--ct-pink);
}

.showcase-messages-area {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-page);
  flex: 1;
}

.sc-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.sc-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
}
.sc-av.alex, .sc-av.host { background: #3B82F6; }
.sc-av.hasnain, .sc-av.guest { background: #23A094; }
.sc-av.ai { background: var(--ct-pink); color: #000000; }

.sc-bubble {
  flex: 1;
  padding: 11px 14px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 2px solid var(--border-strong);
  box-shadow: 3px 3px 0px #000000;
  font-size: 13px;
  color: var(--ink-primary);
}
.sc-bubble.ai-surface {
  background: var(--ct-yellow);
  color: #000000;
}
.sc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11.5px;
}
.sc-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--ct-pink);
  color: #000000;
  border: 1.5px solid #000000;
}
.sc-quota-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  background: #FFFFFF;
  color: #000000;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1.5px solid #000000;
}
.mention {
  background: var(--ct-pink);
  color: #000000;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid #000000;
  font-weight: 800;
}

.showcase-bottom-bar {
  padding: 12px 18px;
  background: var(--bg-elevated);
  border-top: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sc-branch-hint {
  font-size: 12px;
  font-weight: 700;
}
.sc-actions {
  display: flex;
  gap: 8px;
}
.sc-copy-btn {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--ct-yellow);
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.sc-copy-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #000000;
}
.sc-enter-btn {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ct-pink);
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.sc-enter-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #000000;
}

/* ============================================================================
   3. COTHREAD BENTO SHOWCASE, "THE COTHREAD WAY" ORANGE LOOP & MARQUEE
   ============================================================================ */
.editorial-bento-section,
.cothread-way-section,
.pricing-section {
  padding: 80px 28px;
  border-bottom: 2px solid var(--border-strong);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.cothread-bento-pair {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.cothread-bento-card {
  border: 2.5px solid var(--border-strong);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 6px 6px 0px #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.cothread-bento-card.bg-white-card {
  background: var(--bg-elevated);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.cothread-bento-card.bg-yellow-card {
  background: var(--ct-yellow);
  color: #000000;
}

.gbc-pill-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  width: fit-content;
}
.gbc-pill-tag.pink { background: var(--ct-pink); color: #000000; }
.gbc-pill-tag.black { background: #000000; color: #FFFFFF; }

.cothread-bento-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 10px 0;
}

.cothread-bento-card p {
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
}

.cothread-checklist {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
}
.gc-pink-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ct-pink);
  color: #000000;
  border: 2px solid #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  flex-shrink: 0;
}

.neo-sticker-window {
  background: var(--bg-page);
  border: 2.5px solid #000000;
  border-radius: 20px;
  box-shadow: 5px 5px 0px #000000;
  overflow: hidden;
}
.nsw-top {
  background: #000000;
  color: #FFFFFF;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.nsw-live { color: #4ADE80; font-weight: 800; }
.nsw-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nsw-chip {
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid #000000;
  font-weight: 800;
  font-size: 12.5px;
  color: #000000;
  box-shadow: 2px 2px 0px #000000;
}
.nsw-chip.pink { background: var(--ct-pink); }
.nsw-chip.yellow { background: var(--ct-yellow); }
.nsw-chip.teal { background: var(--ct-teal); color: #FFFFFF; }

.neo-meter-sticker {
  background: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 4px 4px 0px #000000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nms-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}
.nms-bar {
  height: 12px;
  border-radius: 999px;
  border: 2px solid #000000;
  background: #F4F4F0;
  overflow: hidden;
}
.nms-fill {
  height: 100%;
  background: var(--ct-pink);
}
.nms-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #23A094;
}

/* CoThread "Instead of... start..." Comparison Cards */
.cothread-comparison-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.cothread-comp-card {
  background: var(--bg-elevated);
  border: 2.5px solid var(--border-strong);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 6px 6px 0px #000000;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cothread-comp-card.highlight-teal {
  background: var(--ct-teal);
  color: #FFFFFF;
}

.floating-speech-tag {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 16px;
  background: #FFFFFF;
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  font-size: 17px;
  font-weight: 700;
  width: fit-content;
}
.floating-speech-tag.pink-tag {
  background: var(--ct-pink);
}

.comp-illustration {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sad-pill,
.happy-pill {
  padding: 11px 16px;
  border-radius: 12px;
  border: 2px solid #000000;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg-page);
  color: var(--ink-primary);
}
.happy-pill {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 3px 3px 0px #000000;
}

/* Section 3: "How CoThread Works" 4-Step Enterprise Workflow Grid */
.cothread-center-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 16px;
}

.cothread-section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--ct-yellow);
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  margin-bottom: 14px;
}

.cothread-way-lead {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.cothread-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.cothread-step-card {
  background: var(--bg-elevated);
  border: 2.5px solid var(--border-strong);
  border-radius: 22px;
  padding: 24px 20px;
  box-shadow: 5px 5px 0px #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.cothread-step-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px #000000;
}

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

.step-num-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
  color: #000000;
}
.step-num-badge.pink { background: var(--ct-pink); }
.step-num-badge.yellow { background: var(--ct-yellow); }
.step-num-badge.teal { background: var(--ct-teal); color: #FFFFFF; }
.step-num-badge.orange { background: var(--ct-orange); color: #FFFFFF; }

.step-role-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--ink-primary);
  border: 1.5px solid var(--border-strong);
}

.cothread-step-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.cothread-step-card p {
  font-size: 13.8px;
  line-height: 1.55;
  color: var(--ink-secondary);
  flex: 1;
}

.step-card-visual {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-page);
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-family: var(--font-mono);
}

.step-live-dot {
  color: #16A34A;
  font-weight: 800;
}

.step-tag-ok {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--ct-yellow);
  color: #000000;
  border: 1.5px solid #000000;
  font-weight: 800;
  font-size: 10.5px;
}

.step-action-btn {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  background: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.step-action-btn:hover {
  background: var(--ct-pink);
  color: #000000;
  transform: translate(-1px, -1px);
}

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

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

/* Section 4: Giant CoThread Stat & Marquee Pills */
.cothread-stat-marquee-section {
  padding: 84px 0;
  border-bottom: 2px solid var(--border-strong);
  background: var(--bg-elevated);
  overflow: hidden;
}

.cothread-giant-stat {
  text-align: center;
  padding: 0 24px 56px;
}

.giant-stat-number {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 11vw, 9.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink-primary);
  text-shadow: 5px 5px 0px var(--ct-pink);
}

.giant-stat-caption {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.cothread-marquee-wrap {
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
}

.cothread-marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: cothreadMarquee 28s linear infinite;
}
.cothread-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes cothreadMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cothread-tag-pill {
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--bg-page);
  color: var(--ink-primary);
  border: 2px solid var(--border-strong);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cothread-tag-pill.pink { background: var(--ct-pink); color: #000000; }
.cothread-tag-pill.yellow { background: var(--ct-yellow); color: #000000; }
.cothread-tag-pill.teal { background: var(--ct-teal); color: #FFFFFF; }

.cothread-tag-pill:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0px #000000;
}

/* Section 5: CoThread Neo-Brutalist Pricing Cards */
.section-header-editorial.center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-lead {
  font-size: 17px;
  color: var(--ink-secondary);
  font-weight: 500;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.pricing-card {
  padding: 32px;
  border-radius: 26px;
  background: var(--bg-elevated);
  border: 2.5px solid var(--border-strong);
  box-shadow: 6px 6px 0px #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  position: relative;
}

.pricing-card.featured-pro {
  background: var(--ct-pink);
  color: #000000;
}

.pro-popular-pill {
  position: absolute;
  top: -15px;
  left: 24px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--ct-yellow);
  color: #000000;
  border: 2px solid #000000;
  box-shadow: 3px 3px 0px #000000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.pricing-Header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pricing-Header-row h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
}

.tier-coin-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid #000000;
  box-shadow: 2px 2px 0px #000000;
}
.tier-coin-badge.yellow { background: var(--ct-yellow); color: #000000; }
.tier-coin-badge.black { background: #000000; color: #FFFFFF; }
.tier-coin-badge.teal { background: var(--ct-teal); color: #FFFFFF; }

.pricing-price {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
}
.pricing-price span {
  font-size: 14px;
  font-weight: 600;
}

.pricing-quota-highlight {
  margin-top: 10px;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--ct-yellow);
  color: #000000;
  border: 2px solid #000000;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
}
.pricing-quota-highlight.pro-color {
  background: #FFFFFF;
  color: #000000;
}

.pricing-desc {
  margin-top: 10px;
  font-size: 14.5px;
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.pricing-cta-btn {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 2px solid #000000;
  box-shadow: 4px 4px 0px #000000;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pricing-cta-btn.primary {
  background: #000000;
  color: #FFFFFF;
}
.pricing-cta-btn.secondary {
  background: var(--ct-yellow);
  color: #000000;
}
.pricing-cta-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
}

/* CoThread Closing Banner & Black Footer */
.cothread-closing-banner {
  background: var(--ct-pink);
  color: #000000;
  padding: 80px 28px;
  border-bottom: 2px solid #000000;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.cothread-closing-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.editorial-footer {
  padding: 48px 28px;
  background: #000000;
  color: #FFFFFF;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-brand-col .wordmark-serif {
  color: #FFFFFF;
  font-weight: 700;
}
.footer-copy {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}
.footer-links-col {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-link-btn {
  padding: 8px 16px;
  border-radius: 999px;
  background: #1E1E1E;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer-link-btn:hover {
  background: var(--ct-pink);
  color: #000000;
  border-color: #000000;
}

@media (max-width: 1040px) {
  .hero-container,
  .cothread-bento-pair,
  .cothread-bento-card.bg-white-card,
  .cothread-comparison-duo,
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
  .cothread-nav-links,
  .hero-coins-layer {
    display: none;
  }
}

/* ============================================================================
   4. PRODUCTION WORKSPACE (/app & /s/:shareCode - CLAUDE.AI + CHATGPT.COM STYLE)
   ============================================================================ */
.app-shell {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-page);
}

.workspace-top-header {
  height: 54px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  z-index: 30;
}

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

.back-to-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}
.back-to-site-brand:hover {
  background: var(--bg-sand);
}

.model-selector-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-sand);
  border: 1px solid var(--border-hairline);
}

.sparkle-icon {
  color: var(--accent-terracotta);
  font-size: 13px;
}

.header-model-select {
  background: transparent;
  border: none;
  color: var(--ink-primary);
  font-size: 12.5px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}
.header-model-select option {
  background: var(--bg-elevated);
  color: var(--ink-primary);
}

.flash-lite-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
}

/* Center Sublink Route Pill */
.route-sublink-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  background: var(--bg-sand);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 11.5px;
  max-width: 440px;
}

.route-domain {
  color: var(--ink-muted);
}

.route-path {
  color: var(--accent-emerald);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route-path.personal-route {
  color: var(--accent-indigo);
}

.route-copy-btn {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.route-copy-btn:hover {
  border-color: var(--border-strong);
}

.top-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-emerald-soft);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-emerald);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.header-utility-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-sand);
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.14s ease;
}
.header-utility-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}
.header-utility-btn.active-split {
  background: var(--cta-obsidian-bg);
  color: var(--cta-obsidian-text);
}

/* Workspace Stage */
.workspace-stage {
  height: calc(100vh - 54px);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--bg-page);
}

.workspace-stage.split-mode {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  background: var(--bg-sand-strong);
}

.workspace-pane {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
}
.workspace-stage:not(.split-mode) .workspace-pane {
  border: none;
  border-radius: 0;
}

.pane-identity-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-sand);
  border-bottom: 1px solid var(--border-hairline);
}

.pane-body-grid {
  flex: 1;
  display: flex;
  min-height: 0;
  min-width: 0;
}

/* Left Sidebar (Claude.ai Warm Sand Sidebar) */
.pane-sidebar {
  width: 264px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 0;
}
.workspace-stage.split-mode .pane-sidebar {
  width: 220px;
}

.sidebar-new-chat-wrap {
  padding: 12px 10px 6px 10px;
  display: flex;
  gap: 6px;
}

.new-chat-primary-btn {
  flex: 1;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--cta-obsidian-bg);
  color: var(--cta-obsidian-text);
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.new-shared-btn {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.sidebar-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-section-header {
  padding: 0 8px 4px 8px;
}

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.session-nav-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.14s ease;
}
.session-nav-item:hover {
  background: rgba(20, 20, 19, 0.04);
}
.session-nav-item.active-shared,
.session-nav-item.active-personal {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.nav-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.nav-item-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item-count {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}
.nav-item-sublink {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
}

.quota-sponsor-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 5px;
}
.quota-sponsor-badge.host-sponsored {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}
.quota-sponsor-badge.personal-owned {
  background: var(--bg-sand);
  color: var(--ink-secondary);
}
.quota-sponsor-badge.forked-personal {
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
}

/* Bottom Profile Card in Sidebar */
.sidebar-account-footer {
  margin: 8px;
  padding: 11px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-soft);
}

.account-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.account-user-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  flex-shrink: 0;
  position: relative;
}
.avatar-circle.alex, .avatar-circle.host { background: #3B82F6; }
.avatar-circle.hasnain, .avatar-circle.guest { background: #0E9F6E; }
.avatar-circle.robina { background: #EC4899; }
.avatar-circle.sarah { background: #D97757; }
.avatar-circle.custom { background: #6366F1; }
.avatar-circle.gemini { background: linear-gradient(135deg, #D97757, #4893FC); }

.online-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: 1.5px solid var(--bg-elevated);
}

.account-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.account-user-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-user-email {
  font-size: 10.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-tier-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--bg-sand);
  color: var(--ink-primary);
}

.sidebar-key-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid var(--border-strong, #000);
  background: var(--bg-sand, #f4f4f0);
  color: var(--ink-primary, #000);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 1.5px 1.5px 0px var(--border-strong, #000);
  transition: all 0.12s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.sidebar-key-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2.5px 2.5px 0px var(--border-strong, #000);
  background: var(--ct-yellow, #FFC900);
}

.sidebar-key-btn.has-key {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.15);
}

.account-token-utilization {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg-sand, #F4F4F0);
  border: 1px solid var(--border-hairline, rgba(0, 0, 0, 0.1));
}

.token-util-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.token-util-title {
  font-weight: 700;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 3px;
}

.token-util-numbers {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.token-util-track {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.token-util-fill {
  height: 100%;
  background: #10B981;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.mini-progress-track {
  width: 100%;
  height: 5px;
  background: var(--bg-sand);
  border-radius: 999px;
  overflow: hidden;
}
.mini-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #D97757, #4893FC);
}

.quota-card-stats {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--ink-secondary);
}

.account-footer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.acct-btn {
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--bg-sand);
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
  cursor: pointer;
}
.acct-btn:hover {
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

/* Center Session Column */
.pane-main-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg-page);
}

.session-docs-header {
  padding: 10px 18px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.session-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.session-title-cluster {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.session-mode-badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.session-mode-badge.shared-mode {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}
.session-mode-badge.personal-mode {
  background: var(--bg-sand);
  color: var(--ink-secondary);
}

.session-title-heading {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.presence-avatar-stack {
  display: flex;
  align-items: center;
}
.presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 3px;
  border-radius: 999px;
  background: var(--bg-sand);
  border: 1px solid var(--border-hairline);
  font-size: 11px;
  font-weight: 600;
}
.presence-pill .avatar-circle {
  width: 20px;
  height: 20px;
  font-size: 9.5px;
}

.hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink-primary);
  transition: all 0.14s ease;
}
.hdr-btn:hover {
  background: var(--bg-sand);
}
.hdr-btn.continue-independently-btn {
  background: var(--cta-obsidian-bg);
  color: var(--cta-obsidian-text);
  border-color: var(--cta-obsidian-bg);
}
.hdr-btn.continue-independently-btn:hover {
  background: var(--cta-obsidian-hover);
}
.hdr-btn.canvas-toggle-btn.active {
  background: var(--accent-terracotta-soft);
  border-color: var(--accent-terracotta);
  color: var(--accent-terracotta);
}

/* Session Quota Strip */
.session-quota-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--bg-sand);
  border: 1px solid var(--border-hairline);
  flex-wrap: wrap;
  font-size: 11.5px;
}

.quota-bar-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.quota-bar-title { font-weight: 700; color: var(--ink-primary); }
.quota-bar-numbers {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-secondary);
}
.compression-saved-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--accent-terracotta);
}

.quota-bar-visual {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
}
.quota-track-lg {
  width: 110px;
  height: 6px;
  background: rgba(20, 20, 19, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.quota-fill-lg {
  height: 100%;
  background: var(--accent-emerald);
}
.quota-fill-lg.personal {
  background: var(--accent-terracotta);
}

/* Conversation Stream & Floating Pill Composer (Claude.ai + Gemini.google style) */
.chat-and-canvas-split {
  flex: 1;
  display: flex;
  min-height: 0;
  min-width: 0;
}

.chat-stream-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg-page);
}

.messages-scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
}

.stream-context-banner {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  background: var(--bg-sand);
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.msg-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  max-width: 92%;
}
.msg-row.own-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-row.ai-message {
  max-width: 100%;
  align-self: stretch;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.msg-row.own-message .msg-bubble {
  background: var(--bg-sand);
  border-color: var(--border-strong);
}
.msg-row.ai-message .msg-bubble {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
}

.msg-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.msg-author-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
}
.msg-author-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-primary);
}
.msg-role-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 5px;
  background: var(--bg-sand);
  color: var(--ink-secondary);
}
.msg-intent-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
}
.msg-timestamp {
  font-size: 10.5px;
  font-family: var(--font-mono);
  color: var(--ink-muted);
}

.msg-content-body {
  font-size: 13.8px;
  color: var(--ink-primary);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-content-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-sand);
  padding: 1px 5px;
  border-radius: 4px;
}

.msg-code-block {
  margin-top: 6px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  overflow-x: auto;
  white-space: pre;
}

.msg-quota-footer {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.quota-attribution-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-sand);
  color: var(--ink-secondary);
}
.quota-attribution-pill.charged-host {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.sync-to-canvas-btn {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-sand);
  border: 1px solid var(--border-strong);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
}

.live-typing-bar {
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 4px 24px;
  font-size: 11.5px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Floating Pill Composer (Claude.ai + Gemini.google.com style) */
.composer-dock {
  max-width: 840px;
  width: calc(100% - 32px);
  margin: 0 auto 14px auto;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-pill);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.composer-mode-switch {
  display: flex;
  gap: 5px;
}

.mode-pill-btn {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border-hairline);
  background: var(--bg-sand);
  color: var(--ink-secondary);
  cursor: pointer;
}
.mode-pill-btn.active-ai-mode {
  background: var(--cta-obsidian-bg);
  color: var(--cta-obsidian-text);
  border-color: var(--cta-obsidian-bg);
}
.mode-pill-btn.active-chat-mode {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
  border-color: var(--accent-emerald);
}

.quick-prompt-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.quick-chip {
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-sand);
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
}
.quick-chip:hover {
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

.composer-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.composer-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 6px 4px;
  font-size: 13.5px;
  color: var(--ink-primary);
  outline: none;
}

.composer-send-btn {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--cta-obsidian-bg);
  color: var(--cta-obsidian-text);
  white-space: nowrap;
}

/* Collaborative Canvas / Artifact Drawer (Claude Artifacts Style) */
.shared-canvas-drawer {
  width: 320px;
  background: var(--bg-sand);
  border-left: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.workspace-stage.split-mode .shared-canvas-drawer { width: 240px; }
.shared-canvas-drawer.collapsed { display: none; }

.canvas-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.canvas-title { font-size: 12px; font-weight: 700; color: var(--ink-primary); }
.canvas-subtitle { font-size: 10.5px; color: var(--ink-muted); }

.canvas-editor {
  flex: 1;
  width: 100%;
  resize: none;
  border: none;
  outline: none;
  background: var(--bg-elevated);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.55;
  padding: 14px;
}
.canvas-footer {
  padding: 8px 14px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--ink-muted);
}

/* ============================================================================
   5. MODALS & TOASTS
   ============================================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 19, 0.52);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 120;
}

.modal-card {
  width: 100%;
  max-width: 540px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.google-chooser-modal {
  max-width: 420px;
}
.google-modal-top {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.google-modal-top .modal-close-btn { margin-left: auto; }
.google-modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.google-modal-body h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
}
.google-modal-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: -10px;
}
.google-account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.google-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  cursor: pointer;
  text-align: left;
}
.google-account-row:hover {
  border-color: var(--border-strong);
  background: var(--bg-sand);
}
.google-acct-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.google-acct-info strong {
  display: block;
  font-size: 13px;
  color: var(--ink-primary);
}
.google-acct-info small {
  font-size: 11px;
  color: var(--ink-muted);
}

.editorial-input, .form-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  font-size: 13px;
  outline: none;
}

.modal-header {
  padding: 16px 20px;
  background: var(--bg-sand);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.modal-title-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.modal-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
}
.modal-subtitle {
  font-size: 12px;
  color: var(--ink-muted);
}
.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--ink-muted);
  cursor: pointer;
}
.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.share-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-sand);
  border: 1px solid var(--border-strong);
  padding: 7px 10px;
  border-radius: 10px;
}
.share-link-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-primary);
  outline: none;
}

.form-section { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  display: flex;
  justify-content: space-between;
}
.form-help { font-size: 11.5px; color: var(--ink-muted); }

.quota-slider-wrap {
  background: var(--bg-sand);
  border: 1px solid var(--border-hairline);
  padding: 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quota-slider { width: 100%; accent-color: var(--accent-terracotta); cursor: pointer; }

.participant-breakdown-list { display: flex; flex-direction: column; gap: 6px; }
.participant-breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-sand);
  font-size: 12px;
}

.plan-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.plan-tier-card {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  cursor: pointer;
}
.plan-tier-card.active-plan {
  border: 2px solid var(--ink-primary);
  background: var(--bg-sand);
}
.plan-tier-card h4 { font-weight: 700; font-size: 13px; }
.plan-tier-quota { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--accent-terracotta); margin: 4px 0; }
.plan-tier-desc { font-size: 11px; color: var(--ink-muted); }

.modal-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-hairline);
}
.btn-primary {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--cta-obsidian-bg);
  color: var(--cta-obsidian-text);
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.btn-secondary {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-sand);
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.btn-danger {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.12);
  color: #E11D48;
  border: 1px solid rgba(244, 63, 94, 0.3);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 160;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--ink-primary);
  color: var(--bg-page);
  box-shadow: var(--shadow-float);
  font-size: 12.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

@media (max-width: 980px) {
  .hero-container,
  .bento-grid-4,
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
  .workspace-stage.split-mode {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

/* ============================================================================
   6. COTHREAD NEO-BRUTALIST WORKSPACE ENHANCEMENTS (/app & /s/:shareCode)
   ============================================================================ */
.workspace-top-header {
  height: 62px !important;
  background: var(--bg-elevated) !important;
  border-bottom: 2.5px solid #000000 !important;
}

.wordmark-serif.sm {
  font-family: var(--font-serif) !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  letter-spacing: -0.03em;
}

.model-selector-pill,
.route-sublink-bar,
.sync-status-pill,
.header-utility-btn {
  border: 2px solid #000000 !important;
  box-shadow: 3px 3px 0px #000000 !important;
  font-weight: 700 !important;
  background: var(--bg-elevated) !important;
  color: var(--ink-primary) !important;
}

.sync-status-pill {
  background: var(--ct-yellow) !important;
  color: #000000 !important;
}

.header-utility-btn:hover,
.route-copy-btn:hover,
.hdr-btn:hover,
.new-chat-primary-btn:hover,
.new-shared-btn:hover,
.acct-btn:hover {
  background: var(--ct-pink) !important;
  color: #000000 !important;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #000000 !important;
}

.pane-sidebar {
  background: var(--bg-page) !important;
  border-right: 2.5px solid #000000 !important;
}

.new-chat-primary-btn {
  background: var(--ct-pink) !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: 3px 3px 0px #000000 !important;
  font-weight: 800 !important;
}

.new-shared-btn {
  background: var(--ct-yellow) !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: 3px 3px 0px #000000 !important;
  font-weight: 800 !important;
}

.session-nav-item {
  border: 2px solid transparent !important;
  border-radius: 12px !important;
}

.session-nav-item.active-shared {
  background: var(--ct-pink) !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: 4px 4px 0px #000000 !important;
}

.session-nav-item.active-personal {
  background: var(--ct-yellow) !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: 4px 4px 0px #000000 !important;
}

.sidebar-account-footer {
  border: 2px solid #000000 !important;
  box-shadow: 4px 4px 0px #000000 !important;
  border-radius: 14px !important;
}

.session-docs-header {
  background: var(--bg-elevated) !important;
  border-bottom: 2.5px solid #000000 !important;
}

.session-mode-badge.shared-mode {
  background: var(--ct-pink) !important;
  color: #000000 !important;
  border: 1.5px solid #000000 !important;
  box-shadow: 2px 2px 0px #000000;
}

.session-mode-badge.personal-mode {
  background: var(--ct-yellow) !important;
  color: #000000 !important;
  border: 1.5px solid #000000 !important;
  box-shadow: 2px 2px 0px #000000;
}

.hdr-btn {
  border: 2px solid #000000 !important;
  box-shadow: 3px 3px 0px #000000 !important;
  font-weight: 700 !important;
}

.hdr-btn.continue-independently-btn {
  background: var(--ct-yellow) !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: 3px 3px 0px #000000 !important;
  font-weight: 800 !important;
}

.session-quota-bar-row {
  background: var(--bg-page) !important;
  border: 2px solid #000000 !important;
  box-shadow: 3px 3px 0px #000000 !important;
}

.msg-bubble {
  border: 2px solid #000000 !important;
  box-shadow: 4px 4px 0px #000000 !important;
  border-radius: 16px !important;
}

.msg-row.own-message .msg-bubble {
  background: var(--ct-yellow) !important;
  color: #000000 !important;
}

.composer-dock {
  border: 2.5px solid #000000 !important;
  box-shadow: 6px 6px 0px #000000 !important;
  border-radius: 18px !important;
}

.composer-send-btn,
.mode-pill-btn.active-ai-mode {
  background: var(--ct-pink) !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: 3px 3px 0px #000000 !important;
  font-weight: 800 !important;
}

.modal-card {
  border: 2.5px solid #000000 !important;
  box-shadow: 8px 8px 0px #000000 !important;
}

/* ============================================================================
   7. ALL-DEVICE RESPONSIVE & CROSS-BROWSER COMPATIBILITY (MOBILE, TABLET, 4K)
   ============================================================================ */

/* Global cross-browser & touch ergonomics */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

img,
svg {
  max-width: 100%;
}

/* Dynamic viewport height for iOS Safari / Android Chrome */
.app-shell {
  height: 100vh;
  height: 100dvh;
}

.workspace-stage {
  flex: 1;
  height: auto !important;
  min-height: 0;
}

.pane-body-grid {
  position: relative;
  overflow: hidden;
}

/* Desktop default: hide mobile-only sidebar controls */
.mobile-sidebar-toggle-btn,
.mobile-sidebar-close-btn,
.mobile-sidebar-backdrop {
  display: none;
}

/* Laptop & Split-Screen Comfort (<= 1360px) */
@media (max-width: 1360px) {
  .workspace-stage.split-mode .mobile-sidebar-toggle-btn {
    display: inline-flex !important;
  }

  .workspace-stage.split-mode .mobile-sidebar-close-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-elevated);
    border: 2px solid #000000;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
  }

  .workspace-stage.split-mode .pane-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 260px) !important;
    z-index: 45;
    transform: translateX(-105%);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 6px 0 0 #000000;
  }

  .workspace-stage.split-mode .pane-sidebar.mobile-open {
    transform: translateX(0);
  }
}

/* Medium Laptop & Zoomed Desktop (<= 1220px) */
@media (max-width: 1220px) {
  .cothread-nav-links {
    display: none;
  }
}

/* Tablet & Small Laptop (<= 1080px) */
@media (max-width: 1080px) {
  .cothread-navbar {
    padding-left: 16px;
  }

  .hero-coins-layer {
    display: none;
  }

  .hero-container,
  .cothread-bento-pair,
  .cothread-bento-card.bg-white-card,
  .cothread-comparison-duo,
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Artifact Canvas becomes a slide-over drawer on tablets/phones */
  .shared-canvas-drawer:not(.collapsed) {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(92vw, 380px) !important;
    z-index: 42;
    border-left: 2.5px solid #000000 !important;
    box-shadow: -6px 0 0 rgba(0, 0, 0, 0.25);
  }
}

/* Tablet Portrait & Mobile Landscape (<= 860px) */
@media (max-width: 860px) {
  /* Workspace Top Header wraps cleanly */
  .workspace-top-header {
    height: auto !important;
    min-height: 56px;
    padding: 8px 12px !important;
    flex-wrap: wrap;
    gap: 8px;
  }

  .top-header-left {
    gap: 8px;
    flex-wrap: wrap;
  }

  .flash-lite-tag,
  .route-domain {
    display: none;
  }

  .route-sublink-bar {
    order: 3;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
  }

  .top-header-right {
    margin-left: auto;
    gap: 6px;
    flex-wrap: wrap;
  }

  /* Dual-pane stacks vertically with scroll on narrow tablets/phones */
  .workspace-stage.split-mode {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .workspace-stage.split-mode .workspace-pane {
    min-height: 78vh;
  }

  /* Left Sidebar becomes a responsive slide-over drawer */
  .mobile-sidebar-toggle-btn {
    display: inline-flex !important;
  }

  .mobile-sidebar-close-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--bg-elevated);
    border: 2px solid #000000;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
  }

  .pane-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 300px) !important;
    z-index: 45;
    transform: translateX(-105%);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 6px 0 0 #000000;
  }

  .pane-sidebar.mobile-open {
    transform: translateX(0);
  }

  .mobile-sidebar-backdrop.open {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 40;
  }

  /* "The CoThread Way" Orange Loop adapts from pill to rounded card */
  .cothread-orange-pill-loop {
    border-radius: 28px;
    padding: 20px;
  }

  .loop-inner-track {
    border-radius: 20px;
    padding: 20px 16px;
  }

  .loop-top-labels,
  .loop-bottom-labels {
    justify-content: center;
  }
}

/* Mobile Phones (<= 640px) */
@media (max-width: 640px) {
  /* Sticky Navbar fits all phone widths */
  .cothread-navbar {
    height: 62px;
    padding-left: 12px;
  }

  .cothread-logo-coin {
    width: 34px;
    height: 34px;
  }

  .cothread-wordmark {
    font-size: 21px;
  }

  .cothread-github-pill {
    display: none;
  }

  .cothread-edge-btn {
    padding: 0 12px;
    font-size: 13px;
  }

  .cothread-edge-btn.theme-edge {
    padding: 0 10px;
  }

  .cothread-edge-btn.cta-edge {
    padding: 0 14px;
    font-size: 13px;
  }

  /* Hero section mobile scaling */
  .cothread-hero-section {
    padding: 44px 16px 52px;
    min-height: auto;
  }

  .hero-brand-emblem-wrap {
    padding: 6px 16px 6px 8px;
    gap: 10px;
  }

  .hero-center-logo-img {
    width: 48px;
    height: 48px;
  }

  .hero-brand-name {
    font-size: 24px;
  }

  .cothread-hero-title {
    font-size: clamp(2.25rem, 10vw, 3.2rem);
    line-height: 1.06;
  }

  .cothread-underline-yellow,
  .cothread-highlight-pink {
    padding: 0 10px 2px;
    border-radius: 10px;
  }

  .cothread-hero-subtitle {
    font-size: 1rem;
  }

  .cothread-hero-cta-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .cothread-layered-btn-wrap,
  .cothread-layer-main,
  .cothread-hero-search-form {
    width: 100%;
  }

  .cothread-layer-main,
  .cothread-hero-search-form {
    height: 54px;
  }

  .cothread-hero-quick-stickers {
    gap: 8px;
  }

  .cothread-mini-sticker {
    font-size: 11.5px;
    padding: 6px 12px;
  }

  /* Sections & Cards padding on phones */
  .cothread-live-studio-section,
  .editorial-bento-section,
  .cothread-way-section,
  .pricing-section,
  .cothread-closing-banner {
    padding: 44px 16px;
  }

  .claude-style-auth-card,
  .cothread-bento-card,
  .cothread-comp-card,
  .pricing-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .signup-drawer .drawer-row {
    grid-template-columns: 1fr;
  }

  .showcase-window-bar,
  .showcase-quota-strip,
  .showcase-messages-area,
  .showcase-bottom-bar {
    padding: 12px;
  }

  .sc-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }

  .sc-copy-btn,
  .sc-enter-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  /* Workspace Session Header & Chat Stream on phones */
  .sync-status-pill {
    display: none;
  }

  .session-docs-header {
    padding: 8px 12px;
  }

  .session-title-heading {
    font-size: 16px;
  }

  .session-header-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hdr-btn {
    padding: 5px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .messages-scroll-container {
    padding: 12px;
  }

  .msg-row {
    max-width: 100%;
  }

  .msg-bubble {
    padding: 10px 12px;
  }

  .composer-dock {
    width: calc(100% - 16px);
    margin: 0 auto calc(10px + env(safe-area-inset-bottom, 0px)) auto;
    padding: 8px 10px;
  }

  .composer-input-row {
    flex-wrap: nowrap;
  }

  /* Prevent iOS Safari zoom on input focus */
  .composer-input,
  .editorial-email-input,
  .editorial-input,
  .form-select,
  .cothread-hero-search-input {
    font-size: 16px !important;
  }

  /* Modals & Toasts on phones */
  .modal-backdrop {
    padding: 10px;
  }

  .modal-card {
    max-height: 92dvh;
    border-radius: 16px;
  }

  .modal-header,
  .modal-body,
  .google-modal-body {
    padding: 14px;
  }

  .share-link-box {
    flex-direction: column;
    align-items: stretch;
  }

  .plan-tier-grid {
    grid-template-columns: 1fr;
  }

  .modal-footer-actions {
    flex-wrap: wrap;
  }

  .toast-container {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .toast-item {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* Compact Phones (<= 380px, e.g., iPhone SE / Galaxy Fold Cover) */
@media (max-width: 380px) {
  .cothread-edge-btn.login-edge {
    display: none;
  }

  .cothread-wordmark {
    font-size: 19px;
  }

  .mode-pill-btn {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* ==========================================================================
   Gemini / Claude Style Dummy Auth Portal
   ========================================================================== */
.auth-portal-root {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-page);
  position: relative;
  z-index: 10;
}

.auth-portal-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-elevated);
  border: 2px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: 6px 6px 0px var(--border-strong);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-portal-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.auth-logo {
  border-radius: 12px;
  border: 2px solid var(--border-strong);
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.4;
}

.auth-invite-banner {
  background: rgba(35, 160, 148, 0.12);
  border: 1.5px solid var(--ct-teal);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-alert-box {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: authAlertFadeIn 0.2s ease;
}

.auth-alert-box.hidden {
  display: none !important;
}

.auth-alert-box.error {
  background: rgba(225, 29, 72, 0.1);
  border: 1.5px solid #E11D48;
  color: #BE123C;
}

.auth-alert-box.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1.5px solid #10B981;
  color: #047857;
}

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

.auth-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-page);
  padding: 4px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink-muted);
  transition: all 0.15s ease;
}

.auth-tab-btn.active {
  background: var(--bg-elevated);
  color: var(--ink-primary);
  border: 1.5px solid var(--border-strong);
  box-shadow: 2px 2px 0px var(--border-strong);
}

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

.auth-form.hidden {
  display: none !important;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-muted);
}

.auth-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 2px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--ink-primary);
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: var(--accent-terracotta);
}

.auth-submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: 2px solid var(--border-strong);
  background: var(--ct-yellow);
  color: #000;
  cursor: pointer;
  box-shadow: 3px 3px 0px var(--border-strong);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  margin-top: 4px;
}

.auth-submit-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--border-strong);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px dashed var(--border-strong);
}

.auth-divider span {
  padding: 0 10px;
}

.quick-test-profiles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-profile-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-page);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.quick-profile-btn:hover {
  background: var(--bg-sand);
}

.quick-profile-info strong {
  display: block;
  font-size: 13px;
  color: var(--ink-primary);
}

.quick-profile-info small {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Google Docs Style Presence Avatars & Modern Share
   ========================================================================== */
.docs-presence-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.presence-avatar-stack {
  display: flex;
  align-items: center;
  background: var(--bg-sand);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  gap: 4px;
}

.presence-avatar-item {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.presence-avatar-item .avatar-circle {
  width: 24px;
  height: 24px;
  font-size: 10px;
  border: 1.5px solid #000;
}

.presence-avatar-item:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.share-chat-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  background: var(--ct-yellow);
  color: #000000;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--border-strong);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.share-chat-action-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--border-strong);
}

.chat-pane-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 28px 6px 28px;
  gap: 12px;
  background: transparent;
  flex-shrink: 0;
  z-index: 10;
}

.chat-pane-presence-stack {
  display: flex;
  align-items: center;
}

.chat-pane-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 2px solid var(--border-strong, #000000);
  background: var(--ct-yellow, #FFDE59);
  color: #000000;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--border-strong, #000000);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.chat-pane-share-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--border-strong, #000000);
  background: #FFE885;
}

.chat-pane-share-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px var(--border-strong, #000000);
}

.chat-pane-share-btn.hidden {
  display: none !important;
}

.header-key-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--border-strong);
  transition: all 0.15s ease;
}

.header-key-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--border-strong);
  background: var(--ct-yellow);
  color: #000000;
}

.header-key-btn.has-key {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.header-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 4px;
  border-radius: 999px;
  border: 2px solid var(--border-strong);
  background: var(--bg-elevated);
  box-shadow: 2px 2px 0px var(--border-strong);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.header-user-badge:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--border-strong);
}

.header-user-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-chat-sidebar-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--border-strong);
  background: var(--ct-yellow);
  color: #000;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 3px 3px 0px var(--border-strong);
  margin-bottom: 16px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.new-chat-sidebar-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--border-strong);
}

/* Colleague messages in multi-user shared chats */
.msg-row.colleague-message {
  align-self: flex-start;
  flex-direction: row;
}

.msg-row.colleague-message .msg-bubble {
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-strong);
}

.empty-chat-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}




/* ==========================================================================
   Model Pill inside Composer, Chat Item Menu, Share Modal, Prompt Actions
   ========================================================================== */
.composer-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 4px 6px 4px;
}

.composer-model-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-sand);
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 700;
}

.composer-model-pill select {
  background: transparent;
  border: none;
  font-weight: 700;
  font-size: 11.5px;
  cursor: pointer;
  outline: none;
}

.msg-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-hairline);
}

.msg-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-hairline);
  background: var(--bg-sand);
  color: var(--ink-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s ease;
}

.msg-action-btn:hover {
  background: var(--ct-yellow);
  color: #000;
  border-color: var(--border-strong);
}

/* ==========================================================================
   Chat Sidebar Nav Items with Clean Menu Spacing (No Overlap!)
   ========================================================================== */
.session-nav-item-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 12px !important;
  border: 2px solid transparent !important;
  padding: 3px 8px 3px 10px !important;
  margin-bottom: 5px !important;
  transition: all 0.15s ease;
  background: transparent;
  box-sizing: border-box;
}

.session-nav-item-wrap:hover {
  background: rgba(20, 20, 19, 0.06);
}

.session-nav-item-wrap.active-shared {
  background: var(--ct-pink) !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: 4px 4px 0px #000000 !important;
}

.session-nav-item-wrap.active-personal {
  background: var(--ct-yellow) !important;
  color: #000000 !important;
  border: 2px solid #000000 !important;
  box-shadow: 4px 4px 0px #000000 !important;
}

.session-nav-item-wrap .session-nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  cursor: pointer;
  text-align: left;
  color: inherit !important;
  border-radius: 0 !important;
}

.session-nav-item-wrap .session-nav-item .nav-item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.session-nav-item-wrap .nav-item-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 700;
  color: inherit;
}

.session-nav-item-wrap .nav-item-count {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
  color: inherit;
  flex-shrink: 0;
}

.session-nav-item-wrap .chat-item-menu-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  border-radius: 6px;
  opacity: 0.55;
  transition: opacity 0.15s ease, background 0.15s ease;
  margin-left: 6px;
}

.session-nav-item-wrap:hover .chat-item-menu-btn,
.session-nav-item-wrap.active-shared .chat-item-menu-btn,
.session-nav-item-wrap.active-personal .chat-item-menu-btn,
.session-nav-item-wrap .chat-item-menu-btn:hover {
  opacity: 1;
}

.session-nav-item-wrap .chat-item-menu-btn:hover {
  background: rgba(0, 0, 0, 0.14);
}

.chat-item-dropdown {
  position: absolute;
  top: 100%;
  right: 6px;
  z-index: 100;
  background: var(--bg-elevated);
  border: 2px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 4px 4px 0px var(--border-strong);
  padding: 4px;
  display: flex;
  flex-direction: column;
  min-width: 130px;
}

.chat-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  color: var(--ink-primary);
}

.chat-dropdown-item:hover {
  background: var(--bg-sand);
}

.chat-dropdown-item.delete {
  color: #DC2626;
}
.chat-dropdown-item.delete:hover {
  background: #FEE2E2;
}

/* ==========================================================================
   Gemini Style Minimalist Icon Action Bar (Copy & New Chat)
   ========================================================================== */
.gemini-action-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-hairline);
}

.gemini-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.gemini-icon-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--ink-primary);
}

[data-theme="dark"] .gemini-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

/* Sidebar Toggle Button in Top Header */
.sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink-primary);
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--border-strong);
  transition: all 0.12s ease;
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: var(--ct-yellow);
  transform: translate(-1px, -1px);
}

.header-chat-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
  margin-left: 8px;
}

/* Desktop Sidebar Collapsed state */
.pane-sidebar.desktop-collapsed {
  display: none !important;
}

/* ==========================================================================
   Share Modal (Private Collab vs Public Link)
   ========================================================================== */
.share-dialog-card {
  max-width: 480px;
  width: 90%;
  background: var(--bg-elevated);
  border: 2.5px solid var(--border-strong);
  box-shadow: 6px 6px 0px var(--border-strong);
  border-radius: 16px;
  padding: 20px;
}

.share-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.share-modal-desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.share-mode-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--border-hairline);
  padding-bottom: 8px;
}

.share-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  background: var(--bg-page);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-secondary);
  transition: all 0.12s ease;
}

.share-tab-btn.active {
  background: var(--ct-yellow);
  color: #000;
  border-color: var(--border-strong);
  box-shadow: 2px 2px 0px var(--border-strong);
}

.share-email-form {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}

.share-email-input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border-strong);
  font-size: 13px;
  background: var(--bg-page);
  color: var(--ink-primary);
}

.share-invite-submit-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 2px solid var(--border-strong);
  background: var(--ct-yellow);
  color: #000;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--border-strong);
  white-space: nowrap;
}

.share-invite-submit-btn:hover {
  transform: translate(-1px, -1px);
}

.share-collaborators-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 10px 0;
  max-height: 140px;
  overflow-y: auto;
}

.share-collab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border-hairline);
  font-size: 12px;
}

.share-notice-box {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-sand);
  border: 1px solid var(--border-hairline);
  font-size: 11.5px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.share-url-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 8px;
}

.share-url-input {
  flex: 1;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-page);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-primary);
}

.share-modal-copy-btn {
  padding: 0 16px;
  border-radius: 8px;
  border: 2px solid var(--border-strong);
  background: var(--ct-yellow);
  color: #000;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--border-strong);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  white-space: nowrap;
}

.share-modal-copy-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px var(--border-strong);
}

.auth-back-home-btn {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 8px;
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.auth-back-home-btn:hover {
  color: var(--ink-primary);
  text-decoration: underline;
}

/* ==========================================================================
   Mobile Header & Responsive Overrides
   ========================================================================== */
@media (max-width: 768px) {
  .session-docs-header {
    display: none !important;
  }

  .header-chat-title {
    max-width: 140px;
    font-size: 13.5px;
  }

  .workspace-top-header {
    padding: 0 10px !important;
  }

  .top-header-right {
    gap: 6px !important;
  }

  .share-chat-action-btn {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }
}

/* ==========================================================================
   Company Page Animations & Neo-Brutalist Micro-interactions
   ========================================================================== */

/* 1. Animated Hero Live Badge */
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 2px solid var(--border-strong);
  box-shadow: 3px 3px 0px var(--border-strong);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 22px;
  animation: badgePop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-live-badge:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px var(--border-strong);
}

@keyframes badgePop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.live-dot-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* 2. Floating Coin Logo in Hero */
.hero-center-logo-img {
  animation: heroCoinFloat 4s ease-in-out infinite;
}

@keyframes heroCoinFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

/* 3. Hero Subtitle Typewriter & Blinking Cursor */
.cothread-hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  min-height: 58px;
}

.animated-hero-text {
  font-weight: 600;
  color: var(--ink-primary);
}

.typing-cursor {
  display: inline-block;
  font-weight: 800;
  font-size: 1.15em;
  color: var(--ct-pink);
  animation: blinkCursor 0.8s infinite;
  margin-left: 2px;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* 4. Layered Button Hover Breathing */
.cothread-layered-btn-wrap {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cothread-layered-btn-wrap:hover {
  transform: translateY(-2px);
}

/* 5. Bento & Step Cards Smooth 3D Hover Lift */
.cothread-bento-card,
.cothread-step-card,
.pricing-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cothread-bento-card:hover,
.cothread-step-card:hover,
.pricing-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0px var(--border-strong) !important;
}

/* ==========================================================================
   Meet the Team Section
   ========================================================================== */
.team-section {
  padding: 84px 0;
  border-bottom: 2px solid var(--border-strong);
  background: var(--bg-elevated);
}

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

.team-card {
  background: var(--bg-page);
  border: 2px solid var(--border-strong);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 5px 5px 0px var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.team-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 9px 9px 0px var(--border-strong);
}

.team-avatar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-avatar-circle {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 2.5px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  box-shadow: 3px 3px 0px #000000;
}

.team-avatar-circle.pink {
  background: var(--ct-pink);
}

.team-avatar-circle.yellow {
  background: var(--ct-yellow);
}

.team-role-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid #000000;
  background: var(--bg-page);
  color: var(--ink-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0 0 4px;
}

.team-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin: 0 0 12px;
}

.team-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 16px;
  flex: 1;
}
.team-socials-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.team-handle-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  border: 1.5px solid var(--border-strong);
  width: fit-content;
  transition: all 0.15s ease;
}

.team-handle-link:hover {
  background: var(--ct-pink);
  color: #000000;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px #000000;
}

.team-handle-link.social-linkedin:hover {
  background: #90A8ED;
  color: #000000;
}

.team-handle-link.social-x:hover {
  background: #FFC900;
  color: #000000;
}

.team-handle-link.social-gde:hover,
.team-handle-link.social-email:hover {
  background: #23A094;
  color: #FFFFFF;
}

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

/* ==========================================================================
   Footer High-Contrast Credits (Bright & 100% Readable on Black Footer)
   ========================================================================== */
.footer-copy.footer-credit-text {
  font-size: 14px;
  line-height: 1.8;
  color: #E2E8F0 !important;
  margin-top: 8px;
  max-width: 820px;
}

.footer-copy.footer-credit-text .credit-line {
  display: block;
  margin-bottom: 5px;
  color: #E2E8F0 !important;
}

.footer-copy.footer-credit-text .credit-link {
  color: #FF70B8 !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.footer-copy.footer-credit-text .credit-link:hover {
  color: #FFDC58 !important;
}

/* ==========================================================================
   EIGENT.AI-INSPIRED INTERACTIVE COWORK ARCHITECTURE & WORKFORCE DIAGRAM
   ========================================================================== */
.eigent-arch-section {
  padding: 64px 0;
}

.eigent-cap-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 24px;
}

.eigent-cap-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-elevated, #FFFFFF);
  color: var(--ink-primary, #111111);
  border: 2.5px solid #000000;
  border-radius: 999px;
  box-shadow: 4px 4px 0px #000000;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.eigent-cap-tab:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px #000000;
}

.eigent-cap-tab.active {
  background: #000000;
  color: #FFFFFF;
}

.ect-num {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1.5px solid #000000;
  color: #000000;
}
.ect-num.pink { background: #FF90E8; }
.ect-num.yellow { background: #FFC900; }
.ect-num.teal { background: #23A094; color: #FFFFFF; }

.eigent-desktop-window {
  background: var(--bg-elevated, #FFFFFF);
  border: 3px solid #000000;
  border-radius: 24px;
  box-shadow: 8px 8px 0px #000000;
  overflow: hidden;
}

.edw-topbar {
  background: #111111;
  color: #FFFFFF;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2.5px solid #000000;
}

.edw-topbar-left,
.edw-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.edw-dots {
  display: inline-flex;
  gap: 6px;
}
.edw-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  background: #FF5F56;
}
.edw-dots i:nth-child(2) { background: #FFBD2E; }
.edw-dots i:nth-child(3) { background: #27C93F; }

.edw-space-pill {
  background: #27272A;
  color: #FFC900;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.edw-divider {
  color: #71717A;
}

.edw-session-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #F4F4F5;
}

.edw-token-pill {
  background: #1F2937;
  color: #E5E7EB;
  border: 1px solid #374151;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
}
.edw-token-pill strong {
  color: #4ADE80;
}

.edw-avatar-stack {
  display: inline-flex;
  align-items: center;
}

.edw-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #000000;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
  color: #000000;
}
.edw-mini-avatar:first-child { margin-left: 0; }
.edw-mini-avatar.pink { background: #FF90E8; }
.edw-mini-avatar.yellow { background: #FFC900; }
.edw-mini-avatar.teal { background: #23A094; color: #FFFFFF; }

.edw-grid {
  display: grid;
  grid-template-columns: 250px 1fr 260px;
  min-height: 460px;
}

.edw-sidebar {
  border-right: 2.5px solid #000000;
  padding: 18px;
  background: var(--bg-page, #F4F4F0);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edw-inspector {
  border-left: 2.5px solid #000000;
  padding: 18px;
  background: var(--bg-page, #F4F4F0);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edw-side-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edw-side-heading {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-muted, #52525B);
}

.edw-hierarchy-.pill-chain,
.edw-side-group .pill-chain {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
}

.edw-h-chip {
  padding: 3px 8px;
  border-radius: 8px;
  border: 1.5px solid #000000;
  background: #FFFFFF;
  color: #000000;
  font-size: 11.5px;
  font-weight: 800;
}
.edw-h-chip.active {
  background: #FF90E8;
}

.edw-session-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid #000000;
  background: var(--bg-elevated, #FFFFFF);
  color: var(--ink-primary, #111111);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.edw-session-item:hover {
  transform: translateY(-1px);
}
.edw-session-item.active {
  background: #FFC900;
  color: #000000;
  box-shadow: 3px 3px 0px #000000;
}
.edw-s-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  border: 1.5px solid #000000;
}
.edw-s-dot.green { background: #22C55E; }
.edw-s-dot.yellow { background: #F59E0B; }
.edw-s-dot.pink { background: #EC4899; }

.edw-s-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.edw-s-meta strong {
  font-size: 12.5px;
  font-weight: 800;
}
.edw-s-meta small {
  font-size: 11px;
  opacity: 0.8;
}

.edw-env-card {
  background: var(--bg-elevated, #FFFFFF);
  border: 2px solid #000000;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.edw-env-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
}
.edw-env-row span { color: var(--ink-muted, #52525B); }
.edw-env-row strong { font-family: var(--font-mono, monospace); font-weight: 700; }

.edw-center-canvas {
  padding: 22px;
  background: var(--bg-elevated, #FFFFFF);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.edw-tab-pane.hidden {
  display: none;
}

.arch-flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arch-node-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.arch-node {
  border: 2px solid #000000;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--bg-page, #F4F4F0);
  color: var(--ink-primary, #111111);
  box-shadow: 3px 3px 0px #000000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.arch-node strong {
  font-size: 13px;
  font-weight: 800;
}
.arch-node small {
  font-size: 11.5px;
  opacity: 0.85;
}
.arch-node h4 {
  font-size: 14px;
  font-weight: 800;
  margin: 2px 0;
}
.arch-node p {
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
}

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

.arch-badge {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1.5px solid #000000;
  width: fit-content;
  color: #000000;
}
.arch-badge.pink { background: #FF90E8; }
.arch-badge.yellow { background: #FFC900; }
.arch-badge.teal { background: #23A094; color: #FFFFFF; }
.arch-badge.black { background: #000000; color: #FFFFFF; }

.arch-model-tag {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  background: #111111;
  color: #FFC900;
  padding: 2px 8px;
  border-radius: 6px;
}

.arch-connector-down {
  text-align: center;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-muted, #52525B);
  padding: 2px 0;
}

.edw-trajectory-demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.etd-prompt-bubble {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 2px solid #000000;
  border-radius: 16px;
  background: var(--bg-page, #F4F4F0);
  box-shadow: 3px 3px 0px #000000;
}
.etd-prompt-bubble p {
  margin: 6px 0 0;
  font-size: 13.5px;
  font-weight: 600;
}

.etd-steps-box {
  border: 2px solid #000000;
  border-radius: 16px;
  padding: 16px;
  background: #111111;
  color: #F4F4F5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.etd-steps-title {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 800;
  color: #FFC900;
}
.etd-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.etd-tag {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: #27272A;
  color: #FF90E8;
  flex-shrink: 0;
}

.etd-artifacts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.etd-artifact-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid #000000;
  background: #FFC900;
  color: #000000;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 3px 3px 0px #000000;
}

.edw-agent-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid #000000;
  border-radius: 12px;
  background: var(--bg-elevated, #FFFFFF);
  box-shadow: 3px 3px 0px #000000;
}
.edw-agent-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FF90E8;
  color: #000000;
  border: 1.5px solid #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.edw-agent-pill div {
  display: flex;
  flex-direction: column;
}
.edw-agent-pill strong { font-size: 12.5px; font-weight: 800; }
.edw-agent-pill small { font-size: 11px; color: var(--ink-muted, #52525B); }

.edw-progress-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.edw-progress-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}
.edw-progress-list li span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22C55E;
  color: #000000;
  border: 1.5px solid #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.edw-tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.edw-tool-tag {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1.5px solid #000000;
  background: var(--bg-elevated, #FFFFFF);
}

/* ==========================================================================
   IN-CHAT EIGENT-STYLE RIGHT INSPECTOR & AI TRAJECTORY STRIP
   ========================================================================== */
.chat-eigent-inspector {
  width: 280px;
  flex-shrink: 0;
  border-left: 1px solid var(--border-subtle, #E4E4E7);
  background: var(--surface-sidebar, #FAFAFA);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

.cei-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle, #E4E4E7);
}
.cei-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 13.5px;
}
.cei-close-btn {
  background: transparent;
  border: none;
  color: var(--ink-muted, #71717A);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 6px;
}
.cei-close-btn:hover {
  background: var(--surface-card, #FFFFFF);
  color: var(--ink-primary, #111111);
}
.cei-token-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
}
.cei-saved-tag {
  color: #16A34A;
  font-weight: 700;
}

.cei-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cei-label {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink-muted, #71717A);
}

.cei-agent-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle, #E4E4E7);
  background: var(--surface-card, #FFFFFF);
}
.cei-agent-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FF90E8;
  color: #000000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
}
.cei-agent-icon.teal {
  background: #23A094;
  color: #FFFFFF;
}
.cei-agent-card div {
  display: flex;
  flex-direction: column;
}
.cei-agent-card strong { font-size: 12px; font-weight: 700; }
.cei-agent-card small { font-size: 10.5px; color: var(--ink-muted, #71717A); }

.cei-progress-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cei-progress-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  line-height: 1.35;
}
.cei-progress-list li.done span {
  color: #16A34A;
  font-weight: 900;
}
.cei-progress-list li.running span {
  color: #F59E0B;
  font-weight: 900;
}

.cei-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cei-tag {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle, #E4E4E7);
  background: var(--surface-card, #FFFFFF);
}

.cei-empty-note {
  font-size: 11.5px;
  color: var(--ink-muted, #71717A);
  line-height: 1.4;
}

.cei-artifact-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle, #E4E4E7);
  background: var(--surface-card, #FFFFFF);
  color: var(--ink-primary, #111111);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.cei-artifact-btn:hover {
  border-color: #FF90E8;
}
.cei-art-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.msg-eigent-badge {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 144, 232, 0.2);
  color: var(--ink-primary, #111111);
  margin-left: 6px;
}

.msg-trajectory-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(35, 160, 148, 0.09);
  border: 1px solid rgba(35, 160, 148, 0.25);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--ink-muted, #52525B);
}
.mts-step {
  font-weight: 600;
}

@media (max-width: 1024px) {
  .edw-grid {
    grid-template-columns: 1fr;
  }
  .edw-sidebar {
    border-right: none;
    border-bottom: 2.5px solid #000000;
  }
  .edw-inspector {
    border-left: none;
    border-top: 2.5px solid #000000;
  }
  .arch-node-row {
    grid-template-columns: 1fr;
  }
  .chat-eigent-inspector {
    display: none;
  }
}

/* ==========================================================================
   VISUAL MERMAID FLOWCHART TREE & USE CASES SECTION
   ========================================================================== */
.mermaid-visual-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mvt-node {
  width: 100%;
  border: 2px solid #000000;
  border-radius: 14px;
  padding: 10px 14px;
  background: var(--bg-page, #F4F4F0);
  color: var(--ink-primary, #111111);
  box-shadow: 3px 3px 0px #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.mvt-node strong {
  font-size: 13px;
  font-weight: 800;
}
.mvt-node small {
  font-size: 11px;
  opacity: 0.85;
}

.mvt-top-node {
  background: #FF90E8;
  color: #000000;
}
.mvt-space-node {
  background: #FFC900;
  color: #000000;
}
.mvt-mcp-node {
  background: #111111;
  color: #FFFFFF;
}

.mvt-arrow {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 900;
  color: var(--ink-muted, #52525B);
  line-height: 1;
}
.mvt-arrow.sm {
  font-size: 11px;
}

.mvt-decision-pill {
  padding: 6px 18px;
  border-radius: 999px;
  border: 2px solid #000000;
  background: #000000;
  color: #FFC900;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 3px 3px 0px #FF90E8;
}

.mvt-branch-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 12px;
  align-items: stretch;
}

.mvt-branch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mvt-branch-label {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ink-muted, #52525B);
}

.mvt-bottom-duo {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mvt-out-node {
  background: #23A094;
  color: #FFFFFF;
}

/* Use Cases Section */
.use-cases-section {
  padding: 64px 0;
}

.usecase-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.uc-filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid #000000;
  background: var(--bg-elevated, #FFFFFF);
  color: var(--ink-primary, #111111);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 3px 3px 0px #000000;
  transition: transform 0.12s ease, background 0.12s ease;
}
.uc-filter-btn:hover {
  transform: translateY(-1px);
}
.uc-filter-btn.active {
  background: #000000;
  color: #FFFFFF;
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.usecase-card {
  background: var(--bg-elevated, #FFFFFF);
  color: var(--ink-primary, #111111);
  border: 2.5px solid #000000;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 6px 6px 0px #000000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.usecase-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px #000000;
}
.usecase-card.hidden {
  display: none;
}

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

.ucc-cat-pill {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid #000000;
  color: #000000;
}
.ucc-cat-pill.pink { background: #FF90E8; }
.ucc-cat-pill.yellow { background: #FFC900; }
.ucc-cat-pill.teal { background: #23A094; color: #FFFFFF; }

.ucc-model-tag {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #111111;
  color: #FFC900;
}

.usecase-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.usecase-card p {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.ucc-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ucc-artifacts span {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1.5px solid #000000;
  background: var(--bg-page, #F4F4F0);
}

.ucc-launch-btn {
  margin-top: 4px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid #000000;
  background: #FFC900;
  color: #000000;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 3px 3px 0px #000000;
  transition: background 0.15s ease, transform 0.12s ease;
}
.ucc-launch-btn:hover {
  background: #FF90E8;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mvt-branch-grid,
  .mvt-bottom-duo {
    grid-template-columns: 1fr;
  }
}

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




