@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");

/* Native portal additions. The public shell remains readable before the
   enhancement script finishes and works with direct links on every route. */
.site-footer { padding: 58px 0 22px; background: #06091a; border-top: 1px solid rgba(145,158,222,.14); }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, .7fr); gap: 40px; }
.site-footer .footer-grid > div { display: grid; align-content: start; gap: 9px; }
.site-footer .footer-grid .brand { width: fit-content; margin-bottom: 7px; }
.site-footer .footer-grid p { max-width: 270px; margin: 0; color: #8994bd; font-size: 12px; line-height: 1.7; }
.site-footer .footer-grid strong { color: #edf1ff; font-size: 12px; }
.site-footer .footer-grid a:not(.brand) { color: #8994bd; font-size: 12px; }
.site-footer .footer-grid a:not(.brand):hover { color: #51d7ed; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 44px; padding-top: 17px; color: #66729f; border-top: 1px solid rgba(145,158,222,.12); font-size: 11px; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: #51d7ed; }
.consult-button { position: fixed; z-index: 30; right: 26px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; color: #f4f2ff; border: 0; border-radius: 999px; background: #7566ef; box-shadow: 0 12px 30px rgba(99,83,230,.35); cursor: pointer; font-size: 12px; font-weight: 600; }
.consult-button span { color: #a7e8ff; }
.consult-button:hover { background: #8577f5; }
.noscript-note { margin: 0 auto 25px; padding: 12px 14px; color: #c9d2f3; background: #101736; border: 1px solid rgba(145,158,222,.2); border-radius: 6px; font-size: 12px; }
.center-page-heading { max-width: 730px; margin: 0 auto; text-align: center; }
.center-page-heading h1 { margin: 0; font-size: clamp(38px,5vw,58px); letter-spacing: -.045em; }
.center-page-heading p:last-child { margin: 18px auto 0; color: var(--muted); line-height: 1.8; }
.model-group { margin-top: 58px; }
.group-title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 22px; }
.group-title span { color: var(--cyan); }
.model-card-image-wrap { height: 190px; margin: -28px -28px 22px; overflow: hidden; background: #080d25; border-bottom: 1px solid rgba(148,163,224,.18); }
.model-card-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.model-card-image-empty { display: grid; place-items: center; color: #59658e; font: 12px "DM Mono", monospace; letter-spacing: .1em; }
.model-card-top h3 { margin: 0; color: #fff; font-size: 18px; }
.models-empty { margin-top: 40px; padding: 38px; color: var(--muted); text-align: center; background: rgba(17,22,52,.72); border: 1px solid var(--line); border-radius: 8px; }
.more-models { margin-top: 66px; padding: 26px 0; border-top: 1px solid var(--line); text-align: center; }
.more-models h3 { margin: 0; font-size: 18px; }
.more-models p { margin: 9px 0 12px; color: var(--muted); font-size: 13px; }
.more-models a { color: var(--cyan); font-size: 13px; }
.guide-code { max-width: 820px; margin-top: 34px; }
.guide-code pre { margin: 0; white-space: pre-wrap; }
.endpoint-card { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; max-width: 680px; margin-top: 24px; padding: 18px; background: #0c1230; border: 1px solid var(--line); border-radius: 7px; }
.endpoint-card p { grid-column: 2; margin: 0; }
.method { padding: 4px 7px; border-radius: 4px; font: 10px "DM Mono", monospace; }
.method-get { color: #78e2b5; background: rgba(120,226,181,.12); }
.method-post { color: #9c8eff; background: rgba(139,115,255,.14); }
.docs-overview-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 28px 0; }
.docs-overview-cards > div { padding: 16px; background: #0c1230; border: 1px solid var(--line); border-radius: 6px; }
.docs-overview-cards span { color: var(--cyan); font: 11px "DM Mono", monospace; }
.docs-overview-cards strong { display: block; margin-top: 11px; color: #eff3ff; font-size: 13px; }
.docs-overview-cards p { margin: 9px 0 0; font-size: 11px; }
.docs-content h1 { margin: 0 0 22px; font-size: 34px; }
.docs-table-wrap { overflow-x: auto; margin-top: 25px; }
.docs-table-wrap table { width: 100%; border-collapse: collapse; color: #bfcaff; font-size: 12px; }
.docs-table-wrap th, .docs-table-wrap td { padding: 12px 14px; border: 1px solid rgba(145,158,222,.15); text-align: left; vertical-align: top; }
.docs-table-wrap th { color: #edf1ff; background: rgba(40,49,101,.4); font-weight: 600; }
.docs-table-wrap tbody tr:nth-child(even) td { background: rgba(17,22,52,.32); }
.profile-form { display: grid; gap: 18px; max-width: 560px; }
.profile-form label { display: grid; gap: 8px; color: #bdc5e5; font-size: 12px; }
.profile-form input { min-height: 42px; padding: 0 12px; color: #fff; background: #080d25; border: 1px solid rgba(148,163,224,.22); border-radius: 5px; outline: none; }
.profile-form input:focus { border-color: #8173f3; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; color: #bcc6e8; font-size: 12px; }
.data-table th, .data-table td { padding: 13px 12px; border-bottom: 1px solid rgba(145,158,222,.13); text-align: left; white-space: nowrap; }
.data-table th { color: #8e9ac2; font-size: 11px; font-weight: 500; }
.api-key-list { display: grid; gap: 10px; margin-top: 22px; }
.api-key-row { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 16px; background: rgba(8,13,37,.62); border: 1px solid rgba(148,163,224,.16); border-radius: 6px; }
.api-key-row > div:first-child { display: grid; gap: 6px; }
.api-key-row strong { color: #eef2ff; font-size: 13px; }
.api-key-row code { color: #9ce5df; font: 12px "DM Mono", monospace; }
.api-key-row small { color: #7884ab; font-size: 10px; }
.api-key-status { color: #78e2b5; font-size: 11px; }
.api-key-actions { display: flex; gap: 12px; }
.text-action { padding: 0; color: var(--cyan); background: none; border: 0; cursor: pointer; font-size: 12px; }
.text-action.danger { color: #f09b9b; }
.auth-switch { margin: 25px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-switch a { color: var(--cyan); }
.auth-agreement { display: flex !important; grid-template-columns: auto 1fr !important; align-items: center; gap: 8px !important; line-height: 1.5; }
.auth-agreement input { min-height: 14px; width: 14px; accent-color: #8173f3; }
.auth-agreement a { color: var(--cyan); }
.code-input, .captcha-input { display: flex; gap: 8px; }
.code-input input, .captcha-input input { min-width: 0; flex: 1; }
.captcha-input img { width: 116px; height: 42px; object-fit: cover; background: #fff; border-radius: 4px; }
.captcha-image-button { display: grid; place-items: center; width: 116px; min-height: 42px; padding: 0; overflow: hidden; border: 0; border-radius: 4px; background: #eef2ff; color: #64748b; cursor: pointer; }
.captcha-image-button:disabled { cursor: wait; opacity: .8; }
.captcha-image-button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.captcha-placeholder { padding: 0 8px; font-size: 11px; line-height: 1.3; text-align: center; }
.console-empty-state { display: grid; place-items: center; min-height: 170px; color: #8793bc; text-align: center; }
body.modal-open { overflow: hidden; }
.api-key-table { min-width: 920px; }
.api-key-table td { vertical-align: middle; }
.api-key-table td:first-child { min-width: 150px; }
.api-key-table td:nth-child(2) { min-width: 270px; }
.api-key-table td:nth-child(3) { min-width: 190px; }
.api-key-table .api-key-value { min-width: 0; }
.api-key-table .api-key-masked { color: #9ce5df; }
.api-key-table .api-key-usage { gap: 12px; }
.api-key-table .api-key-usage b { color: #dce5f1; font-weight: 500; }
.api-key-table .actions-cell { gap: 12px; }
.console-empty-state p { margin: 10px 0; }
.console-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.console-panel-heading h2 { margin: 0; font-size: 17px; }
@media (max-width: 760px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-grid > div:first-child { grid-column: 1 / -1; }
  .docs-overview-cards { grid-template-columns: 1fr; }
  .api-key-row { grid-template-columns: 1fr auto; }
  .api-key-actions { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .consult-button { right: 14px; bottom: 14px; }
}

:root {
  font-family: Manrope, "Microsoft YaHei", sans-serif;
  color: #f3f6ff;
  background: #070a1d;
  font-synthesis: none;
  --bg: #070a1d;
  --panel: rgba(17, 22, 52, 0.72);
  --line: rgba(145, 158, 222, 0.2);
  --muted: #a3acd1;
  --cyan: #51d7ed;
  --violet: #8c73ff;
}

.brand-logo {
  display: block;
  width: 31px;
  height: 31px;
  object-fit: contain;
  border-radius: 5px;
}

.site-header .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.maintenance-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding: 80px 20px;
}

.portal-loading {
  min-height: 62vh;
  display: grid;
  place-items: center;
  color: #aab7c9;
  font-size: 14px;
}

.maintenance-card {
  width: min(520px, 100%);
  padding: 48px 32px;
  border: 1px solid rgba(130, 150, 180, 0.28);
  border-radius: 10px;
  background: rgba(18, 29, 47, 0.86);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.maintenance-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f2c277;
  background: rgba(242, 194, 119, 0.14);
  font-size: 26px;
  font-weight: 700;
}

.maintenance-card h1 {
  margin: 0 0 14px;
  color: #eff3f9;
  font-size: 28px;
}

.maintenance-card p:last-child {
  margin: 0;
  color: #aab7c9;
  font-size: 14px;
}

.announcement-modal {
  width: min(560px, 100%);
}

.announcement-content {
  min-height: 80px;
  max-height: 55vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.announcement-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}
.site-shell {
  min-height: 100vh;
  overflow: hidden;
  background: #070a1d;
}
.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 76px;
  border-bottom: 1px solid rgba(160, 175, 236, 0.12);
  background: rgba(8, 11, 31, 0.74);
  backdrop-filter: blur(18px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand,
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #a67cff, #6158ef);
  border-radius: 8px;
  box-shadow: 0 6px 22px rgba(116, 91, 255, 0.34);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: auto;
}
.main-nav a {
  padding: 10px 15px;
  color: #abb4d8;
  font-size: 13px;
  border-radius: 7px;
  transition: 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(123, 103, 255, 0.22);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.text-link {
  color: #bdc5e3;
  font-size: 13px;
}
.session-chip {
  padding: 6px 11px;
  color: #9eeaf1;
  background: rgba(81, 215, 237, 0.1);
  border: 1px solid rgba(81, 215, 237, 0.22);
  border-radius: 999px;
  font-size: 12px;
}
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  color: #fff;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}
.button-small {
  min-height: 34px;
  padding: 0 15px;
  font-size: 12px;
}
.button-large {
  min-height: 48px;
  padding: 0 23px;
  font-size: 14px;
}
.button-primary {
  background: linear-gradient(105deg, #6e63f5, #8b70ff);
  box-shadow: 0 10px 28px rgba(109, 91, 255, 0.22);
}
.button-primary:hover {
  box-shadow: 0 14px 32px rgba(109, 91, 255, 0.4);
}
.button-outline {
  border-color: rgba(158, 171, 230, 0.35);
  background: rgba(19, 25, 60, 0.5);
  color: #dbe1ff;
}
.button-outline:hover {
  background: rgba(75, 82, 147, 0.3);
}
.button-ghost {
  border-color: var(--line);
  background: transparent;
  color: #dce3ff;
}
.button-block {
  width: 100%;
}
.hero-section {
  position: relative;
  min-height: 760px;
  padding: 170px 0 72px;
  background:
    linear-gradient(180deg, rgba(7, 9, 30, 0.22), #070a1d 96%),
    url("/public/nebula.jpg") center/cover;
}
.hero-section:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 30%,
    transparent 0,
    rgba(7, 10, 29, 0.08) 38%,
    rgba(7, 10, 29, 0.78) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-glow {
  position: absolute;
  pointer-events: none;
  filter: blur(50px);
  opacity: 0.35;
  border-radius: 50%;
}
.hero-glow-one {
  width: 360px;
  height: 280px;
  background: #4542c4;
  top: 170px;
  left: 6%;
}
.hero-glow-two {
  width: 250px;
  height: 220px;
  background: #0c8fa9;
  top: 300px;
  right: 10%;
  opacity: 0.2;
}
.eyebrow {
  margin: 0 0 19px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.hero-content h1 span {
  color: #9a8bff;
}
.hero-copy {
  width: min(580px, 100%);
  margin: 24px auto 0;
  color: #c0c7e5;
  font-size: 16px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.code-window {
  width: min(820px, 100%);
  margin: 64px auto 0;
  text-align: left;
  overflow: hidden;
  background: rgba(8, 13, 34, 0.82);
  border: 1px solid rgba(146, 158, 228, 0.3);
  border-radius: 9px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}
.window-bar {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 17px;
  border-bottom: 1px solid rgba(146, 158, 228, 0.18);
  color: #7882b0;
  font:
    11px "DM Mono",
    monospace;
}
.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e36e82;
}
.window-bar span:nth-child(2) {
  background: #f1be63;
}
.window-bar span:nth-child(3) {
  background: #5ed496;
}
.window-bar em {
  margin-left: 10px;
  font-style: normal;
}
pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.code-window pre {
  padding: 25px 28px;
  color: #d5ddff;
  font:
    12px/2 "DM Mono",
    monospace;
}
.code-key {
  color: #9b8dff;
  font-weight: 500;
}
.code-window i {
  color: #75d9c9;
  font-style: normal;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(750px, 100%);
  margin: 56px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(161, 176, 235, 0.2);
}
.stats-row div {
  display: grid;
  gap: 7px;
}
.stats-row strong {
  color: #fff;
  font-size: 24px;
  letter-spacing: -0.04em;
}
.stats-row strong span {
  margin-left: 2px;
  color: var(--cyan);
  font-size: 13px;
}
.stats-row small {
  color: #969fc2;
  font-size: 11px;
}
.content-section,
.page-section {
  padding: 105px 0;
  background: #070a1d;
}
.feature-section {
  background: #0a0e28;
}
.section-heading {
  text-align: center;
}
.section-heading h2,
.cta-inner h2 {
  margin: 0;
  font-size: 39px;
  letter-spacing: -0.04em;
}
.section-heading > p:last-child,
.cta-inner > div > p:last-child {
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.7;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.feature-card,
.scenario-card,
.model-card,
.playground-panel,
.response-panel,
.guide-step {
  position: relative;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.feature-card {
  min-height: 186px;
}
.feature-index {
  color: var(--cyan);
  font:
    11px "DM Mono",
    monospace;
}
.feature-card h3,
.scenario-card h3 {
  margin: 27px 0 10px;
  font-size: 17px;
}
.feature-card p,
.scenario-card p,
.model-card p,
.guide-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.feature-arrow {
  position: absolute;
  right: 23px;
  top: 25px;
  color: #6571b9;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}
.scenario-card {
  min-height: 240px;
  background: linear-gradient(
    145deg,
    rgba(26, 32, 74, 0.8),
    rgba(12, 15, 42, 0.82)
  );
}
.scenario-icon {
  color: #9c8eff;
  font-size: 28px;
}
.scenario-card h3 {
  margin-top: 23px;
}
.scenario-card a,
.guide-step a {
  display: inline-flex;
  gap: 9px;
  margin-top: 20px;
  color: var(--cyan);
  font-size: 12px;
}
.cta-section {
  padding: 78px 0;
  background: #0b0f2d;
  border-top: 1px solid rgba(145, 158, 222, 0.14);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-inner h2 {
  font-size: 34px;
}
.cta-inner .hero-actions {
  margin: 0;
}
.page-section {
  min-height: calc(100vh - 76px);
  padding-top: 150px;
}
.page-heading {
  max-width: 700px;
}
.page-heading h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.page-heading > p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.8;
}
.model-toolbar {
  display: flex;
  justify-content: space-between;
  margin: 63px 0 17px;
  color: #e4e9ff;
  font-size: 13px;
}
.toolbar-status,
.response-dot {
  color: #9ea8ca;
  font-size: 11px;
}
.toolbar-status i,
.availability i,
.response-dot i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #5bd6b0;
  box-shadow: 0 0 10px #5bd6b0;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.model-card {
  background: #0c1230;
}
.model-card-top,
.response-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.model-badge {
  padding: 5px 8px;
  color: #a69aff;
  background: rgba(137, 115, 255, 0.12);
  border-radius: 4px;
  font-size: 10px;
}
.availability {
  color: #91dabb;
  font-size: 11px;
}
.model-card h2 {
  margin: 25px 0 10px;
  font-size: 22px;
}
.model-card p {
  min-height: 48px;
}
.model-tags {
  display: flex;
  gap: 7px;
  margin: 22px 0;
}
.model-tags span {
  padding: 6px 9px;
  color: #9ca8d3;
  background: rgba(132, 147, 215, 0.1);
  border-radius: 4px;
  font-size: 10px;
}
.playground-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
  margin-top: 52px;
}
.playground-panel,
.response-panel {
  background: #0c1230;
}
.playground-key-block {
  margin: -4px -4px 25px;
  padding: 16px;
  background: rgba(25, 34, 76, 0.58);
  border: 1px solid rgba(126, 147, 224, 0.2);
  border-radius: 6px;
}
.playground-key-block label {
  margin-bottom: 12px;
}
.playground-key-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.playground-key-actions .button {
  min-width: 96px;
  padding: 10px 14px;
}
.playground-key-status {
  color: #aeb9dd;
  font-size: 11px;
}
.playground-key-status.is-valid {
  color: #78e2b5;
}
.playground-key-status.is-invalid {
  color: #f09b9b;
}
.playground-key-status.is-checking {
  color: #f3c774;
}
.playground-key-block .form-note {
  margin-top: 11px;
  color: #8e9ac2;
}
.playground-key-block .form-note a {
  color: var(--cyan);
}
.playground-field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.playground-field-grid label {
  min-width: 0;
}
.playground-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px !important;
  cursor: pointer;
}
.playground-checkbox input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #8173f3;
}
.playground-checkbox span {
  color: #bdc5e5;
}
.playground-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 19px;
  color: #bdc5e5;
  font-size: 12px;
}
.playground-panel input,
.playground-panel select,
.playground-panel textarea {
  width: 100%;
  padding: 12px;
  color: #e8edff;
  background: #080d25;
  border: 1px solid rgba(148, 163, 224, 0.22);
  border-radius: 5px;
  outline: none;
  resize: vertical;
}
.playground-panel textarea:focus,
.playground-panel select:focus {
  border-color: #8173f3;
}
.response-bar {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  color: #dbe2ff;
  font-size: 13px;
}
.response-content {
  padding: 25px 0;
  white-space: pre-wrap;
  color: #bac5ef;
  font:
    12px/1.8 "DM Mono",
    monospace;
}
.playground-result video,
.playground-result img,
video.playground-result,
img.playground-result {
  display: block;
  width: 100px;
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  background: #050817;
  border: 1px solid rgba(148, 163, 224, 0.2);
  border-radius: 5px;
}
.playground-chat-result pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.playground-result a {
  display: inline-block;
  margin-top: 13px;
  color: var(--cyan);
  font-size: 12px;
}
.task-summary {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  color: #9aa6cc;
  font-size: 12px;
}
.task-summary div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
}
.task-summary dt {
  color: #737fa8;
}
.task-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #c5cdef;
  font-family: "DM Mono", monospace;
}
.response-content > p {
  margin: 0;
  color: #bac5ef;
  line-height: 1.7;
}
.task-status-succeeded {
  color: #78e2b5;
}
.task-status-failed,
.task-status-dead_letter {
  color: #f09b9b;
}
.task-status-queued,
.task-status-running,
.task-status-submission_unknown {
  color: #f3c774;
}
.empty-response {
  min-height: 330px;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #727eae;
  text-align: center;
}
.empty-response span {
  color: #8c79ff;
  font-size: 28px;
}
.empty-response p {
  margin: 12px 0 4px;
  color: #b6bfdc;
  font-size: 13px;
}
.empty-response small {
  font-size: 11px;
}
.form-note,
.error-note {
  margin: 12px 0 0;
  color: #f2ad70;
  font-size: 12px;
}
.docs-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 65px;
  margin-top: 60px;
}
.docs-nav {
  position: sticky;
  top: 105px;
  align-self: start;
  display: grid;
  gap: 7px;
}
.docs-nav a {
  padding: 11px 13px;
  color: #8994bd;
  font-size: 12px;
  border-left: 1px solid transparent;
}
.docs-nav a.selected,
.docs-nav a:hover {
  color: #fff;
  border-left-color: var(--cyan);
  background: rgba(83, 102, 177, 0.12);
}
.docs-content article {
  padding: 0 0 53px;
  scroll-margin-top: 100px;
}
.docs-content h2 {
  margin: 0 0 13px;
  font-size: 22px;
}
.docs-content p {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
.docs-content code {
  color: #9ce5df;
  font:
    12px "DM Mono",
    monospace;
}
.docs-code {
  position: relative;
  overflow: hidden;
  background: #080d25;
  border: 1px solid rgba(148, 163, 224, 0.22);
  border-radius: 6px;
}
.docs-code button {
  position: absolute;
  top: 11px;
  right: 12px;
  padding: 5px 9px;
  color: #aeb9e7;
  background: rgba(139, 115, 255, 0.14);
  border: 1px solid rgba(139, 115, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
}
.docs-code pre {
  padding: 22px;
  color: #bfcaff;
  font:
    12px/1.8 "DM Mono",
    monospace;
}
.guide-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 56px;
}
.guide-step {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  align-items: start;
  background: #0c1230;
}
.step-number {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  color: #a798ff;
  background: rgba(139, 115, 255, 0.14);
  border: 1px solid rgba(139, 115, 255, 0.25);
  border-radius: 50%;
  font:
    13px "DM Mono",
    monospace;
}
.guide-step h2 {
  margin: 4px 0 10px;
  font-size: 18px;
}
.guide-note {
  max-width: 820px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 18px 20px;
  color: #b6c0df;
  background: rgba(81, 215, 237, 0.07);
  border: 1px solid rgba(81, 215, 237, 0.18);
  border-radius: 6px;
  font-size: 12px;
}
.guide-note a {
  margin-left: auto;
  color: var(--cyan);
}
.auth-section {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 120px 24px 80px;
  background:
    linear-gradient(180deg, rgba(10, 13, 39, 0.42), #070a1d),
    url("/public/nebula.jpg") center/cover;
}
.auth-card {
  width: min(460px, 100%);
  padding: 42px;
  background: rgba(10, 15, 39, 0.85);
  border: 1px solid rgba(145, 158, 222, 0.28);
  border-radius: 9px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}
.auth-brand {
  margin-bottom: 58px;
}
.auth-card h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}
.auth-copy {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.auth-form {
  display: grid;
  gap: 18px;
}
.register-type-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 4px;
  background: rgba(8, 13, 34, 0.72);
  border: 1px solid rgba(145, 158, 222, 0.22);
  border-radius: 7px;
}
.register-type-button {
  min-height: 38px;
  color: #8f9ac2;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.register-type-button:hover,
.register-type-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(136, 117, 255, 0.9), rgba(81, 215, 237, 0.72));
  box-shadow: 0 8px 22px rgba(81, 215, 237, 0.14);
}
.register-fields {
  display: grid;
  gap: 18px;
}
.register-fields[hidden] {
  display: none;
}
.auth-form label {
  display: grid;
  gap: 8px;
  color: #c2cae7;
  font-size: 12px;
}
.auth-form input {
  min-height: 44px;
  padding: 0 13px;
  color: #fff;
  background: rgba(8, 13, 34, 0.85);
  border: 1px solid rgba(145, 158, 222, 0.28);
  border-radius: 5px;
  outline: none;
}
.auth-form > label > input:not([type="checkbox"]),
.auth-form .phone-input,
.auth-form .code-input,
.auth-form .captcha-input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}
.auth-form input:focus {
  border-color: #8875ff;
}
.register-actions {
  display: grid;
  gap: 12px;
}
.back-link {
  display: inline-block;
  margin-top: 28px;
  color: #8d99c0;
  font-size: 12px;
}
.site-footer {
  padding: 60px 0 25px;
  background: #060817;
  border-top: 1px solid rgba(145, 158, 222, 0.15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 30px;
}
.footer-grid .brand {
  margin-bottom: 17px;
}
.footer-grid p {
  max-width: 240px;
  color: #818bac;
  font-size: 12px;
  line-height: 1.7;
}
.footer-grid > div:not(:first-child) {
  display: grid;
  align-content: start;
  gap: 12px;
}
.footer-grid strong {
  margin-bottom: 5px;
  color: #dfe5ff;
  font-size: 12px;
}
.footer-grid a:not(.brand) {
  color: #838dae;
  font-size: 12px;
}
.footer-grid a:not(.brand):hover {
  color: var(--cyan);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 58px;
  padding-top: 20px;
  color: #606b8e;
  border-top: 1px solid rgba(145, 158, 222, 0.12);
  font-size: 11px;
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
}
.sales-float {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 17px;
  color: #fff;
  background: linear-gradient(105deg, #5c68e8, #8669fb);
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(68, 80, 214, 0.4);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  text-decoration: none;
}
.sales-float-wrap {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 22px;
}
.sales-float-wrap .sales-float {
  position: static;
}
.sales-float-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 174px;
  padding: 12px;
  color: #4f5f75;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(5, 15, 34, 0.28);
  font-size: 11px;
}
.sales-float-popover img {
  display: block;
  width: 148px;
  height: 148px;
  object-fit: contain;
}
.sales-float span {
  color: #aeeef3;
}
@media (max-width: 860px) {
  .main-nav {
    gap: 0;
  }
  .main-nav a {
    padding: 9px 8px;
    font-size: 11px;
  }
  .feature-grid,
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .playground-layout {
    grid-template-columns: 1fr;
  }
  .docs-layout {
    gap: 28px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .container {
    width: min(100% - 32px, 1160px);
  }
  .site-header {
    height: 66px;
  }
  .header-inner {
    gap: 10px;
  }
  .brand {
    font-size: 13px;
  }
  .brand-mark {
    width: 27px;
    height: 27px;
  }
  .main-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
    gap: 9px;
  }
  .hero-section {
    min-height: 730px;
    padding-top: 130px;
  }
  .hero-content h1 {
    font-size: 42px;
  }
  .hero-copy {
    font-size: 14px;
  }
  .playground-field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .playground-key-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .code-window {
    margin-top: 43px;
  }
  .code-window pre {
    padding: 19px;
    font-size: 10px;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
    margin-top: 38px;
  }
  .content-section,
  .page-section {
    padding: 80px 0;
  }
  .section-heading h2,
  .cta-inner h2 {
    font-size: 30px;
  }
  .feature-grid,
  .scenario-grid,
  .model-grid {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    display: grid;
  }
  .cta-inner .hero-actions {
    flex-direction: row;
  }
  .page-section {
    padding-top: 112px;
  }
  .page-heading h1 {
    font-size: 40px;
  }
  .model-toolbar {
    margin-top: 40px;
  }
  .docs-layout {
    display: block;
  }
  .docs-nav {
    position: static;
    display: flex;
    overflow-x: auto;
    margin-bottom: 40px;
  }
  .docs-nav a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 1px solid transparent;
  }
  .docs-nav a.selected,
  .docs-nav a:hover {
    border-bottom-color: var(--cyan);
  }
  .guide-step {
    grid-template-columns: 48px 1fr;
    padding: 21px;
  }
  .guide-list {
    grid-template-columns: 1fr;
  }
  .guide-note {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .guide-note a {
    margin-left: 0;
  }
  .auth-card {
    padding: 30px 24px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 18px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .footer-bottom {
    display: grid;
    gap: 8px;
  }
  .sales-float {
    right: 14px;
    bottom: 14px;
  }
  .sales-float-wrap {
    right: 14px;
    bottom: 14px;
  }
}

/* Reference page calibration */
.site-shell {
  background: #090e1a;
  color: #d7deed;
}
.container {
  width: min(1280px, calc(100% - 48px));
}
.site-header {
  height: 64px;
  background: #0b101d;
  border-bottom-color: #1b2637;
}
.header-inner {
  width: min(1240px, calc(100% - 48px));
}
.brand {
  font-size: 17px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #202d61;
  color: #6c63ff;
  box-shadow: none;
}
.main-nav a {
  padding: 10px 14px;
  color: #98a4ba;
  font-size: 14px;
}
.main-nav a:hover,
.main-nav a.active {
  color: #6f68ff;
  background: #171d48;
}
.header-actions {
  gap: 25px;
}
.text-link {
  font-size: 14px;
  color: #9aa5bb;
}
.button-small {
  height: 36px;
  min-height: 36px;
  padding: 0 18px;
  font-size: 14px;
  border-radius: 7px;
}
.button-primary {
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  box-shadow: none;
}
.button-primary:hover {
  box-shadow: none;
}
.button-outline {
  border-color: #334155;
  background: transparent;
  color: #a8b1c3;
}
.hero-section {
  min-height: 972px;
  padding: 0;
  background: #090e1a;
  position: relative;
  isolation: isolate;
}
.hero-section:before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("/public/black-hole-galaxy-cosmic-space-nebula.jpg") center/cover;
  transform: scale(1.1);
}
.hero-section:after {
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 39, 0.7),
    rgba(15, 23, 42, 0.8) 48%,
    rgba(26, 15, 46, 0.9)
  );
}
.hero-content {
  padding-top: 140px;
}
.hero-glow {
  display: none;
}
.eyebrow {
  margin-bottom: 18px;
  color: #8a80ff;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: none;
}
.hero-content h1 {
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero-content h1 span {
  background: linear-gradient(90deg, #6366f1, #818cf8, #06b6d4);
  background-clip: text;
  color: transparent;
}
.hero-copy {
  margin-top: 26px;
  color: #a7b0c3;
  font-size: 16px;
  line-height: 1.8;
}
.hero-actions {
  margin-top: 38px;
}
.button-large {
  height: 48px;
  min-height: 48px;
  padding: 0 24px;
  font-size: 14px;
}
.code-window {
  width: 767px;
  height: 260px;
  margin-top: 64px;
  background: #111927;
  border-color: #334155;
  border-radius: 10px;
}
.window-bar {
  height: 42px;
  padding: 0 17px;
  border-bottom-color: #334155;
  font-size: 12px;
}
.code-window pre {
  height: 218px;
  overflow: hidden;
  padding: 22px;
  color: #aebbd0;
  font-size: 12px;
  line-height: 1.9;
}
.stats-section {
  height: 161px;
  display: flex;
  align-items: center;
  background: rgba(17, 25, 39, 0.55);
  border-top: 1px solid #243148;
  border-bottom: 1px solid #243148;
}
.stats-section .stats-row {
  margin: 0 auto;
  padding: 0;
  border: 0;
}
.stats-row strong {
  font-size: 24px;
}
.stats-row small {
  color: #8794aa;
  font-size: 12px;
}
.content-section,
.page-section {
  background: #090e1a;
}
.feature-section {
  padding: 80px 0;
  background: #111927;
}
.section-heading h2,
.cta-inner h2 {
  font-size: 32px;
}
.section-heading > p:last-child {
  color: #8794aa;
}
.feature-grid {
  gap: 18px;
}
.feature-card,
.scenario-card,
.model-card,
.playground-panel,
.response-panel,
.guide-step {
  background: #1d2a3d;
  border-color: #334155;
  border-radius: 10px;
}
.feature-card {
  min-height: 180px;
  padding: 24px;
}
.feature-card h3 {
  margin-top: 22px;
}
.scenario-section {
  padding: 80px 0;
  background: #090e1a;
}
.scenario-card {
  background: #1d2a3d;
}
.cta-section {
  background: #111927;
}
.page-section {
  padding-top: 112px;
}
.center-page-heading {
  text-align: center;
  margin: 0 auto 52px;
}
.center-page-heading h1 {
  margin: 0;
  font-size: 40px;
  letter-spacing: -0.04em;
}
.center-page-heading p {
  margin: 14px 0 0;
  color: #8794aa;
  font-size: 14px;
}
.models-page .container {
  width: min(1230px, calc(100% - 48px));
}
.model-group {
  margin: 0 0 44px;
}
.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 20px;
}
.group-title span {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  color: #07cde4;
  background: #15294a;
  border-radius: 7px;
  font-size: 16px;
}
.model-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.model-card {
  padding: 24px;
  background: #1d2a3d;
}
.model-card-image-wrap {
  aspect-ratio: 16 / 9;
  height: auto;
  margin: -24px -24px 20px;
  overflow: hidden;
  background: #111a2b;
  position: relative;
}
.model-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.model-card-image-wrap > video.model-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}
.model-card-top h3 {
  margin: 0 0 5px;
  font-size: 15px;
}
.model-card-top code {
  color: #6d7890;
  font:
    11px "DM Mono",
    monospace;
}
.model-badge {
  padding: 6px 10px;
  background: #263170;
  color: #6f66ff;
  font-size: 11px;
  border-radius: 999px;
}
.model-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  color: #aab6c8;
  font-size: 12px;
}
.model-card li:before {
  content: "✓";
  margin-right: 8px;
  color: #33d486;
  font-weight: 700;
}
.model-divider {
  height: 1px;
  background: #334155;
}
.model-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  color: #8490a4;
  font-size: 12px;
}
.model-meta strong {
  color: #e3e9f2;
  font:
    12px "DM Mono",
    monospace;
}
.more-models {
  text-align: center;
  padding: 42px 0 20px;
}
.more-models h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.more-models p {
  margin: 0 0 12px;
  color: #8490a4;
  font-size: 13px;
}
.more-models a {
  color: #6b66f5;
  font-size: 13px;
}
.models-empty {
  padding: 34px 20px;
  color: #8490a4;
  background: #151f30;
  border: 1px dashed #334155;
  text-align: center;
  font-size: 13px;
}
.docs-layout {
  grid-template-columns: 190px 1fr;
  gap: 65px;
  margin-top: 0;
}
.docs-nav {
  top: 92px;
  gap: 4px;
}
.docs-nav p {
  margin: 18px 13px 6px;
  color: #68758c;
  font-size: 12px;
}
.docs-nav a {
  border: 0;
  border-radius: 4px;
  color: #a5afc1;
}
.docs-nav a.selected,
.docs-nav a:hover {
  border: 0;
  background: #171d48;
  color: #6e68ff;
}
.docs-content {
  max-width: 765px;
}
.docs-content article {
  padding-bottom: 46px;
}
.docs-content h1 {
  margin: 0 0 17px;
  font-size: 32px;
}
.docs-content h2 {
  font-size: 24px;
}
.docs-content h3 {
  margin: 0 0 10px;
  font-size: 14px;
}
.docs-content p {
  color: #9ba7bb;
  font-size: 14px;
}
.docs-overview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 25px 0 60px;
}
.docs-overview-cards > div {
  display: grid;
  gap: 10px;
  padding: 18px;
  text-align: center;
  background: #111927;
  border: 1px solid #1d293b;
  border-radius: 8px;
}
.docs-overview-cards span {
  color: #718097;
  font-size: 12px;
}
.docs-overview-cards code {
  color: #6c66ff;
}
.doc-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  margin: 20px 0;
}
.doc-step > b {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #192053;
  color: #7169ff;
}
.docs-code {
  background: #111927;
  border-color: #1d293b;
}
.docs-code pre {
  color: #aebbd0;
}
.method-badge {
  display: inline-block;
  margin: 7px 8px 20px 0;
  padding: 5px 8px;
  background: #123c47;
  color: #34c9db;
  border-radius: 4px;
  font:
    11px "DM Mono",
    monospace;
}
.method-get {
  background: #242348;
  color: #847cff;
}
.docs-eyebrow {
  margin: 0 0 10px;
  color: #7770ff !important;
  font:
    11px "DM Mono",
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.docs-callout {
  margin: 22px 0 0;
  padding: 13px 15px;
  border: 1px solid #29374c;
  border-left-width: 3px;
  border-radius: 6px;
  color: #aebbd0;
  font-size: 13px;
  line-height: 1.7;
}
.docs-callout-info {
  border-left-color: #6d67f7;
  background: rgba(42, 42, 105, 0.3);
}
.docs-callout-warning {
  border-left-color: #e0ab4d;
  background: rgba(76, 56, 28, 0.32);
}
.docs-callout code,
.docs-muted code {
  color: #d9c47c;
}
.docs-muted {
  color: #7f8da3 !important;
}
.endpoint-article {
  scroll-margin-top: 90px;
}
.endpoint-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.endpoint-heading h2 {
  margin-top: 0;
}
.endpoint-meta {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  padding-top: 5px;
  color: #c0cbdb;
  font-size: 12px;
  white-space: nowrap;
}
.endpoint-meta .method-badge {
  margin: 0;
}
.endpoint-access {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 3px 0 24px;
  color: #7988a0;
  font-size: 12px;
}
.endpoint-access span + span {
  color: #8dd3cd;
}
.docs-content h3 {
  margin-top: 24px;
}
.docs-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 12px 0 20px;
}
.docs-table-wrap table {
  min-width: 570px;
}
.docs-table-wrap code {
  color: #c6b9ff;
  white-space: nowrap;
}
.docs-request-table {
  margin: 0 0 15px;
  border-radius: 7px;
  overflow: hidden;
  background: #101a27;
}
.docs-request-table table {
  min-width: 620px;
  border-collapse: collapse;
  color: #c4cfdf;
  background: #101a27;
  font-size: 13px;
}
.docs-request-table th,
.docs-request-table td {
  padding: 14px 16px;
  border: 1px solid #29394f;
  text-align: left;
  vertical-align: middle;
}
.docs-request-table th {
  color: #dce5f0;
  background: #162132;
  font-weight: 700;
}
.docs-request-table tbody tr:nth-child(even) td {
  background: #111c2a;
}
.docs-request-table td:first-child,
.docs-request-table th:first-child { width: 26%; }
.docs-request-table td:nth-child(2),
.docs-request-table th:nth-child(2) { width: 14%; }
.docs-request-table td:nth-child(3),
.docs-request-table th:nth-child(3) { width: 12%; }
.docs-request-table td:nth-child(4),
.docs-request-table th:nth-child(4) { width: 48%; }
.docs-request-table td code {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #35476a;
  border-radius: 4px;
  color: #b8c5ff;
  background: #1a2540;
  font: 12px/1.35 "DM Mono", monospace;
}
.docs-request-table td:first-child code,
.docs-request-table td:nth-child(2) code {
  padding: 0;
  border: 0;
  color: #c4cfdf;
  background: transparent;
}
.docs-notes {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #8492a8;
  font-size: 13px;
  line-height: 1.7;
}
.docs-code {
  position: relative;
  overflow: hidden;
  margin: 12px 0 20px;
  border: 1px solid #1d293b;
  border-radius: 6px;
}
.docs-code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 11px 0 14px;
  border-bottom: 1px solid #1d293b;
  color: #77869d;
  font:
    10px "DM Mono",
    monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.docs-code-toolbar button {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #33435d;
  border-radius: 4px;
  background: #18263a;
  color: #aab9cf;
  cursor: pointer;
  font-size: 11px;
}
.docs-code-toolbar button:hover,
.docs-code-toolbar button:focus-visible {
  border-color: #6c63ff;
  color: #fff;
  outline: none;
}
.docs-code pre {
  max-height: 520px;
  margin: 0;
  padding: 17px 18px;
  overflow: auto;
  color: #b9c6da;
  font: 12px/1.7 "DM Mono", monospace;
  white-space: pre;
}
.docs-copy-error {
  display: block;
  padding: 0 18px 12px;
  color: #e7b56b;
  font-size: 11px;
}
.docs-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.docs-capability {
  padding: 17px 18px;
  border: 1px solid #29374c;
  border-radius: 6px;
  background: #111927;
}
.docs-capability strong {
  display: block;
  margin-bottom: 10px;
  color: #dbe5f2;
  font-size: 13px;
}
.docs-capability ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: #8d9bb0;
  font-size: 12px;
  line-height: 1.55;
}
.docs-capability-supported {
  border-top: 2px solid #36c2ad;
}
.docs-capability-pending {
  border-top: 2px solid #8e81e9;
}
.docs-best-practices {
  padding-bottom: 30px;
}
.docs-best-practices h2 {
  margin-top: 0;
}
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  color: #aeb9ca;
  font-size: 12px;
}
.docs-content th,
.docs-content td {
  padding: 11px;
  border: 1px solid #29374c;
  text-align: left;
}
.guide-page .container {
  width: min(1230px, calc(100% - 48px));
}
.guide-code {
  width: min(820px, 100%);
  max-width: none;
}
.guide-code pre {
  max-height: none;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.guide-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.guide-cards:before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 32px;
  border-top: 1px solid #303b68;
}
.guide-card {
  position: relative;
  z-index: 1;
  min-height: 190px;
  padding: 24px;
  background: #1d2a3d;
  border: 1px solid #334155;
  border-radius: 10px;
}
.guide-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #6e67ff;
  background: #202d61;
  border-radius: 7px;
  font-size: 20px;
}
.guide-card-number {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #263170;
  color: #6c66ff;
  font:
    11px "DM Mono",
    monospace;
}
.guide-card h3 {
  margin: 21px 0 10px;
  font-size: 16px;
}
.guide-card p {
  margin: 0;
  color: #8693a8;
  font-size: 13px;
  line-height: 1.7;
}
.code-example-card {
  margin-top: 84px;
  padding: 24px;
  background: #1d2a3d;
  border: 1px solid #334155;
  border-radius: 10px;
}
.code-example-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.code-example-header h2 {
  margin: 0;
  font-size: 18px;
}
.code-example-header span {
  padding: 6px 10px;
  background: #202d61;
  color: #6d66ff;
  font-size: 12px;
  border-radius: 4px;
}
.code-example-card pre {
  margin-top: 20px;
  padding: 20px;
  background: #111927;
  border-radius: 7px;
  color: #aebbd0;
  font:
    12px/1.9 "DM Mono",
    monospace;
}
.guide-links {
  display: flex;
  gap: 28px;
  margin: 22px 0 60px;
}
.guide-links a {
  color: #6d67ff;
  font-size: 13px;
}
.best-title {
  font-size: 24px;
}
.best-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.best-grid article h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.best-grid article p {
  margin: 0;
  color: #8490a4;
  font-size: 13px;
  line-height: 1.7;
}
.site-footer {
  background: #070b14;
  border-top-color: #1b2637;
}
.footer-grid {
  grid-template-columns: 2fr repeat(3, 1fr);
}
.footer-grid p,
.footer-grid a:not(.brand),
.footer-grid span {
  color: #7c899e;
}
.footer-grid strong {
  color: #c2ccdc;
}
.footer-bottom {
  border-top-color: #1b2637;
}
@media (max-width: 900px) {
  .model-grid,
  .guide-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-cards:before {
    display: none;
  }
  .docs-layout {
    grid-template-columns: 150px 1fr;
  }
}
@media (max-width: 620px) {
  .container,
  .models-page .container,
  .guide-page .container {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 64px;
  }
  .hero-section {
    min-height: 850px;
  }
  .hero-content {
    padding-top: 130px;
  }
  .hero-content h1 {
    font-size: 42px;
  }
  .code-window {
    width: 100%;
    height: 270px;
  }
  .code-window pre {
    height: 228px;
    font-size: 10px;
  }
  .stats-section {
    height: auto;
    padding: 28px 0;
  }
  .stats-section .stats-row {
    width: 100%;
  }
  .center-page-heading h1 {
    font-size: 34px;
  }
  .model-grid,
  .guide-cards,
  .best-grid {
    grid-template-columns: 1fr;
  }
  .docs-layout {
    display: block;
  }
  .docs-nav {
    display: flex;
    overflow: auto;
    position: static;
    margin-bottom: 40px;
  }
  .docs-nav p {
    display: none;
  }
  .docs-nav a {
    white-space: nowrap;
  }
  .docs-overview-cards {
    grid-template-columns: 1fr;
  }
  .endpoint-heading {
    display: block;
  }
  .endpoint-meta {
    padding-top: 0;
    white-space: normal;
  }
  .docs-capability-grid {
    grid-template-columns: 1fr;
  }
  .docs-code pre {
    font-size: 11px;
  }
  .guide-cards {
    margin-top: 35px;
  }
  .code-example-card {
    margin-top: 45px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Member console */
.console-page {
  padding: 64px 0 0;
  min-height: calc(100vh - 64px);
  background: #090e1a;
}
.console-shell {
  width: 100%;
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  background: #0d1422;
}
.console-sidebar {
  display: flex;
  flex-direction: column;
  padding: 26px 16px 20px;
  background: #111927;
  border-right: 1px solid #26344a;
}
.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #6c63ff, #10b9c8);
  font-weight: 700;
}
.console-nav {
  display: grid;
  gap: 5px;
}
.console-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px 13px;
  border: 0;
  border-radius: 6px;
  color: #8997ad;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.console-nav button:hover {
  color: #e8eef8;
  background: #18233a;
}
.console-nav button.active {
  color: #fff;
  background: #202b5a;
  box-shadow: inset 3px 0 #6c63ff;
}
.nav-icon {
  display: grid;
  place-items: center;
  width: 20px;
  color: #7988a2;
  font-size: 16px;
}
.console-nav button.active .nav-icon {
  color: #8b82ff;
}
.console-main {
  min-width: 0;
  padding: 0 38px 60px;
  background: #0d1422;
}
.console-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 31px 0 27px;
  border-bottom: 1px solid #243149;
}
.console-topbar > div:first-child {
  min-width: 0;
  text-align: left;
}
.console-topbar .eyebrow {
  margin: 0 0 7px;
  color: #74829a;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.console-topbar h1 {
  margin: 0;
  color: #f1f5fb;
  font-size: 25px;
  letter-spacing: -0.02em;
}
.console-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}
.finance-subnav {
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  padding: 3px;
  border: 1px solid #2b3d55;
  border-radius: 6px;
  background: #101a29;
}
.finance-subnav button {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 4px;
  color: #7f8fa7;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}
.finance-subnav button:hover {
  color: #e8eef8;
}
.finance-subnav button.active {
  color: #fff;
  background: #29376f;
}
.console-view {
  padding-top: 28px;
}
.console-welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.console-welcome h2 {
  margin: 0;
  color: #f2f5fa;
  font-size: 23px;
}
.console-view-intro p {
  margin: 0;
  color: #8290a5;
  font-size: 12px;
}
.welcome-date {
  color: #7d8aa0;
  font-size: 11px;
}
.console-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 17px;
}
.console-metric-card {
  display: grid;
  gap: 9px;
  min-height: 120px;
  padding: 19px 18px;
  background: #172234;
  border: 1px solid #293950;
  border-radius: 7px;
}
.console-metric-card span,
.console-metric-card small {
  color: #8390a5;
  font-size: 11px;
}
.console-metric-card strong {
  overflow: hidden;
  color: #f2f5fb;
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.console-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 15px;
}
.console-panel {
  min-width: 0;
  padding: 22px;
  background: #172234;
  border: 1px solid #293950;
  border-radius: 7px;
}
.console-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.usage-panel .console-panel-heading {
  align-items: center;
}
.usage-panel .panel-caption {
  display: block;
  margin-top: 7px;
}
.console-panel-heading .eyebrow {
  margin: 0 0 8px;
  color: #77859c;
  font-size: 10px;
}
.console-panel h2 {
  margin: 0;
  color: #edf2f9;
  font-size: 16px;
}
.console-muted,
.panel-caption {
  color: #718097;
  font-size: 11px;
}
.usage-toolbar {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.usage-period-tabs {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #2b3d55;
  border-radius: 6px;
  background: #101a29;
}
.usage-period-tabs button {
  min-width: 52px;
  min-height: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  color: #7f8fa7;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}
.usage-period-tabs button:hover {
  color: #d7e1ee;
}
.usage-period-tabs button.active {
  color: #f5f7fc;
  background: #29345c;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.usage-custom-range {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
  margin: -4px 0 18px;
}
.usage-custom-range label {
  display: grid;
  gap: 6px;
  color: #8390a5;
  font-size: 10px;
}
.usage-custom-range input {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #2c3f58;
  border-radius: 5px;
  color: #e5ebf4;
  background: #101a29;
  color-scheme: dark;
  font-size: 11px;
}
.usage-custom-range input:focus {
  outline: none;
  border-color: #6c63ff;
}
.usage-custom-range > span {
  padding-bottom: 9px;
  color: #62728a;
  font-size: 11px;
}
.usage-custom-range .button {
  min-height: 32px;
  padding: 0 14px;
  font-size: 11px;
}
.usage-trend {
  display: grid;
  gap: 12px;
  min-height: 280px;
}
.usage-chart-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.usage-line-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 250px;
  overflow: visible;
}
.usage-grid-lines line {
  stroke: #273950;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.usage-axis-labels text {
  fill: #718097;
  font-size: 10px;
}
.usage-lines path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.usage-points circle {
  stroke: #172234;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.usage-hit-areas rect {
  fill: transparent;
  cursor: crosshair;
}
.usage-tooltip {
  position: absolute;
  z-index: 2;
  top: 8px;
  display: grid;
  min-width: 142px;
  gap: 6px;
  padding: 9px 11px;
  border: 1px solid #415579;
  border-radius: 5px;
  color: #b9c6d9;
  background: #111b2b;
  box-shadow: 0 8px 20px rgba(4, 8, 18, 0.28);
  pointer-events: none;
  font-size: 10px;
  white-space: nowrap;
}
.usage-tooltip strong {
  margin-bottom: 2px;
  color: #f3f6fb;
  font-size: 11px;
}
.usage-tooltip span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.usage-tooltip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.usage-trend-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  min-height: 26px;
  padding: 0 2px;
}
.usage-trend-legend .legend-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #aab6c9;
  font-size: 11px;
}
.usage-trend-legend .legend-row strong {
  margin-left: 2px;
  color: #8090a8;
  font-size: 10px;
}
.usage-legend {
  display: grid;
  gap: 17px;
}
.legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: #aab6c9;
  font-size: 12px;
}
.legend-row strong {
  color: #eff3fa;
  font:
    12px "DM Mono",
    monospace;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.console-empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  text-align: center;
}
.console-empty-state span {
  color: #6c63ff;
  font-size: 25px;
}
.console-empty-state p {
  margin: 10px 0 4px;
  color: #a9b4c6;
  font-size: 13px;
}
.console-empty-state small {
  color: #718097;
  font-size: 11px;
}
.detail-list {
  display: grid;
  gap: 0;
  margin: 4px 0 20px;
}
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #26364c;
}
.detail-list dt {
  color: #77869c;
  font-size: 11px;
}
.detail-list dd {
  margin: 0;
  overflow: hidden;
  color: #d7dfeb;
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-list code,
.data-table code {
  color: #82d6da;
  font:
    11px "DM Mono",
    monospace;
}
.text-action {
  padding: 0;
  border: 0;
  color: #7d75ff;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.text-action span {
  margin-left: 5px;
}
.console-view-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.console-view-intro h2 {
  margin: 0 0 8px;
  color: #edf2f9;
  font-size: 22px;
}
.finance-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 15px;
}
.finance-overview-panel {
  padding: 19px;
}
.finance-overview-panel .console-panel-heading {
  align-items: center;
  margin-bottom: 15px;
}
.finance-overview-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.finance-overview-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid #293950;
  border-radius: 6px;
  background: #131e2f;
}
.finance-overview-list span {
  color: #8390a5;
  font-size: 11px;
}
.finance-overview-list strong {
  color: #f2f5fb;
  font:
    14px "DM Mono",
    monospace;
  white-space: nowrap;
}
.finance-section {
  padding: 19px;
}
.finance-section .console-panel-heading {
  align-items: center;
  margin-bottom: 15px;
}
.task-filter-panel {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: end;
  overflow-x: auto;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid #293950;
  border-radius: 6px;
  background: #131e2f;
}
.task-filter-panel > label {
  flex: 1 1 130px;
  min-width: 98px;
}
.task-filter-date-field {
  flex: 1.4 1 205px !important;
  min-width: 185px !important;
}
.task-filter-laydate-input {
  cursor: pointer;
}
.task-filter-date-field .dp__main {
  width: 100%;
}
.task-filter-date-field .dp__input_wrap {
  width: 100%;
}
.task-filter-date-field .dp__input {
  height: 34px;
  color: #dce5f1;
  background: #0f1a2b;
  border-color: #30435f;
  border-radius: 4px;
  font-size: 11px;
}
.task-filter-date-field .dp__input:focus {
  border-color: #8c82ff;
}
.task-filter-date-field .dp__theme_light {
  --dp-background-color: #172234;
  --dp-menu-border-color: #3a4b68;
  --dp-text-color: #dce5f1;
  --dp-hover-color: #26364c;
  --dp-hover-text-color: #ffffff;
  --dp-primary-color: #8c82ff;
  --dp-primary-text-color: #ffffff;
  --dp-secondary-color: #8390a5;
  --dp-border-color: #30435f;
}
.task-filter-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.task-filter-panel label {
  display: grid;
  gap: 6px;
  min-width: 98px;
  color: #8390a5;
  font-size: 10px;
}
.task-filter-panel input,
.task-filter-panel select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  color: #dce5f1;
  background: #0f1a2b;
  border: 1px solid #30435f;
  border-radius: 4px;
  font-size: 11px;
  font-family: inherit;
}
.task-filter-panel input:focus,
.task-filter-panel select:focus {
  outline: 1px solid #8c82ff;
  border-color: #8c82ff;
}
.task-filter-reset {
  height: 34px;
}
.recharge-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.3fr) minmax(0, 0.7fr);
  align-items: start;
  gap: 15px;
}
.recharge-aside,
.recharge-content {
  display: grid;
  gap: 15px;
  min-width: 0;
}
.recharge-balance-card {
  display: grid;
  gap: 18px;
  min-height: 158px;
  padding: 20px;
  border: 1px solid #3b4870;
  border-radius: 7px;
  background: #202b48;
  box-shadow: 0 15px 30px rgba(7, 12, 26, 0.2);
}
.recharge-balance-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}
.recharge-balance-heading > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.recharge-balance-heading > div > span {
  color: #eef3ff;
  font-size: 15px;
  font-weight: 650;
}
.recharge-balance-heading small {
  color: #93a0bb;
  font-size: 10px;
}
.recharge-balance-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 8px;
  color: #a79fff;
  background: #36357d;
}
.recharge-balance-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.recharge-icon-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #3d4b6e;
  border-radius: 5px;
  color: #9ba8c1;
  background: #263452;
  cursor: pointer;
}
.recharge-icon-button:hover:not(:disabled) {
  color: #f2f5fb;
  border-color: #6372a5;
}
.recharge-icon-button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.recharge-icon-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.recharge-balance-card > strong {
  color: #fff;
  font:
    700 30px/1 "DM Mono",
    monospace;
  letter-spacing: 0.01em;
}
.recharge-faq-panel {
  padding: 19px;
}
.recharge-faq-panel .console-panel-heading {
  align-items: center;
  margin-bottom: 7px;
}
.recharge-faq-list details {
  border-bottom: 1px solid #293950;
}
.recharge-faq-list details:last-child {
  border-bottom: 0;
}
.recharge-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  color: #d9e1ee;
  cursor: pointer;
  font-size: 11px;
  list-style: none;
}
.recharge-faq-list summary::-webkit-details-marker {
  display: none;
}
.recharge-faq-list summary span {
  flex: 0 0 auto;
  color: #7d8ca5;
  font-size: 17px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}
.recharge-faq-list details[open] summary span {
  transform: rotate(180deg);
}
.recharge-faq-list p {
  margin: -1px 0 14px;
  color: #8391a8;
  font-size: 11px;
  line-height: 1.7;
}
.recharge-contact-panel {
  padding: 19px;
}
.recharge-contact-panel .console-panel-heading {
  align-items: center;
  margin-bottom: 9px;
}
.recharge-contact-link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border-top: 1px solid #293950;
  color: #77879e;
  text-decoration: none;
}
.recharge-contact-link:hover {
  color: #d9e4f3;
}
.recharge-contact-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #34455f;
  border-radius: 6px;
  color: #e5a14a;
  background: #182538;
  font-size: 15px;
}
.recharge-contact-icon-sales {
  color: #9088ff;
}
.recharge-contact-link > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.recharge-contact-link strong {
  color: #ced8e8;
  font-size: 11px;
  font-weight: 600;
}
.recharge-contact-link small {
  overflow: hidden;
  color: #6f8098;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recharge-contact-link > span:last-child {
  color: #74859d;
  font-size: 14px;
}
.recharge-contact-qr {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px 0 4px;
  border-top: 1px solid #293950;
  color: #9aa9bd;
  font-size: 11px;
}
.recharge-contact-qr img {
  display: block;
  width: 156px;
  height: 156px;
  object-fit: contain;
  background: #fff;
}
.recharge-contact-empty {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #293950;
  color: #74859d;
  font-size: 11px;
}
.recharge-panel,
.recharge-payment-panel,
.recharge-redeem-panel {
  padding: 20px;
}
.recharge-panel .console-panel-heading,
.recharge-payment-panel .console-panel-heading,
.recharge-redeem-panel .console-panel-heading {
  align-items: center;
  margin-bottom: 16px;
}
.recharge-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.recharge-package {
  display: grid;
  min-width: 0;
  min-height: 143px;
  align-content: start;
  gap: 7px;
  padding: 17px 16px 15px;
  border: 1px solid #31425e;
  border-radius: 7px;
  color: #e4eaf4;
  background: #131e2f;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.recharge-package:hover {
  border-color: #6374a5;
  background: #17263c;
  transform: translateY(-1px);
}
.recharge-package.selected {
  border-color: #7c73ff;
  background: #1b2141;
  box-shadow: 0 0 0 1px rgba(124, 115, 255, 0.2);
}
.recharge-package-label {
  justify-self: end;
  color: #8795ab;
  font-size: 10px;
}
.recharge-package > strong {
  color: #f3f6fb;
  font:
    700 24px/1.1 "DM Mono",
    monospace;
}
.recharge-package-meta {
  overflow: hidden;
  color: #8997ad;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recharge-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.recharge-payment-method {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 74px;
  padding: 13px 18px;
  border: 1px solid #31425e;
  border-radius: 7px;
  color: #dfe7f5;
  background: #131e2f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}
.recharge-payment-method:hover {
  border-color: #6374a5;
}
.recharge-custom-amount:not([hidden]) {
  display: grid;
  gap: 10px;
  color: #aab6c7;
  margin-bottom: 20px;
  font-size: 14px;
}
.recharge-custom-amount input {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid #2a3b52;
  border-radius: 5px;
  color: #edf2fa;
  background: #101a29;
  font: inherit;
  outline: none;
}
.recharge-custom-amount input:focus {
  border-color: #6c63ff;
}
.recharge-custom-amount small {
  color: #93a4ba;
}
.recharge-payment-method.selected.payment-alipay {
  border-color: #2384ff;
  background: #172f55;
  box-shadow: 0 0 0 1px rgba(35, 132, 255, 0.2);
}
.recharge-payment-method.selected.payment-wechat {
  border-color: #20c477;
  background: #123829;
  box-shadow: 0 0 0 1px rgba(32, 196, 119, 0.18);
}
.payment-brand {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}
.payment-brand img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.payment-alipay .payment-brand {
  color: #328eff;
}
.payment-wechat .payment-brand {
  color: #20c477;
}
.payment-check {
  position: absolute;
  top: 9px;
  right: 11px;
  color: currentColor;
  font-size: 13px;
}
.recharge-payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #293950;
}
.recharge-payment-summary > div {
  display: grid;
  gap: 5px;
}
.recharge-payment-summary span {
  color: #8290a5;
  font-size: 11px;
}
.recharge-payment-summary strong {
  color: #f4f6fc;
  font:
    700 22px/1 "DM Mono",
    monospace;
}
.recharge-submit-button {
  min-height: 38px;
  padding: 0 18px;
  font-size: 12px;
}
.recharge-submit-button span {
  margin-left: 7px;
  color: inherit;
  font-size: 14px;
}
.recharge-message {
  margin: 14px 0 0;
  color: #83dbb5;
  font-size: 11px;
  line-height: 1.5;
}
.recharge-message.error {
  color: #ff9b9b;
}
.payment-result {
  max-width: 660px;
  margin: 12px auto;
  text-align: center;
}
.payment-result-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #293950;
  color: #f4d08b;
  font-size: 32px;
}
.payment-result-icon.is-success {
  background: #153b30;
  color: #83dbb5;
}
.payment-result > p {
  line-height: 1.7;
}
.payment-result-details {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  text-align: left;
}
.payment-result-details > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
}
.payment-result-details dt {
  color: #8290a5;
}
.payment-result-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.payment-result .heading-actions {
  flex-wrap: wrap;
  justify-content: center;
}
.recharge-order-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 15px;
  padding: 12px 13px;
  border: 1px solid #3a4d70;
  border-radius: 5px;
  background: #121d30;
}
.recharge-order-status div {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.recharge-order-status span {
  color: #7e8ca4;
  font-size: 10px;
}
.recharge-order-status code {
  overflow: hidden;
  color: #aebbd0;
  font:
    10px "DM Mono",
    monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recharge-order-status strong {
  flex: 0 0 auto;
  color: #f2c06b;
  font-size: 11px;
  font-weight: 600;
}
.recharge-redeem-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.recharge-redeem-form input {
  width: 100%;
  min-height: 39px;
  padding: 0 12px;
  border: 1px solid #31425e;
  border-radius: 5px;
  color: #e6edf7;
  background: #101a29;
  font-size: 12px;
}
.recharge-redeem-form input::placeholder {
  color: #667790;
}
.recharge-redeem-form input:focus {
  outline: none;
  border-color: #6c63ff;
}
.recharge-redeem-form .button {
  min-width: 84px;
  min-height: 39px;
  padding: 0 16px;
  font-size: 12px;
}
.recharge-redeem-note {
  margin: 11px 0 0;
  color: #667790;
  font-size: 10px;
}
.table-count {
  color: #738199;
  font-size: 10px;
}
.data-table-wrap {
  overflow-x: auto;
}
.finance-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  color: #8794aa;
  font-size: 11px;
}
.finance-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.finance-pagination select,
.finance-pagination button {
  min-height: 30px;
  border: 1px solid #30435d;
  border-radius: 4px;
  color: #cbd5e3;
  background: #17263b;
  font: inherit;
}
.finance-pagination select {
  padding: 0 6px;
}
.finance-pagination button {
  padding: 0 10px;
  cursor: pointer;
}
.finance-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: #aab6c7;
  font-size: 11px;
}
.data-table th {
  padding: 0 10px 11px;
  color: #718098;
  font-size: 10px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: 12px 10px;
  border-top: 1px solid #26364c;
  white-space: nowrap;
}
.data-table td:first-child,
.data-table th:first-child {
  padding-left: 0;
}
.data-table td:last-child,
.data-table th:last-child {
  padding-right: 0;
}
.data-table strong {
  display: block;
  color: #dce5f1;
  font-size: 11px;
  font-weight: 600;
}
.table-subtext {
  display: block;
  margin-top: 4px;
  color: #68778e;
  font:
    10px "DM Mono",
    monospace;
}
.amount {
  color: #8be1c1;
  font:
    12px "DM Mono",
    monospace;
}
.status-tag {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 4px;
  color: #7ed8c0;
  background: #153c3c;
  font-size: 10px;
}
.task-status-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.task-error-hint {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid #f29eaf;
  border-radius: 50%;
  color: #f29eaf;
  cursor: help;
  font: 700 10px/1 Arial, sans-serif;
}
.task-error-hint:focus-visible {
  outline: 2px solid #7d75ff;
  outline-offset: 2px;
}
.status-failed,
.status-dead_letter {
  color: #f29eaf;
  background: #4c2936;
}
.status-running,
.status-queued,
.status-pending,
.status-capturing,
.status-submission_unknown,
.status-cancel_requested {
  color: #f2c277;
  background: #4b3b24;
}
.status-paid,
.status-issued {
  color: #7ed8c0;
  background: #153c3c;
}
.status-rejected,
.status-closed {
  color: #f29eaf;
  background: #4c2936;
}
.status-held,
.status-captured,
.status-released {
  color: #7ed8c0;
  background: #153c3c;
}
.status-underfunded,
.status-unknown,
.status-manual_review {
  color: #f29eaf;
  background: #4c2936;
}
.table-muted {
  color: #68778e;
  font-size: 10px;
}
.invoice-action-cell {
  min-width: 116px;
}
.invoice-profile-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #4e4930;
  border-radius: 5px;
  background: #28271c;
}
.invoice-profile-notice > div {
  display: grid;
  gap: 4px;
}
.invoice-profile-notice strong {
  color: #f2cf81;
  font-size: 12px;
}
.invoice-profile-notice span {
  color: #a69a76;
  font-size: 10px;
}
.invoice-request-message {
  margin: -2px 0 14px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 15px;
}
.profile-card {
  padding: 23px;
}
.profile-summary-card {
  width: 100%;
  max-width: none;
}
.profile-edit-card,
.password-card {
  width: 100%;
  max-width: none;
}
.profile-edit-card {
  width: min(100%, 860px);
}
.profile-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  margin: 0;
  padding: 5px 0 21px;
}
.profile-details > div {
  display: grid;
  gap: 7px;
  padding: 17px 0;
  border-bottom: 1px solid #293950;
}
.profile-details dt {
  color: #7f8da3;
  font-size: 11px;
}
.profile-details dd {
  margin: 0;
  color: #edf2fa;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.profile-summary-card .profile-actions {
  padding-top: 2px;
}
.profile-form {
  display: grid;
  gap: 17px;
  padding-top: 21px;
}
.profile-form label {
  display: grid;
  gap: 8px;
  color: #9ca9bd;
  font-size: 11px;
}
.profile-form input {
  width: 100%;
  padding: 28px 11px;
  color: #edf2fa;
  background: #101a29;
  border: 1px solid #2a3b52;
  border-radius: 5px;
  outline: none;
  font-size: 12px;
}
.profile-edit-card .profile-form {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 720px);
  gap: 14px;
}
.profile-edit-card .profile-form > label {
  display: grid;
  grid-template-columns: minmax(118px, 0.32fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 42px;
}
.profile-edit-card .profile-form input {
  min-width: 0;
  padding: 11px 12px;
}
.password-card .profile-form > label {
  display: grid;
  grid-template-columns: minmax(90px, 0.32fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 42px;
}
.password-card .profile-form input {
  min-width: 0;
  padding: 11px 12px;
}
.profile-edit-card .profile-form > .profile-actions {
  grid-column: 1;
}
.usage-state {
  min-height: 250px;
}
.usage-state p {
  margin: 0;
  color: #c3cede;
  font-size: 12px;
}
.usage-state small {
  max-width: 340px;
  color: #718097;
  font-size: 10px;
  line-height: 1.6;
}
.usage-state .text-action {
  border: 0;
  color: #938bff;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}
.usage-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #354967;
  border-top-color: #8279ff;
  border-radius: 50%;
  animation: usage-spin 0.85s linear infinite;
}
@keyframes usage-spin {
  to {
    transform: rotate(360deg);
  }
}
.profile-form input:focus {
  border-color: #6c63ff;
}
.profile-form input:disabled {
  color: #66758a;
  cursor: not-allowed;
}
.profile-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.profile-actions .button {
  min-height: 38px;
  font-size: 12px;
}
@media (max-width: 980px) {
  .console-main {
    padding: 0 24px 48px;
  }
  .console-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .console-overview-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-summary-card {
    max-width: none;
  }
  .profile-edit-card {
    width: 100%;
  }
  .usage-trend {
    gap: 10px;
  }
  .finance-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .recharge-layout {
    grid-template-columns: 1fr;
  }
  .recharge-aside {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }
}
@media (max-width: 620px) {
  .console-page {
    padding-top: 64px;
  }
  .console-shell {
    display: block;
  }
  .console-sidebar {
    padding: 13px 16px 0;
    border-right: 0;
    border-bottom: 1px solid #26344a;
  }
  .console-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 0 0 11px;
  }
  .console-nav button {
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    padding: 9px 13px;
    font-size: 12px;
  }
  .console-nav button.active {
    box-shadow: inset 0 -2px #6c63ff;
  }
  .nav-icon {
    display: none;
  }
  .console-main {
    padding: 0 16px 36px;
  }
  .console-topbar {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 0 19px;
  }
  .console-topbar-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .finance-subnav {
    width: 100%;
    overflow-x: auto;
  }
  .console-topbar h1 {
    font-size: 21px;
  }
  .console-topbar-actions .button {
    display: none;
  }
  .console-view {
    padding-top: 21px;
  }
  .console-welcome {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }
  .welcome-date {
    order: -1;
  }
  .console-welcome h2 {
    font-size: 20px;
  }
  .console-metric-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .console-metric-card {
    min-height: 105px;
    padding: 15px 13px;
  }
  .console-metric-card strong {
    font-size: 17px;
  }
  .console-metric-card span,
  .console-metric-card small {
    font-size: 10px;
  }
  .console-panel {
    padding: 17px;
  }
  .usage-panel .console-panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .usage-toolbar,
  .usage-period-tabs {
    width: 100%;
  }
  .usage-period-tabs button {
    flex: 1;
  }
  .usage-custom-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    justify-content: stretch;
    gap: 7px;
    margin-top: -4px;
  }
  .usage-custom-range .button {
    grid-column: 1 / -1;
  }
  .usage-trend {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .usage-line-chart {
    min-height: 220px;
  }
  .usage-trend-legend {
    gap: 9px 14px;
    padding: 0;
  }
  .usage-trend-legend .legend-row {
    width: 100%;
  }
  .console-view-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .finance-overview-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .recharge-aside {
    grid-template-columns: 1fr;
  }
  .recharge-package-grid,
  .recharge-payment-grid {
    grid-template-columns: 1fr;
  }
  .recharge-payment-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .recharge-submit-button {
    width: 100%;
  }
  .profile-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-edit-card .profile-form {
    width: 100%;
  }
  .profile-edit-card .profile-form > label {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
  }
  .password-card .profile-form > label {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
  }
  .profile-edit-card .profile-form > .profile-actions {
    grid-column: 1;
  }
  .profile-details {
    grid-template-columns: 1fr;
  }
  .profile-actions .button {
    width: 100%;
  }
}

.console-link {
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}
.console-link:hover,
.console-link:focus-visible {
  color: #fff;
  background: rgba(81, 215, 237, 0.18);
  border-color: rgba(81, 215, 237, 0.42);
}
.balance-label {
  display: inline-flex;
  align-items: center;
  color: #a8b1c3;
  font-size: 14px;
  white-space: nowrap;
}
.console-page {
  min-height: calc(100vh - 64px);
  padding-bottom: 96px;
}
.console-page .page-heading {
  margin-bottom: 42px;
}
.console-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.console-summary-card,
.console-panel {
  padding: 24px;
  background: #1d2a3d;
  border: 1px solid #334155;
  border-radius: 10px;
}
.console-summary-card {
  display: grid;
  gap: 9px;
  min-height: 132px;
}
.console-summary-card span,
.console-summary-card small,
.console-muted {
  color: #8794aa;
  font-size: 12px;
}
.console-summary-card strong {
  color: #f1f5fb;
  font-size: 22px;
  overflow-wrap: anywhere;
}
.console-summary-card small {
  font-size: 11px;
}
.console-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
}
.console-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.console-panel-heading .eyebrow {
  margin: 0 0 8px;
}
.console-panel h2 {
  margin: 0;
  font-size: 20px;
}
.console-empty {
  margin: 0;
  color: #8794aa;
  font-size: 13px;
  line-height: 1.7;
}
.console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  .finance-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  .console-summary-grid,
  .console-content-grid {
    grid-template-columns: 1fr;
  }
  .console-page {
    padding-bottom: 72px;
  }
  .console-summary-card {
    min-height: 0;
  }
  .console-actions .button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .balance-label {
    font-size: 12px;
  }
}

.auth-section {
  min-height: calc(100vh - 64px);
  padding: 0;
  overflow-x: hidden;
  background: #090e1a;
}
.auth-card {
  width: min(448px, calc(100vw - 24px));
  padding: 24px;
  background: #1d2a3d;
  border-color: #334155;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.auth-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.auth-brand {
  margin: 0;
}
.auth-card-head > button {
  border: 0;
  background: transparent;
  color: #748197;
  font-size: 24px;
  cursor: pointer;
}
.auth-card h1 {
  font-size: 24px;
}
.auth-copy {
  margin: 7px 0 17px;
  color: #77859a;
  font-size: 12px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-bottom: 22px;
  padding: 4px;
  background: #111927;
  border-radius: 7px;
}
.auth-tabs button {
  height: 36px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #708098;
  cursor: pointer;
  font-size: 13px;
}
.auth-tabs button.active {
  background: #24324a;
  color: #e2e9f3;
}
.auth-form {
  gap: 15px;
}
.auth-form label {
  color: #9ca9bc;
}
.phone-input,
.code-input {
  display: flex;
  min-height: 44px;
  background: #111927;
  border: 1px solid #29374b;
  border-radius: 6px;
  overflow: hidden;
}
.phone-input span {
  display: grid;
  place-items: center;
  padding: 0 12px;
  color: #8794a8;
  border-right: 1px solid #29374b;
  font-size: 12px;
}
.auth-form input {
  min-height: 44px;
  border: 0;
  background: transparent;
}
.auth-form > label > input:not([type="checkbox"]) {
  border: 1px solid #29374b;
  border-radius: 6px;
  background: #111927;
}
.auth-form > label > input:not([type="checkbox"]):focus {
  border-color: #6366f1;
}
.auth-inline-action {
  justify-self: start;
  padding: 0;
  border: 0;
  color: #8c9cff;
  background: transparent;
  font-size: 12px;
  cursor: pointer;
}
.auth-inline-action:hover {
  color: #c3cbff;
}
.auth-notice {
  color: #83dbb5;
}
.code-input input {
  flex: 1;
}
.phone-input:focus-within,
.code-input:focus-within,
.captcha-input:focus-within {
  border-color: #6366f1;
}
.captcha-input {
  min-height: 44px;
  background: #111927;
  border: 1px solid #29374b;
  border-radius: 6px;
  overflow: hidden;
  gap: 0;
}
.code-input button {
  width: 105px;
  border: 0;
  border-left: 1px solid #29374b;
  background: transparent;
  color: #65748c;
  font-size: 12px;
}
.captcha-input {
  display: flex;
  min-height: 44px;
  gap: 10px;
}
.captcha-input > input {
  flex: 1;
  min-width: 0;
}
.captcha-image-button {
  display: grid;
  place-items: center;
  width: 132px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #29374b;
  border-radius: 6px;
  background: #eef2ff;
  color: #64748b;
  cursor: pointer;
}
.captcha-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wechat-bind-form {
  gap: 15px;
}
.wechat-bind-title {
  margin: 0;
  color: #dce7f7;
  font-size: 13px;
  line-height: 1.6;
}
.test-account {
  margin: 0;
  color: #718097;
  font-size: 11px;
}
.test-account b {
  color: #6565e9;
  font-weight: 500;
}
.agreement {
  display: flex !important;
  align-items: center;
  gap: 7px !important;
  color: #7b899f !important;
  font-size: 11px !important;
}
.agreement input {
  width: auto;
  min-height: auto;
  flex: 0 0 auto;
  accent-color: #6366f1;
}
.agreement a {
  color: #6766e5;
}
.auth-section .button-primary {
  background: linear-gradient(90deg, #6366f1, #06b6d4);
}
.wechat-login-panel {
  display: grid;
  gap: 15px;
}
.wechat-qr-frame {
  width: 100%;
  height: 370px;
  border: 1px solid #29374b;
  border-radius: 6px;
  background: #fff;
}
.wechat-status,
.protocol-modal-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  margin: 0;
  padding: 20px;
  border: 1px dashed #3a4b65;
  border-radius: 6px;
  color: #8794aa;
  font-size: 13px;
  text-align: center;
}
.wechat-refresh {
  justify-self: center;
  width: 34px;
  height: 34px;
  border: 1px solid #3a4b65;
  border-radius: 6px;
  background: #111927;
  color: #b9c5d8;
  font-size: 20px;
  cursor: pointer;
}
.wechat-refresh:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.protocol-modal-mask {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 8, 18, 0.78);
}
.protocol-modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #101927;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.46);
}
.protocol-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #29374b;
}
.protocol-modal h2 {
  margin: 0;
  color: #eef3fc;
  font-size: 18px;
}
.protocol-modal header button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #9eacc0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.protocol-modal-content {
  overflow: auto;
  padding: 26px 30px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.8;
}
.protocol-modal-content > :first-child { margin-top: 0; }
.protocol-modal-content h1,
.protocol-modal-content h2,
.protocol-modal-content h3 { color: #f2f6fd; }
.protocol-modal-content a { color: #77a9ff; }
.portal-protocol-layer.layui-layer {
  width: min(760px, calc(100vw - 24px)) !important;
  height: min(620px, calc(100vh - 24px)) !important;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #101927;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.46);
}
.portal-protocol-layer .layui-layer-title {
  height: 58px;
  padding: 0 58px 0 22px;
  border-bottom: 1px solid #29374b;
  background: #101927;
  color: #eef3fc;
  font-size: 17px;
  font-weight: 600;
  line-height: 58px;
}
.portal-protocol-layer .layui-layer-content {
  height: calc(100% - 58px) !important;
  overflow: hidden !important;
}
.portal-protocol-layer .layui-layer-setwin {
  top: 22px;
}
.portal-protocol-layer .layui-layer-setwin .layui-layer-close1 {
  filter: brightness(0) invert(1);
  opacity: 0.72;
}
.portal-protocol-layer .protocol-modal-content {
  height: 100%;
  box-sizing: border-box;
}
.protocol-document + .protocol-document {
  padding-top: 24px;
  margin-top: 30px;
  border-top: 1px solid #29374b;
}
.protocol-document > h3 {
  margin: 0 0 20px;
  font-size: 19px;
}
.protocol-document-body {
  overflow-wrap: anywhere;
}
.protocol-document-body img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 620px) {
  .wechat-qr-frame { height: 330px; }
  .protocol-modal-mask { padding: 12px; }
  .protocol-modal { max-height: calc(100vh - 24px); }
  .protocol-modal-content { padding: 22px 18px; }
  .portal-protocol-layer .layui-layer-title {
    padding-left: 18px;
    font-size: 16px;
  }
}
.hero-content {
  padding-top: 235px;
}
@media (max-width: 620px) {
  .hero-content {
    padding-top: 130px;
  }
}
.hero-section .code-window {
  margin-top: 106px;
}
@media (max-width: 620px) {
  .hero-section .code-window {
    margin-top: 43px;
  }
}
.hero-section {
  min-height: 1036px;
}
.button,
.main-nav a,
.brand-mark {
  border-radius: 8px;
}
.code-window,
.feature-card,
.scenario-card,
.model-card,
.guide-card,
.code-example-card {
  border-radius: 8px;
}
@media (max-width: 620px) {
  .hero-section {
    min-height: 850px;
  }
}
/* New reference calibration: the cosmic scene is a viewport layer, not hero content. */
.site-shell {
  position: relative;
  z-index: 1;
  background: transparent;
}
.fixed-space-bg {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      180deg,
      rgba(10, 14, 39, 0.7),
      rgba(15, 23, 42, 0.8) 48%,
      rgba(26, 15, 46, 0.9)
    ),
    url("/public/black-hole-galaxy-cosmic-space-nebula.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.1);
  transform-origin: center;
}
.hero-section {
  min-height: 620px;
  background: transparent;
}
.hero-section:before {
  display: none;
}
.hero-section:after {
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 39, 0.18),
    rgba(15, 23, 42, 0.24) 48%,
    rgba(26, 15, 46, 0.38)
  );
}
.hero-content {
  z-index: 1;
  width: min(896px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 208px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin: 0 auto 32px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  font-size: 12px;
  line-height: 16px;
}
.hero-content h1 {
  margin: 0 0 24px;
  font-size: 60px;
  line-height: 60px;
}
.hero-copy {
  width: min(672px, 100%);
  margin: 0 auto 40px;
  font-size: 18px;
  line-height: 28px;
  color: #94a3b8;
}
.hero-actions {
  margin-top: 0;
}
.code-window {
  width: 768px;
  height: 303px;
  margin-top: 64px;
  border-radius: 12px;
}
.window-bar {
  height: 42px;
}
.code-window pre {
  height: 261px;
  padding: 22px 28px;
}
.feature-section {
  background: transparent;
}
.scenario-section {
  background: rgba(17, 24, 39, 0.3);
}
.cta-section {
  background: transparent;
}
.feature-section .section-heading > .eyebrow,
.scenario-section .section-heading > .eyebrow,
.cta-section .eyebrow {
  display: none;
}
.section-heading h2,
.cta-inner h2 {
  font-size: 30px;
  line-height: 36px;
  letter-spacing: 0;
}
.section-heading > p:last-child {
  margin-top: 12px;
  font-size: 14px;
  line-height: 22px;
}
.feature-grid {
  margin-top: 40px;
}
.scenario-grid {
  margin-top: 40px;
}
.feature-card,
.scenario-card,
.model-card,
.playground-panel,
.response-panel,
.guide-step,
.guide-card,
.code-example-card {
  border-radius: 12px;
}
@media (max-width: 620px) {
  .fixed-space-bg {
    transform: scale(1.18);
  }
  .hero-section {
    min-height: 620px;
  }
  .hero-content {
    width: calc(100% - 32px);
    padding-top: 130px;
  }
  .eyebrow {
    margin-bottom: 24px;
  }
  .hero-content h1 {
    font-size: 42px;
    line-height: 1.08;
  }
  .hero-copy {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 28px;
  }
  .code-window {
    width: 100%;
    height: 270px;
    margin-top: 43px;
    border-radius: 12px;
  }
  .code-window pre {
    height: 228px;
  }
  .feature-section {
    background: transparent;
  }
  .scenario-section {
    background: rgba(17, 24, 39, 0.3);
  }
}
.site-header .header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}
.site-header .brand {
  justify-self: start;
  gap: 12px;
  color: #edf2fb;
}
.site-header .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #202d61;
  color: #7a72ff;
}
.site-header .main-nav {
  justify-self: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
}
.site-header .main-nav a {
  padding: 9px 12px;
  color: #9aa8bc;
  font-size: 14px;
}
.site-header .main-nav a.active,
.site-header .main-nav a:hover {
  color: #edf2fb;
  background: #17233a;
}
.site-header .header-actions {
  justify-self: end;
  gap: 14px;
  justify-content: flex-end;
}
.console-sidebar {
  padding-top: 22px;
}
.site-footer {
  padding: 46px 0 24px;
  background: #080e18;
  border-top-color: #26344a;
}
@media (max-width: 620px) {
  .site-header .header-inner {
    display: flex;
    width: calc(100% - 32px);
    gap: 10px;
  }
  .site-header .brand-mark {
    width: 30px;
    height: 30px;
  }
  .site-header .header-actions {
    gap: 9px;
  }
  .console-sidebar {
    padding-top: 13px;
  }
  .site-footer {
    padding-top: 38px;
  }
}
@media (max-width: 620px) {
  .site-header .brand {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
  }
  .site-header .header-actions {
    min-width: 0;
    flex: 1 1 auto;
    gap: 6px;
    white-space: nowrap;
  }
  .site-header .console-link {
    padding: 6px 8px;
    white-space: nowrap;
  }
  .site-header .balance-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
  }
  .site-header .button-small {
    padding: 0 10px;
    white-space: nowrap;
  }
}

/* API key management */
.api-keys-view {
  padding-bottom: 12px;
}
.api-key-form input,
.api-key-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #2a3b52;
  border-radius: 5px;
  outline: none;
  color: #eaf0f8;
  background: #101a29;
  font-size: 12px;
}
.api-key-form textarea {
  height: auto;
  padding: 10px 11px;
  resize: vertical;
}
.api-key-form input:focus,
.api-key-form textarea:focus {
  border-color: #6c63ff;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #33465f;
  border-radius: 6px;
  background: #18263a;
  color: #aab9cf;
  cursor: pointer;
  font-size: 17px;
}
.icon-button:hover {
  color: #fff;
  border-color: #6c63ff;
  background: #202e4a;
}
.icon-button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.api-key-list-panel {
  padding: 21px 20px;
}
.api-key-table {
  min-width: 900px;
}
.api-key-table th:last-child,
.api-key-table td:last-child {
  padding-right: 0;
}
.actions-column {
  width: 112px;
}
.actions-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.danger-action {
  color: #e58a9b;
}
.danger-action:hover {
  color: #ffacb9;
}
.api-key-masked {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  color: #aab9cf;
  font: 11px/1 "DM Mono", monospace;
  letter-spacing: 0;
}
.api-key-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}
.api-key-copy-button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #9aa8b8;
  background: transparent;
  cursor: pointer;
}
.api-key-copy-button:hover,
.api-key-copy-button:focus-visible {
  color: #526b87;
  background: #edf1f5;
  outline: none;
}
.api-key-copy-button:disabled {
  color: #526174;
  cursor: not-allowed;
  opacity: 0.7;
}
.api-key-copy-button:disabled:hover {
  background: transparent;
}
.copy-icon {
  position: relative;
  display: block;
  width: 11px;
  height: 13px;
  border: 1.4px solid currentColor;
  border-radius: 2px;
}
.copy-icon::before {
  position: absolute;
  top: -4px;
  left: 2px;
  width: 5px;
  height: 4px;
  border: 1.4px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  background: #172234;
  content: "";
}
.api-key-copy-feedback {
  margin-left: auto;
  color: #7ed8c0;
  font-size: 11px;
}
.api-key-copy-feedback.is-error {
  color: #f2c277;
}

/* API docs information architecture */
.docs-v2 {
  min-height: calc(100vh - 76px);
  padding: 76px 0 0;
  background: #090d16;
  overflow-x: clip;
}
.site-shell:has(.docs-v2) { overflow: visible; }
.docs-frame {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  width: min(1440px, 100%);
  min-height: calc(100vh - 76px);
  margin: 0 auto;
}
.docs-frame:has(.docs-sidebar.is-collapsed) { grid-template-columns: 76px minmax(0, 1fr); }
.docs-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 76px);
  padding: 25px 16px 18px;
  overflow: hidden;
  border-right: 1px solid #1e2a3b;
  background: #0d131e;
  transition: width .22s ease, padding .22s ease;
}
.docs-sidebar.is-collapsed { width: 76px; padding-inline: 14px; }
.docs-sidebar.is-collapsed .docs-sidebar-brand > div,
.docs-sidebar.is-collapsed .docs-sidebar-footer,
.docs-sidebar.is-collapsed .docs-sidebar-nav { display: none; }
.docs-sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 4px 25px; }
.docs-sidebar-brand { display: flex; min-width: 0; align-items: center; gap: 10px; }
.docs-brand-mark { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #dce5ff; background: linear-gradient(145deg, #4651bf, #3f91c8); box-shadow: 0 7px 24px rgba(61, 112, 202, .22); }
.docs-sidebar-kicker { display: block; margin-bottom: 3px; color: #6c7c92; font: 9px/1.2 "DM Mono", monospace; letter-spacing: .08em; }
.docs-sidebar-brand strong { display: block; overflow: hidden; color: #e4eaf4; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.docs-collapse-button { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border: 1px solid #2a384d; border-radius: 5px; color: #7e8ca1; background: #111b2a; cursor: pointer; font: 17px/1 "DM Mono", monospace; }
.docs-collapse-button:hover { color: #c8d6ea; border-color: #526b90; background: #172335; }
.docs-search { display: flex; align-items: center; gap: 8px; height: 36px; margin: 0 2px 20px; padding: 0 9px; border: 1px solid #26344a; border-radius: 6px; color: #718099; background: #111a28; }
.docs-search > span { font-size: 17px; line-height: 1; }
.docs-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #d7e0ef; background: transparent; font-size: 12px; }
.docs-search input::placeholder { color: #68778e; }
.docs-search kbd { padding: 2px 5px; border: 1px solid #2d3a4d; border-radius: 3px; color: #738197; background: #0c141f; font: 10px "DM Mono", monospace; }
.docs-sidebar-nav { min-height: 0; overflow: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #293b53 transparent; }
.docs-nav-group { margin: 0 0 15px; }
.docs-nav-group-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 5px 8px; border: 0; color: #8998ae; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; text-align: left; }
.docs-nav-group-toggle:hover { color: #d5deeb; }
.docs-nav-chevron { color: #66768d; font: 15px/1 "DM Mono", monospace; }
.docs-nav-items { display: grid; gap: 2px; margin-top: 4px; }
.docs-nav-items a { display: flex; min-height: 32px; align-items: center; gap: 9px; padding: 0 10px; border-left: 2px solid transparent; border-radius: 4px; color: #8795a9; font-size: 12px; transition: .16s ease; }
.docs-nav-items a:hover { color: #d4deed; background: #131f30; }
.docs-nav-items a.selected { border-left-color: #7485ff; color: #e5eaff; background: #1a2440; }
.docs-nav-dot { width: 4px; height: 4px; border-radius: 50%; background: #405169; }
.docs-nav-items a.selected .docs-nav-dot { background: #8d9aff; box-shadow: 0 0 9px #6f80ff; }
.docs-nav-empty { padding: 14px 8px; color: #728097; font-size: 11px; }
.docs-sidebar-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 15px 8px 0; border-top: 1px solid #202d40; color: #6d7b90; font-size: 10px; }
.docs-sidebar-footer code { color: #93a4ff; font: 10px "DM Mono", monospace; }
.docs-main { min-width: 0; padding: 0 clamp(28px, 5vw, 78px) 60px; background: #0b111b; }
.docs-topbar { display: flex; min-height: 59px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #1c293a; color: #728198; font-size: 11px; }
.docs-breadcrumb { display: flex; align-items: center; gap: 9px; }
.docs-breadcrumb i { color: #3f4d62; font-style: normal; }
.docs-breadcrumb strong { color: #b8c5d8; font-weight: 600; }
.docs-topbar-actions { display: flex; align-items: center; gap: 19px; }
.docs-status { display: inline-flex; align-items: center; gap: 6px; color: #82c5b5; }
.docs-status i { width: 6px; height: 6px; border-radius: 50%; background: #4ac6a9; box-shadow: 0 0 8px rgba(74,198,169,.75); }
.docs-console-link { color: #91a0bb; transition: color .16s ease; }
.docs-console-link:hover { color: #d8e4fb; }
.docs-section-anchor { scroll-margin-top: 91px; }
.docs-hero-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); gap: clamp(32px, 6vw, 86px); align-items: center; padding: 78px 0 92px; border-bottom: 1px solid #1c293a; }
.docs-section-label { display: block; margin-bottom: 16px; color: #7889ff; font: 10px/1.2 "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.docs-hero-copy h1 { margin: 0 0 22px; color: #edf2fa; font-size: clamp(38px, 4.4vw, 62px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; }
.docs-hero-copy h1 em { color: #7788ff; font-style: normal; }
.docs-hero-copy > p { max-width: 560px; margin: 0; color: #8998ad; font-size: 15px; line-height: 1.85; }
.docs-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; }
.docs-hero-meta span { display: grid; gap: 5px; }
.docs-hero-meta b { color: #65758c; font-size: 10px; font-weight: 600; }
.docs-hero-meta code { color: #bbc8ff; font: 11px "DM Mono", monospace; }
.docs-hero-terminal { overflow: hidden; border: 1px solid #293a53; border-radius: 9px; background: #101a28; box-shadow: 0 22px 70px rgba(0, 0, 0, .22); }
.docs-terminal-head { display: flex; height: 43px; align-items: center; gap: 10px; padding: 0 15px; border-bottom: 1px solid #26364c; color: #8c9bb1; font-size: 11px; }
.docs-terminal-head > span { display: flex; gap: 5px; }
.docs-terminal-head i { width: 7px; height: 7px; border-radius: 50%; background: #4a5b70; }
.docs-terminal-head i:first-child { background: #e17284; }.docs-terminal-head i:nth-child(2) { background: #d9b05c; }.docs-terminal-head i:nth-child(3) { background: #5fb79d; }
.docs-terminal-head b { margin-left: 2px; color: #bdcadc; font-weight: 600; }.docs-terminal-head small { margin-left: auto; color: #71829a; font: 10px "DM Mono", monospace; }
.docs-hero-terminal pre { min-height: 263px; margin: 0; padding: 22px 20px; overflow: auto; color: #b8c6df; font: 11px/1.85 "DM Mono", monospace; white-space: pre; }
.docs-article { padding: 80px 0 88px; border-bottom: 1px solid #1c293a; }
.docs-article-heading { max-width: 700px; margin-bottom: 32px; }.docs-article-heading h2 { margin: 0 0 12px; color: #e8eef7; font-size: 29px; letter-spacing: -.025em; }.docs-article-heading p { margin: 0; color: #8998ad; font-size: 14px; line-height: 1.8; }.docs-article-heading code, .docs-article code { color: #b2c0ff; font: 12px "DM Mono", monospace; }
.docs-manual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.docs-manual-card { display: grid; gap: 13px; min-height: 157px; padding: 21px; border: 1px solid #27364a; border-radius: 8px; background: #101a27; }.docs-manual-card-wide { grid-column: 1 / -1; grid-template-columns: 32px 1fr; align-items: start; min-height: 185px; }.docs-manual-card-wide .docs-code { grid-column: 2; width: min(430px, 100%); margin: 0; }.docs-card-index { color: #7788ff; font: 11px "DM Mono", monospace; }.docs-manual-card h3 { margin: 0 0 8px; color: #dbe4f0; font-size: 14px; }.docs-manual-card p { margin: 0; color: #8493a8; font-size: 12px; line-height: 1.75; }.docs-callout { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; padding: 15px 17px; border: 1px solid #27364b; border-left: 3px solid #7485ff; border-radius: 6px; color: #9eacc0; background: #111b2a; font-size: 12px; line-height: 1.7; }.docs-callout strong { color: #dbe4f0; }.docs-callout-warning { border-left-color: #d5aa61; background: #201d1a; }.docs-callout a { color: #a9b7ff; }
.docs-capability-article { padding-block: 68px; }.docs-capability-heading { display: flex; max-width: none; align-items: flex-start; justify-content: space-between; gap: 28px; }.docs-capability-heading > div { max-width: 700px; }.docs-capability-tag { padding: 6px 9px; border: 1px solid #34436f; border-radius: 4px; color: #9aa7ff; background: #171d38; font: 10px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }.docs-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 25px; }.docs-flow span { padding: 10px 12px; border: 1px solid #2b3b53; border-radius: 5px; color: #c0cce0; background: #111c2a; font-size: 11px; }.docs-flow i { color: #6c7c95; font-style: normal; }.docs-reference-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }.docs-reference-links a, .docs-inline-cta { color: #92a1ff; font-size: 12px; }.docs-reference-links a:hover, .docs-inline-cta:hover { color: #d1d8ff; }.docs-capability-grid-v2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }.docs-capability-grid-v2 > div { display: grid; gap: 8px; min-height: 116px; padding: 18px; border: 1px solid #27364a; border-radius: 7px; background: #101a27; }.docs-capability-grid-v2 b { color: #7f8ea4; font-size: 10px; font-weight: 600; text-transform: uppercase; }.docs-capability-grid-v2 code { color: #bcc7ff; font: 11px "DM Mono", monospace; }.docs-capability-grid-v2 small { color: #7f8da2; font-size: 11px; line-height: 1.6; }.docs-json-preview { display: grid; grid-template-columns: 95px 1fr; gap: 14px; align-items: start; margin: 24px 0 16px; padding: 15px 17px; border: 1px solid #293950; border-radius: 6px; background: #101a27; }.docs-json-preview span { color: #72829b; font-size: 11px; }.docs-json-preview code { overflow-x: auto; color: #afc1e7; font: 11px/1.7 "DM Mono", monospace; white-space: nowrap; }.docs-multimodal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 18px; }.docs-multimodal-list > div { display: grid; grid-template-columns: 30px 1fr; gap: 3px 10px; padding: 16px; border-top: 2px solid #4d5bb7; background: #101a27; }.docs-multimodal-list span { grid-row: span 2; color: #7989ff; font: 11px "DM Mono", monospace; }.docs-multimodal-list b { color: #d9e2ef; font-size: 13px; }.docs-multimodal-list small { color: #7e8da3; font-size: 11px; }.docs-text-note { display: flex; gap: 20px; align-items: center; padding: 16px; border: 1px solid #29394f; border-radius: 6px; background: #111b2a; }.docs-text-note code { color: #aebcff; font: 11px "DM Mono", monospace; }.docs-text-note span { color: #8695aa; font-size: 12px; line-height: 1.7; }
.docs-endpoints-article { padding-top: 88px; }.docs-endpoint-block { padding: 28px 0 38px; border-top: 1px solid #202e41; scroll-margin-top: 91px; }.docs-endpoint-block:first-of-type { border-top: 0; padding-top: 0; }.docs-endpoint-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; }.docs-endpoint-heading h3 { margin: 0 0 8px; color: #dce5f0; font-size: 16px; }.docs-endpoint-heading p { margin: 0; color: #8392a7; font-size: 12px; line-height: 1.7; }.docs-endpoint-meta { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; color: #c2cde0; font-size: 12px; white-space: nowrap; }.docs-endpoint-meta .method-badge { margin: 0; }.docs-endpoint-access { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 14px 0 18px; color: #7889a1; font-size: 11px; }.docs-endpoint-access span + span { color: #8ec6bd; }.docs-endpoint-block h4 { margin: 21px 0 9px; color: #9caac0; font-size: 11px; font-weight: 600; }.docs-endpoint-block .docs-table-wrap { margin: 0 0 14px; }.docs-endpoint-block .docs-code { margin: 11px 0 14px; }.docs-notes { margin: 11px 0 0; padding-left: 18px; color: #7e8da2; font-size: 11px; line-height: 1.75; }
.docs-reference-panel { display: grid; gap: 12px; margin-bottom: 18px; padding: 19px; border: 1px solid #2a3b53; border-radius: 7px; background: #111c2a; }.docs-reference-panel > div { display: flex; align-items: center; gap: 9px; }.docs-reference-panel .method-badge { margin: 0; }.docs-reference-panel > div code { color: #c1caff; font: 12px "DM Mono", monospace; }.docs-reference-panel p { margin: 0; color: #8998ad; font-size: 12px; line-height: 1.75; }.docs-reference-panel a { color: #92a1ff; font-size: 11px; }.docs-supporting-article, .docs-sdk-article { padding-block: 72px; }.docs-support-grid h3 { margin: 0 0 7px; color: #dbe4ef; font-size: 14px; }.docs-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.docs-support-grid > div { min-width: 0; }.docs-subheading { margin: 30px 0 10px; color: #cbd6e5; font-size: 14px; }.docs-page-footer { display: flex; justify-content: space-between; gap: 20px; padding-top: 27px; color: #627289; font-size: 10px; }
.docs-mobile-bar, .docs-nav-backdrop { display: none; }
.docs-quickstart-article { padding-top: 72px; }
.docs-quickstart-heading { max-width: 760px; margin-bottom: 38px; }
.docs-quickstart-heading h1 { margin: 0 0 14px; color: #edf2fa; font-size: clamp(34px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.1; }
.docs-quickstart-heading p { max-width: 650px; }
.docs-quickstart-steps { display: grid; gap: 15px; }
.docs-quickstart-step { padding: 24px; border: 1px solid #27364a; border-radius: 8px; background: #101a27; }
.docs-quickstart-step-heading { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.docs-quickstart-step-heading h2 { margin: 0 0 8px; color: #dfe8f4; font-size: 17px; }
.docs-quickstart-step-heading p { margin: 0; color: #8493a8; font-size: 12px; line-height: 1.75; }
.docs-quickstart-subgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; padding-left: 46px; }
.docs-quickstart-item { min-width: 0; padding: 17px 18px; border: 1px solid #29394f; border-radius: 6px; background: #111c2a; }
.docs-quickstart-item h3, .docs-quickstart-access h3 { margin: 0 0 11px; color: #d6e0ed; font-size: 13px; }
.docs-quickstart-item p { margin: 0 0 8px; color: #8796aa; font-size: 12px; line-height: 1.7; }
.docs-quickstart-item ol { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: #aab7c9; font-size: 12px; line-height: 1.7; }
.docs-quickstart-item li::marker { color: #8391ff; font: 11px "DM Mono", monospace; }
.docs-quickstart-note { margin-top: 12px !important; color: #8ea8bb !important; }
.docs-quickstart-key-step { margin: 22px 0 0 46px; }
.docs-quickstart-access { display: grid; gap: 0; margin: 22px 0 0 46px; overflow: hidden; border: 1px solid #2a3b53; border-radius: 6px; background: #111c2a; }
.docs-quickstart-access h3 { margin: 0; padding: 16px 18px 12px; }
.docs-quickstart-access-row { display: grid; grid-template-columns: minmax(145px, .38fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 13px 18px; border-top: 1px solid #25364b; color: #8796aa; font-size: 12px; line-height: 1.6; }
.docs-quickstart-access-row code { color: #bfc9ff; font: 12px "DM Mono", monospace; overflow-wrap: anywhere; }
.docs-quickstart-access-row strong { color: #c6d2e4; font-size: 12px; font-weight: 500; }
.docs-quickstart-examples { display: grid; gap: 24px; margin: 24px 0 0 46px; }
.docs-quickstart-example { min-width: 0; padding-top: 22px; border-top: 1px solid #27384e; }
.docs-quickstart-example-heading { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.docs-quickstart-example-heading h3 { margin: 0 0 7px; color: #d6e0ed; font-size: 14px; }
.docs-quickstart-example-heading p { margin: 0; color: #8796aa; font-size: 12px; line-height: 1.7; }
.docs-quickstart-example h4 { margin: 18px 0 9px 46px; color: #cbd6e5; font-size: 12px; font-weight: 600; }
.docs-quickstart-example > .docs-code { margin: 12px 0 0 46px; }
.docs-quickstart-next { margin: 32px 0 0; padding: 31px 0 2px 46px; border-top: 1px solid #27384e; }
.docs-quickstart-next-heading h2 { margin: 0 0 9px; color: #e1e9f4; font-size: 22px; }
.docs-quickstart-next-heading p { margin: 0; color: #8796aa; font-size: 12px; line-height: 1.75; }
.docs-quickstart-next-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 21px; }
.docs-quickstart-next-link { display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 9px; align-items: center; min-width: 0; padding: 15px 16px; border: 1px solid #29394f; border-radius: 6px; color: inherit; background: #111c2a; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.docs-quickstart-next-link:hover { border-color: #5266b2; background: #15223a; transform: translateY(-1px); }
.docs-quickstart-next-link > span:nth-child(2) { display: grid; gap: 5px; min-width: 0; }
.docs-quickstart-next-link strong { overflow: hidden; color: #d7e1ed; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.docs-quickstart-next-link small { overflow: hidden; color: #7f8da2; font-size: 11px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.docs-quickstart-next-link i { color: #8795ff; font-size: 16px; font-style: normal; text-align: right; }
.docs-manual-feature { padding: 24px; border: 1px solid #27364a; border-radius: 8px; background: #101a27; }
.docs-manual-feature + .docs-manual-feature { margin-top: 15px; }
.docs-manual-feature-heading { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.docs-manual-feature-heading h3 { margin: 0 0 8px; color: #dfe8f4; font-size: 17px; }
.docs-manual-feature-heading p { margin: 0; color: #8493a8; font-size: 12px; line-height: 1.75; }
.docs-manual-feature-content { margin: 22px 0 0 46px; }
.docs-manual-feature-content h4 { margin: 0 0 9px; color: #cbd6e5; font-size: 14px; }
.docs-manual-feature-content > p { max-width: 720px; margin: 0; color: #8796aa; font-size: 12px; line-height: 1.75; }
.docs-provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 19px; }
.docs-provider-grid > div { display: grid; gap: 7px; min-width: 0; padding: 14px 15px; border: 1px solid #29394f; border-radius: 6px; background: #111c2a; }
.docs-provider-grid strong { color: #d7e1ed; font-size: 12px; font-weight: 600; }
.docs-provider-grid span { color: #7f8da2; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.docs-manual-switch-feature > .docs-code { margin: 22px 0 0 46px; }
.docs-asset-api-details { margin-top: 33px; }
.docs-asset-api-details-heading { margin-bottom: 21px; }
.docs-asset-api-details-heading h3 { margin: 0 0 8px; color: #dce5f0; font-size: 16px; }
.docs-asset-api-details-heading p { max-width: 760px; margin: 0; color: #8493a8; font-size: 12px; line-height: 1.75; }
.docs-asset-endpoint { padding: 25px 0 33px; border-top: 1px solid #27384e; scroll-margin-top: 91px; }
.docs-asset-endpoint:last-child { padding-bottom: 0; }
.docs-asset-endpoint .docs-endpoint-heading h3 { font-size: 15px; }
.docs-endpoint-fields { margin-top: 20px; }
.docs-endpoint-fields h4 { margin: 0 0 9px; color: #9caac0; font-size: 11px; font-weight: 600; }
.docs-endpoint-fields .docs-table-wrap { margin: 0 0 15px; }
.docs-endpoint-fields .docs-table-wrap table { min-width: 620px; }
.docs-asset-endpoint .docs-code { margin: 11px 0 14px; }
.docs-capability-response-details { margin-top: 34px; }
.docs-capability-response-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.docs-capability-response-examples h4 { margin: 0 0 9px; color: #9caac0; font-size: 11px; font-weight: 600; }
.docs-capability-response-details > h4 { margin: 23px 0 9px; color: #9caac0; font-size: 11px; font-weight: 600; }
@media (max-width: 700px) {
  .docs-quickstart-examples { margin-left: 0; }
  .docs-quickstart-example h4 { margin-left: 0; }
  .docs-quickstart-example > .docs-code { margin-left: 0; }
  .docs-quickstart-next { padding-left: 0; }
  .docs-quickstart-next-list { grid-template-columns: 1fr; }
  .docs-quickstart-next-link strong, .docs-quickstart-next-link small { white-space: normal; }
  .docs-manual-feature { padding: 19px 16px; }
  .docs-manual-feature-content { margin-left: 0; }
  .docs-provider-grid { grid-template-columns: 1fr; }
  .docs-manual-switch-feature > .docs-code { margin-left: 0; }
  .docs-manual-switch-feature .docs-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .docs-asset-api-details { margin-top: 29px; }
  .docs-asset-endpoint { padding: 21px 0 29px; }
  .docs-endpoint-fields { margin-top: 17px; }
  .docs-endpoint-fields .docs-table-wrap table { min-width: 560px; }
  .docs-capability-response-examples { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-width: 980px) { .docs-frame { grid-template-columns: 226px minmax(0, 1fr); }.docs-main { padding-inline: 30px; }.docs-hero-section { grid-template-columns: 1fr; gap: 35px; }.docs-hero-terminal { max-width: 650px; } }
@media (max-width: 700px) { .docs-v2 { padding-top: 64px; }.docs-frame { display: block; }.docs-mobile-bar { position: sticky; top: 64px; z-index: 9; display: flex; height: 49px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #1f2c3d; background: #0d141f; }.docs-mobile-toggle { display: inline-flex; align-items: center; gap: 9px; border: 0; color: #cbd6e7; background: transparent; cursor: pointer; font-size: 12px; }.docs-menu-icon { display: grid; gap: 3px; }.docs-menu-icon i { display: block; width: 15px; height: 1px; background: #91a1b7; }.docs-mobile-version { color: #7f8dff; font: 10px "DM Mono", monospace; }.docs-nav-backdrop { position: fixed; z-index: 19; inset: 113px 0 0; display: block; border: 0; background: rgba(2, 7, 13, .62); }.docs-sidebar { position: fixed; z-index: 20; top: 113px; bottom: 0; left: 0; width: min(300px, 84vw); height: auto; transform: translateX(-105%); box-shadow: 20px 0 70px rgba(0,0,0,.35); transition: transform .22s ease; }.docs-sidebar.is-open { transform: translateX(0); }.docs-sidebar.is-collapsed { width: min(300px, 84vw); padding-inline: 16px; }.docs-sidebar.is-collapsed .docs-sidebar-brand > div, .docs-sidebar.is-collapsed .docs-sidebar-footer, .docs-sidebar.is-collapsed .docs-sidebar-nav { display: flex; }.docs-sidebar.is-collapsed .docs-sidebar-nav { display: block; }.docs-sidebar.is-collapsed .docs-search { display: flex; }.docs-main { padding: 0 16px 40px; }.docs-topbar { min-height: 50px; }.docs-topbar-actions { gap: 0; }.docs-status { display: none; }.docs-console-link { font-size: 11px; }.docs-hero-section { padding: 52px 0 55px; }.docs-hero-copy h1 { font-size: 39px; }.docs-hero-copy > p { font-size: 13px; }.docs-hero-meta { gap: 13px 20px; margin-top: 26px; }.docs-hero-terminal pre { min-height: 220px; padding: 17px 14px; font-size: 10px; }.docs-article, .docs-capability-article, .docs-supporting-article, .docs-sdk-article { padding: 55px 0 60px; }.docs-quickstart-article { padding-top: 52px; }.docs-quickstart-heading h1 { font-size: 35px; }.docs-quickstart-step { padding: 19px 16px; }.docs-quickstart-subgrid { grid-template-columns: 1fr; margin-top: 19px; padding-left: 0; }.docs-quickstart-key-step, .docs-quickstart-access { margin-left: 0; }.docs-quickstart-access-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; }.docs-article-heading h2 { font-size: 25px; }.docs-manual-grid, .docs-capability-grid-v2, .docs-multimodal-list, .docs-support-grid { grid-template-columns: 1fr; }.docs-manual-card-wide { grid-column: auto; grid-template-columns: 30px 1fr; }.docs-manual-card-wide .docs-code { grid-column: 2; }.docs-capability-heading { gap: 16px; }.docs-capability-tag { margin-top: 2px; }.docs-json-preview { grid-template-columns: 1fr; gap: 7px; }.docs-json-preview code { white-space: pre-wrap; overflow-wrap: anywhere; }.docs-text-note { display: grid; gap: 8px; }.docs-endpoint-heading { display: block; }.docs-endpoint-meta { margin-top: 12px; white-space: normal; }.docs-endpoint-block { padding-bottom: 30px; }.docs-page-footer { display: grid; gap: 8px; } }
.docs-v2 .docs-code { overflow: visible; }
.docs-v2 .docs-code pre { max-height: none; overflow: visible; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
/* Keep API documentation text readable at the minimum 14px size. */
.docs-v2 .docs-code pre {
  font-size: 14px;
}
.docs-v2 .docs-nav-group-toggle,
.docs-v2 .docs-nav-empty,
.docs-v2 .docs-topbar,
.docs-v2 .docs-hero-meta code,
.docs-v2 .docs-terminal-head,
.docs-v2 .docs-hero-terminal pre,
.docs-v2 .docs-card-index,
.docs-v2 .docs-flow span,
.docs-v2 .docs-capability-grid-v2 code,
.docs-v2 .docs-capability-grid-v2 small,
.docs-v2 .docs-json-preview span,
.docs-v2 .docs-json-preview code,
.docs-v2 .docs-multimodal-list span,
.docs-v2 .docs-multimodal-list small,
.docs-v2 .docs-text-note code,
.docs-v2 .docs-endpoint-access,
.docs-v2 .docs-endpoint-block h4,
.docs-v2 .docs-notes,
.docs-v2 .docs-reference-panel a,
.docs-v2 .docs-quickstart-item li::marker,
.docs-v2 .docs-quickstart-next-link small,
.docs-v2 .docs-provider-grid span,
.docs-v2 .docs-endpoint-fields h4,
.docs-v2 .docs-capability-response-examples h4,
.docs-v2 .docs-capability-response-details > h4,
.docs-v2 .docs-code-toolbar button,
.docs-v2 .docs-copy-error,
.docs-v2 .docs-console-link {
  font-size: 14px;
}
.auth-section { display: grid; place-items: center; box-sizing: border-box; min-height: calc(100vh - 64px); padding: 88px 24px 56px; }
.auth-card { box-sizing: border-box; width: min(448px, 100%); }
.api-key-usage {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: #718098;
  white-space: nowrap;
}
.api-key-usage span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.api-key-usage b {
  color: #dce5f1;
  font: 12px "DM Mono", monospace;
  font-weight: 500;
}
.api-key-usage small {
  color: #718098;
  font-size: 10px;
}
.api-key-status-active {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  color: #7ed8c0;
  background: #153c3c;
}
.api-key-status-expired {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  color: #f2c277;
  background: #4b3b24;
}
.api-key-status-revoked {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  color: #f29eaf;
  background: #4c2936;
}
.api-key-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 14px;
  border: 1px solid #5e3543;
  border-radius: 5px;
  color: #f1a6b2;
  background: #301f2b;
  font-size: 12px;
}
.api-key-error .text-action {
  color: #f3bcc5;
}
.api-key-loading {
  display: grid;
  gap: 11px;
  padding: 12px 0;
}
.loading-line {
  height: 38px;
  border-radius: 5px;
  background: linear-gradient(90deg, #1a293e 25%, #243650 42%, #1a293e 63%);
  background-size: 400% 100%;
  animation: api-key-loading 1.3s ease infinite;
}
@keyframes api-key-loading {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.api-key-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 58px 18px 48px;
  text-align: center;
}
.empty-key-mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid #354968;
  border-radius: 10px;
  color: #8c7cff;
  background: #1a2740;
  font-size: 20px;
}
.api-key-empty h3 {
  margin: 7px 0 0;
  color: #e7edf6;
  font-size: 15px;
}
.api-key-empty p {
  max-width: 380px;
  margin: 0 0 10px;
  color: #7d8ba0;
  font-size: 12px;
  line-height: 1.7;
}
.api-key-empty .button {
  min-height: 36px;
  font-size: 12px;
}
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 6, 15, 0.78);
  backdrop-filter: blur(8px);
}
.modal-card {
  width: min(530px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 25px;
  background: #172234;
  border: 1px solid #3a4b68;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.secret-modal {
  width: min(560px, 100%);
}
.task-result-modal {
  width: min(720px, 100%);
}
.task-result-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin: 22px 0 14px;
}
.task-result-meta > div {
  min-width: 0;
  padding: 11px 12px;
  background: #121e31;
  border: 1px solid #2c3e57;
  border-radius: 5px;
}
.task-result-meta dt {
  margin-bottom: 6px;
  color: #718098;
  font-size: 10px;
}
.task-result-meta dd {
  margin: 0;
  color: #dce5f1;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.task-result-link {
  margin: 0 0 12px;
}
.task-result-link a {
  color: #8c82ff;
  font-size: 12px;
}
.task-result-media {
  margin: 0 0 14px;
  padding: 10px;
  background: #0d1625;
  border: 1px solid #2c3e57;
  border-radius: 5px;
}
.task-result-media video,
.task-result-media img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  background: #050817;
  border-radius: 3px;
}
.task-result-media video {
  min-height: 180px;
}
.modal-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.modal-card-heading .eyebrow {
  margin: 0 0 8px;
  color: #8c82ff;
  font-size: 10px;
}
.modal-card h2 {
  margin: 0;
  color: #eff3f9;
  font-size: 20px;
}
.modal-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #8190a6;
  background: transparent;
  cursor: pointer;
  font-size: 21px;
  line-height: 1;
}
.modal-close:hover {
  color: #fff;
  background: #24324a;
}
.modal-copy {
  margin: 15px 0 21px;
  color: #8593a8;
  font-size: 12px;
  line-height: 1.7;
}
.api-key-form {
  display: grid;
  gap: 17px;
}
.api-key-form > label {
  display: grid;
  gap: 7px;
  color: #a4b0c2;
  font-size: 11px;
}
.field-hint {
  margin-left: 5px;
  color: #667791;
  font-size: 10px;
}
.api-key-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.api-key-form legend {
  margin-bottom: 2px;
  color: #a4b0c2;
  font-size: 11px;
}
.scope-option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border: 1px solid #2c3e57;
  border-radius: 5px;
  background: #121e31;
  cursor: pointer;
}
.scope-option:has(input:checked) {
  border-color: #5960a8;
  background: #1a2344;
}
.scope-option input {
  width: 15px;
  height: 15px;
  min-height: auto;
  accent-color: #736bff;
}
.scope-option span {
  display: grid;
  gap: 3px;
}
.scope-option strong {
  color: #d9e1ed;
  font-size: 11px;
  font-weight: 600;
}
.scope-option small {
  color: #73839a;
  font-size: 10px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 3px;
}
.modal-actions .button {
  min-height: 38px;
  font-size: 12px;
}
.secret-warning {
  display: flex;
  gap: 10px;
  margin: 22px 0 14px;
  padding: 13px 14px;
  border: 1px solid #735a32;
  border-radius: 6px;
  color: #efc878;
  background: #3a2b1d;
}
.secret-warning span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid #d4a953;
  border-radius: 50%;
  font:
    11px "DM Mono",
    monospace;
}
.secret-warning p {
  margin: 0;
  color: #e6c885;
  font-size: 11px;
  line-height: 1.6;
}
.secret-value-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  padding: 13px 14px;
  border: 1px solid #38506b;
  border-radius: 6px;
  background: #0e1928;
}
.secret-value-row code {
  min-width: 0;
  overflow: auto;
  color: #8fe3d4;
  font:
    12px/1.6 "DM Mono",
    monospace;
  white-space: nowrap;
}
.secret-value-row .icon-button {
  margin-left: auto;
  flex: 0 0 auto;
}

/* Final member-console overrides. The stylesheet contains legacy console
   views as well as the current DOM renderer; keep the current shell stable
   when those older selectors appear later in the cascade. */
.console-page {
  padding-top: 64px;
  min-height: calc(100vh - 64px);
  background: #090e1a;
}
.console-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  width: 100%;
  min-height: calc(100vh - 64px);
  background: #0d1422;
}
.console-sidebar {
  display: flex;
  flex-direction: column;
  padding: 22px 16px 20px;
  background: #111927;
  border-right: 1px solid #26344a;
}
.console-nav {
  display: grid;
  gap: 5px;
}
.console-nav button,
.console-nav-debug {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 13px;
  border: 0;
  border-radius: 6px;
  color: #8997ad;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  text-decoration: none;
}
.console-nav button:hover,
.console-nav-debug:hover {
  color: #e8eef8;
  background: #18233a;
}
.console-nav button.active {
  color: #fff;
  background: #202b5a;
  box-shadow: inset 3px 0 #6c63ff;
}
.console-nav .nav-icon {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  color: #7988a2;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}
.console-nav button.active .nav-icon {
  color: #8b82ff;
}
.console-main {
  min-width: 0;
  padding: 0 38px 60px;
  background: #0d1422;
}
.console-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 31px 0 27px;
  border-bottom: 1px solid #243149;
}
.console-topbar + .finance-section,
.console-topbar + .recharge-layout {
  margin-top: 24px;
}
.console-topbar h1 { margin: 0; color: #f1f5fb; font-size: 25px; letter-spacing: -0.02em; }
.console-topbar .eyebrow { margin: 0 0 7px; color: #74829a; font-size: 10px; letter-spacing: 0.08em; }
.console-view { padding-top: 28px; }
.console-panel { min-width: 0; padding: 22px; background: #172234; border: 1px solid #293950; border-radius: 7px; }
.console-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }
.console-metric-card { display: grid; gap: 9px; min-height: 120px; padding: 19px 18px; background: #172234; border: 1px solid #293950; border-radius: 7px; }
.finance-subnav { display: flex; align-items: center; gap: 3px; max-width: 100%; padding: 3px; overflow-x: auto; border: 1px solid #2b3d55; border-radius: 6px; background: #101a29; }
.finance-subnav button { min-height: 30px; padding: 0 11px; border: 0; border-radius: 4px; color: #7f8fa7; background: transparent; cursor: pointer; font-size: 14px; white-space: nowrap; }
.finance-subnav button.active { color: #fff; background: #29376f; }
.profile-form { display: grid; gap: 17px; max-width: 560px; padding-top: 21px; }
.profile-form label { display: grid; gap: 8px; color: #9ca9bd; font-size: 11px; }
.profile-form input,
.profile-form select { box-sizing: border-box; width: 100%; min-height: 42px; padding: 11px 12px; color: #edf2fa; background: #101a29; border: 1px solid #2a3b52; border-radius: 5px; outline: none; font-size: 12px; }
.profile-form input:focus,
.profile-form select:focus { border-color: #6c63ff; }
.recharge-package-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.recharge-option { min-height: 66px; }
.recharge-option small { display: block; margin-top: 5px; color: inherit; font-size: 10px; opacity: .7; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; color: #aab6c7; font-size: 11px; }
.data-table th { padding: 0 10px 11px; color: #718098; font-size: 10px; font-weight: 500; text-align: left; white-space: nowrap; }
.data-table td { padding: 12px 10px; border-top: 1px solid #26364c; white-space: nowrap; }
.data-table td.negative-amount { color: #ff7f8e; font-weight: 600; }
.finance-section .data-table,
.finance-section .data-table th,
.finance-section .data-table td,
.finance-section .data-table code,
.finance-section .data-table strong,
.finance-section .data-table .text-action {
  font-size: 14px;
}
.api-key-list { display: grid; gap: 10px; margin-top: 22px; }
.api-key-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 16px; background: rgba(8,13,37,.62); border: 1px solid rgba(148,163,224,.16); border-radius: 6px; }
.api-key-row > div:first-child { display: grid; gap: 6px; min-width: 0; }
.api-key-row code { overflow: hidden; color: #9ce5df; font: 12px "DM Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.api-key-actions { display: flex; gap: 12px; }
.console-empty-state { display: grid; place-items: center; min-height: 170px; color: #8793bc; text-align: center; }

@media (max-width: 980px) {
  .console-main { padding-inline: 24px; }
  .console-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recharge-package-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .console-shell { display: block; }
  .console-sidebar { padding: 13px 16px 0; border-right: 0; border-bottom: 1px solid #26344a; }
  .console-nav { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 11px; }
  .console-nav button,
  .console-nav-debug { width: auto; min-height: 38px; flex: 0 0 auto; justify-content: center; padding: 9px 13px; font-size: 12px; white-space: nowrap; }
  .console-nav button.active { box-shadow: inset 0 -2px #6c63ff; }
  .console-main { padding: 0 16px 36px; }
  .console-topbar { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; padding: 22px 0 19px; }
  .console-topbar + .finance-section,
  .console-topbar + .recharge-layout { margin-top: 18px; }
  .console-topbar h1 { font-size: 22px; }
  .console-topbar > .finance-subnav { width: 100%; }
  .console-metric-grid { grid-template-columns: 1fr; }
  .recharge-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .api-key-row { grid-template-columns: minmax(0, 1fr) auto; }
  .api-key-actions { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .task-filter-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-x: visible;
  }
  .task-filter-panel > label {
    min-width: 0;
  }
  .task-filter-date-field {
    flex: initial !important;
    min-width: 0 !important;
    grid-column: span 2;
  }
  .task-filter-actions {
    grid-column: span 2;
    justify-content: stretch;
  }
  .task-filter-actions .button {
    flex: 1;
  }
  .task-filter-reset {
    width: 100%;
  }
  .task-result-meta {
    grid-template-columns: 1fr;
  }
  .api-key-list-panel {
    padding: 16px 14px;
  }
  .api-key-list-panel .console-panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .api-key-list-panel .panel-caption {
    line-height: 1.5;
  }
  .api-key-empty {
    padding: 45px 12px 35px;
  }
  .modal-backdrop {
    padding: 14px;
  }
  .modal-card {
    padding: 20px;
  }
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .modal-actions .button {
    width: 100%;
  }
}

/* Layer-style confirmation dialog overrides */
.layer-modal { width: min(430px, 100%); }
.layer-confirm-message { margin: 18px 0 4px; }
.button-danger { color: #fff; background: linear-gradient(105deg, #c0526a, #dd697b); box-shadow: 0 10px 28px rgba(194, 73, 99, 0.22); }
.button-danger:hover { box-shadow: 0 14px 32px rgba(194, 73, 99, 0.4); }

/* Registration form: keep the two registration modes on one control system. */
.auth-section .auth-card:has(.auth-form[data-auth-form="register"]) {
  box-sizing: border-box;
  width: min(500px, calc(100vw - 32px));
  padding: 32px;
}
.auth-form[data-auth-form="register"] {
  gap: 16px;
}
.auth-form[data-auth-form="register"] .register-type-switch {
  margin: 0;
}
.auth-form[data-auth-form="register"] .register-type-button {
  min-height: 42px;
}
.auth-form[data-auth-form="register"] .register-type-button:focus-visible {
  outline: 2px solid #71d8ef;
  outline-offset: 2px;
}
.auth-form[data-auth-form="register"] .register-fields {
  gap: 14px;
}
.auth-form[data-auth-form="register"] .register-fields > label {
  gap: 7px;
  line-height: 1.4;
}
.auth-form[data-auth-form="register"] input:not([type="checkbox"]) {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #33445e;
  border-radius: 6px;
  background: #111927;
  color: #eef4ff;
}
.auth-form[data-auth-form="register"] input:not([type="checkbox"]):focus {
  border-color: #6f7bff;
  box-shadow: 0 0 0 3px rgba(111, 123, 255, 0.14);
}
.auth-form[data-auth-form="register"] input:not([type="checkbox"]):disabled {
  cursor: not-allowed;
  opacity: 0.56;
}
.auth-form[data-auth-form="register"] input::placeholder {
  color: #71809a;
}
.auth-form[data-auth-form="register"] .code-input,
.auth-form[data-auth-form="register"] .captcha-input {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-height: 46px;
  border: 0;
  overflow: visible;
  background: transparent;
}
.auth-form[data-auth-form="register"] .code-input input,
.auth-form[data-auth-form="register"] .captcha-input > input {
  min-width: 0;
  flex: 1 1 auto;
}
.auth-form[data-auth-form="register"] .code-input button {
  box-sizing: border-box;
  flex: 0 0 112px;
  width: auto;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #33445e;
  border-radius: 6px;
  background: #172238;
  color: #aebbe0;
  white-space: nowrap;
}
.auth-form[data-auth-form="register"] .code-input button:hover:not(:disabled) {
  border-color: #6575e8;
  background: #202e4b;
  color: #eef4ff;
}
.auth-form[data-auth-form="register"] .code-input button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.auth-form[data-auth-form="register"] .auth-agreement {
  display: flex !important;
  align-items: flex-start;
  gap: 9px !important;
  margin: 0;
  color: #8997b0;
  font-size: 11px;
  line-height: 1.6;
}
.auth-form[data-auth-form="register"] .auth-agreement input[type="checkbox"] {
  box-sizing: border-box;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-height: 16px;
  margin: 2px 0 0;
  accent-color: #6f7bff;
}
.auth-form[data-auth-form="register"] .auth-agreement a {
  color: #55cce4;
}
.auth-form[data-auth-form="register"] .error-note {
  min-height: 0;
  margin: 0;
  line-height: 1.5;
}
.auth-form[data-auth-form="register"] .error-note:empty {
  display: none;
}
.auth-form[data-auth-form="register"] > .button-primary {
  min-height: 46px;
  border-radius: 6px;
  font-size: 13px;
}
.auth-type-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  margin: 0;
  background: rgba(8, 13, 34, 0.72);
  border: 1px solid rgba(145, 158, 222, 0.22);
  border-radius: 7px;
}
.auth-section .auth-card:has(.auth-form[data-auth-form="login"]) {
  box-sizing: border-box;
  width: min(500px, calc(100vw - 32px));
  padding: 32px;
}
.auth-form[data-auth-form="login"] {
  gap: 16px;
}
.auth-type-button {
  min-height: 42px;
  color: #8f9ac2;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.auth-type-button:hover,
.auth-type-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(136, 117, 255, 0.9), rgba(81, 215, 237, 0.72));
  box-shadow: 0 8px 22px rgba(81, 215, 237, 0.14);
}
.auth-type-button:focus-visible {
  outline: 2px solid #71d8ef;
  outline-offset: 2px;
}
.auth-form[data-auth-form="login"] .auth-mode-fields {
  display: grid;
  gap: 14px;
}
.auth-form[data-auth-form="login"] .auth-mode-fields[hidden] {
  display: none;
}
.auth-form[data-auth-form="login"] .auth-mode-fields > label {
  gap: 7px;
  line-height: 1.4;
}
.auth-form[data-auth-form="login"] input:not([type="checkbox"]) {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #33445e;
  border-radius: 6px;
  background: #111927;
  color: #eef4ff;
}
.auth-form[data-auth-form="login"] input:not([type="checkbox"]):focus {
  border-color: #6f7bff;
  box-shadow: 0 0 0 3px rgba(111, 123, 255, 0.14);
}
.auth-form[data-auth-form="login"] input::placeholder {
  color: #71809a;
}
.auth-form[data-auth-form="login"] .captcha-input {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-height: 46px;
  overflow: visible;
  border: 0;
  background: transparent;
}
.auth-form[data-auth-form="login"] .captcha-input > input {
  min-width: 0;
  flex: 1 1 auto;
}
.auth-form[data-auth-form="login"] .captcha-image-button {
  box-sizing: border-box;
  flex: 0 0 132px;
  width: auto;
  min-height: 46px;
  border: 1px solid #33445e;
}
.auth-form[data-auth-form="login"] .error-note {
  min-height: 0;
  margin: 0;
  line-height: 1.5;
}
.auth-form[data-auth-form="login"] .error-note:empty {
  display: none;
}
.auth-form[data-auth-form="login"] > .button-primary {
  min-height: 46px;
  border-radius: 6px;
  font-size: 13px;
}

@media (max-width: 560px) {
  .auth-section .auth-card:has(.auth-form[data-auth-form="register"]) {
    width: min(100%, calc(100vw - 24px));
    padding: 25px 20px;
  }
  .auth-section .auth-card:has(.auth-form[data-auth-form="login"]) {
    width: min(100%, calc(100vw - 24px));
    padding: 25px 20px;
  }
  .auth-form[data-auth-form="register"] .code-input,
  .auth-form[data-auth-form="register"] .captcha-input {
    gap: 8px;
  }
  .auth-form[data-auth-form="register"] .code-input button {
    flex-basis: 104px;
    padding: 0 8px;
    font-size: 12px;
  }
  .auth-type-button {
    min-height: 40px;
  }
  .auth-form[data-auth-form="login"] .captcha-input {
    gap: 8px;
  }
  .auth-form[data-auth-form="login"] .captcha-image-button {
    flex-basis: 112px;
  }
}

/* Member playground workspace */
.playground-body { overflow: hidden; background: #070b14; }
.playground-body .site-shell { min-height: 100dvh; background: #070b14; }
.playground-body #page-content { min-height: 100dvh; }
.playground-app { display: grid; grid-template-columns: 286px minmax(0, 1fr); min-height: 100dvh; color: #dce5f5; background: #070b14; }
.playground-sidebar { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid #1a2536; background: #0b111c; }
.playground-brand { display: flex; align-items: center; gap: 11px; height: 72px; padding: 0 24px; border-bottom: 1px solid #172234; }
.playground-brand-mark { display: grid; place-items: center; width: 30px; height: 30px; color: #e7fbff; background: linear-gradient(145deg, #2bbee1, #6262e7); border-radius: 8px; box-shadow: 0 8px 20px rgba(54, 157, 225, .22); font-size: 18px; }
.playground-brand strong, .playground-brand span, .playground-account strong, .playground-account span { display: block; }
.playground-brand strong { color: #f0f5ff; font-size: 14px; font-weight: 650; }
.playground-brand div span { margin-top: 3px; color: #76859f; font-size: 11px; }
.playground-mode-nav { display: grid; gap: 5px; padding: 16px 10px 0; }
.playground-mode-nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 13px; border: 1px solid transparent; border-radius: 8px; color: #9aaac1; background: transparent; text-align: left; cursor: pointer; }
.playground-mode-nav button:hover { color: #dce9f7; background: #111c2b; }
.playground-mode-nav button.is-active { color: #77e8f2; border-color: #173d4b; background: #0b2936; }
.playground-mode-nav button > span:last-child { display: grid; gap: 4px; }
.playground-mode-nav strong { color: inherit; font-size: 13px; font-weight: 650; }
.playground-mode-nav small { color: #71829c; font-size: 11px; }
.playground-mode-nav button.is-active small { color: #72a9b6; }
.mode-icon { display: grid; place-items: center; width: 29px; height: 29px; color: #91a2bb; border: 1px solid #2b3b55; border-radius: 7px; font: 600 11px/1 Arial, sans-serif; }
.playground-mode-nav button.is-active .mode-icon { color: #6be9f3; border-color: #2f8493; background: #123c48; }
.playground-sidebar-section { margin-top: 26px; padding: 0 16px; }
.playground-section-title { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 10px; color: #718199; font-size: 11px; }
.playground-history { display: grid; align-content: start; gap: 3px; }
.playground-history button { display: grid; gap: 5px; width: 100%; padding: 9px 8px; border: 0; border-radius: 6px; color: #b7c3d6; background: transparent; text-align: left; cursor: pointer; }
.playground-history button:hover { background: #111c2b; }
.playground-history button span { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.playground-history button.playground-history-more {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 2px;
  padding: 6px 8px;
  border-top: 1px solid #172234;
  border-radius: 0;
  color: #7488a2;
  text-align: center;
}
.playground-history button.playground-history-more:hover { color: #b9cedf; }
.playground-history-empty { padding: 16px 8px; color: #56657b; font-size: 11px; }
.playground-sidebar-footer { display: grid; gap: 5px; margin-top: auto; padding: 16px; border-top: 1px solid #172234; }
.playground-account { margin: 4px 8px 2px; padding: 10px 0 8px; border-top: 1px solid #172234; }
.playground-account strong { max-width: 205px; overflow: hidden; color: #dce7f9; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.playground-account span { margin-top: 4px; color: #8292aa; font-size: 11px; }
.playground-sidebar-footer a, .playground-sidebar-footer button { display: flex; align-items: center; gap: 9px; min-height: 35px; padding: 0 8px; border: 0; color: #8797ae; background: transparent; font: inherit; font-size: 11px; text-align: left; text-decoration: none; cursor: pointer; }
.playground-sidebar-footer a:hover, .playground-sidebar-footer button:hover { color: #dce9f7; background: #111c2b; }
.playground-workspace { display: flex; min-width: 0; min-height: 100dvh; flex-direction: column; background: radial-gradient(circle at 76% 15%, rgba(30, 76, 108, .11), transparent 33%), #080d17; }
.playground-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 34px; border-bottom: 1px solid #172234; }
.playground-mobile-brand { display: flex; align-items: center; gap: 12px; }
.playground-mobile-brand strong { color: #dce8f8; font-size: 14px; }
.playground-mobile-menu { display: none; border: 0; color: #b3c1d5; background: transparent; font-size: 19px; cursor: pointer; }
.playground-topbar-actions { display: flex; align-items: center; gap: 22px; }
.playground-topbar-actions a { color: #9aabc2; font-size: 12px; text-decoration: none; }
.playground-topbar-actions a:hover { color: #6fe4f0; }
.playground-session-status { display: inline-flex; align-items: center; gap: 7px; color: #7690a9; font-size: 11px; }
.playground-session-status i { width: 6px; height: 6px; border-radius: 50%; background: #37d79d; box-shadow: 0 0 0 4px rgba(55, 215, 157, .1); }
.playground-content { display: flex; width: min(1100px, calc(100% - 72px)); min-height: calc(100dvh - 72px); margin: 0 auto; padding: 24px 0 32px; flex-direction: column; }
.playground-heading { display: flex; align-items: center; justify-content: flex-end; min-height: 38px; }
.playground-model-control { display: grid; gap: 7px; min-width: 220px; }
.playground-model-control label, .playground-setting label { color: #788ba5; font-size: 11px; }
.playground-model-control select, .playground-setting select { height: 38px; padding: 0 12px; border: 1px solid #26364d; border-radius: 7px; color: #cdd9eb; background: #0d1725; font: inherit; font-size: 12px; outline: 0; }
.playground-model-control select:focus, .playground-setting select:focus { border-color: #318695; box-shadow: 0 0 0 3px rgba(48, 163, 180, .12); }
.playground-chat { display: flex; min-height: 0; flex: 1; margin: 12px 0 18px; padding: 0; flex-direction: column; overflow: auto; }
.playground-empty { display: grid; place-items: center; align-content: center; min-height: 320px; margin: auto; text-align: center; }
.playground-empty-mark { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; color: #d9faff; border: 1px solid #2d6a78; border-radius: 15px; background: linear-gradient(145deg, #15414c, #202f60); box-shadow: 0 0 40px rgba(51, 179, 198, .16); font-size: 25px; }
.playground-empty h2 { margin: 0; color: #c7d4e8; font-size: 19px; font-weight: 600; }
.playground-empty p { margin: 10px 0 0; color: #70819a; font-size: 13px; }
.playground-message { width: min(860px, 100%); min-width: 0; max-width: 100%; flex: 0 0 auto; margin: 0 0 14px; padding: 15px 17px; overflow: hidden; border: 1px solid #1d2c40; border-radius: 9px; background: #0d1724; }
.playground-message-user { align-self: flex-end; width: min(760px, 88%); margin-left: auto; border-color: #24515f; background: #10303a; }
.playground-message-assistant, .playground-message-result { align-self: flex-start; margin-right: auto; }
.playground-message p { margin: 0; color: #d8e4f4; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; }
.playground-message-result { width: fit-content; max-width: 100%; padding: 12px; border-color: #26384d; background: #0c1623; box-sizing: border-box; }
.playground-message.playground-message-result-media { width: min(300px, 100%); padding: 0; overflow: hidden; }
.playground-message-result-media img, .playground-message-result-media video { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; border-radius: 0; object-fit: contain; background: #060a11; }
.playground-message-result img { cursor: zoom-in; }
.playground-message-result video { cursor: pointer; }
.playground-message-result img:focus-visible { outline: 2px solid #69dbe6; outline-offset: 3px; }
.playground-message-task-record { width: min(1120px, 100%); padding: 0; border-color: #26384d; background: #0c1623; }
.playground-task-record { display: grid; gap: 14px; padding: 14px; }
.playground-task-sources { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.playground-task-sources img, .playground-task-sources video { display: block; width: 100px; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 6px; background: #060a11; }
.playground-task-sources img { cursor: zoom-in; }
.playground-task-source-file, .playground-task-sources-empty { display: flex; min-height: 62px; align-items: center; justify-content: center; padding: 8px; border: 1px dashed #30445d; border-radius: 6px; color: #91a5be; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
.playground-task-details { position: relative; padding: 12px 14px; border: 1px solid #1d2c40; border-radius: 7px; background: #0d1724; }
.playground-task-details p { padding-right: 42px; }
.playground-task-progress { height: 4px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: #1c2c40; }
.playground-task-progress span { display: block; height: 100%; border-radius: inherit; background: #69dbe6; transition: width .3s ease; }
.playground-task-progress-value { position: absolute; top: 12px; right: 14px; color: #69dbe6; font-size: 12px; }
.playground-task-result { overflow: hidden; border-radius: 7px; background: #060a11; }
.playground-task-result img, .playground-task-result video { display: block; width: 100%; max-height: 520px; object-fit: contain; cursor: pointer; }
.playground-media-preview-backdrop { position: fixed; z-index: 110; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 15, 0.86); backdrop-filter: blur(8px); }
.playground-media-preview-card { display: grid; place-items: center; width: min(1100px, 100%); max-height: calc(100vh - 40px); padding: 0; background: transparent; }
.playground-media-preview-card img, .playground-media-preview-card video { display: block; max-width: 100%; max-height: calc(100vh - 80px); border-radius: 6px; object-fit: contain; }
.playground-composer { margin-top: auto; padding: 14px 16px 11px; border: 1px solid #26364b; border-radius: 13px; background: #0d1622; box-shadow: 0 12px 42px rgba(1, 6, 14, .25); }
.playground-composer textarea { display: block; width: 100%; min-height: 74px; max-height: 180px; padding: 7px 5px; border: 0; resize: vertical; color: #dce6f5; background: transparent; font: inherit; font-size: 13px; line-height: 1.7; outline: 0; }
.playground-composer textarea::placeholder { color: #657590; }
.playground-composer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; padding-top: 10px; border-top: 1px solid #1b293b; }
.playground-tool-actions, .playground-run-actions { display: flex; align-items: center; gap: 12px; }
.playground-tool-actions button, .playground-toolbar-text-button, .playground-attach-button { color: #7286a0; border: 0; background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.playground-tool-actions button:hover, .playground-toolbar-text-button:hover, .playground-attach-button:hover { color: #b9cedf; }
.playground-attach-button input { display: none; }
.playground-send { display: grid; place-items: center; width: 35px; height: 35px; border: 0; border-radius: 8px; color: #061017; background: #69dbe6; font-size: 20px; cursor: pointer; }
.playground-send:hover { background: #93edf3; }
.playground-send:disabled { cursor: wait; opacity: .5; }
.playground-quote { color: #93a6bb; font-size: 11px; }
.playground-attachments { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; }
.playground-frame-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.playground-frame-slot { position: relative; display: block; width: 72px; height: 72px; border: 1px dashed #2b3a55; border-radius: 10px; color: #74849e; background: #101827; }
.playground-frame-slot input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.playground-frame-picker { display: block; width: 100%; height: 100%; cursor: pointer; }
.playground-frame-preview { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: 9px; }
.playground-frame-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.playground-frame-preview small, .playground-frame-caption { position: absolute; right: 0; bottom: 7px; left: 0; color: #8593aa; font-size: 10px; text-align: center; }
.playground-frame-plus { color: #7c8ba5; font-size: 19px; line-height: 1; }
.playground-frame-file-name { max-width: 58px; overflow: hidden; color: #a9bdd3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.playground-frame-slot.has-file { border-style: solid; border-color: #2d6271; background: #0c2731; }
.playground-frame-slot.has-file .playground-frame-caption { padding: 2px 4px; color: #d6f1f1; background: rgba(4, 12, 18, .72); }
.playground-frame-remove { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; width: 19px; height: 19px; padding: 0; border: 1px solid #34475d; border-radius: 50%; color: #a8bbd0; background: #111c2b; cursor: pointer; }
.playground-frame-swap { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #26364e; border-radius: 50%; color: #7c8ba5; background: #121c2a; cursor: pointer; }
.playground-frame-swap:hover { color: #b8eef1; border-color: #2e6c78; background: #14303c; }
.playground-attach-zone.is-reference-slot { display: inline-grid; place-items: center; width: 72px; height: 72px; min-height: 72px; padding: 0; border-color: #2b3a55; border-radius: 10px; color: #74849e; background: #101827; }
.playground-attach-zone.is-reference-slot [data-playground-attach-label] { display: grid; place-items: center; gap: 6px; font-size: 10px; }
.playground-reference-plus { color: #7c8ba5; font-size: 19px; line-height: 1; }
.playground-attach-zone.is-reference-slot:hover { color: #b8eef1; border-color: #2e6c78; background: #142331; }
.playground-attachment-preview { position: relative; display: block; width: 72px; height: 72px; overflow: hidden; border: 1px solid #2d6271; border-radius: 10px; background: #0c2731; }
.playground-attachment-preview img, .playground-attachment-preview video { display: block; width: 100%; height: 100%; object-fit: cover; }
.playground-attachment-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: #91a5be; font-size: 10px; }
.playground-attachment-audio { display: grid; place-items: center; width: 100%; height: 100%; padding-bottom: 13px; color: #8bd9df; font-size: 30px; }
.playground-attachment-name { position: absolute; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 3px 4px; color: #e0edf2; background: rgba(8, 18, 28, .82); font-size: 10px; line-height: 14px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.playground-attachment-preview button { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 1px solid #34475d; border-radius: 50%; color: #d8e4f4; background: rgba(8, 18, 28, .82); cursor: pointer; }
.playground-settings { display: flex; gap: 13px; margin-top: 13px; padding: 13px 15px; border: 1px solid #1e2d40; border-radius: 8px; background: #0c1522; }
.playground-settings[hidden], .playground-setting[hidden], .playground-attach-button[hidden], [data-playground-frame-wrap][hidden], [data-playground-generation-wrap][hidden], [data-playground-clear][hidden], [data-remove-frame][hidden] { display: none !important; }
.playground-setting { display: grid; gap: 7px; min-width: 126px; }
.playground-feedback { min-height: 18px; margin: 10px 4px 0; color: #6f91a5; font-size: 11px; }
.playground-feedback.is-error { color: #ef8d93; }

@media (max-width: 800px) {
  .playground-app { display: block; }
  .playground-sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; width: min(286px, 86vw); transform: translateX(-101%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0, 0, 0, .35); }
  .playground-app.sidebar-open .playground-sidebar { transform: translateX(0); }
  .playground-app.sidebar-open::after { position: fixed; z-index: 19; inset: 0; background: rgba(2, 7, 13, .62); content: ''; }
  .playground-mobile-menu { display: inline-block; }
  .playground-topbar { min-height: 60px; padding: 0 18px; }
  .playground-content { width: min(100% - 32px, 720px); min-height: calc(100dvh - 60px); padding-top: 30px; }
  .playground-topbar-actions { gap: 10px; }
  .playground-session-status { display: none; }
}
@media (max-width: 560px) {
  .playground-model-control { min-width: 0; }
  .playground-chat { margin-top: 28px; }
  .playground-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .playground-setting { min-width: 0; }
  .playground-composer { padding: 11px 12px 9px; }
  .playground-tool-actions { gap: 8px; }
  .playground-quote { display: none; }
}

/* Playground shell: fixed navigation/sidebar with an independently scrolling workspace. */
.playground-app {
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: 72px minmax(0, 1fr);
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.playground-topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 72px;
  padding: 0 24px;
  background: #0b111c;
}
.playground-topbar-brand { display: inline-flex; align-items: center; gap: 10px; color: #e8f2ff; text-decoration: none; }
.playground-topbar-brand .playground-brand-mark,
.playground-topbar-brand .playground-brand-logo { width: 29px; height: 29px; font-size: 16px; }
.playground-topbar-brand .playground-brand-logo { display: block; border-radius: 8px; object-fit: contain; }
.playground-topbar-brand strong { font-size: 14px; font-weight: 650; }
.playground-global-nav { display: flex; align-items: stretch; align-self: stretch; gap: 26px; margin-left: auto; margin-right: auto; }
.playground-global-nav a { display: inline-flex; align-items: center; color: #8393aa; font-size: 12px; text-decoration: none; border-bottom: 2px solid transparent; }
.playground-global-nav a:hover, .playground-global-nav a.is-active { color: #75e8f1; border-bottom-color: #36b8c7; }
.playground-sidebar { grid-column: 1; grid-row: 2; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.playground-workspace { grid-column: 2; grid-row: 2; min-height: 0; height: auto; overflow: hidden; }
.playground-content { width: 100%; min-height: 0; height: 100%; padding: 24px 20px 28px; overflow: hidden; }
.playground-heading { display: none; }
.playground-chat { flex: 1 1 0; min-height: 0; margin: 0 0 18px; padding-right: 8px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #30445c transparent; scrollbar-gutter: stable; scrollbar-width: thin; }
.playground-chat::-webkit-scrollbar { width: 7px; }
.playground-chat::-webkit-scrollbar-track { background: transparent; }
.playground-chat::-webkit-scrollbar-thumb { border-radius: 999px; background: #30445c; }
.playground-composer { width: 100%; flex: 0 0 auto; margin-top: auto; }
.playground-composer-main { position: relative; min-height: 112px; }
.playground-material-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px; }
.playground-material-row > .playground-attachments { display: contents; }
.playground-composer-main textarea { min-height: 92px; padding: 8px 6px; }
.playground-composer-main textarea[hidden], .playground-mention-wrap[hidden], .playground-mention-panel[hidden] { display: none !important; }
.playground-mention-wrap { position: relative; }
.playground-mention-editor { width: 100%; min-height: 92px; max-height: 180px; overflow-y: auto; padding: 8px 6px; color: #dce6f5; font-size: 13px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; outline: 0; }
.playground-mention-editor:empty::before { content: attr(data-placeholder); color: #657590; pointer-events: none; }
.playground-mention-editor:focus-visible { border-radius: 6px; box-shadow: inset 0 0 0 1px #2d5364; }
.playground-material-tag { display: inline-flex; align-items: center; vertical-align: baseline; gap: 6px; max-width: 100%; margin: 0 2px; padding: 0 7px; border: 1px solid #2e6876; border-radius: 6px; color: #8ae1eb; background: #123641; white-space: nowrap; user-select: all; }
.playground-material-tag > span { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.playground-material-tag button { flex: 0 0 auto; padding: 0 2px; border: 0; color: #8ae1eb; background: transparent; font-size: 16px; cursor: pointer; }
.playground-material-tag button:hover { color: #fff; }
.playground-mention-panel { position: absolute; z-index: 30; right: 0; bottom: calc(100% + 8px); left: 0; padding: 10px; border: 1px solid #2d5364; border-radius: 10px; background: #101e2d; box-shadow: 0 12px 40px #0008; }
.playground-mention-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 6px 10px; color: #dce6f5; font-size: 12px; }
.playground-mention-heading span { color: #8393aa; font-size: 11px; }
#playground-material-list { max-height: min(280px, 35dvh); overflow-y: auto; overscroll-behavior: contain; }
.playground-mention-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 7px; text-align: left; color: #dce6f5; background: transparent; cursor: pointer; }
.playground-mention-option.is-active, .playground-mention-option:hover { border-color: #2d5364; background: #163444; }
.playground-mention-thumbnail { position: relative; display: flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden; border-radius: 5px; color: #8ae1eb; background: #213348; }
.playground-mention-thumbnail img, .playground-mention-thumbnail video { width: 100%; height: 100%; object-fit: cover; }
.playground-mention-thumbnail i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-style: normal; text-shadow: 0 1px 4px #000; }
.playground-mention-info { display: grid; gap: 4px; min-width: 0; }
.playground-mention-info strong { overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.playground-mention-info small { color: #8393aa; font-size: 11px; }
.playground-mention-empty { padding: 28px 8px; color: #8393aa; text-align: center; font-size: 12px; }
.playground-mention-upload, [data-mention-retry] { padding: 8px; border: 0; color: #8ae1eb; background: transparent; cursor: pointer; font-size: 12px; }
.playground-mention-upload { width: 100%; margin-top: 6px; border-top: 1px solid #263c50; text-align: left; }
.playground-attach-zone { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border: 1px dashed #2d5364; border-radius: 6px; color: #76bdc9; background: #102735; }
.playground-composer-toolbar { align-items: center; flex-wrap: wrap; margin-top: 8px; padding-top: 11px; }
.playground-tool-actions { min-width: 0; }
.playground-model-control { display: flex; align-items: center; gap: 8px; min-width: 0; }
.playground-model-control label { white-space: nowrap; }
.playground-model-control select { width: 190px; height: 34px; }
.playground-generation-control select { width: 140px; }
.playground-settings { display: flex; flex: 0 1 auto; align-items: flex-end; flex-wrap: nowrap; order: 1; gap: 12px 16px; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.playground-setting { display: grid; gap: 6px; min-width: 116px; }
.playground-setting label { white-space: nowrap; }
.playground-setting select { width: 100%; min-width: 0; height: 34px; padding: 0 9px; }
.playground-clear-video { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 34px; padding: 0 2px; white-space: nowrap; }
.playground-run-actions { order: 1; margin-left: auto; }
.playground-send { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: auto; min-width: 98px; padding: 0 13px; white-space: nowrap; }
.playground-send b { font-size: 12px; font-weight: 600; }

@media (max-width: 1000px) {
  .playground-global-nav { gap: 14px; }
  .playground-content { width: 100%; padding-right: 20px; padding-left: 20px; }
  .playground-model-control select { width: 150px; }
  .playground-settings { flex-wrap: wrap; }
  .playground-setting { gap: 4px; }
}
@media (max-width: 800px) {
  .playground-app { display: grid; grid-template-columns: 1fr; grid-template-rows: 60px minmax(0, 1fr); }
  .playground-topbar { grid-column: 1; grid-row: 1; min-height: 60px; padding: 0 18px; }
  .playground-global-nav { display: none; }
  .playground-sidebar { grid-column: 1; grid-row: 2; position: fixed; z-index: 20; top: 60px; bottom: 0; height: auto; }
  .playground-workspace { grid-column: 1; grid-row: 2; }
  .playground-content { width: calc(100% - 32px); padding: 18px 0 24px; }
  .playground-composer-toolbar { align-items: stretch; flex-wrap: wrap; }
  .playground-tool-actions, .playground-settings { flex-wrap: wrap; }
  .playground-tool-actions { row-gap: 10px; }
  .playground-settings { width: 100%; row-gap: 10px; order: 1; }
  .playground-run-actions { margin-left: auto; order: 2; }
}
@media (max-width: 560px) {
  .playground-topbar-brand strong { display: none; }
  .playground-content { width: calc(100% - 24px); }
  .playground-chat { min-height: 140px; }
  .playground-composer-main { min-height: 100px; }
  .playground-composer-toolbar { gap: 8px; }
  .playground-tool-actions { width: 100%; justify-content: space-between; }
  .playground-model-control { flex: 1; }
  .playground-model-control select { flex: 1; width: auto; }
  .playground-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; order: 1; }
  .playground-setting { min-width: 0; }
  .playground-setting select { min-width: 0; }
  .playground-run-actions { width: 100%; justify-content: flex-end; order: 2; }
}


/* Keep the task/result conversation on a centered, wide reading rail. */
.playground-chat {
  width: min(1120px, 100%);
  margin-right: auto;
  margin-left: auto;
}
.playground-composer {
  width: min(1120px, 100%);
  margin-right: auto;
  margin-left: auto;
}
.playground-message-user,
.playground-message-assistant,
.playground-message-result {
  max-width: 100%;
}
.playground-message-user {
  align-self: flex-end;
  margin-right: 0;
  margin-left: auto;
  width: fit-content;
}
.playground-message-assistant,
.playground-message-result {
  align-self: flex-start;
  margin-right: auto;
  margin-left: 0;
  width: fit-content;
}

/* Keep sidebar account actions visible while history grows. */
.playground-sidebar {
  overflow: hidden;
}
.playground-sidebar-section {
  display: flex;
  min-height: 0;
  flex: 1 1 0;
  flex-direction: column;
}
.playground-history {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-color: #30445c transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
.playground-history::-webkit-scrollbar { width: 7px; }
.playground-history::-webkit-scrollbar-track { background: transparent; }
.playground-history::-webkit-scrollbar-thumb { border-radius: 999px; background: #30445c; }
.playground-sidebar-footer {
  flex: 0 0 auto;
}
