/* SmartRelay UI refresh — inspired by usezyla dashboard + Huawei MaaS */
:root {
  --bg: #f0f4f8;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.12);
  --text: #1e293b;
  --text-soft: #64748b;
  --text-faint: #94a3b8;
  --brand: #0ea5a0;
  --brand-deep: #0f766e;
  --brand-sky: #5eead4;
  --mint: #10b981;
  --violet: #6366f1;
  --amber: #f59e0b;
  --rose: #f43f5e;
  --shadow-lg: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 2px 12px rgba(15, 23, 42, 0.04);
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

html,
body,
#root {
  background: var(--bg) !important;
}

/* ── Console shell (Huawei-style sidebar + clean main) ── */
.console-shell {
  background: var(--bg);
}

.console-sidebar {
  background: #fafbfc;
  border-right: 1px solid var(--line);
  backdrop-filter: none;
  padding: 20px 12px 16px;
  gap: 20px;
}

.console-brand {
  padding: 4px 10px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.console-brand-copy strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.console-brand-copy span {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.console-nav-section-copy {
  padding: 0 10px;
}

.console-nav-section-copy strong {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.console-nav-section-copy span {
  display: none;
}

.console-nav-item {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
}

.console-nav-item:hover {
  background: rgba(14, 165, 160, 0.06);
  color: var(--brand-deep);
}

.console-nav-item.active {
  background: rgba(14, 165, 160, 0.1);
  color: var(--brand-deep);
  box-shadow: none;
  font-weight: 600;
}

.console-sidebar-footer {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.console-sidebar-badge {
  background: rgba(14, 165, 160, 0.1);
  color: var(--brand-deep);
  font-size: 0.78rem;
}

.console-main {
  padding: 16px 20px 24px;
  background: var(--bg);
}

.console-header {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  backdrop-filter: none;
  min-height: 64px;
  padding: 14px 20px;
}

.console-header.compact {
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 10px;
}

.console-header-copy h1 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.console-header-copy p {
  font-size: 0.82rem;
  margin-top: 2px;
}

.console-balance-pill {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.15);
  font-size: 0.88rem;
  min-height: 38px;
}

.console-competition-pill {
  background: rgba(78, 201, 165, 0.1);
  color: #0f766e;
  border-color: rgba(78, 201, 165, 0.22);
}

.console-header-actions {
  gap: 10px;
}

.console-user-card {
  border-radius: 10px;
  min-height: 42px;
}

.console-user-avatar {
  background: linear-gradient(135deg, #0ea5a0, #14b8a6);
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.console-logout-button {
  border-radius: 10px;
  width: 38px;
  height: 38px;
}

/* ── Stat / metric cards (usezyla-style compact cards) ── */
.console-stats-grid,
.dashboard-metrics-grid,
.metrics-grid {
  gap: 12px;
}

.stat-card,
.metric-card,
.dashboard-metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 16px 18px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover,
.metric-card:hover,
.dashboard-metric-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.stat-card {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.stat-card-copy strong {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-card-copy span {
  font-size: 0.82rem;
  font-weight: 600;
}

.metric-card h3,
.dashboard-metric-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
}

.metric-card:before {
  display: none;
}

.metric-tag {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* ── Surface cards & tables ── */
.surface-card,
.table-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 20px;
}

.table-card {
  padding: 0;
  overflow: hidden;
}

.table-toolbar {
  padding: 18px 20px 0;
  margin-bottom: 0;
}

.data-table-wrap {
  border: none;
  border-radius: 0;
  border-top: 1px solid var(--line);
}

.data-table thead th {
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  padding: 12px 16px;
}

.data-table td {
  padding: 14px 16px;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

/* ── Dashboard hero — subtler, usezyla-like ── */
.dashboard-hero,
.hero-panel {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 20px 24px;
}

.dashboard-hero-copy h1,
.hero-panel h1 {
  font-size: 1.35rem;
  font-weight: 700;
}

.dashboard-hero-copy p,
.hero-panel p {
  font-size: 0.88rem;
  opacity: 0.9;
}

.dashboard-state-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  backdrop-filter: none;
}

.dashboard-metric-card {
  min-height: auto;
  background: #fff;
}

.dashboard-main-grid,
.dashboard-lower-grid,
.dashboard-bottom-grid,
.chart-layout,
.two-col {
  gap: 12px;
}

.dashboard-rank-item,
.list-row {
  padding: 12px 0;
}

.dashboard-activity-item,
.dashboard-advice-item,
.dashboard-api-item,
.dashboard-service-item {
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

/* ── Experience / chat (Huawei MaaS style) ── */
.experience-main {
  padding: 12px 16px 16px;
}

.experience-focus-card,
.experience-focus-card.maas-like {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  min-height: calc(100vh - 120px);
}

.experience-focus-topbar {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.experience-model-identity strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.experience-mode-tabs {
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  padding: 3px;
}

.experience-mode-tab {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.experience-mode-tab.active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.experience-empty-stage,
.experience-focus-card.maas-like .experience-empty-stage {
  min-height: 420px;
  padding-top: 60px;
}

.experience-empty-copy h2,
.experience-focus-card.maas-like .experience-empty-copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.experience-empty-copy p {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.experience-message-list,
.experience-message-list.enhanced,
.experience-message-list.spacious,
.experience-focus-card.maas-like .experience-message-list.spacious {
  min-height: 400px;
  padding-top: 8px;
  gap: 16px;
  border-top: 0 !important;
  border-bottom: 0 !important;
  display: flex;
  flex-direction: column;
}

.experience-message {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0;
  gap: 4px;
  max-width: 78%;
}

.experience-message + .experience-message {
  border-top: none;
}

.experience-message.assistant {
  align-self: flex-start;
  text-align: left;
}

.experience-message.user {
  align-self: flex-end;
  text-align: right;
  background: transparent !important;
}

.experience-message-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  text-transform: none;
}

.experience-message.user .experience-message-role {
  color: var(--brand-deep);
}

.experience-message-body {
  line-height: 1.75;
  color: var(--text);
  font-size: 0.94rem;
}

.experience-message.user .experience-message-body.experience-user-text {
  display: inline-block;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: rgba(14, 165, 160, 0.08);
  border: 1px solid rgba(14, 165, 160, 0.14);
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}

.experience-message.assistant .experience-message-body.experience-markdown {
  width: 100%;
  padding: 2px 0;
}

.experience-markdown > *:first-child {
  margin-top: 0;
}

.experience-markdown > *:last-child {
  margin-bottom: 0;
}

.experience-markdown p,
.experience-markdown ul,
.experience-markdown ol,
.experience-markdown pre,
.experience-markdown blockquote,
.experience-markdown h1,
.experience-markdown h2,
.experience-markdown h3,
.experience-markdown h4 {
  margin: 0 0 0.75em;
}

.experience-markdown h1,
.experience-markdown h2,
.experience-markdown h3,
.experience-markdown h4 {
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.experience-markdown h1 { font-size: 1.25rem; }
.experience-markdown h2 { font-size: 1.12rem; }
.experience-markdown h3 { font-size: 1.02rem; }
.experience-markdown h4 { font-size: 0.96rem; }

.experience-markdown ul,
.experience-markdown ol {
  padding-left: 1.35em;
}

.experience-markdown li + li {
  margin-top: 0.35em;
}

.experience-markdown code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f766e;
}

.experience-markdown pre {
  margin: 0.8em 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid #1e293b;
  overflow-x: auto;
}

.experience-markdown pre code {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 0.84rem;
  line-height: 1.6;
  white-space: pre;
}

.experience-markdown blockquote {
  margin: 0.8em 0;
  padding: 0.2em 0 0.2em 12px;
  border-left: 3px solid rgba(14, 165, 160, 0.45);
  color: var(--text-soft);
}

.experience-markdown blockquote p {
  margin-bottom: 0.45em;
}

.experience-markdown a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.experience-markdown hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 1em 0;
}

.experience-markdown.streaming::after {
  content: "▋";
  display: inline-block;
  margin-left: 2px;
  color: var(--brand);
  animation: experience-cursor-blink 1s step-end infinite;
}

@keyframes experience-cursor-blink {
  50% { opacity: 0; }
}

.experience-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.84rem;
  min-height: 34px;
  transition: border-color 0.15s, background 0.15s;
}

.experience-chip:hover {
  border-color: var(--brand);
  background: rgba(14, 165, 160, 0.04);
  color: var(--brand-deep);
}

.experience-textarea,
.experience-textarea.large,
.surface-textarea,
.surface-input {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.experience-textarea.large,
.experience-focus-card.maas-like .experience-textarea.large {
  min-height: 100px;
  border-radius: 12px;
  padding: 14px 16px;
}

.experience-input-row.docked.large,
.experience-focus-card.maas-like .experience-input-row.docked.large {
  background: #fff;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.primary-button.slim,
.auth-action-button {
  background: linear-gradient(135deg, #0ea5a0, #14b8a6);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(14, 165, 160, 0.25);
}

.experience-session-item {
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid var(--line);
}

.experience-session-item.active {
  border-color: rgba(14, 165, 160, 0.3);
  background: rgba(14, 165, 160, 0.05);
  box-shadow: none;
}

.filter-chip {
  cursor: pointer;
  border: none;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.filter-chip:hover {
  color: var(--brand-deep);
  background: rgba(14, 165, 160, 0.12);
}

.filter-chip.active {
  color: var(--brand-deep);
  background: rgba(14, 165, 160, 0.16);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 160, 0.35);
  font-weight: 600;
}

.filter-panel {
  gap: 18px;
}

.filter-group h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.model-card {
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.model-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.provider-section {
  border-radius: 12px;
  background: #fff;
}

.search-box,
.toolbar-button {
  border-radius: 10px;
  height: 44px;
  box-shadow: none;
  border: 1px solid var(--line);
}

/* ── Auth pages ── */
.auth-showcase {
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.auth-form-card,
.loading-card,
.key-card,
.empty-card {
  border-radius: 12px;
  background: #fff;
  backdrop-filter: none;
  box-shadow: var(--shadow-md);
}

.auth-tab-row {
  background: #f1f5f9;
  border-radius: 10px;
}

.auth-tab.active {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ── Recharge & orders ── */
.recharge-package-card {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.recharge-package-card.active {
  box-shadow: 0 0 0 2px rgba(14, 165, 160, 0.3);
}

.recharge-order-row {
  border-radius: 10px;
  background: #fff;
}

.payment-modal {
  border-radius: 16px;
}

/* ── Brand mark — cleaner teal accent ── */
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5a0, #14b8a6);
  box-shadow: 0 2px 8px rgba(14, 165, 160, 0.3);
}

.brand-mark:before,
.brand-mark:after {
  display: none;
}

/* ── Status pills & tags ── */
.status-pill,
.tag-pill {
  border-radius: 6px;
  font-size: 0.78rem;
}

.table-code {
  border-radius: 6px;
  font-size: 0.8rem;
}

/* ── Docs page ── */
.docs-page.page-grid {
  gap: 20px;
  max-width: 1120px;
  margin-top: 0;
  scroll-behavior: smooth;
}

.docs-page .docs-hero {
  padding: 28px 32px;
}

.docs-page .docs-hero p {
  margin: 10px 0 0;
  max-width: 520px;
  line-height: 1.6;
  opacity: 0.92;
}

.docs-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.docs-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-soft);
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.docs-toc a:hover {
  color: var(--brand-deep);
  background: rgba(14, 165, 160, 0.08);
  border-color: rgba(14, 165, 160, 0.22);
}

.docs-page .docs-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.docs-page .doc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.docs-page .doc-card h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.docs-page .doc-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
}

.docs-page .doc-card code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 0.82rem;
}

.docs-page .docs-section {
  scroll-margin-top: 88px;
}

.docs-page .surface-card {
  padding: 22px 24px;
}

.docs-page .surface-card-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.docs-page .surface-card-header h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 700;
}

.docs-page .surface-card-header p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.docs-page .provider-count {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(14, 165, 160, 0.1);
}

.docs-page .docs-step-grid {
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: docs-step;
}

.docs-page .docs-step-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.docs-page .docs-step-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.docs-page .docs-step-card:first-child {
  padding-top: 0;
}

.docs-page .docs-step-index {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--brand-deep);
  background: rgba(14, 165, 160, 0.12);
  font-size: 0.82rem;
}

.docs-page .docs-step-card h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.docs-page .docs-step-card p {
  font-size: 0.86rem;
}

.docs-page .docs-snippet-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 960px) {
  .docs-page .docs-snippet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.docs-page .mono-block {
  margin: 0;
  padding: 16px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #e2e8f0;
  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.docs-page .docs-callout-strip {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--brand-deep);
  background: rgba(14, 165, 160, 0.08);
  border: 1px solid rgba(14, 165, 160, 0.16);
}

.docs-page .docs-callout-strip.soft {
  color: var(--text-soft);
  background: #f8fafc;
  border-color: var(--line);
}

.docs-page .docs-checklist {
  gap: 8px;
}

.docs-page .docs-check-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.docs-page .docs-checklist.warning .docs-check-item {
  background: #fff7f8;
  border-color: rgba(244, 63, 94, 0.14);
}

.docs-page .docs-check-item span {
  font-size: 0.86rem;
}

.docs-page .docs-copy-button {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(14, 165, 160, 0.24);
  color: var(--brand-deep);
  background: rgba(14, 165, 160, 0.08);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.docs-page .docs-copy-button:hover {
  background: rgba(14, 165, 160, 0.14);
  border-color: rgba(14, 165, 160, 0.32);
  transform: none;
}

.docs-page .docs-shell-switch {
  margin-top: auto;
  padding-top: 4px;
}

.docs-page .docs-shell-chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.docs-page .docs-shell-chip.active {
  color: #fff;
  background: linear-gradient(135deg, #0ea5a0, #14b8a6);
  border-color: transparent;
}

.docs-page .docs-faq-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 768px) {
  .docs-page .docs-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.docs-page .docs-faq-card {
  padding: 16px 18px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.docs-page .docs-faq-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.docs-page .docs-faq-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
}

.docs-page .docs-platform-stack {
  gap: 20px;
}

.docs-page .docs-platform-stack > .surface-card {
  padding: 0;
  overflow: hidden;
}

.docs-page .docs-platform-stack .surface-card-header {
  margin-bottom: 0;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.docs-page .docs-provider-meta {
  gap: 12px;
  margin: 0;
  padding: 18px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.docs-page .docs-provider-callout {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.docs-page .docs-model-tags {
  max-height: 88px;
  overflow: auto;
  gap: 8px;
}

.docs-page .docs-model-tags code {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--brand-deep);
  background: rgba(14, 165, 160, 0.1);
  border: 1px solid rgba(14, 165, 160, 0.14);
  font-size: 0.78rem;
}

.docs-page .docs-platform-stack .docs-snippet-grid {
  padding: 16px 24px 24px;
}

.docs-page .docs-platform-stack .doc-card {
  padding: 16px 18px;
}

.docs-page .docs-platform-stack .doc-card h4 {
  margin: 0;
}

.docs-page .docs-platform-stack .doc-card p {
  margin: 8px 0 12px;
  font-size: 0.84rem;
}

.docs-page .doc-card-toolbar {
  margin-bottom: 4px;
}

.docs-page .docs-provider-active {
  border-color: rgba(14, 165, 160, 0.35);
  box-shadow: 0 8px 24px rgba(14, 165, 160, 0.08);
}

.docs-page .status-banner {
  border-radius: 10px;
}

@media (max-width: 900px) {
  .docs-page .docs-grid {
    grid-template-columns: 1fr;
  }

  .docs-toc {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }
}

/* ── Reduce motion-heavy effects globally ── */
.side-panel,
.content-panel,
.console-header,
.loading-card,
.auth-form-card {
  backdrop-filter: none;
}

.side-panel:before,
.content-panel:before,
.metric-card:before {
  display: none;
}

/* ── Scrollbar polish ── */
.experience-message-list::-webkit-scrollbar,
.experience-session-list::-webkit-scrollbar {
  width: 6px;
}

.experience-message-list::-webkit-scrollbar-thumb,
.experience-session-list::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.12);
  border-radius: 999px;
}
