/* Shared type sizes for labels and supporting copy across viewport sizes. */
:root {
  --type-caption: 15px;
  --type-small: 15px;
  --type-copy: 16px;
}

/* Base minimum typography across all elements */
body, button, input, select, textarea {
  font-size: 15px;
}

/* Footers: 15px base reference across all viewports */
.app-footer, .product-footer, .landing-footer, .app-footer-inner {
  font-size: 15px !important;
  line-height: 1.65;
  color: var(--muted);
}
.footer-col-brand .footer-desc {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #a0a4b4 !important;
  max-width: 360px !important;
  margin: 10px 0 12px !important;
}
.footer-col-brand .footer-copy {
  font-size: 15px !important;
  color: #8e929f !important;
  display: block !important;
}
.footer-col-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #e1e4ea !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  margin-bottom: 6px !important;
}
.footer-col-links a {
  font-size: 15px !important;
  color: #a0a4b4 !important;
  min-height: 28px !important;
  display: inline-flex !important;
  align-items: center !important;
}
.footer-col-links a:hover {
  color: var(--accent, #9aefd2) !important;
}
.footer-links, .landing-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  gap: 12px 26px;
  font-size: 15px !important;
  color: var(--muted);
}
.app-footer a, .product-footer a, .landing-footer .footer-links a, .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  font-size: 15px !important;
  overflow-wrap: anywhere;
}
.app-footer a:hover, .product-footer a:hover, .landing-footer a:hover, .footer-links a:hover {
  color: var(--text);
}
.landing-footer p, .footer-links span {
  font-size: 15px !important;
  color: var(--muted);
}

/* Topbar account link: clean without background plate */
.topnav-account,
.topbar-account {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 4px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #eaeaec !important;
  text-decoration: none !important;
  font-size: 15px !important;
  box-sizing: border-box !important;
  cursor: pointer;
  transition: color 0.18s, opacity 0.18s;
}
.topnav-account:hover,
.topbar-account:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
}
.topnav-account .icon,
.topbar-account .icon {
  width: 15px !important;
  height: 15px !important;
  color: currentColor !important;
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
.topnav-account:hover > .icon,
.topbar-account:hover > .icon {
  transform: translateX(2px);
}
.avatar,
.topnav-account .avatar,
.topbar-account .avatar,
.app-topbar .avatar,
.user-account-toggle .avatar {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
}

.avatar .icon,
.avatar svg,
.avatar .avatar-svg,
.topnav-account .avatar .icon,
.topbar-account .avatar .icon,
.topbar-account .avatar svg,
.topbar-account .avatar .avatar-svg,
.user-account-toggle .avatar .icon,
.user-account-toggle .avatar svg,
.user-account-toggle .avatar .avatar-svg {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: block !important;
  margin: 0 !important;
  transform: none !important;
}
.user-email,
.topnav-account .user-email,
.topbar-account .user-email,
.app-topbar .user-email {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #eaeaec !important;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Quickstart card & Base URL */
.quickstart p {
  font-size: 15px !important;
  line-height: 1.6;
  color: #9d9daa !important;
  margin-bottom: 16px;
}
.quickstart .btn {
  font-size: 15px !important;
  min-height: 42px;
}
.base-url {
  padding: 8px 12px !important;
}
.base-url code, .app-shell .base-url code, .model-dialog .base-url code {
  font-size: 15px !important;
  font-family: var(--mono);
}

/* Documentation TOC & Code Blocks */
.docs-toc h3 {
  font-size: 15px !important;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #9d9daa !important;
  margin-bottom: 14px;
}
.docs-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
}
.docs-toc-link {
  position: relative;
  display: block;
  font-size: 15px !important;
  line-height: 1.45;
  padding: 8px 10px 8px 16px !important;
  color: #8c8c9a !important;
  text-decoration: none;
  border-radius: 0 6px 6px 0;
  transition: color 0.18s ease, background 0.18s ease;
}
.docs-toc-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 2.5px;
  border-radius: 2px;
  background: transparent;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}
.docs-toc-link:hover {
  color: #ffffff !important;
}
.docs-toc-link.active {
  color: var(--accent, #9aefd2) !important;
  font-weight: 600 !important;
}
.docs-toc-link.active::before {
  background: var(--accent, #9aefd2) !important;
  box-shadow: none !important;
}
.docs-toc-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px !important;
  line-height: 1.5;
  padding: 8px 4px !important;
  color: #8c8c9a !important;
  text-decoration: none;
  transition: color 0.15s ease;
}
.docs-toc-action:hover {
  color: #ffffff !important;
}
.docs-toc-action .icon {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.docs-toc-action:hover .icon {
  opacity: 1;
  transform: translate(1px, -1px);
}
.doc-step {
  font-size: 15px !important;
  font-weight: 500 !important;
  margin-right: 8px;
}
.code-head, .code-head span {
  font-size: 15px !important;
  font-weight: 500;
}
.code-box pre, .code-box pre code, pre code, code {
  font-size: 15px !important;
  line-height: 1.7;
}
/* Documentation & Long-Form Reading (16px base for prose) */
.doc-content p,
.doc-content li,
.doc-content .notice,
.doc-content .notice div,
.doc-endpoint-block p {
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: #d4d4e0 !important;
}
.doc-content code.inline,
.doc-content p code {
  font-size: 16px !important;
}
.doc-content h2 {
  font-size: 20px !important;
  font-weight: 600 !important;
}
.doc-endpoint-block h3,
.doc-content h3 {
  font-size: 18px !important;
  font-weight: 550 !important;
  line-height: 1.4 !important;
}
.doc-endpoint-block h3 code,
.doc-content h3 code {
  font-size: 17.5px !important;
  font-family: var(--mono) !important;
  font-weight: 500 !important;
}

/* Documentation: API errors section */
.doc-content .doc-errors-title { margin: 28px 0 12px !important; color: #e2e2ea; }
.doc-errors-kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 16px; }
.doc-errors-kind { padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.04); }
.doc-errors-kind strong { display: block; font-size: 16px; margin-bottom: 6px; }
.doc-content .doc-errors-kind p { margin: 0; font-size: 15px !important; line-height: 1.6 !important; }
.doc-errors-faq { margin: 0 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.doc-errors-table th, .doc-errors-table td { vertical-align: top; text-align: left !important; font-size: 15px; line-height: 1.6; }
.doc-errors-table { table-layout: fixed; width: 100%; }
.doc-errors-table th:first-child { width: 30%; }
.doc-errors-table th:nth-child(2) { width: 34%; }
.doc-errors-code { display: block; font-size: 15px; font-weight: 600; color: #f4f4f6; overflow-wrap: normal; word-break: normal; }
.doc-errors-status { display: block; margin-top: 4px; font-size: 15px; color: #9da0b3; }
.doc-content .notice + .notice { margin-top: 12px; }
html.theme-light .doc-content .doc-errors-title, html.theme-light .doc-errors-code { color: #11141a; }
html.theme-light .doc-errors-kind { background: #f8f9fa; border-color: #dce1e8; }
html.theme-light .doc-errors-status { color: #5e6573; }
@media (max-width: 700px) {
  .doc-errors-kinds { grid-template-columns: 1fr; }
  .doc-errors-table { table-layout: auto; min-width: 560px; }
  .doc-errors-table th:first-child, .doc-errors-table th:nth-child(2) { width: auto; }
}

/* Documentation: sticky bar with section links and the code-language switch */
/* overflow-x: hidden on html/body turns body into a scroll container and disables position: sticky;
   clip trims horizontal overflow the same way without that side effect. */
html[data-page=docs], html[data-page=docs] body { overflow-x: clip !important; }
.doc-content > section { scroll-margin-top: 84px; }
.docs-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: flex-start;
  flex-wrap: nowrap; gap: 10px 16px; margin: 0 0 18px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 20px; background: rgba(12, 13, 15, 0.92); backdrop-filter: blur(12px);
}
.docs-bar-sections {
  display: none; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent);
}
.docs-bar-sections::-webkit-scrollbar { display: none; }
.docs-bar-sections a {
  flex: 0 0 auto; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 600;
  color: #c4c4d6; text-decoration: none; white-space: nowrap;
}
.docs-bar-sections a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.docs-bar-sections a.active { background: rgba(255, 255, 255, 0.14) !important; color: var(--accent, #9aefd2) !important; }
@media (max-width: 1150px) {
  .docs-bar-sections { display: flex; }
  .doc-lang-switch > span { display: none; }
}
.doc-lang-switch { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; flex-shrink: 0; }
.doc-lang-switch > span { font-size: 15px; color: #9da0b3; margin-right: 4px; }
.doc-lang-btn {
  min-height: 38px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px !important; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); color: #c4c4d6; font: inherit; font-size: 15px; font-weight: 600;
}
.doc-lang-btn:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.doc-lang-btn.active { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.doc-lang-pane[hidden] { display: none !important; }
.doc-lang-tabs { display: none; gap: 6px; margin: 0 0 8px; }

/* Quick start: two paths and three numbered steps */
.doc-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 22px; }
.doc-path {
  display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 16px !important; background: rgba(255, 255, 255, 0.04); transition: background .15s, border-color .15s;
}
.doc-path:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }
.doc-path strong { display: flex; align-items: center; gap: 8px; font-size: 17px; color: #f4f4f6; }
.doc-path strong .icon { width: 18px; height: 18px; color: #9aefd2; }
.doc-path span { font-size: 15px; line-height: 1.55; color: #c4c4d6; }
.doc-path em { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 15px; font-weight: 600; color: #9aefd2; }
.doc-path em .icon { width: 15px; height: 15px; }
.doc-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 84px; }
.doc-steps > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.doc-steps > li > div { min-width: 0; }
.doc-steps-num {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 8px; background: #9aefd2; color: #090a0b; font-size: 16px; font-weight: 600;
}
.doc-content .doc-steps h3 { margin: 3px 0 6px !important; }
.doc-content .doc-steps p { margin: 0 0 12px; }
.doc-steps-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-steps-actions .btn { min-height: 38px; font-size: 15px; }

/* API methods as collapsible cards */
.doc-api-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.doc-api-card { border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.025); }
.doc-api-card[open] { background: rgba(255, 255, 255, 0.035); }
.doc-api-card > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px;
  padding: 14px 16px; border-radius: 8px;
}
.doc-api-card > summary::-webkit-details-marker { display: none; }
.doc-api-card > summary:hover { background: rgba(255, 255, 255, 0.04); }
.doc-api-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.doc-api-head strong { font-size: 17px; color: #f4f4f6; }
.doc-api-path { font-family: var(--mono); font-size: 15px !important; color: #9aefd2; background: none !important; border: 0 !important; padding: 0 !important; }
.doc-api-summary { grid-column: 1; font-size: 15px; line-height: 1.55; color: #c4c4d6; }
.doc-api-toggle { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 15px; font-weight: 600; color: #9aefd2; white-space: nowrap; }
.doc-api-toggle::after { content: 'Показать пример ↓'; }
.doc-api-card[open] .doc-api-toggle::after { content: 'Скрыть ↑'; }
.doc-api-body { padding: 0 16px 16px; }
.doc-api-body > p { margin: 4px 0 12px; }

/* Short bullet lists instead of long paragraphs */
.doc-points { margin: 0 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }

html.theme-light .docs-bar { background: rgba(255, 255, 255, 0.94); border-color: #dce1e8; }
html.theme-light .docs-bar-sections a, html.theme-light .doc-lang-btn { color: #333742; }
html.theme-light .docs-bar-sections a:hover { background: #f0f2f5; color: #11141a; }
html.theme-light .doc-lang-switch > span { color: #5e6573; }
html.theme-light .doc-lang-btn { background: #ffffff; border-color: #d5d9e0; }
html.theme-light .doc-lang-btn:hover { background: #f0f2f5; color: #11141a; }
html.theme-light .doc-lang-btn.active { background: #f0f2f5; border-color: #11141a; color: #11141a; }
html.theme-light .doc-path, html.theme-light .doc-api-card { background: #f8f9fa; border-color: #dce1e8; }
html.theme-light .doc-path:hover, html.theme-light .doc-api-card > summary:hover { background: #f0f2f5; }
html.theme-light .doc-api-card[open] { background: #ffffff; }
html.theme-light .doc-path strong, html.theme-light .doc-api-head strong { color: #11141a; }
html.theme-light .doc-path span, html.theme-light .doc-api-summary { color: #333742; }
html.theme-light .doc-path em, html.theme-light .doc-path strong .icon, html.theme-light .doc-api-path,
html.theme-light .doc-api-toggle { color: #11141a; }
html.theme-light .doc-steps-num,
html.theme-light .cw-step-num { background: #11141a !important; color: #ffffff !important; }
html.theme-light .docs-toc-link.active::before { background: #11141a !important; box-shadow: none !important; }
/* The site header sticks to the top on phones (refinements.css, 60px); sit right under it. */
@media (max-width: 768px) {
  .docs-bar { top: 60px; padding: 6px 8px; margin-inline: -4px; }
  .doc-content > section, .doc-steps { scroll-margin-top: 130px; }
  .docs-bar .doc-lang-switch { display: none; }
  .doc-lang-tabs { display: flex; }
}
@media (max-width: 700px) {
  .doc-paths { grid-template-columns: 1fr; }
  .doc-api-card > summary { grid-template-columns: 1fr; }
  .doc-api-toggle { grid-column: 1; grid-row: auto; }
}

/* Legal Documents: Privacy Policy, Terms, Refunds (16px long-form reading) */
.privacy-content p,
.privacy-content ul,
.privacy-content ol,
.privacy-content li,
.privacy-content a {
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: #d4d4e0 !important;
}
.privacy-content strong,
.doc-content strong {
  color: #f4f4f6 !important;
  font-weight: 600 !important;
}
.privacy-content h2 {
  font-size: 22px !important;
  font-weight: 600 !important;
  margin: 36px 0 14px !important;
  color: var(--text, #f4f4f6) !important;
}
.privacy-content h2:first-child {
  margin-top: 0 !important;
}

/* Account Safety & Profile Settings */
.account-grid .panel-head {
  margin-bottom: 16px !important;
}
.account-grid .panel-head h2,
.account-safety h2 {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--text, #f4f4f6) !important;
  margin-bottom: 6px !important;
}
.account-grid .section-description {
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #9da0b3 !important;
  margin: 0 !important;
}
.account-safety p, .section-description {
  font-size: 15px !important;
  line-height: 1.7;
  color: #b0b0bc !important;
}
.account-safety-actions .btn {
  font-size: 15px !important;
  min-height: 42px;
}
.account-facts span {
  font-size: 15px !important;
  color: #9d9daa !important;
}
.account-facts strong {
  font-size: 24px !important;
}
.auth-recovery {
  font-size: 15px !important;
}

/* Topup Modal & Payment Methods */
.modal-intro {
  font-size: 15px !important;
  line-height: 1.6;
  color: #9d9daa !important;
}
.btn-payment-method .pm-title {
  font-size: 15px !important;
  font-weight: 600;
}
.btn-payment-method .pm-subtitle {
  font-size: 15px !important;
  color: #a0a0ad !important;
  line-height: 1.4;
}
.topup-estimate {
  font-size: 15px !important;
  padding: 10px 14px;
}
.topup-estimate strong,
#topup-rub-val {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #49d69e !important;
}
.topup-estimate small, #topup-rate-val {
  font-size: 15px !important;
  color: #a0a0ad !important;
}
.amount-choices button {
  font-size: 15px !important;
  font-weight: 500;
  min-height: 38px;
}
.auth-fineprint, .modal .auth-fineprint {
  font-size: 15px !important;
  color: #9d9daa !important;
  line-height: 1.6;
}
.auth-agreement, .auth-switch, .auth-switch button, .auth-tab, .payment-badge, .product-payments-label, .auth-forgot-link, .auth-submit-btn {
  font-size: 15px !important;
}
.auth-main-pane .auth-head h2 {
  font-size: 22px !important;
}
.auth-promo-title {
  font-size: 19px !important;
}
.auth-promo-desc, .auth-promo-card-text strong {
  font-size: 15px !important;
}
.auth-promo-card-text span, .auth-promo-foot {
  font-size: 15px !important;
}
.form-error {
  font-size: 15px !important;
}

/* Top Navigation, Breadcrumb, News Link, Balance, Currency Switcher */
.breadcrumb, .breadcrumb span, .crumb-brand, .crumb-slash {
  font-size: 15px !important;
}
.topbar-news-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 15px !important;
  color: #e2e2ea !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  transition: color 0.15s ease, opacity 0.15s ease !important;
}
.topbar-news-link:hover {
  color: #9aefd2 !important;
}
.topbar-news-link svg,
.topbar-news-link .icon {
  width: 18px !important;
  height: 18px !important;
  color: #9aefd2 !important;
  flex-shrink: 0 !important;
}
@media (max-width: 580px) {
  .topbar-news-link span {
    display: none !important;
  }
}
.user-email, .app-shell .user-email {
  font-size: 15px !important;
}
/* Topbar Elements & Controls: Perfectly Uniform 40px Height */
.topbar-balance,
.currency-toggle,
.lang-toggle,
.theme-toggle,
.topnav-account,
.topbar-account,
.topnav .btn,
.topnav-actions > .btn,
.topnav-login-btn,
.app-shell .topbar-balance,
.app-shell .currency-toggle,
.app-shell .lang-toggle,
.app-shell .theme-toggle,
.app-topbar .btn,
.app-topbar .topbar-login-btn,
.app-topbar .icon-btn:not(.mobile-toggle) {
  font-size: 15px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.theme-toggle,
.app-shell .theme-toggle,
.topnav-actions .theme-toggle {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
}
.app-topbar .icon-btn:not(.mobile-toggle) {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
}
.topbar-balance,
.currency-toggle,
.lang-toggle,
.topnav .btn,
.topnav-actions > .btn,
.topnav-login-btn,
.app-topbar .btn,
.app-topbar .topbar-login-btn {
  border-radius: 999px !important;
}
.topbar-balance {
  padding: 0 12px !important;
}
.currency-toggle,
.lang-toggle {
  min-width: auto !important;
  width: auto !important;
  padding: 0 10px !important;
  gap: 6px !important;
}
.topnav .btn,
.topnav-actions > .btn,
.topnav-login-btn,
.app-topbar .btn,
.app-topbar .topbar-login-btn {
  padding: 0 14px !important;
  gap: 6px !important;
  font-weight: 550 !important;
}
.topbar-balance span, .currency-toggle span, .lang-toggle span {
  font-size: 15px !important;
}
.currency-option, .currency-option-code, .currency-option-symbol, .lang-option, .lang-option-code, .lang-option-name {
  font-size: 15px !important;
}
.currency-dropdown {
  min-width: 118px !important;
  width: max-content !important;
  left: 0 !important;
  right: auto !important;
  box-sizing: border-box !important;
  padding: 4px !important;
}
.currency-option {
  padding: 8px 14px !important;
  justify-content: flex-start !important;
  white-space: nowrap !important;
}
.currency-option-symbol,
.currency-option.active .currency-option-symbol,
.currency-option.is-active .currency-option-symbol {
  margin-left: 4px !important;
  font-weight: 400 !important;
}

/* Sidebar Navigation & Controls (Rule 6: Neutral Surface Standards) */
.sidebar,
.app-shell .sidebar {
  background: #090a0b !important;
  border-right: 1px solid var(--line, rgba(255, 255, 255, 0.08)) !important;
}
.side-nav a, .app-shell .side-nav a {
  font-size: 15px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  color: #93939e !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}
.side-nav a:hover, .app-shell .side-nav a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}
.side-nav a.active, .app-shell .side-nav a.active {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid transparent !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  font-weight: 500 !important;
}
.side-nav a.active .icon, .app-shell .side-nav a.active .icon {
  color: #9aefd2 !important;
}
.nav-group-label, .workspace-label {
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: #788190 !important;
  padding: 14px 14px 4px !important;
  display: block !important;
  margin: 0 !important;
}
.sidebar-status {
  display: none !important;
}
.side-promo {
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08)) !important;
  border-radius: 20px !important;
}
.side-promo p {
  font-size: 15px !important;
}
.sidebar-topup-btn {
  font-size: 15px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  white-space: nowrap !important;
}

/* Dashboard, Metrics, Charts */
.metric-top, .metric-top span, .metric-foot, .chart-bar label, .chart-empty, .panel-head p {
  font-size: 15px !important;
}
.status-label, .table-subtext, .pill, .panel-head .pill, .chat-toolbar .pill, .payment-method .pill, .model-heading .pill, .catalog-card .pill, .admin-status {
  font-size: 15px !important;
  line-height: 1.4;
}
.status-label {
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ffffff16;
  background: #ffffff05;
  color: #d6d6df;
  white-space: nowrap;
}
.status-label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.table-subtext {
  color: var(--muted);
  display: inline-block;
  margin-top: 3px;
  line-height: 1.4;
}
.eyebrow, .balance-panel .eyebrow {
  font-size: 15px !important;
  letter-spacing: 1.2px;
  font-weight: 600;
}
.balance-panel p {
  font-size: 15px !important;
  color: #9da0b3 !important;
  line-height: 1.5 !important;
  margin-top: 8px !important;
}

/* Service Status Page (/status) */
[data-page=status] .page-header p {
  font-size: 15px !important;
  line-height: 1.5 !important;
}
.status-banner {
  padding: 20px 24px !important;
  gap: 16px !important;
}
.status-banner > .icon {
  width: 28px !important;
  height: 28px !important;
  flex-shrink: 0 !important;
}
.status-banner h2 {
  font-size: 20px !important;
  font-weight: 600 !important;
  letter-spacing: -0.3px !important;
  color: var(--text, #f4f4f6);
  margin: 0 !important;
}
.status-banner p {
  font-size: 15px !important;
  line-height: 1.4 !important;
  margin-top: 4px !important;
  color: var(--muted, #a0a0ad);
}
.status-components {
  padding: 0 28px !important;
}
.status-component {
  padding: 20px 0 !important;
}
.status-component h3 {
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 0 0 4px 0 !important;
  color: var(--text, #f4f4f6);
}
.status-component p {
  font-size: 15px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  color: var(--muted, #a7a7b1);
}
.status-component small {
  font-size: 14px !important;
  line-height: 1.4 !important;
  margin-top: 4px !important;
  display: block !important;
  color: var(--faint, #8e8e9a);
}
.status-component .pill,
.status-pill {
  font-size: 14px !important;
  padding: 4px 12px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}

html.theme-light [data-page=status] .page-header p {
  color: #5e6573 !important;
  font-size: 15px !important;
}
html.theme-light .status-banner h2 {
  color: #11141a !important;
  font-size: 20px !important;
}
html.theme-light .status-banner p {
  color: #4b5262 !important;
  font-size: 15px !important;
}
html.theme-light .status-component h3 {
  color: #11141a !important;
  font-size: 18px !important;
}
html.theme-light .status-component p {
  color: #374151 !important;
  font-size: 15px !important;
}
html.theme-light .status-component small {
  color: #6b7280 !important;
  font-size: 14px !important;
}

/* Main / Landing Page Specific Typography */
.product-hero .eyebrow {
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  padding: 6px 18px !important;
}
.product-payments-label {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #8fa69b !important;
}
.payment-badge {
  font-size: 15px !important;
  font-weight: 500 !important;
}
.product-tools > span,
.product-tools-title {
  font-size: 18px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
}
.popular-model-name {
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
}
.popular-model-vendor, .popular-vendor-z, .popular-rate-label, .popular-rate-unit {
  font-size: 15px !important;
}
.popular-banner-text p, .popular-banner-text .banner-link {
  font-size: 16px !important;
}
.feedback-card label {
  font-size: 15px !important;
  font-weight: 600 !important;
}
.feedback-consent, .feedback-consent span, .feedback-consent a, .feedback-success {
  font-size: 15px !important;
}
.feedback-info-content p {
  font-size: 15.5px !important;
}
.feedback-tg-btn {
  font-size: 15px !important;
  font-weight: 500 !important;
}
.retail-table th, .retail-table small, .retail-table .tier-badge, .availability-tag {
  font-size: 15px !important;
}
.service-notice strong, .service-notice p, .service-notice > a {
  font-size: 15px !important;
}

/* Tables, Pagination, Filters, Chips, Buttons */
table th, table td, th, td,
.retail-table th, .retail-table td,
.admin-table th, .admin-table td,
.admin-user-requests td, .admin-rate-table th, .admin-rate-table td {
  font-size: 15px !important;
}
table th small, table td small, td small, .retail-table small, .admin-user-requests td small {
  font-size: 15px !important;
}
.table-detail-link, .table-key-name, .pager span, .pager .btn, .filter-chip, .suggestions button,
.btn, .btn.small, .icon-btn, .page-header .btn, .nav-actions .btn, .app-topbar .btn {
  font-size: 15px !important;
}
.field label, .settings-panel .field label {
  font-size: 15px !important;
  font-weight: 600;
}
.field small, .app-content .field small {
  font-size: 15px !important;
  color: #9d9daa !important;
}
.field input, .field select, .field textarea,
.app-content .field input, .app-content .field select, .app-content .field textarea {
  font-size: 15px !important;
}
.page-header p {
  font-size: 15px !important;
}
.notice, .notice div, .notice p, .empty-state p, .empty-state .btn, .invoice-summary, #toast, .boot, .loading-inline {
  font-size: 15px !important;
}

/* Keys page */
.keys-summary, .key-card>code, .key-spend small, .key-expiry, .key-card>p, .finance-pagination {
  font-size: 15px !important;
}
.key-spend {
  font-size: 15px !important;
}
.key-card-heading .pill {
  border-radius: 6px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 3px 9px !important;
  line-height: 1.4 !important;
}
.key-actions .btn {
  font-weight: 500 !important;
  font-size: 15px !important;
}

/* Chat & Playground */
.chat-toolbar, .chat-usage, .message-label, .composer-foot, .chat-access, .chat-advanced summary,
.settings-price, .settings-price>span, .settings-link, .chat-welcome p {
  font-size: 15px !important;
}
.settings-price strong {
  font-size: 15px !important;
}
.message-text {
  font-size: 15px !important;
  line-height: 1.8;
}

/* Models & Catalog */
.catalog-summary p, .catalog-summary span, .catalog-result-head, .catalog-result-head span,
.catalog-card-price, .catalog-card-price small, .model-type, .model-availability, .model-id code,
.detail-pricing span, .detail-note, .detail-status, .detail-list dt, .detail-list dd, .vendor-badge {
  font-size: 15px !important;
}

.model-availability { color: #9da0b3; line-height: 1.5; }
html.theme-light .model-availability { color: #5e6573; }

/* Connect page */
.connect-steps, .connect-steps li, .connect-steps li>span,
.connect-rate-heading h3, .connect-rate-heading a, .connect-rates dt,
.connect-rate-note, .connect-note, .connect-app small, .connect-meta, .connect-check,
.connect-token-settings summary, .connect-token-settings small, .connect-result,
.connect-preview pre, .connect-instructions p {
  font-size: 15px !important;
}

/* Admin Panel */
.admin-metric>div, .admin-metric>small,
.admin-tabs a, .admin-period button,
.admin-control strong, .admin-control small,
.admin-summary span, .admin-system-summary span,
.admin-table-note, .admin-footnote,
.admin-checks>div, .admin-checks small,
.admin-user-numbers span,
.admin-user-tab-btn, .admin-user-tab-btn .pill,
.admin-ledger-filter-btn, .admin-ledger-filter-btn .pill,
.admin-ledger-table th, .admin-ledger-table td,
.ledger-badge, .ledger-amount, .ledger-desc, .ledger-date,
.admin-user-id-chip,
.admin-user-ledger div, .admin-user-ledger small,
.admin-user-link, .admin-billing-checks>div,
.admin-billing-checks dt, .admin-billing-checks dd {
  font-size: 15px !important;
}

/* Images & Video workspace & miscellaneous */
.image-specs span, .image-request-id, .image-price-list small, .image-price-list span,
.image-form-note, .image-upload-note, .image-reference-label, .image-reference-label small,
.image-result-note, .image-empty p, .image-progress, .image-reference-preview strong,
.image-reference-preview small, .image-reference-preview .btn,
.chat-history-open span, #chat-history-status, .vision-controls, .video-card>span,
.video-select-dropdown, .video-window-info .video-model-badge, .video-window-info .video-meta-params,
.video-window-info .video-date, .video-nav-pos, .video-window-prompt, .video-empty-state p,
.video-processing-info p, .video-failed-box .detail-note, .video-form-note, .video-specs > span,
.pricing-layout .budget-panel p, .budget-presets .filter-chip,
.pricing-caption span, .pricing-help, .pricing-footnote,
.help-shortcuts p, .help-questions p, .help-contact p, .help-links a {
  font-size: 15px !important;
}

@media(min-width:1101px) and (max-height:850px){
  .pricing-layout .budget-panel{padding:16px}
  .pricing-layout .field{margin-bottom:8px}
  .pricing-layout .budget-total{padding-top:12px}
  .app-content[data-page=pricing] .page-header{margin-bottom:16px}
}

@media(max-width:650px){
  .app-footer,.product-footer{gap:16px}
  .footer-links,.landing-footer .footer-links{justify-content:flex-start;gap:10px 18px}
  .app-footer a,.product-footer a,.landing-footer .footer-links a,.footer-links a{min-height:36px}
  .field input,.field select,.field textarea,
  .app-content .field input,.app-content .field select,.app-content .field textarea{font-size:15px !important}
  .app-shell .composer-foot{flex-wrap:wrap;gap:4px 12px}
  .topnav-account .user-email{display:none}
  .topnav-account{padding:4px}
}

/* Landing page readability & typography standards */
.product-landing .topnav .nav-links a {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #cfded8 !important;
}
.product-landing .topnav .nav-links a:hover {
  color: #ffffff !important;
}
.product-landing .topnav .topnav-account {
  font-size: 15px !important;
}
.product-landing .topnav .topnav-account .user-email {
  font-size: 15px !important;
}
.product-landing .topnav .btn {
  font-size: 15px !important;
  font-weight: 550 !important;
}
.product-landing .eyebrow {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: fit-content !important;
  font-size: 15px !important;
  letter-spacing: 2px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
}
.product-landing .product-section .eyebrow,
.product-landing .product-section-head .eyebrow {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}
.product-landing .product-hero h1 {
  font-size: clamp(36px, 4.1vw, 56px) !important;
  text-align: center !important;
  color: #ffffff !important;
  max-width: 840px !important;
  margin-inline: auto !important;
}
.product-landing .product-hero h1 .hero-highlight {
  color: #9aefd2 !important;
}
.product-landing .product-hero-copy > p {
  font-size: 18px !important;
  line-height: 1.75 !important;
  color: #b9cbc4 !important;
  text-align: center !important;
  max-width: 660px !important;
  margin-inline: auto !important;
}
.product-landing .product-hero-actions {
  justify-content: center !important;
}
.product-landing .product-hero-actions .btn.big {
  font-size: 16px !important;
  font-weight: 500 !important;
}
.product-landing .product-benefits {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #a8bcb3 !important;
  justify-content: flex-start !important;
  gap: 24px !important;
  margin-top: 24px !important;
}
.product-landing .product-benefits > span {
  font-size: 15px !important;
  gap: 8px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #a8bcb3 !important;
}
.product-landing .product-benefits .icon {
  width: 16px !important;
  height: 16px !important;
  color: var(--accent) !important;
}
.product-landing .product-payments {
  justify-content: flex-start !important;
  gap: 16px !important;
  margin-top: 20px !important;
}
@media (max-width: 1100px) {
  .product-landing .product-hero h1 {
    text-align: center !important;
  }
  .product-landing .product-hero-copy > p {
    text-align: center !important;
  }
  .product-landing .product-hero-actions,
  .product-landing .product-benefits,
  .product-landing .product-payments {
    justify-content: center !important;
  }
}
.product-landing .product-payments-label {
  font-size: 15px !important;
  color: #8fa49a !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}
.product-landing .product-payments-badges {
  gap: 10px !important;
}
.product-landing .payment-badge {
  font-size: 15px !important;
  font-weight: 550 !important;
  padding: 8px 16px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25) !important;
  color: #d8e5df !important;
  gap: 9px !important;
  white-space: nowrap !important;
  cursor: default !important;
}
.product-landing .product-tools > span,
.product-landing .product-tools-title {
  font-size: 18px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}
.product-landing .product-tools > div {
  font-size: 15.5px !important;
  color: #d2ded9 !important;
}
.product-landing .product-section h2,
.product-landing .product-callout h2,
.product-landing .budget-panel h2 {
  font-size: 32px !important;
}
.product-landing .product-section-head p {
  font-size: 16px !important;
  color: #a2b5ad;
}
html.theme-light .product-landing .product-section-head p,
html.theme-light .product-section-head p {
  color: #5e6573 !important;
}
.product-landing .retail-table th {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #a8bbb2 !important;
}
.product-landing .retail-table td {
  font-size: 15.5px !important;
}
.product-landing .retail-table td:first-child strong {
  font-size: 16px !important;
}
.product-landing .retail-table small {
  font-size: 15px !important;
  color: #92a89f !important;
}
.product-landing .retail-table .mono {
  font-size: 15.5px !important;
}
.product-landing .product-start article > span {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--accent) !important;
}
.product-landing .product-start h3 {
  font-size: 20px !important;
  font-weight: 600 !important;
}
.product-landing .product-start p {
  font-size: 15.5px !important;
  line-height: 1.8 !important;
  color: #a6b9b1 !important;
}
.product-landing .reviews-slider .review-title {
  font-size: 18px !important;
  font-weight: 600 !important;
}
.product-landing .reviews-slider .review-text {
  font-size: 15.5px !important;
  line-height: 1.75 !important;
  color: #c4d4ce !important;
}
.product-landing .reviews-slider .review-author-info strong {
  font-size: 15.5px !important;
  font-weight: 600 !important;
}
.product-landing .reviews-slider .review-author-info small {
  font-size: 15px !important;
  color: #92a89f !important;
}
.product-landing .reviews-slider .review-score {
  font-size: 15px !important;
}
.product-landing .product-callout p {
  font-size: 16px !important;
  color: #b2c2bc !important;
}
.product-landing .product-faq summary {
  font-size: 17px !important;
  font-weight: 500 !important;
  color: #e4eee9 !important;
}
.product-landing .product-faq p {
  font-size: 15.5px !important;
  line-height: 1.8 !important;
  color: #b2c2bc !important;
}
.product-landing .product-footer {
  font-size: 15px !important;
}
.product-landing .product-footer span {
  font-size: 15px !important;
}

/* Calculator & Pricing Readability & Layout Polish */
.app-content[data-page=pricing] .retail-table,
.pricing-layout .retail-table,
.retail-table {
  max-height: none !important;
  overflow: hidden !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border-radius: 24px !important;
}

.pricing-layout .retail-table table,
.app-content[data-page=pricing] .retail-table table,
.retail-table table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.pricing-layout .retail-table thead tr:first-child th:first-child,
.app-content[data-page=pricing] .retail-table thead tr:first-child th:first-child,
.retail-table thead tr:first-child th:first-child {
  border-top-left-radius: 23px !important;
}

.pricing-layout .retail-table thead tr:first-child th:last-child,
.app-content[data-page=pricing] .retail-table thead tr:first-child th:last-child,
.retail-table thead tr:first-child th:last-child {
  border-top-right-radius: 23px !important;
}

.pricing-layout .retail-table tbody tr:last-child td:first-child,
.app-content[data-page=pricing] .retail-table tbody tr:last-child td:first-child,
.retail-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 23px !important;
}

.pricing-layout .retail-table tbody tr:last-child td:last-child,
.app-content[data-page=pricing] .retail-table tbody tr:last-child td:last-child,
.retail-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 23px !important;
}
.pricing-layout .retail-table th {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #c5d5cf !important;
}
.pricing-layout .retail-table td {
  font-size: 15px !important;
  color: #cfded8 !important;
}
.pricing-layout .rate-model {
  font-size: 15.5px !important;
  font-weight: 600 !important;
}
.pricing-layout .table-model-text small {
  font-size: 15px !important;
  color: #98a2ad !important;
}
.pricing-layout .table-model-text .tier-badge {
  font-size: 15px !important;
  color: #a4afbc !important;
}
.pricing-layout .pricing-caption p,
.pricing-layout .pricing-subcaption p {
  font-size: 15px !important;
  color: #9da2af !important;
}
.pricing-layout .pricing-caption > span,
.pricing-layout .pricing-subcaption > span {
  font-size: 15px !important;
  color: #848997 !important;
}
.pricing-layout .budget-panel h2 {
  font-size: 22px !important;
}
.pricing-layout .budget-panel p {
  font-size: 15px !important;
}
.pricing-layout .field label {
  font-size: 15px !important;
  font-weight: 600 !important;
}

/* ─────────────────────────────────────────────────────────────
   Universal Typography Guardrails: Forms, Chips & Notes
   Enforces readability standards across all pages & media queries
   ───────────────────────────────────────────────────────────── */
.prompt-chip {
  font-size: 15px !important;
  line-height: 1.4 !important;
}

.video-upload-note,
.image-upload-note {
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #9da0b3 !important;
}

.video-quote-card .detail-note,
.image-form-note,
.video-footer-note,
.video-prices .detail-note,
.image-prices .detail-note,
.detail-note {
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #9da0b3 !important;
}

.billing-note {
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #9da0b3 !important;
}

.usage-table thead th {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #9da0b3 !important;
}

.usage-table tbody td {
  font-size: 15px !important;
}

.usage-source-badge {
  font-size: 15px !important;
  padding: 4px 10px !important;
}

.usage-col-date {
  font-size: 15px !important;
  color: #9da0b3 !important;
}

.usage-col-tokens {
  font-family: var(--mono) !important;
  font-size: 15px !important;
  color: #c4c4d6 !important;
}

.usage-col-status .status-label {
  font-size: 15px !important;
  padding: 4px 10px !important;
}

.usage-col-cost .table-subtext {
  font-size: 15px !important;
}

.connect-app small,
.connect-heading .mono,
.connect-meta,
.connect-note,
.connect-token-settings small,
.connect-token-note,
.connect-result,
.connect-instructions p,
.connect-rate-note {
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #9da0b3 !important;
}

.connect-preview .connect-heading .mono,
#connect-file {
  font-size: 15px !important;
  line-height: 1.4 !important;
  margin: 4px 0 0 0 !important;
  color: #c4c4d4 !important;
}

.connect-check,
.connect-token-settings summary,
.connect-token-settings > summary,
.connect-advanced summary,
.connect-advanced > summary {
  font-size: 15px !important;
  font-weight: 550 !important;
  color: #e2e2ea !important;
}

.connect-token-settings summary:hover,
.connect-token-settings > summary:hover,
.connect-advanced summary:hover,
.connect-advanced > summary:hover {
  color: #ffffff !important;
}

.connect-preview pre,
.connect-preview code {
  font-size: 15px !important;
  line-height: 1.75 !important;
  color: #d4e5dc !important;
}

.dur-preset {
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 5px 12px !important;
}

.ratio-chip {
  min-height: 54px !important;
}

.ratio-chip strong {
  font-size: 15px !important;
}

.ratio-chip small {
  font-size: 15px !important;
}

/* ─────────────────────────────────────────────────────────────
   Absolute Minimum 15px Hard Floor: Universal Protection
   Guarantees no component, label, subtext or note drops below 15px
   ───────────────────────────────────────────────────────────── */
small, sub, sup, caption, legend {
  font-size: 15px !important;
}

.message-avatar,
.message-copy,
.chat-usage,
.stream-dots,
.composer-sub-row,
.composer-sub-row button,
.chat-model-option small,
.chat-model-vendor-badge,
.answer-code > div,
.answer-code > div span,
.answer-code > div .icon-btn,
.attachment-error,
.chat-history-sidebar,
.chat-history-item,
.chat-history-title,
.chat-history-date,
.chat-history-del,
.chat-history-empty,
#chat-history-status,
.popular-vendor-z,
.popular-rate-unit,
.connect-picker summary small,
.connect-picker summary em,
.picker-change,
.pricing-category-tabs .filter-chip small,
.admin-access-label,
.admin-tabs a,
.admin-period button,
.admin-chart-axis,
.admin-no-activity,
.admin-control strong,
.admin-control small,
.admin-summary span,
.admin-table td,
.admin-table td small,
.admin-table td strong,
.admin-user-link,
.admin-status,
.admin-footnote,
.admin-system-summary span,
.admin-table-note,
.admin-checks small,
.admin-user-numbers span,
.admin-user-ledger div,
.admin-user-ledger small,
.admin-user-requests td,
.admin-user-requests td small,
.admin-rate-table,
.admin-billing-checks > div,
.image-ratio-btn,
.image-history-item,
.image-history-card,
.image-history-date,
.image-history-size,
.image-history-model,
.video-preset,
.video-aspect-ratio,
.video-status,
.video-cost-note,
.setup-number,
.picker-change,
.connect-instructions a,
.connect-token-settings summary,
.connect-advanced summary,
.connect-check,
.settings-choice-card,
.settings-choice-info strong,
.settings-choice-info small,
.video-meta-params,
.video-model-badge,
.video-id-subtle,
.video-id-subtle .video-date,
.video-id-subtle .video-id {
  font-size: 15px !important;
}

.setup-number {
  font-weight: 500 !important;
}

/* Table Edge Padding: prevent first column from sticking to the container edge */
table th:first-child,
table td:first-child,
.table-wrap th:first-child,
.table-wrap td:first-child,
.invoices-table th:first-child,
.invoices-table td:first-child,
.ledger-table th:first-child,
.ledger-table td:first-child {
  padding-left: 18px !important;
}

table th:last-child,
table td:last-child,
.table-wrap th:last-child,
.table-wrap td:last-child,
.invoices-table th:last-child,
.invoices-table td:last-child,
.ledger-table th:last-child,
.ledger-table td:last-child {
  padding-right: 18px !important;
}

/* Video Studio Readability Enforcement: >= 15px */
.video-workspace,
.video-creator-panel,
.video-history-panel,
.video-segment-btn,
.video-segmented-group,
.video-spec-cell,
.video-spec-cell .spec-label,
.video-form-note,
.video-upload-note,
.video-reference-label,
.video-reference-meta strong,
.video-reference-meta small,
.video-remove-ref-btn,
.video-overlay-pill,
.video-overlay-date,
.video-stage-prompt-card,
.video-stage-prompt-card .prompt-content,
.video-stage-prompt-card .prompt-label,
.video-stage-prompt-card .prompt-text,
.video-filmstrip-head .filmstrip-title,
.video-filmstrip-head .filmstrip-hint,
.filmstrip-counter,
.filmstrip-nav-btn,
.video-filmstrip-card,
.filmstrip-card-model,
.filmstrip-card-meta-row,
.filmstrip-card-thumb .filmstrip-thumb-dur,
.video-nav-pos,
.seo-crawler-nav,
.seo-crawler-nav a,
.noscript-panel,
.noscript-panel p,
.noscript-panel a {
  font-size: 15px !important;
}

.seo-page-h1 {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #f4f4f6 !important;
}

/* API & Code Snippet Dialog: Wide on desktop PC to eliminate horizontal code scrolling */
dialog.api-dialog,
dialog:has(.code-box) {
  width: 820px !important;
  max-width: min(860px, calc(100vw - 32px)) !important;
  box-sizing: border-box !important;
}
@media (max-width: 860px) {
  dialog.api-dialog,
  dialog:has(.code-box) {
    width: 100% !important;
    max-width: calc(100vw - 20px) !important;
    padding: 22px 16px !important;
  }
}

/* Settings Flag Sizing & Alignment */
.settings-choice-icon .currency-flag-svg,
.settings-choice-icon .lang-flag-svg,
.settings-choice-flag svg,
.settings-choice-flag img {
  width: 26px !important;
  height: 17px !important;
  border-radius: 2px !important;
  display: block !important;
  object-fit: cover !important;
}
/* Code Disclosure & Details */
.code-disclosure > summary {
  font-size: 15px !important;
  font-weight: 500 !important;
}

/* Settings Currency Badge */
.settings-choice-badge {
  font-size: 16px !important;
  font-weight: 500 !important;
  font-family: 'Golos Text', 'Manrope', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Pricing text font-weight */
.video-spec-cell strong,
#video-quote-per-sec,
#video-quote-total,
.image-specs strong {
  font-weight: 500 !important;
  font-family: 'Golos Text', 'Manrope', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Custom Select Typography & Spacing Enforcement (>= 15px) */
.custom-select-trigger,
.custom-select-trigger-text,
.custom-select-option,
.custom-select-option strong,
.custom-select-option small,
.custom-select-option-badge {
  font-size: 15px !important;
}

.custom-select-option {
  padding: 6px 10px !important;
  min-height: 32px !important;
  line-height: 1.35 !important;
}

.custom-select-option strong {
  line-height: 1.35 !important;
}

.custom-select-list {
  gap: 2px !important;
  padding: 2px !important;
}

/* Page Header & Actions: Unified sizing across Chat, Images, Videos, and Audio */
[data-page=playground] .page-header.chat-header,
[data-page=images] .page-header.chat-header,
[data-page=videos] .page-header.chat-header,
[data-page=audio] .page-header.chat-header,
[data-page=speech] .page-header.chat-header,
[data-page=playground] .chat-header,
[data-page=images] .chat-header,
[data-page=videos] .chat-header,
[data-page=audio] .chat-header,
[data-page=speech] .chat-header,
[data-page=images] .page-header,
[data-page=videos] .page-header,
[data-page=audio] .page-header,
[data-page=speech] .page-header,
.page-header.chat-header,
.chat-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  min-height: 56px !important;
  padding: 12px 0 !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  gap: 16px !important;
  box-sizing: border-box !important;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.07)) !important;
}

[data-page=images] .page-header h1,
[data-page=videos] .page-header h1,
[data-page=audio] .page-header h1,
[data-page=speech] .page-header h1 {
  font-size: 26px !important;
  letter-spacing: -0.8px !important;
  font-weight: 600 !important;
  color: var(--text, #f4f4f6) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

[data-page=images] .page-header .btn,
[data-page=videos] .page-header .btn,
[data-page=audio] .page-header .btn,
[data-page=speech] .page-header .btn {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #e2e2e8 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-page=images] .page-header .btn:hover:not(:disabled),
[data-page=videos] .page-header .btn:hover:not(:disabled),
[data-page=audio] .page-header .btn:hover:not(:disabled),
[data-page=speech] .page-header .btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

/* Page Header Subtitles & Descriptions (Enforce 16px, Rule 1) */
.page-header p,
.settings-section .panel-title-wrap .section-description {
  font-size: 16px !important;
  color: #9da0b3 !important;
  line-height: 1.55 !important;
  margin-top: 6px !important;
  max-width: none !important;
}

/* Category Tabs (Catalog & Models): Sleek pill layout, fits seamlessly without clipping */
.catalog-category-bar {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 4px 0 16px !important;
  margin-bottom: 16px !important;
  overflow: visible !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.category-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.category-tab-label {
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.category-tab .icon {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

.category-tab-count {
  font-family: inherit !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 1px 7px !important;
  border-radius: 999px !important;
  min-width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Specs Row: Remove nested container styling, unify card cells for video and image */
.video-specs,
.image-specs {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin: 10px 0 12px !important;
}

.video-spec-cell,
.image-specs > span {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 9px !important;
  padding: 8px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  box-sizing: border-box !important;
}

.video-spec-cell .spec-label,
.image-specs > span {
  color: #9da0b3 !important;
  font-size: 15px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.video-spec-cell strong,
#video-quote,
#video-quote-per-sec {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #f4f4f6 !important;
  font-family: 'Golos Text', 'Manrope', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.image-specs > span strong,
.image-specs strong {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #f4f4f6 !important;
  font-family: 'Golos Text', 'Manrope', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.image-settings,
.image-history-panel,
.image-result,
.video-creator-panel,
.video-history-panel {
  border-radius: var(--radius) !important;
}

/* Image Studio: Remove card drop-shadow */
.image-card,
.image-player-frame {
  box-shadow: none !important;
}

/* Video Filmstrip: Increase scrollbar breathing room */
.video-filmstrip-track {
  padding: 4px 4px 14px !important;
}

/* Standard UI Font enforcement: Replace monospace with standard font on all badges, pills, metrics & chart labels */
.pill,
.panel-head .pill,
.chat-header .pill,
.chat-toolbar .pill,
.payment-method .pill,
.model-heading .pill,
.catalog-card .pill,
.status-label,
.status-component .pill,
.key-card-heading .pill,
.video-overlay-status .pill,
.count-pill,
.tier-badge,
.vendor-badge,
.vendor-monogram,
.category-tab-count,
.chart-bar label,
.chart-empty,
.range-labels,
.range-caption strong,
.topbar-balance,
.currency-toggle,
.lang-toggle,
.eyebrow,
.hero-badge span,
.workspace-label,
.side-nav .nav-tag,
.detail-pricing strong,
.detail-estimate output,
.metric-foot,
.metric-top,
.metric-top span,
.metric-value,
.catalog-card-price strong,
.catalog-card-price small,
.connect-steps li > span {
  font-family: 'Golos Text', 'Manrope', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  letter-spacing: normal !important;
}

/* Query Activity Dashboard Card (Активность запросов) */
.dashboard-grid .panel-head h2 {
  font-size: 18px !important;
  font-weight: 600 !important;
}

.dashboard-grid .panel-head p {
  font-size: 15px !important;
  color: #9da0b3 !important;
  line-height: 1.5 !important;
  margin-top: 4px !important;
}

.chart {
  height: 210px !important;
  padding-top: 15px !important;
}

.bar-track {
  height: 155px !important;
}

.chart-bar label {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #9da0b3 !important;
  margin-top: 6px !important;
}

.chart-empty {
  font-size: 15px !important;
  color: #9da0b3 !important;
}

.pill,
.panel-head .pill {
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 6px 14px !important;
  line-height: 1.3 !important;
  border-radius: 8px !important;
}

/* Image creation button: clean flat accent without glow/shadow */
.image-settings .btn.primary.wide,
.image-settings .btn.primary.wide:hover,
.image-settings .btn.primary.wide:active,
.image-settings .btn.primary.wide:focus,
#image-form .btn.primary:not(.send-btn),
#image-form .btn.primary:hover,
#image-form .btn.primary:active,
#image-form .btn.primary:focus,
html.theme-light .image-settings .btn.primary.wide,
html.theme-light .image-settings .btn.primary.wide:hover,
html.theme-light .image-settings .btn.primary.wide:active,
html.theme-light .image-settings .btn.primary.wide:focus,
html.theme-light #image-form .btn.primary:not(.send-btn),
html.theme-light #image-form .btn.primary:hover,
html.theme-light #image-form .btn.primary:active,
html.theme-light #image-form .btn.primary:focus {
  box-shadow: none !important;
}

/* Code headers and containers in Light Theme: no dark plates, black text */
html.theme-light .code-box,
html.theme-light .answer-code {
  background: #ffffff !important;
  border-color: #d5d9e0 !important;
}

html.theme-light .code-head,
html.theme-light .answer-code > div {
  background: #f7f8fa !important;
  border-bottom-color: #e3e6eb !important;
  color: #11141a !important;
}

html.theme-light .code-head span,
html.theme-light .code-head strong,
html.theme-light .answer-code > div span {
  color: #11141a !important;
  font-weight: 500 !important;
}

html.theme-light .code-box pre,
html.theme-light .answer-code pre {
  background: #ffffff !important;
  border-color: transparent !important;
  color: #11141a !important;
}

html.theme-light .code-box pre code,
html.theme-light .answer-code pre code {
  color: #11141a !important;
}

/* Currency font-weight normalization (no excessive bolding on active selection in light or dark theme) */
.currency-option,
.currency-option-code,
.currency-option-symbol,
.lang-option,
.lang-option-code,
.lang-option-name,
.currency-option.active .currency-option-code,
.currency-option.is-active .currency-option-code,
html.theme-light .currency-option.active .currency-option-code,
html.theme-light .currency-option.is-active .currency-option-code {
  font-weight: 500 !important;
}

/* Master Universal Border-Radius Standard (8px strictly across all tabs, panels, cards, dialogs, and controls) */
:root {
  --radius: 8px !important;
}

.panel,
.chat-panel,
.metric,
.admin-metric,
.admin-tabs,
.admin-summary,
.admin-system-summary,
.admin-user-numbers,
.dashboard-grid .panel,
.quickstart,
.code-box,
.answer-code,
.connect-app,
.connect-fields,
.connect-preview,
.connect-price,
.connect-picker,
.catalog-card,
.popular-model-card,
.popular-models-banner,
.product-callout,
.budget-panel,
.pricing-layout .budget-panel,
.retail-table,
.pricing-layout .retail-table,
.product-demo,
.feedback-card,
.feedback-info-card,
.feedback-info-visual,
.settings-section,
.settings-choice-card,
.settings-account-box,
.image-settings,
.image-history-panel,
.image-result,
.image-card,
.image-player-frame,
.image-player-frame img,
.image-empty-state,
.image-empty-state .image-empty-icon,
.image-lightbox-viewport,
.image-lightbox-img,
.image-processing-placeholder,
.image-failed-box,
.video-creator-panel,
.video-history-panel,
.video-window-panel,
.video-stage-frame,
.video-card,
.video-empty-state,
.video-empty-icon,
.video-reference-preview,
.video-reference-preview img,
.image-reference-preview,
.image-reference-preview > img,
dialog,
dialog.chat-history-dialog,
dialog.model-dialog,
dialog.admin-dialog,
/* Dialogs & Dropdowns */
.auth-dialog,
.chat-history-dialog,
.chat-model-dropdown,
.currency-dropdown,
.lang-dropdown,
.custom-select-dropdown {
  border-radius: 24px !important;
}

/* Panels, Cards & Boxes */
.side-promo,
.empty-state,
.empty-page-error,
.attachment-card,
.chat-photo,
.chat-photos .chat-photo,
.chat-doc-card,
.notice {
  border-radius: 20px !important;
}

/* User Message bubble */
.chat-focused .message.user .message-text {
  border-radius: 20px !important;
}

/* Inputs & Textareas */
#video-prompt,
#image-prompt,
#video-model,
#image-model {
  border-radius: 16px !important;
}

/* Pills, Buttons, Chips */
#toast,
.chat-role-chip,
.prompt-chip,
.filter-chip,
.status-pill,
.ratio-chip,
.category-tab-count,
.welcome-bonus-pill,
.topbar-balance,
.currency-toggle,
.lang-toggle,
.btn-payment-method,
.chat-history-item,
.chat-focused .suggestions button,
.image-settings .btn.primary.wide,
#image-form .btn.primary:not(.send-btn),
.video-submit-btn,
#video-form .btn.primary,
.image-download-btn,
.image-copy-btn,
.image-reuse-btn,
.feedback-submit-btn,
.feedback-tg-btn,
.chat-model-trigger {
  border-radius: 999px !important;
}

/* Mobile-toggle: Strictly Hidden on Desktop (>=901px), Visible on Mobile (<=900px) */
@media (min-width: 901px) {
  .mobile-toggle,
  .app-topbar .mobile-toggle,
  header.app-topbar .mobile-toggle {
    display: none !important;
  }
}

/* Mobile Topbar & Header Standards */
@media (max-width: 900px) {
  .theme-toggle,
  .app-shell .theme-toggle,
  .app-topbar .theme-toggle,
  .topnav-actions .theme-toggle,
  .app-shell-theme-toggle {
    display: none !important;
  }
  .topbar-news-link {
    display: none !important;
  }
  .mobile-toggle,
  .app-topbar .mobile-toggle,
  header.app-topbar .mobile-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
  }
  .app-topbar .btn.small[data-action=login],
  .app-topbar .btn[data-action=login],
  .app-topbar .topbar-login-btn,
  .app-shell .currency-toggle,
  .app-shell .topbar-balance {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    font-size: 15px !important;
    border-radius: 999px !important;
  }
  .app-topbar .icon-btn,
  .app-topbar .avatar {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
  }
}

@media (max-width: 800px) {
  .product-landing .topnav .btn,
  .topnav-actions > .btn,
  .topnav-actions .topnav-login-btn,
  .topnav-login-btn,
  .topnav .btn {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    font-weight: 550 !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }
  .topnav-actions > .btn .icon,
  .topnav-actions .topnav-login-btn .icon,
  .topnav-login-btn .icon {
    display: none !important;
  }
  .topnav-actions .currency-toggle,
  .topnav-actions .lang-toggle {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 12px !important;
    font-size: 15px !important;
    border-radius: 999px !important;
  }
  .landing-mobile-nav summary {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
  }
  .landing-mobile-nav[open] nav {
    background: #0c0d0e !important;
    border: 1px solid var(--line, rgba(255, 255, 255, 0.08)) !important;
    border-radius: 20px !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6) !important;
  }
  .landing-mobile-nav nav a {
    border-radius: 12px !important;
  }
  .landing-mobile-nav nav a:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
  }
  .landing-mobile-nav[open] summary {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
  }
}

/* Help FAQ question summary typography */
.help-questions summary {
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: var(--text, #f4f4f6) !important;
  cursor: pointer !important;
  transition: color 0.15s ease !important;
}
.help-questions summary:hover {
  color: #9aefd2 !important;
}
.help-questions details[open] summary {
  margin-bottom: 8px !important;
}
.help-questions p {
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #c4c4d4 !important;
}

/* Light theme FAQ */
html.theme-light .help-questions summary {
  color: #11141a !important;
}
html.theme-light .help-questions summary:hover {
  color: #0d8a68 !important;
}
html.theme-light .help-questions p {
  color: #333742 !important;
}

/* Danger action buttons */
.danger-btn,
.video-delete-btn,
.image-delete-btn {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.28) !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}
.danger-btn:hover:not(:disabled),
.video-delete-btn:hover:not(:disabled),
.image-delete-btn:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.24) !important;
  color: #fff !important;
  border-color: rgba(239, 68, 68, 0.55) !important;
}
html.theme-light .danger-btn,
html.theme-light .video-delete-btn,
html.theme-light .image-delete-btn {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #dc2626 !important;
  border: 1px solid rgba(239, 68, 68, 0.22) !important;
}
html.theme-light .danger-btn:hover:not(:disabled),
html.theme-light .video-delete-btn:hover:not(:disabled),
html.theme-light .image-delete-btn:hover:not(:disabled) {
  background: #dc2626 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

/* Video retention notices & badges */
.video-form-note,
.video-retention-notice,
.video-retention-badge,
.video-overlay-pill.video-retention-pill {
  font-size: 15px !important;
}

/* Models ticker typography guarantee */
.models-ticker-caption {
  font-size: 15px !important;
}
.model-ticker-name {
  font-size: 19px !important;
}
@media (max-width: 500px) {
  .models-ticker-caption {
    font-size: 13px !important;
    letter-spacing: .05em !important;
    margin-bottom: 16px !important;
  }
  .model-ticker-name {
    font-size: 16px !important;
  }
}

/* News feed typography guarantee (AGENTS.md) */
.news-card-meta {
  font-size: 15px !important;
}
.news-card-tag {
  font-size: 15px !important;
  font-weight: 550 !important;
}
.news-card-date {
  font-size: 15px !important;
}
.news-card-title {
  font-size: 18px !important;
  line-height: 1.45 !important;
}
@media (max-width: 800px) {
  .news-card-title {
    font-size: 17px !important;
  }
}

/* Full-width header layout pinning logo left at 27px, strictly centering nav-links at 50vw, and pinning profile right at 36px */
.product-landing .topnav,
.welcome-screen .topnav,
.topnav {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  z-index: 1000 !important;
  box-sizing: border-box !important;
  justify-content: stretch !important;
}

.product-landing .topnav-inner,
.welcome-screen .topnav-inner,
.topnav-inner {
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
}

.product-landing .topnav-inner > .logo,
.welcome-screen .topnav-inner > .logo,
.topnav-inner > .logo {
  grid-column: 1 !important;
  justify-self: start !important;
  padding-left: 27px !important;
  display: inline-flex !important;
  align-items: center !important;
}

.product-landing .topnav-inner > .nav-links,
.welcome-screen .topnav-inner > .nav-links,
.topnav-inner > .nav-links {
  grid-column: 2 !important;
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 32px !important;
  white-space: nowrap !important;
}

.product-landing .topnav-inner > .topnav-actions,
.welcome-screen .topnav-inner > .topnav-actions,
.topnav-inner > .topnav-actions {
  grid-column: 3 !important;
  justify-self: end !important;
  padding-right: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
  min-width: max-content !important;
}

@media (max-width: 1200px) and (min-width: 801px) {
  .product-landing .topnav-inner > .logo,
  .welcome-screen .topnav-inner > .logo,
  .topnav-inner > .logo {
    padding-left: 20px !important;
  }
  .product-landing .topnav-inner > .topnav-actions,
  .welcome-screen .topnav-inner > .topnav-actions,
  .topnav-inner > .topnav-actions {
    padding-right: 36px !important;
    gap: 10px !important;
  }
}

@media (max-width: 800px) {
  .product-landing .topnav-inner,
  .welcome-screen .topnav-inner,
  .topnav-inner {
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 16px !important;
  }
  .product-landing .topnav-inner > .logo,
  .welcome-screen .topnav-inner > .logo,
  .topnav-inner > .logo {
    padding-left: 0 !important;
  }
  .product-landing .topnav-inner > .nav-links,
  .welcome-screen .topnav-inner > .nav-links,
  .topnav-inner > .nav-links {
    display: none !important;
  }
  .product-landing .topnav-inner > .topnav-actions,
  .welcome-screen .topnav-inner > .topnav-actions,
  .topnav-inner > .topnav-actions {
    padding-right: 0 !important;
  }
}

/* Models catalog: provider rail, toolbar with sort switch, provider groups (AGENTS.md §1, §6, §7) */
.catalog-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-top: 0 !important;
  border-top: none !important;
}

.catalog-layout.no-rail {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-main {
  min-width: 0;
}

/* Provider rail: a quiet vertical list instead of a wall of chips */
.provider-rail {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.provider-rail-title {
  padding: 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #9da0b3;
}

.provider-filter {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.provider-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #c4c4d6;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}

.provider-chip:not(:disabled):hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.provider-chip.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #f4f4f6;
}

.provider-chip:disabled {
  opacity: .4;
  cursor: default;
}

.provider-chip-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-chip > .icon {
  width: 18px;
  height: 18px;
  margin: 0 1px;
  color: #9da0b3;
}

.provider-chip.active > .icon {
  color: #f4f4f6;
}

.provider-chip .vendor-logo {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 0;
  background: none;
  backdrop-filter: none;
}

.provider-chip .vendor-logo:hover {
  transform: none;
}

.provider-chip-count {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: #9da0b3;
}

.provider-chip.active .provider-chip-count {
  color: #f4f4f6;
}

/* Toolbar: search + segmented sort in one row */
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.catalog-toolbar .model-search {
  flex: 1;
  min-width: 180px;
  margin: 0;
}

.catalog-toolbar .model-search input {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
}

/* Catalog Toolbar Layout & Spacing */
.catalog-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
  margin-bottom: 20px !important;
}

.catalog-capability-bar {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-bottom: 22px !important;
}

/* Catalog Top Toolbar Row */
.catalog-top-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  margin-bottom: 20px !important;
}

/* Catalog Menus: Capability & Sort Pills */
.catalog-toolbar .catalog-capability-menu,
.catalog-toolbar .catalog-sort-menu {
  width: auto !important;
  min-width: 0 !important;
  flex-shrink: 0 !important;
}

.catalog-toolbar .catalog-capability-menu .custom-select-trigger,
.catalog-toolbar .catalog-sort-menu .custom-select-trigger {
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  padding: 0 16px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--line) !important;
  color: #eaeaec !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.catalog-toolbar .catalog-capability-menu .custom-select-trigger-text,
.catalog-toolbar .catalog-sort-menu .custom-select-trigger-text {
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #eaeaec !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.catalog-toolbar .custom-select-chevron {
  width: 12px !important;
  height: 12px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  margin-left: 2px !important;
}

.catalog-toolbar .catalog-capability-menu .custom-select-trigger:hover,
.catalog-toolbar .catalog-sort-menu .custom-select-trigger:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.catalog-toolbar .catalog-capability-menu .custom-select-dropdown,
.catalog-toolbar .catalog-sort-menu .custom-select-dropdown {
  min-width: 220px !important;
  border-radius: 16px !important;
}

/* Catalog Favorite Button Pill */
.catalog-fav-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #eaeaec !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.catalog-fav-btn > span {
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #eaeaec !important;
}

.catalog-fav-btn .fav-icon {
  width: 16px !important;
  height: 16px !important;
  color: #888896 !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
}

.catalog-fav-btn:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.catalog-fav-btn:hover .fav-icon {
  color: #f59e0b !important;
}

.catalog-fav-btn.active {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #f59e0b !important;
}

.catalog-fav-btn.active .fav-icon {
  color: #f59e0b !important;
  fill: #f59e0b !important;
}

.catalog-fav-btn .fav-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #c4c4d6 !important;
}

.catalog-fav-btn.active .fav-badge {
  background: rgba(245, 158, 11, 0.25) !important;
  color: #f59e0b !important;
}

/* Provider Rail Collapsible Styles */
.provider-extra-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.provider-extra-list[hidden] {
  display: none !important;
}

.provider-rail-toggle-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 8px 10px !important;
  margin-top: 6px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--muted, #94a3b8) !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.provider-rail-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border: none !important;
  color: var(--text, #fff) !important;
}

.provider-toggle-chevron {
  width: 14px !important;
  height: 14px !important;
  transition: transform 0.2s ease !important;
  flex-shrink: 0 !important;
}

.provider-toggle-chevron.is-expanded {
  transform: rotate(180deg) !important;
}

.sort-switch {
  display: inline-flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.sort-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #c4c4d6;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}

.sort-chip:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.sort-chip.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #f4f4f6;
}

.provider-chip:focus-visible,
.sort-chip:focus-visible {
  outline: 2px solid #9aefd2;
  outline-offset: 2px;
}

[data-page=models] .catalog-main .catalog-result-head {
  margin: 14px 0 16px;
}

.catalog-result-summary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  font-size: 15px;
  color: #e2e2ea;
}

.catalog-result-head #catalog-sort-hint {
  font-family: inherit;
  font-size: 15px;
  color: #9da0b3;
}

#catalog-sort-hint::before {
  content: "·";
  margin-right: 8px;
}

/* Category tabs follow the same neutral selection style */
.category-tab,
.catalog-category-bar .category-tab {
  border-radius: 999px !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.category-tab.active,
.catalog-category-bar .category-tab.active {
  background: rgba(255, 255, 255, 0.14) !important;
  border: none !important;
  color: #f4f4f6 !important;
  box-shadow: none !important;
}

.category-tab.active .icon {
  color: #f4f4f6;
}

.category-tab.active .category-tab-count {
  background: rgba(255, 255, 255, 0.12);
  color: #f4f4f6;
}

/* Provider groups inside the card grid */
.catalog-group-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.catalog-group-head ~ .catalog-group-head {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.catalog-group-head strong {
  font-size: 18px;
  font-weight: 700;
  color: #e2e2ea;
}

.catalog-group-head > span:last-child {
  font-size: 15px;
  color: #9da0b3;
}

.catalog-card .popular-mark {
  color: #9aefd2;
  font-weight: 600;
}

[data-page=models] .catalog-card .vendor-name {
  font-size: 15px;
  color: #dcdce8;
}

/* As many columns as fit: the rail narrows the grid, fixed 3–4 columns squeeze prices onto two lines */
[data-page=models] .catalog-main .model-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

@media (max-width: 1250px) {
  .catalog-toolbar {
    flex-wrap: wrap;
  }

  .catalog-toolbar .model-search {
    flex-basis: 100%;
  }
}

/* Narrow screens: rail turns into one horizontally scrolling row */
@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .provider-rail {
    position: static;
  }

  .provider-rail-title {
    display: none;
  }

  .provider-filter {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .provider-filter::-webkit-scrollbar {
    display: none;
  }

  .provider-chip {
    width: auto;
    flex-shrink: 0;
    min-height: 44px;
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
  }

  .provider-chip-label {
    overflow: visible;
  }

  .sort-switch {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sort-chip {
    flex: 1 0 auto;
    min-height: 40px;
  }
}

/* Mobile Chat Header & Compare Bar Overrides (Loaded after mobile.css) */
.workspace-mode-btn .mode-label-mobile {
  display: none !important;
}

@media (max-width: 800px) {
  .workspace-mode-btn .mode-label-desktop {
    display: none !important;
  }
  .workspace-mode-btn .mode-label-mobile {
    display: inline !important;
  }
  [data-page=playground] .page-header.chat-header,
  [data-page=images] .page-header.chat-header,
  [data-page=videos] .page-header.chat-header,
  [data-page=audio] .page-header.chat-header,
  .app-content[data-page=playground] .page-header.chat-header,
  .page-header.chat-header,
  .chat-header {
    gap: 8px 6px !important;
    padding: 0 0 8px !important;
    min-height: auto !important;
    flex-wrap: wrap !important;
  }
  .app-content[data-page=playground] .page-header .header-actions,
  .chat-header .header-actions {
    gap: 5px !important;
    flex-wrap: nowrap !important;
    margin-left: auto !important;
  }
  .chat-header .header-actions [data-action="export-chat"] {
    display: none !important;
  }
  .app-content[data-page=playground] .page-header .header-actions .btn,
  .app-content[data-page=playground] .page-header .header-actions .icon-btn,
  .chat-header .header-actions .btn,
  .chat-header .header-actions .icon-btn,
  .chat-header .header-actions #web-search-toggle,
  .chat-header .header-actions .chat-compare-toggle,
  .chat-header .header-actions #chat-role-trigger {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 36px !important;
  }
  .chat-header .header-actions .btn span,
  .chat-header .header-actions #web-search-toggle span,
  .chat-header .header-actions .chat-compare-toggle span,
  .chat-header .header-actions #chat-role-trigger span {
    display: none !important;
  }
  .chat-compare-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 8px !important;
    margin: 2px 0 8px !important;
  }
  .chat-compare-bar-left,
  .chat-compare-vs {
    display: none !important;
  }
  .chat-compare-bar-right {
    order: 1 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 6px !important;
  }
  .chat-compare-slot-tag {
    padding: 0 8px !important;
    height: 36px !important;
    font-size: 15px !important;
  }
  .chat-compare-bar .chat-compare-select {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 8px !important;
    font-size: 15px !important;
  }
  .chat-compare-bar-actions {
    order: 2 !important;
    flex: 0 0 auto !important;
    margin-left: 0 !important;
    gap: 4px !important;
  }
  .chat-compare-bar-actions .compare-now-btn {
    padding: 0 8px !important;
    height: 36px !important;
    min-height: 36px !important;
    font-size: 15px !important;
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY SOFTENING (speshu.ai clean & modern aesthetic)
   ========================================================================== */

/* 1. All Buttons, Actions & Triggers: Crisp Medium (500) */
.btn,
button.btn,
a.btn,
.page-header .btn,
.nav-actions .btn,
.app-topbar .btn,
.hero-qs-submit,
.best-model-btn,
.pricing-speshu-btn,
.cw-actions .btn,
.cw-test,
.doc-lang-btn,
.feedback-submit-btn,
.feedback-tg-btn,
.btn-payment-method,
.maint-boot-actions .btn,
.topbar-actions .btn {
  font-weight: 500 !important;
}

/* 2. Chips, Pills, Badges, Preset Filters: Clean Medium (500) */
.chat-role-chip,
.prompt-chip,
.filter-chip,
.status-pill,
.ratio-chip,
.hero-qs-chip,
.category-tab-count,
.welcome-bonus-pill,
.topbar-balance,
.pill,
.panel-head .pill,
.chat-role-trigger-btn,
.role-preset-card,
.doc-attachment-chip,
.pricing-category-tabs .filter-chip {
  font-weight: 500 !important;
}

/* 3. Accordions, FAQ questions, Summary headers: Light & Elegant (500) */
.product-faq summary,
.product-landing .product-faq summary,
.faq-section summary,
.faq-list summary,
.help-questions summary,
.connect-token-settings summary,
.connect-advanced summary,
.cw-more-apps > summary,
.cw-more > summary,
.code-disclosure > summary,
.seo-static summary,
details summary {
  font-weight: 500 !important;
}

/* 4. Navigation Links: 500 Medium */
.side-nav a,
.topnav a,
.nav-links a,
.footer-col a,
.docs-toc a {
  font-weight: 500 !important;
}

/* 5. Step Headings, Numbers & Card Titles: Controlled SemiBold (600) */
.cw-step-head h2,
.connect-fields .panel-head h2,
.connect-agents-panel .panel-head h2,
.connect-preview-head h2,
.cw-step-num,
.doc-steps-num,
.best-model-title,
.pricing-speshu-name,
.pricing-speshu-num,
.popular-model-name,
.dashboard-grid .panel-head h2 {
  font-weight: 600 !important;
}

/* 6. Form labels and meta descriptions: 500 Medium */
.cw-field > label,
.cw-field-label,
.cw-key-label,
.field label,
.settings-panel .field label,
.cw-instructions .cw-where {
  font-weight: 500 !important;
}

/* Light theme overrides ensure elements stay 500 / 600 without becoming harsh */
html.theme-light .btn,
html.theme-light a.btn,
html.theme-light button.btn,
html.theme-light .page-header .btn,
html.theme-light .chat-role-chip,
html.theme-light .filter-chip,
html.theme-light .pill,
html.theme-light .product-faq summary,
html.theme-light .faq-section summary,
html.theme-light .faq-list summary,
html.theme-light .help-questions summary,
html.theme-light .connect-token-settings summary,
html.theme-light .connect-advanced summary,
html.theme-light .code-disclosure > summary,
html.theme-light details summary {
  font-weight: 500 !important;
}

html.theme-light .cw-step-head h2,
html.theme-light .cw-step-num,
html.theme-light .doc-steps-num {
  font-weight: 600 !important;
}


/* ==========================================================================
   TOPNAV & MOBILE NAVIGATION REFINEMENTS
   1. Fix collision/overlapping when shrinking screen (769px - 1080px)
   2. Remove profile icon on mobile screen (keep only hamburger stripes)
   3. Fix mobile navigation dropdown styling & contrast (light & dark theme)
   ========================================================================== */

/* Topnav layout: Pixel-perfect center alignment for navigation links */
.product-landing .topnav {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.product-landing .topnav-inner {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  padding: 0 32px !important;
  box-sizing: border-box !important;
}

.product-landing .topnav .logo,
.product-landing .topnav-inner > .logo {
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 2 !important;
}

.product-landing .nav-links,
.product-landing .topnav-inner > .nav-links {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  z-index: 1 !important;
}

.product-landing .topnav-actions,
.product-landing .topnav-inner > .topnav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: auto !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  z-index: 2 !important;
}

/* Screen width <= 1180px: Switch from middle links to hamburger to prevent text overlap */
@media (max-width: 1180px) {
  .product-landing .nav-links,
  .product-landing .topnav-inner > .nav-links {
    display: none !important;
  }
  .landing-mobile-nav {
    display: block !important;
    flex-shrink: 0 !important;
  }
  .landing-mobile-nav summary {
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    list-style: none !important;
    box-sizing: border-box !important;
  }
  /* On intermediate screens (769px-1180px), collapse profile meta text to icon-only avatar */
  .product-landing .user-account-meta,
  .product-landing .user-account-arrow {
    display: none !important;
  }
  .product-landing .user-account-toggle {
    padding: 0 4px !important;
  }
}

/* Screen width <= 768px (Phone / Mobile):
   - User request: HIDE PROFILE ICON on mobile header, keep only the hamburger stripes
   - Never clip the hamburger stripes button */
@media (max-width: 768px) {
  .product-landing .topnav-inner {
    padding: 0 14px !important;
    gap: 6px !important;
  }
  .product-landing .topnav-actions {
    gap: 6px !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
  }
  /* HIDE PROFILE ICON on mobile landing page per user request */
  .product-landing .user-account-menu,
  .product-landing .landing-user-menu,
  .product-landing .topnav .user-account-menu,
  .product-landing .topnav .topbar-account,
  .product-landing .topnav .user-account-toggle {
    display: none !important;
  }
  /* Keep only the hamburger stripes */
  .landing-mobile-nav {
    display: block !important;
    flex-shrink: 0 !important;
    margin-left: 2px !important;
  }
  .landing-mobile-nav summary {
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    list-style: none !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   MOBILE MENU POPUP STYLING (Dropdown Navigation)
   ========================================================================== */
.landing-mobile-nav[open] nav {
  position: fixed !important;
  top: 70px !important;
  left: max(12px, env(safe-area-inset-left)) !important;
  right: max(12px, env(safe-area-inset-right)) !important;
  width: auto !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100vh - 84px) !important;
  overflow-y: auto !important;
  z-index: 1001 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 10px !important;
  gap: 3px !important;
  border-radius: 20px !important;
  box-sizing: border-box !important;
}

@media (min-width: 601px) and (max-width: 1080px) {
  .landing-mobile-nav[open] nav {
    left: auto !important;
    right: 20px !important;
    width: 320px !important;
    max-width: calc(100vw - 40px) !important;
  }
}

/* Light Theme: Mobile Menu */
html.theme-light .landing-mobile-nav[open] nav {
  background: #ffffff !important;
  border: 1px solid #e3e6eb !important;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}
html.theme-light .landing-mobile-nav summary {
  background: #ffffff !important;
  border: 1px solid #d5d9e0 !important;
  color: #11141a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
html.theme-light .landing-mobile-nav summary:hover,
html.theme-light .landing-mobile-nav[open] summary {
  background: #f0f2f6 !important;
  color: #11141a !important;
  border-color: #cbd2dc !important;
}
html.theme-light .landing-mobile-nav nav a,
html.theme-light .landing-mobile-link {
  color: #11141a !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}
html.theme-light .landing-mobile-nav nav a:hover,
html.theme-light .landing-mobile-link:hover {
  background: #f1f4f8 !important;
  color: #11141a !important;
}
html.theme-light .landing-mobile-nav nav a .icon,
html.theme-light .landing-mobile-link .icon {
  color: #555d6d !important;
  width: 18px !important;
  height: 18px !important;
}
html.theme-light .landing-mobile-user {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  background: #f8fafc !important;
  border: 1px solid #edf0f5 !important;
  border-radius: 14px !important;
  margin-bottom: 6px !important;
}
html.theme-light .landing-mobile-user .mobile-user-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #e2e8f0 !important;
  color: #11141a !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
html.theme-light .landing-mobile-user .mobile-user-avatar svg {
  width: 22px !important;
  height: 22px !important;
}
html.theme-light .landing-mobile-user .mobile-user-email {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 550 !important;
  color: #11141a !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 200px !important;
}
html.theme-light .landing-mobile-user .mobile-user-role {
  display: block !important;
  font-size: 11.5px !important;
  color: #64748b !important;
}
html.theme-light .landing-mobile-divider {
  height: 1px !important;
  background: #e5e7eb !important;
  margin: 6px 0 !important;
}
html.theme-light .landing-mobile-logout {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  color: #dc2626 !important;
  background: transparent !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  width: 100% !important;
  text-align: left !important;
  transition: background 0.15s ease !important;
}
html.theme-light .landing-mobile-logout:hover {
  background: #fef2f2 !important;
}

/* Dark Theme: Mobile Menu */
.landing-mobile-nav[open] nav {
  background: #141720 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6) !important;
}
.landing-mobile-nav summary {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}
.landing-mobile-nav summary:hover,
.landing-mobile-nav[open] summary {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}
.landing-mobile-nav nav a,
.landing-mobile-link {
  color: #f4f4f6 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: background 0.15s ease, color 0.15s ease !important;
}
.landing-mobile-nav nav a:hover,
.landing-mobile-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
.landing-mobile-nav nav a .icon,
.landing-mobile-link .icon {
  color: #9da0b3 !important;
  width: 18px !important;
  height: 18px !important;
}
.landing-mobile-user {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  margin-bottom: 6px !important;
}
.landing-mobile-user .mobile-user-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.landing-mobile-user .mobile-user-avatar svg {
  width: 22px !important;
  height: 22px !important;
}
.landing-mobile-user .mobile-user-email {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 550 !important;
  color: #ffffff !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  max-width: 200px !important;
}
.landing-mobile-user .mobile-user-role {
  display: block !important;
  font-size: 11.5px !important;
  color: #9da0b3 !important;
}
.landing-mobile-divider {
  height: 1px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  margin: 6px 0 !important;
}
.landing-mobile-logout {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  color: #f87171 !important;
  background: transparent !important;
  border: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  width: 100% !important;
  text-align: left !important;
  transition: background 0.15s ease !important;
}
.landing-mobile-logout:hover {
  background: rgba(248, 113, 113, 0.1) !important;
}


/* ==========================================================================
   COMPOSER & SUGGESTIONS FIXES
   - Eradicate square outline on textarea inside rounded composer bar
   - Fix strange spacing and button justification in suggestions
   ========================================================================== */

/* Eradicate square outline on textarea inside composer-bar */
.composer-bar textarea,
.composer textarea,
.composer-bar #prompt,
.composer-bar #image-prompt,
.composer-bar #video-prompt,
.composer-bar #audio-prompt,
html.theme-light .composer-bar textarea,
html.theme-light .composer textarea,
html.theme-light .composer-bar #prompt,
html.theme-light .composer-bar #image-prompt,
html.theme-light .composer-bar #video-prompt,
html.theme-light .composer-bar #audio-prompt {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.composer-bar textarea:focus,
.composer textarea:focus,
.composer-bar #prompt:focus,
.composer-bar #image-prompt:focus,
.composer-bar #video-prompt:focus,
.composer-bar #audio-prompt:focus,
html.theme-light .composer-bar textarea:focus,
html.theme-light .composer textarea:focus,
html.theme-light .composer-bar #prompt:focus,
html.theme-light .composer-bar #image-prompt:focus,
html.theme-light .composer-bar #video-prompt:focus,
html.theme-light .composer-bar #audio-prompt:focus {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Centered compact pills for chat & studio welcome suggestions */
.chat-welcome .suggestions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px 12px !important;
  width: 100% !important;
  max-width: 660px !important;
  margin: 18px auto 0 !important;
  box-sizing: border-box !important;
}

.chat-welcome .suggestions button,
.chat-focused .suggestions button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: max-content !important;
  margin: 0 !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
}

.chat-welcome .suggestions button svg,
.chat-welcome .suggestions button .icon {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  opacity: 0.85 !important;
}

.chat-welcome .suggestions button span,
.chat-focused .suggestions button span {
  display: inline !important;
}

.chat-welcome .suggestions button svg,
.chat-welcome .suggestions button .icon {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* Ensure balanced spacing in chat-welcome across both themes */
.chat-welcome {
  padding: 24px 16px !important;
  margin: auto !important;
}

.chat-welcome h2 {
  margin: 0 0 10px !important;
}

.chat-welcome-sub {
  margin: 0 auto 16px !important;
  max-width: 480px !important;
  line-height: 1.5 !important;
}

html.theme-light .chat-welcome-sub {
  color: #555e70 !important;
}


/* ==========================================================================
   MODELS TICKER: CONSTRAINED WIDTH & CENTERED CAPTION
   - Restrict width to container (max-width: 1200px, centered)
   - Caption centered above, logos streaming in one line below
   ========================================================================== */
.product-models-ticker {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 36px auto 28px !important;
  padding: 0 16px !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  box-sizing: border-box !important;
  display: block !important;
  overflow: hidden !important;
}
.models-ticker-caption {
  text-align: center !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: #8a919e !important;
  margin: 0 auto 18px !important;
  padding: 0 !important;
  border: none !important;
  display: block !important;
}
html.theme-light .models-ticker-caption {
  color: #5e6573 !important;
}
.models-ticker-viewport {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 48px, black calc(100% - 48px), transparent 100%) !important;
  mask-image: linear-gradient(to right, transparent 0%, black 48px, black calc(100% - 48px), transparent 100%) !important;
}
.models-ticker-track {
  display: flex !important;
  width: max-content !important;
  will-change: transform !important;
  animation: marqueeLeft 50s linear infinite !important;
}
.models-ticker-group {
  display: flex !important;
  align-items: center !important;
  gap: 48px !important;
  padding-right: 48px !important;
  flex-shrink: 0 !important;
}
.model-ticker-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 16px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.model-ticker-name {
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: .02em !important;
}

@media (max-width: 768px) {
  .product-models-ticker {
    margin: 20px auto !important;
    padding: 0 12px !important;
  }
  .models-ticker-caption {
    font-size: 12px !important;
    margin-bottom: 14px !important;
  }
  .models-ticker-group {
    gap: 32px !important;
    padding-right: 32px !important;
  }
}
/* ==========================================================================
   GLOBAL DESIGN SYSTEM: AUTHORITATIVE ROUNDING RULES (SPESHU SYSTEM)
   Guarantees 100% consistent rounding across all pages, components & states
   ========================================================================== */

/* 1. ALL BUTTONS ARE PILLS (Screenshot 4, Screenshot 5, etc.) */
.btn,
button.btn,
a.btn,
.app-content .btn,
.product-landing .btn,
.page-header .btn,
.header-actions .btn,
.account-safety-actions .btn,
.settings-security-row .btn,
.help-contact .btn,
.support-help-btn,
.feedback-tg-btn,
.empty-state .btn,
.empty-state button,
.catalog-card-bottom .btn,
.key-actions .btn,
.admin-filters .btn,
.admin-user-actions .btn,
.danger-btn,
.modal .btn,
dialog .btn,
#landing-quick-form .btn,
.hero-qs-submit,
.maint-boot-btn,
.auth-switch button,
.invoice-link .btn {
  border-radius: 999px !important;
}

/* 2. CIRCULAR BUTTONS & TOGGLES (Screenshot 2) */
.icon-btn,
.theme-toggle,
.app-topbar .theme-toggle,
.topnav-actions .theme-toggle,
.app-shell-theme-toggle,
.composer-attach-btn,
.send-btn,
.composer-bar .send-btn,
.landing-mobile-nav summary,
.mobile-user-avatar,
.avatar,
.user-avatar,
.chat-model-chevron-btn,
.circle-btn {
  border-radius: 50% !important;
}

/* 3. TOPBAR CONTROLS: BALANCE, CURRENCY, LANGUAGE (Screenshot 2) */
.topbar-balance,
.app-shell .topbar-balance,
.product-landing .topbar-balance,
.topnav-actions .topbar-balance,
.app-topbar .topbar-balance,
.currency-toggle,
.app-shell .currency-toggle,
.topnav-actions .currency-toggle,
.lang-toggle,
.app-shell .lang-toggle,
.topnav-actions .lang-toggle,
.user-account-toggle,
.topbar-account {
  border-radius: 999px !important;
}

/* 4. HERO AI MODEL BADGES: SMOOTH 16px ROUNDING (Screenshot 1) */
.hero-ai-badge,
.hero-ai-badges .hero-ai-badge,
.hero-badge,
.vendor-logo {
  border-radius: 16px !important;
}

/* 5. MODELS / CATALOG: TABS, CHIPS, SEARCH (Screenshot 3) */
.category-tab,
.catalog-category-bar .category-tab {
  border-radius: 999px !important;
}
.category-tab-count {
  border-radius: 999px !important;
}
.sort-switch {
  border-radius: 999px !important;
}
.sort-chip,
.provider-chip,
.filter-chip,
.favorite-filter,
.prompt-chip,
.hero-qs-model-chip,
.hero-qs-chip,
.pill,
.badge,
.pricing-category-tab {
  border-radius: 999px !important;
}

.hero-qs-model-chip,
.hero-qs-model-chip span {
  font-weight: 500 !important;
}

/* Pill Search Inputs */
.search-field,
.model-search .search-field,
.search-field input,
#model-search,
.catalog-toolbar .search-field,
.catalog-toolbar input,
.chat-model-search-wrap,
.chat-model-search-wrap input {
  border-radius: 999px !important;
}

/* 6. FORM FIELDS & INPUTS */
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
dialog .field input,
dialog .field select,
.password-fields-grid input,
#change-password-form input,
.connect-options input,
.connect-options select,
.settings-panel input,
.settings-panel select {
  border-radius: 16px !important;
}

textarea,
.field textarea,
#landing-quick-prompt,
.composer textarea,
.composer-textarea {
  border-radius: 20px !important;
}

/* 7. CARDS, PANELS & CONTAINERS (Screenshot 4, etc.) */
.panel,
.glass,
.catalog-card,
.help-contact,
.account-safety,
.key-card,
.budget-panel,
.metric,
.admin-metric,
dialog,
.modal-dialog,
.chat-panel {
  border-radius: 24px !important;
}

/* Connect App Cards */
.cw-app {
  border-radius: 14px !important;
}


/* ==========================================================================
   AUTHORITATIVE SYSTEM-WIDE CURVATURE & STUDIO CLEANLINESS PARITY
   ========================================================================== */

/* 1. Pill Curvature (999px) for Tabs, Badges, Switches, Segments */
.doc-lang-btn,
.doc-lang-switch .doc-lang-btn,
.doc-lang-tabs button,
.workspace-mode-nav,
.workspace-mode-btn,
.composer-price-badge,
.video-price-badge,
.ratio-chip-compact,
.video-segment-btn,
.prompt-chip,
.composer-prompt-chips .prompt-chip,
.best-model-btn,
.hero-qs-model-chip,
.hero-qs-chip {
  border-radius: 999px !important;
}

/* 2. Model chip typography lightness (not overly bold) */
.hero-qs-model-chip,
.hero-qs-model-chip span {
  font-weight: 450 !important;
}

/* 3. Circular icons (50%) */
.empty-state .empty-icon,
.locked .empty-icon,
.payment-method .payment-icon,
.video-empty-icon,
.image-empty-icon,
.composer-attach-btn,
.composer-bar .send-btn,
.send-btn,
.composer-mic-btn {
  border-radius: 50% !important;
}

/* 4. Select triggers & cards (16px) */
.budget-panel .chat-model-trigger,
.cw-step .chat-model-trigger,
.doc-path {
  border-radius: 16px !important;
}

/* 5. Complete eradication of composer divider lines across all studio modes (chat, photo, video, audio) */
.composer,
.chat-panel .composer,
.image-composer,
.video-composer,
.audio-composer,
#chat-form,
#image-form,
#video-form,
#audio-form,
[data-page=playground] .composer,
[data-page=images] .composer,
[data-page=videos] .composer,
[data-page=audio] .composer,
html.theme-light .composer,
html.theme-light .chat-panel .composer,
html.theme-light .image-composer,
html.theme-light .video-composer,
html.theme-light .audio-composer,
html.theme-light #chat-form,
html.theme-light #image-form,
html.theme-light #video-form,
html.theme-light #audio-form {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  background: transparent !important;
  max-width: 840px !important;
  width: 100% !important;
  margin-inline: auto !important;
  padding: 0 0 16px 0 !important;
}

.composer-settings-bar,
[data-page=images] .composer-settings-bar,
[data-page=videos] .composer-settings-bar,
[data-page=audio] .composer-settings-bar,
html.theme-light .composer-settings-bar,
html.theme-light [data-page=images] .composer-settings-bar,
html.theme-light [data-page=videos] .composer-settings-bar,
html.theme-light [data-page=audio] .composer-settings-bar,
html.theme-light [data-page=speech] .composer-settings-bar {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  max-width: 840px !important;
  width: 100% !important;
  margin-inline: auto !important;
}


/* --------------------------------------------------------------------------
   USER SPECIFIC FIXES: DROPDOWNS, SORT CHIPS, PRESETS, SETTINGS LANG SELECTOR
   -------------------------------------------------------------------------- */

/* Item 1: User Account Dropdown and Trigger Curvature */
.user-account-toggle,
html.theme-light .user-account-toggle,
[data-theme="light"] .user-account-toggle {
  border-radius: 999px !important;
}

.user-account-toggle .avatar,
html.theme-light .user-account-toggle .avatar,
[data-theme="light"] .user-account-toggle .avatar {
  border-radius: 50% !important;
}

.user-account-dropdown,
html.theme-light .user-account-dropdown,
[data-theme="light"] .user-account-dropdown,
.chat-model-dropdown,
.lang-dropdown,
.currency-dropdown {
  border-radius: 20px !important;
}

.user-dropdown-item,
html.theme-light .user-dropdown-item,
[data-theme="light"] .user-dropdown-item {
  border-radius: 12px !important;
}

/* Item 2: Catalog Sort & Filter Chips Light Typography */
.sort-chip,
.filter-chip,
.favorite-filter,
.favorite-filter span,
.provider-chip,
html.theme-light .sort-chip,
html.theme-light .filter-chip,
html.theme-light .favorite-filter,
html.theme-light .provider-chip,
[data-theme="light"] .sort-chip,
[data-theme="light"] .filter-chip,
[data-theme="light"] .favorite-filter,
[data-theme="light"] .provider-chip {
  font-weight: 450 !important;
}

.sort-chip.active,
.filter-chip.active,
.favorite-filter.active,
html.theme-light .sort-chip.active,
html.theme-light .filter-chip.active,
html.theme-light .favorite-filter.active,
[data-theme="light"] .sort-chip.active,
[data-theme="light"] .filter-chip.active,
[data-theme="light"] .favorite-filter.active {
  font-weight: 500 !important;
}

/* Item 3: Top-up Presets & Bonus Banner Curvature */
.amount-choices button,
html.theme-light .amount-choices button,
[data-theme="light"] .amount-choices button {
  border-radius: 999px !important;
  min-height: 42px !important;
  font-weight: 500 !important;
}

.topup-bonus-hint,
html.theme-light .topup-bonus-hint,
[data-theme="light"] .topup-bonus-hint {
  border-radius: 16px !important;
}

.btn-payment-method,
html.theme-light .btn-payment-method,
[data-theme="light"] .btn-payment-method {
  border-radius: 16px !important;
}

/* Item 4: Redesigned Language Selector in Settings */
.settings-lang-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.settings-lang-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  min-height: 52px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  color: #e2e8f0 !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

.settings-lang-card:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.settings-lang-card.active {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) !important;
}

.settings-lang-flag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.settings-lang-flag img {
  width: 26px !important;
  height: 18px !important;
  object-fit: cover !important;
  border-radius: 3px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: block !important;
}

.settings-lang-name {
  font-size: 15px !important;
  font-weight: 500 !important;
  color: inherit !important;
  line-height: 1.2 !important;
}

.settings-lang-code {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #8e94a5 !important;
  text-transform: uppercase !important;
  margin-left: 2px !important;
}

.settings-lang-check {
  margin-left: auto !important;
  color: var(--accent, #9aefd2) !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.settings-lang-check svg,
.settings-lang-check .icon {
  width: 16px !important;
  height: 16px !important;
}

/* Light Theme for Language Cards */
html.theme-light .settings-lang-card,
[data-theme="light"] .settings-lang-card {
  background: #ffffff !important;
  border: 1px solid #d5d9e0 !important;
  color: #11141a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

html.theme-light .settings-lang-card:hover,
[data-theme="light"] .settings-lang-card:hover {
  background: #f4f5f8 !important;
  border-color: #b8bec9 !important;
}

html.theme-light .settings-lang-card.active,
[data-theme="light"] .settings-lang-card.active {
  background: #f0f2f5 !important;
  border: 1.5px solid #11141a !important;
  color: #11141a !important;
  box-shadow: 0 0 0 1px #11141a !important;
}

html.theme-light .settings-lang-flag img,
[data-theme="light"] .settings-lang-flag img {
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

html.theme-light .settings-lang-name,
[data-theme="light"] .settings-lang-name {
  color: #11141a !important;
}

html.theme-light .settings-lang-code,
[data-theme="light"] .settings-lang-code {
  color: #64748b !important;
}

html.theme-light .settings-lang-check,
[data-theme="light"] .settings-lang-check {
  color: #11141a !important;
}

/* ==========================================================================
   Studio Mode Parity: Speech / Audio Chat Modern Wide Layout (Rule 1 & Rule 2)
   Removes the boxed window border and expands width to standard wide chat
   ========================================================================== */
.chat-focused .message,
.chat-panel .message,
.app-content[data-page=audio] .message,
.app-content[data-page=speech] .message,
[data-page=audio] .message,
[data-page=speech] .message,
.chat-focused .composer,
.chat-panel .composer,
.composer,
.audio-composer,
#speech-form,
#audio-form,
[data-page=audio] .composer,
[data-page=speech] .composer,
.composer-settings-bar,
[data-page=audio] .composer-settings-bar,
[data-page=speech] .composer-settings-bar,
html.theme-light [data-page=audio] .composer-settings-bar,
html.theme-light [data-page=speech] .composer-settings-bar,
[data-theme="light"] [data-page=audio] .composer-settings-bar,
[data-theme="light"] [data-page=speech] .composer-settings-bar {
  max-width: 840px !important;
  width: 100% !important;
}

[data-page=audio] .audio-chat-card,
[data-page=speech] .audio-chat-card,
.audio-chat-card {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Ensure seamless borderless background on /audio messages and panel in light/dark themes */
[data-page=audio] .chat-messages,
[data-page=speech] .chat-messages,
[data-page=audio] .chat-panel,
[data-page=speech] .chat-panel,
.app-content[data-page=audio] .chat-messages,
.app-content[data-page=speech] .chat-messages,
.app-content[data-page=audio] .chat-panel,
.app-content[data-page=speech] .chat-panel,
html.theme-light [data-page=audio] .chat-messages,
html.theme-light [data-page=speech] .chat-messages,
html.theme-light [data-page=audio] .chat-panel,
html.theme-light [data-page=speech] .chat-panel,
html.theme-light .app-content[data-page=audio] .chat-messages,
html.theme-light .app-content[data-page=speech] .chat-messages,
html.theme-light .app-content[data-page=audio] .chat-panel,
html.theme-light .app-content[data-page=speech] .chat-panel,
[data-theme="light"] [data-page=audio] .chat-messages,
[data-theme="light"] [data-page=speech] .chat-messages,
[data-theme="light"] [data-page=audio] .chat-panel,
[data-theme="light"] [data-page=speech] .chat-panel,
[data-theme="light"] .app-content[data-page=audio] .chat-messages,
[data-theme="light"] .app-content[data-page=speech] .chat-messages,
[data-theme="light"] .app-content[data-page=audio] .chat-panel,
[data-theme="light"] .app-content[data-page=speech] .chat-panel {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

#speech-input,
.composer-bar #speech-input {
  flex: 1 1 auto !important;
  min-height: 36px !important;
  max-height: 160px !important;
  overflow-y: auto !important;
  resize: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: inherit !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  padding: 7px 8px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  scrollbar-width: thin !important;
}

#speech-send-button {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   Clean Crisp Typography: Capability Chips & Sort Dropdown Options (Rule 1 & Rule 2)
   Prevents text from appearing overly bold (screens 2 & 3)
   ========================================================================== */
.catalog-capability-bar .capability-chip,
.catalog-capability-bar .filter-chip,
.capability-chip,
.filter-chip,
html.theme-light .catalog-capability-bar .capability-chip,
html.theme-light .capability-chip,
html.theme-light .filter-chip,
[data-theme="light"] .catalog-capability-bar .capability-chip,
[data-theme="light"] .capability-chip,
[data-theme="light"] .filter-chip {
  font-weight: 450 !important;
  font-size: 13.5px !important;
}

.catalog-capability-bar .capability-chip.active,
.capability-chip.active,
.filter-chip.active,
html.theme-light .catalog-capability-bar .capability-chip.active,
html.theme-light .capability-chip.active,
html.theme-light .filter-chip.active,
[data-theme="light"] .catalog-capability-bar .capability-chip.active,
[data-theme="light"] .capability-chip.active,
[data-theme="light"] .filter-chip.active {
  font-weight: 500 !important;
}

/* Custom select dropdown options: crisp, normal font-weight (no heavy bold) */
.custom-select-option,
.custom-select-option strong,
.custom-select-option-title,
.custom-select-option-info,
.catalog-sort-menu .custom-select-option,
.catalog-sort-menu .custom-select-option strong,
.catalog-sort-menu .custom-select-option-title,
.catalog-capability-menu .custom-select-option,
.catalog-capability-menu .custom-select-option strong,
.catalog-capability-menu .custom-select-option-title,
html.theme-light .custom-select-option,
html.theme-light .custom-select-option strong,
html.theme-light .custom-select-option-title,
html.theme-light .catalog-sort-menu .custom-select-option,
html.theme-light .catalog-sort-menu .custom-select-option strong,
html.theme-light .catalog-sort-menu .custom-select-option-title,
[data-theme="light"] .custom-select-option,
[data-theme="light"] .custom-select-option strong,
[data-theme="light"] .custom-select-option-title {
  font-weight: 450 !important;
  font-size: 13.5px !important;
}

.custom-select-option.is-selected,
.custom-select-option.is-selected strong,
.custom-select-option.is-selected .custom-select-option-title,
.catalog-sort-menu .custom-select-option.is-selected,
.catalog-sort-menu .custom-select-option.is-selected strong,
.catalog-sort-menu .custom-select-option.is-selected .custom-select-option-title,
html.theme-light .custom-select-option.is-selected,
html.theme-light .custom-select-option.is-selected strong,
html.theme-light .custom-select-option.is-selected .custom-select-option-title {
  font-weight: 500 !important;
}


/* ==========================================================================
   COMPOSER EXACT PARITY (CHAT, IMAGES, VIDEOS, AUDIO, SPEECH)
   - Eliminates vertical stretching ("вытянуто вверх") in /images
   - Perfectly harmonizes /speech input bar with chat and images
   ========================================================================== */

/* 1. Strict circular send-button geometry (36x36px circle, never oval, never stretched) */
.composer-bar .send-btn,
.chat-focused .send-btn,
#send-button,
#image-send-button,
#video-send-button,
#audio-send-button,
#speech-send-button,
html.theme-light .composer-bar .send-btn,
html.theme-light .chat-focused .send-btn,
html.theme-light #image-send-button,
html.theme-light #speech-send-button,
html.theme-light #video-send-button,
html.theme-light #audio-send-button,
html.theme-light #send-button,
[data-theme="light"] .composer-bar .send-btn,
[data-theme="light"] #image-send-button,
[data-theme="light"] #speech-send-button {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

/* Light Theme solid black button with white arrow across all tabs */
html.theme-light .composer-bar .send-btn,
html.theme-light #image-send-button,
html.theme-light #speech-send-button,
html.theme-light #video-send-button,
html.theme-light #audio-send-button,
html.theme-light #send-button,
[data-theme="light"] .composer-bar .send-btn,
[data-theme="light"] #image-send-button,
[data-theme="light"] #speech-send-button {
  background: #11141a !important;
  border: 1px solid #11141a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16) !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

html.theme-light .composer-bar .send-btn svg,
html.theme-light #image-send-button svg,
html.theme-light #speech-send-button svg,
html.theme-light #video-send-button svg,
html.theme-light #audio-send-button svg,
html.theme-light #send-button svg,
[data-theme="light"] .composer-bar .send-btn svg,
[data-theme="light"] #image-send-button svg,
[data-theme="light"] #speech-send-button svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  width: 16px !important;
  height: 16px !important;
}

/* 2. Strict circular attach/action button geometry (36x36px circle) */
.composer-attach-btn,
#vision-attach,
#image-attach-trigger,
#audio-attach-trigger,
#speech-sample-trigger,
html.theme-light .composer-attach-btn,
html.theme-light #vision-attach,
html.theme-light #image-attach-trigger,
html.theme-light #audio-attach-trigger,
html.theme-light #speech-sample-trigger,
[data-theme="light"] .composer-attach-btn,
[data-theme="light"] #speech-sample-trigger {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.composer-attach-btn span {
  display: none !important;
}

/* 3. Strict 52px slim pill composer-bar across all tabs */
.composer-bar,
.composer .composer-bar,
#chat-form .composer-bar,
#image-form .composer-bar,
#video-form .composer-bar,
#audio-form .composer-bar,
#speech-form .composer-bar,
[data-page=playground] .composer-bar,
[data-page=images] .composer-bar,
[data-page=videos] .composer-bar,
[data-page=audio] .composer-bar,
[data-page=speech] .composer-bar,
html.theme-light .composer-bar,
[data-theme="light"] .composer-bar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 7px 10px 7px 12px !important;
  min-height: 52px !important;
  height: auto !important;
  border-radius: 28px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* 4. Textarea inside composer-bar: uniform single-row starting height */
.composer-bar textarea,
.composer textarea,
#prompt,
#image-prompt,
#video-prompt,
#audio-prompt,
#speech-input,
html.theme-light .composer-bar textarea,
html.theme-light #image-prompt,
html.theme-light #speech-input,
[data-theme="light"] #speech-input {
  flex: 1 1 auto !important;
  min-height: 36px !important;
  max-height: 160px !important;
  overflow-y: auto !important;
  resize: none !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  padding: 7px 8px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  scrollbar-width: thin !important;
}

/* Light theme font color & placeholder */
html.theme-light #speech-input,
[data-theme="light"] #speech-input {
  color: #11141a !important;
}

html.theme-light #speech-input::placeholder,
[data-theme="light"] #speech-input::placeholder {
  color: #8a919e !important;
}

/* 5. Prompt suggestion chips styling parity */
.composer-prompt-chips,
.prompt-suggestions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 10px !important;
  width: 100% !important;
  max-width: 840px !important;
  box-sizing: border-box !important;
}

.composer-prompt-chips .prompt-chip,
.prompt-suggestions .prompt-chip {
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: #9da0b3 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

html.theme-light .composer-prompt-chips .prompt-chip,
html.theme-light .prompt-suggestions .prompt-chip,
[data-theme="light"] .composer-prompt-chips .prompt-chip,
[data-theme="light"] .prompt-suggestions .prompt-chip {
  background: #ffffff !important;
  border: 1px solid #d5d9e0 !important;
  color: #374151 !important;
}

html.theme-light .composer-prompt-chips .prompt-chip:hover,
html.theme-light .prompt-suggestions .prompt-chip:hover,
[data-theme="light"] .composer-prompt-chips .prompt-chip:hover,
[data-theme="light"] .prompt-suggestions .prompt-chip:hover {
  background: #f0f2f5 !important;
  border-color: #b8bec9 !important;
  color: #11141a !important;
}


/* ==========================================================================
   CATEGORY TABS: STRICT THEME ISOLATION & NO BACKGROUND PILLS FOR INACTIVE TABS
   ========================================================================== */

/* Base geometry: pure transparent, no pill borders */
.category-tab,
.catalog-category-bar .category-tab {
  font-size: 15px !important;
  font-weight: 500 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 14px !important;
  gap: 8px !important;
  transition: color 0.15s ease !important;
}

.category-tab-label,
.catalog-category-bar .category-tab-label {
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

.category-tab .icon,
.catalog-category-bar .category-tab .icon {
  width: 16px !important;
  height: 16px !important;
  transition: color 0.15s ease !important;
}

/* --- DARK THEME (Crisp light text on dark background, never black on hover) --- */
html:not(.theme-light) .category-tab:not(.active),
html:not(.theme-light) .catalog-category-bar .category-tab:not(.active),
[data-theme="dark"] .category-tab:not(.active),
[data-theme="dark"] .catalog-category-bar .category-tab:not(.active),
.category-tab:not(.active),
.catalog-category-bar .category-tab:not(.active) {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #9d9da8 !important;
}

html:not(.theme-light) .category-tab:not(.active) .icon,
html:not(.theme-light) .catalog-category-bar .category-tab:not(.active) .icon,
[data-theme="dark"] .category-tab:not(.active) .icon,
[data-theme="dark"] .catalog-category-bar .category-tab:not(.active) .icon,
.category-tab:not(.active) .icon {
  color: #858591 !important;
}

html:not(.theme-light) .category-tab:not(.active):hover,
html:not(.theme-light) .catalog-category-bar .category-tab:not(.active):hover,
[data-theme="dark"] .category-tab:not(.active):hover,
[data-theme="dark"] .catalog-category-bar .category-tab:not(.active):hover,
.category-tab:not(.active):hover {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: #ffffff !important;
}

html:not(.theme-light) .category-tab:not(.active):hover .icon,
html:not(.theme-light) .catalog-category-bar .category-tab:not(.active):hover .icon,
[data-theme="dark"] .category-tab:not(.active):hover .icon,
[data-theme="dark"] .catalog-category-bar .category-tab:not(.active):hover .icon,
.category-tab:not(.active):hover .icon {
  color: #ffffff !important;
}

/* Dark Theme ACTIVE tab: solid white pill with dark text */
html:not(.theme-light) .category-tab.active,
html:not(.theme-light) .catalog-category-bar .category-tab.active,
[data-theme="dark"] .category-tab.active,
[data-theme="dark"] .catalog-category-bar .category-tab.active {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #0d0e12 !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

html:not(.theme-light) .category-tab.active .icon,
html:not(.theme-light) .catalog-category-bar .category-tab.active .icon,
html:not(.theme-light) .category-tab.active .category-tab-label,
html:not(.theme-light) .catalog-category-bar .category-tab.active .category-tab-label,
[data-theme="dark"] .category-tab.active .icon,
[data-theme="dark"] .category-tab.active .category-tab-label {
  color: #0d0e12 !important;
}

/* --- LIGHT THEME (Strictly scoped: dark text on light background) --- */
html.theme-light .category-tab:not(.active),
html.theme-light .catalog-category-bar .category-tab:not(.active),
[data-theme="light"] .category-tab:not(.active),
[data-theme="light"] .catalog-category-bar .category-tab:not(.active) {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #5e6573 !important;
}

html.theme-light .category-tab:not(.active) .icon,
html.theme-light .catalog-category-bar .category-tab:not(.active) .icon,
[data-theme="light"] .category-tab:not(.active) .icon,
[data-theme="light"] .catalog-category-bar .category-tab:not(.active) .icon {
  color: #5e6573 !important;
}

html.theme-light .category-tab:not(.active):hover,
html.theme-light .catalog-category-bar .category-tab:not(.active):hover,
[data-theme="light"] .category-tab:not(.active):hover,
[data-theme="light"] .catalog-category-bar .category-tab:not(.active):hover {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: #11141a !important;
}

html.theme-light .category-tab:not(.active):hover .icon,
html.theme-light .catalog-category-bar .category-tab:not(.active):hover .icon,
[data-theme="light"] .category-tab:not(.active):hover .icon,
[data-theme="light"] .catalog-category-bar .category-tab:not(.active):hover .icon {
  color: #11141a !important;
}

/* Light Theme ACTIVE tab: solid black pill with white text */
html.theme-light .category-tab.active,
html.theme-light .catalog-category-bar .category-tab.active,
[data-theme="light"] .category-tab.active,
[data-theme="light"] .catalog-category-bar .category-tab.active {
  background: #11141a !important;
  background-color: #11141a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16) !important;
}

html.theme-light .category-tab.active .icon,
html.theme-light .catalog-category-bar .category-tab.active .icon,
html.theme-light .category-tab.active .category-tab-label,
html.theme-light .catalog-category-bar .category-tab.active .category-tab-label,
[data-theme="light"] .category-tab.active .icon,
[data-theme="light"] .category-tab.active .category-tab-label {
  color: #ffffff !important;
}


/* Additional Modern Rounding Standards & Screenshot Polish */
.sidebar-topup-bonus,
.sidebar-topup-bonus.sidebar-autumn-bonus {
  border-radius: 18px !important;
}

.billing-first-topup-banner {
  border-radius: 20px !important;
}

.billing-first-topup-banner .first-topup-badge,
.first-topup-badge {
  border-radius: 999px !important;
}

.docs-bar {
  border-radius: 20px !important;
}

.docs-bar-sections a {
  border-radius: 999px !important;
}

.doc-paths .doc-path {
  border-radius: 18px !important;
}

.base-url {
  border-radius: 16px !important;
}

.cw-field input,
.cw-field select,
.cw-step .cw-field input,
.cw-step .cw-field select,
.connect-input-action input,
.connect-fields input,
.connect-fields select,
.cw-price {
  border-radius: 16px !important;
}

.chat-history-item {
  padding: 12px 20px 12px 22px !important;
}

.chat-history-model {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.admin-tabs,
.admin-tabs a,
.admin-period,
.admin-period button {
  border-radius: 999px !important;
}

.admin-summary,
.admin-system-summary,
.admin-metric {
  border-radius: 20px !important;
}

.admin-user-numbers {
  border-radius: 18px !important;
}
