  :root {
    --bg: #0d0f12;
    --bg2: #13161b;
    --bg3: #1a1e25;
    --bg4: #21262f;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.12);
    --text: #e8eaf0;
    --muted: #6b7280;
    --muted2: #9ca3af;
    --accent: #00d4a0;
    --accent2: #00b389;
    --accent-dim: rgba(0,212,160,0.1);
    --accent-dim2: rgba(0,212,160,0.06);
    --amber: #f59e0b;
    --blue: #3b82f6;
    --red: #ef4444;
    --mono: 'Berkeley Mono', monospace;
    --sans: 'DM Sans', sans-serif;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; min-height: 100vh; }
  a { color: inherit; text-decoration: none; }
  button { cursor: pointer; font-family: var(--sans); }
  input { font-family: var(--sans); }

  /* scrollbar */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

  /* ── Landing ── */
  .landing { min-height: 100vh; display: flex; flex-direction: column; background: #0a0a0f; }
  .landing-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(180,80,20,0.18) 0%, transparent 60%),
                radial-gradient(ellipse 40% 30% at 80% 80%, rgba(200,60,10,0.1) 0%, transparent 50%),
                radial-gradient(ellipse 50% 40% at 10% 70%, rgba(100,40,10,0.08) 0%, transparent 50%),
                #0a0a0f; }
  .landing-bg::after { content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,180,80,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 10%, rgba(255,120,40,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,200,100,0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 80%, rgba(255,140,60,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 50%, rgba(255,160,80,0.2) 0%, transparent 100%); }
  .landing > * { position: relative; z-index: 1; }
  .nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .logo { font-family: var(--mono); font-size: 18px; color: var(--accent); letter-spacing: -0.5px; }
  .logo span { color: var(--muted2); }
  .nav-actions { display: flex; gap: 12px; }
  .btn { padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 500; border: none; transition: all 0.15s; }
  .btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: var(--muted2); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn-primary { background: var(--accent); color: #000; font-weight: 600; }
  .btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
  .btn-sm { padding: 6px 14px; font-size: 12px; }
  .btn-danger { background: transparent; border: 1px solid rgba(239,68,68,0.3); color: var(--red); }
  .btn-danger:hover { background: rgba(239,68,68,0.1); }

  .hero { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 90px 40px 60px; text-align: center; }
  .hero h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 700; line-height: 1.05; margin-bottom: 24px; letter-spacing: -2.5px; color: #fff; }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero-sub { font-size: 18px; color: rgba(255,255,255,0.55); max-width: 560px; line-height: 1.6; margin-bottom: 12px; font-weight: 400; }
  .hero-sub strong { color: rgba(255,255,255,0.9); font-weight: 500; }
  .hero-actions { display: flex; gap: 12px; margin-top: 40px; }
  .btn-lg { padding: 13px 32px; font-size: 15px; border-radius: 8px; }
  .btn-cta { background: var(--accent); color: #000; font-weight: 700; font-size: 16px; padding: 16px 40px; border-radius: 8px; border: none; box-shadow: 0 0 40px rgba(0,212,160,0.3); }
  .btn-cta:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 0 60px rgba(0,212,160,0.4); }

  /* Demo split */
  .demo-section { padding: 20px 40px 80px; max-width: 1000px; margin: 0 auto; width: 100%; }
  .demo-split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: center; }
  .demo-arrow { display: flex; flex-direction: column; align-items: center; padding: 0 24px; }
  .demo-arrow-line { width: 2px; height: 60px; background: linear-gradient(to bottom, rgba(255,120,40,0.6), rgba(0,212,160,0.6)); }
  .demo-arrow-head { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid rgba(0,212,160,0.8); }
  .demo-arrow-icon { font-size: 32px; margin: 8px 0; }
  .demo-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); text-align: center; margin-bottom: 12px; letter-spacing: 1px; text-transform: uppercase; font-family: var(--mono); }
  .demo-panel { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
  .demo-panel-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.08); }
  .demo-dot { width: 10px; height: 10px; border-radius: 50%; }
  .demo-dot.r { background: #ff5f57; }
  .demo-dot.y { background: #febc2e; }
  .demo-dot.g { background: #28c840; }
  .demo-filename { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.4); margin-left: 8px; }
  .demo-code { background: #0f1117; padding: 20px; font-family: var(--mono); font-size: 12px; line-height: 1.7; }
  .demo-code .kw { color: #e06c75; }
  .demo-code .st { color: #98c379; }
  .demo-code .cm { color: #5c6370; font-style: italic; }
  .demo-code .vr { color: #e5c07b; }
  .demo-code .nm { color: #61afef; }
  .demo-doc { background: #fff; padding: 20px; }
  .demo-doc-badge { display: inline-block; font-family: var(--mono); font-size: 10px; background: rgba(91,130,255,0.15); color: #818cf8; padding: 2px 8px; border-radius: 4px; margin-bottom: 12px; }
  .demo-doc h2 { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 16px; font-family: var(--sans); }
  .demo-doc h3 { font-size: 12px; font-weight: 700; color: #333; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.5px; }
  .demo-doc ul { list-style: none; padding: 0; }
  .demo-doc li { font-size: 12px; color: #555; padding: 2px 0; display: flex; align-items: center; gap: 6px; }
  .demo-doc li::before { content: ""; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
  .demo-doc .regen-btn { display: inline-flex; align-items: center; gap: 6px; float: right; font-size: 11px; background: rgba(0,212,160,0.1); color: var(--accent); border: 1px solid rgba(0,212,160,0.3); padding: 4px 10px; border-radius: 4px; font-family: var(--mono); }
  .demo-doc .breadcrumb { font-family: var(--mono); font-size: 10px; color: #999; margin-bottom: 8px; }

  /* Pricing */
  .pricing-section { padding: 80px 40px; text-align: center; }
  .pricing-section h2 { font-size: 36px; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: -1px; }
  .pricing-section p { font-size: 16px; color: rgba(255,255,255,0.45); margin-bottom: 48px; }
  .pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
  .pricing-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 28px 20px; text-align: left; transition: all 0.2s; }
  .pricing-card:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); }
  .pricing-card.featured { background: rgba(0,212,160,0.08); border-color: rgba(0,212,160,0.4); }
  .pricing-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 16px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 1px; }
  .pricing-price { font-size: 40px; font-weight: 700; color: #fff; line-height: 1; margin-bottom: 4px; }
  .pricing-price span { font-size: 16px; color: rgba(255,255,255,0.45); font-weight: 400; }
  .pricing-features { margin-top: 20px; }
  .pricing-feature { font-size: 13px; color: rgba(255,255,255,0.55); padding: 5px 0; display: flex; align-items: center; gap: 8px; }
  .pricing-feature::before { content: ""; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

    .footer {
      padding: 28px 40px;
      border-top: 1px solid rgba(255,255,255,0.06);
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
      backdrop-filter: blur(8px);
    }
    
    .footer-left {
      font-family: var(--mono);
      font-size: 12px;
      color: var(--muted);
      letter-spacing: 0.3px;
    }
    
    .footer-links {
      display: flex;
      gap: 18px;
      font-family: var(--mono);
      font-size: 12px;
    }
    
    .footer-links a {
      color: var(--muted2);
      text-decoration: none;
      position: relative;
      transition: color 0.15s ease;
    }
    
    .footer-links a:hover {
      color: var(--text);
    }
    
    .footer-actions {
      display: flex;
      gap: 14px;
      font-family: var(--mono);
      font-size: 12px;
    }
    
    .footer-actions a {
      color: var(--muted2);
      text-decoration: none;
      transition: color 0.15s ease;
      cursor: pointer;
    }
    
    .footer-actions a:hover {
      color: var(--accent);
    }
    
    .footer-contact {
      opacity: 0.8;
    }
    
    .footer-signin {
      padding: 4px 10px;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 6px;
    }
    
    .footer-signin:hover {
      border-color: var(--accent);
      background: rgba(0,212,160,0.08);
    }

  /* ── Auth ── */
  .auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
  .auth-card { width: 100%; max-width: 400px; background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 40px; }
  .auth-logo { font-family: var(--mono); font-size: 20px; color: var(--accent); text-align: center; margin-bottom: 32px; }
  .auth-title { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
  .auth-sub { font-size: 13px; color: var(--muted2); margin-bottom: 32px; }
  .form-group { margin-bottom: 16px; }
  .form-label { display: block; font-size: 12px; color: var(--muted2); margin-bottom: 6px; font-family: var(--mono); }
  .form-input { width: 100%; padding: 10px 14px; background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 14px; outline: none; transition: border-color 0.15s; }
  .form-input:focus { border-color: var(--accent); }
  .form-input::placeholder { color: var(--muted); }
  .btn-block { width: 100%; padding: 11px; font-size: 14px; border-radius: 6px; }
  .auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
  .auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
  .auth-divider span { font-size: 12px; color: var(--muted); }
  .btn-oauth { width: 100%; padding: 10px; background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: 6px; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.15s; }
  .btn-oauth:hover { border-color: var(--border2); background: var(--bg4); }
  .auth-switch { text-align: center; margin-top: 24px; font-size: 13px; color: var(--muted2); }
  .auth-switch a { color: var(--accent); cursor: pointer; }
  .error-msg { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: var(--red); padding: 10px 14px; border-radius: 6px; font-size: 13px; margin-bottom: 16px; }

  /* ── Dashboard ── */
  .dashboard { display: flex; min-height: 100vh; }
  .sidebar { width: 220px; background: var(--bg2); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; }
  .sidebar-logo { padding: 20px 20px 16px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 16px; color: var(--accent); }
  .sidebar-logo span { color: var(--muted); }
  .sidebar-section { padding: 16px 12px 8px; font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
  .sidebar-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px; margin: 1px 8px; font-size: 13px; color: var(--muted2); cursor: pointer; transition: all 0.12s; min-width: 0; overflow: hidden; }
  .sidebar-item:hover { background: var(--bg3); color: var(--text); }
  .sidebar-item.active { background: var(--accent-dim); color: var(--accent); }
  .sidebar-item-icon { font-family: var(--mono); font-size: 14px; width: 20px; flex-shrink: 0; text-align: center; }
  .sidebar-repo { padding: 4px 8px; margin: 1px 8px; border-radius: 6px; cursor: pointer; transition: all 0.12s; }
  .sidebar-repo:hover { background: var(--bg3); }
  .sidebar-repo.active { background: var(--bg3); }
  .sidebar-repo-name { font-size: 12px; color: var(--muted2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sidebar-repo-name.active { color: var(--text); }
  .sidebar-repo-count { font-family: var(--mono); font-size: 10px; color: var(--muted); }
  .sidebar-footer { margin-top: auto; padding: 16px; border-top: 1px solid var(--border); }
  .user-chip { display: flex; align-items: center; gap: 8px; }
  .user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-dim); border: 1px solid rgba(0,212,160,0.3); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--accent); font-weight: 500; }
  .user-name { font-size: 12px; color: var(--muted2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logout-btn { background: none; border: none; color: var(--muted); font-size: 13px; padding: 4px; cursor: pointer; }
  .logout-btn:hover { color: var(--red); }

  .main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
  .topbar { padding: 16px 28px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
  .topbar-title { font-size: 16px; font-weight: 500; }
  .topbar-sub { font-size: 12px; color: var(--muted); font-family: var(--mono); }

  .content { flex: 1; overflow-y: auto; padding: 28px; }

  /* Repos view */
  .repos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 32px; }
  .repo-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 20px; transition: border-color 0.15s; cursor: pointer; }
  .repo-card:hover { border-color: var(--border2); }
  .recent-doc-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; cursor: pointer; transition: border-color 0.15s; }
  .recent-doc-card:hover { border-color: var(--border2); }
  .repo-card.selected { border-color: var(--accent); background: var(--accent-dim2); }
  .repo-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
  .repo-name { font-family: var(--mono); font-size: 13px; color: var(--text); }
  .repo-platform { font-size: 10px; color: var(--muted); background: var(--bg3); padding: 2px 8px; border-radius: 4px; font-family: var(--mono); }
  .repo-stats { display: flex; gap: 16px; }
  .repo-stat { font-size: 12px; color: var(--muted2); }
  .repo-stat strong { color: var(--text); font-weight: 500; }
  .repo-synced { font-size: 11px; color: var(--muted); margin-top: 10px; font-family: var(--mono); }

  .connect-box { background: var(--bg2); border: 1px dashed var(--border2); border-radius: 10px; padding: 32px; text-align: center; }
  .connect-box h3 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
  .connect-box p { font-size: 13px; color: var(--muted2); margin-bottom: 20px; }
  .connect-form { display: flex; gap: 8px; max-width: 500px; margin: 0 auto; }
  .connect-form input { flex: 1; }

  /* Docs view */
  .docs-layout { display: flex; gap: 20px; height: calc(100vh - 120px); }
  .docs-sidebar { width: 260px; flex-shrink: 0; overflow-y: auto; }
  .docs-main { flex: 1; overflow-y: auto; }
  .doc-type-group { margin-bottom: 20px; }
  .doc-type-label { font-family: var(--mono); font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; padding: 0 4px; margin-bottom: 6px; }
  .doc-item { padding: 10px 12px; border-radius: 6px; cursor: pointer; transition: all 0.12s; border: 1px solid transparent; margin-bottom: 2px; }
  .doc-item:hover { background: var(--bg3); }
  .doc-item.active { background: var(--bg3); border-color: var(--border); }
  .doc-item-title { font-size: 13px; color: var(--text); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .doc-item-path { font-family: var(--mono); font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .doc-badge { display: inline-block; font-family: var(--mono); font-size: 9px; padding: 1px 6px; border-radius: 3px; margin-bottom: 4px; }
  .badge-ansible { background: rgba(0,212,160,0.15); color: var(--accent); }
  .badge-terraform { background: rgba(91,130,255,0.15); color: #818cf8; }
  .badge-pipeline { background: rgba(245,158,11,0.15); color: var(--amber); }

  .doc-viewer { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 32px; }
  .doc-viewer-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
  .doc-viewer-title { font-size: 20px; font-weight: 500; margin-bottom: 6px; }
  .doc-viewer-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
  .doc-viewer-actions { display: flex; gap: 8px; }
  .doc-content { font-size: 14px; line-height: 1.7; color: var(--muted2); }
  .doc-content h1 { display: none; }
  .doc-content h2 { font-size: 15px; font-weight: 500; color: var(--text); margin: 24px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
  .doc-content h3 { font-size: 13px; font-weight: 500; color: var(--text); margin: 16px 0 6px; }
  .doc-content p { margin-bottom: 12px; }
  .doc-content ul, .doc-content ol { margin: 8px 0 12px 20px; }
  .doc-content li { margin-bottom: 4px; }
  .doc-content code { font-family: var(--mono); font-size: 12px; background: var(--bg3); padding: 1px 6px; border-radius: 3px; color: var(--accent); }
  .doc-content pre { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 16px; overflow-x: auto; margin: 12px 0; }
  .doc-content pre code { background: none; padding: 0; color: var(--text); }
  .doc-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
  .doc-content th { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border2); color: var(--muted2); font-weight: 500; font-family: var(--mono); font-size: 11px; }
  .doc-content td { padding: 8px 12px; border-bottom: 1px solid var(--border); color: var(--muted2); }
  .doc-content td:first-child { font-family: var(--mono); font-size: 12px; color: var(--accent); }

  .empty-state { text-align: center; padding: 80px 20px; }
  .empty-state-icon { font-family: var(--mono); font-size: 40px; color: var(--muted); margin-bottom: 16px; }
  .empty-state h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
  .empty-state p { font-size: 13px; color: var(--muted2); }

  .spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  .tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-family: var(--mono); }
  .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
  .dot.amber { background: var(--amber); }
  .dot.blue { background: var(--blue); }

  /* Search */
  .search-bar { position: relative; }
  .search-input { width: 100%; padding: 9px 14px 9px 36px; background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 13px; outline: none; transition: border-color 0.15s; }
  .search-input:focus { border-color: var(--accent); }
  .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
  .search-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--bg2); border: 1px solid var(--border2); border-radius: 8px; max-height: 400px; overflow-y: auto; z-index: 50; }
  .search-result { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background 0.1s; }
  .search-result:last-child { border-bottom: none; }
  .search-result:hover { background: var(--bg3); }
  .search-result-title { font-size: 13px; color: var(--text); margin-bottom: 3px; }
  .search-result-meta { font-size: 11px; color: var(--muted); font-family: var(--mono); }
  .search-result-snippet { font-size: 12px; color: var(--muted2); margin-top: 4px; line-height: 1.4; }
  .search-empty { padding: 20px; text-align: center; font-size: 13px; color: var(--muted); }

  /* Team */
  .team-table { width: 100%; border-collapse: collapse; }
  .team-table th { text-align: left; padding: 8px 12px; font-size: 11px; font-family: var(--mono); color: var(--muted); border-bottom: 1px solid var(--border2); text-transform: uppercase; letter-spacing: 0.5px; }
  .team-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
  .role-badge { display: inline-block; font-family: var(--mono); font-size: 10px; padding: 2px 8px; border-radius: 4px; }
  .role-owner { background: rgba(0,212,160,0.15); color: var(--accent); }
  .role-member { background: rgba(91,130,255,0.15); color: #818cf8; }
  .role-viewer { background: rgba(255,255,255,0.07); color: var(--muted2); }
  .invite-form { display: flex; gap: 8px; margin-top: 16px; }
  .invite-form input { flex: 1; }
  .invite-form select { padding: 9px 12px; background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 13px; outline: none; }
  .access-request-card { background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
  .access-request-info { font-size: 13px; }
  .access-request-email { color: var(--text); font-weight: 500; }
  .access-request-msg { font-size: 12px; color: var(--muted2); margin-top: 3px; }
  .access-request-actions { display: flex; gap: 6px; }

  /* FAQ Chat */
  .faq-toggle { position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); border: none; color: #000; font-size: 20px; cursor: pointer; box-shadow: 0 4px 20px rgba(0,212,160,0.4); z-index: 50; display: flex; align-items: center; justify-content: center; transition: transform 0.15s; }
  .faq-toggle:hover { transform: scale(1.1); }
  .faq-panel { position: fixed; bottom: 88px; right: 28px; width: 380px; max-height: 520px; background: var(--bg2); border: 1px solid var(--border2); border-radius: 12px; display: flex; flex-direction: column; z-index: 50; box-shadow: 0 8px 40px rgba(0,0,0,0.4); overflow: hidden; }
  .faq-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
  .faq-header-title { font-size: 14px; font-weight: 500; }
  .faq-header-sub { font-size: 11px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
  .faq-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 200px; }
  .faq-msg { max-width: 90%; }
  .faq-msg.user { align-self: flex-end; background: var(--accent-dim); border: 1px solid rgba(0,212,160,0.2); border-radius: 10px 10px 2px 10px; padding: 8px 12px; font-size: 13px; }
  .faq-msg.assistant { align-self: flex-start; background: var(--bg3); border: 1px solid var(--border); border-radius: 2px 10px 10px 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
  .faq-msg.assistant code { font-family: var(--mono); font-size: 11px; background: var(--bg); padding: 1px 5px; border-radius: 3px; color: var(--accent); }
  .faq-msg.assistant pre { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 10px; overflow-x: auto; margin: 6px 0; }
  .faq-msg.assistant pre code { background: none; padding: 0; }
  .faq-sources { margin-top: 6px; font-size: 10px; color: var(--muted); font-family: var(--mono); }
  .faq-input-row { padding: 12px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
  .faq-input { flex: 1; padding: 8px 12px; background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 13px; outline: none; resize: none; height: 36px; font-family: var(--sans); }
  .faq-input:focus { border-color: var(--accent); }
  .faq-send { padding: 8px 14px; background: var(--accent); color: #000; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
  .faq-send:disabled { opacity: 0.5; cursor: not-allowed; }
  .faq-typing { display: flex; gap: 4px; align-items: center; padding: 4px 0; }
  .faq-typing span { width: 6px; height: 6px; background: var(--muted); border-radius: 50%; animation: faqBounce 1.2s infinite; }
  .faq-typing span:nth-child(2) { animation-delay: 0.2s; }
  .faq-typing span:nth-child(3) { animation-delay: 0.4s; }
  @keyframes faqBounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }

  /* Portal */
  .portal-page { min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }
  .portal-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
  .portal-request-box { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }

  .toast { position: fixed; bottom: 24px; right: 24px; background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; padding: 12px 16px; font-size: 13px; z-index: 100; animation: slideIn 0.2s ease; }
  .toast.success { border-color: rgba(0,212,160,0.3); color: var(--accent); }
  .toast.error { border-color: rgba(239,68,68,0.3); color: var(--red); }
  @keyframes slideIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

  .stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
  .stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; }
  .stat-label { font-size: 11px; font-family: var(--mono); color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
  .stat-value { font-size: 28px; font-weight: 300; color: var(--text); font-family: var(--mono); }
  .stat-value.accent { color: var(--accent); }

  @media (max-width: 768px) {
    .features { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .docs-layout { flex-direction: column; }
    .docs-sidebar { width: 100%; height: auto; }
  }
  
/* ── Shared utility styles (used by docs, tos, privacy, security pages) ── */

/* Inline code */
code { font-family: var(--mono); font-size: 13px; background: var(--bg3); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; color: var(--accent); }

/* Callouts */
.callout { padding: 14px 18px; border-radius: 6px; margin: 16px 0; font-size: 14px; }
.callout-tip  { background: rgba(0,212,160,0.06); border-left: 3px solid var(--accent); color: var(--muted2); }
.callout-tip strong { color: var(--accent); }
.callout-warn { background: rgba(245,158,11,0.06); border-left: 3px solid #f59e0b; color: var(--muted2); }
.callout-warn strong { color: #f59e0b; }

/* Steps */
.steps { counter-reset: step; margin: 20px 0; }
.step { display: flex; gap: 16px; margin-bottom: 24px; }
.step-num { counter-increment: step; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,212,160,0.1); border: 1px solid rgba(0,212,160,0.3); color: var(--accent); font-family: var(--mono); font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.step-num::before { content: counter(step); }
.step-body h3 { margin: 0 0 6px; }

/* Platform/doc type badges */
.badge { display: inline-block; font-family: var(--mono); font-size: 10px; padding: 2px 8px; border-radius: 3px; letter-spacing: 0.06em; margin-right: 4px; }
.badge-gh  { background: rgba(255,255,255,0.06); color: #aaa; border: 1px solid #333; }
.badge-gl  { background: rgba(252,109,38,0.1); color: #fc6d26; border: 1px solid rgba(252,109,38,0.3); }
.badge-ans { background: rgba(0,212,160,0.08); color: var(--accent); border: 1px solid rgba(0,212,160,0.2); }
.badge-tf  { background: rgba(96,165,250,0.08); color: #60a5fa; border: 1px solid rgba(96,165,250,0.2); }
.badge-ci  { background: rgba(167,139,250,0.08); color: #a78bfa; border: 1px solid rgba(167,139,250,0.2); }