/* CloudAI007 lightweight theme overlay. Served by nginx, injected into New API HTML. */
:root {
  --cloudai-bg-0: #02040c;
  --cloudai-bg-1: #06152d;
  --cloudai-bg-2: #220842;
  --cloudai-cyan: #22d7ff;
  --cloudai-blue: #1677ff;
  --cloudai-violet: #9b5cff;
  --cloudai-pink: #ff4fd8;
  --cloudai-text: #f4fbff;
  --cloudai-muted: #9fb7d6;
  --cloudai-border: rgba(90, 220, 255, 0.26);
  --cloudai-glass: rgba(7, 15, 35, 0.72);
}

html,
body {
  background: var(--cloudai-bg-0) !important;
}

body:has(.public-page-content) {
  color: var(--cloudai-text);
  --semi-color-text-0: var(--cloudai-text);
  --semi-color-text-1: rgba(226, 244, 255, 0.88);
  --semi-color-text-2: rgba(190, 214, 246, 0.78);
  --semi-color-text-3: rgba(159, 183, 214, 0.68);
  --semi-color-primary: #7ee9ff;
  --semi-color-primary-hover: #ff8bea;
  --semi-color-link: #7ee9ff;
}

.semi-layout-header > header {
  background: rgba(3, 7, 18, 0.76) !important;
  border-bottom: 1px solid rgba(88, 210, 255, 0.18);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(1.4);
}

.semi-layout-header h4,
.semi-layout-header nav a,
.semi-layout-header .semi-button,
.semi-layout-header .semi-icon,
.semi-layout-header .semi-button-content,
.semi-layout-header .semi-button-content span {
  color: var(--cloudai-text) !important;
  opacity: 1 !important;
}

.semi-layout-header nav a {
  border: 1px solid transparent;
}

html:not(.cloudai-topnav-ready) .semi-layout-header nav {
  visibility: hidden !important;
}

.semi-layout-header nav a:hover {
  color: #7ee9ff !important;
  background: rgba(34, 215, 255, 0.08);
  border-color: rgba(34, 215, 255, 0.18);
  box-shadow: 0 0 20px rgba(34, 215, 255, 0.12);
}

.semi-layout-header .semi-button {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.semi-layout-header .semi-button:hover {
  background: rgba(34, 215, 255, 0.14) !important;
  border-color: rgba(34, 215, 255, 0.3) !important;
}

.semi-layout-header a[href="/login"] .semi-button {
  color: #eafcff !important;
  background: rgba(126, 233, 255, 0.11) !important;
  border: 1px solid rgba(126, 233, 255, 0.22) !important;
  box-shadow: 0 0 18px rgba(34, 215, 255, 0.1);
}

.semi-layout-header a[href="/login"] .semi-button * {
  color: #eafcff !important;
}

.semi-layout-header .semi-button-primary.semi-button-solid {
  background: linear-gradient(135deg, var(--cloudai-cyan), var(--cloudai-blue) 48%, var(--cloudai-violet)) !important;
  border-color: rgba(126, 233, 255, 0.5) !important;
  box-shadow: 0 0 24px rgba(34, 215, 255, 0.24);
}

.semi-layout-header img[alt="logo"] {
  border-radius: 12px !important;
  box-shadow: 0 0 0 1px rgba(126, 233, 255, 0.35), 0 0 22px rgba(34, 215, 255, 0.35);
}

.public-page-content,
.public-page-content .classic-page-fill {
  background:
    linear-gradient(135deg, rgba(2, 4, 12, 0.98) 0%, rgba(6, 21, 45, 0.98) 46%, rgba(34, 8, 66, 0.98) 100%) !important;
  color: var(--cloudai-text) !important;
}

.public-page-content .classic-page-fill {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
}

.public-page-content .classic-page-fill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(34, 215, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 92, 255, 0.075) 1px, transparent 1px),
    linear-gradient(120deg, transparent 0%, rgba(34, 215, 255, 0.1) 38%, rgba(255, 79, 216, 0.12) 62%, transparent 100%);
  background-size: 72px 72px, 72px 72px, 100% 100%;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}

.public-page-content .classic-page-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(34, 215, 255, 0.18), transparent 38%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent 38%);
}

.public-page-content .blur-ball {
  display: none !important;
}

.classic-home-hero {
  border-bottom-color: rgba(34, 215, 255, 0.18) !important;
  min-height: calc(100vh - 48px);
}

.classic-home-hero h1,
.public-page-content h1,
.public-page-content h2,
.public-page-content h3,
.public-page-content h4,
.public-page-content h5,
.public-page-content h6,
.public-page-content .semi-typography {
  color: var(--cloudai-text) !important;
}

.classic-home-hero h1 {
  text-shadow: 0 0 30px rgba(34, 215, 255, 0.18), 0 0 54px rgba(155, 92, 255, 0.14);
}

.classic-home-hero .shine-text,
.public-page-content .shine-text {
  color: transparent !important;
  background: linear-gradient(95deg, #ffffff 0%, #7ee9ff 36%, #9b5cff 68%, #ff76dd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

.public-page-content p,
.public-page-content li,
.public-page-content main ul,
.public-page-content main ol,
.public-page-content main span,
.public-page-content .semi-checkbox-addon,
.public-page-content .semi-checkbox-addon *,
.public-page-content .text-semi-color-text-1,
.public-page-content [class*="text-semi-color-text"],
.public-page-content [class*="!text-semi-color-text"],
.public-page-content .text-gray-600,
.public-page-content .text-gray-700,
.public-page-content .text-gray-800 {
  color: var(--cloudai-muted) !important;
}

.public-page-content main strong,
.public-page-content main b,
.public-page-content main em,
.public-page-content main th {
  color: rgba(244, 251, 255, 0.96) !important;
}

.public-page-content main code,
.public-page-content main pre {
  color: #dffaff !important;
  background: rgba(3, 9, 23, 0.74) !important;
  border: 1px solid rgba(126, 233, 255, 0.16) !important;
}

.public-page-content main blockquote {
  color: rgba(226, 244, 255, 0.86) !important;
  border-left-color: rgba(126, 233, 255, 0.42) !important;
  background: rgba(126, 233, 255, 0.07) !important;
}

.public-page-content .semi-input-wrapper {
  color: var(--cloudai-text) !important;
  background: rgba(4, 12, 28, 0.72) !important;
  border: 1px solid rgba(126, 233, 255, 0.2) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 26px rgba(34, 215, 255, 0.08);
  backdrop-filter: blur(16px);
}

.public-page-content .semi-input,
.public-page-content input,
.public-page-content textarea {
  color: var(--cloudai-text) !important;
  caret-color: var(--cloudai-cyan);
}

.public-page-content .semi-input::placeholder,
.public-page-content input::placeholder,
.public-page-content textarea::placeholder {
  color: rgba(198, 222, 255, 0.54) !important;
}

.public-page-content .semi-input-prefix,
.public-page-content .semi-input-suffix,
.public-page-content .semi-icon {
  color: rgba(126, 233, 255, 0.78) !important;
}

.public-page-content .semi-card {
  color: var(--cloudai-text) !important;
  background:
    linear-gradient(180deg, rgba(12, 25, 54, 0.82), rgba(5, 10, 24, 0.78)) !important;
  border: 1px solid var(--cloudai-border) !important;
  border-radius: 22px !important;
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    0 0 54px rgba(34, 215, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px) saturate(1.35);
}

.public-page-content .semi-form-field-label,
.public-page-content .semi-form-field-label-text {
  color: rgba(230, 246, 255, 0.92) !important;
  font-weight: 650;
}

.public-page-content a {
  color: #7ee9ff !important;
}

.public-page-content .semi-checkbox-addon a,
.public-page-content .semi-checkbox-addon a span {
  color: #7ee9ff !important;
}

.public-page-content .cloudai-login-legal {
  display: inline;
  line-height: 1.7;
  color: var(--cloudai-muted) !important;
}

.public-page-content .cloudai-login-legal-link {
  color: #7ee9ff !important;
  font-weight: 650;
  white-space: nowrap;
}

.public-page-content a:hover {
  color: #ff8bea !important;
}

.public-page-content .semi-button-primary.semi-button-solid,
.public-page-content .semi-button-primary:not(.semi-button-light):not(.semi-button-borderless) {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--cloudai-cyan), var(--cloudai-blue) 46%, var(--cloudai-violet) 78%, var(--cloudai-pink)) !important;
  border: 1px solid rgba(126, 233, 255, 0.42) !important;
  box-shadow: 0 16px 38px rgba(22, 119, 255, 0.32), 0 0 26px rgba(34, 215, 255, 0.24);
}

.public-page-content .semi-button-primary.semi-button-solid:hover,
.public-page-content .semi-button-primary:not(.semi-button-light):not(.semi-button-borderless):hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(155, 92, 255, 0.34), 0 0 34px rgba(34, 215, 255, 0.3);
}

.public-page-content .semi-button-light,
.public-page-content .semi-button-tertiary {
  color: #bfefff !important;
  background: rgba(126, 233, 255, 0.1) !important;
  border: 1px solid rgba(126, 233, 255, 0.18) !important;
}

.public-page-content .semi-button-light:hover,
.public-page-content .semi-button-tertiary:hover {
  background: rgba(155, 92, 255, 0.16) !important;
  border-color: rgba(255, 118, 221, 0.24) !important;
}

.classic-home-hero .semi-input-wrapper-large {
  border-radius: 999px !important;
}

.classic-home-hero .semi-scrolllist,
.classic-home-hero .semi-scrolllist-body,
.classic-home-hero .semi-scrolllist-selector {
  background: transparent !important;
  color: #7ee9ff !important;
}

.classic-home-hero img,
.classic-home-hero svg {
  filter: drop-shadow(0 0 10px rgba(34, 215, 255, 0.22));
}

.classic-home-hero main img,
.classic-home-hero img[alt="logo"] {
  filter: none;
}

.public-page-content footer,
.public-page-content footer *,
.public-page-content .classic-home-page + div,
.public-page-content .classic-home-page + div * {
  color: rgba(198, 222, 255, 0.72) !important;
}

.public-page-content footer a,
.public-page-content .classic-home-page + div a {
  color: #7ee9ff !important;
}

body:has(.public-page-content) footer,
body:has(.public-page-content) footer *,
body:has(.public-page-content) [class*="!text-semi-color-text"] {
  color: rgba(198, 222, 255, 0.78) !important;
}

body:has(.public-page-content) footer a,
body:has(.public-page-content) footer a * {
  color: #7ee9ff !important;
}

@media (max-width: 768px) {
  .semi-layout-header > header {
    background: rgba(3, 7, 18, 0.88) !important;
  }

  .classic-home-hero {
    min-height: auto;
  }

  .classic-home-hero h1 {
    font-size: clamp(2.25rem, 10.8vw, 3.25rem) !important;
    line-height: 1.02 !important;
  }

  .classic-home-hero .shine-text {
    white-space: nowrap;
  }

  .public-page-content .classic-page-fill::before {
    background-size: 48px 48px, 48px 48px, 100% 100%;
  }
}

/* Authenticated app shell: dashboard, model marketplace, admin tables, settings. */
body:has(.app-layout-fixed) {
  background:
    linear-gradient(135deg, rgba(2, 4, 12, 1) 0%, rgba(6, 21, 45, 1) 45%, rgba(34, 8, 66, 1) 100%) !important;
  color: var(--cloudai-text);
  --semi-color-text-0: var(--cloudai-text);
  --semi-color-text-1: rgba(226, 244, 255, 0.88);
  --semi-color-text-2: rgba(190, 214, 246, 0.74);
  --semi-color-text-3: rgba(159, 183, 214, 0.66);
  --semi-color-border: rgba(126, 233, 255, 0.18);
  --semi-color-fill-0: rgba(126, 233, 255, 0.08);
  --semi-color-fill-1: rgba(126, 233, 255, 0.11);
  --semi-color-fill-2: rgba(126, 233, 255, 0.15);
}

.app-layout-fixed,
.app-layout-fixed .semi-layout,
.app-layout-fixed .semi-layout-content,
.app-layout-fixed .pricing-layout,
.app-layout-fixed .pricing-content,
.app-layout-fixed .bg-white {
  background: transparent !important;
  color: var(--cloudai-text) !important;
}

.app-layout-fixed::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(34, 215, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 92, 255, 0.07) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(34, 215, 255, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(2, 4, 12, 1), rgba(6, 21, 45, 0.98) 46%, rgba(34, 8, 66, 0.98));
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
}

.app-layout-fixed .app-sider,
.app-layout-fixed .pricing-sidebar {
  background: rgba(4, 10, 25, 0.82) !important;
  border-right: 1px solid rgba(126, 233, 255, 0.16) !important;
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(1.25);
}

.app-layout-fixed .sidebar-container,
.app-layout-fixed .semi-navigation,
.app-layout-fixed .semi-navigation-inner,
.app-layout-fixed .semi-navigation-list-wrapper,
.app-layout-fixed .semi-navigation-list,
.app-layout-fixed .semi-layout-sider-children {
  background: transparent !important;
}

.app-layout-fixed .sidebar-group-label,
.app-layout-fixed .semi-navigation-item,
.app-layout-fixed .semi-navigation-sub-title,
.app-layout-fixed .semi-navigation-item-text,
.app-layout-fixed .semi-navigation-item-icon,
.app-layout-fixed .pricing-sidebar,
.app-layout-fixed .pricing-sidebar .text-gray-800,
.app-layout-fixed .pricing-sidebar .text-gray-700 {
  color: rgba(232, 248, 255, 0.82) !important;
}

.app-layout-fixed .sidebar-group-label {
  color: rgba(159, 183, 214, 0.75) !important;
}

.app-layout-fixed .semi-navigation-item:hover,
.app-layout-fixed .semi-navigation-sub-title:hover {
  background: rgba(34, 215, 255, 0.1) !important;
  color: var(--cloudai-text) !important;
}

.app-layout-fixed .semi-navigation-item-selected,
.app-layout-fixed .semi-navigation-item-selected:hover {
  background: linear-gradient(135deg, rgba(34, 215, 255, 0.2), rgba(155, 92, 255, 0.2)) !important;
  border: 1px solid rgba(126, 233, 255, 0.22);
  color: #ffffff !important;
  box-shadow: 0 0 22px rgba(34, 215, 255, 0.14);
}

.app-layout-fixed main h1,
.app-layout-fixed main h2,
.app-layout-fixed main h3,
.app-layout-fixed main h4,
.app-layout-fixed main .semi-typography,
.app-layout-fixed .text-gray-900,
.app-layout-fixed .text-gray-800,
.app-layout-fixed .text-gray-700,
.app-layout-fixed .text-gray-600 {
  color: var(--cloudai-text) !important;
}

.app-layout-fixed .text-gray-500,
.app-layout-fixed .text-semi-color-text-1,
.app-layout-fixed [class*="text-semi-color-text"],
.app-layout-fixed [class*="!text-semi-color-text"],
.app-layout-fixed .semi-typography-tertiary,
.app-layout-fixed .semi-empty-description,
.app-layout-fixed .semi-form-field-help-text {
  color: var(--cloudai-muted) !important;
}

.app-layout-fixed label,
.app-layout-fixed .semi-form-field-label,
.app-layout-fixed .semi-form-field-label *,
.app-layout-fixed .semi-form-field-label-text,
.app-layout-fixed .semi-checkbox-addon,
.app-layout-fixed .semi-radio-addon,
.app-layout-fixed .semi-switch + span {
  color: rgba(244, 251, 255, 0.94) !important;
}

.app-layout-fixed .semi-form-field-extra,
.app-layout-fixed .semi-form-field-extra *,
.app-layout-fixed .semi-form-field-help-text,
.app-layout-fixed .semi-form-field-help-text *,
.app-layout-fixed .semi-form-field-error-message,
.app-layout-fixed .semi-form-field-warning-message {
  color: rgba(198, 222, 255, 0.76) !important;
}

body:has(.app-layout-fixed) .semi-select-option,
body:has(.app-layout-fixed) .semi-dropdown-menu,
body:has(.app-layout-fixed) .semi-popover-content,
body:has(.app-layout-fixed) .semi-tooltip-wrapper,
body:has(.app-layout-fixed) .semi-modal-content,
body:has(.app-layout-fixed) .semi-drawer-content {
  background: rgba(5, 13, 32, 0.96) !important;
  border-color: rgba(126, 233, 255, 0.18) !important;
  color: var(--cloudai-text) !important;
}

body:has(.app-layout-fixed) .semi-select-option *,
body:has(.app-layout-fixed) .semi-dropdown-menu *,
body:has(.app-layout-fixed) .semi-popover-content *,
body:has(.app-layout-fixed) .semi-modal-content *,
body:has(.app-layout-fixed) .semi-drawer-content * {
  color: inherit;
}

.app-layout-fixed .semi-card,
.app-layout-fixed .pricing-view-container .semi-card,
.app-layout-fixed .semi-table-wrapper,
.app-layout-fixed .semi-table-container,
.app-layout-fixed .semi-collapse,
.app-layout-fixed .semi-list,
.app-layout-fixed .semi-tabs-content,
.app-layout-fixed .semi-modal-content,
.app-layout-fixed .semi-drawer-content {
  background:
    linear-gradient(180deg, rgba(12, 25, 54, 0.84), rgba(5, 10, 24, 0.78)) !important;
  border: 1px solid rgba(126, 233, 255, 0.18) !important;
  color: var(--cloudai-text) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 38px rgba(34, 215, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.25);
}

.app-layout-fixed .semi-card {
  border-radius: 18px !important;
}

.app-layout-fixed .semi-card-header,
.app-layout-fixed .semi-card-header-bordered,
.app-layout-fixed .semi-card-body,
.app-layout-fixed .semi-table,
.app-layout-fixed .semi-table-tbody,
.app-layout-fixed .semi-table-row,
.app-layout-fixed .semi-table-row-cell,
.app-layout-fixed .semi-table-thead,
.app-layout-fixed .semi-table-row-head {
  background: transparent !important;
  color: var(--cloudai-text) !important;
  border-color: rgba(126, 233, 255, 0.14) !important;
}

.app-layout-fixed .semi-table-row:hover .semi-table-row-cell,
.app-layout-fixed .pricing-view-container .semi-card:hover {
  background: rgba(34, 215, 255, 0.06) !important;
  border-color: rgba(126, 233, 255, 0.32) !important;
}

.app-layout-fixed .semi-table-wrapper.cloudai-wide-table,
.app-layout-fixed .semi-table-wrapper.cloudai-token-table,
.app-layout-fixed .semi-table-wrapper.cloudai-usage-log-table,
.app-layout-fixed .semi-table-container.cloudai-wide-table,
.app-layout-fixed .semi-table-container.cloudai-token-table,
.app-layout-fixed .semi-table-container.cloudai-usage-log-table {
  overflow-x: auto !important;
}

.app-layout-fixed .semi-table.cloudai-wide-table {
  width: max-content !important;
  min-width: 100% !important;
  table-layout: auto !important;
}

.app-layout-fixed .semi-table.cloudai-token-table {
  min-width: 1480px !important;
}

.app-layout-fixed .semi-table.cloudai-usage-log-table {
  min-width: 1760px !important;
}

.app-layout-fixed .semi-table [data-cloudai-col],
.app-layout-fixed .semi-table [data-cloudai-cell-kind="actions"] {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
}

.app-layout-fixed .semi-table [data-cloudai-col="detail"] {
  min-width: 360px !important;
}

.app-layout-fixed .cloudai-log-price-detail {
  display: grid !important;
  gap: 5px !important;
  min-width: 330px !important;
  color: var(--cloudai-text) !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

.app-layout-fixed .cloudai-log-price-title {
  color: rgba(233, 247, 255, 0.95) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.app-layout-fixed .cloudai-log-price-line {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  font-size: 13px !important;
}

.app-layout-fixed .cloudai-log-price-actual {
  color: rgba(226, 249, 255, 0.95) !important;
  font-weight: 650 !important;
  white-space: nowrap !important;
}

.app-layout-fixed .cloudai-log-price-original {
  color: rgba(170, 197, 218, 0.72) !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

.app-layout-fixed .cloudai-expanded-price-detail {
  display: grid !important;
  gap: 7px !important;
  max-width: 100% !important;
  color: rgba(226, 249, 255, 0.94) !important;
  line-height: 1.45 !important;
  white-space: normal !important;
}

.app-layout-fixed .cloudai-expanded-price-summary,
.app-layout-fixed .cloudai-expanded-price-line {
  color: rgba(226, 249, 255, 0.96) !important;
  font-weight: 620 !important;
}

.app-layout-fixed .cloudai-expanded-price-original,
.app-layout-fixed .cloudai-expanded-price-note {
  color: rgba(170, 197, 218, 0.76) !important;
  font-size: 13px !important;
}

.app-layout-fixed .cloudai-expanded-price-formula {
  color: rgba(210, 233, 247, 0.9) !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.app-layout-fixed .cloudai-expanded-price-total {
  color: rgba(126, 233, 255, 0.98) !important;
  font-weight: 750 !important;
}

.app-layout-fixed .semi-table [data-cloudai-col="cost"] {
  min-width: 116px !important;
}

.app-layout-fixed .semi-table [data-cloudai-col="ip"] {
  min-width: 96px !important;
}

.app-layout-fixed .semi-table [data-cloudai-col="retry"] {
  min-width: 84px !important;
}

.app-layout-fixed .semi-table [data-cloudai-col="created_at"],
.app-layout-fixed .semi-table [data-cloudai-col="last_used"] {
  min-width: 190px !important;
}

.app-layout-fixed .semi-table [data-cloudai-cell-kind="actions"] {
  min-width: 260px !important;
}

.app-layout-fixed .semi-table [data-cloudai-cell-kind="actions"] .semi-button {
  flex: 0 0 auto !important;
  margin-inline: 2px !important;
}

.app-layout-fixed .semi-table [data-cloudai-cell-kind="actions"] > div,
.app-layout-fixed .semi-table [data-cloudai-cell-kind="actions"] > span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}

.app-layout-fixed .semi-table [class*="fixed-right"],
.app-layout-fixed .semi-table [class*="sticky"] {
  background: rgba(8, 18, 43, 0.98) !important;
}

.app-layout-fixed .semi-divider,
.app-layout-fixed .semi-divider-horizontal,
.app-layout-fixed .pricing-pagination-divider {
  border-color: rgba(126, 233, 255, 0.16) !important;
  color: var(--cloudai-muted) !important;
}

.app-layout-fixed .semi-divider_inner-text {
  color: rgba(232, 248, 255, 0.9) !important;
  background: transparent !important;
}

.app-layout-fixed .semi-tabs-bar,
.app-layout-fixed .semi-tabs-tab,
.app-layout-fixed .semi-tabs-tab-button {
  color: var(--cloudai-muted) !important;
  border-color: rgba(126, 233, 255, 0.14) !important;
}

.app-layout-fixed .semi-tabs-tab-active,
.app-layout-fixed .semi-tabs-tab-active .semi-tabs-tab-button {
  color: #7ee9ff !important;
}

.app-layout-fixed .semi-input-wrapper,
.app-layout-fixed .semi-select,
.app-layout-fixed .semi-select-selection,
.app-layout-fixed .semi-datepicker,
.app-layout-fixed .semi-textarea-wrapper {
  background: rgba(3, 9, 23, 0.72) !important;
  border-color: rgba(126, 233, 255, 0.2) !important;
  color: var(--cloudai-text) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.app-layout-fixed input,
.app-layout-fixed textarea,
.app-layout-fixed .semi-input,
.app-layout-fixed .semi-select-selection-text {
  color: var(--cloudai-text) !important;
}

.app-layout-fixed input::placeholder,
.app-layout-fixed textarea::placeholder {
  color: rgba(198, 222, 255, 0.5) !important;
}

.app-layout-fixed .semi-button-primary.semi-button-solid,
.app-layout-fixed .semi-button-primary:not(.semi-button-light):not(.semi-button-borderless) {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--cloudai-cyan), var(--cloudai-blue) 46%, var(--cloudai-violet) 78%, var(--cloudai-pink)) !important;
  border: 1px solid rgba(126, 233, 255, 0.42) !important;
  box-shadow: 0 14px 34px rgba(22, 119, 255, 0.24), 0 0 24px rgba(34, 215, 255, 0.18);
}

.app-layout-fixed .semi-button-light,
.app-layout-fixed .semi-button-tertiary,
.app-layout-fixed .semi-button-outline,
.app-layout-fixed .sbg-button {
  color: #dffaff !important;
  background: rgba(126, 233, 255, 0.08) !important;
  border-color: rgba(126, 233, 255, 0.18) !important;
}

.app-layout-fixed .semi-button-light:hover,
.app-layout-fixed .semi-button-tertiary:hover,
.app-layout-fixed .semi-button-outline:hover,
.app-layout-fixed .sbg-button:hover {
  background: rgba(155, 92, 255, 0.16) !important;
  border-color: rgba(255, 118, 221, 0.24) !important;
}

.app-layout-fixed .semi-tag,
.app-layout-fixed .sbg-badge,
.app-layout-fixed .semi-page-item,
.app-layout-fixed .semi-switch {
  background: rgba(126, 233, 255, 0.1) !important;
  border-color: rgba(126, 233, 255, 0.18) !important;
  color: #dffaff !important;
}

.app-layout-fixed .semi-page-item-active,
.app-layout-fixed .sbg-badge-active {
  background: linear-gradient(135deg, rgba(34, 215, 255, 0.34), rgba(155, 92, 255, 0.28)) !important;
  color: #ffffff !important;
}

.app-layout-fixed .semi-avatar {
  box-shadow: 0 0 18px rgba(34, 215, 255, 0.16);
}

.app-layout-fixed .pricing-search-header,
.app-layout-fixed .pricing-sidebar .p-2 {
  color: var(--cloudai-text) !important;
}

.app-layout-fixed .pricing-search-header .semi-card-cover {
  border-bottom: 1px solid rgba(126, 233, 255, 0.12);
}

.app-layout-fixed .pricing-view-container .semi-card {
  background:
    linear-gradient(180deg, rgba(12, 25, 54, 0.74), rgba(5, 10, 24, 0.7)) !important;
}

.app-layout-fixed .pricing-view-container .semi-card .semi-card-body,
.app-layout-fixed .pricing-view-container .semi-card p,
.app-layout-fixed .pricing-view-container .semi-card span,
.app-layout-fixed .pricing-view-container .semi-card div,
.app-layout-fixed .pricing-view-container .semi-card .semi-typography,
.app-layout-fixed .pricing-view-container .semi-card .text-gray-500,
.app-layout-fixed .pricing-view-container .semi-card .text-gray-600,
.app-layout-fixed .pricing-view-container .semi-card .text-gray-700,
.app-layout-fixed .pricing-view-container .semi-card .text-gray-800 {
  color: rgba(232, 248, 255, 0.9) !important;
}

.app-layout-fixed .pricing-view-container .semi-card p,
.app-layout-fixed .pricing-view-container .semi-card .text-xs,
.app-layout-fixed .pricing-view-container .semi-card .text-sm {
  color: rgba(159, 183, 214, 0.86) !important;
}

.app-layout-fixed .pricing-search-header,
.app-layout-fixed .pricing-search-header > *,
.app-layout-fixed .pricing-search-header .semi-card,
.app-layout-fixed .pricing-search-header .semi-card-body,
.app-layout-fixed .pricing-search-header .semi-card-cover {
  background: rgba(8, 18, 43, 0.72) !important;
  color: var(--cloudai-text) !important;
  border-color: rgba(126, 233, 255, 0.16) !important;
}

.app-layout-fixed canvas {
  filter: invert(1) hue-rotate(180deg) saturate(1.05) brightness(3.2) contrast(0.62) opacity(0.86);
  opacity: 1;
  border-radius: 10px;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card:has(.h-96.p-2 canvas),
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .h-96.p-2:has(canvas) {
  --semi-color-text-0: rgba(15, 23, 42, 1);
  --semi-color-text-1: rgba(51, 65, 85, 0.92);
  --semi-color-text-2: rgba(71, 85, 105, 0.78);
  --semi-color-bg-0: rgba(248, 251, 255, 1);
  --semi-color-bg-1: rgba(241, 247, 255, 1);
}

html.dark .app-layout-fixed canvas,
body[theme-mode="dark"] .app-layout-fixed canvas {
  filter: none;
  opacity: 1;
}

.app-layout-fixed .cloudai-chart-wrap {
  position: relative !important;
}

.app-layout-fixed .cloudai-chart-overlay {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  pointer-events: none;
  color: rgba(244, 251, 255, 0.96);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.app-layout-fixed .cloudai-chart-overlay-title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

.app-layout-fixed .cloudai-chart-overlay-total {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(126, 233, 255, 0.9);
}

html.dark .app-layout-fixed .cloudai-chart-overlay,
body[theme-mode="dark"] .app-layout-fixed .cloudai-chart-overlay {
  display: none !important;
}

.app-layout-fixed .semi-card .w-24.h-10:has(canvas) {
  display: none !important;
}

.app-layout-fixed .semi-table-wrapper canvas,
.app-layout-fixed .pricing-layout canvas {
  filter: none;
  opacity: 1;
}

.app-layout-fixed .sidebar-collapse-button,
.app-layout-fixed .sidebar-collapse-button .semi-button,
.app-layout-fixed aside .semi-button-outline {
  background: rgba(126, 233, 255, 0.1) !important;
  border-color: rgba(126, 233, 255, 0.22) !important;
  color: #dffaff !important;
}

.app-layout-fixed .semi-empty-title {
  color: var(--cloudai-text) !important;
}

.app-layout-fixed svg {
  color: inherit;
}

.app-layout-fixed ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.app-layout-fixed ::-webkit-scrollbar-track {
  background: rgba(4, 10, 25, 0.68);
}

.app-layout-fixed ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34, 215, 255, 0.55), rgba(155, 92, 255, 0.55));
  border-radius: 999px;
  border: 2px solid rgba(4, 10, 25, 0.68);
}

@media (max-width: 768px) {
  .app-layout-fixed .app-sider {
    background: rgba(4, 10, 25, 0.92) !important;
  }

  .app-layout-fixed main.semi-layout-content {
    padding: 16px !important;
  }
}

/* Light mode: keep the CloudAI007 cyan/violet language without forcing the app into a dark shell. */
html:not(.dark) body:not([theme-mode="dark"]) {
  --semi-color-text-0: #0f172a;
  --semi-color-text-1: rgba(30, 41, 59, 0.9);
  --semi-color-text-2: rgba(71, 85, 105, 0.8);
  --semi-color-text-3: rgba(100, 116, 139, 0.74);
  --semi-color-border: rgba(14, 165, 233, 0.2);
  --semi-color-bg-0: #ffffff;
  --semi-color-bg-1: #f8fbff;
  --semi-color-bg-2: #eef7ff;
  --semi-color-fill-0: rgba(14, 165, 233, 0.08);
  --semi-color-fill-1: rgba(14, 165, 233, 0.12);
  --semi-color-fill-2: rgba(124, 58, 237, 0.14);
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) {
  background:
    linear-gradient(135deg, #f6fbff 0%, #edf8ff 46%, #f7f1ff 100%) !important;
  color: #0f172a;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-layout,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-layout-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-layout,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .bg-white {
  background: transparent !important;
  color: #0f172a !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed::before {
  background:
    linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.075) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.2), transparent 42%),
    linear-gradient(135deg, #f6fbff 0%, #edf8ff 46%, #f7f1ff 100%);
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .app-sider,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar {
  background: rgba(255, 255, 255, 0.82) !important;
  border-right-color: rgba(14, 165, 233, 0.18) !important;
  box-shadow: 18px 0 48px rgba(15, 23, 42, 0.08);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sidebar-group-label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-sub-title,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-text,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-icon,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar .text-gray-800,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar .text-gray-700 {
  color: rgba(30, 41, 59, 0.82) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sidebar-group-label {
  color: rgba(71, 85, 105, 0.72) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item:hover,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-sub-title:hover {
  background: rgba(14, 165, 233, 0.1) !important;
  color: #0f172a !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-selected,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-selected:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(124, 58, 237, 0.16)) !important;
  border-color: rgba(14, 165, 233, 0.28);
  color: #075985 !important;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.12);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h1,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h2,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h3,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h4,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main .semi-typography,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-900,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-800,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-700,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-600 {
  color: #0f172a !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-500,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-semi-color-text-1,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed [class*="text-semi-color-text"],
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed [class*="!text-semi-color-text"],
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-typography-tertiary,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-empty-description,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-help-text {
  color: rgba(71, 85, 105, 0.82) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-label *,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-label-text,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-checkbox-addon,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-radio-addon,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-switch + span {
  color: rgba(15, 23, 42, 0.92) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-view-container .semi-card,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-wrapper,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-container,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-collapse,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-list,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-tabs-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-modal-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-drawer-content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 251, 255, 0.78)) !important;
  border-color: rgba(14, 165, 233, 0.2) !important;
  color: #0f172a !important;
  box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08), 0 0 32px rgba(14, 165, 233, 0.08);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-header,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-header-bordered,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-body,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-tbody,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-row,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-row-cell,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-thead,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-row-head {
  background: transparent !important;
  color: #0f172a !important;
  border-color: rgba(14, 165, 233, 0.14) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-input-wrapper,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-select,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-select-selection,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-datepicker,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-textarea-wrapper {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(14, 165, 233, 0.22) !important;
  color: #0f172a !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed input,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed textarea,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-input,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-select-selection-text {
  color: #0f172a !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-light,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-tertiary,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-outline,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sbg-button,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-tag,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sbg-badge,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-page-item,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-switch {
  background: rgba(14, 165, 233, 0.08) !important;
  border-color: rgba(14, 165, 233, 0.2) !important;
  color: #075985 !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .h-96.p-2:has(canvas) {
  background: rgba(255, 255, 255, 0.72) !important;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.12);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed canvas {
  filter: none !important;
  opacity: 1;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .cloudai-chart-overlay {
  color: rgba(15, 23, 42, 0.96);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .cloudai-chart-overlay-total {
  color: rgba(2, 132, 199, 0.92);
}

.app-layout-fixed .cloudai-chart-overlay {
  display: none !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-select-option,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-menu,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-popover-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-tooltip-wrapper,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-modal-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(14, 165, 233, 0.22) !important;
  color: #0f172a !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14), 0 0 30px rgba(14, 165, 233, 0.1);
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-select-option *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-menu *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-popover-content *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-modal-content *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content * {
  color: inherit !important;
}

/* Public pages keep the dark CloudAI007 shell even when New API is in light mode. */
html:not(.dark) body:not([theme-mode="dark"]):has(.public-page-content) {
  --semi-color-text-0: var(--cloudai-text);
  --semi-color-text-1: rgba(226, 244, 255, 0.88);
  --semi-color-text-2: rgba(190, 214, 246, 0.78);
  --semi-color-text-3: rgba(159, 183, 214, 0.68);
  --semi-color-primary: #7ee9ff;
  --semi-color-primary-hover: #ff8bea;
  --semi-color-link: #7ee9ff;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.public-page-content) .semi-checkbox-addon,
html:not(.dark) body:not([theme-mode="dark"]):has(.public-page-content) .semi-checkbox-addon span,
html:not(.dark) body:not([theme-mode="dark"]):has(.public-page-content) main li,
html:not(.dark) body:not([theme-mode="dark"]):has(.public-page-content) main p,
html:not(.dark) body:not([theme-mode="dark"]):has(.public-page-content) footer,
html:not(.dark) body:not([theme-mode="dark"]):has(.public-page-content) footer span,
html:not(.dark) body:not([theme-mode="dark"]):has(.public-page-content) footer [class*="text-semi-color-text"],
html:not(.dark) body:not([theme-mode="dark"]):has(.public-page-content) footer [class*="!text-semi-color-text"] {
  color: var(--cloudai-muted) !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.public-page-content) .semi-checkbox-addon a,
html:not(.dark) body:not([theme-mode="dark"]):has(.public-page-content) .semi-checkbox-addon a span,
html:not(.dark) body:not([theme-mode="dark"]):has(.public-page-content) footer a,
html:not(.dark) body:not([theme-mode="dark"]):has(.public-page-content) footer a * {
  color: #7ee9ff !important;
}

body:has(.app-layout-fixed) .vchart-tooltip-element,
body:has(.app-layout-fixed) .vchart-tooltip-element.visible {
  color: var(--cloudai-text) !important;
  background:
    linear-gradient(180deg, rgba(9, 20, 45, 0.96), rgba(4, 10, 24, 0.96)) !important;
  border: 1px solid rgba(126, 233, 255, 0.28) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 26px rgba(34, 215, 255, 0.12) !important;
  backdrop-filter: blur(16px) saturate(1.2);
}

body:has(.app-layout-fixed) .vchart-tooltip-element h2,
body:has(.app-layout-fixed) .vchart-tooltip-element h2 *,
body:has(.app-layout-fixed) .vchart-tooltip-element .container-box,
body:has(.app-layout-fixed) .vchart-tooltip-element .key-box,
body:has(.app-layout-fixed) .vchart-tooltip-element .shape-box {
  color: rgba(244, 251, 255, 0.96) !important;
}

body:has(.app-layout-fixed) .vchart-tooltip-element .key {
  color: rgba(198, 222, 255, 0.84) !important;
}

body:has(.app-layout-fixed) .vchart-tooltip-element .value {
  color: rgba(244, 251, 255, 0.98) !important;
}

body:has(.app-layout-fixed) .vchart-tooltip-element .shape svg {
  filter: drop-shadow(0 0 4px rgba(126, 233, 255, 0.24));
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-item,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-menu li,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-menu [role="menuitem"],
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-select-option {
  color: #0f172a !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-item:hover,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-menu li:hover,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-menu [role="menuitem"]:hover,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-select-option:hover,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-select-option-selected {
  background: rgba(14, 165, 233, 0.12) !important;
  color: #075985 !important;
}

/* Light blue refresh for authenticated pages. */
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) {
  background:
    linear-gradient(120deg, rgba(195, 232, 255, 0.72) 0%, rgba(224, 245, 255, 0.94) 32%, rgba(207, 236, 255, 0.9) 64%, rgba(233, 243, 255, 0.96) 100%) !important;
  color: #0b2440;
  --semi-color-text-0: #0b2440;
  --semi-color-text-1: rgba(22, 54, 83, 0.9);
  --semi-color-text-2: rgba(55, 91, 120, 0.78);
  --semi-color-text-3: rgba(87, 122, 150, 0.72);
  --semi-color-border: rgba(56, 178, 240, 0.26);
  --semi-color-bg-0: #f3fbff;
  --semi-color-bg-1: #e7f6ff;
  --semi-color-bg-2: #d9effc;
  --semi-color-fill-0: rgba(37, 158, 220, 0.1);
  --semi-color-fill-1: rgba(37, 158, 220, 0.15);
  --semi-color-fill-2: rgba(14, 116, 180, 0.18);
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header > header {
  background:
    linear-gradient(90deg, rgba(221, 243, 255, 0.96), rgba(205, 233, 250, 0.94) 52%, rgba(222, 236, 255, 0.95)) !important;
  border-bottom: 1px solid rgba(45, 166, 230, 0.32);
  box-shadow: 0 14px 38px rgba(38, 121, 170, 0.16);
  backdrop-filter: blur(20px) saturate(1.25);
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header h4,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header nav a,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-icon,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button-content span {
  color: #0b3554 !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header nav a:hover {
  color: #0369a1 !important;
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.22);
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button {
  background: rgba(239, 249, 255, 0.74) !important;
  border: 1px solid rgba(56, 178, 240, 0.26) !important;
  box-shadow: 0 8px 20px rgba(14, 116, 180, 0.12);
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button:hover {
  background: rgba(215, 241, 255, 0.86) !important;
  border-color: rgba(14, 165, 233, 0.36) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed::before {
  background:
    linear-gradient(rgba(72, 190, 245, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 190, 245, 0.1) 1px, transparent 1px),
    linear-gradient(135deg, rgba(213, 241, 255, 0.96), rgba(229, 247, 255, 0.92) 42%, rgba(211, 235, 255, 0.9) 100%);
  background-size: 64px 64px, 64px 64px, 100% 100%;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .app-sider,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar {
  background:
    linear-gradient(180deg, rgba(240, 250, 255, 0.96), rgba(218, 240, 252, 0.92)) !important;
  border-right-color: rgba(59, 183, 240, 0.32) !important;
  box-shadow: 18px 0 44px rgba(38, 121, 170, 0.14);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sidebar-group-label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-sub-title,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-text,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-icon,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar .text-gray-800,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar .text-gray-700 {
  color: rgba(20, 58, 86, 0.88) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item:hover,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-sub-title:hover {
  background: rgba(37, 158, 220, 0.14) !important;
  color: #075985 !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-selected,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-selected:hover {
  background:
    linear-gradient(135deg, rgba(126, 218, 255, 0.42), rgba(180, 208, 255, 0.36)) !important;
  border-color: rgba(14, 165, 233, 0.42);
  color: #0369a1 !important;
  box-shadow: 0 14px 30px rgba(14, 116, 180, 0.16);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-view-container .semi-card,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-wrapper,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-container,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-collapse,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-list,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-tabs-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-modal-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-drawer-content {
  background:
    linear-gradient(180deg, rgba(245, 252, 255, 0.93), rgba(224, 243, 255, 0.82)) !important;
  border-color: rgba(70, 188, 244, 0.34) !important;
  color: #0b2440 !important;
  box-shadow: 0 22px 58px rgba(38, 121, 170, 0.13), 0 0 30px rgba(69, 190, 245, 0.12);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-header,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-header-bordered,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-body {
  border-color: rgba(70, 188, 244, 0.22) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .h-96.p-2:has(canvas) {
  background:
    linear-gradient(180deg, rgba(248, 253, 255, 0.9), rgba(235, 248, 255, 0.82)) !important;
  border: 1px solid rgba(92, 200, 246, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 10px 28px rgba(49, 143, 198, 0.08);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-input-wrapper,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-select,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-select-selection,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-datepicker,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-textarea-wrapper,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-light,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-tertiary,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-outline,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sbg-button,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-tag,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sbg-badge,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-page-item,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-switch {
  background: rgba(232, 247, 255, 0.82) !important;
  border-color: rgba(56, 178, 240, 0.3) !important;
  color: #075985 !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-menu,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-popover-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-select-option {
  background: rgba(239, 249, 255, 0.98) !important;
  border-color: rgba(56, 178, 240, 0.28) !important;
  color: #0b2440 !important;
}

@media (max-width: 768px) {
  html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .app-sider {
    background:
      linear-gradient(180deg, rgba(240, 250, 255, 0.98), rgba(218, 240, 252, 0.96)) !important;
  }
}

/* Keep light mode visually consistent with the dark CloudAI007 console. */
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) {
  background:
    linear-gradient(135deg, rgba(2, 4, 12, 1) 0%, rgba(6, 21, 45, 1) 45%, rgba(34, 8, 66, 1) 100%) !important;
  color: var(--cloudai-text);
  --semi-color-text-0: var(--cloudai-text);
  --semi-color-text-1: rgba(226, 244, 255, 0.88);
  --semi-color-text-2: rgba(190, 214, 246, 0.74);
  --semi-color-text-3: rgba(159, 183, 214, 0.66);
  --semi-color-border: rgba(126, 233, 255, 0.18);
  --semi-color-bg-0: rgba(5, 13, 32, 0.96);
  --semi-color-bg-1: rgba(8, 18, 43, 0.9);
  --semi-color-bg-2: rgba(12, 25, 54, 0.84);
  --semi-color-fill-0: rgba(126, 233, 255, 0.08);
  --semi-color-fill-1: rgba(126, 233, 255, 0.11);
  --semi-color-fill-2: rgba(126, 233, 255, 0.15);
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header > header {
  background: rgba(3, 7, 18, 0.76) !important;
  border-bottom: 1px solid rgba(88, 210, 255, 0.18);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header h4,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header nav a,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-icon,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button-content span {
  color: var(--cloudai-text) !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button:hover {
  background: rgba(34, 215, 255, 0.14) !important;
  border-color: rgba(34, 215, 255, 0.3) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-layout,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-layout-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-layout,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .bg-white {
  background: transparent !important;
  color: var(--cloudai-text) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed::before {
  background:
    linear-gradient(rgba(34, 215, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 92, 255, 0.07) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(34, 215, 255, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(2, 4, 12, 1), rgba(6, 21, 45, 0.98) 46%, rgba(34, 8, 66, 0.98));
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .app-sider,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar {
  background: rgba(4, 10, 25, 0.82) !important;
  border-right-color: rgba(126, 233, 255, 0.16) !important;
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.22);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sidebar-group-label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-sub-title,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-text,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-icon,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar .text-gray-800,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar .text-gray-700 {
  color: rgba(232, 248, 255, 0.82) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sidebar-group-label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-500,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-semi-color-text-1,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed [class*="text-semi-color-text"],
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed [class*="!text-semi-color-text"],
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-typography-tertiary,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-empty-description,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-help-text {
  color: var(--cloudai-muted) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item:hover,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-sub-title:hover {
  background: rgba(34, 215, 255, 0.1) !important;
  color: var(--cloudai-text) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-selected,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-selected:hover {
  background: linear-gradient(135deg, rgba(34, 215, 255, 0.2), rgba(155, 92, 255, 0.2)) !important;
  border-color: rgba(126, 233, 255, 0.22);
  color: #ffffff !important;
  box-shadow: 0 0 22px rgba(34, 215, 255, 0.14);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h1,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h2,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h3,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h4,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main .semi-typography,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-900,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-800,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-700,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-600,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-label *,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-label-text,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-checkbox-addon,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-radio-addon,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-switch + span {
  color: var(--cloudai-text) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-view-container .semi-card,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-wrapper,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-container,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-collapse,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-list,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-tabs-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-modal-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-drawer-content {
  background:
    linear-gradient(180deg, rgba(12, 25, 54, 0.84), rgba(5, 10, 24, 0.78)) !important;
  border-color: rgba(126, 233, 255, 0.18) !important;
  color: var(--cloudai-text) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 38px rgba(34, 215, 255, 0.08);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-header,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-header-bordered,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-body,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-tbody,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-row,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-row-cell,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-thead,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-row-head {
  background: transparent !important;
  color: var(--cloudai-text) !important;
  border-color: rgba(126, 233, 255, 0.14) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-input-wrapper,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-select,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-select-selection,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-datepicker,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-textarea-wrapper {
  background: rgba(3, 9, 23, 0.72) !important;
  border-color: rgba(126, 233, 255, 0.2) !important;
  color: var(--cloudai-text) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed input,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed textarea,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-input,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-select-selection-text {
  color: var(--cloudai-text) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-light,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-tertiary,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-outline,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sbg-button,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-tag,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sbg-badge,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-page-item,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-switch {
  background: rgba(126, 233, 255, 0.1) !important;
  border-color: rgba(126, 233, 255, 0.18) !important;
  color: #dffaff !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .h-96.p-2:has(canvas) {
  background: transparent !important;
  border: none;
  box-shadow: none;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed canvas {
  filter: none !important;
  opacity: 1;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-select-option,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-menu,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-popover-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-tooltip-wrapper,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-modal-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content {
  background: rgba(5, 13, 32, 0.96) !important;
  border-color: rgba(126, 233, 255, 0.18) !important;
  color: var(--cloudai-text) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-select-option *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-menu *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-popover-content *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-modal-content *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content * {
  color: inherit !important;
}

.app-layout-fixed span.cloudai-original-price,
.public-page-content span.cloudai-original-price,
span.cloudai-original-price,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed span.cloudai-original-price {
  display: block !important;
  color: rgba(203, 213, 225, 0.7) !important;
  text-decoration-line: line-through !important;
  text-decoration-thickness: 1px !important;
  text-decoration-color: rgba(203, 213, 225, 0.7) !important;
  line-height: 1.35 !important;
  margin-top: -1px !important;
}

.app-layout-fixed .pricing-view-container .semi-card.cloudai-pricing-card p {
  line-height: 1.55 !important;
}

@media (max-width: 680px) {
  .app-layout-fixed span.cloudai-original-price,
  span.cloudai-original-price {
    white-space: normal !important;
  }
}

/* Light mode correction: keep the authenticated model marketplace actually light. */
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) {
  background:
    linear-gradient(120deg, rgba(229, 246, 255, 0.98) 0%, rgba(244, 251, 255, 0.98) 48%, rgba(236, 245, 255, 0.98) 100%) !important;
  color: #0b2440 !important;
  --semi-color-text-0: #0b2440;
  --semi-color-text-1: rgba(22, 54, 83, 0.9);
  --semi-color-text-2: rgba(55, 91, 120, 0.78);
  --semi-color-text-3: rgba(87, 122, 150, 0.72);
  --semi-color-border: rgba(56, 178, 240, 0.28);
  --semi-color-bg-0: #f8fdff;
  --semi-color-bg-1: #eef9ff;
  --semi-color-bg-2: #dff3ff;
  --semi-color-fill-0: rgba(37, 158, 220, 0.1);
  --semi-color-fill-1: rgba(37, 158, 220, 0.15);
  --semi-color-fill-2: rgba(14, 116, 180, 0.18);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-layout,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-layout-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-layout,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .bg-white {
  background: transparent !important;
  color: #0b2440 !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed::before {
  background:
    linear-gradient(rgba(72, 190, 245, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 190, 245, 0.1) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(125, 211, 252, 0.28), transparent 42%),
    linear-gradient(135deg, rgba(229, 246, 255, 0.98), rgba(246, 252, 255, 0.96) 48%, rgba(235, 244, 255, 0.96));
  background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header > header {
  background:
    linear-gradient(90deg, rgba(248, 253, 255, 0.96), rgba(232, 247, 255, 0.94) 54%, rgba(239, 246, 255, 0.96)) !important;
  border-bottom: 1px solid rgba(56, 178, 240, 0.3) !important;
  box-shadow: 0 14px 38px rgba(38, 121, 170, 0.14) !important;
  backdrop-filter: blur(20px) saturate(1.2);
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header h4,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header nav a,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-icon,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button-content span {
  color: #0b3554 !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button {
  background: rgba(239, 249, 255, 0.78) !important;
  border: 1px solid rgba(56, 178, 240, 0.3) !important;
  box-shadow: 0 8px 20px rgba(14, 116, 180, 0.1) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .app-sider,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar {
  background:
    linear-gradient(180deg, rgba(248, 253, 255, 0.96), rgba(226, 243, 252, 0.94)) !important;
  border-right-color: rgba(56, 178, 240, 0.32) !important;
  box-shadow: 18px 0 44px rgba(38, 121, 170, 0.13) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sidebar-group-label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-sub-title,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-text,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-icon,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar .text-gray-800,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar .text-gray-700 {
  color: rgba(20, 58, 86, 0.88) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item:hover,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-sub-title:hover {
  background: rgba(37, 158, 220, 0.14) !important;
  color: #075985 !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-selected,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-navigation-item-selected:hover {
  background:
    linear-gradient(135deg, rgba(126, 218, 255, 0.42), rgba(180, 208, 255, 0.36)) !important;
  border-color: rgba(14, 165, 233, 0.42) !important;
  color: #0369a1 !important;
  box-shadow: 0 14px 30px rgba(14, 116, 180, 0.16) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h1,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h2,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h3,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h4,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main .semi-typography,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-900,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-800,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-700,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-600,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-label *,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-label-text,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-checkbox-addon,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-radio-addon,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-switch + span {
  color: #0b2440 !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-500,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-semi-color-text-1,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed [class*="text-semi-color-text"],
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed [class*="!text-semi-color-text"],
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-typography-tertiary,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-empty-description,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-help-text {
  color: rgba(55, 91, 120, 0.78) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-view-container .semi-card,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-wrapper,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-container,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-collapse,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-list,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-tabs-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-modal-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-drawer-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-modal-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content {
  background:
    linear-gradient(180deg, rgba(248, 253, 255, 0.96), rgba(229, 246, 255, 0.88)) !important;
  border-color: rgba(70, 188, 244, 0.34) !important;
  color: #0b2440 !important;
  box-shadow: 0 22px 58px rgba(38, 121, 170, 0.13), 0 0 30px rgba(69, 190, 245, 0.12) !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-body,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-header,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-footer,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-card-header,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-card-body {
  background: transparent !important;
  color: #0b2440 !important;
  border-color: rgba(70, 188, 244, 0.22) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-header,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-header-bordered,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-body,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-tbody,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-row,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-row-cell,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-thead,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-row-head {
  background: transparent !important;
  color: #0b2440 !important;
  border-color: rgba(70, 188, 244, 0.22) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-search-header,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-search-header > *,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-search-header .semi-card,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-search-header .semi-card-body,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-search-header .semi-card-cover {
  background:
    linear-gradient(90deg, rgba(214, 239, 255, 0.9), rgba(235, 247, 255, 0.92)) !important;
  color: #0b2440 !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-input-wrapper,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-select,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-select-selection,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-datepicker,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-textarea-wrapper,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-light,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-tertiary,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-outline,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sbg-button,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-tag,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sbg-badge,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-page-item,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-switch {
  background: rgba(232, 247, 255, 0.86) !important;
  border-color: rgba(56, 178, 240, 0.32) !important;
  color: #075985 !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed input,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed textarea,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-input,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-select-selection-text {
  color: #0b2440 !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .h-96.p-2:has(canvas),
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-layout canvas {
  background:
    linear-gradient(180deg, rgba(248, 253, 255, 0.92), rgba(235, 248, 255, 0.84)) !important;
  border: 1px solid rgba(92, 200, 246, 0.28) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 10px 28px rgba(49, 143, 198, 0.08) !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-empty-title,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-empty-description {
  color: rgba(55, 91, 120, 0.78) !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-select-option,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-menu,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-popover-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-tooltip-wrapper {
  background: rgba(248, 253, 255, 0.98) !important;
  border-color: rgba(56, 178, 240, 0.28) !important;
  color: #0b2440 !important;
  box-shadow: 0 18px 42px rgba(38, 121, 170, 0.14) !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-select-option *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-menu *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-popover-content *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-tooltip-wrapper *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-modal-content *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content * {
  color: inherit !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed span.cloudai-original-price,
html:not(.dark) body:not([theme-mode="dark"]) span.cloudai-original-price {
  color: rgba(71, 85, 105, 0.72) !important;
  text-decoration-color: rgba(71, 85, 105, 0.58) !important;
}

/* Final light-mode behavior: keep the dark console shell, only remove stray white blocks. */
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) {
  background:
    linear-gradient(135deg, rgba(2, 4, 12, 1) 0%, rgba(6, 21, 45, 1) 45%, rgba(34, 8, 66, 1) 100%) !important;
  color: var(--cloudai-text) !important;
  --semi-color-text-0: var(--cloudai-text);
  --semi-color-text-1: rgba(226, 244, 255, 0.88);
  --semi-color-text-2: rgba(190, 214, 246, 0.74);
  --semi-color-text-3: rgba(159, 183, 214, 0.66);
  --semi-color-border: rgba(126, 233, 255, 0.18);
  --semi-color-bg-0: rgba(5, 13, 32, 0.96);
  --semi-color-bg-1: rgba(8, 18, 43, 0.9);
  --semi-color-bg-2: rgba(12, 25, 54, 0.84);
  --semi-color-fill-0: rgba(126, 233, 255, 0.08);
  --semi-color-fill-1: rgba(126, 233, 255, 0.11);
  --semi-color-fill-2: rgba(126, 233, 255, 0.15);
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-layout,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-layout-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-layout,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .bg-white {
  background: transparent !important;
  color: var(--cloudai-text) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed::before {
  background:
    linear-gradient(rgba(34, 215, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 92, 255, 0.07) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(34, 215, 255, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(2, 4, 12, 1), rgba(6, 21, 45, 0.98) 46%, rgba(34, 8, 66, 0.98));
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header > header {
  background: rgba(3, 7, 18, 0.76) !important;
  border-bottom: 1px solid rgba(88, 210, 255, 0.18) !important;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28) !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header h4,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header nav a,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-icon,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-layout-header .semi-button-content span {
  color: var(--cloudai-text) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .app-sider,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-sidebar {
  background: rgba(4, 10, 25, 0.82) !important;
  border-right-color: rgba(126, 233, 255, 0.16) !important;
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.22) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-view-container .semi-card,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-wrapper,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-container,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-collapse,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-list,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-tabs-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-modal-content,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-drawer-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-modal-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content {
  background:
    linear-gradient(180deg, rgba(12, 25, 54, 0.84), rgba(5, 10, 24, 0.78)) !important;
  border-color: rgba(126, 233, 255, 0.18) !important;
  color: var(--cloudai-text) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 38px rgba(34, 215, 255, 0.08) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-header,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-header-bordered,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-card-body,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-tbody,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-row,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-row-cell,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-thead,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table-row-head,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-body,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-header,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-footer {
  background: transparent !important;
  color: var(--cloudai-text) !important;
  border-color: rgba(126, 233, 255, 0.14) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-search-header,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-search-header > *,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-search-header .semi-card,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-search-header .semi-card-body,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .pricing-search-header .semi-card-cover {
  background: rgba(8, 18, 43, 0.72) !important;
  color: var(--cloudai-text) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h1,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h2,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h3,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main h4,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed main .semi-typography,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-900,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-800,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-700,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-600,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-label *,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-label-text,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-checkbox-addon,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-radio-addon,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-switch + span {
  color: var(--cloudai-text) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sidebar-group-label,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-gray-500,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .text-semi-color-text-1,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed [class*="text-semi-color-text"],
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed [class*="!text-semi-color-text"],
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-typography-tertiary,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-empty-title,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-empty-description,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-form-field-help-text {
  color: var(--cloudai-muted) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-input-wrapper,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-select,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-select-selection,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-datepicker,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-textarea-wrapper,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-light,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-tertiary,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-button-outline,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sbg-button,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-page-item {
  background: rgba(3, 9, 23, 0.72) !important;
  border-color: rgba(126, 233, 255, 0.2) !important;
  color: var(--cloudai-text) !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-tag,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sbg-badge,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table .semi-tag,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-tag,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .sbg-badge {
  background: rgba(126, 233, 255, 0.1) !important;
  border: 1px solid rgba(126, 233, 255, 0.18) !important;
  color: #dffaff !important;
  box-shadow: none !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-tag *,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .sbg-badge *,
html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed .semi-table .semi-tag *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-tag *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .sbg-badge * {
  color: #dffaff !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-select-option,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-menu,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-popover-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-tooltip-wrapper,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-toast,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-toast-content,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-notification-notice,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-banner,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-alert {
  background: rgba(5, 13, 32, 0.96) !important;
  border-color: rgba(126, 233, 255, 0.18) !important;
  color: var(--cloudai-text) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3) !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-select-option *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-dropdown-menu *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-popover-content *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-tooltip-wrapper *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-toast *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-notification-notice *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-banner *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-alert *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-modal-content *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content * {
  color: inherit !important;
}

html:not(.dark) body:not([theme-mode="dark"]) .app-layout-fixed span.cloudai-original-price,
html:not(.dark) body:not([theme-mode="dark"]) span.cloudai-original-price {
  color: rgba(203, 213, 225, 0.7) !important;
  text-decoration-color: rgba(203, 213, 225, 0.7) !important;
}

/* Model detail drawer: override white group pills rendered outside the app shell. */
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .bg-white,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content [class*="bg-white"],
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content [class*="!bg-white"],
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-tag-white,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-tag-light,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-table-row-cell .semi-tag,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-table-row-cell span[class*="rounded"],
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-table-row-cell div[class*="rounded"] {
  background: rgba(126, 233, 255, 0.12) !important;
  background-color: rgba(126, 233, 255, 0.12) !important;
  border: 1px solid rgba(126, 233, 255, 0.22) !important;
  color: #dffaff !important;
  box-shadow: none !important;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .bg-white *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content [class*="bg-white"] *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content [class*="!bg-white"] *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-tag-white *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-tag-light *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-table-row-cell .semi-tag *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-table-row-cell span[class*="rounded"] *,
html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .semi-drawer-content .semi-table-row-cell div[class*="rounded"] * {
  color: #dffaff !important;
}

/* Unified dark console: ignore light/dark mode differences for authenticated pages. */
html:has(body .app-layout-fixed),
body:has(.app-layout-fixed) {
  color-scheme: dark;
  background:
    linear-gradient(135deg, rgba(2, 4, 12, 1) 0%, rgba(6, 21, 45, 1) 45%, rgba(34, 8, 66, 1) 100%) !important;
  color: var(--cloudai-text) !important;
  --semi-color-text-0: var(--cloudai-text);
  --semi-color-text-1: rgba(226, 244, 255, 0.88);
  --semi-color-text-2: rgba(190, 214, 246, 0.74);
  --semi-color-text-3: rgba(159, 183, 214, 0.66);
  --semi-color-border: rgba(126, 233, 255, 0.18);
  --semi-color-bg-0: rgba(5, 13, 32, 0.96);
  --semi-color-bg-1: rgba(8, 18, 43, 0.9);
  --semi-color-bg-2: rgba(12, 25, 54, 0.84);
  --semi-color-fill-0: rgba(126, 233, 255, 0.08);
  --semi-color-fill-1: rgba(126, 233, 255, 0.11);
  --semi-color-fill-2: rgba(126, 233, 255, 0.15);
}

body:has(.app-layout-fixed) .app-layout-fixed,
body:has(.app-layout-fixed) .app-layout-fixed .semi-layout,
body:has(.app-layout-fixed) .app-layout-fixed .semi-layout-content,
body:has(.app-layout-fixed) .app-layout-fixed .pricing-layout,
body:has(.app-layout-fixed) .app-layout-fixed .pricing-content,
body:has(.app-layout-fixed) .app-layout-fixed .bg-white {
  background: transparent !important;
  color: var(--cloudai-text) !important;
}

body:has(.app-layout-fixed) .app-layout-fixed::before {
  background:
    linear-gradient(rgba(34, 215, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 92, 255, 0.07) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(34, 215, 255, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(2, 4, 12, 1), rgba(6, 21, 45, 0.98) 46%, rgba(34, 8, 66, 0.98)) !important;
  background-size: 72px 72px, 72px 72px, 100% 100%, 100% 100%;
}

body:has(.app-layout-fixed) .semi-layout-header > header {
  background: rgba(3, 7, 18, 0.78) !important;
  border-bottom: 1px solid rgba(88, 210, 255, 0.18) !important;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(22px) saturate(1.4);
}

body:has(.app-layout-fixed) .semi-layout-header h4,
body:has(.app-layout-fixed) .semi-layout-header nav a,
body:has(.app-layout-fixed) .semi-layout-header .semi-button,
body:has(.app-layout-fixed) .semi-layout-header .semi-icon,
body:has(.app-layout-fixed) .semi-layout-header .semi-button-content,
body:has(.app-layout-fixed) .semi-layout-header .semi-button-content span {
  color: var(--cloudai-text) !important;
  opacity: 1 !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .app-sider,
body:has(.app-layout-fixed) .app-layout-fixed .pricing-sidebar {
  background: rgba(4, 10, 25, 0.82) !important;
  border-right-color: rgba(126, 233, 255, 0.16) !important;
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.22) !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .sidebar-group-label {
  color: rgba(159, 183, 214, 0.82) !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .semi-navigation-item,
body:has(.app-layout-fixed) .app-layout-fixed .semi-navigation-sub-title,
body:has(.app-layout-fixed) .app-layout-fixed .semi-navigation-item-text,
body:has(.app-layout-fixed) .app-layout-fixed .semi-navigation-item-icon,
body:has(.app-layout-fixed) .app-layout-fixed .semi-navigation-item *,
body:has(.app-layout-fixed) .app-layout-fixed .app-sider .semi-icon,
body:has(.app-layout-fixed) .app-layout-fixed .app-sider span,
body:has(.app-layout-fixed) .app-layout-fixed .app-sider a {
  color: rgba(226, 244, 255, 0.78) !important;
  opacity: 1 !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .semi-navigation-item:hover,
body:has(.app-layout-fixed) .app-layout-fixed .semi-navigation-sub-title:hover {
  background: rgba(34, 215, 255, 0.1) !important;
  color: var(--cloudai-text) !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .semi-navigation-item-selected,
body:has(.app-layout-fixed) .app-layout-fixed .semi-navigation-item-selected:hover {
  background: linear-gradient(135deg, rgba(34, 215, 255, 0.2), rgba(155, 92, 255, 0.2)) !important;
  border-color: rgba(126, 233, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 0 22px rgba(34, 215, 255, 0.14) !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .semi-card,
body:has(.app-layout-fixed) .app-layout-fixed .pricing-view-container .semi-card,
body:has(.app-layout-fixed) .app-layout-fixed .semi-table-wrapper,
body:has(.app-layout-fixed) .app-layout-fixed .semi-table-container,
body:has(.app-layout-fixed) .app-layout-fixed .semi-collapse,
body:has(.app-layout-fixed) .app-layout-fixed .semi-list,
body:has(.app-layout-fixed) .app-layout-fixed .semi-tabs-content,
body:has(.app-layout-fixed) .app-layout-fixed .semi-modal-content,
body:has(.app-layout-fixed) .app-layout-fixed .semi-drawer-content,
body:has(.app-layout-fixed) .semi-modal-content,
body:has(.app-layout-fixed) .semi-drawer-content {
  background:
    linear-gradient(180deg, rgba(12, 25, 54, 0.84), rgba(5, 10, 24, 0.78)) !important;
  border-color: rgba(126, 233, 255, 0.18) !important;
  color: var(--cloudai-text) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 38px rgba(34, 215, 255, 0.08) !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .semi-card-header,
body:has(.app-layout-fixed) .app-layout-fixed .semi-card-header-bordered,
body:has(.app-layout-fixed) .app-layout-fixed .semi-card-body,
body:has(.app-layout-fixed) .app-layout-fixed .semi-table,
body:has(.app-layout-fixed) .app-layout-fixed .semi-table-tbody,
body:has(.app-layout-fixed) .app-layout-fixed .semi-table-row,
body:has(.app-layout-fixed) .app-layout-fixed .semi-table-row-cell,
body:has(.app-layout-fixed) .app-layout-fixed .semi-table-thead,
body:has(.app-layout-fixed) .app-layout-fixed .semi-table-row-head {
  background: transparent !important;
  color: var(--cloudai-text) !important;
  border-color: rgba(126, 233, 255, 0.14) !important;
}

body:has(.app-layout-fixed) .app-layout-fixed main h1,
body:has(.app-layout-fixed) .app-layout-fixed main h2,
body:has(.app-layout-fixed) .app-layout-fixed main h3,
body:has(.app-layout-fixed) .app-layout-fixed main h4,
body:has(.app-layout-fixed) .app-layout-fixed main .semi-typography,
body:has(.app-layout-fixed) .app-layout-fixed .text-gray-900,
body:has(.app-layout-fixed) .app-layout-fixed .text-gray-800,
body:has(.app-layout-fixed) .app-layout-fixed .text-gray-700,
body:has(.app-layout-fixed) .app-layout-fixed .text-gray-600,
body:has(.app-layout-fixed) .app-layout-fixed label,
body:has(.app-layout-fixed) .app-layout-fixed .semi-form-field-label,
body:has(.app-layout-fixed) .app-layout-fixed .semi-form-field-label *,
body:has(.app-layout-fixed) .app-layout-fixed .semi-form-field-label-text {
  color: var(--cloudai-text) !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .text-gray-500,
body:has(.app-layout-fixed) .app-layout-fixed .text-semi-color-text-1,
body:has(.app-layout-fixed) .app-layout-fixed [class*="text-semi-color-text"],
body:has(.app-layout-fixed) .app-layout-fixed [class*="!text-semi-color-text"],
body:has(.app-layout-fixed) .app-layout-fixed .semi-typography-tertiary,
body:has(.app-layout-fixed) .app-layout-fixed .semi-empty-title,
body:has(.app-layout-fixed) .app-layout-fixed .semi-empty-description,
body:has(.app-layout-fixed) .app-layout-fixed .semi-form-field-help-text {
  color: var(--cloudai-muted) !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .semi-input-wrapper,
body:has(.app-layout-fixed) .app-layout-fixed .semi-select,
body:has(.app-layout-fixed) .app-layout-fixed .semi-select-selection,
body:has(.app-layout-fixed) .app-layout-fixed .semi-datepicker,
body:has(.app-layout-fixed) .app-layout-fixed .semi-textarea-wrapper,
body:has(.app-layout-fixed) .app-layout-fixed .semi-button-light,
body:has(.app-layout-fixed) .app-layout-fixed .semi-button-tertiary,
body:has(.app-layout-fixed) .app-layout-fixed .semi-button-outline,
body:has(.app-layout-fixed) .app-layout-fixed .sbg-button,
body:has(.app-layout-fixed) .app-layout-fixed .semi-page-item,
body:has(.app-layout-fixed) .app-layout-fixed .semi-tag,
body:has(.app-layout-fixed) .app-layout-fixed .sbg-badge {
  background: rgba(126, 233, 255, 0.1) !important;
  border-color: rgba(126, 233, 255, 0.18) !important;
  color: #dffaff !important;
}

/* Dashboard charts use the same near-black layer in every theme. */
body:has(.app-layout-fixed) .app-layout-fixed .semi-card:has(.h-96.p-2 canvas),
body:has(.app-layout-fixed) .app-layout-fixed .h-96.p-2:has(canvas),
body:has(.app-layout-fixed) .app-layout-fixed .h-96.p-2:has(canvas) > *,
body:has(.app-layout-fixed) .app-layout-fixed .h-96.p-2:has(canvas) canvas {
  background: #17181c !important;
  background-color: #17181c !important;
  border-color: rgba(126, 233, 255, 0.12) !important;
  box-shadow: none !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .h-96.p-2:has(canvas) {
  border: none !important;
  border-radius: 10px !important;
  padding: 16px !important;
}

body:has(.app-layout-fixed) .app-layout-fixed canvas,
body:has(.app-layout-fixed) .app-layout-fixed .pricing-layout canvas,
body:has(.app-layout-fixed) .app-layout-fixed .semi-table-wrapper canvas {
  filter: none !important;
  opacity: 1 !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .cloudai-chart-overlay {
  display: none !important;
}

/* Fix chart card scope: only the chart surface is near-black, not the outer analysis card. */
body:has(.app-layout-fixed) .app-layout-fixed .semi-card:has(.h-96.p-2 canvas) {
  background:
    linear-gradient(180deg, rgba(12, 25, 54, 0.84), rgba(5, 10, 24, 0.78)) !important;
  border-color: rgba(126, 233, 255, 0.18) !important;
  color: var(--cloudai-text) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 38px rgba(34, 215, 255, 0.08) !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .semi-card:has(.h-96.p-2 canvas) .semi-card-header,
body:has(.app-layout-fixed) .app-layout-fixed .semi-card:has(.h-96.p-2 canvas) .semi-card-body {
  background: transparent !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .h-96.p-2:has(canvas) {
  background: #17181c !important;
  background-color: #17181c !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  padding: 8px !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .h-96.p-2:has(canvas) > * {
  background: transparent !important;
  background-color: transparent !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .h-96.p-2:has(canvas) canvas {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body:has(.app-layout-fixed) [data-cloudai-hidden-theme-toggle="1"] {
  display: none !important;
}

/* Semi table fixed columns sit above the scrolling table. Keep them opaque so
   underlying cells do not show through on token and usage-log pages. */
body:has(.app-layout-fixed) .semi-table .semi-table-cell-fixed-left,
body:has(.app-layout-fixed) .semi-table .semi-table-cell-fixed-right,
body:has(.app-layout-fixed) .semi-table .semi-table-row-cell[class*="fixed-left"],
body:has(.app-layout-fixed) .semi-table .semi-table-row-cell[class*="fixed-right"],
body:has(.app-layout-fixed) .semi-table .semi-table-row-head[class*="fixed-left"],
body:has(.app-layout-fixed) .semi-table .semi-table-row-head[class*="fixed-right"],
body:has(.app-layout-fixed) .semi-table [class*="semi-table-cell-fixed-left"],
body:has(.app-layout-fixed) .semi-table [class*="semi-table-cell-fixed-right"],
body:has(.app-layout-fixed) .semi-table [class*="fixedLeft"],
body:has(.app-layout-fixed) .semi-table [class*="fixedRight"] {
  background: #07162f !important;
  background-color: #07162f !important;
  background-image: none !important;
  background-clip: padding-box !important;
  z-index: 9 !important;
}

body:has(.app-layout-fixed) .semi-table .semi-table-thead .semi-table-cell-fixed-left,
body:has(.app-layout-fixed) .semi-table .semi-table-thead .semi-table-cell-fixed-right,
body:has(.app-layout-fixed) .semi-table .semi-table-thead .semi-table-row-head[class*="fixed-left"],
body:has(.app-layout-fixed) .semi-table .semi-table-thead .semi-table-row-head[class*="fixed-right"] {
  background: #091b3b !important;
  background-color: #091b3b !important;
  z-index: 12 !important;
}

body:has(.app-layout-fixed) .semi-table .semi-table-row:hover .semi-table-cell-fixed-left,
body:has(.app-layout-fixed) .semi-table .semi-table-row:hover .semi-table-cell-fixed-right,
body:has(.app-layout-fixed) .semi-table .semi-table-row:hover .semi-table-row-cell[class*="fixed-left"],
body:has(.app-layout-fixed) .semi-table .semi-table-row:hover .semi-table-row-cell[class*="fixed-right"] {
  background: #0a2142 !important;
  background-color: #0a2142 !important;
}

body:has(.app-layout-fixed) .semi-table .semi-table-cell-fixed-right-first,
body:has(.app-layout-fixed) .semi-table .semi-table-row-cell[class*="fixed-right"]:first-child,
body:has(.app-layout-fixed) .semi-table [class*="fixed-right-first"],
body:has(.app-layout-fixed) .semi-table [class*="fixedRightFirst"] {
  box-shadow: -12px 0 18px rgba(2, 4, 12, 0.72) !important;
}

body:has(.app-layout-fixed) .semi-table .semi-table-cell-fixed-left-last,
body:has(.app-layout-fixed) .semi-table [class*="fixed-left-last"],
body:has(.app-layout-fixed) .semi-table [class*="fixedLeftLast"] {
  box-shadow: 12px 0 18px rgba(2, 4, 12, 0.72) !important;
}

body:has(.app-layout-fixed) .semi-table .semi-table-cell-fixed-left *,
body:has(.app-layout-fixed) .semi-table .semi-table-cell-fixed-right *,
body:has(.app-layout-fixed) .semi-table .semi-table-row-cell[class*="fixed-left"] *,
body:has(.app-layout-fixed) .semi-table .semi-table-row-cell[class*="fixed-right"] * {
  position: relative;
  z-index: 1;
}

body:has(.app-layout-fixed) .semi-table-fixed-left,
body:has(.app-layout-fixed) .semi-table-fixed-right,
body:has(.app-layout-fixed) .semi-table-fixed-left table,
body:has(.app-layout-fixed) .semi-table-fixed-right table,
body:has(.app-layout-fixed) .semi-table-fixed-left .semi-table,
body:has(.app-layout-fixed) .semi-table-fixed-right .semi-table,
body:has(.app-layout-fixed) .semi-table-fixed-left .semi-table-tbody,
body:has(.app-layout-fixed) .semi-table-fixed-right .semi-table-tbody,
body:has(.app-layout-fixed) .semi-table-fixed-left .semi-table-row,
body:has(.app-layout-fixed) .semi-table-fixed-right .semi-table-row,
body:has(.app-layout-fixed) .semi-table-fixed-left .semi-table-row-cell,
body:has(.app-layout-fixed) .semi-table-fixed-right .semi-table-row-cell,
body:has(.app-layout-fixed) .semi-table [style*="position: sticky"],
body:has(.app-layout-fixed) .semi-table [style*="position:sticky"],
body:has(.app-layout-fixed) .semi-table [style*="right:"],
body:has(.app-layout-fixed) .semi-table [style*="left:"] {
  background: #07162f !important;
  background-color: #07162f !important;
  background-image: none !important;
}

body:has(.app-layout-fixed) .semi-table-fixed-left .semi-table-thead,
body:has(.app-layout-fixed) .semi-table-fixed-right .semi-table-thead,
body:has(.app-layout-fixed) .semi-table-fixed-left .semi-table-row-head,
body:has(.app-layout-fixed) .semi-table-fixed-right .semi-table-row-head,
body:has(.app-layout-fixed) .semi-table .semi-table-thead [style*="position: sticky"],
body:has(.app-layout-fixed) .semi-table .semi-table-thead [style*="position:sticky"],
body:has(.app-layout-fixed) .semi-table .semi-table-thead [style*="right:"],
body:has(.app-layout-fixed) .semi-table .semi-table-thead [style*="left:"] {
  background: #091b3b !important;
  background-color: #091b3b !important;
}

body:has(.app-layout-fixed) .semi-table-fixed-right {
  box-shadow: -14px 0 22px rgba(2, 4, 12, 0.72) !important;
}

body:has(.app-layout-fixed) .semi-table-fixed-left {
  box-shadow: 14px 0 22px rgba(2, 4, 12, 0.72) !important;
}

/* Remove the manual chart frame; dark mode itself supplies the chart surface. */
body:has(.app-layout-fixed) .app-layout-fixed .semi-card:has(.h-96.p-2 canvas) {
  background:
    linear-gradient(180deg, rgba(12, 25, 54, 0.84), rgba(5, 10, 24, 0.78)) !important;
  border-color: rgba(126, 233, 255, 0.18) !important;
  color: var(--cloudai-text) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 38px rgba(34, 215, 255, 0.08) !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .semi-card:has(.h-96.p-2 canvas) .semi-card-header,
body:has(.app-layout-fixed) .app-layout-fixed .semi-card:has(.h-96.p-2 canvas) .semi-card-body {
  background: transparent !important;
  border-color: rgba(126, 233, 255, 0.14) !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .h-96.p-2:has(canvas),
body:has(.app-layout-fixed) .app-layout-fixed .h-96.p-2:has(canvas) > *,
body:has(.app-layout-fixed) .app-layout-fixed .h-96.p-2:has(canvas) canvas {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body:has(.app-layout-fixed) .app-layout-fixed .h-96.p-2:has(canvas) {
  padding: 8px !important;
  border-radius: 0 !important;
}

body [class~="text-sm"]:has(> a[href*="github.com/QuantumNous/new-api"]),
body a[href*="github.com/QuantumNous/new-api"] {
  display: none !important;
}

.cloudai-wallet-panels-only {
  grid-template-columns: minmax(0, 1fr) !important;
}

.cloudai-subscription-center-tabs {
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0 0 18px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(150, 174, 211, 0.2);
  overflow-x: auto;
  scrollbar-width: none;
}

.cloudai-subscription-center-tabs::-webkit-scrollbar {
  display: none;
}

.cloudai-subscription-center-tabs button {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  outline: none;
  color: rgba(190, 204, 228, 0.74);
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.cloudai-subscription-center-tabs button::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -1px;
  left: 18px;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.cloudai-subscription-center-tabs button:hover {
  color: rgba(244, 249, 255, 0.92);
  background: rgba(126, 233, 255, 0.035);
}

.cloudai-subscription-center-tabs button:focus-visible {
  color: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(34, 215, 255, 0.34);
}

.cloudai-subscription-center-tabs button.is-active {
  color: #ffffff;
}

.cloudai-subscription-center-tabs button.is-active::after {
  background: #47c8ff;
  box-shadow: 0 0 12px rgba(71, 200, 255, 0.42);
}

.cloudai-subscription-center-hidden {
  display: none !important;
}

.cloudai-subscription-orders-panel {
  box-sizing: border-box;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(126, 233, 255, 0.16);
  border-radius: 10px;
  background: rgba(5, 13, 31, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cloudai-subscription-orders-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cloudai-subscription-orders-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.cloudai-subscription-orders-title {
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 820;
  line-height: 1.2;
}

.cloudai-subscription-orders-desc,
.cloudai-subscription-orders-summary {
  color: rgba(190, 214, 246, 0.68) !important;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.45;
}

.cloudai-subscription-orders-refresh {
  min-width: 68px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(126, 233, 255, 0.24);
  border-radius: 7px;
  color: rgba(236, 249, 255, 0.9);
  background: rgba(14, 31, 65, 0.72);
  font-family: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

.cloudai-subscription-orders-refresh:hover {
  border-color: rgba(71, 200, 255, 0.44);
  background: rgba(25, 54, 105, 0.76);
}

.cloudai-subscription-orders-summary {
  margin: 12px 0 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(150, 174, 211, 0.13);
}

.cloudai-subscription-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(221, 235, 255, 0.78);
  font-size: 13px;
}

.cloudai-subscription-order-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 0.8fr) minmax(130px, 0.7fr) minmax(150px, 0.8fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(126, 233, 255, 0.11);
  border-radius: 8px;
  background: rgba(7, 17, 39, 0.58);
}

.cloudai-subscription-order-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.cloudai-subscription-order-title {
  overflow: hidden;
  color: rgba(248, 251, 255, 0.96) !important;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloudai-subscription-order-number,
.cloudai-subscription-order-time,
.cloudai-subscription-order-period {
  color: rgba(177, 199, 230, 0.6) !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.cloudai-subscription-order-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cloudai-subscription-order-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(126, 233, 255, 0.14);
  border-radius: 999px;
  color: rgba(216, 239, 255, 0.86) !important;
  background: rgba(28, 67, 111, 0.35);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.cloudai-subscription-order-badge.is-status {
  color: #bbf7d0 !important;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(74, 222, 128, 0.2);
}

.cloudai-subscription-order-amount {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.3;
  text-align: right;
}

.cloudai-subscription-order-amount.is-list-price {
  color: rgba(214, 229, 249, 0.72) !important;
  font-size: 12px;
  font-weight: 680;
}

.cloudai-subscription-order-period {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  white-space: nowrap;
}

.cloudai-subscription-orders-empty {
  padding: 42px 16px;
  border: 1px dashed rgba(126, 233, 255, 0.14);
  border-radius: 8px;
  color: rgba(190, 214, 246, 0.58) !important;
  text-align: center;
}

.cloudai-subscription-rewards-panel {
  box-sizing: border-box;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(126, 233, 255, 0.16);
  border-radius: 10px;
  background: rgba(5, 13, 31, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cloudai-subscription-rewards-header,
.cloudai-reward-admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cloudai-subscription-rewards-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.cloudai-subscription-rewards-title,
.cloudai-reward-admin-title {
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 820;
  line-height: 1.2;
}

.cloudai-subscription-rewards-desc,
.cloudai-subscription-rewards-summary,
.cloudai-reward-admin-desc {
  color: rgba(190, 214, 246, 0.68) !important;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.45;
}

.cloudai-subscription-rewards-refresh,
.cloudai-subscription-reward-action button,
.cloudai-reward-admin-form button,
.cloudai-reward-admin-campaign button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(126, 233, 255, 0.24);
  border-radius: 7px;
  color: rgba(236, 249, 255, 0.94);
  background: rgba(14, 31, 65, 0.76);
  font-family: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

.cloudai-subscription-reward-action button,
.cloudai-reward-admin-form button[type="submit"] {
  border-color: rgba(71, 200, 255, 0.46);
  background: linear-gradient(135deg, rgba(16, 113, 181, 0.92), rgba(58, 79, 190, 0.92));
  box-shadow: 0 8px 22px rgba(25, 116, 194, 0.2);
}

.cloudai-subscription-rewards-refresh:hover,
.cloudai-subscription-reward-action button:hover,
.cloudai-reward-admin-form button:hover,
.cloudai-reward-admin-campaign button:hover {
  border-color: rgba(71, 200, 255, 0.56);
  filter: brightness(1.08);
}

.cloudai-subscription-rewards-refresh:focus-visible,
.cloudai-subscription-reward-action button:focus-visible,
.cloudai-reward-admin-form button:focus-visible,
.cloudai-reward-admin-campaign button:focus-visible,
.cloudai-reward-admin-form input:focus-visible,
.cloudai-reward-admin-form select:focus-visible,
.cloudai-reward-admin-form textarea:focus-visible {
  outline: 2px solid rgba(71, 200, 255, 0.76);
  outline-offset: 2px;
}

.cloudai-subscription-reward-action button:disabled,
.cloudai-reward-admin-form button:disabled,
.cloudai-reward-admin-campaign button:disabled {
  cursor: not-allowed;
  filter: none;
  opacity: 0.55;
}

.cloudai-subscription-rewards-summary {
  margin: 12px 0 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(150, 174, 211, 0.13);
}

.cloudai-subscription-rewards-message,
.cloudai-reward-admin-message {
  min-height: 20px;
  color: rgba(190, 214, 246, 0.72) !important;
  font-size: 12px;
  line-height: 1.5;
}

.cloudai-subscription-rewards-message.is-success {
  color: #86efac !important;
}

.cloudai-subscription-rewards-message.is-error {
  color: #fda4af !important;
}

.cloudai-subscription-rewards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cloudai-subscription-reward-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 0.85fr) minmax(150px, auto);
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(126, 233, 255, 0.13);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(7, 17, 39, 0.72), rgba(13, 29, 59, 0.56));
}

.cloudai-subscription-reward-card.is-claimed,
.cloudai-subscription-reward-card.is-expired,
.cloudai-subscription-reward-card.is-unavailable {
  background: rgba(7, 17, 39, 0.46);
}

.cloudai-subscription-reward-content,
.cloudai-subscription-reward-detail,
.cloudai-subscription-reward-action {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.cloudai-subscription-reward-content {
  gap: 7px;
}

.cloudai-subscription-reward-content h3 {
  margin: 0;
  color: rgba(248, 251, 255, 0.98) !important;
  font-size: 15px;
  font-weight: 790;
  line-height: 1.35;
}

.cloudai-subscription-reward-content p {
  margin: 0;
  color: rgba(184, 205, 235, 0.67) !important;
  font-size: 12px;
  line-height: 1.55;
}

.cloudai-subscription-reward-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cloudai-subscription-reward-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(126, 233, 255, 0.16);
  border-radius: 999px;
  color: rgba(216, 239, 255, 0.9) !important;
  background: rgba(28, 67, 111, 0.35);
  font-size: 10px;
  font-weight: 720;
  line-height: 1;
}

.cloudai-subscription-reward-card.is-claimable .cloudai-subscription-reward-badge.is-state {
  color: #bbf7d0 !important;
  border-color: rgba(74, 222, 128, 0.24);
  background: rgba(34, 197, 94, 0.1);
}

.cloudai-subscription-reward-card.is-expired .cloudai-subscription-reward-badge.is-state,
.cloudai-subscription-reward-card.is-unavailable .cloudai-subscription-reward-badge.is-state {
  color: rgba(203, 213, 225, 0.72) !important;
  background: rgba(100, 116, 139, 0.12);
}

.cloudai-subscription-reward-detail {
  gap: 5px;
}

.cloudai-subscription-reward-detail strong {
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.4;
}

.cloudai-subscription-reward-detail span,
.cloudai-subscription-reward-action small {
  color: rgba(177, 199, 230, 0.62) !important;
  font-size: 11px;
  line-height: 1.45;
}

.cloudai-subscription-reward-action {
  align-items: stretch;
  gap: 8px;
  text-align: right;
}

.cloudai-subscription-reward-action small {
  white-space: pre-line;
}

.cloudai-subscription-rewards-empty {
  padding: 42px 16px;
  border: 1px dashed rgba(126, 233, 255, 0.14);
  border-radius: 8px;
  color: rgba(190, 214, 246, 0.58) !important;
  text-align: center;
}

.cloudai-reward-admin {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(126, 233, 255, 0.15);
}

.cloudai-reward-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(126, 233, 255, 0.12);
  border-radius: 9px;
  background: rgba(7, 17, 39, 0.55);
}

.cloudai-reward-admin-form label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.cloudai-reward-admin-users[hidden] {
  display: none !important;
}

.cloudai-reward-admin-form label > span {
  color: rgba(211, 228, 250, 0.76) !important;
  font-size: 12px;
  font-weight: 680;
}

.cloudai-reward-admin-form input,
.cloudai-reward-admin-form select,
.cloudai-reward-admin-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid rgba(126, 233, 255, 0.16);
  border-radius: 7px;
  outline: 0;
  color: rgba(244, 249, 255, 0.94);
  background: rgba(4, 12, 30, 0.78);
  font-family: inherit;
  font-size: 13px;
}

.cloudai-reward-admin-form textarea {
  min-height: 82px;
  resize: vertical;
}

.cloudai-reward-admin-field-wide {
  grid-column: 1 / -1;
}

.cloudai-reward-admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cloudai-reward-admin-campaigns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  color: rgba(190, 214, 246, 0.64);
  font-size: 12px;
}

.cloudai-reward-admin-campaign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(126, 233, 255, 0.1);
  border-radius: 8px;
  background: rgba(7, 17, 39, 0.5);
}

.cloudai-reward-admin-campaign > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.cloudai-reward-admin-campaign strong {
  color: rgba(248, 251, 255, 0.94) !important;
  font-size: 13px;
}

.cloudai-reward-admin-campaign span,
.cloudai-reward-admin-campaign small {
  color: rgba(177, 199, 230, 0.62) !important;
  font-size: 11px;
  line-height: 1.4;
}

.cloudai-subscription-redeem-box {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(280px, 1.6fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 2px 0 12px;
  padding: 14px;
  border: 1px solid rgba(126, 233, 255, 0.18);
  border-radius: 8px;
  color: #f4fbff !important;
  background: linear-gradient(135deg, rgba(7, 15, 35, 0.76), rgba(17, 24, 52, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 34px rgba(0, 0, 0, 0.16);
}

.cloudai-subscription-redeem-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.cloudai-subscription-redeem-title {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.2;
}

.cloudai-subscription-redeem-desc {
  color: rgba(190, 214, 246, 0.74) !important;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
}

.cloudai-subscription-redeem-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cloudai-subscription-redeem-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(126, 233, 255, 0.22);
  border-radius: 7px;
  outline: none;
  color: #f4fbff !important;
  background: rgba(3, 8, 20, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
}

.cloudai-subscription-redeem-input::placeholder {
  color: rgba(190, 214, 246, 0.48);
}

.cloudai-subscription-redeem-input:focus {
  border-color: rgba(34, 215, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(34, 215, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cloudai-subscription-redeem-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(126, 233, 255, 0.34);
  border-radius: 7px;
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(34, 215, 255, 0.32), rgba(155, 92, 255, 0.28));
  box-shadow: 0 0 18px rgba(34, 215, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.cloudai-subscription-redeem-button:hover {
  border-color: rgba(34, 215, 255, 0.52);
  background: linear-gradient(135deg, rgba(34, 215, 255, 0.42), rgba(155, 92, 255, 0.34));
}

.cloudai-subscription-redeem-button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.cloudai-subscription-redeem-message {
  grid-column: 1 / -1;
  min-height: 16px;
  overflow-wrap: anywhere;
  color: rgba(190, 214, 246, 0.76) !important;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.cloudai-subscription-redeem-message:empty {
  min-height: 0;
}

.cloudai-subscription-redeem-message.is-success {
  color: #bbf7d0 !important;
}

.cloudai-subscription-redeem-message.is-error {
  color: #fecaca !important;
}

.cloudai-subscription-family-tabs {
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  width: auto;
  max-width: 100%;
  margin: 2px auto 14px 0;
  padding: 4px;
  border: 1px solid rgba(126, 233, 255, 0.2);
  border-radius: 8px;
  background: rgba(7, 15, 35, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  overflow-x: auto;
}

.cloudai-subscription-family-tabs + .cloudai-subscription-period-tabs {
  margin-top: -8px;
}

.cloudai-subscription-family-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: rgba(190, 214, 246, 0.82);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.cloudai-subscription-family-tab:hover {
  color: #f4fbff;
  background: rgba(126, 233, 255, 0.08);
}

.cloudai-subscription-family-tab.is-active {
  color: #ffffff;
  border-color: rgba(126, 233, 255, 0.34);
  background: linear-gradient(135deg, rgba(34, 215, 255, 0.28), rgba(155, 92, 255, 0.22));
  box-shadow: 0 0 18px rgba(34, 215, 255, 0.12);
}

.cloudai-subscription-family-hidden {
  display: none !important;
}

.cloudai-subscription-plan-with-ratio {
  position: relative;
}

.cloudai-subscription-ratio-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  margin: 6px 0 2px;
  padding: 0 9px;
  border: 1px solid rgba(126, 233, 255, 0.34);
  border-radius: 7px;
  color: #eafcff !important;
  background: linear-gradient(135deg, rgba(34, 215, 255, 0.16), rgba(155, 92, 255, 0.14));
  box-shadow: 0 0 16px rgba(34, 215, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

html:not(.dark) body:not([theme-mode="dark"]):has(.app-layout-fixed) .cloudai-subscription-ratio-badge {
  color: #075985 !important;
  border-color: rgba(14, 165, 233, 0.32);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(124, 58, 237, 0.1));
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.cloudai-subscription-status {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(126, 233, 255, 0.24);
  border-radius: 8px;
  color: #f4fbff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, rgba(7, 15, 35, 0.92), rgba(17, 24, 52, 0.86));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.22);
}

.cloudai-subscription-status:hover,
.cloudai-subscription-status:focus-visible {
  border-color: rgba(34, 215, 255, 0.44);
  outline: none;
  background: linear-gradient(135deg, rgba(10, 26, 58, 0.96), rgba(35, 20, 66, 0.88));
  box-shadow: 0 0 22px rgba(34, 215, 255, 0.14), 0 14px 32px rgba(0, 0, 0, 0.26);
}

.cloudai-subscription-status-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cloudai-subscription-status-title {
  color: #f4fbff !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.cloudai-subscription-status-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid rgba(142, 234, 255, 0.28);
  border-radius: 999px;
  color: #8eeaff !important;
  background: rgba(34, 215, 255, 0.1);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.cloudai-subscription-status-summary {
  display: inline-block;
  max-width: 118px;
  overflow: hidden;
  color: rgba(190, 214, 246, 0.86) !important;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloudai-subscription-status-arrow {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(190, 214, 246, 0.72);
  border-bottom: 1.5px solid rgba(190, 214, 246, 0.72);
  transform: rotate(45deg) translateY(-1px);
}

.cloudai-subscription-status-popover {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  width: min(380px, calc(100vw - 24px));
  max-height: min(460px, calc(100vh - 96px));
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(126, 233, 255, 0.2);
  border-radius: 8px;
  opacity: 0;
  overflow: auto;
  pointer-events: none;
  transform: translateY(-4px);
  visibility: hidden;
  color: #f4fbff !important;
  background: rgba(6, 13, 31, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.cloudai-subscription-status:hover .cloudai-subscription-status-popover,
.cloudai-subscription-status:focus .cloudai-subscription-status-popover,
.cloudai-subscription-status:focus-visible .cloudai-subscription-status-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.cloudai-subscription-popover-head,
.cloudai-subscription-popover-item,
.cloudai-subscription-popover-item-head,
.cloudai-subscription-popover-item-meta,
.cloudai-subscription-popover-item-foot {
  display: flex;
  min-width: 0;
}

.cloudai-subscription-popover-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cloudai-subscription-popover-title {
  color: #f4fbff !important;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

.cloudai-subscription-popover-meta {
  color: rgba(190, 214, 246, 0.76) !important;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-align: right;
}

.cloudai-subscription-popover-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cloudai-subscription-popover-item {
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.66);
}

.cloudai-subscription-popover-item-head {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cloudai-subscription-popover-item-title {
  min-width: 0;
  overflow: hidden;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloudai-subscription-popover-item-status {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(74, 222, 128, 0.26);
  border-radius: 999px;
  color: #bbf7d0 !important;
  background: rgba(34, 197, 94, 0.1);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}

.cloudai-subscription-popover-item-status.is-exhausted {
  border-color: rgba(251, 191, 36, 0.28);
  color: #fde68a !important;
  background: rgba(245, 158, 11, 0.1);
}

.cloudai-subscription-popover-item-meta,
.cloudai-subscription-popover-item-foot {
  color: rgba(190, 214, 246, 0.76) !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
}

.cloudai-subscription-popover-bar {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
}

.cloudai-subscription-popover-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d7ff, #9b5cff);
}

@media (max-width: 960px) {
  .cloudai-subscription-status {
    display: none;
  }
}

@media (max-width: 760px) {
  .cloudai-subscription-center-tabs {
    margin-right: -4px;
    margin-left: -4px;
    padding: 0 4px;
  }

  .cloudai-subscription-center-tabs button {
    flex: 1 0 78px;
    min-width: 78px;
    min-height: 48px;
    padding: 0 8px;
    font-size: 13px;
  }

  .cloudai-subscription-orders-panel {
    padding: 14px;
  }

  .cloudai-subscription-rewards-panel {
    padding: 14px;
  }

  .cloudai-subscription-order-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
  }

  .cloudai-subscription-order-main,
  .cloudai-subscription-order-badges {
    grid-column: 1 / -1;
  }

  .cloudai-subscription-order-amount {
    text-align: left;
  }

  .cloudai-subscription-order-period {
    text-align: right;
  }

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

  .cloudai-subscription-reward-action {
    text-align: left;
  }

  .cloudai-subscription-reward-action button,
  .cloudai-subscription-rewards-refresh {
    width: 100%;
  }

  .cloudai-subscription-rewards-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cloudai-reward-admin-form {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .cloudai-reward-admin-field-wide {
    grid-column: auto;
  }

  .cloudai-reward-admin-actions,
  .cloudai-reward-admin-campaign {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .cloudai-reward-admin-actions {
    flex-direction: column;
  }

  .cloudai-subscription-redeem-box,
  .cloudai-subscription-redeem-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .cloudai-subscription-redeem-button {
    width: 100%;
  }
}

.cloudai-benefits-sidebar-link[hidden] {
  display: none !important;
}

.cloudai-benefits-sidebar-link {
  position: fixed;
  z-index: 900;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid transparent;
  color: rgba(226, 244, 255, 0.78) !important;
  background: transparent;
  line-height: 1;
  text-decoration: none !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.cloudai-benefits-sidebar-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cloudai-benefits-sidebar-link span {
  min-width: 0;
  overflow: hidden;
  color: inherit !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloudai-benefits-sidebar-link:hover {
  color: var(--cloudai-text) !important;
  background: rgba(34, 215, 255, 0.1);
}

body.cloudai-benefits-modal-open .cloudai-benefits-sidebar-link {
  color: #ffffff !important;
  border-color: rgba(126, 233, 255, 0.22);
  background: linear-gradient(135deg, rgba(34, 215, 255, 0.2), rgba(155, 92, 255, 0.2));
  box-shadow: 0 0 22px rgba(34, 215, 255, 0.14);
}

.cloudai-benefits-sidebar-link[data-cloudai-sidebar-collapsed="1"] {
  justify-content: center;
  gap: 0;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

.cloudai-benefits-sidebar-link[data-cloudai-sidebar-collapsed="1"] span {
  display: none;
}

.cloudai-benefits-nav-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  margin-left: 8px;
  border: 1px solid rgba(56, 232, 255, 0.28);
  border-radius: 8px;
  color: #eaf8ff !important;
  background: rgba(56, 232, 255, 0.08);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.cloudai-benefits-nav-link:hover {
  color: #ffffff !important;
  border-color: rgba(56, 232, 255, 0.52);
  background: rgba(56, 232, 255, 0.14);
}

.cloudai-benefits-nav-link {
  display: inline-flex !important;
}

body.cloudai-benefits-modal-open {
  overflow: hidden !important;
}

.cloudai-benefits-modal[hidden] {
  display: none !important;
}

.cloudai-benefits-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 28px;
}

.cloudai-benefits-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.cloudai-benefits-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 56px));
  height: min(780px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid rgba(126, 233, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(9, 18, 42, 0.98), rgba(4, 8, 20, 0.99));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56), 0 0 44px rgba(34, 215, 255, 0.12);
}

.cloudai-benefits-modal-titlebar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px 0 20px;
  border-bottom: 1px solid rgba(126, 233, 255, 0.16);
  background: linear-gradient(180deg, rgba(21, 33, 64, 0.95), rgba(12, 20, 42, 0.96));
}

.cloudai-benefits-modal-titlebar h2 {
  margin: 0;
  color: #f4fbff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.cloudai-benefits-modal-titlebar p {
  margin: 5px 0 0;
  color: rgba(190, 214, 246, 0.78);
  font-size: 13px;
}

.cloudai-benefits-modal-close {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(126, 233, 255, 0.22);
  border-radius: 8px;
  color: #eafcff;
  background: rgba(126, 233, 255, 0.08);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cloudai-benefits-modal-close:hover {
  background: rgba(126, 233, 255, 0.16);
}

.cloudai-benefits-modal-frame {
  display: block;
  width: 100%;
  height: calc(100% - 62px);
  border: 0;
  background: transparent;
}

@media (max-width: 760px) {
  .cloudai-benefits-modal {
    padding: 12px;
  }

  .cloudai-benefits-modal-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
  }

  .cloudai-benefits-modal-titlebar {
    height: 62px;
    padding: 14px;
  }

  .cloudai-benefits-modal-frame {
    height: calc(100% - 62px);
  }
}

body.cloudai-subscription-modal-open {
  overflow: hidden !important;
}

.cloudai-subscription-modal[hidden] {
  display: none !important;
}

.cloudai-subscription-modal {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  padding: 20px;
}

.cloudai-subscription-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 4, 12, 0.68);
  backdrop-filter: blur(9px);
}

.cloudai-subscription-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 32px));
  height: min(780px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid rgba(126, 233, 255, 0.26);
  border-radius: 10px;
  color: #f4fbff;
  background: linear-gradient(180deg, rgba(10, 20, 46, 0.98), rgba(4, 9, 22, 0.99));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58), 0 0 42px rgba(34, 215, 255, 0.14);
}

.cloudai-subscription-modal-titlebar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid rgba(126, 233, 255, 0.16);
  background: linear-gradient(180deg, rgba(21, 33, 64, 0.95), rgba(12, 20, 42, 0.96));
}

.cloudai-subscription-modal-titlecopy {
  min-width: 0;
}

.cloudai-subscription-modal-kicker {
  color: rgba(126, 233, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.cloudai-subscription-modal-panel h2 {
  margin: 3px 0 0;
  color: #f4fbff;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloudai-subscription-modal-subtitle {
  margin: 3px 0 0;
  color: rgba(190, 214, 246, 0.82);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cloudai-subscription-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cloudai-subscription-modal-close {
  width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(126, 233, 255, 0.24);
  border-radius: 8px;
  color: #eafcff;
  background: rgba(126, 233, 255, 0.08);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cloudai-subscription-modal-close:hover {
  background: rgba(126, 233, 255, 0.16);
}

.cloudai-subscription-modal-copy,
.cloudai-subscription-modal-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  text-decoration: none !important;
}

.cloudai-subscription-modal-copy {
  border: 1px solid rgba(126, 233, 255, 0.22);
  color: #dffaff;
  background: rgba(126, 233, 255, 0.08);
}

.cloudai-subscription-modal-copy:hover {
  background: rgba(126, 233, 255, 0.16);
}

.cloudai-subscription-modal-open {
  border: 1px solid rgba(126, 233, 255, 0.42);
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--cloudai-cyan), var(--cloudai-blue) 46%, var(--cloudai-violet));
  box-shadow: 0 14px 34px rgba(22, 119, 255, 0.24), 0 0 24px rgba(34, 215, 255, 0.18);
}

.cloudai-subscription-modal-frame-wrap {
  width: 100%;
  height: calc(100% - 76px);
  background: #ffffff;
}

.cloudai-subscription-modal-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

@media (max-width: 760px) {
  .cloudai-subscription-modal-panel {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
  }

  .cloudai-subscription-modal-titlebar {
    height: 92px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }

  .cloudai-subscription-modal-toolbar {
    width: 100%;
    justify-content: flex-end;
  }

  .cloudai-subscription-modal-panel h2,
  .cloudai-subscription-modal-subtitle {
    max-width: calc(100vw - 48px);
  }

  .cloudai-subscription-modal-frame-wrap {
    height: calc(100% - 92px);
  }
}

.cloudai-reward-reminder {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: min(320px, calc(100vw - 36px));
  padding: 0 14px;
  border: 1px solid rgba(56, 232, 255, 0.32);
  border-radius: 999px;
  color: #eaf8ff !important;
  background: linear-gradient(135deg, rgba(8, 17, 38, 0.96), rgba(19, 36, 78, 0.94));
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.34), 0 0 22px rgba(56, 232, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  backdrop-filter: blur(12px);
}

.cloudai-reward-reminder:hover {
  color: #ffffff !important;
  border-color: rgba(56, 232, 255, 0.58);
  transform: translateY(-1px);
}

.cloudai-reward-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #32d583;
  box-shadow: 0 0 12px rgba(50, 213, 131, 0.95);
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .cloudai-reward-reminder {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* Legacy cleanup: the sidebar benefits entry was an experimental overlay and is no longer used. */
.cloudai-benefits-sidebar-link {
  display: none !important;
}

.cloudai-benefits-sidebar-pushed {
  margin-top: 0 !important;
}

.cloudai-personal-subscription-quota-card {
  position: relative !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: 120px !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  line-height: normal !important;
}

.cloudai-personal-subscription-quota-value {
  position: static !important;
  display: block !important;
  min-width: 0 !important;
  line-height: 1.05 !important;
  white-space: nowrap !important;
}

.cloudai-personal-subscription-quota-label {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(190, 214, 246, 0.72) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}
