/* src/styles.css */
:root,
html[data-theme=light] {
  --brand-cyan: #36bdd1;
  --brand-teal: #55c9bd;
  --brand-mint: #7dde9e;
  --brand-gradient:
    linear-gradient(
      135deg,
      var(--brand-cyan),
      var(--brand-mint));
  --brand-gradient-soft:
    linear-gradient(
      135deg,
      rgba(54, 189, 209, 0.16),
      rgba(125, 222, 158, 0.28));
  --brand-logo-bg: rgba(255, 255, 255, 0.92);
  --brand-shadow: rgba(54, 189, 209, 0.18);
  --badge-bg: #ef4444;
  --badge-ink: #ffffff;
  --code-bg: #061716;
  --code-ink: #ccfbf1;
  --doc-code-bg: #f8fafc;
  --doc-code-ink: #172033;
  --on-brand: #ffffff;
  --overlay-bg: rgba(3, 18, 16, 0.55);
  --status-idle: #f4c152;
  --status-live: var(--brand-teal);
  --accent: var(--brand-cyan);
  --accent-2: var(--brand-teal);
  --accent-3: var(--brand-mint);
  --accent-faint: rgba(54, 189, 209, 0.13);
  --accent-ring: rgba(54, 189, 209, 0.28);
  --app-bg:
    linear-gradient(
      135deg,
      rgba(54, 189, 209, 0.14) 0%,
      rgba(239, 253, 251, 0.66) 10%,
      #ffffff 20%,
      #ffffff 100%);
  --bg: #f2fbfb;
  --border: rgba(30, 41, 59, 0.14);
  --card: #ffffff;
  --card-ink: #172033;
  --chrome-title: #1f2937;
  --control-bg: #ffffff;
  --control-ink: #172033;
  --hero-bg:
    linear-gradient(
      145deg,
      var(--brand-cyan) 0%,
      var(--brand-teal) 52%,
      var(--brand-mint) 100%);
  --hero-ink: #f8fbff;
  --hero-muted: #d9f2ff;
  --ink: #172033;
  --input-bg: #ffffff;
  --input-ink: #172033;
  --muted: #68758b;
  --menu-bg:
    linear-gradient(
      135deg,
      rgba(54, 189, 209, 0.14) 0%,
      rgba(239, 253, 251, 0.66) 10%,
      #ffffff 20%,
      #ffffff 100%);
  --model-card-bg: #f4f7fb;
  --model-card-ink: #172033;
  --model-card-muted: #68758b;
  --nav-bg: var(--menu-bg);
  --nav-border: #dbeff0;
  --nav-group: #9aa6b8;
  --filter-group: #aab4c4;
  --nav-item: #273247;
  --nav-item-active-bg: #e3f8f6;
  --nav-utility-bg: transparent;
  --nav-utility-ink: #273247;
  --panel: #ffffff;
  --panel-bg: #ffffff;
  --panel-border: #d8ecee;
  --page-ink: #172033;
  --soft-accent: #e3f8f6;
  --soft-accent-2: #f0fbf7;
  --surface: #ffffff;
  --surface-muted: #f7f9fc;
  --table-bg: #ffffff;
  --tag-bg: rgba(255, 255, 255, 0.68);
  --tag-border: rgba(54, 189, 209, 0.34);
  --tag-ink: #4f6474;
  --tag-strong-bg: rgba(255, 255, 255, 0.86);
  --tag-strong-ink: #233247;
  --warning: #fff7d6;
  --warning-ink: #3c2d0a;
  --home-carousel-bg-start: rgba(246, 251, 255, 0.98);
  --home-carousel-bg-end: rgba(232, 247, 255, 0.96);
  --home-carousel-bg:
    linear-gradient(
      135deg,
      rgba(246, 251, 255, 0.98),
      rgba(232, 247, 255, 0.96));
  --home-carousel-panel: rgba(255, 255, 255, 0.88);
  --home-carousel-panel-strong: rgba(255, 255, 255, 0.96);
  --home-carousel-border: rgba(148, 163, 184, 0.22);
  --home-carousel-ink: #172033;
  --home-carousel-muted: #5f6d82;
  --home-carousel-grid: rgba(15, 23, 42, 0.05);
  --home-carousel-shadow: rgba(15, 23, 42, 0.08);
}
html[data-theme=dark] {
  --brand-cyan: #43cbd7;
  --brand-teal: #68d7c1;
  --brand-mint: #a2edba;
  --brand-gradient:
    linear-gradient(
      135deg,
      var(--brand-cyan),
      var(--brand-mint));
  --brand-gradient-soft:
    linear-gradient(
      135deg,
      rgba(67, 203, 215, 0.2),
      rgba(162, 237, 186, 0.2));
  --brand-logo-bg: rgba(235, 255, 250, 0.94);
  --brand-shadow: rgba(67, 203, 215, 0.22);
  --badge-bg: #ef4444;
  --badge-ink: #ffffff;
  --code-bg: #031210;
  --code-ink: #ccfbf1;
  --doc-code-bg: #031210;
  --doc-code-ink: #ccfbf1;
  --on-brand: #ffffff;
  --overlay-bg: rgba(0, 8, 7, 0.68);
  --status-idle: #f4c152;
  --status-live: var(--brand-teal);
  --accent: var(--brand-cyan);
  --accent-2: var(--brand-teal);
  --accent-3: var(--brand-mint);
  --accent-faint: rgba(67, 203, 215, 0.2);
  --accent-ring: rgba(67, 203, 215, 0.3);
  --app-bg: #061716;
  --bg: #061716;
  --border: rgba(148, 163, 184, 0.24);
  --card: #0d211f;
  --card-ink: #eaf2ff;
  --chrome-title: #eaf2ff;
  --control-bg: #0d211f;
  --control-ink: #eaf2ff;
  --hero-bg:
    linear-gradient(
      145deg,
      #0a6e7c 0%,
      #0b4d45 54%,
      #1f7e54 100%);
  --hero-ink: #f8fbff;
  --hero-muted: #b9e6ff;
  --ink: #eaf2ff;
  --input-bg: #0d211f;
  --input-ink: #eaf2ff;
  --muted: #9aa9bc;
  --menu-bg:
    linear-gradient(
      180deg,
      #071f1d 0%,
      #0a1d1b 48%,
      #071614 100%);
  --model-card-bg:
    linear-gradient(
      145deg,
      rgba(17, 42, 39, 0.98),
      rgba(9, 30, 28, 0.98));
  --model-card-ink: #eaf2ff;
  --model-card-muted: #a7b4c6;
  --nav-bg: var(--menu-bg);
  --nav-border: #183c38;
  --nav-group: #c3ccd8;
  --filter-group: #c3ccd8;
  --nav-item: #b8c4d6;
  --nav-item-active-bg: rgba(67, 203, 215, 0.18);
  --nav-utility-bg: transparent;
  --nav-utility-ink: #eaf2ff;
  --panel: #0a1d1b;
  --panel-bg: #0a1d1b;
  --panel-border: #183c38;
  --page-ink: #eaf2ff;
  --soft-accent: rgba(67, 203, 215, 0.18);
  --soft-accent-2: #102b24;
  --surface: #0d211f;
  --surface-muted: #0a1d1b;
  --table-bg: #0d211f;
  --tag-bg: rgba(255, 255, 255, 0.08);
  --tag-border: rgba(104, 215, 193, 0.3);
  --tag-ink: #c5d2df;
  --tag-strong-bg: rgba(255, 255, 255, 0.1);
  --tag-strong-ink: #e2ebf4;
  --warning: #342b12;
  --warning-ink: #ffeab0;
  --home-carousel-bg-start: rgba(9, 30, 36, 0.98);
  --home-carousel-bg-end: rgba(6, 24, 24, 0.98);
  --home-carousel-bg:
    linear-gradient(
      135deg,
      rgba(9, 30, 36, 0.98),
      rgba(6, 24, 24, 0.98));
  --home-carousel-panel: rgba(11, 27, 33, 0.88);
  --home-carousel-panel-strong: rgba(14, 31, 38, 0.96);
  --home-carousel-border: rgba(180, 221, 233, 0.16);
  --home-carousel-ink: #f4fbff;
  --home-carousel-muted: #b3c5d3;
  --home-carousel-grid: rgba(255, 255, 255, 0.055);
  --home-carousel-shadow: rgba(0, 0, 0, 0.3);
}
* {
  box-sizing: border-box;
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
html,
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  font-weight: 400;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 0;
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent-ring);
  outline-offset: 2px;
}
input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: 0;
}
.shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--app-bg);
  transition: grid-template-columns 180ms ease;
}
.shell.sidebar-collapsed {
  grid-template-columns: 64px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid var(--nav-border);
  background: var(--nav-bg);
  overflow: hidden;
  transition: opacity 160ms ease, visibility 160ms ease;
}
.shell.sidebar-collapsed .sidebar {
  border-right: 1px solid var(--nav-border);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-size: 18px;
  font-weight: 700;
  padding: 0 16px;
  text-align: left;
}
.brand-logo {
  display: inline-grid;
  width: 34px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-logo-bg);
  color: var(--accent);
  font-size: 11px;
}
.shell.sidebar-collapsed .brand {
  justify-content: center;
  padding: 0;
}
.shell.sidebar-collapsed .brand strong {
  display: none;
}
.shell.sidebar-collapsed .brand-logo {
  width: 34px;
  height: 24px;
}
.nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
}
.shell.sidebar-collapsed .nav {
  padding: 16px 8px;
}
.nav-group + .nav-group {
  margin-top: 22px;
}
.shell.sidebar-collapsed .nav-group + .nav-group {
  margin-top: 10px;
}
.nav-group p {
  margin: 0 0 8px;
  color: var(--nav-group);
  font-size: 12px;
}
.shell.sidebar-collapsed .nav-group p {
  display: none;
}
.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  background: transparent;
  color: var(--nav-item);
  font-size: 14px;
  font-weight: 400;
  padding: 0 12px;
  text-align: left;
}
.shell.sidebar-collapsed .nav-item {
  justify-content: center;
  width: 48px;
  min-height: 42px;
  margin: 0 auto 8px;
  padding: 0;
}
.nav-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}
.shell.sidebar-collapsed .nav-label {
  justify-content: center;
  gap: 0;
}
.nav-label span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shell.sidebar-collapsed .nav-label span:last-child {
  display: none;
}
.nav-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 5px;
  background: transparent;
  color: currentColor;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.shell.sidebar-collapsed .nav-icon {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-radius: 7px;
  background: transparent;
  color: var(--nav-item);
  font-size: 13px;
}
.nav-item:hover,
.nav-item.active {
  background: var(--nav-item-active-bg);
  color: var(--nav-item);
}
.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  background: transparent;
  color: currentColor;
}
.shell.sidebar-collapsed .nav-item:hover .nav-icon,
.shell.sidebar-collapsed .nav-item.active .nav-icon {
  background: transparent;
  color: var(--nav-item);
}
.nav-item i {
  color: var(--muted);
  font-style: normal;
}
.shell.sidebar-collapsed .nav-item i {
  display: none;
}
.utility-nav {
  border-top: 1px solid var(--nav-border);
  background: var(--nav-utility-bg);
  color: var(--nav-utility-ink);
  padding: 10px 16px 16px;
}
.shell.sidebar-collapsed .utility-nav {
  padding: 10px 8px 14px;
}
.utility-nav .nav-item {
  color: var(--nav-utility-ink);
}
.utility-nav .nav-item:hover,
.utility-nav .nav-item.active {
  background: var(--nav-item-active-bg);
  color: var(--nav-utility-ink);
}
.utility-nav small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.shell.sidebar-collapsed .utility-nav small {
  display: none;
}
.workspace {
  min-width: 0;
  overflow: hidden;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 14px;
}
.title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.title-line h1 {
  margin: 0;
  color: var(--chrome-title);
  font-size: 16px;
  font-weight: 500;
}
.menu-button {
  background: transparent;
  color: var(--chrome-title);
  font-size: 18px;
  line-height: 1;
  padding: 4px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.referral-promo {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 1 460px;
  width: clamp(280px, 28vw, 460px);
  max-width: 460px;
  min-width: 260px;
  min-height: 24px;
  padding: 0 14px 0 44px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--brand-cyan) 0%,
      var(--brand-teal) 48%,
      var(--brand-mint) 100%);
  box-shadow: 0 3px 9px rgba(54, 189, 209, 0.28), 0 2px 7px rgba(125, 222, 158, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.referral-promo span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[data-theme=dark] .referral-promo {
  background:
    linear-gradient(
      90deg,
      var(--brand-cyan) 0%,
      var(--brand-teal) 50%,
      var(--brand-mint) 100%);
  box-shadow: 0 3px 9px rgba(67, 203, 215, 0.24), 0 2px 7px rgba(162, 237, 186, 0.2);
}
.referral-shield {
  position: absolute;
  left: 12px;
  top: 50%;
  display: grid;
  width: 28px;
  height: 31px;
  place-items: center;
  transform: translateY(-52%);
  clip-path: polygon(50% 0, 88% 14%, 88% 55%, 50% 100%, 12% 55%, 12% 14%);
  background:
    linear-gradient(
      160deg,
      #efffff 0%,
      #d7fbf4 58%,
      #bcf4cc 100%);
  color: var(--accent);
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-idle);
}
.status-dot.live {
  background: var(--status-live);
}
.lang-switch,
.theme-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 2px;
}
.lang-switch button,
.theme-switch button {
  min-width: 42px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 4px 7px;
  font-size: 12px;
  line-height: 1.15;
  white-space: nowrap;
}
.lang-switch button.active,
.theme-switch button.active {
  background: var(--brand-gradient);
  color: var(--on-brand);
}
.avatar {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  padding: 0;
}
.avatar:hover {
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.avatar.has-image {
  background: transparent;
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}
.topbar-profile {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}
.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 50;
  width: min(286px, calc(100vw - 24px));
  max-height: calc(100vh - 88px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.985);
  transform-origin: top right;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.account-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.account-menu-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.account-menu-avatar {
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      rgba(54, 189, 209, 0.18),
      rgba(125, 222, 158, 0.16));
  color: var(--page-ink);
  place-items: center;
}
.account-menu-avatar.has-image {
  background: transparent;
}
.account-menu-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-menu-avatar span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}
.account-menu-profile-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.account-menu-profile-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.account-menu-profile-row strong {
  color: var(--page-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.account-menu-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.account-menu-badge-verified {
  background: rgba(139, 92, 246, 0.14);
  color: #7c3aed;
}
.account-menu-badge-contact {
  max-width: 100%;
  width: fit-content;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  text-overflow: ellipsis;
}
.account-menu-id {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.account-menu-id code {
  min-width: 0;
  overflow: hidden;
  color: var(--page-ink);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu-items {
  display: grid;
}
.account-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--page-ink);
  padding: 14px 4px 14px 0;
  text-align: left;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.account-menu-item:first-child {
  border-top: 0;
}
.account-menu-item:hover,
.account-menu-item:focus-visible {
  background: rgba(54, 189, 209, 0.06);
  color: var(--page-ink);
  outline: none;
}
.account-menu-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.account-menu-item-icon {
  display: grid;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--page-ink);
}
.account-menu-item-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-menu-item-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
.account-menu-item.danger {
  color: #ef4444;
}
.account-menu-item.danger .account-menu-item-icon {
  color: #ef4444;
}
html[data-theme=dark] .account-menu {
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.98),
      rgba(17, 24, 39, 0.98));
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.4);
}
html[data-theme=dark] .account-menu-profile {
  border-color: rgba(148, 163, 184, 0.14);
}
html[data-theme=dark] .account-menu-avatar {
  background:
    linear-gradient(
      135deg,
      rgba(54, 189, 209, 0.16),
      rgba(125, 222, 158, 0.14));
}
html[data-theme=dark] .account-menu-badge-verified {
  background: rgba(139, 92, 246, 0.18);
  color: #ddd6fe;
}
html[data-theme=dark] .account-menu-badge-contact {
  background: rgba(148, 163, 184, 0.14);
  color: var(--muted);
}
html[data-theme=dark] .account-menu-id {
  color: var(--muted);
}
html[data-theme=dark] .account-menu-id code {
  color: var(--page-ink);
}
html[data-theme=dark] .account-menu-item {
  border-color: rgba(148, 163, 184, 0.12);
}
html[data-theme=dark] .account-menu-item:hover,
html[data-theme=dark] .account-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}
.profile-page {
  min-height: 100vh;
  padding: 48px 20px 64px;
  background: #ffffff;
  color: var(--page-ink);
}
.profile-back {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 20;
  background: transparent;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 8px;
}
.profile-back:hover,
.profile-back:focus-visible {
  color: var(--accent-2);
  outline: none;
}
.profile-hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 8px auto 22px;
  text-align: center;
}
.profile-hero-avatar {
  display: block;
  width: 72px;
  height: 72px;
  border: 3px solid rgba(54, 189, 209, 0.2);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(54, 189, 209, 0.2);
}
.profile-hero h1 {
  margin: 4px 0 0;
  color: var(--page-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}
.profile-hero p {
  margin: 0;
  color: #8a98ab;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.profile-card {
  position: relative;
  display: grid;
  width: min(760px, calc(100vw - 40px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(54, 189, 209, 0.2);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(54, 189, 209, 0.12);
  padding: 26px 42px;
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--brand-gradient);
}
.profile-loading,
.profile-notice {
  border-radius: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.profile-loading {
  background: rgba(54, 189, 209, 0.08);
  color: var(--muted);
}
.profile-notice[data-status=info] {
  background: rgba(54, 189, 209, 0.1);
  color: #11869a;
}
.profile-notice[data-status=success] {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}
.profile-notice[data-status=error] {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}
.profile-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) max-content;
  gap: 18px;
  align-items: center;
  min-height: 74px;
  border-bottom: 1px solid var(--border);
  padding: 19px 0;
}
.profile-row:last-child {
  border-bottom: 0;
}
.profile-row-label {
  color: #93a0b3;
  font-size: 14px;
  font-weight: 600;
}
.profile-row-content {
  min-width: 0;
}
.profile-row-action {
  display: inline-flex;
  justify-content: flex-end;
}
.profile-value {
  color: var(--page-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.profile-link {
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
}
.profile-link:hover,
.profile-link:focus-visible {
  color: var(--accent-2);
  outline: none;
}
.profile-link:disabled {
  cursor: not-allowed;
  color: var(--muted);
}
.profile-link-danger {
  color: #ef4444;
}
.profile-id-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.profile-id-line code {
  color: var(--page-ink);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.profile-copy-button {
  display: inline-grid;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 7px;
  background: transparent;
  color: #94a3b8;
  place-items: center;
}
.profile-copy-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-copy-button:hover,
.profile-copy-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.profile-row-avatar {
  display: block;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-avatar-row p,
.profile-danger-copy p {
  margin: 4px 0 0;
  color: #8a98ab;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.profile-avatar-picker,
.profile-email-form,
.profile-cancellation-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.profile-avatar-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(54, 189, 209, 0.18);
  border-radius: 8px;
  background: rgba(54, 189, 209, 0.06);
  padding: 10px 12px;
}
.profile-avatar-preview img {
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-avatar-preview span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-avatar-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.profile-avatar-option {
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  padding: 0;
}
.profile-avatar-option img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-option:hover,
.profile-avatar-option:focus-visible,
.profile-avatar-option.active {
  border-color: var(--accent);
  outline: none;
}
.profile-avatar-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.profile-avatar-upload input[type=file] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.profile-avatar-upload span {
  min-width: 0;
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(54, 189, 209, 0.36);
  border-radius: 8px;
  background: rgba(54, 189, 209, 0.08);
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 0 16px;
  transition:
    border-color 0.16s ease,
    background-color 0.16s ease,
    color 0.16s ease;
}
.profile-upload-button:hover {
  border-color: var(--accent);
  background: rgba(54, 189, 209, 0.14);
}
.profile-inline-form,
.profile-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.profile-inline-form input,
.profile-code-row input {
  width: min(280px, 100%);
  min-height: 38px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--input-ink);
  font-size: 14px;
  font-weight: 500;
  padding: 0 12px;
  outline: none;
}
.profile-inline-form input:focus,
.profile-code-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.profile-inline-form button,
.profile-code-row button,
.profile-danger-submit,
.profile-avatar-upload button {
  min-height: 38px;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-size: 13px;
  font-weight: 700;
  padding: 0 16px;
}
.profile-inline-form button:disabled,
.profile-code-row button:disabled,
.profile-danger-submit:disabled,
.profile-avatar-upload button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
.profile-secondary-action {
  border: 1px solid var(--panel-border) !important;
  background: var(--surface-muted) !important;
  color: var(--muted) !important;
}
.profile-danger-submit {
  background: #ef4444;
}
.profile-danger-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.profile-danger-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}
.profile-logout {
  display: block;
  margin: 24px auto 0;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.profile-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.42);
}
.profile-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 61;
  display: grid;
  gap: 14px;
  width: min(460px, calc(100vw - 40px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--page-ink);
  box-shadow: 0 28px 76px rgba(15, 23, 42, 0.22);
  padding: 26px;
  transform: translate(-50%, -50%);
}
.profile-cancellation-dialog {
  width: min(520px, calc(100vw - 40px));
}
.profile-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}
.profile-dialog h2 {
  margin: 0;
  color: var(--page-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.profile-dialog p,
.profile-dialog-message {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
.profile-wechat-frame {
  display: grid;
  min-height: 242px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--muted);
  place-items: center;
  padding: 20px;
  text-align: center;
}
.profile-wechat-frame img {
  display: block;
  width: 220px;
  height: 220px;
  object-fit: contain;
}
html[data-theme=dark] .profile-page {
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(67, 203, 215, 0.18),
      transparent 36%),
    linear-gradient(
      180deg,
      rgba(67, 203, 215, 0.1),
      rgba(125, 222, 158, 0.05) 34%,
      #061716 100%);
}
html[data-theme=dark] .profile-card,
html[data-theme=dark] .profile-dialog {
  background:
    linear-gradient(
      180deg,
      rgba(11, 29, 27, 0.98),
      rgba(8, 23, 21, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}
html[data-theme=dark] .profile-card {
  border-color: rgba(67, 203, 215, 0.22);
}
html[data-theme=dark] .profile-hero-avatar {
  border-color: rgba(67, 203, 215, 0.28);
  box-shadow: 0 16px 34px rgba(67, 203, 215, 0.16);
}
html[data-theme=dark] .profile-hero p,
html[data-theme=dark] .profile-avatar-row p,
html[data-theme=dark] .profile-danger-copy p {
  color: var(--muted);
}
html[data-theme=dark] .profile-row {
  border-color: rgba(148, 163, 184, 0.16);
}
html[data-theme=dark] .profile-row-label {
  color: var(--muted);
}
html[data-theme=dark] .profile-notice[data-status=info] {
  color: #67e8f9;
}
html[data-theme=dark] .profile-notice[data-status=success] {
  color: #86efac;
}
html[data-theme=dark] .profile-notice[data-status=error] {
  color: #fca5a5;
}
html[data-theme=dark] .profile-secondary-action {
  background: rgba(148, 163, 184, 0.1) !important;
}
html[data-theme=dark] .profile-avatar-preview {
  border-color: rgba(67, 203, 215, 0.18);
  background: rgba(67, 203, 215, 0.08);
}
html[data-theme=dark] .profile-upload-button {
  border-color: rgba(67, 203, 215, 0.28);
  background: rgba(67, 203, 215, 0.1);
}
html[data-theme=dark] .profile-wechat-frame {
  background: rgba(148, 163, 184, 0.08);
}
@media (max-width: 720px) {
  .profile-page {
    padding: 52px 16px 48px;
  }
  .profile-card {
    width: 100%;
    padding: 22px 20px;
  }
  .profile-row {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }
  .profile-row-action {
    justify-content: flex-start;
  }
  .profile-inline-form,
  .profile-code-row,
  .profile-avatar-upload {
    align-items: stretch;
    flex-direction: column;
  }
  .profile-inline-form input,
  .profile-code-row input,
  .profile-inline-form button,
  .profile-code-row button,
  .profile-avatar-upload button,
  .profile-upload-button {
    width: 100%;
  }
  .profile-avatar-upload span,
  .profile-avatar-preview span {
    max-width: 100%;
  }
}
.home-page {
  --home-header-overlap: 76px;
  min-height: 100vh;
  overflow-x: clip;
  background:
    linear-gradient(
      180deg,
      rgba(54, 189, 209, 0.12),
      rgba(255, 255, 255, 0) 34%),
    var(--bg);
  color: var(--page-ink);
}
.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  align-items: center;
  gap: clamp(22px, 2.8vw, 48px);
  width: 100%;
  height: 76px;
  margin: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.16) 72%,
      rgba(255, 255, 255, 0.06) 100%);
  padding: 0 clamp(20px, 3vw, 56px);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}
.home-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  padding: 0;
}
.home-brand img {
  display: block;
  width: 40px;
  height: 40px;
}
.home-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(18px, 1.8vw, 32px);
  margin-left: 12px;
  min-width: 0;
}
.home-nav a,
.home-nav button {
  background: transparent;
  color: rgba(17, 24, 39, 0.68);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.home-nav a:hover,
.home-nav button:hover {
  color: var(--accent);
}
.home-login {
  min-width: 78px;
  border: 1px solid var(--accent-ring);
  border-radius: 8px;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  padding: 9px 18px;
  box-shadow: 0 12px 26px var(--brand-shadow);
}
.home-actions {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
}
.home-icon-toggle,
.home-lang-toggle {
  border: 1px solid rgba(54, 189, 209, 0.2);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
}
.home-icon-toggle {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
}
.home-icon-toggle:hover {
  color: var(--accent);
}
.home-icon-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.home-lang-toggle {
  display: inline-flex;
  gap: 2px;
  border-radius: 10px;
  padding: 3px;
}
.home-lang-toggle button {
  min-width: 34px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 8px 9px;
}
.home-lang-toggle button.active {
  background: var(--brand-gradient);
  color: var(--on-brand);
}
.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0;
  width: 100%;
  min-height: auto;
  margin: 0;
  padding: 0;
}
.home-carousel {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: calc(var(--home-header-overlap) * -1);
  height: calc(100vh + var(--home-header-overlap));
  height: calc(100dvh + var(--home-header-overlap));
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(
      180deg,
      rgba(248, 251, 255, 0.98),
      rgba(241, 247, 253, 0.96)),
    var(--bg);
  cursor: grab;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  user-select: none;
}
.home-carousel:active {
  cursor: grabbing;
}
.home-carousel-track {
  display: flex;
  width: 300vw;
  height: 100%;
  will-change: transform;
}
.home-carousel-slide {
  flex: 0 0 100vw;
  min-width: 100vw;
  height: 100%;
}
.home-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: calc(24px + var(--home-header-overlap));
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}
.home-carousel-dot {
  display: block;
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(71, 85, 105, 0.24);
  padding: 0;
  transition: background 180ms ease, width 180ms ease;
}
.home-carousel-dot.active {
  width: 56px;
  background: #69d7c1;
}
.home-carousel-dot:hover,
.home-carousel-dot:focus-visible {
  background: rgba(54, 189, 209, 0.68);
}
.home-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}
.home-badge {
  width: fit-content;
  border: 1px solid var(--accent-ring);
  border-radius: 999px;
  background: var(--accent-faint);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  padding: 8px 14px;
}
.home-hero-copy h1 {
  max-width: 650px;
  margin: 0;
  color: var(--page-ink);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
}
.home-hero-copy p {
  margin: 10px 0 0;
  color: var(--page-ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
}
.home-hero-copy span:not(.home-badge) {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}
.home-hero-copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.home-primary,
.home-secondary {
  min-width: 118px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  padding: 13px 22px;
}
.home-primary {
  background: var(--brand-gradient);
  color: var(--on-brand);
  box-shadow: 0 14px 28px var(--brand-shadow);
}
.home-secondary {
  border: 1px solid var(--panel-border);
  background: var(--surface);
  color: var(--page-ink);
}
.home-hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: var(--home-carousel-bg);
  overflow: hidden;
  box-shadow: none;
}
.home-hero-visual.deepseek {
  background:
    linear-gradient(
      135deg,
      rgba(249, 252, 255, 0.98),
      rgba(235, 245, 255, 0.98)),
    #f7fbff;
}
.home-hero-visual.multimodal {
  background:
    linear-gradient(
      135deg,
      rgba(252, 248, 255, 0.98),
      rgba(238, 243, 255, 0.98)),
    #fbf7ff;
}
.home-hero-visual.enterprise {
  background:
    linear-gradient(
      135deg,
      rgba(248, 255, 251, 0.98),
      rgba(235, 248, 241, 0.98)),
    #f7fffb;
}
.home-hero-visual.library {
  background:
    linear-gradient(
      135deg,
      rgba(253, 251, 246, 0.98),
      rgba(236, 244, 255, 0.98)),
    #fffdf8;
}
.home-hero-visual.partner {
  background:
    linear-gradient(
      135deg,
      rgba(248, 252, 255, 0.98),
      rgba(240, 255, 248, 0.98)),
    #f7fbff;
}
.home-hero-visual::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--home-carousel-grid) 1px, transparent 1px),
    linear-gradient(
      90deg,
      var(--home-carousel-grid) 1px,
      transparent 1px);
  background-size: 48px 48px;
  background-position: 0 1px, 0 0;
  content: "";
  opacity: 0.12;
}
.home-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  z-index: 0;
}
.home-orbit {
  position: absolute;
  inset: clamp(32px, 5vw, 54px) clamp(32px, 5vw, 54px) auto auto;
  display: grid;
  gap: 12px;
}
.home-orbit span {
  display: block;
  width: 116px;
  height: 8px;
  border-radius: 999px;
  background: rgba(105, 215, 193, 0.28);
  transform: rotate(-20deg);
}
.home-orbit span:nth-child(2) {
  width: 168px;
  background: rgba(124, 92, 255, 0.24);
}
.home-orbit span:nth-child(3) {
  width: 84px;
  background: rgba(54, 189, 209, 0.2);
}
.home-banner-card,
.home-console {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}
.home-banner-card {
  left: max(24px, calc((100vw - 1180px) / 2 + 56px));
  top: clamp(72px, 10vh, 120px);
  display: grid;
  gap: 22px;
  width: min(760px, calc(100vw - 48px));
  padding: 26px;
}
.home-carousel-slide:nth-child(even) .home-banner-card,
.home-carousel-slide:nth-child(even) .home-console {
  right: max(24px, calc((100vw - 1180px) / 2 + 56px));
  left: auto;
}
.home-promo-pill {
  width: fit-content;
  border-radius: 10px;
  background:
    linear-gradient(
      90deg,
      #7c5cff,
      #69d7c1);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  padding: 13px 18px;
}
.home-banner-card strong {
  display: block;
  color: var(--page-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.home-banner-card span,
.home-console p,
.home-console code {
  color: #52607a;
  font-size: 13px;
  line-height: 1.6;
}
.home-console {
  left: max(24px, calc((100vw - 1180px) / 2 + 104px));
  bottom: clamp(48px, 8vh, 92px);
  width: min(680px, calc(100vw - 48px));
  padding: 18px 20px;
}
.home-console p {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 600;
}
.home-console code {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0;
}
.home-section-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 32px;
}
.home-section-head h2,
.home-final h2 {
  margin: 0;
  color: var(--page-ink);
  font-size: 32px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
}
.home-section-head p,
.home-final p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
}
.home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.home-product-card,
.home-metric-card,
.home-scenario-card {
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}
.home-product-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 260px;
  padding: 24px;
}
.home-product-card i {
  color: var(--accent);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}
.home-product-card h3,
.home-scenario-card h3 {
  margin: 0;
  color: var(--page-ink);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.35;
}
.home-product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
}
.home-product-card button {
  width: fit-content;
  margin-top: auto;
  border: 1px solid var(--accent-ring);
  border-radius: 8px;
  background: var(--accent-faint);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.1;
  padding: 9px 14px;
}
#home-products {
  width: min(1220px, calc(100% - 200px));
  padding: 120px 0 48px;
}
#home-scenarios {
  width: min(1240px, calc(100% - 24px));
}
#home-scenarios .home-section-head {
  justify-items: center;
  max-width: none;
  margin: 0 auto 58px;
  text-align: center;
}
#home-scenarios .home-section-head h2 {
  max-width: 1120px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.16;
}
#home-scenarios .home-section-head p {
  max-width: 980px;
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.7;
}
#home-products .home-section-head {
  justify-items: center;
  max-width: none;
  margin-bottom: 52px;
  text-align: center;
}
#home-products .home-section-head h2 {
  max-width: 1040px;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 600;
  line-height: 1.18;
}
#home-products .home-section-head p {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 400;
  line-height: 1.55;
}
#home-products .home-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 26px;
  padding-top: 10px;
}
#home-products .home-product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: stretch;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 304px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #f0efff;
  box-shadow: none;
  padding: clamp(32px, 2.8vw, 48px) clamp(32px, 2.8vw, 46px) clamp(28px, 2.4vw, 42px);
}
#home-products .home-product-card::after {
  position: absolute;
  right: -116px;
  bottom: -138px;
  width: 292px;
  height: 214px;
  border: 2px solid rgba(137, 111, 255, 0.22);
  border-radius: 18px;
  animation: product-card-graphic-float 7s ease-in-out infinite alternate;
  content: "";
  transform: translate3d(0, -7px, 0) rotate(var(--product-card-icon-rotate, 1deg));
  transform-origin: center;
  will-change: transform;
}
#home-products .home-product-card:nth-child(odd)::after {
  --product-card-icon-rotate: 45deg;
  border-color: rgba(137, 111, 255, 0.42);
}
#home-products .home-product-card:nth-child(2)::after {
  animation-delay: -1.4s;
}
#home-products .home-product-card:nth-child(3)::after {
  animation-delay: -2.8s;
}
#home-products .home-product-card:nth-child(4)::after {
  animation-delay: -4.2s;
}
#home-products .home-product-card:nth-child(1),
#home-products .home-product-card:nth-child(4) {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.05),
      transparent 42%),
    #343548;
  color: #ffffff;
}
#home-products .home-product-card i {
  display: none;
}
#home-products .home-product-card h3 {
  position: relative;
  z-index: 1;
  grid-row: 1;
  max-width: 520px;
  color: #172033;
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 600;
  line-height: 1.28;
}
#home-products .home-product-card:nth-child(1) h3,
#home-products .home-product-card:nth-child(4) h3 {
  color: #ffffff;
}
#home-products .home-product-card p {
  position: relative;
  z-index: 1;
  grid-row: 2;
  max-width: 560px;
  color: #172033;
  font-size: clamp(12px, 0.86vw, 15px);
  font-weight: 400;
  line-height: 1.58;
}
#home-products .home-product-card:nth-child(1) p,
#home-products .home-product-card:nth-child(4) p {
  color: rgba(255, 255, 255, 0.9);
}
#home-products .home-product-card button {
  position: relative;
  z-index: 1;
  grid-row: 4;
  align-self: end;
  justify-self: start;
  margin-top: 0;
  min-width: 112px;
  min-height: 42px;
  border: 1px solid rgba(23, 32, 51, 0.12);
  border-radius: 0;
  background: #202435;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 0 16px;
  box-shadow: 0 14px 28px rgba(16, 23, 36, 0.14);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
#home-products .home-product-card:nth-child(1) button,
#home-products .home-product-card:nth-child(4) button {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.94);
  color: #172033;
  box-shadow: 0 16px 30px rgba(4, 10, 22, 0.2);
}
#home-products .home-product-card button:hover {
  border-color: rgba(54, 189, 209, 0.45);
  color: var(--brand-cyan);
  transform: translateY(-1px);
}
html[data-theme=dark] #home-products .home-product-card {
  border: 1px solid rgba(104, 215, 193, 0.18);
  background:
    linear-gradient(
      145deg,
      rgba(20, 43, 41, 0.98),
      rgba(10, 29, 27, 0.98));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  color: var(--page-ink);
}
html[data-theme=dark] #home-products .home-product-card:nth-child(1),
html[data-theme=dark] #home-products .home-product-card:nth-child(4) {
  border-color: rgba(104, 215, 193, 0.16);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.04),
      transparent 42%),
    linear-gradient(
      145deg,
      rgba(39, 45, 66, 0.98),
      rgba(24, 31, 48, 0.98));
}
html[data-theme=dark] #home-products .home-product-card h3 {
  color: #eef8ff;
}
html[data-theme=dark] #home-products .home-product-card p {
  color: #b8c7d8;
}
html[data-theme=dark] #home-products .home-product-card::after {
  border-color: rgba(104, 215, 193, 0.22);
}
html[data-theme=dark] #home-products .home-product-card:nth-child(odd)::after {
  border-color: rgba(112, 100, 255, 0.32);
}
html[data-theme=dark] #home-products .home-product-card button {
  border-color: rgba(230, 255, 250, 0.2);
  background: rgba(237, 252, 249, 0.92);
  color: #0e1728;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}
.home-stats {
  width: min(1280px, calc(100% - 224px));
  padding: 84px 0 72px;
  border: 0;
}
.home-stats .home-section-head {
  justify-items: center;
  max-width: none;
  margin-bottom: 54px;
  text-align: center;
}
.home-stats .home-section-head h2 {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 540;
  line-height: 1.18;
}
.home-stats .home-section-head p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 400;
  line-height: 1.7;
}
.home-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.home-metric-card {
  position: relative;
  display: grid;
  min-height: 330px;
  align-content: center;
  gap: 22px;
  overflow: hidden;
  border-color: rgba(203, 213, 225, 0.86);
  border-radius: 8px;
  background: #fbfbff;
  box-shadow: none;
  padding: 56px 70px;
}
.home-metric-card:nth-child(2) {
  background: #f3f2ff;
  border-color: #d8d5f4;
}
.home-metric-card:nth-child(3) {
  background: #f8fbff;
  border-color: #d5e7f3;
}
.home-metric-card:nth-child(4) {
  background: #f4fbfa;
  border-color: #cce9e9;
}
.home-metric-card.featured {
  border-color: #1d2030;
  background: #1b1e2c;
  color: #ffffff;
}
.home-metric-card h3,
.home-metric-card strong,
.home-metric-card span {
  position: relative;
  z-index: 1;
}
.home-metric-card h3 {
  margin: 0;
  color: var(--page-ink);
  font-size: clamp(22px, 1.85vw, 28px);
  font-weight: 520;
  line-height: 1.28;
}
.home-metric-card strong {
  color: var(--accent);
  font-size: clamp(48px, 4.7vw, 68px);
  font-weight: 500;
  line-height: 0.95;
}
.home-metric-card span {
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 22px);
  font-weight: 420;
  line-height: 1.55;
}
.home-metric-card.featured h3,
.home-metric-card.featured strong,
.home-metric-card.featured span {
  color: #ffffff;
}
.home-metric-graphic {
  position: absolute;
  inset: 0;
  animation: metric-graphic-float 6.5s ease-in-out infinite alternate;
  transform: translate3d(0, -6px, 0);
  will-change: transform;
  pointer-events: none;
}
.home-metric-card:nth-child(2) .home-metric-graphic {
  animation-delay: -1.6s;
}
.home-metric-card:nth-child(3) .home-metric-graphic {
  animation-delay: -3.2s;
}
.home-metric-card:nth-child(4) .home-metric-graphic {
  animation-delay: -4.8s;
}
.home-metric-graphic::before,
.home-metric-graphic::after {
  position: absolute;
  content: "";
}
.home-metric-card .home-metric-graphic::before {
  top: -52px;
  right: -34px;
  width: 260px;
  height: 180px;
  border: 4px solid rgba(77, 194, 215, 0.28);
  border-radius: 0 0 0 48px;
}
.home-metric-card:nth-child(2) .home-metric-graphic::before {
  border-color: rgba(120, 111, 240, 0.24);
}
.home-metric-card:nth-child(3) .home-metric-graphic::before {
  top: -38px;
  right: -46px;
  border-color: rgba(70, 184, 218, 0.22);
}
.home-metric-card:nth-child(4) .home-metric-graphic::before {
  border-color: rgba(84, 203, 188, 0.24);
}
.home-metric-card .home-metric-graphic::after {
  top: 74px;
  right: 72px;
  width: 220px;
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(125, 91, 255, 0.78),
      rgba(64, 190, 214, 0.72));
  transform: rotate(132deg);
  transform-origin: right center;
}
.home-metric-card:nth-child(2) .home-metric-graphic::after {
  background:
    linear-gradient(
      90deg,
      rgba(112, 64, 248, 0.6),
      rgba(76, 151, 230, 0.46));
}
.home-metric-card:nth-child(3) .home-metric-graphic::after {
  background:
    linear-gradient(
      90deg,
      rgba(80, 190, 220, 0.58),
      rgba(125, 222, 158, 0.4));
}
.home-metric-card:nth-child(4) .home-metric-graphic::after {
  background:
    linear-gradient(
      90deg,
      rgba(54, 189, 209, 0.55),
      rgba(125, 222, 158, 0.48));
}
.home-metric-card.featured .home-metric-graphic::before {
  top: 0;
  right: -18px;
  width: 390px;
  height: 270px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0 28%,
      rgba(127, 85, 255, 0.66) 28% 30%,
      transparent 30% 100%),
    linear-gradient(
      90deg,
      transparent 0 58%,
      rgba(69, 198, 224, 0.66) 58% 60%,
      transparent 60% 100%),
    repeating-linear-gradient(
      180deg,
      transparent 0 43px,
      rgba(127, 85, 255, 0.44) 43px 47px,
      transparent 47px 86px);
  opacity: 0.9;
}
.home-metric-card.featured .home-metric-graphic::after {
  display: none;
}
html[data-theme=dark] .home-metric-card {
  border-color: rgba(104, 215, 193, 0.18);
  background:
    linear-gradient(
      145deg,
      rgba(17, 42, 39, 0.98),
      rgba(8, 24, 22, 0.98));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}
html[data-theme=dark] .home-metric-card:nth-child(2) {
  border-color: rgba(132, 116, 255, 0.22);
  background:
    linear-gradient(
      145deg,
      rgba(27, 31, 51, 0.98),
      rgba(13, 24, 34, 0.98));
}
html[data-theme=dark] .home-metric-card:nth-child(3) {
  border-color: rgba(67, 203, 215, 0.2);
  background:
    linear-gradient(
      145deg,
      rgba(12, 32, 39, 0.98),
      rgba(8, 22, 27, 0.98));
}
html[data-theme=dark] .home-metric-card:nth-child(4) {
  border-color: rgba(104, 215, 193, 0.22);
  background:
    linear-gradient(
      145deg,
      rgba(13, 38, 34, 0.98),
      rgba(7, 25, 22, 0.98));
}
html[data-theme=dark] .home-metric-card.featured {
  border-color: rgba(132, 116, 255, 0.22);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.04),
      transparent 42%),
    linear-gradient(
      145deg,
      rgba(27, 31, 50, 0.98),
      rgba(18, 24, 39, 0.98));
}
html[data-theme=dark] .home-metric-card h3 {
  color: #eef8ff;
}
html[data-theme=dark] .home-metric-card strong {
  color: var(--brand-cyan);
}
html[data-theme=dark] .home-metric-card span {
  color: #aebed0;
}
html[data-theme=dark] .home-metric-card.featured h3,
html[data-theme=dark] .home-metric-card.featured strong,
html[data-theme=dark] .home-metric-card.featured span {
  color: #eef8ff;
}
html[data-theme=dark] .home-metric-card .home-metric-graphic::before {
  border-color: rgba(104, 215, 193, 0.2);
}
html[data-theme=dark] .home-metric-card:nth-child(2) .home-metric-graphic::before {
  border-color: rgba(132, 116, 255, 0.24);
}
html[data-theme=dark] .home-metric-card:nth-child(2) .home-metric-graphic::after {
  background:
    linear-gradient(
      90deg,
      rgba(132, 116, 255, 0.55),
      rgba(67, 203, 215, 0.42));
}
html[data-theme=dark] .home-metric-card .home-metric-graphic::after {
  opacity: 0.78;
}
.home-scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.home-scenario-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  min-height: 392px;
  border-color: rgba(203, 213, 225, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfbff 100%);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
  padding: 28px 24px 24px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}
html[data-theme=dark] #home-scenarios .home-scenario-card {
  border-color: rgba(104, 215, 193, 0.18);
  background:
    linear-gradient(
      180deg,
      rgba(13, 33, 31, 0.96) 0%,
      rgba(8, 24, 22, 0.98) 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}
.home-scenario-card:hover,
.home-scenario-card:focus-within {
  transform: translateY(-10px);
  border-color: rgba(165, 180, 252, 0.72);
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.12);
}
html[data-theme=dark] #home-scenarios .home-scenario-card:hover,
html[data-theme=dark] #home-scenarios .home-scenario-card:focus-within {
  border-color: rgba(104, 215, 193, 0.32);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.42);
}
.home-scenario-card:hover .home-scenario-icon,
.home-scenario-card:focus-within .home-scenario-icon {
  transform: translateY(-2px) scale(1.02);
}
.home-scenario-card h3 {
  margin: 0;
  color: var(--page-ink);
  font-size: 21px;
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
}
html[data-theme=dark] #home-scenarios .home-scenario-card h3 {
  color: #eef8ff;
}
.home-scenario-card ul {
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.home-scenario-card li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #576579;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.58;
}
html[data-theme=dark] #home-scenarios .home-scenario-card li {
  color: #a8b7ca;
}
.home-scenario-card li + li {
  margin-top: 10px;
}
.home-scenario-card li::before {
  display: block;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      #7c5cff,
      #46d99a);
  content: "";
}
html[data-theme=dark] #home-scenarios .home-scenario-card li::before {
  background:
    linear-gradient(
      135deg,
      #7c5cff,
      #68d7c1);
}
.home-scenario-icon {
  display: block;
  width: 72px;
  height: 72px;
  transition: transform 180ms ease;
}
html[data-theme=dark] #home-scenarios .home-scenario-icon {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}
.home-final {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 80px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--brand-gradient-soft);
  padding: 48px 24px;
  text-align: center;
}
.home-final button {
  margin-top: 4px;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  padding: 13px 24px;
}
.home-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  overflow-x: auto;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 24px 0 36px;
  text-align: center;
  white-space: nowrap;
}
html[data-theme=dark] .home-header {
  border-bottom: 1px solid rgba(104, 215, 193, 0.12);
  background:
    linear-gradient(
      180deg,
      rgba(8, 28, 27, 0.46) 0%,
      rgba(8, 28, 27, 0.32) 72%,
      rgba(8, 28, 27, 0.18) 100%);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}
html[data-theme=dark] .home-header::after {
  background:
    linear-gradient(
      180deg,
      rgba(67, 203, 215, 0.08) 0%,
      rgba(67, 203, 215, 0.02) 58%,
      rgba(0, 0, 0, 0) 100%);
}
html[data-theme=dark] .home-icon-toggle,
html[data-theme=dark] .home-lang-toggle {
  border-color: rgba(104, 215, 193, 0.22);
  background: rgba(13, 33, 31, 0.56);
}
html[data-theme=dark] .home-nav a,
html[data-theme=dark] .home-nav button {
  color: rgba(232, 247, 244, 0.76);
}
.site-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 12% 4%,
      rgba(54, 189, 209, 0.14),
      transparent 30%),
    var(--bg);
  color: var(--page-ink);
}
.site-header .home-nav button.active {
  color: var(--accent);
}
.site-header .home-nav button.active::after {
  display: none;
  content: none;
}
.site-hero {
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 74px 0 48px;
}
.site-kicker {
  width: fit-content;
  border: 1px solid var(--accent-ring);
  border-radius: 999px;
  background: var(--accent-faint);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  padding: 8px 12px;
}
.site-hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--page-ink);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}
.docs-hero h1,
.partner-hero h1 {
  font-size: clamp(28px, 2.4vw, 34px);
  font-weight: 560;
  line-height: 1.2;
}
.site-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
}
.site-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(760px, 100%);
  min-height: 52px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}
.site-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--input-ink);
  outline: 0;
  padding: 0 18px;
}
.site-search button {
  border-left: 1px solid var(--panel-border);
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-size: 14px;
  font-weight: 600;
  padding: 0 22px;
}
.site-chip-row,
.site-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.site-chip-row span,
.site-chip-grid span {
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.15;
  padding: 8px 11px;
}
.site-chip-row.compact span {
  font-size: 12px;
  padding: 6px 9px;
}
.site-chip-grid span.active,
.site-chip-row span.active {
  border-color: var(--tag-border);
  background: var(--tag-strong-bg);
  color: var(--tag-strong-ink);
}
.site-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 74px;
}
.site-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.site-section-head h2 {
  margin: 0;
  color: var(--page-ink);
  font-size: 25px;
  font-weight: 650;
  line-height: 1.3;
}
.site-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.public-filter-section,
.pricing-layout,
.docs-layout,
.partner-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.public-filter-card,
.docs-menu,
.partner-info {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--surface);
  padding: 20px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}
.public-filter-card h2,
.partner-info h2 {
  margin: 0;
  color: var(--page-ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
}
.public-filter-card h2:not(:first-child) {
  margin-top: 8px;
}
.public-model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.public-model-card {
  display: grid;
  gap: 16px;
  min-height: 270px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--model-card-bg);
  color: var(--model-card-ink);
  padding: 22px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}
.public-model-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.public-model-head .model-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.public-model-head span {
  color: var(--model-card-muted);
  font-size: 13px;
}
.public-model-card h3 {
  margin: 4px 0 0;
  color: var(--model-card-ink);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
  word-break: break-word;
}
.public-model-card p {
  margin: 0;
  color: var(--model-card-muted);
  font-size: 14px;
  line-height: 1.7;
}
.public-model-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: auto 0 0;
}
.public-model-card dl div {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}
.public-model-card dt {
  color: var(--muted);
  font-size: 12px;
}
.public-model-card dd {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 15px;
  font-weight: 650;
}
.public-models-page {
  background:
    radial-gradient(
      circle at 50% 12%,
      rgba(124, 58, 237, 0.12),
      transparent 34%),
    linear-gradient(
      180deg,
      #edf7ff 0%,
      #fbfcff 46%,
      #ffffff 100%);
  color: #172033;
}
.public-models-page .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.16) 72%,
      rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.08);
}
html[data-theme=dark] .public-models-page .site-header {
  border-bottom: 1px solid rgba(104, 215, 193, 0.12);
  background:
    linear-gradient(
      180deg,
      rgba(8, 28, 27, 0.46) 0%,
      rgba(8, 28, 27, 0.32) 72%,
      rgba(8, 28, 27, 0.18) 100%);
  backdrop-filter: blur(26px) saturate(170%);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}
.public-models-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 18% 30%,
      rgba(197, 230, 255, 0.78),
      transparent 28%),
    radial-gradient(
      circle at 76% 22%,
      rgba(228, 213, 255, 0.82),
      transparent 34%),
    linear-gradient(
      135deg,
      #e6f5ff 0%,
      #f2ebff 54%,
      #fff7ff 100%);
}
.public-models-hero::after {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 150px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 247, 255, 0) 0%,
      rgba(248, 250, 255, 0.76) 58%,
      #fbfcff 100%);
  content: "";
  pointer-events: none;
}
.model-hero-waves {
  position: absolute;
  inset: 112px -8vw auto -8vw;
  height: 380px;
  border-radius: 0 0 50% 50%;
  background:
    linear-gradient(
      174deg,
      transparent 0 47%,
      rgba(255, 255, 255, 0.7) 48%,
      rgba(255, 255, 255, 0.08) 51%,
      transparent 52%),
    linear-gradient(
      12deg,
      transparent 0 54%,
      rgba(255, 255, 255, 0.62) 55%,
      rgba(255, 255, 255, 0.08) 58%,
      transparent 59%);
  filter: blur(1px);
  pointer-events: none;
}
.public-models-hero-shell {
  position: relative;
  z-index: 2;
  width: min(1512px, calc(100% - 96px));
  min-height: 500px;
  margin: 0 auto;
}
.public-models-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(1060px, 100%);
  margin: 0 auto;
  padding-top: 72px;
  text-align: center;
}
.public-models-hero h1 {
  margin: 16px 0 0;
  background:
    linear-gradient(
      100deg,
      var(--brand-cyan) 7%,
      var(--brand-teal) 48%,
      var(--brand-mint) 94%);
  background-clip: text;
  color: transparent;
  font-size: 58px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
}
.public-models-hero p {
  margin: 46px 0 0;
  color: #172033;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}
.public-models-hero .site-search {
  width: min(620px, 100%);
  min-height: 44px;
  margin-top: 22px;
  border: 1px solid #e0e4ef;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 14px 42px rgba(81, 92, 126, 0.1);
}
.public-models-hero .site-search input {
  color: #172033;
  font-size: 14px;
  padding-left: 18px;
}
.public-models-hero .site-search input::placeholder {
  color: #c1c6d0;
}
.public-models-hero .site-search button {
  width: 102px;
  border: 4px solid var(--surface);
  border-radius: 11px;
  background: var(--brand-gradient);
  box-shadow: 0 8px 20px var(--brand-shadow);
  color: var(--on-brand);
  font-size: 14px;
  font-weight: 600;
  padding: 0;
}
.public-hot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 46px;
}
.public-hot-row strong {
  color: #172033;
  font-size: 14px;
  font-weight: 600;
}
.public-hot-row span {
  min-width: 88px;
  border: 1px solid #e1e5ee;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  font-size: 11.5px;
  font-weight: 430;
  line-height: 1;
  padding: 9px 12px;
  box-shadow: 0 8px 22px rgba(30, 41, 59, 0.05);
}
.public-hot-row button {
  min-width: 88px;
  border: 1px solid #e1e5ee;
  border-radius: 6px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 430;
  line-height: 1;
  padding: 9px 12px;
  box-shadow: 0 8px 22px rgba(30, 41, 59, 0.05);
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.public-hot-row button:hover {
  border-color: var(--accent);
  color: #0994a3;
  transform: translateY(-1px);
}
.model-float-icon {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 22px rgba(86, 100, 148, 0.1);
}
.model-float-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.model-float-icon.deepseek {
  left: 0;
  top: 250px;
}
.model-float-icon.qwen {
  left: 13%;
  top: 185px;
}
.model-float-icon.kimi {
  right: 2.4%;
  top: 132px;
}
.model-float-icon.zai {
  right: calc(50% - 372px);
  top: 208px;
}
.model-float-icon.mini {
  right: 8.2%;
  top: 376px;
}
.model-filter-strip {
  width: min(1512px, calc(100% - 96px));
  margin: 0 auto;
  padding: 12px 0 64px;
}
.model-filter-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 16px;
}
.model-filter-row strong {
  color: #172033;
  font-size: 14px;
  font-weight: 560;
  line-height: 38px;
}
.model-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
}
.model-filter-buttons span {
  min-width: 58px;
  border: 1px solid #d9e0ec;
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  padding: 10px 12px;
  text-align: center;
}
.model-filter-buttons button {
  min-width: 58px;
  border: 1px solid #d9e0ec;
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  padding: 10px 12px;
  text-align: center;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}
.model-filter-buttons button:hover {
  border-color: var(--accent);
  color: #0994a3;
}
.model-filter-buttons button.active {
  border-color: var(--accent);
  background: var(--accent-faint);
  color: #0994a3;
}
.model-filter-buttons span.active {
  border-color: var(--accent);
  background: var(--accent-faint);
  color: #0994a3;
}
.public-model-list-section {
  width: min(1512px, calc(100% - 96px));
  margin: 0 auto;
  padding: 0 0 72px;
}
.public-model-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
}
.public-model-list-head h2 {
  margin: 0;
  color: #172033;
  font-size: 22px;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.25;
}
.public-model-list-head div {
  display: flex;
  gap: 14px;
}
.public-model-list-head button {
  background: transparent;
  color: #172033;
  font-size: 13px;
  font-weight: 400;
}
.public-catalog-count {
  align-self: center;
  color: #64748b;
  font-size: 13px;
  line-height: 36px;
}
.public-sort-select {
  height: 36px;
  min-width: 154px;
  border: 1px solid #d9e0ec;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  cursor: pointer;
  font-size: 13px;
  padding: 0 10px;
}
.public-catalog-state {
  border: 1px dashed #d9e0ec;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: #64748b;
  display: grid;
  min-height: 180px;
  place-items: center;
  gap: 12px;
  font-size: 14px;
  text-align: center;
}
.public-catalog-state.error {
  border-color: #fca5a5;
  color: #dc2626;
}
.public-catalog-state button {
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 8px 14px;
}
.public-models-page .public-model-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: start;
  gap: 24px;
}
.public-moa-section {
  width: min(1512px, calc(100% - 96px));
  margin: 0 auto 40px;
}
.public-moa-section .public-model-list-head {
  margin-bottom: 24px;
}
.public-models-page .public-model-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 12px;
  width: 100%;
  height: 208px;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #dce4f0;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  padding: 16px 20px 14px;
  box-shadow: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}
.public-models-page .public-model-card:hover {
  border-color: var(--accent);
  background:
    linear-gradient(
      135deg,
      rgba(54, 189, 209, 0.12),
      rgba(125, 222, 158, 0.16));
}
.public-models-page .public-model-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.public-provider {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}
.public-provider img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.public-provider span {
  overflow: hidden;
  color: #667792;
  font-size: 12.5px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-moa-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(54, 189, 209, 0.38);
  border-radius: 5px;
  background: rgba(54, 189, 209, 0.12);
  color: #067c8d;
  font-size: 10.5px;
  font-weight: 650;
  min-width: 38px;
  height: 22px;
  line-height: 1;
}
.public-type-pill {
  border: 1px solid rgba(54, 189, 209, 0.48);
  border-radius: 5px;
  background: rgba(54, 189, 209, 0.1);
  color: #0994a3;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  padding: 6px 8px;
}
.public-model-card:nth-child(n+7) .public-type-pill {
  border-color: #84dfd0;
  background: #e9fbf8;
  color: #06a99a;
}
.public-models-page .public-model-card h3 {
  margin: 0;
  color: #172033;
  font-size: 13.5px;
  font-weight: 560;
  line-height: 1.35;
  word-break: break-word;
}
.public-release {
  overflow: hidden;
  margin: 0;
  color: #667792;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.public-model-desc {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #172033;
  font-size: 12.5px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.public-card-body {
  grid-row: 2;
  grid-column: 1;
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 8px;
  transition: opacity 140ms ease, transform 140ms ease;
}
.public-card-hover {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
}
.public-model-card:hover .public-card-default {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}
.public-model-card:hover .public-card-hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.public-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}
.public-card-tags span {
  border: 1px solid rgba(54, 189, 209, 0.48);
  border-radius: 5px;
  background: rgba(54, 189, 209, 0.1);
  color: #0994a3;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 7px;
}
.public-card-support {
  display: grid;
  gap: 5px;
  color: #667792;
  font-size: 12px;
  line-height: 1.35;
}
.public-card-divider {
  height: 1px;
  margin: auto 0 0;
  background: #d7dfec;
}
.public-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.public-card-meta span {
  color: #667792;
  font-size: 11.5px;
  line-height: 1.4;
}
.public-card-meta b {
  color: #0994a3;
  font-weight: 500;
}
.public-card-meta div {
  min-width: 0;
}
.public-card-meta-prices {
  grid-template-columns: 1fr;
  gap: 5px;
}
.public-card-meta-prices div {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
.public-card-meta-prices .public-price-label {
  flex: 0 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.public-card-meta-prices .public-price-value {
  flex: 0 0 auto;
  white-space: nowrap;
}
.public-moa-card .public-card-meta b {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}
@media (max-width: 1343px) {
  .model-filter-strip,
  .public-model-list-section {
    width: min(1512px, calc(100% - 96px));
  }
  .public-models-page .public-model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.public-model-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 38px;
}
.public-model-pagination button {
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  font-size: 13px;
  font-weight: 430;
  line-height: 1;
}
.public-model-pagination .page-number.active {
  border-color: var(--accent);
  color: #0994a3;
}
.public-model-pagination .page-number:not(.active) {
  background: rgba(255, 255, 255, 0.78);
}
.public-model-pagination .page-arrow {
  background: transparent;
  color: #172033;
  font-size: 21px;
  font-weight: 300;
}
.public-model-pagination .page-arrow:disabled {
  color: #b7bfcc;
  cursor: default;
}
.public-model-pagination .page-size {
  grid-auto-flow: column;
  gap: 6px;
  min-width: 106px;
  border-color: #d4d8df;
  color: #172033;
  font-size: 13px;
  font-weight: 400;
}
.public-model-pagination .page-size span {
  color: #aeb6c2;
  font-size: 12px;
}
.pricing-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pricing-highlights span {
  border-radius: 999px;
  background: var(--accent-faint);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
}
.public-price-table {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}
.price-table-head,
.price-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) minmax(160px, 0.9fr) repeat(2, minmax(145px, 0.7fr)) minmax(220px, 1fr);
  align-items: center;
  gap: 16px;
}
.price-table-head {
  min-height: 58px;
  background: var(--surface-muted);
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 650;
  padding: 0 22px;
}
.price-row {
  min-height: 76px;
  border-top: 1px solid var(--panel-border);
  padding: 14px 22px;
}
.price-row strong {
  display: block;
  color: var(--page-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.price-row > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  word-break: break-all;
}
.price-row b {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.pricing-rule-item {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.pricing-rule-item small:first-child {
  white-space: normal;
  word-break: break-word;
}
.pricing-rule-item > span,
.pricing-rule-item small:last-child {
  white-space: nowrap;
}
.price-row b small,
.pricing-rule-item small {
  margin-top: 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 480;
}
.pricing-rule-divider {
  color: var(--muted);
  font-size: 12px;
}
.public-pricing-page {
  background:
    radial-gradient(
      circle at 86% 0%,
      rgba(124, 58, 237, 0.18),
      transparent 34%),
    radial-gradient(
      circle at 12% 36%,
      rgba(54, 189, 209, 0.16),
      transparent 30%),
    linear-gradient(
      180deg,
      #f9fdff 0%,
      #eefbff 44%,
      #ffffff 70%);
  color: #172033;
}
.pricing-showcase {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 90% 12%,
      rgba(54, 189, 209, 0.2),
      transparent 32%),
    radial-gradient(
      circle at 18% 72%,
      rgba(82, 213, 232, 0.18),
      transparent 30%);
}
.pricing-showcase::before,
.pricing-showcase::after {
  position: absolute;
  right: -12%;
  top: -46%;
  width: 720px;
  height: 720px;
  border: 1px solid var(--accent-ring);
  border-radius: 50%;
  content: "";
}
.pricing-showcase::after {
  right: 16%;
  top: -38%;
  width: 560px;
  height: 560px;
}
.pricing-showcase-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 104px;
  text-align: center;
}
.pricing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--accent-ring);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #0994a3;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 0 24px;
  box-shadow: 0 8px 18px var(--brand-shadow);
}
.pricing-showcase h1 {
  margin: 52px 0 0;
  color: #172033;
  font-size: 46px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}
.pricing-showcase h1 span {
  color: #0994a3;
}
.pricing-showcase p {
  max-width: 950px;
  margin: 32px 0 0;
  color: #667792;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}
.pricing-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  width: min(760px, 100%);
  min-height: 50px;
  margin-top: 44px;
  border: 1px solid #dfe5ef;
  border-radius: 9px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(81, 92, 126, 0.08);
}
.pricing-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #172033;
  font-size: 13px;
  padding: 0 18px;
}
.pricing-search input::placeholder {
  color: #98a5bb;
}
.pricing-search input:focus,
.pricing-search input:focus-visible {
  outline: 0;
  box-shadow: none;
}
.pricing-search button {
  align-self: center;
  justify-self: center;
  width: 92px;
  height: 38px;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}
.pricing-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
  margin-top: 34px;
}
.pricing-checks span {
  color: #667792;
  font-size: 13px;
  font-weight: 400;
}
.pricing-checks span::first-letter {
  color: #0994a3;
}
.pricing-catalog {
  width: min(1480px, calc(100% - 72px));
  margin: -26px auto 0;
  overflow: hidden;
  border: 1px solid rgba(214, 226, 238, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 58px rgba(86, 100, 148, 0.07);
  padding: 0 24px 72px;
}
.pricing-filter-panel {
  overflow: hidden;
  margin: 0 -24px;
  border: 0;
  border-bottom: 1px solid rgba(214, 226, 238, 0.9);
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(
      90deg,
      rgba(210, 248, 252, 0.7),
      rgba(255, 255, 255, 0.94) 52%,
      rgba(255, 255, 255, 0.98)),
    #ffffff;
  box-shadow: none;
}
.pricing-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 30px 40px 0;
}
.pricing-type-tabs button {
  min-width: 96px;
  min-height: 48px;
  border: 1px solid #dce4f0;
  border-radius: 7px 7px 0 0;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 520;
  line-height: 1;
  padding: 0 18px;
}
.pricing-type-tabs button.active {
  border-color: var(--accent);
  background: var(--brand-gradient);
  color: #ffffff;
}
.pricing-vendor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 15px;
  border-top: 1px solid #e2e8f3;
  background: rgba(255, 255, 255, 0.88);
  padding: 20px 40px 28px;
}
.pricing-vendor-grid button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  border: 1px solid #dce4f0;
  border-radius: 999px;
  background: #ffffff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 510;
  line-height: 1;
  padding: 0 15px;
}
.pricing-vendor-grid img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}
.pricing-vendor-grid button.active {
  border-color: var(--accent);
  background: rgba(9, 148, 163, 0.1);
  color: #0994a3;
}
.pricing-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pricing-sheet {
  min-width: 940px;
}
.docs-content {
  display: block;
}
.pricing-catalog > h2 {
  margin: 44px 0 20px;
  color: #172033;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.pricing-table-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 44px 0 20px;
}
.pricing-table-head-row h2 {
  margin: 0;
}
.pricing-table-head-row .price-unit-toggle {
  min-height: 34px;
  border: 1px solid #dce4f0;
  border-radius: 999px;
  background: #ffffff;
  color: #0994a3;
  padding: 0 14px;
}
.pricing-sheet {
  border-color: #dce4f0;
  border-radius: 8px;
  box-shadow: none;
}
.pricing-sheet .price-table-head,
.pricing-sheet .price-row {
  grid-template-columns: minmax(170px, 0.85fr) minmax(160px, 0.9fr) repeat(2, minmax(145px, 0.7fr)) minmax(220px, 1fr);
  gap: 0;
}
.pricing-sheet .price-table-head {
  min-height: 58px;
  background: #f8faff;
  color: #475569;
  font-size: 13px;
  font-weight: 580;
  padding: 0;
}
.pricing-sheet .price-table-head span,
.pricing-sheet .price-row > * {
  display: flex;
  min-height: inherit;
  align-items: center;
  border-right: 1px solid #dce4f0;
  min-width: 0;
  padding: 0 16px;
}
.pricing-sheet .price-table-head span:last-child,
.pricing-sheet .price-row > *:last-child {
  border-right: 0;
}
.pricing-sheet .price-row {
  min-height: 76px;
  border-top: 1px solid #dce4f0;
  background: #ffffff;
  padding: 0;
}
.pricing-sheet .price-row:nth-child(odd) {
  background: #fbfcff;
}
.pricing-sheet .price-row.provider-start .price-provider {
  background: rgba(225, 250, 247, 0.78);
}
.price-provider {
  gap: 11px;
}
.price-provider.blank {
  background: rgba(225, 250, 247, 0.78);
}
.price-provider img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.price-provider strong,
.pricing-sheet .price-row > strong {
  color: #334155;
  font-size: 13px;
  font-weight: 530;
}
.pricing-sheet .price-row b {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: #0994a3;
  font-size: 13px;
  font-weight: 560;
}
.pricing-sheet .price-row b small {
  color: #64748b;
}
html[data-theme=dark] .site-page {
  background:
    radial-gradient(
      circle at 16% 4%,
      rgba(67, 203, 215, 0.16),
      transparent 30%),
    radial-gradient(
      circle at 90% 0%,
      rgba(104, 215, 193, 0.08),
      transparent 26%),
    var(--bg);
}
html[data-theme=dark] .public-models-page,
html[data-theme=dark] .public-pricing-page {
  background:
    radial-gradient(
      circle at 8% 16%,
      rgba(67, 203, 215, 0.12),
      transparent 30%),
    radial-gradient(
      circle at 86% 10%,
      rgba(104, 215, 193, 0.1),
      transparent 32%),
    var(--bg);
  color: var(--page-ink);
}
html[data-theme=dark] .public-pricing-page .pricing-catalog {
  border-color: var(--panel-border);
  background:
    linear-gradient(
      180deg,
      rgba(10, 29, 27, 0.96) 0%,
      rgba(9, 24, 23, 0.94) 100%);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
  color: var(--page-ink);
}
html[data-theme=dark] .public-models-hero {
  background:
    radial-gradient(
      circle at 18% 28%,
      rgba(67, 203, 215, 0.16),
      transparent 28%),
    radial-gradient(
      circle at 76% 22%,
      rgba(104, 215, 193, 0.12),
      transparent 34%),
    linear-gradient(
      135deg,
      #071f1d 0%,
      #0a2724 54%,
      #071614 100%);
}
html[data-theme=dark] .public-models-hero::after {
  background:
    linear-gradient(
      180deg,
      rgba(7, 22, 20, 0) 0%,
      rgba(7, 22, 20, 0.78) 62%,
      var(--bg) 100%);
}
html[data-theme=dark] .model-hero-waves {
  background:
    linear-gradient(
      174deg,
      transparent 0 47%,
      rgba(67, 203, 215, 0.15) 48%,
      rgba(67, 203, 215, 0.04) 51%,
      transparent 52%),
    linear-gradient(
      12deg,
      transparent 0 54%,
      rgba(104, 215, 193, 0.13) 55%,
      rgba(104, 215, 193, 0.04) 58%,
      transparent 59%);
}
html[data-theme=dark] .public-models-hero p,
html[data-theme=dark] .public-hot-row strong,
html[data-theme=dark] .model-filter-row strong,
html[data-theme=dark] .public-catalog-count,
html[data-theme=dark] .public-model-list-head h2,
html[data-theme=dark] .public-model-list-head button,
html[data-theme=dark] .pricing-showcase h1,
html[data-theme=dark] .pricing-catalog > h2 {
  color: var(--page-ink);
}
html[data-theme=dark] .public-models-hero .site-search,
html[data-theme=dark] .pricing-search,
html[data-theme=dark] .public-hot-row span,
html[data-theme=dark] .public-hot-row button,
html[data-theme=dark] .model-filter-buttons span,
html[data-theme=dark] .model-filter-buttons button,
html[data-theme=dark] .public-sort-select,
html[data-theme=dark] .pricing-filter-panel,
html[data-theme=dark] .pricing-type-tabs button,
html[data-theme=dark] .pricing-vendor-grid,
html[data-theme=dark] .pricing-vendor-grid button,
html[data-theme=dark] .public-price-table,
html[data-theme=dark] .public-model-pagination button {
  border-color: var(--panel-border);
  background: rgba(13, 33, 31, 0.82);
  color: var(--page-ink);
}
html[data-theme=dark] .pricing-vendor-grid button.active {
  border-color: var(--accent);
  background: rgba(67, 203, 215, 0.16);
  color: var(--accent);
}
html[data-theme=dark] .pricing-rule-item small:first-child,
html[data-theme=dark] .pricing-rule-divider {
  color: var(--muted);
}
html[data-theme=dark] .public-model-pagination .page-number.active {
  border-color: var(--accent);
  background: rgba(67, 203, 215, 0.14);
  color: var(--accent);
}
html[data-theme=dark] .public-model-pagination .page-number:not(.active) {
  border-color: var(--panel-border);
  background: rgba(13, 33, 31, 0.82);
  color: var(--page-ink);
}
html[data-theme=dark] .model-filter-buttons span.active,
html[data-theme=dark] .public-type-pill,
html[data-theme=dark] .public-card-tags span {
  border-color: rgba(67, 203, 215, 0.58);
  background: rgba(67, 203, 215, 0.16);
  color: var(--accent);
}
html[data-theme=dark] .public-models-page .public-model-card:hover {
  border-color: var(--accent);
  background: rgba(67, 203, 215, 0.14);
}
html[data-theme=dark] .public-model-pagination .page-arrow {
  background: transparent;
  color: var(--page-ink);
}
html[data-theme=dark] .public-model-pagination .page-arrow:disabled {
  color: rgba(154, 169, 188, 0.55);
}
html[data-theme=dark] .public-model-pagination .page-size {
  border-color: var(--panel-border);
  background: rgba(13, 33, 31, 0.82);
  color: var(--page-ink);
}
html[data-theme=dark] .public-model-pagination .page-size span {
  color: var(--muted);
}
html[data-theme=dark] .public-models-hero .site-search input,
html[data-theme=dark] .pricing-search input {
  color: var(--page-ink);
}
html[data-theme=dark] .public-models-hero .site-search input::placeholder,
html[data-theme=dark] .pricing-search input::placeholder {
  color: var(--muted);
}
html[data-theme=dark] .public-models-hero .site-search button {
  border-color: rgba(13, 33, 31, 0.92);
  box-shadow: 0 8px 22px rgba(67, 203, 215, 0.2);
}
html[data-theme=dark] .model-float-icon {
  background: rgba(13, 33, 31, 0.78);
}
html[data-theme=dark] .public-hot-row span,
html[data-theme=dark] .model-filter-buttons span,
html[data-theme=dark] .model-filter-buttons button,
html[data-theme=dark] .pricing-vendor-grid button,
html[data-theme=dark] .pricing-showcase p,
html[data-theme=dark] .pricing-checks span {
  color: var(--muted);
}
html[data-theme=dark] .model-filter-buttons span.active,
html[data-theme=dark] .model-filter-buttons button.active,
html[data-theme=dark] .pricing-type-tabs button.active {
  border-color: var(--accent);
  background: rgba(67, 203, 215, 0.16);
  color: var(--accent);
}
html[data-theme=dark] .public-models-page .public-model-card {
  border-color: var(--panel-border);
  background: rgba(13, 33, 31, 0.9);
  color: var(--page-ink);
}
html[data-theme=dark] .public-catalog-state {
  border-color: var(--panel-border);
  background: rgba(13, 33, 31, 0.72);
  color: var(--muted);
}
html[data-theme=dark] .public-catalog-state.error {
  border-color: rgba(248, 113, 113, 0.7);
  color: #f87171;
}
html[data-theme=dark] .public-provider span,
html[data-theme=dark] .public-release,
html[data-theme=dark] .public-card-meta span {
  color: var(--muted);
}
html[data-theme=dark] .public-moa-mark {
  background: rgba(67, 203, 215, 0.16);
  color: var(--accent);
}
html[data-theme=dark] .public-models-page .public-model-card h3,
html[data-theme=dark] .public-model-desc,
html[data-theme=dark] .price-provider strong,
html[data-theme=dark] .pricing-sheet .price-row > strong {
  color: var(--page-ink);
}
html[data-theme=dark] .public-type-pill,
html[data-theme=dark] .public-card-tags span {
  border-color: var(--tag-border);
  background: var(--tag-bg);
  color: var(--tag-ink);
}
html[data-theme=dark] .public-card-divider,
html[data-theme=dark] .pricing-sheet .price-table-head span,
html[data-theme=dark] .pricing-sheet .price-row > * {
  border-color: var(--panel-border);
}
html[data-theme=dark] .public-card-meta b,
html[data-theme=dark] .pricing-sheet .price-row b,
html[data-theme=dark] .pricing-showcase h1 span {
  color: var(--accent);
}
html[data-theme=dark] .pricing-showcase {
  background:
    radial-gradient(
      circle at 90% 12%,
      rgba(104, 215, 193, 0.15),
      transparent 32%),
    radial-gradient(
      circle at 18% 72%,
      rgba(67, 203, 215, 0.14),
      transparent 30%);
}
html[data-theme=dark] .pricing-badge {
  border-color: var(--accent-ring);
  background: rgba(13, 33, 31, 0.78);
  color: var(--accent);
}
html[data-theme=dark] .pricing-sheet .price-table-head {
  background: rgba(10, 29, 27, 0.96);
  color: var(--page-ink);
}
html[data-theme=dark] .pricing-sheet .price-row,
html[data-theme=dark] .pricing-sheet .price-row:nth-child(odd) {
  border-color: var(--panel-border);
  background: rgba(13, 33, 31, 0.86);
}
html[data-theme=dark] .pricing-sheet .price-row.provider-start .price-provider,
html[data-theme=dark] .price-provider.blank {
  background: rgba(67, 203, 215, 0.12);
}
.docs-menu {
  gap: 8px;
}
.docs-menu span {
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 12px;
}
.docs-menu span.active {
  background: var(--accent-faint);
  color: var(--accent);
  font-weight: 600;
}
.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.docs-card,
.partner-form {
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
}
.docs-card {
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 24px;
}
.docs-card h2 {
  margin: 0;
  color: var(--page-ink);
  font-size: 19px;
  font-weight: 650;
}
.docs-card p,
.partner-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.docs-card button {
  width: fit-content;
  margin-top: auto;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}
.doc-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--panel-border);
}
.doc-search-result:first-child {
  padding-top: 0;
}
.doc-search-result:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.doc-result-head {
  display: flex;
  align-items: center;
  min-width: 0;
}
.doc-result-category {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-muted);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: var(--muted);
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.doc-result-category::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  opacity: .72;
}
.doc-result-matches {
  display: grid;
  gap: 0;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.doc-result-matches li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  padding: 8px 0;
  border-top: 1px dashed var(--panel-border);
}
.doc-result-matches li:first-child {
  border-top: 0;
}
.doc-result-matches mark,
.doc-result-head mark {
  background: var(--accent-faint);
  color: var(--accent);
  padding: 0 1px;
  border-radius: 3px;
}
.doc-search-result > button {
  width: fit-content;
  align-self: end;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}
.doc-search-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0;
}
.doc-search-results.docs-console-results {
  margin-top: 4px;
}
.doc-category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.doc-category-bar button {
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition:
    border-color .18s ease,
    color .18s ease,
    background .18s ease;
}
.doc-category-bar button:hover,
.doc-category-bar button.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-faint);
}
.doc-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.doc-card-tags span,
.doc-breadcrumb span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--muted);
  font-size: 12px;
}
.doc-skeleton {
  display: block;
  height: 14px;
  border-radius: 7px;
  background:
    linear-gradient(
      90deg,
      var(--surface-muted) 25%,
      var(--surface) 45%,
      var(--surface-muted) 65%);
  background-size: 300% 100%;
  animation: doc-skeleton 1.3s ease infinite;
}
.doc-skeleton + .doc-skeleton {
  margin-top: 12px;
}
.doc-skeleton.wide {
  width: 72%;
  height: 20px;
}
@keyframes doc-skeleton {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0 0;
  }
}
.doc-state {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 36px 24px;
  border: 1px dashed var(--panel-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}
.doc-state strong {
  color: var(--page-ink);
  font-size: 17px;
}
.doc-state p {
  margin: 0;
  max-width: 540px;
  line-height: 1.7;
}
.doc-state button {
  min-height: 34px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: transparent;
  color: var(--accent);
  padding: 6px 16px;
  cursor: pointer;
}
.doc-article-shell {
  width: min(920px, calc(100vw - 48px));
  padding-top: 28px !important;
  padding-bottom: 72px;
}
.console-doc-detail-page .doc-article-shell {
  width: min(920px, 100%);
}
.doc-back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.doc-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.doc-article-head {
  margin-top: 20px;
}
.doc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.doc-breadcrumb i {
  opacity: .45;
  font-style: normal;
}
.doc-article-head h1 {
  margin: 16px 0 10px;
  color: var(--page-ink);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
}
.doc-article-head p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}
.doc-article {
  margin-top: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(15, 23, 42, .05);
  padding: clamp(20px, 4vw, 36px);
}
.doc-block + .doc-block {
  margin-top: 26px;
}
.doc-markdown {
  color: var(--page-ink);
  font-size: 15px;
  line-height: 1.78;
}
.doc-markdown h2,
.doc-markdown h3,
.doc-markdown h4 {
  color: var(--page-ink);
  margin: 20px 0 10px;
  line-height: 1.35;
}
.doc-markdown h2 {
  font-size: 21px;
}
.doc-markdown h3 {
  font-size: 18px;
}
.doc-markdown h4 {
  font-size: 16px;
}
.doc-markdown p,
.doc-markdown ul,
.doc-markdown ol {
  margin: 0 0 12px;
}
.doc-markdown ul,
.doc-markdown ol {
  padding-left: 22px;
}
.doc-markdown li + li {
  margin-top: 5px;
}
.doc-markdown code {
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  background: var(--surface-muted);
  padding: 1px 5px;
  font-size: .92em;
}
.doc-markdown pre {
  background: var(--doc-code-bg);
  color: var(--doc-code-ink);
}
.doc-callout {
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-faint);
  padding: 14px 16px;
}
.doc-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--page-ink);
}
.doc-callout p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.doc-callout.success {
  border-color: #16a34a;
  background: rgba(22, 163, 74, .08);
}
.doc-callout.warning {
  border-color: #d97706;
  background: rgba(217, 119, 6, .08);
}
.doc-callout.danger {
  border-color: #dc2626;
  background: rgba(220, 38, 38, .08);
}
.doc-faq details {
  border-bottom: 1px solid var(--panel-border);
  padding: 14px 0;
}
.doc-faq details:last-child {
  border-bottom: 0;
}
.doc-faq summary {
  cursor: pointer;
  color: var(--page-ink);
  font-weight: 600;
}
.doc-faq .doc-markdown {
  margin-top: 10px;
  color: var(--muted);
}
.doc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}
.doc-table {
  min-width: 620px;
  width: 100%;
  margin: 0;
}
.doc-table th,
.doc-table td {
  border-bottom: 1px solid var(--panel-border);
  padding: 12px 14px;
  white-space: nowrap;
}
.doc-table td {
  color: var(--muted);
  white-space: normal;
  word-break: break-word;
}
.doc-table tbody tr:last-child td {
  border-bottom: 0;
}
.doc-code-tabs {
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--surface-muted);
}
.doc-code-tabbar {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 8px 12px;
  border-bottom: 1px solid var(--panel-border);
}
.doc-code-tab {
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.doc-code-tab.active {
  border-color: var(--panel-border);
  background: var(--surface);
  color: var(--page-ink);
}
.doc-code-tabs pre {
  margin: 0;
  overflow-x: auto;
  padding: 16px;
  background: var(--doc-code-bg);
  color: var(--doc-code-ink);
}
.doc-code-tabs code {
  white-space: pre;
}
.doc-empty {
  color: var(--muted);
}
.partner-hero {
  padding-bottom: 30px;
}
.partner-layout {
  grid-template-columns: minmax(0, 980px);
  justify-content: start;
  padding-top: 10px;
}
.partner-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  padding: 28px;
}
.partner-form label {
  display: grid;
  gap: 8px;
}
.partner-form label.full,
.partner-form .business-submit-message.full,
.partner-form button.full {
  grid-column: 1 / -1;
}
.partner-form span {
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 600;
}
.partner-form input,
.partner-form select,
.partner-form textarea {
  width: 100%;
  min-height: 44px;
  border-color: var(--panel-border);
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 0 12px;
}
.partner-form textarea {
  min-height: 136px;
  padding: 12px;
  resize: vertical;
}
.business-submit-message {
  display: none;
  min-height: 36px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 12px;
}
.business-submit-message[data-status] {
  display: flex;
}
.business-submit-message[data-status=success] {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.business-submit-message[data-status=error] {
  border-color: rgba(239, 68, 68, 0.26);
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}
.partner-form .primary-button {
  width: fit-content;
  min-width: 132px;
  margin-top: 4px;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
}
.login-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(480px, 1fr) minmax(480px, 1fr);
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0) 62%,
      rgba(54, 189, 209, 0.14) 100%),
    #ffffff;
  color: #172033;
}
.login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-image: url("./login-visual-4QNCRWPZ.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
}
.login-visual-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 13, 31, 0.46);
}
.login-brand,
.login-hero-copy,
.login-promo-copy {
  position: absolute;
  z-index: 1;
  left: 56px;
}
.login-brand {
  top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0;
}
.login-logo-mark {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(6, 18, 39, 0.32);
}
.login-hero-copy {
  top: 160px;
}
.login-hero-copy h1,
.login-hero-copy p {
  margin: 0;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}
.login-hero-copy small {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
}
.login-hero-copy small:first-of-type {
  margin-top: 28px;
}
.login-promo-copy {
  bottom: 72px;
  max-width: min(760px, calc(100% - 112px));
}
.login-promo-copy p,
.login-promo-copy span {
  margin: 0;
  color: #02f6f7;
  font-weight: 500;
}
.login-promo-copy p {
  font-size: clamp(21px, 2vw, 32px);
  line-height: 1.3;
}
.login-promo-copy strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: clamp(34px, 3.7vw, 56px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}
.login-promo-copy span {
  display: block;
  margin-top: 20px;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.4;
}
.login-panel {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 56px 40px;
}
.login-language {
  position: absolute;
  top: 34px;
  right: 42px;
  z-index: 2;
  color: #64748b;
}
.login-language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}
.login-language-trigger svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.login-language-trigger span {
  min-width: 21px;
  text-align: center;
}
.login-language-chevron {
  width: 12px;
  height: 12px;
}
.login-language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: 132px;
  gap: 6px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  opacity: 0;
  padding: 12px;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.login-language-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.login-language-menu button {
  width: 100%;
  border-radius: 7px;
  background: transparent;
  color: #172033;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  padding: 7px 10px;
  text-align: left;
}
.login-language-menu button:hover,
.login-language-menu button:focus-visible {
  background: #f1f5f9;
}
.login-card {
  width: min(350px, 100%);
}
.login-card h2 {
  margin: 0 0 32px;
  color: #172033;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.login-form {
  display: grid;
  gap: 20px;
}
.login-input {
  display: flex;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
}
.login-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-ring);
}
.login-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  color: #172033;
  font-size: 15px;
  outline: 0;
  padding: 0 14px;
}
.login-input input::placeholder {
  color: #9aa9bc;
}
.login-phone {
  position: relative;
  border-radius: 7px;
  overflow: visible;
}
.login-phone::before {
  position: absolute;
  inset: -1px;
  z-index: 0;
  border: 1px solid #cbd5e1;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}
.login-phone:focus-within::before {
  border-color: var(--accent);
}
.login-phone > * {
  position: relative;
  z-index: 1;
}
.login-phone {
  border-color: transparent;
}
.login-phone-code,
.login-code button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  white-space: nowrap;
}
.login-phone-code {
  width: 70px;
  gap: 2px;
  border-radius: 7px 0 0 7px;
  font-size: 14px;
}
.login-phone-code svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}
.login-phone-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 5;
  display: grid;
  width: 250px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #eef1f7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
  opacity: 0;
  padding: 4px 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.login-phone-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.login-phone-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 36px;
  border-radius: 0;
  background: transparent;
  color: #172033;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  padding: 0 14px;
  text-align: left;
}
.login-phone-menu button:hover,
.login-phone-menu button:focus-visible,
.login-phone-menu button.active {
  background: #f3edff;
}
.login-code button {
  min-width: 96px;
  border-right: 0;
  border-left: 1px solid #cbd5e1;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}
.login-code button:disabled,
.login-submit:disabled {
  cursor: not-allowed;
  filter: grayscale(0.12);
  opacity: 0.7;
}
.login-method-switch {
  justify-self: end;
  margin-top: -12px;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 400;
}
.login-feedback {
  margin-top: -8px;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
.login-feedback.error {
  background: rgba(255, 77, 79, 0.08);
  color: #f04451;
}
.login-feedback.success {
  background: var(--soft-accent);
  color: var(--accent-strong);
}
.login-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #172033;
  font-size: 13px;
  line-height: 1.45;
}
.login-check input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}
.login-check a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.login-submit {
  min-height: 40px;
  border-radius: 7px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 10px 24px var(--brand-shadow);
}
.login-submit:not(:disabled):hover {
  filter: brightness(1.03) saturate(1.06);
}
.login-keep {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: -8px;
}
.login-keep > label {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 8px;
}
.login-email-link {
  justify-self: end;
  background: none;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.45;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.login-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}
.login-socials button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #172033;
  font-size: 14px;
  font-weight: 500;
}
.login-socials button:disabled {
  cursor: wait;
  opacity: 0.72;
}
.login-social-icon {
  flex: 0 0 auto;
  display: block;
}
.login-wechat-icon {
  width: 26px;
  height: 20px;
  color: #59ac6c;
  fill: currentColor;
}
.login-mail-icon {
  width: 16px;
  height: 16px;
  color: #172033;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}
.login-sms-icon {
  width: 16px;
  height: 16px;
  color: #172033;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.login-wechat-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}
.login-wechat-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(
      circle at 35% 18%,
      rgba(54, 189, 209, 0.25),
      transparent 34%),
    radial-gradient(
      circle at 74% 74%,
      rgba(125, 222, 158, 0.18),
      transparent 32%),
    rgba(5, 18, 17, 0.54);
  backdrop-filter: blur(8px);
}
.login-wechat-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(410px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(54, 189, 209, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(54, 189, 209, 0.12),
      rgba(112, 216, 140, 0.1)),
    #ffffff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.26);
  padding: 16px;
}
.login-wechat-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.login-wechat-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.login-wechat-title > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.login-wechat-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(54, 189, 209, 0.18);
}
.login-wechat-mark svg {
  width: 23px;
  height: 18px;
  fill: currentColor;
}
.login-wechat-dialog-head strong {
  color: #172033;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.login-wechat-title small {
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}
.login-wechat-close {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  padding: 0;
}
.login-wechat-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}
.login-wechat-frame-shell {
  position: relative;
  width: min(276px, 100%);
  height: min(276px, calc(100vh - 150px));
  min-height: 258px;
  margin: 2px auto 0;
  overflow: hidden;
  border: 1px solid #d6e2ee;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78);
}
.login-wechat-frame {
  position: absolute;
  top: -38px;
  left: 50%;
  width: 380px;
  height: 500px;
  max-width: none;
  border: 0;
  background: #ffffff;
  transform: translateX(-50%) scale(0.78);
  transform-origin: top center;
}
.login-wechat-frame-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 32%,
      rgba(54, 189, 209, 0.16),
      transparent 42%),
    #ffffff;
  color: #172033;
  text-align: center;
  transition: opacity 160ms ease;
}
.login-wechat-frame-shell.is-confirming .login-wechat-frame-cover {
  opacity: 1;
}
.login-wechat-frame-cover strong {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.login-wechat-frame-cover small {
  max-width: 220px;
  color: #64748b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}
.login-wechat-processing {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 236px;
  padding: 28px 20px 30px;
  border: 1px solid #d6e2ee;
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(54, 189, 209, 0.18),
      transparent 38%),
    #ffffff;
  color: #172033;
  text-align: center;
}
.login-wechat-processing strong {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.login-wechat-processing small {
  max-width: 260px;
  color: #64748b;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.login-wechat-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(54, 189, 209, 0.18);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.85s linear infinite;
}
html[data-theme=dark] .login-wechat-backdrop {
  background: rgba(0, 8, 7, 0.62);
}
html[data-theme=dark] .login-wechat-dialog {
  border-color: rgba(67, 203, 215, 0.28);
  background:
    linear-gradient(
      135deg,
      rgba(67, 203, 215, 0.12),
      rgba(162, 237, 186, 0.08)),
    #0d211f;
}
html[data-theme=dark] .login-wechat-dialog-head strong {
  color: #eaf2ff;
}
html[data-theme=dark] .login-wechat-title small,
html[data-theme=dark] .login-wechat-processing small {
  color: #9aa9bc;
}
html[data-theme=dark] .login-wechat-close,
html[data-theme=dark] .login-socials button {
  border-color: rgba(148, 163, 184, 0.28);
  background: #0d211f;
  color: #eaf2ff;
}
html[data-theme=dark] .login-wechat-frame-shell {
  border-color: rgba(148, 163, 184, 0.28);
}
html[data-theme=dark] .login-wechat-processing {
  border-color: rgba(148, 163, 184, 0.28);
  background:
    radial-gradient(
      circle at 50% 18%,
      rgba(67, 203, 215, 0.16),
      transparent 38%),
    #102724;
  color: #eaf2ff;
}
html[data-theme=dark] .login-wechat-frame-cover {
  background:
    radial-gradient(
      circle at 50% 32%,
      rgba(67, 203, 215, 0.16),
      transparent 42%),
    #102724;
  color: #eaf2ff;
}
.page,
.model-page {
  width: min(940px, calc(100vw - 252px));
  margin: 0 auto;
  padding: 10px 0 64px;
}
.model-page.filter-mode {
  width: calc(100% - 36px);
  max-width: none;
  height: calc(100vh - 58px);
  margin: 0 18px;
  overflow: hidden;
  padding-top: 6px;
  padding-bottom: 16px;
}
.model-page:not(.filter-mode) {
  height: calc(100vh - 58px);
  overflow: hidden;
  padding-top: 6px;
  padding-bottom: 16px;
  width: calc(100% - 28px);
  max-width: none;
}
.shell:not(.sidebar-collapsed) .model-page:not(.filter-mode) {
  margin-left: 14px;
  margin-right: 14px;
}
.shell.sidebar-collapsed .model-page:not(.filter-mode) {
  width: calc(100% - 28px);
  max-width: none;
  margin-left: 14px;
  margin-right: 14px;
}
.models-frame {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.model-page:not(.filter-mode) .models-frame {
  height: 100%;
  min-height: 0;
}
.model-page:not(.filter-mode) .models-frame {
  border-left: 0;
  border-radius: 8px;
  padding: 0 12px 12px;
}
.models-content {
  min-width: 0;
  flex: 1;
}
.model-page:not(.filter-mode) .models-content {
  display: flex;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
.model-page:not(.filter-mode) .model-toolbar {
  margin-bottom: 14px;
}
.model-page.filter-mode .models-frame {
  display: grid;
  height: 100%;
  min-height: 0;
  align-items: stretch;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
}
.model-page.filter-mode .models-content {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
.model-filter-tree {
  position: absolute;
  z-index: 8;
  top: 52px;
  left: 12px;
  width: min(290px, calc(100vw - 292px));
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  border-right: 1px solid var(--panel-border);
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 0 0,
      rgba(54, 189, 209, 0.14),
      transparent 34%),
    linear-gradient(
      145deg,
      rgba(227, 248, 246, 0.96),
      rgba(255, 255, 255, 0.96));
  box-shadow: 0 18px 48px var(--brand-shadow);
  padding: 14px 16px;
}
.model-page.filter-mode .model-filter-tree {
  position: static;
  z-index: auto;
  grid-column: 1;
  grid-row: 1;
  width: auto;
  height: 100%;
  max-height: none;
  min-height: 0;
  border: 0;
  border-right: 1px solid var(--panel-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 18px 16px 0;
}
html[data-theme=dark] .model-filter-tree {
  background:
    radial-gradient(
      circle at 0 0,
      rgba(67, 203, 215, 0.16),
      transparent 34%),
    linear-gradient(
      145deg,
      rgba(10, 29, 27, 0.98),
      rgba(13, 33, 31, 0.98));
}
html[data-theme=dark] .model-page.filter-mode .model-filter-tree {
  background: transparent;
}
.filter-group + .filter-group {
  margin-top: 16px;
}
.filter-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 22px;
  margin: 0 0 14px;
  background: transparent;
  color: var(--filter-group);
  font-size: 13px;
  font-weight: 400;
  padding: 0;
  text-align: left;
}
.filter-group-title:hover {
  color: var(--accent);
}
.filter-chevron {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  color: var(--filter-group);
  line-height: 1;
}
.filter-chevron::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(225deg);
}
.filter-group-title[aria-expanded=false] .filter-chevron::before {
  transform: rotate(45deg);
}
.filter-group-title:hover .filter-chevron {
  color: var(--accent);
}
.filter-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--page-ink);
  gap: 6px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 400;
}
html[data-theme=dark] .filter-chip {
  background: rgba(15, 35, 32, 0.78);
}
.filter-chip:hover,
.filter-chip.active {
  border-color: var(--accent-ring);
  background: var(--soft-accent);
  color: var(--accent);
}
.provider-mark {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 6px;
  background: var(--brand-gradient-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
}
.provider-mark img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}
.provider-mark-image {
  border-radius: 0;
  background: transparent;
  color: inherit;
}
.provider-mark-image img {
  width: 16px;
  height: 16px;
}
.model-toolbar {
  display: grid;
  grid-template-columns: 136px minmax(280px, 520px);
  gap: 12px;
  justify-content: start;
  margin-bottom: 12px;
}
.model-page.filter-mode .model-toolbar {
  flex: 0 0 auto;
  grid-template-columns: 136px minmax(280px, 520px);
  margin-bottom: 14px;
}
.model-page.filter-mode .filter-toggle.active {
  border-color: var(--border);
  box-shadow: none;
}
.filter-toggle,
.search,
.search input {
  min-height: 40px;
}
.filter-toggle {
  border: 1px solid var(--accent-ring);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--control-ink);
  font-size: 14px;
  font-weight: 400;
  min-height: 40px;
}
.filter-icon {
  margin-right: 4px;
  color: var(--accent);
  font-size: 15px;
}
.filter-toggle.active {
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.filter-toggle:hover,
.ghost-button:hover,
.secondary-button:hover,
.amount-grid button:hover,
.pay-method:hover,
.choice-grid button:hover,
.prompt-suggestions button:hover,
.image-prompt-suggestions button:hover,
.tts-suggestions button:hover {
  border-color: var(--accent-ring);
  background: var(--soft-accent);
  color: var(--accent);
}
.search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
}
.search input {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 0 22px;
}
.search input::placeholder {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 400;
}
.search-button {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-left: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--muted);
  font-size: 28px;
}
.search-button:hover {
  background: var(--soft-accent);
  color: var(--accent);
}
.filter-panel {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--panel-bg);
  margin-bottom: 16px;
  padding: 14px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tab {
  min-height: 34px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--nav-item);
  padding: 0 12px;
}
.tab.active,
.tab:hover {
  background: var(--soft-accent);
  color: var(--accent);
}
.filter-selects {
  display: grid;
  grid-template-columns: 180px 180px;
  gap: 10px;
  margin-top: 12px;
}
.filter-selects select,
.filters-line select,
.filters-line input {
  min-height: 40px;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 0 12px;
}
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.summary-strip div {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--surface);
  padding: 12px 16px;
}
.summary-strip strong {
  display: block;
  color: var(--page-ink);
  font-size: 24px;
}
.summary-strip span {
  color: var(--muted);
  font-size: 12px;
}
.model-list {
  display: grid;
  gap: 16px;
}
.model-page:not(.filter-mode) .model-list {
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.model-page:not(.filter-mode) .model-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.model-page.filter-mode .model-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 1680px) {
  .model-page:not(.filter-mode) .model-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1500px) {
  .model-page.filter-mode .model-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 920px) {
  .model-page:not(.filter-mode) .model-list,
  .model-page.filter-mode .model-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.model-page.filter-mode .model-list,
.model-page.filter-mode .state-panel {
  min-height: 0;
}
.model-page.filter-mode .model-list {
  flex: 1 1 auto;
  height: auto;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 8px;
}
.model-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 8px;
  border-radius: 8px;
  background: var(--model-card-bg);
  color: var(--model-card-ink);
  padding: 20px 18px 18px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.model-page.filter-mode .model-row,
.model-page:not(.filter-mode) .model-row {
  min-height: 194px;
  padding: 14px 18px;
}
.model-page:not(.filter-mode) .model-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  max-height: none;
  overflow: hidden;
}
.model-row:hover {
  box-shadow: 0 0 0 1px var(--accent-ring), 0 16px 38px var(--brand-shadow);
  transform: translateY(-1px);
}
.model-row.pricing-unavailable {
  cursor: not-allowed;
  opacity: 0.72;
}
.model-row.pricing-unavailable:hover {
  box-shadow: none;
  transform: none;
}
html[data-theme=dark] .model-row {
  border: 1px solid rgba(104, 215, 193, 0.16);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
html[data-theme=dark] .model-row:hover {
  box-shadow: 0 0 0 1px var(--accent-ring), 0 16px 38px rgba(0, 0, 0, 0.28);
}
.model-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--model-card-ink);
  font-size: 13px;
  font-weight: 700;
}
.model-icon img {
  width: 28px;
  height: 28px;
  border-radius: 0;
  object-fit: contain;
}
.model-row .model-icon-image {
  background: transparent;
}
html[data-theme=dark] .model-icon {
  background: rgba(255, 255, 255, 0.08);
}
html[data-theme=dark] .model-row .model-icon-image {
  background: transparent;
}
.model-row .model-body {
  display: contents;
}
.model-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  grid-column: 2;
}
.model-heading h2 {
  margin: 0;
  overflow-wrap: anywhere;
  padding-right: 76px;
  color: var(--model-card-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}
.model-page:not(.filter-mode) .model-heading h2,
.model-page.filter-mode .model-heading h2 {
  display: -webkit-box;
  padding-right: 44px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  font-size: 15px;
  line-height: 1.28;
  -webkit-line-clamp: 2;
}
.model-heading p,
.model-desc {
  color: var(--model-card-muted);
}
.model-heading p {
  margin: 2px 0 0;
  font-size: 13px;
}
.model-page:not(.filter-mode) .model-heading p {
  font-size: 13px;
}
.model-desc {
  display: -webkit-box;
  grid-column: 1 / -1;
  max-height: calc(2 * 1.72em + 3px);
  margin: 3px 0 2px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.72;
  -webkit-line-clamp: 2;
}
.model-page:not(.filter-mode) .model-desc {
  max-height: calc(2 * 1.72em + 3px);
  min-height: 0;
  margin: 3px 0 2px;
  font-size: 13px;
  line-height: 1.72;
  -webkit-line-clamp: 2;
}
.model-page.filter-mode .model-desc {
  max-height: calc(2 * 1.72em + 3px);
  min-height: 0;
  -webkit-line-clamp: 2;
}
.ribbon {
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 4px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 12px;
  line-height: 1;
  padding: 3px 6px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
  max-height: 54px;
  align-content: flex-start;
  overflow: hidden;
}
.model-page:not(.filter-mode) .tag-row {
  gap: 6px;
}
.tag {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tag-border);
  border-radius: 5px;
  background: var(--tag-strong-bg);
  color: var(--tag-ink);
  font-size: 11px;
  font-weight: 430;
  line-height: 1;
  padding: 0 8px;
}
.model-page:not(.filter-mode) .tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.model-page:not(.filter-mode) .tag-row .tag:nth-child(n+6) {
  display: none;
}
.model-page.filter-mode .tag-row .tag:nth-child(n+6) {
  display: none;
}
.tag.strong {
  border: 1px solid var(--tag-border);
  background: var(--tag-strong-bg);
  color: var(--tag-strong-ink);
}
.tag.unavailable {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}
.ghost-button {
  align-self: end;
  min-width: 88px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--accent);
}
.image-workbench {
  display: grid;
  grid-template-columns: var(--pg-config-width) minmax(0, 1fr);
  height: calc(100vh - 58px);
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 88% 88%,
      rgba(54, 189, 209, 0.12),
      transparent 32%),
    var(--surface);
  color: var(--page-ink);
}
.image-config {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--panel-border);
  background:
    linear-gradient(
      145deg,
      var(--soft-accent-2),
      var(--surface) 58%);
  padding: 16px 18px 24px 18px;
}
.image-field {
  display: block;
  margin-bottom: 18px;
  color: var(--page-ink);
}
.image-field > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 7px;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
}
.image-field i {
  display: inline-grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border: 1px solid #9aa9bc;
  border-radius: 50%;
  color: #9aa9bc;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}
.image-field select,
.image-field input,
.image-field textarea {
  width: 100%;
  min-height: 34px;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 0 10px;
  font-size: 14px;
}
.image-field textarea {
  min-height: 64px;
  padding: 9px 10px;
  resize: vertical;
}
.ratio-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.ratio-grid button {
  display: grid;
  min-height: 50px;
  place-items: center;
  border-right: 1px solid var(--border);
  background: var(--control-bg);
  color: var(--page-ink);
  font-size: 12px;
  font-weight: 400;
}
.ratio-grid button:last-child {
  border-right: 0;
}
.ratio-grid button.active {
  position: relative;
  z-index: 1;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin: -1px;
}
.ratio-grid strong {
  font-weight: 400;
}
.ratio-icon {
  display: block;
  width: 17px;
  height: 17px;
  border: 1.5px dashed currentColor;
  border-radius: 4px;
}
.ratio-3-2,
.ratio-16-9,
.ratio-4-3 {
  width: 22px;
  height: 14px;
}
.ratio-9-16,
.ratio-3-4 {
  width: 13px;
  height: 22px;
}
.seed-input {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 8px;
}
.seed-input input {
  border-radius: 8px;
}
.seed-input button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 34px;
  padding: 0;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--page-ink);
  font-size: 15px;
  cursor: pointer;
}
.seed-input button:hover {
  border-color: var(--accent);
}
.required-mark {
  color: #ef4444;
  font-weight: 500;
}
.playground-control {
  display: block;
  margin-bottom: 18px;
  color: var(--page-ink);
}
.play-control-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
.play-control-label-text {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}
.image-config .playground-control select,
.image-config .playground-control input:not([type=range]):not([type=file]):not([type=hidden]),
.image-config .playground-control textarea,
.tts-config .playground-control select,
.tts-config .playground-control input:not([type=range]):not([type=file]):not([type=hidden]),
.tts-config .playground-control textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 0 10px;
  font-size: 14px;
  font-weight: 400;
}
.image-config .playground-control textarea,
.tts-config .playground-control textarea {
  min-height: 64px;
  padding: 9px 10px;
  resize: vertical;
}
.image-config .play-slider-control,
.tts-config .play-slider-control,
.operation-config .play-slider-control,
.text-playground .play-config .play-slider-control {
  margin-bottom: 22px;
}
.playground-segmented strong {
  font-weight: 400;
}
.playground-upload-input {
  display: none;
}
.playground-upload-control {
  position: relative;
}
.playground-upload-control .upload-box {
  display: grid;
  min-height: 58px;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border: 1px dashed var(--accent-ring);
  border-radius: 8px;
  background: var(--soft-accent);
  color: var(--accent);
  padding: 8px 10px;
  text-align: center;
}
.playground-upload-control .upload-box .upload-thumb {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--surface-muted);
  object-fit: cover;
}
.playground-upload-control .upload-box.has-thumb .upload-thumb {
  display: block;
}
.playground-upload-control .upload-box.has-thumb span {
  display: none;
}
.playground-upload-control .upload-box .upload-texts {
  display: contents;
}
.playground-upload-control .upload-box span {
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
}
.playground-upload-control .upload-box strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playground-upload-control .upload-box small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playground-upload-control .upload-box.has-file {
  border-style: solid;
  background: var(--control-bg);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}
.playground-upload-control .upload-box.has-file .upload-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.playground-upload-control .upload-box.has-file strong,
.playground-upload-control .upload-box.has-file small {
  text-align: left;
}
.playground-upload-control .upload-clear {
  display: none;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.playground-upload-control.has-file .upload-clear {
  display: inline-flex;
}
.playground-upload-control .upload-clear:hover {
  color: #e5484d;
  background: rgba(229, 72, 77, 0.08);
}
.playground-empty-config {
  border: 1px dashed var(--panel-border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  padding: 12px;
}
.video-upload-button {
  display: inline-flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--control-bg);
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
}
.video-upload-button span {
  color: var(--accent);
  font-size: 15px;
}
.image-stage {
  display: flex;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 18px 36px 20px;
}
.image-output-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cost-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex: 0 0 auto;
  min-height: 34px;
  align-items: center;
  gap: 22px;
  border-radius: 8px;
  background: var(--soft-accent);
  color: var(--page-ink);
  margin-bottom: 18px;
  padding: 0 18px;
  font-size: 14px;
}
.cost-bar strong {
  min-width: 132px;
  font-size: 14px;
  font-weight: 500;
}
.cost-bar span {
  color: var(--page-ink);
}
.cost-bar button,
.image-terms button {
  background: transparent;
  color: var(--accent);
  font-weight: 600;
}
.image-preview {
  position: relative;
  width: min(560px, 72vw);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  background:
    radial-gradient(
      circle at 72% 18%,
      rgba(250, 196, 130, 0.82),
      transparent 28%),
    linear-gradient(
      180deg,
      #f3e2b4 0%,
      #cfdbc1 36%,
      #8cb7a9 66%,
      #517c75 100%);
  margin: 0 auto 16px;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.05);
}
.video-preview {
  position: relative;
  width: min(1040px, 100%);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: #030403;
  margin: 0 auto 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.video-scene {
  position: absolute;
  inset: 0 6.4%;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 74% 28%,
      rgba(166, 212, 134, 0.46),
      transparent 18%),
    radial-gradient(
      circle at 16% 46%,
      rgba(136, 164, 162, 0.7),
      transparent 18%),
    linear-gradient(
      115deg,
      #456a34 0%,
      #7a9a61 24%,
      #2d3c2d 54%,
      #78965d 100%);
  filter: saturate(0.94);
}
.video-forest {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 12% 60%,
      rgba(34, 24, 30, 0.55),
      transparent 9%),
    radial-gradient(
      circle at 87% 45%,
      rgba(39, 82, 35, 0.9),
      transparent 20%),
    repeating-linear-gradient(
      100deg,
      rgba(13, 29, 18, 0.32) 0 6px,
      transparent 6px 34px);
  filter: blur(1.2px);
}
.video-face {
  position: absolute;
  left: 51%;
  top: 24%;
  width: 22%;
  height: 39%;
  transform: translateX(-50%);
  border-radius: 48% 48% 44% 44%;
  background:
    radial-gradient(
      circle at 35% 38%,
      #172033 0 4px,
      transparent 5px),
    radial-gradient(
      circle at 66% 38%,
      #172033 0 4px,
      transparent 5px),
    radial-gradient(
      ellipse at 54% 68%,
      rgba(202, 80, 99, 0.55),
      transparent 18%),
    linear-gradient(
      180deg,
      #d7a78f,
      #f2c4ae 48%,
      #c98c7e);
  box-shadow: 0 24px 48px rgba(14, 22, 20, 0.35);
}
.video-hat {
  position: absolute;
  left: 49%;
  top: 8%;
  width: 38%;
  height: 18%;
  transform: translateX(-50%);
  border-radius: 50% 50% 18% 18%;
  background:
    linear-gradient(
      180deg,
      #05070b,
      #101827);
  box-shadow: 0 16px 12px rgba(0, 0, 0, 0.38);
}
.video-hat::before {
  content: "";
  position: absolute;
  left: 38%;
  bottom: 48%;
  width: 22%;
  height: 120%;
  border-radius: 12px 12px 0 0;
  background: #07090e;
}
.video-coat {
  position: absolute;
  left: 49%;
  bottom: -16%;
  width: 38%;
  height: 38%;
  transform: translateX(-50%);
  border-radius: 36% 36% 0 0;
  background:
    linear-gradient(
      160deg,
      #245a93,
      #527ba6 56%,
      #1a375f);
}
.video-coat::before {
  content: "";
  position: absolute;
  left: 42%;
  top: 0;
  width: 16%;
  height: 68%;
  background: #ecfbfb;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(44, 30, 28, 0.54);
  color: rgba(255, 255, 255, 0.92);
  font-size: 34px;
  line-height: 1;
  padding-left: 5px;
}
.preview-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(255, 116, 82, 0.76),
      transparent 16%),
    radial-gradient(
      circle at 84% 17%,
      rgba(255, 128, 92, 0.72),
      transparent 15%),
    radial-gradient(
      circle at 18% 78%,
      rgba(42, 119, 96, 0.58),
      transparent 22%),
    radial-gradient(
      circle at 90% 82%,
      rgba(31, 110, 95, 0.6),
      transparent 24%);
  filter: saturate(1.05);
}
.preview-mountain {
  position: absolute;
  bottom: 24%;
  width: 42%;
  height: 58%;
  border-radius: 42% 58% 0 0;
  background:
    linear-gradient(
      150deg,
      rgba(64, 109, 88, 0.8),
      rgba(205, 219, 183, 0.42));
  filter: blur(1px);
  opacity: 0.72;
}
.preview-mountain.one {
  left: 6%;
}
.preview-mountain.two {
  right: 5%;
}
.preview-scroll {
  position: absolute;
  bottom: 17%;
  width: 8%;
  height: 38%;
  border-radius: 999px 999px 22px 22px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(132, 86, 34, 0.28) 0 1px,
      transparent 1px 8px),
    linear-gradient(
      90deg,
      #c28235,
      #ffe3a5 18%,
      #d49b4d 88%,
      #8c551f);
  box-shadow: 0 16px 20px rgba(56, 42, 25, 0.22);
}
.preview-scroll.left {
  left: 31%;
  transform: rotate(8deg);
}
.preview-scroll.center {
  left: 49%;
  height: 50%;
  transform: translateX(-50%) rotate(2deg);
}
.preview-scroll.right {
  right: 31%;
  transform: rotate(-10deg);
}
.preview-person {
  position: absolute;
  width: 24px;
  height: 48px;
  border-radius: 50% 50% 30% 30%;
  background:
    linear-gradient(
      180deg,
      #172033 0 18%,
      #2d6b55 18% 100%);
  box-shadow: 0 3px 0 #bc8036;
}
.preview-person.left {
  left: 34%;
  top: 37%;
  transform: scale(0.76);
}
.preview-person.center {
  left: 50%;
  top: 24%;
  transform: translateX(-50%);
}
.preview-person.right {
  right: 33%;
  top: 42%;
  transform: scale(0.72);
}
.preview-pond {
  position: absolute;
  right: -8%;
  bottom: -7%;
  left: -8%;
  height: 30%;
  background:
    radial-gradient(
      ellipse at center,
      rgba(180, 218, 201, 0.8),
      rgba(34, 106, 100, 0.74));
  filter: blur(1px);
}
.image-prompt-suggestions {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.image-prompt-suggestions button {
  min-height: 28px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  padding: 0 14px;
  font-size: 13px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prompt-suggestions button.active,
.image-prompt-suggestions button.active,
.tts-suggestions button.active {
  border-color: var(--accent);
  box-shadow: none;
}
.image-prompt-box {
  position: relative;
  flex: 0 0 auto;
  margin-bottom: 12px;
}
.image-prompt-box textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 14px 72px 14px 16px;
  font-size: 14px;
}
.image-prompt-box:focus-within textarea,
.text-playground .prompt-box:focus-within textarea,
.image-prompt-box textarea:focus,
.image-prompt-box textarea:focus-visible,
.text-playground .prompt-box textarea:focus,
.text-playground .prompt-box textarea:focus-visible {
  border-color: var(--accent);
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--accent-ring);
}
.image-send-button {
  position: absolute;
  right: 14px;
  bottom: 28px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-size: 20px;
  box-shadow: 0 8px 18px var(--brand-shadow);
}
.image-terms {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.tts-workbench {
  display: grid;
  grid-template-columns: var(--pg-config-width) minmax(0, 1fr);
  height: calc(100vh - 58px);
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 88% 88%,
      rgba(54, 189, 209, 0.12),
      transparent 32%),
    var(--surface);
  color: var(--page-ink);
}
.tts-config {
  min-height: 0;
  overflow-y: auto;
  border-right: 1px solid var(--panel-border);
  background:
    linear-gradient(
      145deg,
      var(--soft-accent-2),
      var(--surface) 58%);
  padding: 16px 18px 24px;
}
.tts-field {
  display: block;
  margin-bottom: 18px;
}
.tts-slider-field {
  margin-bottom: 26px;
}
.tts-field > span,
.tts-field-head span {
  display: inline-flex;
  align-items: center;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
.tts-field > span {
  gap: 4px;
  margin-bottom: 7px;
  line-height: normal;
}
.tts-field select {
  width: 100%;
  min-height: 34px;
  border-color: #cfd9e8;
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 0 10px;
  font-size: 14px;
  font-weight: 400;
  margin-top: 0;
}
.tts-field-head input {
  width: 100%;
  min-height: 36px;
  border-color: #cfd9e8;
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 400;
}
.tts-field-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.tts-range {
  width: 100%;
  height: 14px;
  min-height: 14px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  padding: 0;
  appearance: none;
}
.tts-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--accent) var(--range-progress, 50%),
      var(--surface-muted) 0);
}
.tts-range::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  appearance: none;
  background: var(--surface);
}
.tts-range::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-muted);
}
.tts-range::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}
.tts-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}
.tts-stage {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 18px 36px 20px;
}
.tts-empty-state {
  position: relative;
  display: grid;
  min-height: 300px;
  flex: 1;
  place-items: center;
}
.tts-planet {
  position: relative;
  width: 280px;
  height: 170px;
  color: #d9e1ec;
}
.tts-planet::before {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 72px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    linear-gradient(
      180deg,
      #eef3f8,
      rgba(255, 255, 255, 0));
  content: "";
}
.tts-speech {
  position: absolute;
  left: 78px;
  top: 42px;
  width: 50px;
  height: 42px;
  border-radius: 9px;
  background: #dde5ee;
}
.tts-speech::before {
  position: absolute;
  left: -16px;
  bottom: -13px;
  width: 24px;
  height: 22px;
  border: 6px solid #dde5ee;
  border-top: 0;
  border-radius: 0 0 0 12px;
  content: "";
}
.tts-speech::after {
  position: absolute;
  right: -48px;
  top: 24px;
  color: #ccd5e1;
  content: "->";
  font-size: 18px;
  font-weight: 300;
}
.tts-mic {
  position: absolute;
  right: 72px;
  top: 36px;
  width: 28px;
  height: 54px;
  border-radius: 18px;
  background: #dde5ee;
}
.tts-mic::before {
  position: absolute;
  left: -11px;
  bottom: -16px;
  width: 50px;
  height: 32px;
  border: 6px solid #dde5ee;
  border-top: 0;
  border-radius: 0 0 28px 28px;
  content: "";
}
.tts-mic::after {
  position: absolute;
  left: 10px;
  bottom: -32px;
  width: 8px;
  height: 28px;
  border-radius: 999px;
  background: #dde5ee;
  box-shadow: -14px 28px 0 -3px #dde5ee, 14px 28px 0 -3px #dde5ee;
  content: "";
}
.tts-bottom-panel {
  display: block;
  position: relative;
  flex: 0 0 auto;
}
.tts-suggestions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  padding-right: 46px;
}
.tts-suggestions button {
  min-height: 28px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--model-card-muted);
  padding: 0 12px;
  font-size: 13px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tts-suggestions .tts-clear {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 36px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--panel-border);
  background: var(--surface);
  color: var(--muted);
  font-size: 16px;
}
.tts-prompt-box {
  position: relative;
  height: 115px;
  margin-bottom: 12px;
}
.tts-prompt-box textarea {
  display: block;
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border-color: var(--panel-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 14px 72px 14px 16px;
  font-size: 14px;
  font-weight: 400;
}
.tts-prompt-box textarea::placeholder {
  color: #9aa9bc;
}
.tts-prompt-box:focus-within textarea,
.tts-prompt-box textarea:focus,
.tts-prompt-box textarea:focus-visible,
.tts-field select:focus,
.tts-field select:focus-visible,
.tts-field-head input:focus,
.tts-field-head input:focus-visible {
  border-color: var(--accent);
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--accent-ring);
}
.tts-send {
  position: absolute;
  right: 14px;
  bottom: 28px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-size: 20px;
  font-weight: 400;
  box-shadow: 0 8px 18px var(--brand-shadow);
}
.tts-terms {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.tts-terms button {
  background: transparent;
  color: var(--accent);
  font-size: inherit;
  font-weight: 500;
}
.playground {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(320px, 1fr);
  gap: 26px;
  min-height: calc(100vh - 70px);
  padding: 0 28px 36px;
}
.play-config {
  border-right: 1px solid var(--panel-border);
  padding: 10px 24px 0 0;
}
.play-config label {
  display: block;
  margin: 18px 0 8px;
  color: var(--chrome-title);
}
.play-config select,
.play-config input,
.play-config textarea {
  width: 100%;
  min-height: 42px;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 0 12px;
}
.play-config textarea {
  min-height: 72px;
  padding: 10px 12px;
}
.upload-box {
  width: 100%;
  min-height: 92px;
  border: 1px dashed var(--accent-ring);
  border-radius: 8px;
  background: var(--soft-accent);
  color: var(--accent);
  font-weight: 700;
}
.compare-button,
.primary-button,
.secondary-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 16px;
}
.compare-button,
.primary-button {
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-weight: 700;
  box-shadow: 0 10px 24px var(--brand-shadow);
}
.compare-button {
  display: block;
  margin: 22px auto;
}
.secondary-button {
  border: 1px solid var(--border);
  background: var(--control-bg);
  color: var(--control-ink);
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.segmented button {
  min-height: 40px;
  border-right: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--control-ink);
}
.segmented button.active {
  background: var(--soft-accent);
  color: var(--accent);
}
.play-stage {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding-top: 10px;
}
.moa-model-icon {
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}
.moa-component-list {
  display: grid;
  gap: 10px;
}
.moa-component-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
}
.moa-component-item strong {
  color: var(--page-ink);
}
.moa-component-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.moa-component-role {
  justify-self: start;
  border-radius: 999px;
  background: var(--soft-accent);
  color: var(--accent);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
}
.playground-model-select-option-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.playground-model-select-option-name em {
  border-radius: 999px;
  background: var(--soft-accent);
  color: var(--accent);
  padding: 2px 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.moa-result-panel {
  display: grid;
  gap: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}
.moa-result-panel header,
.moa-result-panel article,
.moa-result-panel dl,
.moa-usage-table {
  min-width: 0;
}
.moa-result-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--page-ink);
}
.playground-routing {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--surface-muted);
  padding: 8px 10px;
  font-size: 12px;
}
.playground-routing span {
  color: var(--muted);
  flex-shrink: 0;
}
.playground-routing b {
  color: var(--page-ink);
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.moa-result-panel article {
  max-height: 42vh;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--page-ink);
  font-size: 14px;
  line-height: 1.7;
}
.moa-result-panel dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 0;
}
.moa-result-panel dl > div {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 10px;
}
.moa-result-panel dt {
  color: var(--muted);
  font-size: 11px;
}
.moa-result-panel dd {
  margin: 4px 0 0;
  color: var(--page-ink);
  font-weight: 700;
}
.moa-result-panel.loading,
.moa-result-panel.error {
  justify-items: start;
}
.moa-result-panel.loading strong,
.moa-result-panel.error strong {
  color: var(--page-ink);
}
.moa-result-panel.error p {
  margin: 0;
  color: #dc2626;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.moa-usage-table {
  display: grid;
  min-width: 780px;
  grid-template-columns: 0.7fr 1.5fr 1fr 0.7fr 0.7fr 0.8fr 0.8fr;
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}
.moa-usage-head,
.moa-usage-row {
  display: grid;
  grid-template-columns: subgrid;
  gap: 10px;
  padding: 10px 12px;
}
.moa-usage-head {
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.moa-usage-row {
  border-top: 1px solid var(--panel-border);
  color: var(--page-ink);
  font-size: 12px;
}
.moa-usage-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.conversation-space {
  flex: 1;
}
.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}
.prompt-suggestions button {
  max-width: 124px;
  min-height: 34px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--nav-item);
  padding: 0 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prompt-box {
  display: grid;
  grid-template-columns: 1fr 54px;
  gap: 10px;
}
.prompt-box textarea {
  min-height: 104px;
  resize: vertical;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 14px;
}
.send-button {
  align-self: end;
  height: 54px;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-size: 24px;
  box-shadow: 0 10px 24px var(--brand-shadow);
}
.terms {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.text-playground {
  grid-template-columns: var(--pg-config-width) minmax(0, 1fr);
  gap: 0;
  height: calc(100vh - 58px);
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
  padding: 0;
  background:
    radial-gradient(
      circle at 88% 88%,
      rgba(54, 189, 209, 0.12),
      transparent 32%),
    var(--surface);
  color: var(--page-ink);
}
.text-playground .play-config {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(
      145deg,
      var(--soft-accent-2),
      var(--surface) 58%);
  padding: 16px 18px 24px;
}
.text-playground .play-config label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0 6px;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 500;
}
.text-playground .play-config > label:first-child {
  gap: 4px;
  margin: 0 0 7px;
  font-weight: 400;
}
.text-playground .play-config > select:first-of-type {
  padding: 0 10px;
}
.text-playground .play-config label.playground-control {
  display: block;
  margin: 0 0 18px;
  font-weight: 400;
}
.text-playground .play-config label.playground-control .play-control-label {
  display: inline-flex;
  margin-bottom: 7px;
}
.text-playground .play-config select,
.text-playground .play-config .play-value-input {
  min-height: 34px;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 400;
}
.play-help {
  flex: 0 0 13px;
  display: inline-grid;
  width: 13px;
  min-width: 13px;
  max-width: 13px;
  height: 13px;
  min-height: 13px;
  max-height: 13px;
  place-items: center;
  border: 1px solid var(--muted);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: help;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  box-sizing: border-box;
  padding: 0;
}
.play-slider-control label {
  position: relative;
}
.play-help.active {
  border-color: var(--accent);
  color: var(--accent);
}
.play-help-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 20;
  width: max-content;
  max-width: min(230px, calc(100vw - 48px));
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  color: var(--page-ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  padding: 8px 10px;
  white-space: normal;
}
.play-help-popover::before {
  position: absolute;
  top: -5px;
  left: 18px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--panel-border);
  border-left: 1px solid var(--panel-border);
  background: var(--surface);
  content: "";
  transform: rotate(45deg);
}
html[data-theme=dark] .play-help-popover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}
.play-slider-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 6px 12px;
  margin-top: 10px;
}
.play-slider-control label {
  display: inline-flex;
  align-items: center;
  grid-column: 1;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  gap: 8px;
  min-width: 0;
}
.play-value-input {
  grid-column: 2;
  grid-row: 1;
}
.play-range {
  grid-column: 1 / -1;
  width: 100%;
  height: 14px;
  min-height: 14px;
  border: 0;
  border-radius: 0;
  padding: 0;
  appearance: none;
  background: transparent !important;
  box-shadow: none;
}
.text-playground .play-config .play-range {
  height: 14px;
  min-height: 14px;
}
.play-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      var(--accent) var(--range-progress, 50%),
      var(--surface-muted) 0);
}
.play-range::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -5.5px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  appearance: none;
  background: var(--surface);
}
.play-range::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-muted);
}
.play-range::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}
.play-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--surface);
}
.text-playground .compare-button {
  min-height: 38px;
  margin: 18px auto 0;
  border-radius: 7px;
  background: var(--brand-gradient-soft);
  color: var(--accent);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}
.text-compare-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.text-compare-actions .compare-button {
  width: 100%;
  margin: 0;
  padding: 0 10px;
}
.text-compare-actions .compare-button.secondary {
  border: 1px solid var(--panel-border);
  background: var(--surface-muted);
  color: var(--page-ink);
}
.text-config-block + .text-config-block {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-border);
}
.text-playground .play-config .text-config-block > label:first-of-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 7px;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
}
.text-playground .play-config .text-config-block > .playground-model-select {
  margin-bottom: 18px;
}
.operation-config label.playground-control > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 7px;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
}
.text-config-divider {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.text-playground .play-stage {
  display: flex;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 18px 36px 20px;
}
.play-warning-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-brand);
  font-size: 12px;
  font-weight: 700;
}
.text-playground .conversation-space {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.text-compare-stage {
  gap: 0;
}
.text-compare-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1 1 auto;
  min-height: 0;
  gap: 22px;
  margin-bottom: 12px;
}
.text-conversation-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}
.text-conversation-panel + .text-conversation-panel {
  border-left: 1px solid var(--panel-border);
  padding-left: 22px;
}
.text-compare-panels .cost-bar.usage-notice {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  white-space: nowrap;
}
.text-compare-panels .cost-bar.usage-notice strong,
.text-compare-panels .cost-bar.usage-notice > span,
.text-compare-panels .cost-bar.usage-notice button {
  flex: 0 0 auto;
  white-space: nowrap;
}
.text-playground .prompt-suggestions {
  flex: 0 0 auto;
  display: flex;
  min-width: 0;
  width: 100%;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
  overflow: visible;
  padding: 0;
}
.text-playground .prompt-suggestions button {
  flex: 0 0 auto;
  max-width: 220px;
  min-height: 28px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}
.text-playground .prompt-box {
  position: relative;
  display: block;
  flex: 0 0 auto;
  margin-bottom: 12px;
}
.text-playground .prompt-box textarea {
  width: 100%;
  min-height: 112px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 14px 72px 14px 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.text-playground .prompt-box textarea::placeholder {
  color: var(--muted);
}
.prompt-clear {
  position: absolute;
  right: 0;
  top: -40px;
  display: none;
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: var(--control-bg);
  color: var(--page-ink);
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.text-playground .prompt-clear,
.operation-prompt-box .prompt-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.text-playground .send-button {
  position: absolute;
  right: 14px;
  bottom: 28px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-size: 20px;
  box-shadow: 0 8px 18px var(--brand-shadow);
}
.text-playground .terms {
  flex: 0 0 auto;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
.cost-bar.usage-notice {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(132px, auto) minmax(0, 1fr);
  min-height: 38px;
  align-items: center;
  justify-content: stretch;
  gap: 22px;
  align-self: stretch;
  border-radius: 8px;
  background: var(--soft-accent);
  color: var(--page-ink);
  margin: 0 0 18px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 400;
}
.cost-bar.usage-notice strong {
  min-width: 132px;
  margin: 0;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}
.cost-bar.usage-notice > span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}
.usage-warning-icon {
  flex: 0 0 auto;
  color: var(--page-ink);
  font-size: 14px;
  line-height: 1;
}
.cost-bar.usage-notice button {
  margin-left: 0;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.terms.playground-terms,
.image-terms.playground-terms,
.tts-terms.playground-terms {
  flex: 0 0 auto;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}
.playground-terms button {
  background: transparent;
  color: var(--accent);
  font-size: inherit;
  font-weight: 600;
}
.send-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.send-button,
.image-send-button,
.tts-send {
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
  color: var(--on-brand);
}
.text-playground .prompt-box textarea,
.image-prompt-box textarea,
.tts-prompt-box textarea {
  border: 1px solid var(--panel-border);
  background: var(--input-bg);
  color: var(--input-ink);
  font-size: 14px;
  font-weight: 400;
}
.text-playground .prompt-box textarea::placeholder,
.image-prompt-box textarea::placeholder,
.tts-prompt-box textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.warning,
.info-block {
  border-radius: 8px;
  background: var(--warning);
  color: var(--warning-ink);
  line-height: 1.7;
  margin-bottom: 18px;
  padding: 14px 18px;
}
.warning button {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}
.page-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}
.table-card {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--table-bg);
  color: var(--card-ink);
}
.legal-page {
  min-height: 100vh;
  width: min(960px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}
.legal-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}
.legal-back {
  justify-self: start;
  min-height: 34px;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: var(--control-bg);
  color: var(--control-ink);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}
.legal-back:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.legal-hero p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.legal-hero h2 {
  margin: 0 0 10px;
  color: var(--page-ink);
  font-size: 28px;
  line-height: 1.25;
}
.legal-hero span {
  display: block;
  max-width: 820px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.legal-card {
  display: grid;
  gap: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--card);
  color: var(--card-ink);
  padding: 28px;
}
.legal-section h3 {
  margin: 0 0 10px;
  color: var(--card-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}
.legal-section p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}
table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}
th,
td {
  border-bottom: 1px solid var(--panel-border);
  padding: 16px;
  text-align: left;
}
th {
  background: var(--surface-muted);
  font-size: 14px;
}
.empty-table {
  display: grid;
  min-height: 150px;
  place-items: center;
  color: var(--muted);
}
.benefit-grid,
.doc-grid,
.choice-grid {
  display: grid;
  gap: 14px;
}
.account-page {
  width: min(1000px, calc(100vw - 252px));
}
.panel-head,
.auth-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wallet-tab {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}
.wallet-tab.active {
  border-color: var(--accent);
  background: var(--brand-gradient-soft);
}
.wallet-tab strong,
.wallet-tab span,
.wallet-tab small {
  display: block;
}
.wallet-tab strong {
  margin: 12px 0 4px;
  color: var(--accent-2);
  font-size: 26px;
}
.auth-gift {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.form-panel {
  border: 1px dashed var(--accent-ring);
  border-radius: 8px;
  margin-bottom: 26px;
  padding: 26px;
}
.form-panel h2,
.section-title {
  margin: 0 0 16px;
}
.auth-card h2,
.panel-head h2 {
  margin-bottom: 0;
}
.auth-detail {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}
.auth-detail div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
}
.auth-detail dt {
  color: var(--muted);
}
.auth-detail dd {
  margin: 0;
}
.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 12px;
  max-width: 720px;
}
.amount-grid button,
.pay-method,
.choice-grid button {
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--control-ink);
}
.pay-submit {
  display: block;
  width: min(360px, 100%);
  min-height: 54px;
  border-radius: 8px;
  margin: 16px 0;
  background: var(--surface-muted);
  color: var(--muted);
}
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.filters-line {
  display: grid;
  grid-template-columns: 100px 1fr 1fr 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.bills-page {
  width: calc(100% - 64px);
  max-width: none;
  margin: 22px 32px 64px;
  padding: 0;
}
.bills-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.bills-date-control,
.bills-select-control,
.bills-mini-select button,
.export-button {
  position: relative;
  min-height: 42px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
}
.bills-date-control {
  display: grid;
  position: relative;
  grid-template-columns: 88px auto;
  align-items: center;
  padding: 0;
}
.bills-date-control-month {
  width: min(100%, 272px);
}
.bills-date-control-day {
  width: min(100%, 426px);
}
.bills-date-control-minute {
  width: min(100%, 596px);
}
.bills-period-button {
  height: 100%;
  border-right: 1px solid var(--panel-border);
  border-radius: 0;
  background: transparent;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
}
.bills-date-control.open,
.bills-select-wrap.open .bills-select-control,
.bills-mini-select.open > button {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(54, 190, 204, 0.12);
}
.bills-date-inputs {
  display: grid;
  grid-template-columns: 136px 18px 136px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 12px;
}
.bills-date-inputs.single {
  grid-template-columns: 148px;
}
.bills-month-field {
  position: relative;
  min-width: 0;
}
.bills-month-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 34px;
  padding: 0 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--page-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
}
.bills-month-trigger > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bills-month-trigger > span:last-child {
  color: var(--muted);
}
.bills-month-picker {
  right: auto;
  width: 246px;
  min-width: 246px;
  z-index: 40;
}
.bills-month-picker-head {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  margin-bottom: 8px;
}
.bills-month-picker-head strong {
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.bills-month-picker-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 32px;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: transparent;
  color: var(--page-ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.bills-month-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.bills-month-picker-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--page-ink);
  cursor: pointer;
  font-size: 13px;
}
.bills-month-picker-head button:hover,
.bills-month-picker-grid button:hover {
  background: rgba(54, 190, 204, 0.1);
  color: var(--accent);
}
.bills-month-picker-grid button.active {
  border-color: rgba(54, 190, 204, 0.36);
  background: rgba(54, 190, 204, 0.14);
  color: var(--accent);
  font-weight: 600;
}
.bills-date-control-minute .bills-date-inputs {
  grid-template-columns: 220px 18px 220px;
}
.bills-date-inputs input {
  min-width: 0;
  width: 100%;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
  outline: 0;
}
.bills-date-inputs span {
  text-align: center;
}
.bills-date-control span,
.bills-period-button span,
.bills-select-control span,
.bills-mini-select button span {
  color: var(--muted);
  font-style: normal;
}
.bills-select-wrap,
.bills-mini-select {
  position: relative;
}
.bills-select-wrap {
  width: min(100%, 220px);
}
.bills-select-control,
.bills-mini-select button,
.export-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
}
.bills-select-control {
  width: 100%;
  color: var(--muted);
}
.bills-select-control i {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-style: normal;
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}
.bills-dropdown {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 100%;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(54, 190, 204, 0.18);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}
.bills-dropdown button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
  justify-content: flex-start;
  text-align: left;
}
.bills-dropdown button:hover,
.bills-dropdown button.active {
  background: rgba(54, 190, 204, 0.1);
  color: var(--accent);
}
.bills-period-menu {
  width: 112px;
  min-width: 112px;
}
.bills-product-menu {
  width: 280px;
}
.bills-product-menu button {
  gap: 12px;
}
.bills-checkbox {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.bills-product-menu button.active .bills-checkbox {
  border-color: var(--accent);
  background: rgba(54, 190, 204, 0.12);
}
.bill-summary {
  display: inline-grid;
  width: auto;
  max-width: 100%;
  grid-template-columns: auto auto auto auto auto auto auto;
  align-items: center;
  column-gap: 22px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--page-ink);
  margin-bottom: 18px;
  padding: 18px 26px;
}
.bill-summary div {
  position: relative;
}
.bill-summary-operator {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.bill-summary span,
.bill-summary strong {
  display: block;
}
.bill-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.bill-summary strong {
  margin-top: 6px;
  color: var(--page-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
}
.bill-summary div.primary strong {
  color: var(--accent);
}
.bills-breakdown-toolbar {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 16px;
}
.bills-tabs {
  display: inline-flex;
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 4px;
}
.bills-tabs button {
  min-width: 76px;
  min-height: 34px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.bills-tabs button.active {
  background: var(--surface);
  color: var(--page-ink);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.bills-allocation-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.bills-dimension-check {
  display: inline-flex;
  min-height: 38px;
  min-width: 118px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--control-bg);
  color: var(--page-ink);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 400;
}
.bills-dimension-check.checked {
  border-color: rgba(54, 190, 204, 0.58);
  background: rgba(54, 190, 204, 0.08);
}
.bills-dimension-box {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  background: var(--surface);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.bills-dimension-check.checked .bills-dimension-box {
  border-color: var(--accent);
  background: var(--accent);
}
.bills-export-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}
.text-action {
  background: transparent;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.export-button {
  min-width: 92px;
  min-height: 38px;
  justify-content: center;
  gap: 8px;
}
.export-button span {
  color: var(--accent);
}
.bills-mini-select > button {
  min-width: 128px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--page-ink);
}
.bills-mini-menu {
  min-width: 136px;
}
.bills-table-card {
  overflow-x: scroll;
  padding-bottom: 8px;
  border-radius: 8px;
  background: var(--table-bg);
  color: var(--card-ink);
  scrollbar-color: rgba(54, 190, 204, 0.55) rgba(54, 190, 204, 0.12);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}
.bills-table-card::-webkit-scrollbar {
  height: 10px;
}
.bills-table-card::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(54, 190, 204, 0.12);
}
.bills-table-card::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(54, 190, 204, 0.62);
}
.bills-table-card::-webkit-scrollbar-thumb:hover {
  background: rgba(54, 190, 204, 0.82);
}
.bills-table-card.detail table {
  min-width: 1740px;
}
.bills-table-card.allocation table {
  min-width: 1120px;
}
.bills-table-card th,
.bills-table-card td {
  height: 58px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 400;
  vertical-align: middle;
  white-space: nowrap;
}
.bills-table-card th {
  background: var(--surface-muted);
  color: var(--page-ink);
  font-weight: 600;
}
.bills-table-card td.bills-flow-id {
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bills-empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 22px;
  color: var(--muted);
}
.bills-empty p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.bills-empty-illustration {
  position: relative;
  width: 120px;
  height: 86px;
  opacity: 0.68;
}
.bills-empty-illustration::before {
  position: absolute;
  right: 24px;
  bottom: 26px;
  width: 54px;
  height: 42px;
  border-radius: 8px 8px 5px 5px;
  background:
    linear-gradient(
      180deg,
      rgba(148, 163, 184, 0.2),
      rgba(148, 163, 184, 0.08));
  clip-path: polygon(0 18%, 50% 0, 100% 18%, 100% 100%, 0 100%);
  content: "";
}
.bills-empty-illustration span {
  position: absolute;
  right: 16px;
  bottom: 60px;
  width: 34px;
  height: 18px;
  border-radius: 50% 50% 50% 0;
  border: 1px solid rgba(148, 163, 184, 0.4);
  transform: rotate(-24deg);
}
.bills-empty-illustration i {
  position: absolute;
  left: 12px;
  bottom: 20px;
  width: 108px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(
      180deg,
      rgba(148, 163, 184, 0.12),
      rgba(148, 163, 184, 0));
}
.bills-notice {
  margin-bottom: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 500;
}
.bills-notice.success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}
.bills-notice.error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}
.bills-pagination,
.bills-export-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.bills-pagination {
  margin-top: 14px;
}
.bills-pagination div,
.bills-export-footer div {
  display: inline-flex;
  gap: 8px;
}
.bills-pagination button,
.bills-export-footer button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--panel-border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--page-ink);
  font-size: 18px;
  font-weight: 500;
}
.bills-pagination button:disabled,
.bills-export-footer button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.bills-export-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.42);
}
.bills-export-modal {
  position: fixed;
  z-index: 41;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(860px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  overflow: auto;
  gap: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--page-ink);
  padding: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  transform: translate(-50%, -50%);
}
.bills-export-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bills-export-modal h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.bills-export-modal header button {
  width: 34px;
  height: 34px;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}
.bills-export-tip {
  border: 1px solid rgba(245, 158, 11, 0.36);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  color: #4b5563;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 400;
}
.bills-export-table {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--table-bg);
}
.bills-export-table table {
  width: 100%;
  border-collapse: collapse;
}
.bills-export-table th,
.bills-export-table td {
  height: 50px;
  border-bottom: 1px solid var(--panel-border);
  padding: 12px 14px;
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 400;
  text-align: left;
}
.bills-export-table th {
  background: var(--surface-muted);
  font-weight: 500;
}
.bills-export-status {
  display: inline-flex;
  min-width: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(54, 190, 204, 0.1);
  color: var(--accent);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
}
.bills-export-status.failed {
  background: rgba(248, 113, 113, 0.1);
  color: #ef4444;
}
.bills-export-status.processing {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}
.bills-export-download {
  min-width: auto;
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
html[data-theme=dark] .bills-export-tip {
  color: #cbd5e1;
}
.bills-export-muted {
  color: var(--muted);
}
main.page.account-page.api-keys-page {
  width: calc(100% - 64px) !important;
  margin: 18px 32px 64px !important;
  padding: 0 !important;
  max-width: none !important;
}
.api-key-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.api-key-page-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 0;
}
.api-key-page-head-actions .secondary-button,
.api-key-page-head-actions .primary-button {
  min-width: 102px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
}
.api-key-notice {
  margin-bottom: 16px;
  border: 1px solid var(--accent-ring);
  border-radius: 14px;
  background: var(--brand-gradient-soft);
  color: var(--page-ink);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}
.api-key-notice[data-status=success] {
  border-color: rgba(125, 222, 158, 0.42);
  background:
    linear-gradient(
      135deg,
      rgba(125, 222, 158, 0.18),
      rgba(255, 255, 255, 0.94));
}
html[data-theme=dark] .api-key-notice[data-status=success] {
  background:
    linear-gradient(
      135deg,
      rgba(104, 215, 193, 0.16),
      rgba(8, 20, 19, 0.95));
}
.api-key-notice[data-status=error] {
  border-color: rgba(239, 68, 68, 0.3);
  background:
    linear-gradient(
      135deg,
      rgba(239, 68, 68, 0.12),
      rgba(255, 255, 255, 0.94));
}
html[data-theme=dark] .api-key-notice[data-status=error] {
  background:
    linear-gradient(
      135deg,
      rgba(239, 68, 68, 0.16),
      rgba(8, 20, 19, 0.95));
}
.api-key-table {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--table-bg);
  color: var(--card-ink);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.04);
  padding: 0 0 12px;
}
.api-key-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.api-key-table th,
.api-key-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 13px;
  font-weight: 400;
  vertical-align: top;
}
.api-key-table th {
  background: var(--surface-muted);
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.api-key-table th:nth-child(1),
.api-key-table td:nth-child(1) {
  width: 10%;
}
.api-key-table th:nth-child(2),
.api-key-table td:nth-child(2) {
  width: 18%;
}
.api-key-table th:nth-child(3),
.api-key-table td:nth-child(3) {
  width: 25%;
}
.api-key-table th:nth-child(4),
.api-key-table td:nth-child(4) {
  width: 9%;
}
.api-key-table th:nth-child(5),
.api-key-table td:nth-child(5) {
  width: 8%;
}
.api-key-table th:nth-child(6),
.api-key-table td:nth-child(6) {
  width: 12%;
}
.api-key-table th:nth-child(7),
.api-key-table td:nth-child(7) {
  width: 6%;
}
.api-key-table th:nth-child(8),
.api-key-table td:nth-child(8) {
  width: 12%;
}
.api-key-table td:nth-child(4),
.api-key-table td:nth-child(5),
.api-key-table td:nth-child(6),
.api-key-table td:nth-child(7) {
  white-space: nowrap;
}
.api-key-table tbody tr:hover td {
  background: rgba(54, 189, 209, 0.03);
}
html[data-theme=dark] .api-key-table tbody tr:hover td {
  background: rgba(67, 203, 215, 0.06);
}
.api-key-name-cell {
  display: grid;
  gap: 4px;
}
.api-key-name-cell strong {
  font-size: 14px;
  font-weight: 400;
}
.api-key-name-cell small {
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}
.api-key-model-scrollbox {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--accent-ring);
  border-radius: 12px;
  background: rgba(54, 189, 209, 0.08);
  color: var(--page-ink);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 12px;
  scrollbar-color: rgba(54, 189, 209, 0.42) transparent;
  scrollbar-width: thin;
}
html[data-theme=dark] .api-key-model-scrollbox {
  background: rgba(67, 203, 215, 0.12);
  color: var(--tag-strong-ink);
}
.api-key-model-scrollbox-muted {
  border-color: var(--panel-border);
  background: var(--surface-muted);
  color: var(--muted);
}
.api-key-model-scrollbox-text {
  display: inline-block;
  min-width: max-content;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}
.api-key-model-scrollbox::-webkit-scrollbar {
  height: 6px;
}
.api-key-model-scrollbox::-webkit-scrollbar-track {
  background: transparent;
}
.api-key-model-scrollbox::-webkit-scrollbar-thumb {
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(54, 189, 209, 0.38);
  background-clip: padding-box;
}
html[data-theme=dark] .api-key-model-scrollbox::-webkit-scrollbar-thumb {
  background: rgba(67, 203, 215, 0.4);
}
.api-key-value {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--page-ink);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}
.api-key-value:hover,
.api-key-pagination button:hover,
.api-key-copy-button:hover,
.edit-action:hover {
  border-color: var(--accent-ring);
  color: var(--accent);
}
.api-key-actions button:hover {
  border-color: var(--accent-ring);
}
.api-key-value-text {
  min-width: 0;
  overflow: hidden;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.api-key-copy-hint {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.api-key-status {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.api-key-status.active {
  background: rgba(125, 222, 158, 0.18);
  color: #10b981;
}
.api-key-status.disabled {
  background: rgba(148, 163, 184, 0.18);
  color: var(--muted);
}
html[data-theme=dark] .api-key-status.active {
  color: #7de29b;
}
.api-key-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  white-space: nowrap;
}
.api-key-actions button,
.api-key-copy-button {
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}
.danger-action {
  color: #ef4444;
}
.edit-action {
  color: var(--accent);
}
.api-key-empty {
  display: grid;
  min-height: 168px;
  place-items: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}
.api-key-empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}
.api-key-empty .spinner {
  width: 28px;
  height: 28px;
}
.api-key-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}
.api-key-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.api-key-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.api-key-pagination button,
.api-key-pagination-ellipsis {
  display: inline-grid;
  min-width: 40px;
  height: 36px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--surface);
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 600;
  padding: 0 10px;
}
.api-key-pagination button.active {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--accent);
}
.api-key-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.api-key-pagination-ellipsis {
  min-width: 28px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.api-key-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.42);
}
.api-key-modal {
  position: fixed;
  z-index: 41;
  top: 50%;
  left: 50%;
  width: min(720px, calc(100vw - 72px));
  max-height: calc(100vh - 72px);
  overflow: auto;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  color: var(--page-ink);
  padding: 32px;
  transform: translate(-50%, -50%);
}
.api-key-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: transparent;
  color: var(--muted);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}
.api-key-modal h2 {
  margin: 0 0 18px;
  color: var(--page-ink);
  font-size: 18px;
  font-weight: 600;
}
.api-key-form {
  display: grid;
  gap: 16px;
}
.api-key-field {
  display: grid;
  gap: 8px;
}
.api-key-field span {
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 600;
}
.api-key-field input,
.api-key-field textarea {
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--input-ink);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.api-key-field textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.6;
}
.api-key-field input::placeholder,
.api-key-field textarea::placeholder {
  color: var(--muted);
}
.api-key-field input:focus,
.api-key-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint);
}
.api-key-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
.api-key-model-picker {
  display: grid;
  gap: 10px;
}
.api-key-model-picker-head-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.api-key-model-picker-head {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--page-ink);
  padding: 12px 14px;
  text-align: left;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}
.api-key-model-picker-head:hover,
.api-key-model-picker-clear:hover,
.api-key-model-chip-remove:hover {
  border-color: var(--accent-ring);
  color: var(--accent);
}
.api-key-model-picker-head:focus-visible,
.api-key-model-picker-clear:focus-visible,
.api-key-model-chip-remove:focus-visible,
.api-key-model-option:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint);
  outline: none;
}
.api-key-model-picker-summary {
  min-width: 0;
  overflow: hidden;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.api-key-model-picker-chevron {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}
.api-key-model-picker-clear {
  flex: 0 0 auto;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 0 12px;
  min-width: 60px;
  height: 40px;
}
.api-key-model-picker-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
  padding: 14px;
}
html[data-theme=dark] .api-key-model-picker-panel {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}
.api-key-model-picker-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.api-key-model-picker-placeholder {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.api-key-model-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 30px;
  border: 1px solid var(--accent-ring);
  border-radius: 999px;
  background: rgba(54, 189, 209, 0.08);
  color: var(--page-ink);
  padding: 0 10px 0 12px;
}
html[data-theme=dark] .api-key-model-chip {
  background: rgba(67, 203, 215, 0.12);
  color: var(--tag-strong-ink);
}
.api-key-model-chip-label {
  min-width: 0;
  max-width: 180px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.api-key-model-chip-remove {
  display: inline-grid;
  width: 20px;
  height: 20px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  place-items: center;
}
.api-key-model-chip-summary {
  border-style: dashed;
  color: var(--muted);
  font-weight: 600;
}
.api-key-model-picker-panel .api-key-model-picker-search,
.api-key-model-picker-panel input[type=text] {
  border-color: var(--panel-border);
  background: var(--surface-muted);
}
.api-key-model-picker-list {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}
.api-key-model-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--surface-muted);
  color: var(--page-ink);
  padding: 10px 12px;
  text-align: left;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}
.api-key-model-option:hover {
  border-color: var(--accent-ring);
}
.api-key-model-option.active {
  border-color: var(--accent);
  background: var(--soft-accent);
}
.api-key-model-option-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.api-key-model-option-main strong {
  color: var(--page-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}
.api-key-model-option-main small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  word-break: break-word;
}
.api-key-model-option-check {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}
.api-key-model-picker-empty {
  display: grid;
  min-height: 72px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.api-key-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.api-key-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 600;
}
.api-key-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.api-key-secret-box {
  display: grid;
  gap: 10px;
  border: 1px dashed var(--accent-ring);
  border-radius: 14px;
  background: rgba(54, 189, 209, 0.08);
  padding: 14px;
}
html[data-theme=dark] .api-key-secret-box {
  background: rgba(67, 203, 215, 0.12);
}
.api-key-secret-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.api-key-secret-head span {
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 600;
}
.api-key-copy-button {
  border: 1px solid var(--accent-ring);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}
.api-key-secret-box code {
  display: block;
  border-radius: 12px;
  background: var(--surface);
  color: var(--page-ink);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
  word-break: break-all;
  white-space: normal;
}
.api-key-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
}
.api-key-modal-actions button {
  min-width: 110px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 860px) {
  .api-key-modal {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 24px;
  }
  .api-key-modal-close {
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    font-size: 28px;
  }
}
@media (max-width: 640px) {
  .api-key-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 18px;
    border-radius: 14px;
  }
  .api-key-form {
    gap: 12px;
  }
  .api-key-form-grid {
    grid-template-columns: 1fr;
  }
  .api-key-modal-actions {
    flex-direction: column-reverse;
  }
  .api-key-modal-actions button {
    width: 100%;
  }
}
.invitation-page {
  width: calc(100% - 64px);
  max-width: none;
  margin: 22px 32px 64px;
  padding: 0;
}
.invitation-notice {
  margin-bottom: 16px;
  border: 1px solid rgba(244, 193, 82, 0.58);
  border-radius: 8px;
  background: rgba(255, 247, 214, 0.58);
  color: var(--page-ink);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}
.invitation-notice button {
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
}
.invitation-code-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--table-bg);
  color: var(--page-ink);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 400;
}
.invitation-code-card button {
  border-radius: 6px;
  background: var(--soft-accent);
  color: var(--accent-strong);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
}
.invitation-table-card {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--table-bg);
  color: var(--card-ink);
}
.invitation-table-card table {
  width: 100%;
  min-width: 760px;
}
.invitation-table-card th,
.invitation-table-card td {
  height: 58px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
}
.invitation-table-card th {
  background: var(--surface-muted);
  color: var(--page-ink);
}
.invitation-table-card th + th {
  border-left: 1px solid var(--panel-border);
}
.invitation-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
}
.invitation-empty p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.invitation-empty-icon {
  position: relative;
  width: 44px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.04);
}
.invitation-empty-icon::before {
  position: absolute;
  top: -1px;
  left: 8px;
  width: 26px;
  height: 10px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: var(--table-bg);
  content: "";
}
.invitation-empty-icon::after {
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 58px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.08);
  content: "";
  transform: translateX(-50%);
}
.invoice-apply {
  margin-bottom: 18px;
}
.invoice-page {
  width: calc(100% - 64px);
  max-width: none;
  margin: 18px 32px 64px;
  padding: 0;
}
.invoice-page .invoice-apply {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--brand-gradient);
  box-shadow: 0 10px 22px var(--brand-shadow);
  color: var(--on-brand);
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
}
.invoice-page .info-block {
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--brand-gradient-soft);
  color: var(--page-ink);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}
.invoice-page .info-block p {
  margin: 0;
}
.invoice-page .info-block strong {
  color: var(--page-ink);
  font-weight: 600;
}
.invoice-link {
  color: var(--accent);
  font-weight: 400;
}
.invoice-page .section-title {
  display: block;
  margin: 0 0 14px;
  color: var(--page-ink);
  font-size: 18px;
  font-weight: 600;
}
.invoice-page .table-card {
  background: transparent;
}
.invoice-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.invoice-page th,
.invoice-page td {
  height: 58px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 400;
  vertical-align: middle;
  white-space: nowrap;
}
.invoice-page th {
  background: var(--surface-muted);
  color: var(--page-ink);
  font-weight: 600;
}
.invoice-drawer-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  justify-content: flex-end;
}
.invoice-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 16, 0.34);
  backdrop-filter: blur(2px);
}
.invoice-drawer {
  position: relative;
  display: grid;
  width: min(640px, 100vw);
  height: 100vh;
  grid-template-rows: auto 1fr;
  background: var(--panel-bg);
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
  color: var(--page-ink);
  font-size: 13px;
  animation: invoice-drawer-in 220ms ease-out both;
}
@keyframes invoice-drawer-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
.invoice-drawer-head {
  display: flex;
  height: 70px;
  align-items: center;
  gap: 14px;
  padding: 0 30px;
}
.invoice-drawer-close {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}
.invoice-drawer-close:hover {
  background: var(--soft-accent);
  color: var(--page-ink);
}
.invoice-drawer-head h2 {
  margin: 0;
  color: var(--page-ink);
  font-size: 17px;
  font-weight: 550;
  letter-spacing: 0;
}
.invoice-drawer-body {
  overflow-y: auto;
  padding: 0 30px 28px;
}
.invoice-amount-summary {
  position: relative;
  margin: 0 0 24px;
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      rgba(54, 189, 209, 0.15),
      rgba(125, 222, 158, 0.24));
  padding: 16px 20px;
}
.invoice-summary-main {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.invoice-amount-summary span {
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
}
.invoice-amount-summary strong {
  color: var(--accent);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
}
.invoice-amount-summary p {
  margin: 6px 0 0;
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 400;
}
.invoice-amount-summary b {
  font-weight: 400;
}
.invoice-amount-summary .invoice-summary-formula {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}
.invoice-summary-formula i {
  display: inline-grid;
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  place-items: center;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
}
.invoice-summary-formula span {
  color: inherit;
  font-size: inherit;
  font-weight: 400;
}
.invoice-summary-formula b {
  color: #94a3b8;
  font-size: inherit;
  font-weight: 400;
}
.invoice-drawer-notice {
  margin: 0 0 18px;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
}
.invoice-drawer-notice.info {
  background: var(--soft-accent);
  color: var(--accent);
}
.invoice-drawer-notice.success {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}
.invoice-drawer-notice.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}
.invoice-field {
  display: block;
  margin: 0 0 24px;
}
.invoice-field > span,
.invoice-check span {
  display: inline-flex;
  align-items: center;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 500;
}
.invoice-field.required > span::before {
  margin-right: 6px;
  color: #ef4444;
  content: "*";
  font-weight: 600;
}
.invoice-field p {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.55;
}
.invoice-field p button {
  margin: 0 3px;
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  padding: 0;
}
.invoice-field input,
.invoice-field select,
.invoice-receive-block input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 450;
}
.invoice-field input:focus,
.invoice-field select:focus,
.invoice-receive-block input:focus,
.invoice-field input:focus-visible,
.invoice-field select:focus-visible,
.invoice-receive-block input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  outline: 0;
}
.invoice-money-input {
  display: grid;
  height: 42px;
  grid-template-columns: 48px 1fr;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--input-bg);
}
.invoice-money-input i {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--panel-border);
  color: var(--page-ink);
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
}
.invoice-money-input input {
  height: 40px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.invoice-money-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.invoice-fee-row {
  display: grid;
  grid-template-columns: 38% 1fr;
}
.invoice-fee-row input {
  border-radius: 8px 0 0 8px;
  color: var(--muted);
}
.invoice-fee-row select {
  margin-left: -1px;
  border-radius: 0 8px 8px 0;
}
.invoice-drawer-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 26px 0 22px;
}
.invoice-drawer-divider span {
  height: 1px;
  background: var(--border);
}
.invoice-drawer-divider strong {
  color: var(--muted);
  font-size: 15px;
  font-weight: 550;
}
.invoice-receive-block {
  margin: 0 0 24px;
}
.invoice-check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.invoice-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.invoice-receive-block p {
  margin: 10px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
}
.invoice-drawer-actions {
  position: sticky;
  bottom: -28px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 28px -30px -28px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  padding: 16px 30px;
}
.invoice-drawer-actions button {
  min-width: 104px;
  min-height: 38px;
  font-size: 12.5px;
  font-weight: 500;
}
.invoice-drawer-actions .primary-button:disabled {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background:
    linear-gradient(
      135deg,
      #dce7ea,
      #eef3f2);
  box-shadow: none;
  color: #8a98a7;
  cursor: not-allowed;
  opacity: 1;
}
html[data-theme=dark] .invoice-drawer-backdrop {
  background: rgba(0, 8, 7, 0.58);
}
html[data-theme=dark] .invoice-drawer {
  box-shadow: -28px 0 72px rgba(0, 0, 0, 0.44);
}
html[data-theme=dark] .invoice-amount-summary {
  border: 1px solid rgba(104, 215, 193, 0.2);
  background:
    linear-gradient(
      135deg,
      rgba(67, 203, 215, 0.16),
      rgba(162, 237, 186, 0.13));
}
html[data-theme=dark] .invoice-amount-summary .invoice-summary-formula {
  color: rgba(196, 213, 218, 0.58);
}
html[data-theme=dark] .invoice-summary-formula i {
  background: rgba(196, 213, 218, 0.12);
  color: rgba(196, 213, 218, 0.68);
}
html[data-theme=dark] .invoice-summary-formula b {
  color: rgba(196, 213, 218, 0.58);
}
html[data-theme=dark] .invoice-field input,
html[data-theme=dark] .invoice-field select,
html[data-theme=dark] .invoice-receive-block input,
html[data-theme=dark] .invoice-money-input {
  border-color: rgba(104, 215, 193, 0.28);
}
html[data-theme=dark] .invoice-drawer-actions .primary-button:disabled {
  border-color: rgba(104, 215, 193, 0.16);
  background:
    linear-gradient(
      135deg,
      rgba(64, 82, 86, 0.92),
      rgba(39, 56, 57, 0.92));
  color: rgba(196, 213, 218, 0.54);
}
@media (max-width: 720px) {
  .invoice-drawer {
    width: 100vw;
  }
  .invoice-drawer-head {
    height: 62px;
    padding: 0 18px;
  }
  .invoice-drawer-body {
    padding: 0 18px 24px;
  }
  .invoice-amount-summary strong {
    font-size: 23px;
  }
  .invoice-fee-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .invoice-fee-row input,
  .invoice-fee-row select {
    margin-left: 0;
    border-radius: 8px;
  }
  .invoice-drawer-actions {
    margin-right: -18px;
    margin-left: -18px;
    padding: 14px 18px;
  }
}
.recharge-page table {
  min-width: 760px;
}
.recharge-page {
  width: calc(100% - 64px);
  max-width: none;
  margin: 18px 32px 64px;
  padding: 0;
  color: var(--page-ink);
  font-size: 14px;
}
.wallet-tab-cards {
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: repeat(2, 300px);
  gap: 12px;
  width: fit-content;
  min-width: 0;
}
.wallet-overview-card {
  appearance: none;
  display: grid;
  width: 100%;
  min-height: 112px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background:
    linear-gradient(
      145deg,
      rgba(54, 189, 209, 0.1),
      rgba(125, 222, 158, 0.04) 56%,
      var(--surface));
  box-shadow: 0 10px 24px var(--brand-shadow);
  padding: 14px 18px 12px;
  text-align: left;
  cursor: pointer;
}
html[data-theme=dark] .wallet-overview-card {
  border-color: rgba(104, 215, 193, 0.2);
  background:
    linear-gradient(
      145deg,
      rgba(13, 33, 31, 0.96),
      rgba(10, 29, 27, 0.96) 56%,
      rgba(13, 33, 31, 0.9));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}
.wallet-overview-card.active {
  border-top: 2px solid var(--accent);
}
.wallet-overview-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wallet-overview-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.wallet-overview-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.wallet-overview-head strong {
  min-width: 0;
  color: var(--page-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.wallet-overview-body {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  margin-top: 12px;
}
.wallet-overview-body strong {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}
.wallet-overview-body span {
  min-width: 0;
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  align-self: center;
}
.recharge-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.recharge-stat {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px 22px 18px;
}
.recharge-stat.active {
  border-top: 2px solid var(--accent);
  background:
    linear-gradient(
      135deg,
      rgba(54, 189, 209, 0.08),
      rgba(125, 222, 158, 0.03) 55%,
      transparent);
}
.recharge-stat.striped {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(104, 117, 139, 0.05) 0 10px,
      transparent 10px 20px),
    var(--surface);
}
.recharge-stat em {
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 0 8px 0 8px;
  background: var(--brand-gradient);
  color: var(--on-brand);
  font-size: 12px;
  font-style: normal;
  line-height: 1;
  padding: 8px 12px;
}
.recharge-stat-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--page-ink);
}
.recharge-stat-title span {
  font-size: 16px;
}
.recharge-stat-title strong {
  font-size: 14px;
  font-weight: 600;
}
.recharge-stat-value {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
}
.recharge-stat-value strong {
  color: var(--accent);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
}
.recharge-stat-value span {
  color: var(--page-ink);
  font-size: 12px;
  font-weight: 400;
}
.recharge-section {
  margin-bottom: 28px;
}
.recharge-section h2 {
  margin: 0;
  color: var(--page-ink);
  font-size: 16px;
  font-weight: 600;
}
.recharge-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 0 4px;
}
.balance-alert {
  appearance: none;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 7px;
  background: #dcfce7;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 5px 12px rgba(125, 222, 158, 0.12),
    0 6px 14px rgba(168, 85, 247, 0.08);
  color: #16a34a;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.balance-alert:hover {
  border-color: rgba(34, 197, 94, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.78) inset,
    0 8px 16px rgba(125, 222, 158, 0.16),
    0 7px 16px rgba(168, 85, 247, 0.1);
  transform: translateY(-1px);
}
.balance-alert span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
}
.balance-warning-modal {
  width: min(680px, calc(100vw - 56px));
  padding: 26px 30px 24px;
}
.balance-warning-modal h2 {
  margin: 0 0 16px;
  color: var(--nav-item);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}
.balance-warning-modal-close {
  top: 22px;
  right: 22px;
}
.balance-warning-rules {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}
.balance-warning-rules ul {
  margin: 0;
  padding-left: 20px;
}
.balance-warning-rules > ul {
  display: grid;
  gap: 10px;
}
.balance-warning-rules li::marker {
  color: var(--muted);
}
.balance-warning-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 500;
}
.balance-warning-label {
  font-weight: 600;
}
.balance-warning-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.balance-warning-radio input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  cursor: pointer;
}
.balance-warning-amount {
  display: inline-flex;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--surface);
}
.balance-warning-amount input {
  width: 88px;
  border: 0;
  border-right: 1px solid var(--panel-border);
  background: transparent;
  color: var(--page-ink);
  padding: 0 11px;
  font-size: 14px;
  font-weight: 500;
  outline: none;
}
.balance-warning-amount input:disabled {
  color: var(--muted);
  cursor: not-allowed;
}
.balance-warning-amount span {
  display: inline-flex;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 500;
}
.balance-warning-actions {
  margin-top: 24px;
}
html[data-theme=dark] .balance-alert {
  border-color: rgba(104, 215, 193, 0.24);
  background: rgba(30, 90, 75, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 18px rgba(0, 0, 0, 0.18);
  color: #86efac;
}
html[data-theme=dark] .balance-alert:hover {
  border-color: rgba(134, 239, 172, 0.38);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 10px 20px rgba(0, 0, 0, 0.24);
}
html[data-theme=dark] .balance-warning-modal {
  background: #0d211f;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}
.recharge-box {
  border: 1px dashed rgba(54, 189, 209, 0.4);
  border-radius: 10px;
  background:
    radial-gradient(
      circle at 88% 66%,
      rgba(54, 189, 209, 0.07),
      transparent 34%),
    var(--surface);
  padding: 28px 28px 24px;
}
.wallet-recharge-grid {
  display: grid;
  gap: 18px;
  width: fit-content;
  max-width: 100%;
}
.wallet-recharge-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  width: fit-content;
  max-width: 100%;
}
.wallet-recharge-row-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  padding-top: 12px;
}
.wallet-recharge-row-content {
  display: grid;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
}
.wallet-recharge-row-amount .wallet-recharge-row-content {
  width: 610px;
}
.wallet-recharge-row-method .wallet-recharge-row-content {
  width: 610px;
}
.wallet-recharge-row-voucher .wallet-recharge-row-content {
  width: 610px;
}
.wallet-recharge-group-label {
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.wallet-section-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.wallet-voucher-list-head {
  justify-content: flex-start;
}
.wallet-voucher-list-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.wallet-voucher-list-title .wallet-section-meta:empty {
  display: none;
}
.recharge-page .wallet-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.recharge-page .wallet-tab-cards {
  flex: 0 0 auto;
  width: fit-content;
  min-width: 0;
}
.wallet-notice {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.wallet-notice.info {
  border: 1px solid rgba(54, 189, 209, 0.28);
  background: rgba(54, 189, 209, 0.08);
  color: var(--page-ink);
}
.wallet-notice.success {
  border: 1px solid rgba(72, 187, 120, 0.28);
  background: rgba(72, 187, 120, 0.08);
  color: var(--page-ink);
}
.wallet-notice.error {
  border: 1px solid rgba(244, 63, 94, 0.28);
  background: rgba(244, 63, 94, 0.08);
  color: var(--page-ink);
}
.wallet-recharge-box {
  padding-bottom: 22px;
}
.wallet-recharge-form {
  display: grid;
  gap: 16px;
}
.wallet-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 145px);
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}
.wallet-preset {
  min-height: 52px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--control-bg);
  color: var(--control-ink);
  font-size: 14px;
  font-weight: 600;
  padding: 0 8px;
}
.wallet-preset.active {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(54, 189, 209, 0.08);
}
.wallet-custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  width: 100%;
  max-width: 100%;
}
.wallet-custom-row.active input {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(54, 189, 209, 0.12);
}
.wallet-custom-row input,
.wallet-voucher-form input {
  min-height: 48px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--page-ink);
  padding: 0 14px;
  font-size: 15px;
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
}
.wallet-custom-row input::placeholder,
.wallet-voucher-form input::placeholder {
  color: var(--muted);
}
.wallet-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.wallet-voucher-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}
.wallet-voucher-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--page-ink);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}
.wallet-voucher-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.wallet-voucher-option.active {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--accent);
}
.wallet-voucher-option.active small {
  color: var(--accent);
}
.wallet-voucher-empty,
.wallet-payment-empty {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.wallet-recharge-summary {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 24px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(54, 189, 209, 0.18);
  border-radius: 10px;
  background: rgba(54, 189, 209, 0.06);
  padding: 10px 14px;
}
.wallet-recharge-summary div {
  display: grid;
  gap: 3px;
}
.wallet-recharge-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.wallet-recharge-summary strong {
  color: var(--page-ink);
  font-size: 15px;
  font-weight: 600;
}
.wallet-payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
}
.wallet-payment-method {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--page-ink);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
}
.wallet-payment-method.active {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--accent);
}
.wallet-payment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  line-height: 0;
}
.wallet-payment-icon svg {
  display: block;
  width: 22px;
  height: 22px;
}
.wallet-payment-icon-wechat {
  color: #07c160;
}
.wallet-payment-icon-alipay {
  color: #1677ff;
}
.wallet-payment-icon-airwallex {
  color: #ff6b4a;
}
.wallet-recharge-agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 100%;
  margin-top: 4px;
}
.wallet-recharge-agreement input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}
.wallet-recharge-agreement span {
  min-width: 0;
}
.wallet-recharge-agreement a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.wallet-recharge-agreement a:hover {
  text-decoration: underline;
}
.recharge-pay-submit {
  width: 208px;
  min-height: 44px;
  border-radius: 9px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  justify-self: start;
  margin-top: 4px;
}
.recharge-pay-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.wallet-checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(13, 23, 36, 0.36);
  backdrop-filter: blur(4px);
}
.wallet-checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 121;
  width: min(640px, calc(100vw - 40px));
  max-height: calc(100vh - 48px);
  transform: translate(-50%, -50%);
  overflow: auto;
  border: 1px solid rgba(54, 189, 209, 0.28);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 31, 47, 0.22);
  padding: 24px;
}
.wallet-checkout-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}
.wallet-checkout-close:disabled {
  cursor: wait;
  opacity: 0.45;
}
.wallet-checkout-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 360px) auto;
  column-gap: 18px;
  row-gap: 12px;
  align-items: start;
  justify-content: start;
  width: 100%;
  border: 1px solid rgba(54, 189, 209, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      rgba(54, 189, 209, 0.08),
      rgba(112, 215, 149, 0.08));
  padding: 16px 18px;
}
.wallet-checkout-panel.closing {
  overflow: hidden;
}
.wallet-checkout-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.wallet-checkout-copy > strong {
  color: var(--page-ink);
  font-size: 15px;
  font-weight: 600;
}
.wallet-checkout-copy > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.wallet-checkout-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.wallet-checkout-amounts div {
  display: grid;
  gap: 2px;
}
.wallet-checkout-amounts span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}
.wallet-checkout-amounts strong {
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 600;
}
.wallet-checkout-media {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  gap: 7px;
  justify-items: center;
  align-self: start;
}
.wallet-checkout-qr {
  width: 156px;
  height: 156px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: #fff;
  padding: 7px;
}
.wallet-checkout-airwallex-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 107, 74, 0.16);
  border-radius: 20px;
  background: rgba(255, 107, 74, 0.08);
  color: #ff6b4a;
}
.wallet-checkout-airwallex-mark .wallet-payment-icon-svg {
  width: 46px;
  height: 46px;
}
.wallet-checkout-actions {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 8px;
}
.wallet-checkout-confirm,
.wallet-checkout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--panel-border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--page-ink);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.wallet-checkout-link.primary,
.wallet-checkout-confirm {
  border-color: var(--accent);
  background: var(--soft-accent);
  color: var(--accent);
}
.wallet-checkout-confirm.secondary {
  border-color: var(--panel-border);
  background: var(--surface);
  color: var(--page-ink);
}
.wallet-checkout-confirm:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.wallet-checkout-notice {
  grid-column: 1 / -1;
  border: 1px solid rgba(54, 189, 209, 0.24);
  border-radius: 9px;
  background: rgba(54, 189, 209, 0.08);
  color: var(--muted);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}
.wallet-checkout-notice.success {
  border-color: rgba(78, 198, 126, 0.32);
  background: rgba(78, 198, 126, 0.1);
  color: #249a5d;
}
.wallet-checkout-notice.error {
  border-color: rgba(255, 107, 107, 0.32);
  background: rgba(255, 107, 107, 0.1);
  color: #d54848;
}
.wallet-checkout-expire {
  color: var(--muted);
  max-width: 168px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  word-break: break-word;
}
.wallet-checkout-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: inherit;
  background: rgba(246, 255, 253, 0.88);
  backdrop-filter: blur(3px);
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 600;
}
.wallet-checkout-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(54, 189, 209, 0.22);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.78s linear infinite;
}
html[data-theme=dark] .wallet-checkout-loading {
  background: rgba(9, 28, 28, 0.82);
}
.wallet-payment-success-backdrop {
  position: fixed;
  inset: 0;
  z-index: 124;
  background: rgba(13, 23, 36, 0.28);
  backdrop-filter: blur(3px);
}
.wallet-payment-success-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 125;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(560px, calc(100vw - 40px));
  min-height: 320px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(214, 227, 235, 0.72);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(15, 31, 47, 0.18);
  padding: 44px 36px 38px;
  text-align: center;
}
.wallet-payment-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 12px 28px var(--brand-shadow);
}
.wallet-payment-success-icon svg {
  width: 38px;
  height: 38px;
  fill: currentColor;
}
.wallet-payment-success-modal h2 {
  margin: 24px 0 10px;
  color: var(--page-ink);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
}
.wallet-payment-success-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}
.wallet-payment-success-amount {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.wallet-payment-success-button {
  min-width: 104px;
  height: 38px;
  margin-top: 26px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: #fff;
  cursor: pointer;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 24px var(--brand-shadow);
}
html[data-theme=dark] .wallet-payment-success-modal {
  background: #122426;
  border-color: rgba(84, 205, 217, 0.28);
}
.wallet-record-head {
  align-items: center;
  justify-content: flex-start;
  padding-right: 0;
}
.wallet-record-toggle {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  flex: 0 0 auto;
  min-height: 34px;
  max-width: 100%;
}
.wallet-record-toggle-btn {
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(94, 110, 136, 0.86);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.wallet-record-toggle-btn::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  content: "";
  transition: background-color 0.18s ease;
}
.wallet-record-toggle-btn.active {
  color: var(--accent);
  font-weight: 700;
}
.wallet-record-toggle-btn.active::after {
  background:
    linear-gradient(
      90deg,
      var(--accent),
      rgba(125, 222, 158, 0.92));
}
.wallet-record-toggle-btn:hover {
  color: var(--accent);
}
.wallet-record-toggle-btn:focus-visible {
  outline: none;
}
html[data-theme=dark] .wallet-record-toggle-btn {
  color: rgba(186, 196, 214, 0.88);
}
html[data-theme=dark] .wallet-record-toggle-btn.active {
  color: #4fd0e0;
}
html[data-theme=dark] .wallet-record-toggle-btn.active::after {
  background:
    linear-gradient(
      90deg,
      #4fd0e0,
      rgba(125, 222, 158, 0.92));
}
html[data-theme=dark] .wallet-record-toggle-btn:hover {
  color: #4fd0e0;
}
.wallet-record-section .table-card {
  margin-top: 0;
  overflow: visible;
}
.wallet-record-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 0 4px;
}
.wallet-record-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.wallet-record-pagination {
  justify-content: flex-end;
}
.wallet-record-refund-btn {
  min-width: 62px;
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(51, 190, 207, 0.34);
  border-radius: 999px;
  background: rgba(51, 190, 207, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.wallet-record-refund-btn:hover {
  border-color: rgba(51, 190, 207, 0.62);
  background: rgba(51, 190, 207, 0.15);
  transform: translateY(-1px);
}
.wallet-record-refund-btn:focus-visible {
  outline: 2px solid rgba(51, 190, 207, 0.26);
  outline-offset: 2px;
}
.wallet-record-refund-muted {
  color: rgba(105, 121, 148, 0.74);
  font-size: 12px;
  font-weight: 500;
}
.wallet-record-refund-state {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 74px;
  color: rgba(105, 121, 148, 0.78);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.wallet-record-refund-state.success {
  color: rgba(51, 190, 207, 0.95);
}
.wallet-record-refund-state.voucher {
  color: rgba(83, 104, 132, 0.92);
}
.wallet-record-refund-help {
  appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  place-items: center;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(105, 121, 148, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(105, 121, 148, 0.84);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 0;
  text-align: center;
  cursor: pointer;
}
.wallet-record-refund-help:hover,
.wallet-record-refund-help[aria-expanded=true] {
  border-color: rgba(51, 190, 207, 0.55);
  color: var(--accent);
}
.wallet-record-refund-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 50%;
  z-index: 20;
  width: 210px;
  transform: translateX(50%);
  border: 1px solid rgba(198, 231, 236, 0.96);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 32px rgba(25, 45, 72, 0.14);
  color: rgba(31, 43, 63, 0.86);
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
  white-space: normal;
}
.wallet-record-refund-popover::before {
  position: absolute;
  top: -5px;
  right: 50%;
  width: 8px;
  height: 8px;
  transform: translateX(50%) rotate(45deg);
  border-top: 1px solid rgba(198, 231, 236, 0.96);
  border-left: 1px solid rgba(198, 231, 236, 0.96);
  background: inherit;
  content: "";
}
.wallet-refund-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 126;
  background: rgba(12, 18, 30, 0.42);
  backdrop-filter: blur(3px);
}
.wallet-refund-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 127;
  width: min(520px, calc(100vw - 36px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(200, 214, 231, 0.72);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(29, 43, 68, 0.18);
  padding: 24px 28px 26px;
  color: var(--text);
}
.wallet-refund-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: rgba(89, 105, 129, 0.92);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}
.wallet-refund-modal h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
}
.wallet-refund-modal-body {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px 0 18px;
  text-align: center;
}
.wallet-refund-modal-label {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.wallet-refund-modal-amount {
  color: var(--text);
  font-size: 44px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}
.wallet-refund-modal-body p {
  margin: 8px 0 0;
  color: rgba(105, 121, 148, 0.78);
  font-size: 14px;
  font-weight: 500;
}
.wallet-refund-modal-notice {
  width: 100%;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}
.wallet-refund-modal-notice.info {
  background: rgba(51, 190, 207, 0.09);
  color: var(--accent);
}
.wallet-refund-modal-notice.success {
  background: rgba(82, 204, 143, 0.12);
  color: #25a568;
}
.wallet-refund-modal-notice.error {
  background: rgba(255, 73, 73, 0.09);
  color: #ef4444;
}
.wallet-refund-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.wallet-refund-modal-cancel,
.wallet-refund-modal-confirm {
  min-width: 92px;
  height: 42px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.wallet-refund-modal-cancel {
  border: 1px solid rgba(190, 202, 218, 0.9);
  background: #fff;
  color: var(--text);
}
.wallet-refund-modal-confirm {
  border: 0;
  background:
    linear-gradient(
      135deg,
      var(--accent),
      #72dda0);
  color: #fff;
  box-shadow: 0 8px 18px rgba(51, 190, 207, 0.2);
}
.wallet-refund-modal-confirm:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}
html[data-theme=dark] .wallet-record-refund-btn {
  border-color: rgba(79, 208, 224, 0.42);
  background: rgba(79, 208, 224, 0.12);
  color: #4fd0e0;
}
html[data-theme=dark] .wallet-record-refund-muted {
  color: rgba(186, 196, 214, 0.62);
}
html[data-theme=dark] .wallet-record-refund-state {
  color: rgba(186, 196, 214, 0.66);
}
html[data-theme=dark] .wallet-record-refund-state.success {
  color: #4fd0e0;
}
html[data-theme=dark] .wallet-record-refund-state.voucher {
  color: rgba(205, 216, 232, 0.78);
}
html[data-theme=dark] .wallet-record-refund-help {
  border-color: rgba(186, 196, 214, 0.28);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(186, 196, 214, 0.76);
}
html[data-theme=dark] .wallet-record-refund-popover {
  border-color: rgba(79, 208, 224, 0.22);
  background: rgba(17, 31, 39, 0.98);
  color: rgba(226, 236, 247, 0.9);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}
html[data-theme=dark] .wallet-refund-modal {
  border-color: rgba(84, 205, 217, 0.28);
  background: #122426;
}
html[data-theme=dark] .wallet-refund-modal-close {
  color: rgba(194, 207, 224, 0.86);
}
html[data-theme=dark] .wallet-refund-modal-body p {
  color: rgba(185, 197, 215, 0.74);
}
html[data-theme=dark] .wallet-refund-modal-cancel {
  border-color: rgba(122, 148, 172, 0.46);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(231, 238, 247, 0.92);
}
.wallet-voucher-redeem {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(109, 92, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(
      135deg,
      rgba(109, 92, 255, 0.12),
      rgba(54, 189, 209, 0.06) 42%,
      rgba(255, 255, 255, 0.76));
  padding: 22px 24px;
  margin-bottom: 18px;
}
html[data-theme=dark] .wallet-voucher-redeem {
  border-color: rgba(109, 92, 255, 0.18);
  background:
    linear-gradient(
      135deg,
      rgba(52, 31, 112, 0.72),
      rgba(18, 37, 51, 0.88));
}
.wallet-voucher-redeem-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.wallet-voucher-redeem-title h2 {
  margin: 0;
  color: var(--page-ink);
  font-size: 18px;
  font-weight: 600;
}
.wallet-voucher-icon {
  color: var(--accent);
  font-size: 18px;
}
.wallet-voucher-badge {
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 12px;
}
.wallet-voucher-redeem-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.wallet-voucher-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
}
.wallet-voucher-form button {
  min-height: 44px;
  border-radius: 8px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}
.wallet-voucher-note {
  border: 1px solid rgba(54, 189, 209, 0.22);
  border-radius: 8px;
  background: rgba(54, 189, 209, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  padding: 12px 16px;
}
.wallet-voucher-note.info {
  border-color: rgba(54, 189, 209, 0.22);
  background: rgba(54, 189, 209, 0.08);
  color: var(--muted);
}
.wallet-voucher-note.success {
  border-color: rgba(54, 189, 209, 0.28);
  background: rgba(54, 189, 209, 0.12);
  color: var(--accent);
}
.wallet-voucher-note.error {
  border-color: rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.08);
  color: #ef4444;
}
html[data-theme=dark] .wallet-voucher-note,
html[data-theme=dark] .wallet-voucher-note.info {
  border-color: var(--panel-border);
  background: rgba(13, 33, 31, 0.82);
  color: var(--muted);
}
html[data-theme=dark] .wallet-voucher-note.success {
  border-color: rgba(67, 203, 215, 0.24);
  background: rgba(67, 203, 215, 0.12);
  color: var(--accent);
}
html[data-theme=dark] .wallet-voucher-note.error {
  border-color: rgba(244, 63, 94, 0.24);
  background: rgba(244, 63, 94, 0.08);
  color: #fb7185;
}
.wallet-voucher-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1280px) {
  .wallet-voucher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .wallet-voucher-grid {
    grid-template-columns: 1fr;
  }
}
.wallet-voucher-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  display: grid;
  gap: 12px;
  min-height: 220px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background:
    linear-gradient(
      135deg,
      rgba(54, 189, 209, 0.06),
      rgba(125, 222, 158, 0.04) 48%,
      var(--surface));
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 18px 20px 16px;
  text-align: left;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}
.wallet-voucher-card::-moz-focus-inner {
  border: 0;
}
.wallet-voucher-card:hover {
  border-color: var(--accent-ring);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.wallet-voucher-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint);
  outline: none;
}
html[data-theme=dark] .wallet-voucher-card {
  background:
    linear-gradient(
      135deg,
      rgba(54, 189, 209, 0.08),
      rgba(125, 222, 158, 0.05) 48%,
      rgba(11, 23, 22, 0.96));
}
html[data-theme=dark] .wallet-voucher-card:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}
.wallet-voucher-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.wallet-voucher-head h4 {
  margin: 0 0 4px;
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.wallet-voucher-status,
.wallet-status-chip {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.wallet-voucher-status.success,
.wallet-status-chip.success {
  border: 1px solid rgba(54, 189, 209, 0.28);
  background: rgba(54, 189, 209, 0.08);
  color: var(--accent);
}
.wallet-voucher-status.info,
.wallet-status-chip.info {
  border: 1px solid var(--panel-border);
  background: var(--surface-muted);
  color: var(--page-ink);
}
.wallet-voucher-status.error,
.wallet-status-chip.error {
  border: 1px solid rgba(244, 63, 94, 0.25);
  background: rgba(244, 63, 94, 0.08);
  color: #ef4444;
}
.wallet-voucher-amount {
  color: var(--accent);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}
.wallet-voucher-divider {
  height: 1px;
  background: var(--panel-border);
}
.wallet-voucher-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.wallet-voucher-meta div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.wallet-voucher-meta span {
  color: #6f7a8b;
  font-size: 11px;
  font-weight: 500;
}
.wallet-voucher-meta strong {
  color: #273142;
  font-size: 12px;
  font-weight: 500;
}
.wallet-voucher-range {
  display: flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--surface-muted);
  color: #7b8796;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  padding: 6px 10px;
  white-space: normal;
  word-break: break-word;
}
html[data-theme=dark] .wallet-voucher-meta span {
  color: #a3afbf;
}
html[data-theme=dark] .wallet-voucher-meta strong {
  color: #d8e0ea;
}
html[data-theme=dark] .wallet-voucher-range {
  color: #9aa7b6;
}
.wallet-voucher-modal {
  width: min(525px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98),
      rgba(251, 253, 255, 0.98));
  padding: 28px 30px 32px;
}
.wallet-voucher-modal-close {
  color: var(--muted);
}
.wallet-voucher-modal-close:hover {
  color: var(--accent);
}
.wallet-voucher-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-right: 48px;
  margin-bottom: 18px;
}
.wallet-voucher-modal-title-row {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 12px;
}
.wallet-voucher-modal-icon {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(244, 63, 94, 0.12);
  color: #ef4444;
  place-items: center;
}
.wallet-voucher-modal-icon svg {
  width: 24px;
  height: 24px;
}
.wallet-voucher-modal-title {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.wallet-voucher-modal-title h2 {
  margin: 0;
  color: var(--page-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}
.wallet-voucher-modal-title-id {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  white-space: nowrap;
}
.wallet-voucher-modal-title-id-label {
  flex: 0 0 auto;
  color: #6f7a8b;
  font-size: 12px;
  font-weight: 500;
}
.wallet-voucher-modal .wallet-voucher-status {
  flex: 0 0 auto;
  margin-top: 2px;
}
.wallet-voucher-modal-amount {
  color: var(--accent);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
  margin: 2px 0 14px;
}
.wallet-voucher-modal-divider {
  height: 1px;
  margin-bottom: 18px;
  background: var(--panel-border);
}
.wallet-voucher-modal-meta {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: start;
  gap: 36px;
  margin-bottom: 18px;
}
.wallet-voucher-modal-meta div {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.wallet-voucher-modal-meta span {
  color: #6f7a8b;
  font-size: 12px;
  font-weight: 500;
}
.wallet-voucher-modal-meta strong {
  color: #273142;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  word-break: break-word;
}
.wallet-voucher-modal-id-inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}
.wallet-voucher-modal-id-inline code {
  flex: 0 1 auto;
  min-width: 0;
  color: #475569;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.wallet-voucher-modal-range {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(54, 189, 209, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(54, 189, 209, 0.06),
      rgba(125, 222, 158, 0.04));
  padding: 18px 18px 16px;
}
.wallet-voucher-modal-range-title {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}
.wallet-voucher-modal-range-lead {
  margin: 0;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}
.wallet-voucher-modal-range-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: #506077;
  font-size: 14px;
  line-height: 1.65;
}
.wallet-voucher-modal-range-list li {
  min-width: 0;
}
html[data-theme=dark] .wallet-voucher-modal {
  background:
    linear-gradient(
      180deg,
      rgba(11, 23, 22, 0.98),
      rgba(13, 28, 27, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}
html[data-theme=dark] .wallet-voucher-modal-icon {
  background: rgba(244, 63, 94, 0.18);
}
html[data-theme=dark] .wallet-voucher-modal-title-id-label {
  color: var(--muted);
}
html[data-theme=dark] .wallet-voucher-modal-meta span {
  color: var(--muted);
}
html[data-theme=dark] .wallet-voucher-modal-meta strong {
  color: var(--page-ink);
}
html[data-theme=dark] .wallet-voucher-modal-id-inline {
  background: transparent;
}
html[data-theme=dark] .wallet-voucher-modal-id-inline code {
  color: var(--page-ink);
}
html[data-theme=dark] .wallet-voucher-modal-range {
  border-color: rgba(67, 203, 215, 0.16);
  background:
    linear-gradient(
      180deg,
      rgba(67, 203, 215, 0.08),
      rgba(125, 222, 158, 0.05));
}
html[data-theme=dark] .wallet-voucher-modal-range-lead {
  color: var(--page-ink);
}
html[data-theme=dark] .wallet-voucher-modal-range-list {
  color: var(--muted);
}
@media (max-width: 860px) {
  .wallet-voucher-modal {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 24px;
  }
  .wallet-voucher-modal-header {
    padding-right: 38px;
  }
  .wallet-voucher-modal-amount {
    font-size: 38px;
  }
}
@media (max-width: 640px) {
  .wallet-voucher-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 14px;
    padding: 18px;
  }
  .wallet-voucher-modal-header {
    gap: 12px;
    padding-right: 34px;
  }
  .wallet-voucher-modal-title h2 {
    font-size: 18px;
  }
  .wallet-voucher-modal-amount {
    font-size: 32px;
  }
  .wallet-voucher-modal-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .wallet-voucher-modal-title-id {
    gap: 8px;
  }
  .wallet-voucher-modal-id-inline {
    gap: 6px;
  }
  .wallet-voucher-modal-range {
    border-radius: 14px;
    padding: 16px;
  }
  .wallet-voucher-modal-range-list {
    padding-left: 18px;
  }
}
@media (max-width: 520px) {
  .wallet-voucher-modal-meta {
    grid-template-columns: 1fr;
  }
}
.wallet-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed var(--panel-border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}
.wallet-status-chip {
  min-height: 26px;
}
.corporate-transfer-tip {
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 86% 70%,
      rgba(54, 189, 209, 0.07),
      transparent 32%),
    var(--surface);
  padding: 26px 30px;
}
.corporate-transfer-tip p {
  margin: 0;
  color: var(--page-ink);
  font-size: 15px;
  line-height: 1.6;
}
.corporate-transfer-tip strong {
  color: var(--accent);
  font-weight: 600;
}
.refund-section .table-card {
  margin-top: 12px;
}
.refund-refresh {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  background: transparent;
  color: #9aa9bc;
  font-size: 20px;
}
.invoice-page table {
  min-width: 860px;
}
.account-page .table-card {
  margin-top: 8px;
}
.campaign-page {
  width: calc(100% - 64px);
  max-width: none;
  margin: 22px 32px 64px;
  color: var(--page-ink);
  padding: 0;
}
.campaign-title {
  margin: 0 0 30px;
  color: var(--accent-2);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 3px 10px var(--brand-shadow);
}
html[data-theme=dark] .campaign-title {
  text-shadow: 0 3px 12px rgba(67, 203, 215, 0.18);
}
.campaign-page .benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
}
.benefit-card {
  display: grid;
  min-height: 184px;
  place-items: center;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background:
    linear-gradient(
      145deg,
      var(--soft-accent-2),
      var(--surface) 58%,
      rgba(237, 253, 250, 0.45));
  box-shadow: 0 10px 30px var(--brand-shadow);
  padding: 28px 24px;
  text-align: center;
}
html[data-theme=dark] .benefit-card {
  border-color: rgba(104, 215, 193, 0.16);
  background:
    linear-gradient(
      145deg,
      rgba(13, 33, 31, 0.96),
      rgba(10, 29, 27, 0.96) 58%,
      rgba(13, 33, 31, 0.9));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}
.benefit-icon {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 10px;
  background: var(--soft-accent);
  color: var(--accent);
  margin-bottom: 14px;
}
.benefit-icon::before {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.benefit-icon.coin::before {
  content: "\a5";
}
.benefit-icon.cube::before {
  content: "\25c7";
}
.benefit-icon.check::before {
  content: "\2713";
}
.benefit-card h3 {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 18px;
  font-weight: 700;
}
html[data-theme=dark] .benefit-card h3 {
  color: #eef8ff;
}
.benefit-card p,
.benefit-card small {
  margin: 0;
  color: #59627a;
  font-size: 14px;
  line-height: 1.5;
}
html[data-theme=dark] .benefit-card p,
html[data-theme=dark] .benefit-card small {
  color: var(--muted);
}
.campaign-join {
  margin-top: 38px;
}
.campaign-join .campaign-title,
.campaign-records .campaign-title {
  margin-bottom: 20px;
}
.campaign-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: var(--soft-accent);
}
.campaign-step {
  position: relative;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}
html[data-theme=dark] .campaign-step {
  color: var(--accent);
}
.campaign-step:not(:last-child)::after {
  position: absolute;
  right: -8px;
  color: #8db9bd;
  content: ">";
  font-size: 28px;
  font-weight: 400;
  z-index: 1;
}
html[data-theme=dark] .campaign-step:not(:last-child)::after {
  color: rgba(162, 237, 186, 0.72);
}
.campaign-step strong {
  color: inherit;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}
.campaign-step span {
  color: inherit;
}
.campaign-reward-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(58, 196, 201, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.campaign-reward-status-pending {
  background: rgba(125, 138, 164, 0.12);
  color: #6f7c97;
}
.campaign-reward-status-granted,
.campaign-reward-status-success {
  background: rgba(88, 214, 160, 0.16);
  color: #17a96d;
}
.campaign-reward-status-failed,
.campaign-reward-status-cancelled {
  background: rgba(255, 117, 117, 0.14);
  color: #ff6b6b;
}
html[data-theme=dark] .campaign-reward-status {
  background: rgba(104, 215, 193, 0.16);
  color: var(--accent);
}
html[data-theme=dark] .campaign-reward-status-pending {
  background: rgba(120, 133, 159, 0.18);
  color: #a8b2c7;
}
html[data-theme=dark] .campaign-reward-status-granted,
html[data-theme=dark] .campaign-reward-status-success {
  background: rgba(58, 196, 201, 0.18);
  color: #7ff3cd;
}
html[data-theme=dark] .campaign-reward-status-failed,
html[data-theme=dark] .campaign-reward-status-cancelled {
  background: rgba(255, 117, 117, 0.16);
  color: #ff9a9a;
}
.campaign-participation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--panel-border);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
  padding: 32px 48px 36px;
}
html[data-theme=dark] .campaign-participation {
  border-color: var(--panel-border);
  background:
    linear-gradient(
      180deg,
      rgba(13, 33, 31, 0.96) 0%,
      rgba(8, 24, 22, 0.98) 100%);
}
.campaign-copy h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}
html[data-theme=dark] .campaign-copy h3 {
  color: #eef8ff;
}
.campaign-copy p,
.campaign-copy li {
  color: #263348;
  font-size: 14px;
  line-height: 1.7;
}
html[data-theme=dark] .campaign-copy p,
html[data-theme=dark] .campaign-copy li {
  color: var(--muted);
}
.campaign-copy p {
  margin: 0 0 12px;
}
.campaign-copy ul {
  margin: 0;
  padding-left: 18px;
}
.invite-panel {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 12px 20px;
  align-items: center;
}
.qr-card {
  display: grid;
  width: 148px;
  height: 148px;
  place-items: center;
  border: 1px solid #d8dce8;
  border-radius: 4px;
  background: #ffffff;
  padding: 10px;
}
html[data-theme=dark] .qr-card {
  border-color: rgba(104, 215, 193, 0.18);
  background: #f8fafc;
}
.qr-card img,
.qr-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-card-placeholder {
  border-radius: 3px;
  background:
    linear-gradient(
      90deg,
      #111827 10px,
      transparent 10px 18px,
      #111827 18px 28px,
      transparent 28px 34px,
      #111827 34px 44px,
      transparent 44px),
    linear-gradient(
      #111827 10px,
      transparent 10px 18px,
      #111827 18px 28px,
      transparent 28px 34px,
      #111827 34px 44px,
      transparent 44px),
    repeating-linear-gradient(
      45deg,
      transparent 0 8px,
      rgba(17, 24, 39, 0.9) 8px 12px,
      transparent 12px 20px);
  background-blend-mode: multiply;
}
.qr-download {
  grid-column: 1;
  width: 100%;
  min-height: 34px;
  border-radius: 6px;
  background: var(--brand-gradient);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
}
.qr-download:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
html[data-theme=dark] .qr-download {
  box-shadow: 0 10px 24px rgba(67, 203, 215, 0.18);
}
.invite-fields {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 16px;
}
.invite-fields label {
  display: grid;
  gap: 8px;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}
html[data-theme=dark] .invite-fields label {
  color: var(--page-ink);
}
.invite-fields button {
  display: flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  border: 1px solid #d9deeb;
  border-radius: 4px;
  background: #ffffff;
  color: #3f485c;
  padding: 0 10px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invite-fields button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.invite-fields button i {
  flex-shrink: 0;
}
html[data-theme=dark] .invite-fields button {
  border-color: var(--panel-border);
  background: rgba(13, 33, 31, 0.86);
  color: var(--page-ink);
}
.invite-fields i {
  color: #9aa4bc;
  font-style: normal;
}
html[data-theme=dark] .invite-fields i {
  color: var(--muted);
}
.invite-top-toast,
.app-top-toast {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(54, 189, 209, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--page-ink);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  pointer-events: none;
  animation: invite-toast-in 160ms ease-out, invite-toast-out 240ms ease-in 1.98s forwards;
}
html[data-theme=dark] .invite-top-toast,
html[data-theme=dark] .app-top-toast {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(54, 189, 209, 0.32);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
}
.invite-top-toast[data-status=success],
.app-top-toast[data-status=success] {
  border-color: rgba(72, 187, 120, 0.32);
}
.invite-top-toast[data-status=error],
.app-top-toast[data-status=error] {
  border-color: rgba(244, 63, 94, 0.32);
}
@keyframes invite-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes invite-toast-out {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
}
.campaign-records {
  margin-top: 48px;
}
.campaign-record-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}
.campaign-record-head .campaign-title {
  grid-column: 2;
  margin-bottom: 0;
}
.campaign-record-summary {
  display: inline-flex;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: #ffffff;
  color: #3f485c;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
html[data-theme=dark] .campaign-record-summary {
  border-color: var(--panel-border);
  background: rgba(13, 33, 31, 0.86);
  color: var(--page-ink);
}
.campaign-record-summary span + span {
  padding-left: 12px;
  border-left: 1px solid var(--panel-border);
}
.campaign-record-summary strong {
  color: #ef4444;
  font-weight: 700;
}
html[data-theme=dark] .campaign-record-summary strong {
  color: #ff7a7a;
}
.campaign-record-table {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--table-bg);
}
html[data-theme=dark] .campaign-record-table {
  background: rgba(13, 33, 31, 0.96);
}
.campaign-record-table table {
  width: 100%;
  min-width: 880px;
}
.campaign-record-table th,
.campaign-record-table td {
  height: 54px;
  border-bottom: 1px solid var(--panel-border);
  color: #263348;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
}
html[data-theme=dark] .campaign-record-table th,
html[data-theme=dark] .campaign-record-table td {
  border-bottom-color: var(--panel-border);
  color: var(--page-ink);
}
.campaign-record-table th {
  background: #fafbfe;
}
html[data-theme=dark] .campaign-record-table th {
  background: rgba(10, 29, 27, 0.96);
}
.campaign-record-table th span {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  background: #eef2f7;
  color: #718096;
  font-size: 10px;
}
html[data-theme=dark] .campaign-record-table th span {
  background: rgba(104, 215, 193, 0.16);
  color: var(--accent);
}
.campaign-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: var(--muted);
}
html[data-theme=dark] .campaign-empty {
  color: var(--muted);
}
.doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.docs-page {
  width: calc(100% - 64px);
  max-width: none;
  margin: 22px 32px 64px;
  padding: 0;
}
.docs-console-panel {
  margin-bottom: 0;
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}
.docs-console-panel .doc-toolbar {
  margin-bottom: 18px;
}
.doc-toolbar .doc-search {
  width: min(480px, 100%);
}
.doc-toolbar .doc-search input {
  min-height: 40px;
}
.doc-toolbar .search-button {
  width: 54px;
  min-height: 40px;
}
.doc-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 18px;
}
.docs-console-grid {
  align-items: stretch;
  gap: 16px;
  margin-top: 0;
}
.docs-console-grid .docs-card {
  min-height: 180px;
  box-shadow: none;
}
.doc-grid article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 20px;
}
.doc-grid article:hover,
.benefit-card:hover {
  border-color: var(--accent-ring);
  box-shadow: 0 12px 28px var(--brand-shadow);
}
.doc-grid button {
  background: transparent;
  color: var(--accent-2);
}
.contact-panel {
  max-width: 680px;
}
.contact-page {
  width: calc(100% - 64px);
  max-width: none;
  margin: 22px 32px 64px;
  padding: 0;
}
.contact-page .contact-panel {
  width: min(680px, 100%);
  margin-left: 0;
  margin-right: auto;
}
.contact-form {
  display: grid;
  gap: 12px;
}
.contact-panel input,
.contact-panel select,
.contact-panel textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 0 12px;
}
.contact-panel textarea {
  min-height: 140px;
  padding: 12px;
}
.state-panel {
  display: grid;
  min-height: 240px;
  place-items: center;
  color: var(--muted);
}
.model-page .model-empty-state {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
}
.model-page .model-empty-state strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}
.model-page .model-empty-state .primary-button {
  min-width: 126px;
  margin-top: 4px;
}
.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--panel-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--overlay-bg);
  opacity: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  width: min(750px, calc(100vw - 88px));
  overflow-y: auto;
  background: var(--surface);
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 400;
  padding: 30px 34px 46px;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  contain: layout paint;
  will-change: transform;
  animation: drawer-slide-in 220ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
.drawer.no-enter {
  animation: none;
}
.detail-hero {
  position: relative;
  padding-right: 48px;
}
.detail-title-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.detail-logo {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  font-size: 15px;
}
.detail-logo img {
  width: 34px;
  height: 34px;
}
.detail-title {
  min-width: 0;
  flex: 1;
}
.detail-title-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}
.detail-title h2 {
  margin: 0;
  overflow: hidden;
  color: var(--page-ink);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.detail-icon-button {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 7px;
  background: transparent;
  color: #92a0b8;
  font-size: 18px;
  line-height: 1;
}
.detail-icon-button.share {
  font-weight: 500;
}
.detail-badge {
  display: inline-flex;
  min-width: 28px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--badge-bg);
  color: var(--badge-ink);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 0 7px;
}
.icon-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  color: var(--page-ink);
  font-size: 24px;
}
.detail-close {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 1;
}
.detail-desc {
  margin: 18px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.detail-tags {
  margin-bottom: 26px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 42px;
}
.detail-primary,
.detail-doc-button {
  min-width: 152px;
  min-height: 46px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.detail-primary {
  background: var(--brand-gradient);
  color: var(--on-brand);
  box-shadow: 0 10px 24px var(--brand-shadow);
}
.detail-doc-button {
  background: var(--brand-gradient-soft);
  color: var(--accent);
}
.drawer-section {
  padding-top: 0;
}
.drawer-section + .drawer-section {
  margin-top: 52px;
}
.drawer-section > h3 {
  margin: 0 0 14px;
}
.section-title {
  display: grid;
  grid-template-columns: minmax(40px, 1fr) auto minmax(40px, 1fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
  color: var(--muted);
}
.section-title span {
  height: 1px;
  background: var(--panel-border);
}
.section-title h3 {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  font-weight: 500;
}
.detail-table {
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 9px;
  background: var(--surface);
}
.detail-table-head,
.detail-table-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}
.price-detail-table-three .detail-table-head,
.price-detail-table-three .detail-table-row {
  grid-template-columns: 200px 180px minmax(0, 1fr);
}
.detail-table-head {
  background: var(--surface-muted);
  color: var(--page-ink);
  font-size: 14px;
}
.detail-table-head strong {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  border-right: 1px solid var(--panel-border);
  font-weight: 500;
  padding: 0 18px;
}
.detail-table-head strong:last-child {
  border-right: 0;
}
.detail-table-head span,
.price-unit-toggle {
  color: var(--accent);
  font-weight: 500;
}
.price-unit-toggle {
  display: inline-flex;
  align-items: center;
  background: transparent;
  font-size: 13px;
  line-height: 1;
}
.detail-table-row {
  border-top: 1px solid var(--panel-border);
}
.detail-table-row > strong {
  display: flex;
  align-items: center;
  border-right: 1px solid var(--panel-border);
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 500;
  padding: 22px 18px;
}
.detail-table-row > strong.detail-table-dimension {
  color: var(--muted);
  font-weight: 400;
}
.detail-table-row > div {
  min-width: 0;
  padding: 18px;
}
.detail-table-row p {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.detail-table-row p span,
.detail-table-row p small {
  color: #92a0b8;
  font-size: 13px;
  font-weight: 500;
}
.detail-table-row p small {
  margin-left: 8px;
}
.detail-table-row p em {
  margin-left: 6px;
  color: #92a0b8;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  text-decoration: line-through;
}
.detail-table-row button {
  max-width: 100%;
  overflow: hidden;
  background: transparent;
  color: #92a0b8;
  font-size: 12px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-info-grid {
  display: grid;
  gap: 18px;
}
.detail-info-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.detail-info-row dt {
  color: var(--page-ink);
  font-size: 14px;
  font-weight: 500;
}
.detail-info-row dd {
  min-width: 0;
  margin: 0;
  color: var(--page-ink);
  overflow-wrap: anywhere;
}
.company-info-block {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.company-info-block strong {
  font-weight: 500;
}
.company-info-block a {
  color: var(--accent);
  font-size: 13px;
}
.company-info-block p,
.company-info-block small {
  flex: 1 0 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.rate-notice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 8px;
  background: var(--soft-accent);
  color: var(--page-ink);
  margin-bottom: 16px;
  padding: 16px 18px;
}
.rate-notice span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.rate-notice p {
  margin: 0;
  line-height: 1.5;
}
.rate-table {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(130px, 1fr) minmax(160px, 1fr);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}
.rate-table div {
  min-height: 46px;
  border-right: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  color: var(--page-ink);
  padding: 12px;
}
.rate-table div:nth-child(3n) {
  border-right: 0;
}
.rate-table div:nth-last-child(-n+3) {
  border-bottom: 0;
}
.rate-table div:nth-child(-n+3) {
  background: var(--surface-muted);
  font-weight: 500;
}
.rate-table .active {
  color: var(--accent);
}
.pricing-table small {
  grid-column: 1 / -1;
}
pre {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-size: 12px;
  line-height: 1.6;
  padding: 14px;
}
@media (max-width: 980px) {
  .home-page {
    --home-header-overlap: 0px;
  }
  .home-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 14px 24px 10px;
  }
  .home-brand img {
    width: 36px;
    height: 36px;
  }
  .home-nav {
    grid-column: 1 / -1;
    order: 3;
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 0;
  }
  .home-login {
    min-width: 72px;
    padding: 9px 14px;
  }
  .home-actions {
    gap: 8px;
  }
  .home-hero {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: auto;
    gap: 0;
    padding: 0;
  }
  .home-hero-copy {
    width: min(100% - 32px, 760px);
  }
  .home-hero-copy h1 {
    font-size: 40px;
  }
  .home-hero-copy p {
    font-size: 19px;
  }
  .home-hero-visual {
    min-height: 500px;
  }
  .home-section,
  .home-final,
  .home-footer {
    width: min(100% - 32px, 760px);
  }
  .home-section {
    padding: 56px 0;
  }
  #home-products {
    width: min(100% - 32px, 760px);
    padding: 52px 0 34px;
  }
  .home-stats {
    width: min(100% - 40px, 860px);
    padding: 64px 0 54px;
  }
  .home-stats .home-section-head {
    margin-bottom: 34px;
  }
  .home-metric-grid {
    gap: 18px;
  }
  .home-metric-card {
    min-height: 260px;
    padding: 36px 32px;
  }
  #home-products .home-section-head {
    margin-bottom: 30px;
  }
  #home-products .home-product-grid {
    grid-template-columns: 1fr;
  }
  #home-products .home-product-card {
    min-height: 260px;
    padding: 32px 30px 30px;
  }
  #home-products .home-product-card h3 {
    font-size: 24px;
  }
  #home-products .home-product-card p {
    font-size: 14px;
  }
  #home-products .home-product-card button {
    min-height: 42px;
    min-width: 104px;
    font-size: 14px;
    padding: 0 18px;
  }
  .home-scenario-card {
    min-height: 340px;
    padding: 26px 24px 24px;
  }
  .home-scenario-card h3 {
    font-size: 22px;
  }
  .home-scenario-card li {
    font-size: 13px;
  }
  .home-scenario-icon {
    width: 78px;
    height: 78px;
  }
  .home-product-grid,
  .home-metric-grid,
  .home-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-hero,
  .site-section,
  .site-footer {
    width: min(100% - 32px, 760px);
  }
  .docs-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-hero {
    padding-top: 52px;
  }
  .site-hero h1 {
    font-size: 38px;
  }
  .docs-hero h1,
  .partner-hero h1 {
    font-size: 30px;
  }
  .public-filter-section,
  .pricing-layout,
  .docs-layout,
  .partner-layout {
    grid-template-columns: 1fr;
  }
  .public-filter-card,
  .docs-menu,
  .partner-info {
    position: static;
  }
  .public-models-hero {
    min-height: 610px;
  }
  .public-models-hero-shell {
    width: min(100% - 32px, 760px);
    min-height: 610px;
  }
  .public-models-hero-inner {
    width: 100%;
    padding-top: 52px;
  }
  .public-models-hero h1 {
    font-size: 40px;
    font-weight: 650;
  }
  .public-models-hero p {
    margin-top: 36px;
    font-size: 18px;
    font-weight: 500;
  }
  .model-float-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    opacity: 0.45;
  }
  .model-float-icon img {
    width: 21px;
    height: 21px;
  }
  .model-filter-strip {
    width: calc(100% - 32px);
  }
  .public-model-list-section {
    width: calc(100% - 32px);
  }
  .model-filter-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .model-filter-row strong {
    line-height: 1.3;
  }
  .public-model-list-head {
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .public-models-page .public-model-grid {
    grid-template-columns: repeat(2, minmax(294px, 1fr));
    justify-content: start;
    gap: 18px;
  }
  .login-page {
    display: block;
    overflow: auto;
  }
  .login-visual {
    display: none;
  }
  .login-panel {
    min-height: 100vh;
    padding: 86px 24px 44px;
  }
  .login-language {
    top: 24px;
    right: 24px;
  }
  .doc-article-shell {
    width: calc(100vw - 32px);
  }
  .docs-page {
    width: calc(100% - 32px);
    margin: 16px 16px 48px;
  }
  .docs-console-panel {
    padding: 16px;
  }
  .doc-category-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .doc-category-bar::-webkit-scrollbar {
    display: none;
  }
  .doc-article {
    padding: 18px;
  }
}
@media (max-width: 480px) {
  .home-page {
    background: var(--bg);
  }
  .home-header {
    width: 100%;
    padding-inline: 16px;
  }
  .home-hero,
  .home-section,
  .home-final,
  .home-footer {
    width: calc(100% - 24px);
  }
  .home-hero {
    width: 100%;
  }
  .home-hero-copy {
    gap: 14px;
  }
  .home-hero-copy h1 {
    font-size: 32px;
  }
  .home-hero-copy p {
    font-size: 17px;
  }
  .home-hero-copy span:not(.home-badge) {
    font-size: 14px;
  }
  .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .home-primary,
  .home-secondary {
    width: 100%;
  }
  .home-hero-visual {
    height: 100%;
    min-height: 0;
    border-radius: 0;
  }
  .home-banner-card {
    left: 18px;
    right: 18px;
    top: 42px;
    width: auto;
    padding: 18px;
  }
  .home-carousel-slide:nth-child(even) .home-banner-card,
  .home-carousel-slide:nth-child(even) .home-console {
    right: 18px;
    left: 18px;
  }
  .home-banner-card strong {
    font-size: 20px;
  }
  .home-promo-pill {
    font-size: 15px;
  }
  .home-console {
    left: 18px;
    right: 18px;
    width: auto;
    bottom: 26px;
  }
  .home-section-head h2,
  .home-final h2 {
    font-size: 25px;
  }
  .home-stats {
    width: calc(100% - 28px);
    padding: 48px 0 42px;
  }
  .home-stats .home-section-head {
    margin-bottom: 24px;
  }
  .home-stats .home-section-head h2 {
    font-size: 28px;
  }
  .home-metric-card {
    min-height: 220px;
    gap: 16px;
    padding: 30px 26px;
  }
  .home-metric-card strong {
    font-size: 50px;
  }
  .home-product-grid,
  .home-metric-grid,
  .home-scenario-grid {
    grid-template-columns: 1fr;
  }
  .home-scenario-card {
    gap: 14px;
    padding: 22px 18px 20px;
  }
  .home-scenario-card h3 {
    font-size: 20px;
  }
  .home-scenario-card li {
    gap: 8px;
    font-size: 13px;
    line-height: 1.65;
  }
  .home-scenario-card li + li {
    margin-top: 10px;
  }
  .home-scenario-icon {
    width: 68px;
    height: 68px;
  }
  .site-hero,
  .site-section,
  .site-footer {
    width: calc(100% - 24px);
  }
  .site-hero h1 {
    font-size: 30px;
  }
  .docs-hero h1,
  .partner-hero h1 {
    font-size: 26px;
  }
  .site-hero p {
    font-size: 15px;
  }
  .site-search {
    grid-template-columns: 1fr;
  }
  .site-search button {
    min-height: 44px;
    border-left: 0;
    border-top: 1px solid var(--panel-border);
  }
  .public-model-grid,
  .docs-card-grid,
  .partner-form {
    grid-template-columns: 1fr;
  }
  .price-table-head,
  .price-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .price-table-head span:not(:first-child) {
    display: none;
  }
  .price-row {
    align-items: start;
  }
  .public-models-hero {
    min-height: 520px;
  }
  .public-models-hero h1 {
    font-size: 30px;
    font-weight: 650;
  }
  .public-models-hero p {
    margin-top: 26px;
    font-size: 15px;
    font-weight: 500;
  }
  .public-models-hero .site-search {
    margin-top: 20px;
  }
  .public-models-hero .site-search button {
    width: 100%;
    border: 0;
    border-radius: 0;
  }
  .public-hot-row {
    justify-content: flex-start;
    gap: 10px;
  }
  .public-hot-row strong {
    width: 100%;
    font-weight: 600;
  }
  .model-float-icon {
    display: none;
  }
  .model-filter-buttons {
    gap: 10px;
  }
  .model-filter-buttons span {
    min-width: auto;
    font-size: 14px;
    padding: 11px 13px;
  }
  .public-model-list-head {
    display: grid;
  }
  .public-model-list-head h2 {
    font-size: 20px;
  }
  .public-model-list-section {
    width: calc(100% - 32px);
  }
  .public-models-page .public-model-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-content: start;
  }
  .public-models-page .public-model-card {
    width: 100%;
    height: 208px;
    min-height: 0;
    padding: 16px 20px 14px;
  }
  .home-product-card,
  .home-scenario-card {
    min-height: auto;
  }
  .home-footer {
    display: flex;
  }
  .login-card h2 {
    margin-bottom: 24px;
    font-size: 22px;
  }
  .login-socials {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-carousel-track {
    transition: none;
  }
  .home-metric-graphic {
    animation: none;
  }
  #home-products .home-product-card::after {
    animation: none;
  }
  .wallet-checkout-spinner {
    animation: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes metric-graphic-float {
  from {
    transform: translate3d(0, -6px, 0);
  }
  to {
    transform: translate3d(0, 8px, 0);
  }
}
@keyframes product-card-graphic-float {
  from {
    transform: translate3d(0, -7px, 0) rotate(var(--product-card-icon-rotate, 1deg));
  }
  to {
    transform: translate3d(0, 9px, 0) rotate(var(--product-card-icon-rotate, 1deg));
  }
}
@keyframes drawer-slide-in {
  from {
    transform: translate3d(100%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@media (max-width: 1100px) {
  .wallet-tab-cards {
    grid-template-columns: 1fr;
  }
  .wallet-overview-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .wallet-overview-body strong {
    font-size: 36px;
  }
  .wallet-amount-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .wallet-custom-row {
    grid-template-columns: 1fr;
  }
  .wallet-recharge-row {
    grid-template-columns: 1fr;
  }
  .wallet-recharge-row-amount .wallet-recharge-row-content,
  .wallet-recharge-row-voucher .wallet-recharge-row-content,
  .wallet-recharge-row-method .wallet-recharge-row-content {
    width: 100%;
  }
  .wallet-record-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .model-page.filter-mode {
    width: calc(100% - 32px);
    margin: 0 16px;
  }
  .model-page.filter-mode .models-frame {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 12px 18px;
  }
  .model-page.filter-mode .model-filter-tree {
    width: auto;
  }
  .model-page.filter-mode .model-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .model-page.filter-mode .model-toolbar {
    grid-template-columns: 136px minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
  }
  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .page,
  .model-page {
    width: calc(100vw - 32px);
  }
  .playground {
    grid-template-columns: 1fr;
  }
  .image-workbench {
    grid-template-columns: 1fr;
  }
  .tts-workbench {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 58px);
    overflow: visible;
  }
  .image-config {
    border-right: 0;
    border-bottom: 1px solid var(--panel-border);
  }
  .tts-config {
    border-right: 0;
    border-bottom: 1px solid var(--panel-border);
  }
  .image-stage {
    padding: 18px 16px 24px;
  }
  .tts-stage {
    min-height: 560px;
    padding: 18px 16px 24px;
  }
  .cost-bar {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px 12px;
  }
  .image-preview {
    width: min(100%, 520px);
  }
  .image-prompt-suggestions {
    grid-template-columns: 1fr 1fr;
  }
  .tts-suggestions {
    grid-template-columns: 1fr 1fr;
  }
  .tts-suggestions .tts-clear {
    width: auto;
  }
  .play-config {
    border-right: 0;
    padding-right: 0;
  }
}
@media (max-width: 640px) {
  .topbar,
  .model-toolbar,
  .benefit-grid,
  .campaign-steps,
  .campaign-participation,
  .filters-line,
  .bill-summary,
  .summary-strip,
  .amount-grid {
    grid-template-columns: 1fr;
  }
  .public-models-page .public-model-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .recharge-page {
    width: calc(100vw - 32px);
    margin: 14px 16px 48px;
  }
  .campaign-page {
    width: calc(100vw - 32px);
    margin: 14px 16px 48px;
  }
  .tts-field-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tts-planet {
    transform: scale(0.82);
  }
  .campaign-record-head {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .campaign-record-head .campaign-title,
  .campaign-record-summary {
    grid-column: 1;
    justify-self: center;
  }
  .campaign-record-summary {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 8px;
    line-height: 1.4;
    white-space: normal;
  }
  .campaign-record-summary span + span {
    border-left: 0;
    padding-left: 0;
  }
  .bills-page {
    width: calc(100vw - 32px);
    margin: 14px 16px 48px;
  }
  .invitation-page {
    width: calc(100vw - 32px);
    margin: 14px 16px 48px;
  }
  .bills-filter-bar,
  .bills-breakdown-toolbar {
    gap: 12px;
  }
  .bills-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .bills-date-control,
  .bills-select-wrap {
    width: 100%;
  }
  .bills-breakdown-toolbar {
    grid-template-columns: 1fr;
  }
  .bills-export-actions {
    justify-content: flex-start;
  }
  .bill-summary {
    width: 100%;
  }
  .recharge-section-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 0;
  }
  .recharge-box,
  .corporate-transfer-tip {
    padding: 22px 18px;
  }
  .balance-alert {
    width: 100%;
    white-space: normal;
    justify-content: flex-start;
  }
  .balance-warning-modal {
    width: calc(100vw - 24px);
    padding: 20px 18px 18px;
  }
  .balance-warning-modal h2 {
    font-size: 19px;
  }
  .balance-warning-rules {
    font-size: 13px;
  }
  .balance-warning-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
  }
  .balance-warning-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .wallet-amount-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .wallet-custom-row {
    grid-template-columns: 1fr;
  }
  .wallet-recharge-row {
    grid-template-columns: 1fr;
  }
  .wallet-recharge-row-amount .wallet-recharge-row-content,
  .wallet-recharge-row-voucher .wallet-recharge-row-content,
  .wallet-recharge-row-method .wallet-recharge-row-content {
    width: 100%;
  }
  .wallet-recharge-summary {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .wallet-record-section .table-card {
    overflow-x: auto;
  }
  .wallet-record-refund-popover {
    right: 0;
    width: 188px;
    transform: none;
  }
  .wallet-record-refund-popover::before {
    right: 14px;
    transform: rotate(45deg);
  }
  .wallet-checkout-modal {
    width: calc(100vw - 24px);
    padding: 18px;
    border-radius: 14px;
  }
  .wallet-checkout-close {
    top: 10px;
    right: 12px;
  }
  .wallet-checkout-panel {
    grid-template-columns: 1fr;
  }
  .wallet-checkout-media,
  .wallet-checkout-actions {
    grid-column: 1;
    grid-row: auto;
  }
  .wallet-checkout-media {
    justify-items: start;
  }
  .wallet-checkout-qr {
    justify-self: start;
  }
  .wallet-checkout-expire {
    max-width: 100%;
    text-align: left;
  }
  .wallet-payment-success-modal {
    min-height: 300px;
    padding: 38px 22px 34px;
  }
  .wallet-payment-success-icon {
    width: 58px;
    height: 58px;
  }
  .wallet-payment-success-icon svg {
    width: 34px;
    height: 34px;
  }
  .wallet-payment-success-modal h2 {
    font-size: 22px;
  }
  .recharge-page {
    width: calc(100vw - 24px);
    margin: 14px 12px 48px;
  }
  .recharge-page .wallet-topbar {
    align-items: stretch;
    flex-direction: column;
  }
  .recharge-page .wallet-tab-cards {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .wallet-overview-card {
    min-height: auto;
    padding: 14px 16px 12px;
  }
  .wallet-overview-head strong {
    font-size: 15px;
  }
  .wallet-overview-body {
    margin-top: 12px;
  }
  .wallet-overview-body strong {
    font-size: 28px;
  }
  .wallet-overview-body span {
    font-size: 13px;
  }
  .wallet-record-head {
    justify-content: flex-start;
  }
  .wallet-record-toggle {
    gap: 20px;
  }
  .wallet-payment-methods {
    width: 100%;
  }
  .wallet-payment-method {
    flex: 1 1 100%;
    justify-content: center;
  }
  .recharge-pay-submit {
    width: 100%;
  }
  .wallet-record-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }
  .top-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .referral-promo {
    order: -1;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .model-filter-tree {
    left: 0;
    width: calc(100vw - 32px);
  }
  .model-page.filter-mode {
    height: calc(100vh - 122px);
  }
  .model-page.filter-mode .models-frame {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 42vh) minmax(0, 1fr);
  }
  .model-page.filter-mode .model-filter-tree,
  .model-page.filter-mode .models-content {
    grid-column: 1;
  }
  .model-page.filter-mode .model-filter-tree {
    grid-row: 1;
  }
  .model-page.filter-mode .models-content {
    grid-row: 2;
  }
  .filter-chips {
    gap: 10px;
  }
  .filter-chip {
    min-height: 34px;
    font-size: 15px;
  }
  .model-page:not(.filter-mode) .model-list {
    grid-template-columns: 1fr;
  }
  .model-page.filter-mode .model-list {
    grid-template-columns: 1fr;
  }
  .drawer {
    width: 100vw;
    padding: 24px 18px 36px;
  }
  .detail-hero {
    padding-right: 34px;
  }
  .detail-title h2 {
    font-size: 18px;
  }
  .detail-actions {
    display: grid;
  }
  .detail-table-head,
  .detail-table-row,
  .price-detail-table-three .detail-table-head,
  .price-detail-table-three .detail-table-row,
  .detail-info-row {
    grid-template-columns: 1fr;
  }
  .detail-table-head strong,
  .detail-table-row > strong {
    border-right: 0;
  }
  .detail-table-head strong + strong,
  .detail-table-row > div {
    border-top: 1px solid var(--panel-border);
  }
  .rate-table {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .nav {
    grid-template-columns: 1fr;
  }
}
.playground-model-select {
  position: relative;
  width: 100%;
}
.playground-model-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--input-ink);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.playground-model-select-trigger:hover {
  border-color: var(--accent);
}
.playground-model-select-trigger:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-ring);
}
.playground-model-select-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.playground-model-select-label {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playground-model-select-vendor {
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-muted);
  border-radius: 4px;
}
.playground-model-select-arrow {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  color: var(--muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.playground-model-select.open .playground-model-select-arrow {
  transform: rotate(180deg);
}
.playground-model-select-dropdown {
  position: fixed;
  z-index: 1000;
  display: none;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  box-sizing: border-box;
}
.playground-model-select.open .playground-model-select-dropdown {
  display: flex;
  flex-direction: column;
}
.playground-model-select-search {
  width: 100%;
  min-height: 34px;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid var(--panel-border);
  background: var(--input-bg);
  color: var(--input-ink);
  font-size: 14px;
  box-sizing: border-box;
}
.playground-model-select-search:focus {
  outline: none;
}
.playground-model-select-search::placeholder {
  color: var(--muted);
}
.playground-model-select-options {
  max-height: 280px;
  overflow-y: auto;
}
.playground-model-select-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--card-ink);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s;
}
.playground-model-select-option:hover {
  background-color: var(--soft-accent);
}
.playground-model-select-option.selected {
  background-color: var(--accent-faint);
}
.playground-model-select-option-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.playground-model-select-option-vendor {
  margin-left: 12px;
  padding: 2px 6px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface-muted);
  border-radius: 4px;
  flex-shrink: 0;
}
.playground-model-select-empty {
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.operation-workbench {
  display: grid;
  grid-template-columns: var(--pg-config-width) minmax(0, 1fr);
  height: calc(100vh - 58px);
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 88% 88%,
      rgba(54, 189, 209, 0.12),
      transparent 32%),
    var(--surface);
  color: var(--page-ink);
}
.operation-playground.image-workbench,
.operation-playground.tts-workbench {
  height: calc(100vh - 58px);
}
.operation-config,
.operation-stage {
  min-width: 0;
  min-height: 0;
}
.operation-config {
  overflow: auto;
  border-right: 1px solid var(--panel-border);
  background:
    linear-gradient(
      145deg,
      var(--soft-accent-2),
      var(--surface) 58%);
  padding: 16px 18px 24px;
}
.operation-config .playground-control select,
.operation-config .playground-control input:not([type=range]):not([type=file]):not([type=hidden]),
.operation-config .playground-control textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 0 10px;
  font-size: 14px;
}
.operation-config .playground-control textarea {
  min-height: 72px;
  padding: 9px 10px;
  resize: vertical;
}
.operation-stage {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px clamp(16px, 4vw, 36px) 20px;
}
.operation-output-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.operation-result-space {
  min-height: min(46vh, 420px);
}
.operation-result-panel {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.operation-result-text {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: var(--page-ink);
  font-size: 14px;
  line-height: 1.75;
}
.operation-result-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}
.operation-result-row {
  display: grid;
  grid-template-columns: 46px 96px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  background: var(--surface);
  padding: 10px 12px;
}
.operation-result-row + .operation-result-row {
  border-top: 1px solid var(--panel-border);
}
.operation-result-row .rank {
  color: var(--muted);
  font-size: 12px;
}
.operation-result-row .score {
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.operation-result-row .document {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: var(--page-ink);
  font-size: 13px;
  line-height: 1.6;
}
.operation-asset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.operation-asset-grid.video {
  display: block;
}
.operation-asset {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(58vh, 460px);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--surface-muted);
}
.operation-asset-item {
  position: relative;
  max-width: 100%;
}
.operation-asset-item .asset-download {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 7px;
  background: rgba(17, 24, 39, 0.55);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.operation-asset-item:hover .asset-download,
.operation-asset-item .asset-download:focus-visible {
  opacity: 1;
}
.operation-asset-item .asset-download:hover {
  background: rgba(17, 24, 39, 0.82);
}
@media (hover: none) {
  .operation-asset-item .asset-download {
    opacity: 1;
  }
}
.operation-audio-panel {
  display: grid;
  gap: 10px;
}
.operation-audio {
  width: 100%;
}
.operation-prompt-field {
  display: block;
}
.operation-prompt-field > span {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--page-ink);
  font-size: 14px;
  line-height: 1.4;
}
.operation-prompt-field textarea {
  width: 100%;
  min-height: 112px;
  border-color: var(--panel-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--input-ink);
  padding: 14px 72px 14px 16px;
  font-size: 14px;
  resize: vertical;
}
.operation-prompt-field.compact textarea {
  min-height: 112px;
}
.operation-prompt-field textarea::placeholder {
  color: var(--muted);
}
.operation-prompt-field textarea:focus,
.operation-prompt-field textarea:focus-visible {
  border-color: var(--accent);
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--accent-ring);
}
.operation-prompt-box .prompt-clear {
  display: inline-grid;
  place-items: center;
}
.operation-job-actions {
  display: flex;
  justify-content: flex-end;
}
.operation-cancel-button {
  min-height: 32px;
  border: 1px solid rgba(220, 38, 38, 0.22);
  border-radius: 7px;
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
  padding: 0 12px;
  font-size: 13px;
}
.operation-cancel-button:hover {
  background: rgba(220, 38, 38, 0.12);
}
@media (max-width: 900px) {
  .operation-workbench,
  .operation-playground.image-workbench,
  .operation-playground.tts-workbench {
    display: flex;
    height: auto;
    min-height: calc(100vh - 58px);
    flex-direction: column;
    overflow: visible;
  }
  .operation-config,
  .operation-playground.image-workbench .image-config,
  .operation-playground.tts-workbench .tts-config {
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--panel-border);
    padding: 16px 16px 18px;
  }
  .operation-stage,
  .operation-playground.image-workbench .image-stage,
  .operation-playground.tts-workbench .tts-stage {
    overflow: visible;
    padding: 16px;
  }
  .operation-result-space {
    min-height: 260px;
  }
  .operation-result-row {
    grid-template-columns: 38px 72px minmax(0, 1fr);
  }
}
:root {
  --pg-config-width: 270px;
  --session-user-bg: rgba(59, 130, 246, 0.08);
  --session-meta-bg: rgba(100, 116, 139, 0.08);
  --session-reasoning-bg: rgba(139, 92, 246, 0.06);
  --session-error-bg: rgba(239, 68, 68, 0.08);
}
.session-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 6px 4px;
}
.session-clear-button {
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--page-ink);
  border-radius: 8px;
  font-size: 12px;
  padding: 3px 10px;
  cursor: pointer;
  opacity: 0.75;
}
.session-clear-button:hover {
  opacity: 1;
}
.session-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 2px 16px;
}
.session-entry {
  position: relative;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.session-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.session-status {
  font-size: 11px;
  font-weight: 600;
  color: var(--page-ink);
  opacity: 0.65;
}
.session-status.done {
  color: #16a34a;
  opacity: 1;
}
.session-status.failed {
  color: #dc2626;
  opacity: 1;
}
.session-status.stopped {
  color: #d97706;
  opacity: 1;
}
.session-status.streaming,
.session-status.pending {
  color: #2563eb;
  opacity: 1;
}
.session-entry-actions {
  display: flex;
  gap: 6px;
}
.session-stop-button,
.session-delete-button {
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--page-ink);
  border-radius: 6px;
  font-size: 11px;
  padding: 2px 8px;
  cursor: pointer;
}
.session-prompt {
  align-self: flex-end;
  width: fit-content;
  max-width: 85%;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--session-user-bg);
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--page-ink);
}
.session-reasoning {
  background: var(--session-reasoning-bg);
  border-radius: 10px;
  padding: 6px 10px;
}
.session-reasoning summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--page-ink);
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.session-reasoning summary::-webkit-details-marker {
  display: none;
}
.session-reasoning summary::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  opacity: 0.7;
}
.session-reasoning[open] > summary::before {
  transform: rotate(45deg);
}
.session-reasoning-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b5cf6;
  animation: session-pulse 1.1s ease-in-out infinite;
}
@keyframes session-pulse {
  0%, 100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
.session-reasoning-body {
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--page-ink);
  opacity: 0.85;
}
.session-answer {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
  color: var(--page-ink);
}
.session-error {
  background: var(--session-error-bg);
  border-radius: 10px;
  padding: 8px 10px;
  color: #dc2626;
}
.session-error p {
  margin: 4px 0 0;
  word-break: break-word;
}
.session-spinner {
  width: 16px;
  height: 16px;
}
.session-meta-blocks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.session-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--session-meta-bg);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--page-ink);
}
.session-meta-tag {
  font-weight: 700;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.session-meta b {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.session-moa-usage summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--page-ink);
  opacity: 0.8;
}
.session-video-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--page-ink);
}
.session-video-progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: var(--session-meta-bg);
  overflow: hidden;
}
.session-video-progress-bar i {
  display: block;
  height: 100%;
  background: #2563eb;
  transition: width 500ms ease;
}
.playground-key-field {
  display: block;
  margin: 0 0 18px;
}
.playground-key-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.playground-key-row .playground-key-select {
  flex: 1;
  min-width: 0;
}
.playground-key-field .playground-key-manual {
  width: 100%;
  height: 34px;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--input-ink);
  font-size: 14px;
  box-sizing: border-box;
}
.playground-key-field .playground-key-manual:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-ring);
}
.playground-key-refresh,
.playground-key-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: var(--input-bg);
  color: var(--page-ink);
  font-size: 15px;
  cursor: pointer;
  padding: 0;
}
.playground-key-refresh:hover,
.playground-key-create:hover {
  border-color: var(--accent);
}
.playground-key-refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.playground-key-create {
  color: var(--accent);
  font-weight: 600;
}
.agent-config-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.agent-config-heading h3 {
  margin: 0;
}
.agent-copy-all {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--accent);
  font-size: 13px;
  cursor: pointer;
}
.agent-copy-all:hover {
  border-color: var(--accent);
}
.agent-config-card {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  background: var(--surface-muted);
  padding: 12px;
}
.agent-config-grid {
  display: grid;
  gap: 8px;
}
.agent-config-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: var(--page-bg);
}
.agent-config-row span {
  color: var(--muted);
  font-size: 13px;
}
.agent-config-row code {
  min-width: 0;
  overflow: hidden;
  color: var(--page-ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.agent-capability-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--panel-border);
  border-radius: 7px;
  background: var(--page-bg);
}
.agent-capability-item span {
  color: var(--muted);
  font-size: 12px;
}
.agent-capability-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--page-ink);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-copy-button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
}
.agent-copy-button:hover {
  background: var(--surface-muted);
}
@media (max-width: 720px) {
  .agent-config-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .agent-capability-grid {
    grid-template-columns: 1fr;
  }
}
