:root {
  color-scheme: dark;
  --vip-bg: #08101d;
  --vip-bg-elevated: #0d1728;
  --vip-panel: #101c30;
  --vip-panel-strong: #15233a;
  --vip-panel-soft: #0c1628;
  --vip-border: rgba(148, 163, 184, 0.18);
  --vip-border-strong: rgba(191, 219, 254, 0.24);
  --vip-ink: #f3f7fc;
  --vip-ink-soft: #d4deea;
  --vip-muted: #8da0b8;
  --vip-muted-strong: #b2c0d1;
  --vip-accent: #4b8dff;
  --vip-accent-strong: #2f6fe3;
  --vip-accent-soft: rgba(75, 141, 255, 0.16);
  --vip-danger: #f87171;
  --vip-success: #34d399;
  --vip-warn: #fbbf24;
  --vip-shadow: 0 18px 44px rgba(2, 6, 23, 0.38);
  --vip-shadow-soft: 0 10px 24px rgba(2, 6, 23, 0.24);
  --vip-radius-sm: 10px;
  --vip-radius-md: 14px;
  --vip-radius-lg: 18px;
  --vip-space-1: 0.25rem;
  --vip-space-2: 0.5rem;
  --vip-space-3: 0.75rem;
  --vip-space-4: 1rem;
  --vip-space-5: 1.25rem;
  --vip-space-6: 1.5rem;
  --vip-space-8: 2rem;
  --vip-space-10: 2.5rem;
}

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

html,
body {
  min-height: 100%;
}

body.vip-body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(75, 141, 255, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(148, 163, 184, 0.08), transparent 24%),
    linear-gradient(180deg, #0a1424 0%, #08101d 100%);
  color: var(--vip-ink);
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.vip-card {
  background: linear-gradient(180deg, rgba(18, 29, 48, 0.98) 0%, rgba(12, 22, 38, 0.98) 100%);
  border: 1px solid var(--vip-border);
  border-radius: var(--vip-radius-lg);
  box-shadow: var(--vip-shadow-soft);
}

.vip-card-subtle {
  background: linear-gradient(180deg, rgba(15, 24, 40, 0.94) 0%, rgba(10, 18, 31, 0.94) 100%);
  border-color: rgba(148, 163, 184, 0.12);
  box-shadow: none;
}

.vip-page-shell {
  min-height: 100vh;
  padding: 1rem 1.25rem 1.25rem;
}

.vip-page {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.vip-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.vip-landing-nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.vip-brand {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.vip-brand-mark {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #b9cdf3;
  font-weight: 600;
}

.vip-page-title {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.08;
  font-weight: 600;
  color: var(--vip-ink);
}

.vip-page-copy {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--vip-muted);
  max-width: 42rem;
}

.vip-section-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--vip-ink);
}

.vip-section-copy {
  margin: 0.22rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--vip-muted);
}

.vip-muted-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vip-muted);
}

.vip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--vip-ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.vip-btn:hover {
  transform: translateY(-1px);
}

.vip-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.vip-btn-primary {
  background: linear-gradient(180deg, #5793ff 0%, #3e78e8 100%);
  border-color: rgba(147, 197, 253, 0.4);
  color: #eff6ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.vip-btn-primary:hover {
  background: linear-gradient(180deg, #639bff 0%, #447cee 100%);
}

.vip-btn-secondary {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--vip-border-strong);
  color: var(--vip-ink-soft);
}

.vip-btn-secondary:hover {
  background: rgba(148, 163, 184, 0.14);
}

.vip-btn-danger {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.26);
  color: #fecaca;
}

.vip-btn-danger:hover {
  background: rgba(248, 113, 113, 0.18);
}

.vip-btn-ghost {
  background: transparent;
  border-color: var(--vip-border);
  color: var(--vip-muted-strong);
}

.vip-btn-ghost:hover {
  background: rgba(148, 163, 184, 0.08);
}

.vip-btn-compact {
  min-height: 40px;
  padding: 0 0.78rem;
  font-size: 0.8rem;
}

.vip-input,
.vip-select,
.vip-textarea {
  width: 100%;
  border: 1px solid var(--vip-border-strong);
  border-radius: 12px;
  background: rgba(8, 16, 29, 0.84);
  color: var(--vip-ink);
  padding: 0.78rem 0.95rem;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.vip-input::placeholder,
.vip-textarea::placeholder {
  color: #74879d;
}

.vip-input:focus,
.vip-select:focus,
.vip-textarea:focus {
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
  background: rgba(10, 20, 36, 0.96);
}

.vip-textarea {
  resize: vertical;
}

.vip-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.vip-auth-card {
  width: min(440px, 100%);
  border-radius: 22px;
  border: 1px solid var(--vip-border);
  background: linear-gradient(180deg, rgba(16, 28, 48, 0.98) 0%, rgba(11, 20, 35, 0.98) 100%);
  box-shadow: var(--vip-shadow);
}

.vip-auth-head {
  margin-bottom: 1.5rem;
}

.vip-form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--vip-ink-soft);
}

.vip-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--vip-border-strong);
  background: rgba(148, 163, 184, 0.08);
  color: var(--vip-ink-soft);
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.34rem 0.68rem;
}

.vip-badge-ok {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
  color: #a7f3d0;
}

.vip-badge-warn {
  background: rgba(251, 191, 36, 0.13);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fde68a;
}

.vip-badge-danger {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

.vip-grid-shell {
  display: grid;
  grid-template-areas: "sidebar chat aux";
  grid-template-columns: minmax(240px, 272px) minmax(0, 1fr) minmax(250px, 290px);
  gap: 0.9rem;
  align-items: start;
}

.vip-docs-grid {
  grid-template-areas: "sidebar chat chat";
}

.vip-chat-grid {
  grid-template-areas: "chat context";
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
}

.vip-docs-main {
  grid-area: chat;
  min-width: 0;
}

.vip-mobile-toolbar,
.vip-mobile-panel-head,
.vip-mobile-backdrop {
  display: none;
}

.vip-sidebar-shell {
  grid-area: sidebar;
  min-width: 0;
}

.vip-chat-shell {
  grid-area: chat;
}

.vip-aux-shell {
  grid-area: aux;
  min-width: 0;
}

.vip-context-shell {
  grid-area: context;
  min-width: 0;
}

.vip-context-rail .vip-card {
  box-shadow: none;
}

.vip-context-section-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: stretch;
}

.vip-sidebar {
  padding: 0.95rem;
}

.vip-sidebar-section + .vip-sidebar-section {
  margin-top: 0.85rem;
}

.vip-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--vip-muted-strong);
  text-decoration: none;
  font-size: 0.9rem;
}

.vip-nav-link:hover {
  background: rgba(148, 163, 184, 0.08);
  border-color: var(--vip-border);
}

.vip-nav-link.active {
  background: rgba(75, 141, 255, 0.14);
  border-color: rgba(75, 141, 255, 0.28);
  color: #eff6ff;
}

.vip-nav-meta {
  font-size: 0.72rem;
  color: var(--vip-muted);
}

.vip-collapse-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 40px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--vip-border);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.06);
  color: var(--vip-muted-strong);
  font-size: 0.82rem;
  font-weight: 650;
  text-align: left;
}

.vip-collapse-trigger:hover {
  background: rgba(148, 163, 184, 0.1);
}

.vip-collapse-meta {
  color: var(--vip-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.vip-collapse-panel {
  margin-top: 0.65rem;
}

.vip-conversation-card {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.018);
  padding: 0.7rem;
  color: var(--vip-ink-soft);
  transition: border-color 120ms ease, background-color 120ms ease;
}

.vip-conversation-card:hover {
  border-color: var(--vip-border-strong);
  background: rgba(255, 255, 255, 0.035);
}

.vip-conversation-card.active {
  border-color: rgba(75, 141, 255, 0.32);
  background: rgba(75, 141, 255, 0.12);
  color: var(--vip-ink);
}

.vip-conversation-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
}

.vip-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.26);
  background: rgba(248, 113, 113, 0.08);
  color: #fecaca;
  font-size: 0.72rem;
  font-weight: 600;
}

.vip-delete-btn:hover {
  background: rgba(248, 113, 113, 0.14);
}

.vip-chat-shell {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: 460px;
  max-height: calc(100vh - 140px);
  overflow: hidden;
}

.vip-panel-header,
.vip-panel-footer {
  padding: 0.95rem 1.05rem;
  border-bottom: 1px solid var(--vip-border);
}

.vip-panel-footer {
  border-top: 1px solid var(--vip-border);
  border-bottom: 0;
}

.vip-composer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.vip-thread {
  flex: 0 1 auto;
  min-height: 180px;
  max-height: calc(100vh - 360px);
  overflow-y: auto;
  padding: 1.1rem 1.05rem;
}

.vip-empty-state {
  border: 1px dashed var(--vip-border-strong);
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.05);
  padding: 1.25rem;
  color: var(--vip-muted);
}

.vip-msg-user {
  background: linear-gradient(180deg, #477fe7 0%, #356bd0 100%);
  color: #eff6ff;
  border: 1px solid rgba(147, 197, 253, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.vip-msg-assistant {
  background: rgba(255, 255, 255, 0.03);
  color: var(--vip-ink);
  border: 1px solid var(--vip-border);
  white-space: normal;
  overflow-wrap: anywhere;
}

.vip-msg-assistant p {
  margin: 0;
}

.vip-msg-assistant p + p,
.vip-msg-assistant p + ul,
.vip-msg-assistant p + ol,
.vip-msg-assistant ul + p,
.vip-msg-assistant ol + p {
  margin-top: 0.75rem;
}

.vip-msg-assistant ul,
.vip-msg-assistant ol {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
}

.vip-msg-assistant li + li {
  margin-top: 0.35rem;
}

.vip-msg-pending {
  color: var(--vip-muted-strong);
  font-style: italic;
}

.vip-status-line {
  color: var(--vip-muted);
  font-size: 0.76rem;
}

.vip-aux-stack {
  opacity: 0.94;
}

.vip-landing-shell {
  min-height: 100vh;
  padding: 1.25rem;
}

.vip-landing-page {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.vip-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
  margin-top: 1rem;
}

.vip-landing-copy {
  padding: 1.5rem 0;
  position: relative;
}

.vip-landing-title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.98;
  font-weight: 600;
  color: #f8fbff;
}

.vip-landing-copy p {
  max-width: 42rem;
}

.vip-brand-copy {
  margin-top: 0.25rem;
  font-size: 0.84rem;
}

.vip-landing-lead {
  font-size: 1.02rem;
  max-width: 40rem;
}

.vip-landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.vip-btn-hero {
  min-height: 46px;
  padding: 0 1.2rem;
  font-size: 0.92rem;
}

.vip-landing-note {
  margin-top: 1rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--vip-muted-strong);
  max-width: 42rem;
}

.vip-landing-panel {
  padding: 1.5rem;
}

.vip-landing-mini-card {
  border: 1px solid var(--vip-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
}

.vip-feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.vip-landing-section {
  margin-top: 1.5rem;
}

.vip-landing-section-head {
  margin-bottom: 1rem;
}

.vip-how-section .vip-landing-section-head {
  max-width: 44rem;
}

.vip-how-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.vip-how-card {
  padding: 1.35rem;
  min-height: 100%;
}

.vip-how-step {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b9cdf3;
  font-weight: 700;
}

.vip-how-title {
  margin: 0.7rem 0 0;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--vip-ink);
}

.vip-how-cue {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(191, 219, 254, 0.14);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--vip-muted-strong);
}

.vip-how-connector {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(75, 141, 255, 0.16) 0%, rgba(147, 197, 253, 0.58) 50%, rgba(75, 141, 255, 0.16) 100%);
}

.vip-how-connector::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(191, 219, 254, 0.74);
  border-right: 1px solid rgba(191, 219, 254, 0.74);
  transform: translateY(-50%) rotate(45deg);
}

.vip-landing-trust {
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.vip-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.vip-landing-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-color: rgba(96, 165, 250, 0.26);
  box-shadow:
    0 10px 24px rgba(2, 6, 23, 0.24),
    0 0 0 1px rgba(96, 165, 250, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.vip-landing-final-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.vip-landing-cta-caption {
  margin: 0;
  max-width: 19rem;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
  color: var(--vip-muted-strong);
}

.vip-link {
  color: #b6ceff;
  text-decoration: none;
}

.vip-link:hover {
  color: #dbeafe;
}

.vip-divider {
  height: 1px;
  background: var(--vip-border);
}

.vip-upload-list-item,
.vip-info-row {
  border: 1px solid var(--vip-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.vip-upload-list-item {
  padding: 0.9rem 1rem;
}

.vip-inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  color: #d9e5f7;
}

.vip-error {
  color: #fda4af;
}

.vip-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.vip-modal.hidden {
  display: none;
}

.vip-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.vip-modal-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 1.5rem;
}

.vip-data-table {
  width: 100%;
  border-collapse: collapse;
}

.vip-data-table th,
.vip-data-table td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--vip-border);
  font-size: 0.88rem;
}

.vip-data-table th {
  color: var(--vip-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.vip-data-table td {
  color: var(--vip-ink-soft);
}

@media (max-width: 1100px) {
  .vip-grid-shell {
    grid-template-areas:
      "chat chat"
      "sidebar aux";
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
    gap: 0.85rem;
  }

  .vip-docs-grid {
    grid-template-areas:
      "chat chat"
      "sidebar sidebar";
  }

  .vip-chat-grid {
    grid-template-areas: "chat context";
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }

  .vip-sidebar {
    padding: 0.85rem;
  }

  .vip-sidebar-section + .vip-sidebar-section {
    margin-top: 0.75rem;
  }

  .vip-chat-shell {
    min-height: 500px;
    max-height: none;
  }

  .vip-thread {
    max-height: none;
  }

  .vip-feature-grid {
    grid-template-columns: 1fr;
  }

  .vip-how-flow {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .vip-how-connector {
    width: 1px;
    height: 24px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(75, 141, 255, 0.16) 0%, rgba(147, 197, 253, 0.58) 50%, rgba(75, 141, 255, 0.16) 100%);
  }

  .vip-how-connector::after {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 2px;
    transform: translateX(-50%) rotate(135deg);
  }
}

@media (max-width: 900px) {
  .vip-landing-hero,
  .vip-topbar {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .vip-grid-shell {
    grid-template-areas:
      "toolbar"
      "chat";
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .vip-page-shell,
  .vip-landing-shell,
  .vip-auth-shell {
    padding: 1rem;
  }

  .vip-page {
    width: 100%;
  }

  .vip-topbar {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
  }

  .vip-topbar > .flex.items-center.gap-2 {
    width: auto;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .vip-topbar > .flex.items-center.gap-2 .vip-btn {
    width: auto;
    min-height: 36px;
    padding: 0 0.75rem;
    font-size: 0.78rem;
  }

  .vip-page-shell .vip-page-copy {
    display: none;
  }

  .vip-mobile-toolbar {
    position: sticky;
    top: 0;
    z-index: 30;
    grid-area: toolbar;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.2rem 0 0.25rem;
    background: linear-gradient(180deg, rgba(8, 16, 29, 0.98) 0%, rgba(8, 16, 29, 0.88) 72%, rgba(8, 16, 29, 0) 100%);
  }

  .vip-docs-grid .vip-mobile-toolbar,
  .vip-chat-grid .vip-mobile-toolbar {
    grid-template-columns: 1fr;
  }

  .vip-mobile-toolbar-btn {
    min-height: 38px;
    border: 1px solid var(--vip-border-strong);
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.08);
    color: var(--vip-ink-soft);
    font-size: 0.82rem;
    font-weight: 650;
  }

  .vip-mobile-toolbar-btn:active {
    background: rgba(75, 141, 255, 0.16);
  }

  .vip-mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    width: min(390px, 92vw);
    min-width: 0;
    padding: 0.85rem;
    overflow-y: auto;
    background: #08101d;
    border-left: 1px solid var(--vip-border-strong);
    box-shadow: -18px 0 40px rgba(2, 6, 23, 0.46);
    transform: translateX(105%);
    transition: transform 180ms ease;
  }

  .vip-mobile-panel.is-mobile-open {
    transform: translateX(0);
  }

  .vip-mobile-panel-head {
    position: sticky;
    top: -0.85rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: -0.85rem -0.85rem 0.75rem;
    padding: 0.85rem;
    border-bottom: 1px solid var(--vip-border);
    background: rgba(8, 16, 29, 0.98);
    color: var(--vip-ink);
    font-size: 0.9rem;
    font-weight: 650;
  }

  .vip-mobile-panel-close {
    min-height: 34px;
    padding: 0 0.72rem;
    border-radius: 10px;
    border: 1px solid var(--vip-border);
    background: rgba(148, 163, 184, 0.08);
    color: var(--vip-muted-strong);
    font-size: 0.76rem;
    font-weight: 650;
  }

  .vip-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(2, 6, 23, 0.58);
    backdrop-filter: blur(2px);
  }

  body.vip-mobile-panel-open {
    overflow: hidden;
  }

  body.vip-mobile-panel-open .vip-mobile-backdrop {
    display: block;
  }

  .vip-chat-shell {
    grid-area: chat;
    min-height: 0;
    height: calc(100dvh - 162px);
    max-height: none;
    border-radius: 14px;
  }

  .vip-panel-header,
  .vip-panel-footer {
    padding: 0.78rem 0.85rem;
  }

  .vip-panel-header .vip-section-copy {
    display: none;
  }

  .vip-thread {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 0.85rem;
  }

  .vip-sidebar,
  .vip-aux-shell .vip-card {
    box-shadow: none;
  }

  .vip-landing-title {
    max-width: none;
  }

  .vip-landing-final-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .vip-landing-nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .vip-landing-final-actions {
    align-items: flex-start;
  }

  .vip-landing-cta-caption {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .vip-page-shell {
    padding: 0.72rem 0.72rem 0.85rem;
  }

  .vip-brand-mark {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .vip-page-title {
    font-size: clamp(1.12rem, 5.8vw, 1.45rem);
    line-height: 1.05;
  }

  .vip-page-copy {
    font-size: 0.84rem;
    max-width: none;
  }

  .vip-sidebar,
  .vip-panel-header,
  .vip-panel-footer,
  .vip-thread,
  .vip-aux-shell .vip-card {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .vip-thread {
    min-height: 0;
  }

  .vip-btn {
    min-height: 42px;
  }

  .vip-panel-footer .vip-composer-row {
    align-items: flex-end;
    gap: 0.65rem;
  }

  .vip-panel-footer .vip-composer-row .vip-btn {
    width: auto;
    min-width: 84px;
  }

  .vip-panel-footer .vip-status-line.mt-1 {
    display: none;
  }

  .vip-textarea {
    min-height: 78px;
    max-height: 34dvh;
  }

  .vip-empty-state {
    padding: 1rem;
  }

  .vip-msg-user,
  .vip-msg-assistant {
    max-width: 92% !important;
  }

  .vip-landing-copy {
    padding-top: 0.5rem;
  }

  .vip-landing-title {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .vip-landing-actions,
  .vip-landing-final-actions {
    width: 100%;
  }

  .vip-landing-actions .vip-btn,
  .vip-landing-final-actions .vip-btn,
  .vip-landing-nav-actions .vip-btn {
    width: 100%;
  }
}
