/* BluePill Cloud Design System — Liquid Glass + Matrix Dark-First Aesthetic */
:root {
  --bg-base: #090d14;
  --bg-elevated: #0e1420;
  --bg-surface: rgba(16, 23, 36, 0.72);
  --bg-surface-strong: rgba(18, 26, 41, 0.92);
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-code: #060a10;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --bp-blue: #0A84FF;
  --bp-blue-hover: #2994ff;
  --bp-blue-soft: rgba(10, 132, 255, 0.16);
  --bp-green: #30D158;
  --bp-green-dark: #1B5E3A;
  --bp-green-soft: rgba(48, 209, 88, 0.15);
  --bp-amber: #FF9F0A;
  --bp-amber-soft: rgba(255, 159, 10, 0.16);
  --bp-red: #FF453A;
  --bp-red-soft: rgba(255, 69, 58, 0.16);
  --bp-purple: #BF5AF2;

  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(18px);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-height: 64px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 75% 45% at 15% -5%, rgba(10, 132, 255, 0.18), transparent 65%),
    radial-gradient(ellipse 65% 45% at 88% 12%, rgba(48, 209, 88, 0.10), transparent 60%),
    linear-gradient(180deg, #090d14 0%, #0b111b 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--bp-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #5cb3ff;
}

:focus-visible {
  outline: 2px solid var(--bp-blue);
  outline-offset: 2px;
}

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

code, pre, .mono {
  font-family: var(--font-mono);
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 68px 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bp-blue);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-height);
  background: rgba(9, 13, 20, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text-primary);
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bp-green-soft);
  color: #70f291;
  border: 1px solid rgba(48, 209, 88, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    background: rgba(9, 13, 20, 0.97);
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-actions .btn-desktop-only {
    display: none;
  }
}

/* Glass Cards */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.glass-card-strong {
  background: var(--bg-surface-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

/* Grid Helpers */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #1b8eff, #0A84FF);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #339cff, #1589ff);
  color: #ffffff;
}

.btn-matrix {
  background: linear-gradient(135deg, #27be4c, #1B5E3A);
  color: #ffffff;
  border-color: rgba(48, 209, 88, 0.4);
  box-shadow: 0 8px 22px rgba(48, 209, 88, 0.22);
}

.btn-matrix:hover {
  background: linear-gradient(135deg, #30D158, #217347);
  color: #ffffff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--border-strong);
  color: #ffffff;
}

.btn-danger {
  background: var(--bp-red-soft);
  border-color: rgba(255, 69, 58, 0.4);
  color: #ff8a80;
}

.btn-danger:hover {
  background: rgba(255, 69, 58, 0.26);
  color: #ffffff;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
}

/* Status Pills & Badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.pill-green {
  background: var(--bp-green-soft);
  border-color: rgba(48, 209, 88, 0.35);
  color: #70f291;
}

.pill-blue {
  background: var(--bp-blue-soft);
  border-color: rgba(10, 132, 255, 0.4);
  color: #7cc0ff;
}

.pill-amber {
  background: var(--bp-amber-soft);
  border-color: rgba(255, 159, 10, 0.4);
  color: #ffd080;
}

.pill-red {
  background: var(--bp-red-soft);
  border-color: rgba(255, 69, 58, 0.4);
  color: #ff8c85;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--bp-green);
  box-shadow: 0 0 8px var(--bp-green);
}

.status-dot.offline {
  background: var(--bp-red);
  box-shadow: 0 0 8px rgba(255, 69, 58, 0.65);
}

.status-dot.demo {
  background: var(--bp-blue);
  box-shadow: 0 0 8px var(--bp-blue);
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(6, 10, 17, 0.85);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--bp-blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

.form-textarea {
  min-height: 88px;
  resize: vertical;
}

.form-help {
  font-size: 12px;
  color: var(--text-muted);
}

/* Code Blocks */
.code-block {
  position: relative;
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin: 12px 0;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.code-block pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  color: #dbeafe;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  color: #ffffff;
  border-color: var(--bp-blue);
  background: var(--bp-blue-soft);
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(9, 13, 20, 0.55);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.data-table th,
table.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

table.data-table th {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

table.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

table.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Modals & Drawers */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 7, 12, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.modal-dialog {
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0e1523;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.modal-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(4, 7, 12, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: flex-end;
}

.drawer-backdrop.open {
  display: flex;
}

.drawer-panel {
  width: 100%;
  max-width: 660px;
  height: 100%;
  overflow-y: auto;
  background: #0d1421;
  border-left: 1px solid var(--border-strong);
  padding: 26px;
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.65);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #121c2e;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  animation: toastIn 0.2s ease-out;
}

.toast.success { border-left: 4px solid var(--bp-green); }
.toast.error { border-left: 4px solid var(--bp-red); }
.toast.info { border-left: 4px solid var(--bp-blue); }

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  margin-top: 40px;
  background: rgba(6, 9, 14, 0.75);
  color: var(--text-secondary);
  font-size: 13.5px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ============================================================
   DEMO & TENANT WEB CLIENT THEMES (theme-glass / theme-matrix / theme-light)
   ============================================================ */
.webclient-shell {
  --wc-bg: #080c13;
  --wc-sidebar: rgba(14, 21, 33, 0.82);
  --wc-panel: rgba(17, 25, 39, 0.68);
  --wc-header: rgba(12, 18, 28, 0.88);
  --wc-border: rgba(255, 255, 255, 0.09);
  --wc-text: #f1f5f9;
  --wc-muted: #94a3b8;
  --wc-bubble-in: #1c2638;
  --wc-bubble-in-text: #eef2f7;
  --wc-bubble-imsg: #0A84FF;
  --wc-bubble-sms: #1B5E3A;
  --wc-bubble-out-text: #ffffff;
  --wc-accent: #0A84FF;

  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-height));
  min-height: 600px;
  background: var(--wc-bg);
  color: var(--wc-text);
  overflow: hidden;
}

.webclient-shell.theme-matrix {
  --wc-bg: #030a06;
  --wc-sidebar: rgba(6, 18, 10, 0.88);
  --wc-panel: rgba(7, 21, 12, 0.78);
  --wc-header: rgba(4, 13, 8, 0.94);
  --wc-border: rgba(48, 209, 88, 0.22);
  --wc-text: #d7ffe1;
  --wc-muted: #6ee78e;
  --wc-bubble-in: #0d2416;
  --wc-bubble-in-text: #d7ffe1;
  --wc-bubble-imsg: #0A84FF;
  --wc-bubble-sms: #1B5E3A;
  --wc-accent: #30D158;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(48, 209, 88, 0.10), transparent 50%),
    linear-gradient(180deg, #030a06 0%, #051109 100%);
}

.webclient-shell.theme-light {
  color-scheme: light;
  --wc-bg: #f1f5f9;
  --wc-sidebar: #ffffff;
  --wc-panel: #f8fafc;
  --wc-header: #ffffff;
  --wc-border: rgba(15, 23, 42, 0.11);
  --wc-text: #0f172a;
  --wc-muted: #64748b;
  --wc-bubble-in: #e2e8f0;
  --wc-bubble-in-text: #0f172a;
  --wc-bubble-imsg: #0A84FF;
  --wc-bubble-sms: #248a3d;
  --wc-bubble-out-text: #ffffff;
  --wc-accent: #0A84FF;
}

.webclient-shell.theme-light .form-input,
.webclient-shell.theme-light .form-select,
.webclient-shell.theme-light .form-textarea {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.16);
}

.wc-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  background: var(--wc-header);
  border-bottom: 1px solid var(--wc-border);
  backdrop-filter: blur(14px);
}

.wc-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(128, 128, 128, 0.10);
  padding: 4px;
  border-radius: 10px;
}

.wc-tab {
  border: none;
  background: transparent;
  color: var(--wc-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
}

.wc-tab.active {
  background: var(--wc-accent);
  color: #ffffff;
}

.wc-main {
  flex: 1;
  min-height: 0;
  display: flex;
}

.wc-sidebar {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--wc-sidebar);
  border-right: 1px solid var(--wc-border);
  min-height: 0;
}

.wc-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.wc-chat-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 4px;
  transition: background 0.12s ease;
}

.wc-chat-item:hover {
  background: rgba(128, 128, 128, 0.10);
}

.wc-chat-item.active {
  background: rgba(10, 132, 255, 0.16);
  border-color: rgba(10, 132, 255, 0.35);
}

.wc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #0A84FF, #2563eb);
  flex-shrink: 0;
}

.wc-avatar.sms {
  background: linear-gradient(135deg, #30D158, #1B5E3A);
}

.wc-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--wc-panel);
}

.wc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-row {
  display: flex;
  flex-direction: column;
  max-width: 72%;
  position: relative;
}

.msg-row.me {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-row.them {
  align-self: flex-start;
  align-items: flex-start;
}

.msg-bubble {
  position: relative;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.45;
  word-break: break-word;
  background: var(--wc-bubble-in);
  color: var(--wc-bubble-in-text);
}

.msg-row.me .msg-bubble.imessage {
  background: var(--wc-bubble-imsg);
  color: var(--wc-bubble-out-text);
  border-bottom-right-radius: 5px;
}

.msg-row.me .msg-bubble.sms {
  background: var(--wc-bubble-sms);
  color: var(--wc-bubble-out-text);
  border-bottom-right-radius: 5px;
}

.msg-row.them .msg-bubble {
  border-bottom-left-radius: 5px;
}

.msg-react-bar {
  display: none;
  gap: 4px;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(14, 21, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-sm);
}

.msg-row:hover .msg-react-bar,
.msg-row:focus-within .msg-react-bar {
  display: inline-flex;
}

.react-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 5px;
  border-radius: 6px;
}

.react-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.tapback-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.tapback-chip {
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.22);
  border: 1px solid rgba(10, 132, 255, 0.4);
  color: var(--wc-text);
}

.otp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 9px;
  background: rgba(48, 209, 88, 0.18);
  border: 1px solid rgba(48, 209, 88, 0.45);
  color: #70f291;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.webclient-shell.theme-light .otp-pill {
  color: #166534;
  background: rgba(34, 197, 94, 0.16);
}

.wc-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--wc-header);
  border-top: 1px solid var(--wc-border);
}

@media (max-width: 780px) {
  .webclient-shell {
    height: auto;
    min-height: calc(100vh - var(--nav-height));
  }
  .wc-main {
    flex-direction: column;
  }
  .wc-sidebar {
    width: 100%;
    max-height: 260px;
    border-right: none;
    border-bottom: 1px solid var(--wc-border);
  }
  .msg-row {
    max-width: 88%;
  }
}

/* Docs Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 36px 0 64px;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.docs-nav-link {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.docs-nav-link:hover, .docs-nav-link.active {
  background: var(--bp-blue-soft);
  color: #ffffff;
}

.docs-section {
  scroll-margin-top: calc(var(--nav-height) + 22px);
  margin-bottom: 28px;
}

@media (max-width: 920px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
  }
}

/* Utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.hidden { display: none !important; }
