body.home-page.site-page.model-demo-page .page-shell {
  padding: 14px 0 32px;
  /* container-type на .page-shell ломает position: sticky у потомков */
  container-type: normal;
}

@media (max-width: 760px) {
body.home-page.site-page.model-demo-page .page-shell {
    padding-top: 10px;
  }
}

.model-demo-nav-mount[hidden] {
  display: none;
}

html[data-theme="dark"] body.home-page .model-nav,
body.home-page[data-theme="dark"] .model-nav {
  color: #ffffff;
}

html[data-theme="dark"] body.home-page .model-nav-item.has-dropdown:hover .model-nav-segment,
html[data-theme="dark"] body.home-page .model-nav-item.has-dropdown.is-open .model-nav-segment,
body.home-page[data-theme="dark"] .model-nav-item.has-dropdown:hover .model-nav-segment,
body.home-page[data-theme="dark"] .model-nav-item.has-dropdown.is-open .model-nav-segment {
  background: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] body.home-page .model-nav-trigger,
body.home-page[data-theme="dark"] .model-nav-trigger {
  color: rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] body.home-page .model-nav-trigger:hover,
html[data-theme="dark"] body.home-page .model-nav-trigger:focus-visible,
body.home-page[data-theme="dark"] .model-nav-trigger:hover,
body.home-page[data-theme="dark"] .model-nav-trigger:focus-visible {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] body.home-page .model-nav-flyout,
body.home-page[data-theme="dark"] .model-nav-flyout {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="dark"] body.home-page .model-nav-column,
body.home-page[data-theme="dark"] .model-nav-column {
  background: #252525;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 12px 36px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] body.home-page .model-nav-column-item:hover,
html[data-theme="dark"] body.home-page .model-nav-column-item.is-active-branch,
body.home-page[data-theme="dark"] .model-nav-column-item:hover,
body.home-page[data-theme="dark"] .model-nav-column-item.is-active-branch {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body.home-page .model-nav-column-branch,
body.home-page[data-theme="dark"] .model-nav-column-branch {
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 1080px) {
html[data-theme="dark"] body.home-page .model-nav-column-back,
  body.home-page[data-theme="dark"] .model-nav-column-back {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: #252525;
  }

html[data-theme="dark"] body.home-page .model-nav-column-back-button,
  body.home-page[data-theme="dark"] .model-nav-column-back-button {
    background: rgba(255, 255, 255, 0.08);
  }

html[data-theme="dark"] body.home-page .model-nav-column-level-title,
  body.home-page[data-theme="dark"] .model-nav-column-level-title {
    color: rgba(255, 255, 255, 0.55);
  }
}

html[data-theme="dark"] body.home-page .model-demo-tabs-sticky-bar,
body.home-page[data-theme="dark"] .model-demo-tabs-sticky-bar {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] body.home-page .model-demo-api-code-card,
body.home-page[data-theme="dark"] .model-demo-api-code-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] body.home-page .model-demo-api-code-card .home-api-code-panel,
body.home-page[data-theme="dark"] .model-demo-api-code-card .home-api-code-panel {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] body.home-page .model-demo-api-code-card .home-api-code-header,
body.home-page[data-theme="dark"] .model-demo-api-code-card .home-api-code-header {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] body.home-page .model-demo-api-code-card .home-api-tab.is-active,
body.home-page[data-theme="dark"] .model-demo-api-code-card .home-api-tab.is-active {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body.home-page .model-demo-api-code-card .home-api-token-command,
body.home-page[data-theme="dark"] .model-demo-api-code-card .home-api-token-command {
  color: #7aa2ff;
}

html[data-theme="dark"] body.home-page .model-demo-api-code-card .home-api-token-flag,
html[data-theme="dark"] body.home-page .model-demo-api-code-card .home-api-token-key,
body.home-page[data-theme="dark"] .model-demo-api-code-card .home-api-token-flag,
body.home-page[data-theme="dark"] .model-demo-api-code-card .home-api-token-key {
  color: #c4a5ff;
}

html[data-theme="dark"] body.home-page .model-demo-api-code-card .home-api-token-string,
body.home-page[data-theme="dark"] .model-demo-api-code-card .home-api-token-string {
  color: #67dca8;
}

html[data-theme="dark"] body.home-page .model-demo-api-code-card .home-api-token-bool,
body.home-page[data-theme="dark"] .model-demo-api-code-card .home-api-token-bool {
  color: #f8c572;
}

html[data-theme="dark"] body.home-page .model-demo-api-code-card .home-api-token-env,
body.home-page[data-theme="dark"] .model-demo-api-code-card .home-api-token-env {
  color: #ff8d8d;
}

html[data-theme="dark"] body.home-page .model-demo-api-snippet,
body.home-page[data-theme="dark"] .model-demo-api-snippet {
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: rgba(107, 140, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] body.home-page .model-demo-api-snippet .model-demo-docs-code,
body.home-page[data-theme="dark"] .model-demo-api-snippet .model-demo-docs-code {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] body.home-page .model-demo-compare-section,
body.home-page[data-theme="dark"] .model-demo-compare-section {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] body.home-page .model-demo-docs-nav-link.is-active,
body.home-page[data-theme="dark"] .model-demo-docs-nav-link.is-active {
  background: rgba(255, 255, 255, 0.06);
}

html:not([data-theme="dark"]) body.home-page .model-demo-docs-nav-link.is-active,
body.home-page:not([data-theme="dark"]) .model-demo-docs-nav-link.is-active {
  background: rgba(16, 16, 16, 0.04);
}

html[data-theme="dark"] body.home-page .model-family-operation-card,
body.home-page[data-theme="dark"] .model-family-operation-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body.home-page a.model-family-operation-card:hover,
body.home-page[data-theme="dark"] a.model-family-operation-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] body.home-page .model-demo-docs-feature-list li,
body.home-page[data-theme="dark"] .model-demo-docs-feature-list li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body.home-page .model-demo-docs-code,
body.home-page[data-theme="dark"] .model-demo-docs-code {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body.home-page .model-demo-docs-quote,
body.home-page[data-theme="dark"] .model-demo-docs-quote {
  border-left-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] body.home-page .model-demo-docs-table th,
html[data-theme="dark"] body.home-page .model-demo-docs-table td,
body.home-page[data-theme="dark"] .model-demo-docs-table th,
body.home-page[data-theme="dark"] .model-demo-docs-table td {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body.home-page .model-demo-docs-tag--field,
body.home-page[data-theme="dark"] .model-demo-docs-tag--field {
  color: #b49cff;
  background: rgba(180, 156, 255, 0.12);
  border-color: rgba(180, 156, 255, 0.28);
}

html[data-theme="dark"] body.home-page .model-demo-docs-tag--method,
body.home-page[data-theme="dark"] .model-demo-docs-tag--method {
  color: #8aa8ff;
  background: rgba(138, 168, 255, 0.14);
  border-color: rgba(138, 168, 255, 0.3);
}

html[data-theme="dark"] body.home-page .model-demo-docs-tag--endpoint,
body.home-page[data-theme="dark"] .model-demo-docs-tag--endpoint {
  color: #7eb8e8;
  background: rgba(126, 184, 232, 0.12);
  border-color: rgba(126, 184, 232, 0.26);
}

html[data-theme="dark"] body.home-page .model-demo-docs-tag--header,
body.home-page[data-theme="dark"] .model-demo-docs-tag--header {
  color: #5eead4;
  background: rgba(94, 234, 212, 0.1);
  border-color: rgba(94, 234, 212, 0.24);
}

html[data-theme="dark"] body.home-page .model-demo-docs-tag--auth,
body.home-page[data-theme="dark"] .model-demo-docs-tag--auth {
  color: #f0a84b;
  background: rgba(240, 168, 75, 0.12);
  border-color: rgba(240, 168, 75, 0.28);
}

html[data-theme="dark"] body.home-page .model-demo-docs-tag--status-pending,
body.home-page[data-theme="dark"] .model-demo-docs-tag--status-pending {
  color: #f0a84b;
  background: rgba(240, 168, 75, 0.12);
  border-color: rgba(240, 168, 75, 0.28);
}

html[data-theme="dark"] body.home-page .model-demo-docs-tag--status-ok,
body.home-page[data-theme="dark"] .model-demo-docs-tag--status-ok {
  color: #3ecf7a;
  background: rgba(62, 207, 122, 0.12);
  border-color: rgba(62, 207, 122, 0.28);
}

html[data-theme="dark"] body.home-page .model-demo-docs-tag--status-error,
body.home-page[data-theme="dark"] .model-demo-docs-tag--status-error {
  color: #ff8a8a;
  background: rgba(255, 138, 138, 0.12);
  border-color: rgba(255, 138, 138, 0.28);
}

html[data-theme="dark"] body.home-page .model-demo-docs-tag--type,
body.home-page[data-theme="dark"] .model-demo-docs-tag--type {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] body.home-page .model-demo-api-doc-notice,
body.home-page[data-theme="dark"] .model-demo-api-doc-notice {
  border-color: rgba(240, 168, 75, 0.32);
  background: rgba(240, 168, 75, 0.08);
}

html[data-theme="dark"] body.home-page .model-demo-about-plate,
body.home-page[data-theme="dark"] .model-demo-about-plate {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 100%);
}

html[data-theme="dark"] body.home-page .model-demo-about-usecase-item:hover,
html[data-theme="dark"] body.home-page .model-demo-about-usecase-item:focus-visible,
body.home-page[data-theme="dark"] .model-demo-about-usecase-item:hover,
body.home-page[data-theme="dark"] .model-demo-about-usecase-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body.home-page .model-demo-about-usecase-rate,
body.home-page[data-theme="dark"] .model-demo-about-usecase-rate {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] body.home-page .model-demo-about-usecase-comment,
body.home-page[data-theme="dark"] .model-demo-about-usecase-comment {
  color: rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] body.home-page .model-demo-about-concern-item:hover,
html[data-theme="dark"] body.home-page .model-demo-about-concern-item:focus-visible,
body.home-page[data-theme="dark"] .model-demo-about-concern-item:hover,
body.home-page[data-theme="dark"] .model-demo-about-concern-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body.home-page .model-demo-about-concern-comment,
body.home-page[data-theme="dark"] .model-demo-about-concern-comment {
  color: rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] body.home-page .model-demo-about-advice-item:hover,
html[data-theme="dark"] body.home-page .model-demo-about-advice-item:focus-visible,
body.home-page[data-theme="dark"] .model-demo-about-advice-item:hover,
body.home-page[data-theme="dark"] .model-demo-about-advice-item:focus-visible {
  background: transparent;
}

html[data-theme="dark"] body.home-page .model-demo-about-advice-comment,
body.home-page[data-theme="dark"] .model-demo-about-advice-comment {
  color: rgba(255, 255, 255, 0.8);
}

html[data-theme="dark"] body.home-page .model-demo-about-usecase-more-row,
body.home-page[data-theme="dark"] .model-demo-about-usecase-more-row {
  border-top-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] body.home-page .model-demo-about-usecase-more,
body.home-page[data-theme="dark"] .model-demo-about-usecase-more {
  color: rgba(255, 255, 255, 0.66);
}

html[data-theme="dark"] body.home-page .model-demo-about-usecase-more-count,
body.home-page[data-theme="dark"] .model-demo-about-usecase-more-count {
  color: rgba(255, 255, 255, 0.46);
}

html[data-theme="dark"] body.home-page .model-demo-about-icon--check,
body.home-page[data-theme="dark"] .model-demo-about-icon--check {
  color: #3ecf7a;
}

html[data-theme="dark"] body.home-page .model-demo-about-icon--check-blue,
body.home-page[data-theme="dark"] .model-demo-about-icon--check-blue {
  color: #6b8cff;
}

html[data-theme="dark"] body.home-page .model-demo-about-icon--alert,
body.home-page[data-theme="dark"] .model-demo-about-icon--alert {
  color: #f0a84b;
}

html[data-theme="dark"] body.home-page .model-demo-about-icon--thumbs-up,
body.home-page[data-theme="dark"] .model-demo-about-icon--thumbs-up {
  color: #3ecf7a;
}

html[data-theme="dark"] body.home-page .model-demo-about-icon--thumbs-down,
body.home-page[data-theme="dark"] .model-demo-about-icon--thumbs-down {
  color: #ff6b6b;
}

html[data-theme="dark"] body.home-page .model-demo-about-prompt-card,
body.home-page[data-theme="dark"] .model-demo-about-prompt-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 100%);
}

html[data-theme="dark"] body.home-page .model-demo-about-prompt-card-chrome,
body.home-page[data-theme="dark"] .model-demo-about-prompt-card-chrome {
  border-bottom-color: rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] body.home-page .model-demo-about-prompt-thumb,
body.home-page[data-theme="dark"] .model-demo-about-prompt-thumb {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] body.home-page .model-demo-about-prompt-thumb-placeholder,
body.home-page[data-theme="dark"] .model-demo-about-prompt-thumb-placeholder {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] body.home-page .model-demo-about-prompt-result-btn,
body.home-page[data-theme="dark"] .model-demo-about-prompt-result-btn {
  border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] body.home-page .model-demo-about-ratings-wrap,
body.home-page[data-theme="dark"] .model-demo-about-ratings-wrap {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] body.home-page .model-demo-about-ratings th,
html[data-theme="dark"] body.home-page .model-demo-about-ratings td,
body.home-page[data-theme="dark"] .model-demo-about-ratings th,
body.home-page[data-theme="dark"] .model-demo-about-ratings td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body.home-page .model-demo-about-ratings thead th,
body.home-page[data-theme="dark"] .model-demo-about-ratings thead th {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] body.home-page .model-demo-about-star-empty,
body.home-page[data-theme="dark"] .model-demo-about-star-empty {
  color: rgba(255, 255, 255, 0.2);
}

html[data-theme="dark"] body.home-page .model-demo-about-star-fill,
body.home-page[data-theme="dark"] .model-demo-about-star-fill {
  color: #f0c24a;
}

html[data-theme="dark"] body.home-page .model-demo-about-faq-item,
body.home-page[data-theme="dark"] .model-demo-about-faq-item {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] body.home-page .model-demo-about-faq-item[open],
body.home-page[data-theme="dark"] .model-demo-about-faq-item[open] {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

@media (hover: hover) {
html[data-theme="dark"] body.home-page .model-demo-about-faq-question:hover,
  html[data-theme="dark"] body.home-page .model-demo-about-faq-question:focus-visible,
  body.home-page[data-theme="dark"] .model-demo-about-faq-question:hover,
  body.home-page[data-theme="dark"] .model-demo-about-faq-question:focus-visible {
    background: rgba(255, 255, 255, 0.06);
  }
}

html[data-theme="dark"] body.home-page .model-demo-about-pricing-toggle-ui,
body.home-page[data-theme="dark"] .model-demo-about-pricing-toggle-ui {
  background: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] body.home-page .model-demo-about-pricing-toggle-input:checked + .model-demo-about-pricing-toggle-ui,
body.home-page[data-theme="dark"] .model-demo-about-pricing-toggle-input:checked + .model-demo-about-pricing-toggle-ui {
  background: #34c759;
}

html[data-theme="dark"] body.home-page .model-demo-about-pricing-toggle-ui::after,
body.home-page[data-theme="dark"] .model-demo-about-pricing-toggle-ui::after {
  background: #f5f5f5;
}

html[data-theme="dark"] body.home-page .model-demo-about-pricing-toggle-input:checked + .model-demo-about-pricing-toggle-ui::after,
body.home-page[data-theme="dark"] .model-demo-about-pricing-toggle-input:checked + .model-demo-about-pricing-toggle-ui::after {
  transform: translateX(20px);
}

@media (max-width: 720px) {
html[data-theme="dark"] body.home-page .model-demo-about-ratings[data-model-demo-pricing-table] tr,
  body.home-page[data-theme="dark"] .model-demo-about-ratings[data-model-demo-pricing-table] tr {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
  }

html[data-theme="dark"] body.home-page .model-demo-about-ratings[data-model-demo-pricing-table] td[data-pricing-cell="row-label"],
  body.home-page[data-theme="dark"] .model-demo-about-ratings[data-model-demo-pricing-table] td[data-pricing-cell="row-label"] {
    color: #ffffff;
  }

html[data-theme="dark"] body.home-page .model-demo-about-ratings[data-model-demo-pricing-table] td[data-pricing-cell="param"],
  body.home-page[data-theme="dark"] .model-demo-about-ratings[data-model-demo-pricing-table] td[data-pricing-cell="param"] {
    color: rgba(255, 255, 255, 0.82);
  }

html[data-theme="dark"] body.home-page .model-demo-about-ratings[data-model-demo-pricing-table] td[data-pricing-cell="price"],
  body.home-page[data-theme="dark"] .model-demo-about-ratings[data-model-demo-pricing-table] td[data-pricing-cell="price"] {
    border-top-color: rgba(255, 255, 255, 0.16);
  }

html[data-theme="dark"] body.home-page .model-demo-about-ratings[data-model-demo-pricing-table] td[data-pricing-cell="price"]::before,
  body.home-page[data-theme="dark"] .model-demo-about-ratings[data-model-demo-pricing-table] td[data-pricing-cell="price"]::before {
    color: rgba(255, 255, 255, 0.88);
  }

html[data-theme="dark"] body.home-page .model-demo-about-ratings[data-model-demo-pricing-table] .model-demo-about-pricing-value,
  body.home-page[data-theme="dark"] .model-demo-about-ratings[data-model-demo-pricing-table] .model-demo-about-pricing-value {
    color: #ffffff;
  }
}

.model-demo-layout-resizer[hidden] {
  display: none;
}

html[data-theme="dark"] body.home-page .model-demo-layout-resizer,
body.home-page[data-theme="dark"] .model-demo-layout-resizer {
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] body.home-page .model-demo-layout-resizer::before,
body.home-page[data-theme="dark"] .model-demo-layout-resizer::before {
  box-shadow: 0 0 0 4px rgba(16, 16, 16, 0.62);
}

html[data-theme="dark"] body.home-page .model-demo-studio-promo,
body.home-page[data-theme="dark"] .model-demo-studio-promo {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

@media (hover: hover) {
html[data-theme="dark"] body.home-page .model-demo-studio-promo:hover,
  html[data-theme="dark"] body.home-page .model-demo-studio-promo:focus-visible,
  body.home-page[data-theme="dark"] .model-demo-studio-promo:hover,
  body.home-page[data-theme="dark"] .model-demo-studio-promo:focus-visible {
    border-color: rgba(121, 151, 255, 0.35);
  }
}

html[data-theme="dark"] body.home-page .model-demo-studio-promo-icon,
body.home-page[data-theme="dark"] .model-demo-studio-promo-icon {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body.home-page .model-demo-window-bar,
body.home-page[data-theme="dark"] .model-demo-window-bar {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="dark"] body.home-page .model-demo-window-bar .model-demo-window-action,
body.home-page[data-theme="dark"] .model-demo-window-bar .model-demo-window-action {
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] body.home-page .model-demo-window-bar .model-demo-window-action:hover,
html[data-theme="dark"] body.home-page .model-demo-window-bar .model-demo-window-action:focus-visible,
body.home-page[data-theme="dark"] .model-demo-window-bar .model-demo-window-action:hover,
body.home-page[data-theme="dark"] .model-demo-window-bar .model-demo-window-action:focus-visible {
  background: rgba(121, 151, 255, 0.16);
  color: #7997ff;
}

html[data-theme="dark"] body.home-page .model-demo-preview,
html[data-theme="dark"] body.home-page .model-demo-form,
body.home-page[data-theme="dark"] .model-demo-preview,
body.home-page[data-theme="dark"] .model-demo-form {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body.home-page .model-demo-preview-card,
body.home-page[data-theme="dark"] .model-demo-preview-card {
  background: transparent;
}

html[data-theme="dark"] body.home-page .model-demo-preview-card.model-demo-generated-card,
body.home-page[data-theme="dark"] .model-demo-preview-card.model-demo-generated-card {
  background: transparent;
}

html[data-theme="dark"] body.home-page .model-demo-generation-spinner,
body.home-page[data-theme="dark"] .model-demo-generation-spinner {
  border-color: rgba(255, 255, 255, 0.24);
  border-top-color: #ffffff;
}

html[data-theme="dark"] body.home-page .model-demo-generation-status.is-error strong,
body.home-page[data-theme="dark"] .model-demo-generation-status.is-error strong {
  color: #fca5a5;
}

html[data-theme="dark"] body.home-page .model-demo-generation-label,
body.home-page[data-theme="dark"] .model-demo-generation-label {
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] body.home-page .model-demo-preview-placeholder span,
body.home-page[data-theme="dark"] .model-demo-preview-placeholder span {
  color: rgba(255, 255, 255, 0.54);
}

html[data-theme="dark"] body.home-page .model-demo-price-item,
body.home-page[data-theme="dark"] .model-demo-price-item {
  background: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] body.home-page .model-demo-price-item span,
body.home-page[data-theme="dark"] .model-demo-price-item span {
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] body.home-page .model-demo-multi-text-remove,
body.home-page[data-theme="dark"] .model-demo-multi-text-remove {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
}

html[data-theme="dark"] body.home-page .model-demo-multi-text-add,
body.home-page[data-theme="dark"] .model-demo-multi-text-add {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] body.home-page .model-demo-tooltip,
body.home-page[data-theme="dark"] .model-demo-tooltip {
  color: rgba(255, 255, 255, 0.58);
}

html[data-theme="dark"] body.home-page .model-demo-tooltip-bubble,
body.home-page[data-theme="dark"] .model-demo-tooltip-bubble {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1c1c1c;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  color: rgba(255, 255, 255, 0.76);
}

html[data-theme="dark"] body.home-page .model-demo-textarea-resize,
body.home-page[data-theme="dark"] .model-demo-textarea-resize {
  color: rgba(255, 255, 255, 0.36);
}

html[data-theme="dark"] body.home-page .model-demo-field textarea,
html[data-theme="dark"] body.home-page .model-demo-field select,
html[data-theme="dark"] body.home-page .model-demo-field input[type="url"],
html[data-theme="dark"] body.home-page .model-demo-field input[type="text"],
html[data-theme="dark"] body.home-page .model-demo-field input[type="number"],
body.home-page[data-theme="dark"] .model-demo-field textarea,
body.home-page[data-theme="dark"] .model-demo-field select,
body.home-page[data-theme="dark"] .model-demo-field input[type="url"],
body.home-page[data-theme="dark"] .model-demo-field input[type="text"],
body.home-page[data-theme="dark"] .model-demo-field input[type="number"] {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

html[data-theme="dark"] body.home-page .model-demo-select-button,
body.home-page[data-theme="dark"] .model-demo-select-button {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

html[data-theme="dark"] body.home-page .model-demo-select-button:hover,
html[data-theme="dark"] body.home-page .model-demo-select-button:focus-visible,
html[data-theme="dark"] body.home-page .model-demo-select-wrap.is-open .model-demo-select-button,
body.home-page[data-theme="dark"] .model-demo-select-button:hover,
body.home-page[data-theme="dark"] .model-demo-select-button:focus-visible,
body.home-page[data-theme="dark"] .model-demo-select-wrap.is-open .model-demo-select-button {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body.home-page .model-demo-select-menu,
body.home-page[data-theme="dark"] .model-demo-select-menu {
  border-color: rgba(255, 255, 255, 0.1);
  background: #1c1c1c;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] body.home-page .model-demo-select-option,
body.home-page[data-theme="dark"] .model-demo-select-option {
  color: rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] body.home-page .model-demo-select-option:hover,
html[data-theme="dark"] body.home-page .model-demo-select-option:focus-visible,
body.home-page[data-theme="dark"] .model-demo-select-option:hover,
body.home-page[data-theme="dark"] .model-demo-select-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body.home-page .model-demo-select-option[aria-selected="true"],
body.home-page[data-theme="dark"] .model-demo-select-option[aria-selected="true"] {
  background: #ffffff;
  color: #101010;
}

html[data-theme="dark"] body.home-page .model-demo-voice-id-preview,
body.home-page[data-theme="dark"] .model-demo-voice-id-preview {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] body.home-page .model-demo-voice-id-preview:hover,
html[data-theme="dark"] body.home-page .model-demo-voice-id-preview:focus-visible,
body.home-page[data-theme="dark"] .model-demo-voice-id-preview:hover,
body.home-page[data-theme="dark"] .model-demo-voice-id-preview:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

html[data-theme="dark"] body.home-page .model-demo-select-option[aria-selected="true"] .model-demo-voice-id-preview,
body.home-page[data-theme="dark"] .model-demo-select-option[aria-selected="true"] .model-demo-voice-id-preview {
  border-color: rgba(16, 16, 16, 0.14);
  background: rgba(16, 16, 16, 0.06);
  color: #101010;
}

html[data-theme="dark"] body.home-page .model-demo-select-option[aria-selected="true"] .model-demo-voice-id-preview:hover,
html[data-theme="dark"] body.home-page .model-demo-select-option[aria-selected="true"] .model-demo-voice-id-preview:focus-visible,
body.home-page[data-theme="dark"] .model-demo-select-option[aria-selected="true"] .model-demo-voice-id-preview:hover,
body.home-page[data-theme="dark"] .model-demo-select-option[aria-selected="true"] .model-demo-voice-id-preview:focus-visible {
  background: rgba(16, 16, 16, 0.1);
  color: #101010;
}

html[data-theme="dark"] body.home-page .model-demo-ratio-option,
body.home-page[data-theme="dark"] .model-demo-ratio-option {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.84);
}

html[data-theme="dark"] body.home-page .model-demo-ratio-option:hover,
html[data-theme="dark"] body.home-page .model-demo-ratio-option:focus-visible,
body.home-page[data-theme="dark"] .model-demo-ratio-option:hover,
body.home-page[data-theme="dark"] .model-demo-ratio-option:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] body.home-page .model-demo-ratio-option[aria-selected="true"],
body.home-page[data-theme="dark"] .model-demo-ratio-option[aria-selected="true"] {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.86);
  color: #101010;
}

html[data-theme="dark"] body.home-page .model-demo-double-slider,
body.home-page[data-theme="dark"] .model-demo-double-slider {
  border: 0;
  background: transparent;
}

html[data-theme="dark"] body.home-page .model-demo-slider-sublabel,
body.home-page[data-theme="dark"] .model-demo-slider-sublabel {
  color: rgba(255, 255, 255, 0.64);
}

html[data-theme="dark"] body.home-page .model-demo-slider-value,
body.home-page[data-theme="dark"] .model-demo-slider-value {
  background: rgba(121, 151, 255, 0.16);
  color: #9eb3ff;
}

html[data-theme="dark"] body.home-page .model-demo-slider-track input[type="range"]::-webkit-slider-runnable-track,
body.home-page[data-theme="dark"] .model-demo-slider-track input[type="range"]::-webkit-slider-runnable-track {
  height: 8.5px;
  background: linear-gradient(
    90deg,
    #4a5f9e 0%,
    #4a5f9e var(--model-demo-slider-progress),
    rgba(255, 255, 255, 0.14) var(--model-demo-slider-progress),
    rgba(255, 255, 255, 0.14) 100%
  );
}

html[data-theme="dark"] body.home-page .model-demo-slider-track input[type="range"]::-moz-range-track,
body.home-page[data-theme="dark"] .model-demo-slider-track input[type="range"]::-moz-range-track {
  height: 8.5px;
  background: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] body.home-page .model-demo-slider-track input[type="range"]::-moz-range-progress,
body.home-page[data-theme="dark"] .model-demo-slider-track input[type="range"]::-moz-range-progress {
  height: 8.5px;
  background: #4a5f9e;
}

html[data-theme="dark"] body.home-page .model-demo-slider-track input[type="range"]::-webkit-slider-thumb,
body.home-page[data-theme="dark"] .model-demo-slider-track input[type="range"]::-webkit-slider-thumb {
  border-color: #202020;
  background: #9eb3ff;
  box-shadow: none;
}

html[data-theme="dark"] body.home-page .model-demo-slider-track input[type="range"]::-moz-range-thumb,
body.home-page[data-theme="dark"] .model-demo-slider-track input[type="range"]::-moz-range-thumb {
  border-color: #202020;
  background: #9eb3ff;
  box-shadow: none;
}

html[data-theme="dark"] body.home-page .model-demo-slider-track input[type="range"]:focus-visible::-webkit-slider-thumb,
body.home-page[data-theme="dark"] .model-demo-slider-track input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(121, 151, 255, 0.45);
}

html[data-theme="dark"] body.home-page .model-demo-slider-track input[type="range"]:focus-visible::-moz-range-thumb,
body.home-page[data-theme="dark"] .model-demo-slider-track input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(121, 151, 255, 0.45);
}

html[data-theme="dark"] body.home-page .model-demo-upload-zone,
body.home-page[data-theme="dark"] .model-demo-upload-zone {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

html[data-theme="dark"] body.home-page .model-demo-upload-zone:hover,
html[data-theme="dark"] body.home-page .model-demo-upload.is-dragover .model-demo-upload-zone,
body.home-page[data-theme="dark"] .model-demo-upload-zone:hover,
body.home-page[data-theme="dark"] .model-demo-upload.is-dragover .model-demo-upload-zone {
  border-color: rgba(121, 151, 255, 0.72);
  background: rgba(121, 151, 255, 0.12);
}

html[data-theme="dark"] body.home-page .model-demo-upload-hint,
html[data-theme="dark"] body.home-page .model-demo-upload-status,
body.home-page[data-theme="dark"] .model-demo-upload-hint,
body.home-page[data-theme="dark"] .model-demo-upload-status {
  color: rgba(255, 255, 255, 0.58);
}

html[data-theme="dark"] body.home-page .model-demo-upload-card,
body.home-page[data-theme="dark"] .model-demo-upload-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] body.home-page .model-demo-upload-preview,
body.home-page[data-theme="dark"] .model-demo-upload-preview {
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body.home-page .model-demo-upload-name,
body.home-page[data-theme="dark"] .model-demo-upload-name {
  color: rgba(255, 255, 255, 0.84);
}

html[data-theme="dark"] body.home-page .model-demo-upload-progress,
body.home-page[data-theme="dark"] .model-demo-upload-progress {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body.home-page .model-demo-upload-remove,
body.home-page[data-theme="dark"] .model-demo-upload-remove,
html[data-theme="dark"] body.home-page .model-demo-upload-add-zone,
body.home-page[data-theme="dark"] .model-demo-upload-add-zone {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] body.home-page .model-demo-upload-remove,
body.home-page[data-theme="dark"] .model-demo-upload-remove {
  background: rgba(16, 16, 16, 0.82);
  color: #ffffff;
}

html[data-theme="dark"] body.home-page .model-demo-upload-card.is-uploaded .model-demo-upload-preview,
body.home-page[data-theme="dark"] .model-demo-upload-card.is-uploaded .model-demo-upload-preview {
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body.home-page .model-demo-upload-remove:hover,
html[data-theme="dark"] body.home-page .model-demo-upload-remove:focus-visible,
body.home-page[data-theme="dark"] .model-demo-upload-remove:hover,
body.home-page[data-theme="dark"] .model-demo-upload-remove:focus-visible {
  background: #dc2626;
  color: #ffffff;
}

html[data-theme="dark"] body.home-page .model-demo-upload-add-zone:hover,
html[data-theme="dark"] body.home-page .model-demo-upload-add-zone:focus-visible,
html[data-theme="dark"] body.home-page .model-demo-upload-add-zone.is-dragover,
body.home-page[data-theme="dark"] .model-demo-upload-add-zone:hover,
body.home-page[data-theme="dark"] .model-demo-upload-add-zone:focus-visible,
body.home-page[data-theme="dark"] .model-demo-upload-add-zone.is-dragover {
  border-color: rgba(121, 151, 255, 0.58);
  background: rgba(121, 151, 255, 0.12);
  color: #ffffff;
}

html[data-theme="dark"] body.home-page .model-demo-upload-card.is-uploaded .model-demo-upload-preview:hover,
html[data-theme="dark"] body.home-page .model-demo-upload-card.is-uploaded .model-demo-upload-preview:focus-visible,
body.home-page[data-theme="dark"] .model-demo-upload-card.is-uploaded .model-demo-upload-preview:hover,
body.home-page[data-theme="dark"] .model-demo-upload-card.is-uploaded .model-demo-upload-preview:focus-visible {
  border-color: rgba(121, 151, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(121, 151, 255, 0.13);
}

html[data-theme="dark"] body.home-page .model-demo-upload-preview video,
body.home-page[data-theme="dark"] .model-demo-upload-preview video {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] body.home-page .model-demo-segment span,
body.home-page[data-theme="dark"] .model-demo-segment span {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
}

html[data-theme="dark"] body.home-page .model-demo-segment span:hover,
html[data-theme="dark"] body.home-page .model-demo-segment input:focus-visible + span,
body.home-page[data-theme="dark"] .model-demo-segment span:hover,
body.home-page[data-theme="dark"] .model-demo-segment input:focus-visible + span {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] body.home-page .model-demo-segment input:checked + span,
body.home-page[data-theme="dark"] .model-demo-segment input:checked + span {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.86);
  color: #101010;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] body.home-page .model-demo-checkbox-box,
body.home-page[data-theme="dark"] .model-demo-checkbox-box {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] body.home-page .model-demo-checkbox:hover .model-demo-checkbox-box,
body.home-page[data-theme="dark"] .model-demo-checkbox:hover .model-demo-checkbox-box {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] body.home-page .model-demo-checkbox input:focus-visible + .model-demo-checkbox-box,
body.home-page[data-theme="dark"] .model-demo-checkbox input:focus-visible + .model-demo-checkbox-box {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] body.home-page .model-demo-checkbox input:checked + .model-demo-checkbox-box,
body.home-page[data-theme="dark"] .model-demo-checkbox input:checked + .model-demo-checkbox-box {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.86);
}

html[data-theme="dark"] body.home-page .model-demo-checkbox input:checked + .model-demo-checkbox-box::after,
body.home-page[data-theme="dark"] .model-demo-checkbox input:checked + .model-demo-checkbox-box::after {
  border-color: #101010;
}

html[data-theme="dark"] body.home-page .studio-toggle-switch,
body.home-page[data-theme="dark"] .studio-toggle-switch {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] body.home-page .studio-toggle-switch:hover,
body.home-page[data-theme="dark"] .studio-toggle-switch:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] body.home-page .studio-toggle-switch:focus-within,
body.home-page[data-theme="dark"] .studio-toggle-switch:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] body.home-page .studio-toggle-switch-track,
body.home-page[data-theme="dark"] .studio-toggle-switch-track {
  background: rgba(255, 255, 255, 0.16);
}

html[data-theme="dark"] body.home-page .studio-toggle-switch input:checked + .studio-toggle-switch-track,
body.home-page[data-theme="dark"] .studio-toggle-switch input:checked + .studio-toggle-switch-track {
  background: #34c759;
}

/* Demogen gallery (на всю ширину под формой и результатом) */
.model-demo-demogen-section[hidden] {
  display: none;
}

html[data-theme="dark"] body.home-page .model-demo-demogen-title,
body.home-page[data-theme="dark"] .model-demo-demogen-title {
  opacity: 0.62;
}

html[data-theme="dark"] body.home-page .model-demo-demogen-tile-caption,
body.home-page[data-theme="dark"] .model-demo-demogen-tile-caption {
  color: rgba(255, 255, 255, 0.68);
}

.model-demo-demogen-section:not([hidden]) {
  margin-bottom: calc(var(--model-demo-sections-gap) * -0.5);
}

html[data-theme="dark"] body.home-page .model-demo-demogen-tile-audio-placeholder,
body.home-page[data-theme="dark"] .model-demo-demogen-tile-audio-placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.models-type-catalog-body {
  margin-top: clamp(32px, 4cqw, 48px);
}

.models-type-catalog .features-model-section {
  margin-top: 0;
}

.model-demo {
  --model-demo-card-padding: clamp(14px, 2cqw, 24px);
  container-type: inline-size;
  padding-top: clamp(7px, 0.9cqw, 12px);
}

.model-demo-nav-mount {
  margin-bottom: clamp(14px, 2cqw, 22px);
}

.model-nav {
  font-size: 15px;
  font-weight: 400;
  line-height: 19px;
  color: #101010;
}

.model-nav-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 6px 12px;
}

.model-nav-item {
  display: inline-flex;
  align-items: center;
}

.model-nav-segment {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border-radius: 8px;
  padding: 5px 7px;
  margin: -5px -7px;
  transition: background 140ms ease;
}

.model-nav-item.has-dropdown .model-nav-segment {
  padding: 5px 5px 5px 7px;
  margin: -5px -5px -5px -7px;
}

.model-nav-item.has-dropdown:hover .model-nav-segment,
.model-nav-item.has-dropdown.is-open .model-nav-segment {
  background: rgba(16, 16, 16, 0.07);
}

.model-nav-link {
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 19px;
  text-decoration: none;
}

.model-nav-link:hover,
.model-nav-link:focus-visible {
  text-decoration: none;
}

.model-nav-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 2px;
  margin: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(16, 16, 16, 0.46);
  cursor: pointer;
}

.model-nav-trigger:hover,
.model-nav-trigger:focus-visible {
  color: rgba(16, 16, 16, 0.85);
}

.model-nav-chevron {
  display: block;
  flex-shrink: 0;
  transform: translateY(2px);
}

.model-nav-flyout {
  position: fixed;
  z-index: 80;
  box-sizing: border-box;
  width: max-content;
  min-width: 0;
  max-width: min(96vw, 920px);
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.model-nav-flyout-inner {
  overflow: visible;
  width: max-content;
  max-width: 100%;
}

.model-nav-flyout-columns {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: calc(10px / 1.5);
  width: max-content;
  max-width: 100%;
}

.model-nav-column {
  box-sizing: border-box;
  flex: 0 0 auto;
  align-self: flex-start;
  width: max-content;
  min-width: 0;
  max-width: min(18rem, 42vw);
  margin: 0;
  padding: 8px 0;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: min(70vh, 520px);
  border-radius: 12px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(16, 16, 16, 0.08),
    0 12px 36px rgba(16, 16, 16, 0.12);
}

.model-nav-column-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 1px 6px;
  border-radius: 8px;
  transition: background 120ms ease;
}

.model-nav-column-item:hover,
.model-nav-column-item.is-active-branch {
  background: rgba(16, 16, 16, 0.06);
}

.model-nav-column-link {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  font: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.model-nav-column-link:hover,
.model-nav-column-link:focus-visible {
  text-decoration: none;
}

.model-nav-column-link.is-current {
  font-weight: 600;
}

.model-nav-column-branch {
  flex-shrink: 0;
  padding-right: 8px;
  color: rgba(16, 16, 16, 0.38);
}

.model-nav-column-chevron {
  display: block;
}

@media (max-width: 1080px) {
.model-nav-flyout.is-mobile-drilldown {
    width: auto;
    max-width: none;
  }

.model-nav-flyout.is-mobile-drilldown .model-nav-flyout-inner,
  .model-nav-flyout.is-mobile-drilldown .model-nav-flyout-columns {
    width: 100%;
    max-width: 100%;
  }

.model-nav-flyout.is-mobile-drilldown .model-nav-flyout-columns {
    display: block;
  }

.model-nav-flyout.is-mobile-drilldown .model-nav-column {
    width: 100%;
    max-width: none;
    max-height: var(--model-nav-flyout-max-height, min(70vh, 520px));
  }

.model-nav-column--mobile .model-nav-column-item.has-children {
    cursor: pointer;
  }

.model-nav-column-link--drill {
    flex: 1;
    min-width: 0;
    border: 0;
    margin: 0;
    padding: 8px 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

.model-nav-column-link--drill.is-current {
    font-weight: 600;
  }

.model-nav-column-back {
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0 0 4px;
    padding: 4px 12px 8px 6px;
    border-bottom: 1px solid rgba(16, 16, 16, 0.08);
    background: #ffffff;
  }

.model-nav-column-back {
    display: flex;
    align-items: center;
    gap: 10px;
  }

.model-nav-column-back .model-nav-column-level-title {
    flex: 1;
    min-width: 0;
    margin-left: auto;
    padding-right: 4px;
    text-align: right;
  }

.model-nav-column-back-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(16, 16, 16, 0.06);
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }

.model-nav-column-back-icon {
    display: block;
    flex: 0 0 auto;
  }

.model-nav-column-level-title {
    min-width: 0;
    overflow: hidden;
    color: rgba(16, 16, 16, 0.58);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.model-demo-hero {
  max-width: none;
}

.model-demo-hero-heading {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4cqw, 18px);
  min-width: 0;
}

.model-demo-brand-icon {
  display: block;
  flex: 0 0 auto;
  width: clamp(40px, 4cqw, 52px);
  height: clamp(40px, 4cqw, 52px);
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.model-demo-head-title {
  margin: 0;
  min-width: 0;
  color: inherit;
  font-size: clamp(42px, 4.2cqw, 56px);
  font-weight: 500;
  line-height: 1.08;
}

.model-demo-description {
  margin: 16px 0 0;
  color: inherit;
  font-size: clamp(18px, 1.55cqw, 20px);
  font-weight: 400;
  line-height: 1.35;
  opacity: 0.7;
}

.model-demo-tabs-sticky {
  --model-demo-tabs-bg-opacity: 0;
  position: relative;
  margin-top: 15px;
  margin-bottom: clamp(8px, 0.93cqw, 12px);
}

.model-demo-tabs-sticky-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(16, 16, 16, 0.1);
}

.model-demo-tabs-sticky-title {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  min-width: 0;
  color: inherit;
}

.model-demo-tabs-sticky-brand-icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.model-demo-tabs-sticky-title-text {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.model-demo-page-tabs {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}

.model-demo-page-tab {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin: 0 0 -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 13px 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 19px;
  white-space: nowrap;
  opacity: 0.58;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.16s ease, border-color 0.16s ease;
}

.model-demo-page-tab.is-active {
  border-bottom-color: currentColor;
  font-weight: 500;
  opacity: 1;
}

@media (hover: hover) {
.model-demo-page-tab:hover,
  .model-demo-page-tab:focus-visible {
    opacity: 0.82;
  }

.model-demo-page-tab.is-active:hover,
  .model-demo-page-tab.is-active:focus-visible {
    opacity: 1;
  }
}

.model-demo-sections {
  --model-demo-sections-gap: clamp(56px, 7cqw, 96px);
  display: flex;
  flex-direction: column;
  gap: var(--model-demo-sections-gap);
}

.model-demo-page-section {
  scroll-margin-top: calc(var(--model-demo-tabs-sticky-height, 52px) + 16px);
}

@media (min-width: 1081px) {
.model-demo-tabs-sticky {
    position: sticky;
    top: 0;
    z-index: 6;
  }

.model-demo-tabs-sticky::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: auto;
    bottom: 0;
    left: 50%;
    width: 100vw;
    background: rgba(var(--home-header-bg-rgb), var(--model-demo-tabs-bg-opacity));
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
  }

.model-demo-tabs-sticky-bar {
    position: relative;
    z-index: 1;
  }

.model-demo-tabs-sticky-title {
    display: flex;
    align-self: center;
    flex: 0 1 auto;
    max-width: min(48%, 420px);
    opacity: 0;
    transform: translateY(4px);
    visibility: hidden;
    transition:
      opacity 0.24s ease,
      transform 0.24s ease,
      visibility 0s linear 0.24s;
  }

.model-demo-tabs-sticky.is-stuck-title-visible .model-demo-tabs-sticky-title {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition:
      opacity 0.24s ease,
      transform 0.24s ease,
      visibility 0s;
  }

.model-demo-tabs-sticky:not(.is-stuck-title-visible) .model-demo-tabs-sticky-title {
    transition:
      opacity 0.1s ease,
      transform 0.1s ease,
      visibility 0s linear 0.1s;
  }
}

.model-demo-api-section {
  margin-top: 0;
}

.model-demo-api-lead {
  margin: 0 0 18px;
  max-width: 720px;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.72;
}

.model-demo-api-code-card {
  max-width: none;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 18px;
  background: rgba(16, 16, 16, 0.03);
}

.model-demo-api-code-card .home-api-code-panel {
  min-height: 280px;
}

.model-demo-api-code-card .home-api-code-header {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.42);
}

.model-demo-api-code-card .home-api-window-dots {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.model-demo-api-code-card .home-api-window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.28;
}

.model-demo-api-code-card .home-api-tabs {
  display: flex;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.model-demo-api-code-card .home-api-tabs::-webkit-scrollbar {
  display: none;
}

.model-demo-api-code-card .home-api-tab {
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.58;
  cursor: pointer;
}

.model-demo-api-code-card .home-api-tab.is-active {
  background: rgba(16, 16, 16, 0.08);
  opacity: 1;
}

.model-demo-api-code-card .home-api-code-body {
  min-width: 0;
}

.model-demo-api-code-card .home-api-code-panel {
  display: none;
  box-sizing: border-box;
  margin: 0;
  overflow-x: auto;
  padding: 24px;
  color: rgba(16, 16, 16, 0.78);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
}

.model-demo-api-code-card .home-api-code-panel.is-active {
  display: block;
}

.model-demo-api-code-card .home-api-code-panel code {
  font: inherit;
}

.model-demo-api-code-card .home-api-token-command {
  color: #2557fe;
}

.model-demo-api-code-card .home-api-token-flag,
.model-demo-api-code-card .home-api-token-key {
  color: #8b5cf6;
}

.model-demo-api-code-card .home-api-token-string {
  color: #0f9f6e;
}

.model-demo-api-code-card .home-api-token-bool {
  color: #d97706;
}

.model-demo-api-code-card .home-api-token-env {
  color: #dc2626;
}

.model-demo-docs-page-section#api .model-demo-docs-block {
  padding-bottom: clamp(32px, 3.4cqw, 48px);
}

.model-demo-docs-page-section#api .model-demo-docs-lead {
  margin-bottom: 0;
}

.model-demo-docs-page-section#api .model-demo-docs-block-title {
  margin-bottom: 12px;
}

.model-demo-docs-page-section#api .model-demo-docs-text {
  margin: 0 0 12px;
  max-width: 100%;
}

.model-demo-docs-page-section#api .model-demo-docs-text + .model-demo-api-snippet {
  margin-top: 0;
}

.model-demo-docs-page-section#api .model-demo-docs-list {
  margin: 0 0 14px;
}

.model-demo-docs-page-section#api .model-demo-docs-list + .model-demo-api-snippet {
  margin-top: 4px;
}

.model-demo-api-snippet {
  margin: 0 0 16px;
  overflow-x: auto;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-left: 3px solid rgba(37, 87, 254, 0.5);
  border-radius: 0 12px 12px 0;
  background: rgba(16, 16, 16, 0.03);
}

.model-demo-api-snippet .model-demo-docs-code {
  margin: 0;
  padding: 14px 16px;
  border-radius: 0;
  background: transparent;
}

.model-demo-docs-page-section#api .model-demo-docs-table-wrap {
  margin-top: 8px;
}

.model-demo-docs-page-section#api .model-demo-docs-footer-link-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: clamp(24px, 2.8cqw, 36px);
  padding-top: 0;
}

.model-demo-api-footer-sep {
  color: inherit;
  font-size: 15px;
  line-height: 1;
  opacity: 0.45;
}

.model-demo-compare-section {
  box-sizing: border-box;
  margin-top: clamp(24px, 2.8cqw, 36px);
  padding: clamp(36px, 4cqw, 56px) clamp(24px, 3cqw, 40px);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  background: rgba(16, 16, 16, 0.04);
  text-align: center;
}

.model-demo-compare-title {
  margin: 0;
  font-size: clamp(22px, 2.2cqw, 28px);
  font-weight: 500;
  line-height: 1.2;
}

.model-demo-section-heading {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.2cqw, 28px);
  font-weight: 500;
  line-height: 1.2;
}

.model-demo-compare-text {
  margin: 14px auto 0;
  max-width: 520px;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.72;
}

.model-demo-compare-link {
  display: inline-flex;
  margin-top: 22px;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.16s ease;
}

@media (hover: hover) {
.model-demo-compare-link:hover,
  .model-demo-compare-link:focus-visible {
    opacity: 0.72;
  }
}

.model-demo-docs {
  --model-demo-docs-body-opacity: 0.9;
  display: grid;
  grid-template-columns: minmax(148px, 196px) minmax(0, 1fr);
  gap: clamp(20px, 2.8cqw, 40px);
  align-items: stretch;
  /* inline-size на .model-demo ломает sticky у вложенной навигации */
  container-type: normal;
}

.model-demo-docs-nav {
  min-height: 0;
}

.model-demo-docs-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.model-demo-docs-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.model-demo-docs-nav-group + .model-demo-docs-nav-group {
  margin-top: 6px;
}

.model-demo-docs-nav-heading {
  margin: 0 0 6px;
  padding: 0 10px 0 12px;
  color: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  opacity: 1;
}

.model-demo-docs-nav-link {
  display: block;
  margin: 0;
  padding: 7px 10px 7px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  color: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  opacity: 0.58;
  text-decoration: none;
  transition: opacity 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.model-demo-docs-nav-link.is-active {
  border-left-color: currentColor;
  font-weight: 500;
  opacity: 1;
}

@media (hover: hover) {
.model-demo-docs-nav-link:hover,
  .model-demo-docs-nav-link:focus-visible {
    opacity: 0.82;
  }

.model-demo-docs-nav-link.is-active:hover,
  .model-demo-docs-nav-link.is-active:focus-visible {
    opacity: 1;
  }
}

.model-demo-docs-content {
  --model-demo-docs-text-max: 720px;
  --model-demo-docs-panel-fixed: 750px;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 4.5cqw, 64px);
  min-width: 0;
  color: inherit;
}

.model-demo-docs-panel-70 {
  box-sizing: border-box;
  width: min(var(--model-demo-docs-panel-fixed), 100%);
  max-width: 100%;
}

.model-demo-docs-page-section {
  margin-top: 0;
}

.model-demo-docs-section-title {
  margin: 0 0 clamp(20px, 2.4cqw, 28px);
  padding: 0;
  color: inherit;
  font-size: clamp(29px, 3.1cqw, 39px);
  font-weight: 500;
  line-height: 1.12;
  opacity: 1;
}

.model-demo-docs-block {
  scroll-margin-top: calc(var(--model-demo-tabs-sticky-height, 52px) + 16px);
  padding-bottom: clamp(28px, 3.2cqw, 44px);
}

.model-demo-docs-block:last-child {
  padding-bottom: 0;
}

.model-demo-docs-block-title {
  margin: 0 0 14px;
  color: inherit;
  font-size: clamp(23px, 2.5cqw, 31px);
  font-weight: 500;
  line-height: 1.2;
  opacity: 1;
}

.model-demo-docs-block-subtitle {
  margin: 0 0 12px;
  color: inherit;
  font-size: clamp(17px, 1.85cqw, 21px);
  font-weight: 500;
  line-height: 1.25;
  opacity: 1;
}

.model-demo-docs-lead,
.model-demo-docs-text,
.model-demo-docs-list,
.model-demo-docs-steps,
.model-demo-docs-feature-list,
.model-demo-docs-quote,
.model-demo-docs-code,
.model-demo-docs-table,
.model-demo-docs-footer-link {
  opacity: var(--model-demo-docs-body-opacity);
}

.model-demo-docs-lead,
.model-demo-docs-text {
  margin: 0;
  max-width: 720px;
  color: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}

.model-demo-about-review {
  width: 100%;
  max-width: none;
  white-space: pre-wrap;
}

.model-family-operations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1024px) {
.model-family-operations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
.model-family-operations-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.model-family-operation-card {
  display: block;
  box-sizing: border-box;
  min-height: 100%;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  padding: clamp(16px, 1.6cqw, 22px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 80px rgba(16, 16, 16, 0.08);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

a.model-family-operation-card:hover {
  border-color: rgba(16, 16, 16, 0.16);
  box-shadow: 0 28px 88px rgba(16, 16, 16, 0.11);
}

.model-family-operation-card-title {
  margin: 0;
  color: inherit;
  font-size: clamp(17px, 1.55cqw, 21px);
  font-weight: 500;
  line-height: 1.2;
}

.model-family-operation-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.model-family-operation-card-top .model-family-operation-card-title {
  flex: 1;
  min-width: 0;
}

.model-family-operation-card-price {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: auto auto;
  column-gap: 6px;
  align-items: baseline;
  justify-content: end;
  color: inherit;
  text-align: right;
  white-space: nowrap;
}

.model-family-operation-card-price-prefix {
  font-size: clamp(17px, 1.55cqw, 21px);
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.48;
}

.model-family-operation-card-price-amount {
  font-size: clamp(17px, 1.55cqw, 21px);
  font-weight: 500;
  line-height: 1.2;
}

.model-family-operation-card-purpose {
  margin: 10px 0 0;
  color: inherit;
  font-size: clamp(14px, 1.15cqw, 16px);
  font-weight: 400;
  line-height: 1.4;
  opacity: 0.68;
}

.model-family .model-demo-sections {
  margin-top: clamp(14px, 1.6cqw, 20px);
  --model-demo-sections-gap: clamp(32px, 4cqw, 44px);
}

.model-family .model-demo-docs-block {
  padding-bottom: 0;
}

.model-family #family-operations .model-demo-docs-block-title {
  margin-bottom: clamp(12px, 1.4cqw, 16px);
}

.model-family #family-playground .model-demo-page-section {
  margin-top: clamp(14px, 1.6cqw, 20px);
}

.model-demo-docs-lead + .model-demo-docs-list {
  margin-top: 14px;
}

.model-demo-docs-list,
.model-demo-docs-steps,
.model-demo-docs-feature-list {
  margin: 0;
  padding: 0;
  max-width: 720px;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.model-demo-docs-list {
  list-style: disc;
  padding-left: 1.25em;
}

.model-demo-docs-list li + li,
.model-demo-docs-steps li + li {
  margin-top: 8px;
}

.model-demo-docs-steps {
  list-style: decimal;
  padding-left: 1.35em;
}

.model-demo-docs-feature-list {
  list-style: none;
  padding: 0;
}

.model-demo-docs-feature-list li {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
}

.model-demo-docs-feature-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.model-demo-docs-feature-list strong {
  font-size: 16px;
  font-weight: 500;
  opacity: 1;
}

.model-demo-docs-feature-list span {
  opacity: 1;
}

.model-demo-docs-quote {
  margin: 0;
  max-width: 720px;
  padding: 14px 16px;
  border-left: 3px solid rgba(16, 16, 16, 0.2);
  border-radius: 0 10px 10px 0;
  background: rgba(16, 16, 16, 0.04);
  color: inherit;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
}

.model-demo-docs-code-wrap {
  margin: 12px 0 0;
  max-width: 100%;
  overflow-x: auto;
}

.model-demo-docs-code {
  margin: 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(16, 16, 16, 0.06);
  color: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.model-demo-docs-footer-link-wrap {
  margin: clamp(20px, 2.5cqw, 32px) 0 0;
  padding-top: 8px;
}

.model-demo-docs-footer-link {
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.16s ease;
}

@media (hover: hover) {
.model-demo-docs-footer-link:hover,
  .model-demo-docs-footer-link:focus-visible {
    opacity: 1;
  }
}

.model-demo-docs-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.model-demo-docs-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.4;
}

.model-demo-docs-table th,
.model-demo-docs-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(16, 16, 16, 0.1);
  text-align: left;
  vertical-align: top;
}

.model-demo-docs-table th {
  font-weight: 500;
}

.model-demo-docs-table code {
  font-size: 14px;
}

.model-demo-docs-table--api-input {
  min-width: 720px;
  font-size: 14px;
}

.model-demo-docs-table--api-input th:nth-child(1),
.model-demo-docs-table--api-input td:nth-child(1) {
  white-space: nowrap;
}

.model-demo-docs-table--api-input th:nth-child(5),
.model-demo-docs-table--api-input td:nth-child(5) {
  min-width: 140px;
  max-width: 220px;
}

.model-demo-docs-table--api-input th:nth-child(6),
.model-demo-docs-table--api-input td:nth-child(6) {
  min-width: 200px;
}

.model-demo-docs-table-empty {
  opacity: 0.45;
}

.model-demo-docs-tag {
  display: inline-block;
  margin: 0 2px 2px 0;
  padding: 3px 8px;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 8px;
  background: rgba(16, 16, 16, 0.06);
  color: inherit;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  vertical-align: baseline;
}

.model-demo-docs-tag--field {
  color: #6d4cff;
  background: rgba(109, 76, 255, 0.08);
  border-color: rgba(109, 76, 255, 0.22);
}

.model-demo-docs-tag--method {
  color: #2557fe;
  background: rgba(37, 87, 254, 0.1);
  border-color: rgba(37, 87, 254, 0.24);
}

.model-demo-docs-tag--endpoint {
  color: #1d6fb8;
  background: rgba(29, 111, 184, 0.08);
  border-color: rgba(29, 111, 184, 0.2);
  white-space: normal;
  word-break: break-all;
}

.model-demo-docs-tag--header {
  color: #0f766e;
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.22);
}

.model-demo-docs-tag--auth {
  color: #b45309;
  background: rgba(180, 83, 9, 0.08);
  border-color: rgba(180, 83, 9, 0.22);
}

.model-demo-docs-tag--status-pending {
  color: #b45309;
  background: rgba(180, 83, 9, 0.08);
  border-color: rgba(180, 83, 9, 0.22);
}

.model-demo-docs-tag--status-ok {
  color: #1a9a55;
  background: rgba(26, 154, 85, 0.1);
  border-color: rgba(26, 154, 85, 0.24);
}

.model-demo-docs-tag--status-error {
  color: #d64545;
  background: rgba(214, 69, 69, 0.08);
  border-color: rgba(214, 69, 69, 0.22);
}

.model-demo-docs-tag--type {
  color: rgba(16, 16, 16, 0.72);
  background: rgba(16, 16, 16, 0.05);
  border-color: rgba(16, 16, 16, 0.12);
}

.model-demo-docs-page-section#api .model-demo-docs-lead code:not([class*="model-demo-docs-tag"]),
.model-demo-docs-page-section#api .model-demo-docs-text code:not([class*="model-demo-docs-tag"]),
.model-demo-docs-page-section#api .model-demo-docs-list code:not([class*="model-demo-docs-tag"]) {
  font-size: inherit;
}

.model-demo-docs-list a,
.model-demo-docs-text a {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.model-demo-docs-page-section > .model-demo-docs-section-title {
  margin-top: 0;
}

.model-demo-api-doc-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 clamp(20px, 2.4cqw, 28px);
  padding: 14px 16px;
  border: 1px solid rgba(196, 122, 18, 0.28);
  border-radius: 14px;
  background: rgba(196, 122, 18, 0.06);
}

.model-demo-api-doc-notice-text {
  margin: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  opacity: var(--model-demo-docs-body-opacity);
}

.model-demo-api-doc-notice-text a {
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.model-demo-about-plate {
  position: relative;
  overflow: visible;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 16, 16, 0.03) 0%, rgba(16, 16, 16, 0.06) 100%);
}

.model-demo-about-plate-bg-logo {
  position: absolute;
  top: 50%;
  right: clamp(2px, 0.75vw, 10px);
  z-index: 0;
  width: clamp(168px, 42%, 300px);
  height: clamp(168px, 42%, 300px);
  opacity: 0.09;
  background-color: currentColor;
  -webkit-mask-position: right center;
  mask-position: right center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  transform: translate(-15px, -50%);
  pointer-events: none;
}

.model-demo-about-plate-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
}

.model-demo-about-plate-title {
  margin: 0 0 14px;
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  opacity: 1;
  text-transform: uppercase;
}

.model-demo-about-plate-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.model-demo-about-usecase-list {
  gap: 0;
}

.model-demo-about-plate-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  opacity: var(--model-demo-docs-body-opacity);
}

.model-demo-about-usecase-item {
  opacity: 1;
  margin-inline: -20px;
  padding: 9px 20px;
  border-radius: 0;
  transition: background-color 120ms ease;
}

.model-demo-about-usecase-item.has-comment {
  cursor: pointer;
}

.model-demo-about-usecase-item:hover,
.model-demo-about-usecase-item:focus-visible {
  background: rgba(16, 16, 16, 0.05);
  outline: none;
}

.model-demo-about-plate-item strong {
  font-weight: 600;
}

.model-demo-about-usecase-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 4px;
  min-width: 0;
}

.model-demo-about-usecase-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 8px;
  min-width: 0;
}

.model-demo-about-usecase-title-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.model-demo-about-usecase-rate {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(17, 24, 39, 0.04);
  color: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transform: translateY(1px);
  justify-self: end;
}

.model-demo-about-usecase-title-inline > span:first-child {
  min-width: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.34;
}

.model-demo-about-usecase-title-inline .model-demo-tooltip {
  justify-self: start;
}

.model-demo-about-usecase-title-inline .model-demo-tooltip-icon {
  transform: translateY(1px);
}

.model-demo-about-usecase-comment {
  display: none;
  margin: 0;
  color: rgba(16, 16, 16, 0.76);
  font-size: 15px;
  line-height: 1.35;
}

.model-demo-about-usecase-item.is-open .model-demo-about-usecase-comment {
  display: block;
  margin: 4px 0 8px;
}

.model-demo-about-usecase-list > .model-demo-about-usecase-item:last-of-type {
  margin-bottom: 0;
}

.model-demo-about-concern-item {
  opacity: 1;
  margin-inline: -20px;
  padding: 9px 20px;
  border-radius: 0;
  transition: background-color 120ms ease;
}

.model-demo-about-concern-item.has-comment {
  cursor: pointer;
}

.model-demo-about-concern-item:hover,
.model-demo-about-concern-item:focus-visible {
  background: rgba(16, 16, 16, 0.05);
  outline: none;
}

.model-demo-about-concern-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 4px;
  min-width: 0;
}

.model-demo-about-concern-main > span:first-child {
  min-width: 0;
}

.model-demo-about-concern-comment {
  display: none;
  margin: 0;
  color: rgba(16, 16, 16, 0.76);
  font-size: 15px;
  line-height: 1.35;
}

.model-demo-about-concern-item.is-open .model-demo-about-concern-comment {
  display: block;
  margin: 4px 0 8px;
}

.model-demo-about-concern-list > .model-demo-about-concern-item:last-of-type {
  margin-bottom: 0;
}

.model-demo-about-advice-item {
  opacity: 1;
  margin-inline: 0;
  padding: 9px 0;
  border-radius: 0;
  transition: background-color 120ms ease;
}

.model-demo-about-advice-item.has-comment {
  cursor: pointer;
}

.model-demo-about-advice-item:hover,
.model-demo-about-advice-item:focus-visible {
  outline: none;
}

.model-demo-about-advice-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 4px;
  width: 100%;
  min-width: 0;
}

.model-demo-about-advice-main > span:first-child {
  min-width: 0;
  max-width: none;
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  transition: opacity 120ms ease;
}

.model-demo-about-advice-item:hover .model-demo-about-advice-main > span:first-child,
.model-demo-about-advice-item:focus-visible .model-demo-about-advice-main > span:first-child {
  opacity: 0.78;
}

.model-demo-about-advice-comment {
  display: none;
  margin: 0;
  max-width: none;
  overflow-wrap: anywhere;
  color: rgba(16, 16, 16, 0.76);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}

.model-demo-about-advice-item.is-open .model-demo-about-advice-comment {
  display: block;
  margin: 4px 0 8px;
}

.model-demo-about-usecase-more-row {
  margin: 0 -20px 0;
  padding: 0;
  border-top: 1px solid rgba(16, 16, 16, 0.12);
  min-height: 44px;
}

.model-demo-about-usecase-more {
  border: 0;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: rgba(16, 16, 16, 0.62);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}

.model-demo-about-usecase-more-count {
  color: rgba(16, 16, 16, 0.42);
}

.model-demo-about-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.model-demo-about-icon--check {
  color: #1a9a55;
}

.model-demo-about-icon--check-blue {
  color: #2557fe;
}

.model-demo-about-icon--alert {
  color: #c47a12;
}

.model-demo-about-icon--thumbs-up {
  color: #1a9a55;
}

.model-demo-about-icon--thumbs-down {
  color: #d64545;
}

.model-demo-about-prompts {
  display: grid;
  gap: 14px;
}

.model-demo-about-prompt-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 16, 16, 0.03) 0%, rgba(16, 16, 16, 0.06) 100%);
}

.model-demo-about-prompt-card-chrome {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.42);
}

.model-demo-about-prompt-case-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  opacity: 0.55;
}

.model-demo-about-prompt-case-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  opacity: var(--model-demo-docs-body-opacity);
}

.model-demo-about-prompt-card-bg-quote {
  position: absolute;
  top: 52px;
  right: 12px;
  z-index: 0;
  width: 44px;
  height: 44px;
  opacity: 0.18;
  color: currentColor;
  pointer-events: none;
}

.model-demo-about-prompt-card-body {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 16px 18px;
}

.model-demo-about-prompt-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.model-demo-about-prompt-thumb {
  display: block;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  object-fit: cover;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 10px;
  background: rgba(16, 16, 16, 0.06);
}

.model-demo-about-prompt-text {
  margin: 0;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  opacity: var(--model-demo-docs-body-opacity);
}

.model-demo-about-prompt-result-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  box-sizing: border-box;
  padding: 8px 14px;
  border: 1px solid rgba(16, 16, 16, 0.18);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.model-demo-about-prompt-thumb-placeholder {
  display: block;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 10px;
  background: rgba(16, 16, 16, 0.06)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101010' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21'/%3E%3C/svg%3E")
    center / 18px 18px no-repeat;
}

.model-demo-about-prompt-thumb-placeholder.is-video {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101010' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5'/%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3C/svg%3E");
}

.model-demo-about-prompt-thumb-placeholder.is-audio {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101010' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6v12'/%3E%3Cpath d='M8 9v6'/%3E%3Cpath d='M16 9v6'/%3E%3Cpath d='M4 11v2'/%3E%3Cpath d='M20 11v2'/%3E%3C/svg%3E");
}

@media (hover: hover) and (pointer: fine) {
.model-demo-about-prompt-result-btn:hover,
  .model-demo-about-prompt-result-btn:focus-visible {
    border-color: rgba(37, 87, 254, 0.45);
    background: rgba(37, 87, 254, 0.06);
    outline: none;
  }
}

.model-demo-about-prompt-result-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.model-demo-about-use-cases-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  max-width: 720px;
  list-style: none;
}

.model-demo-about-tips-list,
.model-demo-about-advice-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  list-style: none;
}

.model-demo-about-use-case-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  opacity: var(--model-demo-docs-body-opacity);
}

.model-demo-about-tip {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  opacity: var(--model-demo-docs-body-opacity);
}

.model-demo-about-use-case-item strong,
.model-demo-about-tip strong {
  font-weight: 600;
}

.model-demo-about-ratings-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 14px;
  background: rgba(16, 16, 16, 0.02);
}

.model-demo-about-ratings {
  margin: 0;
  opacity: 1;
}

.model-demo-about-ratings th,
.model-demo-about-ratings td {
  border-bottom-color: rgba(16, 16, 16, 0.08);
}

.model-demo-about-ratings thead th {
  background: rgba(16, 16, 16, 0.07);
  border-bottom-color: rgba(16, 16, 16, 0.12);
}

.model-demo-about-ratings tbody tr:last-child td {
  border-bottom: 0;
}

.model-demo-about-ratings td:first-child {
  font-weight: 500;
  white-space: nowrap;
}

.model-demo-about-ratings:not([data-model-demo-pricing-table]) td:nth-child(2) {
  width: 132px;
}

.model-demo-about-ratings[data-model-demo-pricing-table] {
  table-layout: fixed;
  width: 100%;
}

.model-demo-about-ratings[data-model-demo-pricing-table] th,
.model-demo-about-ratings[data-model-demo-pricing-table] td {
  vertical-align: middle;
}

.model-demo-about-ratings[data-model-demo-pricing-table] th:first-child,
.model-demo-about-ratings[data-model-demo-pricing-table] td:first-child {
  width: 22%;
  text-align: left;
}

.model-demo-about-ratings[data-model-demo-pricing-table] th:nth-child(n + 2),
.model-demo-about-ratings[data-model-demo-pricing-table] td:nth-child(n + 2) {
  width: auto;
  min-width: 72px;
  text-align: left;
  padding-left: clamp(10px, 2.5%, 28px);
  padding-right: clamp(10px, 2.5%, 28px);
}

.model-demo-about-pricing-cell-inner {
  display: grid;
  grid-template-areas: "price";
  justify-items: start;
  width: 100%;
}

.model-demo-about-pricing-value {
  grid-area: price;
  visibility: hidden;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.model-demo-about-pricing-value.is-active {
  visibility: visible;
}

.model-demo-about-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.model-demo-about-star {
  position: relative;
  display: inline-block;
  width: 1em;
  line-height: 1;
}

.model-demo-about-star-empty,
.model-demo-about-star-fill-glyph {
  display: block;
  line-height: 1;
}

.model-demo-about-star-empty {
  color: rgba(16, 16, 16, 0.18);
}

.model-demo-about-star-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--star-fill, 0%);
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  color: #d4a017;
  pointer-events: none;
}

.model-demo-about-star-fill-glyph {
  width: 1em;
}

.model-demo-about-faq {
  display: grid;
  gap: 10px;
}

.model-demo-about-faq-item {
  overflow: hidden;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 12px;
  background: rgba(16, 16, 16, 0.02);
}

.model-demo-about-faq-item[open] {
  border-color: rgba(16, 16, 16, 0.16);
  background: rgba(16, 16, 16, 0.04);
}

.model-demo-about-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 0;
  padding: 12px 20px;
  color: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  opacity: 1;
  transition: background-color 0.16s ease;
}

.model-demo-about-faq-question::-webkit-details-marker {
  display: none;
}

.model-demo-about-faq-question::after {
  content: "";
  flex-shrink: 0;
  align-self: center;
  width: 10px;
  height: 10px;
  margin-top: 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.55;
  transform: rotate(45deg);
  transition: transform 0.18s ease, opacity 0.16s ease;
}

.model-demo-about-faq-item[open] .model-demo-about-faq-question::after {
  transform: rotate(-135deg);
  opacity: 0.85;
}

@media (hover: hover) {
.model-demo-about-faq-question:hover,
  .model-demo-about-faq-question:focus-visible {
    background: rgba(16, 16, 16, 0.04);
  }
}

.model-demo-about-faq-answer {
  padding: 4px 20px 20px;
}

.model-demo-about-faq-answer .model-demo-docs-text {
  margin: 0;
}

.model-demo-about-pricing-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}

.model-demo-about-pricing-mode {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  min-width: 0;
}

.model-demo-about-pricing-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.model-demo-about-pricing-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.model-demo-about-pricing-toggle-ui {
  position: relative;
  display: block;
  width: 51px;
  height: 31px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.16);
  transition: background-color 0.2s ease;
}

.model-demo-about-pricing-toggle-ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 16, 16, 0.28);
  transition: transform 0.2s ease;
}

.model-demo-about-pricing-toggle-input:checked + .model-demo-about-pricing-toggle-ui {
  background: #34c759;
}

.model-demo-about-pricing-toggle-input:checked + .model-demo-about-pricing-toggle-ui::after {
  transform: translateX(20px);
}

.model-demo-about-pricing-mode-label {
  margin: 0;
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
  opacity: 1;
}

.model-demo-about-pricing-sub-note {
  margin: 0;
  flex: 0 1 auto;
  max-width: none;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
  opacity: 0.55;
}

.model-demo-about-pricing-sub-note a {
  margin-left: 6px;
  white-space: nowrap;
  color: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 1;
}

@media (max-width: 1080px) {
html[data-theme="dark"] body.home-page .model-demo-about-ratings:not([data-model-demo-pricing-table]):not([data-pricing-table]) tr,
  body.home-page[data-theme="dark"] .model-demo-about-ratings:not([data-model-demo-pricing-table]):not([data-pricing-table]) tr {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
  }

html[data-theme="dark"] body.home-page .model-demo-about-ratings:not([data-model-demo-pricing-table]):not([data-pricing-table]) td:nth-child(3),
  body.home-page[data-theme="dark"] .model-demo-about-ratings:not([data-model-demo-pricing-table]):not([data-pricing-table]) td:nth-child(3) {
    color: rgba(255, 255, 255, 0.68);
  }
}

@media (max-width: 1080px) {
/* «Сильные стороны»: таблица → карточки */
  .model-demo-about-ratings-wrap:has(.model-demo-about-ratings:not([data-model-demo-pricing-table]):not([data-pricing-table])) {
    overflow-x: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

.model-demo-about-ratings:not([data-model-demo-pricing-table]):not([data-pricing-table]) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

.model-demo-about-ratings:not([data-model-demo-pricing-table]):not([data-pricing-table]) thead {
    display: none;
  }

.model-demo-about-ratings:not([data-model-demo-pricing-table]):not([data-pricing-table]) tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

.model-demo-about-ratings:not([data-model-demo-pricing-table]):not([data-pricing-table]) tr {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(16, 16, 16, 0.1);
    border-radius: 12px;
    background: rgba(16, 16, 16, 0.02);
  }

.model-demo-about-ratings:not([data-model-demo-pricing-table]):not([data-pricing-table]) td {
    display: block;
    padding: 0;
    border: 0;
    white-space: normal;
  }

.model-demo-about-ratings:not([data-model-demo-pricing-table]):not([data-pricing-table]) td:first-child {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
  }

.model-demo-about-ratings:not([data-model-demo-pricing-table]):not([data-pricing-table]) td:nth-child(2) {
    width: auto;
  }

.model-demo-about-ratings:not([data-model-demo-pricing-table]):not([data-pricing-table]) td:nth-child(3) {
    color: rgba(16, 16, 16, 0.72);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
  }
}

@media (max-width: 720px) {
.model-demo-about-pricing-head {
    flex-direction: column;
    align-items: flex-start;
  }

.model-demo-about-pricing-sub-note {
    width: 100%;
    max-width: 100%;
  }

.model-demo-about-ratings-wrap:has(.model-demo-about-ratings[data-model-demo-pricing-table]) {
    overflow-x: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

.model-demo-about-ratings[data-model-demo-pricing-table] {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    table-layout: auto;
  }

.model-demo-about-ratings[data-model-demo-pricing-table] thead {
    display: none;
  }

.model-demo-about-ratings[data-model-demo-pricing-table] tbody {
    display: grid;
    gap: 10px;
  }

.model-demo-about-ratings[data-model-demo-pricing-table] tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid rgba(16, 16, 16, 0.1);
    border-radius: 12px;
    background: rgba(16, 16, 16, 0.02);
  }

.model-demo-about-ratings[data-model-demo-pricing-table] td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal;
  }

.model-demo-about-ratings[data-model-demo-pricing-table] td:first-child,
  .model-demo-about-ratings[data-model-demo-pricing-table] td:nth-child(n + 2) {
    width: auto;
    min-width: 0;
    padding: 0;
    text-align: left;
  }

.model-demo-about-ratings[data-model-demo-pricing-table] td[data-pricing-cell="row-label"] {
    color: rgba(16, 16, 16, 0.9);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
  }

.model-demo-about-ratings[data-model-demo-pricing-table] td[data-pricing-cell="param"] {
    color: rgba(16, 16, 16, 0.72);
    font-size: 13px;
    line-height: 1.35;
  }

.model-demo-about-ratings[data-model-demo-pricing-table] td[data-pricing-cell="price"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(16, 16, 16, 0.08);
    font-size: 14px;
    line-height: 1.35;
  }

.model-demo-about-ratings[data-model-demo-pricing-table] td[data-pricing-cell="price"]::before {
    min-width: 0;
    color: rgba(16, 16, 16, 0.78);
    content: attr(data-pricing-column-label);
  }

.model-demo-about-ratings[data-model-demo-pricing-table] .model-demo-about-pricing-cell-inner {
    width: auto;
    justify-items: end;
    font-weight: 650;
  }

.model-demo-about-plate-bg-logo {
    width: clamp(112px, 36vw, 168px);
    height: clamp(112px, 36vw, 168px);
  }
}

@media (min-width: 1081px) {
.model-demo-docs-nav {
    align-self: stretch;
  }

.model-demo-docs-nav-inner {
    position: sticky;
    top: calc(var(--model-demo-tabs-sticky-height, 52px) + 12px);
    z-index: 5;
    max-height: calc(100vh - var(--model-demo-tabs-sticky-height, 52px) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 0 12px;
  }
}

@media (max-width: 1080px) {
.model-demo-docs-block {
    scroll-margin-top: calc(var(--model-demo-tabs-sticky-height, 52px) + 16px);
  }

.model-demo-docs {
    grid-template-columns: 1fr;
    gap: 0;
  }

/* На мобиле и планшете — без подменю якорей; контент идёт сплошным потоком */
  .model-demo-docs-nav {
    display: none;
  }
}

.model-demo-layout {
  --model-demo-input-track: 1fr;
  --model-demo-result-track: 1fr;
  --model-demo-resizer-x: 50%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, var(--model-demo-input-track)) minmax(280px, var(--model-demo-result-track));
  gap: 14px;
  align-items: start;
  margin-top: clamp(8px, 0.93cqw, 12px);
}

.model-demo-layout-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--model-demo-resizer-x);
  z-index: 4;
  display: flex;
  width: 22px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(16, 16, 16, 0.42);
  cursor: ew-resize;
  transform: translateX(-50%);
}

.model-demo-layout-resizer::before {
  width: 4px;
  height: 46px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.66);
  content: "";
  opacity: 0;
  transition: opacity 140ms ease, transform 140ms ease;
  transform: scaleY(0.92);
}

.model-demo-layout-resizer:hover::before,
.model-demo-layout-resizer:focus-visible::before,
.model-demo-layout.is-resizing .model-demo-layout-resizer::before {
  opacity: 1;
  transform: scaleY(1);
}

.model-demo-panel-group {
  display: block;
}

.model-demo-panel-group.model-demo-input-group {
  min-width: 0;
  max-width: 100%;
}

.model-demo-panel-group.model-demo-result-group {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.8cqw, 18px);
  min-width: 0;
  overflow: visible;
}

.model-demo-studio-promo {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: flex-start;
  gap: clamp(14px, 1.8cqw, 18px);
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  padding: clamp(18px, 2.2cqw, 22px) clamp(18px, 2.4cqw, 24px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 80px rgba(16, 16, 16, 0.08);
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

@media (hover: hover) {
.model-demo-studio-promo:hover,
  .model-demo-studio-promo:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(37, 87, 254, 0.22);
    box-shadow: 0 24px 80px rgba(16, 16, 16, 0.1);
  }
}

.model-demo-studio-promo-icon {
  display: flex;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(16, 16, 16, 0.06);
  color: inherit;
  opacity: 0.72;
}

.model-demo-studio-promo-icon svg {
  width: 26px;
  height: 26px;
}

.model-demo-studio-promo-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.model-demo-studio-promo-title {
  color: inherit;
  font-size: clamp(17px, 1.55cqw, 20px);
  font-weight: 500;
  line-height: 1.2;
}

.model-demo-studio-promo-text {
  color: inherit;
  font-size: clamp(14px, 1.2cqw, 15px);
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.68;
}

.model-demo-window-bar {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 17px 17px 0 0;
  padding: 0 var(--model-demo-card-padding);
  background: #eeeeee;
  overflow: visible;
}

.model-demo-window-title {
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  opacity: 0.7;
  text-transform: uppercase;
}

.model-demo-window-bar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.model-demo-window-bar .model-demo-window-action {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: rgba(16, 16, 16, 0.7);
  cursor: pointer;
  text-decoration: none;
  transition: color 140ms ease, background 140ms ease;
}

/* Кнопка «Очистить» в панели ввода — единственное действие у правого края */
.model-demo-window-bar > .model-demo-window-action {
  margin-left: auto;
}

.model-demo-window-bar .model-demo-window-action:hover,
.model-demo-window-bar .model-demo-window-action:focus-visible {
  background: rgba(37, 87, 254, 0.1);
  color: #2557fe;
}

.model-demo-window-bar [data-model-demo-reset],
.model-demo-window-bar-actions {
  margin-right: -7px;
}

.model-demo-window-bar .model-demo-window-action-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.model-demo-window-bar .model-demo-window-action-tooltip {
  width: max-content;
  max-width: calc(100vw - 48px);
  white-space: nowrap;
  z-index: 60;
}

.model-demo-window-body {
  display: grid;
  padding: var(--model-demo-card-padding);
}

.model-demo-form-body {
  gap: 26px;
}

.model-demo-preview-body {
  gap: 22px;
}

.model-demo-preview,
.model-demo-form {
  overflow: visible;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 80px rgba(16, 16, 16, 0.08);
}

.model-demo-preview {
  display: block;
}

.model-demo-preview-card {
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.model-demo-preview-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 820px);
  margin: 0 auto;
  object-fit: contain;
}

.model-demo-preview-video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 820px);
  margin: 0 auto;
  background: #000000;
}

.model-demo-preview-audio,
.model-demo-preview-audio-inline {
  display: block;
  width: min(100%, 420px);
  min-width: min(100%, 280px);
  margin: 0 auto;
}

.model-demo-preview-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  color: inherit;
  cursor: zoom-in;
}

.model-demo-demo-preview-video-wrap {
  display: grid;
  width: 100%;
  max-width: 100%;
  justify-items: center;
}

.model-demo-demo-preview-video {
  display: block;
  width: auto;
  max-width: 100%;
}

.model-demo-demo-preview-audio-wrap {
  display: grid;
  width: 100%;
  max-width: 100%;
  justify-items: center;
}

.model-demo-demo-preview-audio {
  display: block;
  width: min(100%, 480px);
}

.model-demo-generated-card {
  display: grid;
  width: fit-content;
  max-width: 100%;
  place-items: center;
  justify-self: center;
  background: transparent;
}

.model-demo-generated-card.is-audio {
  width: min(100%, 420px);
}

.model-demo-generated-card.is-audio .model-demo-preview-audio {
  width: 100%;
}

.model-demo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 64px 28px 28px;
  background: rgba(0, 0, 0, 0.82);
}

.model-demo-lightbox:target {
  display: flex;
}

.model-demo-lightbox.is-open {
  display: flex;
}

.model-demo-lightbox-image {
  display: block;
  max-width: min(100%, 1180px);
  max-height: calc(100vh - 92px);
  object-fit: contain;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42);
}

.model-demo-lightbox-video {
  display: block;
  max-width: min(100%, 1180px);
  max-height: calc(100vh - 92px);
  background: #000000;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42);
}

.model-demo-lightbox-audio {
  display: block;
  width: min(100%, 560px);
  max-width: min(100%, 1180px);
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.42);
}

.model-demo-lightbox-action {
  position: fixed;
  top: 22px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transition: background 140ms ease;
}

.model-demo-lightbox-download {
  right: 76px;
}

.model-demo-lightbox-close {
  right: 22px;
}

.model-demo-lightbox-action:hover,
.model-demo-lightbox-action:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.model-demo-lightbox-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.model-demo-preview-placeholder {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.model-demo-preview-placeholder span {
  color: rgba(16, 16, 16, 0.52);
  font-size: 14px;
}

.model-demo-preview-placeholder strong {
  display: block;
  max-width: 100%;
  margin-top: 10px;
  overflow-wrap: anywhere;
  font-size: 18px;
}

.model-demo-generation-status {
  position: relative;
  gap: 10px;
}

.model-demo-generation-status.is-loading {
  min-height: min(72vh, 720px);
  padding: 0;
}

.model-demo-generation-status > strong:first-child {
  margin: 0;
  color: inherit;
}

.model-demo-generation-label {
  position: absolute;
  top: calc(50% + 27px);
  left: 50%;
  max-width: calc(100% - 56px);
  color: rgba(16, 16, 16, 0.7);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  transform: translateX(-50%);
}

.model-demo-generation-status.is-error strong {
  color: #b91c1c;
}

.model-demo-result-error-plate-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72vh, 640px);
  padding: 28px 20px;
}

.model-demo-result-error-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 26px 22px 24px;
  border-radius: 14px;
  border: 1.5px solid rgba(220, 38, 38, 0.5);
  background: rgba(254, 242, 242, 0.92);
  text-align: center;
  gap: 12px;
}

.model-demo-result-error-plate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
}

.model-demo-result-error-plate-icon svg {
  flex-shrink: 0;
}

.model-demo-result-error-plate-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: #b91c1c;
}

.model-demo-result-error-plate-message {
  margin: 0;
  max-width: 100%;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(185, 28, 28, 0.92);
  overflow-wrap: anywhere;
}

html[data-theme="dark"] .model-demo-result-error-plate {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.22);
}

html[data-theme="dark"] .model-demo-result-error-plate-icon {
  color: #f87171;
}

html[data-theme="dark"] .model-demo-result-error-plate-title {
  color: #fca5a5;
}

html[data-theme="dark"] .model-demo-result-error-plate-message {
  color: rgba(252, 165, 165, 0.95);
}

.model-demo-result-link {
  color: inherit;
  font-size: 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.model-demo-generation-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border: 3px solid rgba(37, 87, 254, 0.22);
  border-top-color: #2557fe;
  border-radius: 999px;
  animation: model-demo-generation-spin 760ms linear infinite;
  transform: translate(-50%, -50%);
}

.model-demo-prices {
  padding: 0 8px 8px;
}

.model-demo-prices h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.model-demo-price-list {
  display: grid;
  gap: 10px;
}

.model-demo-price-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(16, 16, 16, 0.05);
}

.model-demo-price-item span {
  color: rgba(16, 16, 16, 0.62);
  font-size: 14px;
}

.model-demo-price-item strong {
  font-size: 18px;
  white-space: nowrap;
}

.model-demo-form {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.model-demo-form-section {
  display: grid;
  gap: 20px;
}

.model-demo-section-heading {
  box-sizing: border-box;
  margin-inline: calc(-1 * var(--model-demo-card-padding));
  width: calc(100% + 2 * var(--model-demo-card-padding));
  border-top: 1px solid rgba(16, 16, 16, 0.08);
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  background: #eeeeee;
}

.model-demo-section-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 0 var(--model-demo-card-padding);
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
  opacity: 0.7;
}

html[data-theme="dark"] .model-demo-section-heading {
  border-top-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.model-demo-field {
  display: grid;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
}

.model-demo-dictionary-fields {
  display: grid;
  gap: 10px;
}

.model-demo-dictionary {
  display: grid;
  gap: 8px;
}

.model-demo-dictionary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.model-demo-dictionary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.model-demo-dictionary-action--add {
  border: 1px solid rgba(37, 87, 254, 0.55);
  color: #2557fe;
}

.model-demo-dictionary-action--add:hover,
.model-demo-dictionary-action--add:focus-visible {
  border-color: #2557fe;
  background: rgba(37, 87, 254, 0.08);
}

.model-demo-dictionary-action--remove {
  border: 1px solid rgba(220, 53, 69, 0.55);
  color: #dc3545;
}

.model-demo-dictionary-action--remove:hover,
.model-demo-dictionary-action--remove:focus-visible {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.08);
}

.model-demo-dictionary-action-spacer {
  width: 36px;
  height: 36px;
}

.model-demo-multi-text-fields {
  display: grid;
  gap: 10px;
}

.model-demo-multi-text-rows {
  display: grid;
  gap: 8px;
}

.model-demo-multi-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.model-demo-multi-text-remove {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(16, 16, 16, 0.12);
  background: rgba(16, 16, 16, 0.04);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: rgba(16, 16, 16, 0.55);
}

.model-demo-multi-text-remove:hover,
.model-demo-multi-text-remove:focus-visible {
  border-color: rgba(16, 16, 16, 0.2);
  color: rgba(16, 16, 16, 0.85);
}

.model-demo-multi-text-add {
  justify-self: start;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(16, 16, 16, 0.12);
  background: rgba(16, 16, 16, 0.04);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: rgba(16, 16, 16, 0.72);
}

.model-demo-multi-text-add:hover,
.model-demo-multi-text-add:focus-visible {
  border-color: rgba(16, 16, 16, 0.2);
  background: rgba(16, 16, 16, 0.06);
}

@media (max-width: 520px) {
.model-demo-multi-text-row {
    grid-template-columns: 1fr;
  }
}

.model-demo-label-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
}

.model-demo-label {
  font-size: 15px;
  font-weight: 600;
}

.model-demo-tooltip {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: rgba(16, 16, 16, 0.48);
  outline: none;
}

.model-demo-tooltip-icon {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: translateY(2px);
}

.model-demo-tooltip-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 8;
  width: min(280px, calc(100vw - 48px));
  box-sizing: border-box;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(16, 16, 16, 0.13);
  color: rgba(16, 16, 16, 0.72);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.38;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s linear 140ms;
}

/* Скрытые баблы не раздувают scrollWidth (мобила) */
.model-demo-tooltip:not(:hover):not(:focus-within) .model-demo-tooltip-bubble {
  display: none;
}

.model-demo-window-bar .model-demo-tooltip-bubble {
  left: auto;
  right: 0;
  transform: translate(0, 4px);
}

.model-demo-about-plate .model-demo-tooltip-bubble {
  z-index: 24;
}

.model-demo-tooltip:hover .model-demo-tooltip-bubble,
.model-demo-tooltip:focus-visible .model-demo-tooltip-bubble,
.model-demo-tooltip:focus-within .model-demo-tooltip-bubble {
  display: block;
  clip: auto;
  clip-path: none;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 140ms ease, transform 140ms ease, visibility 0s;
}

.model-demo-window-bar .model-demo-tooltip:hover .model-demo-tooltip-bubble,
.model-demo-window-bar .model-demo-tooltip:focus-visible .model-demo-tooltip-bubble,
.model-demo-window-bar .model-demo-tooltip:focus-within .model-demo-tooltip-bubble {
  transform: translate(0, 0);
}

.model-demo-field textarea,
.model-demo-field select,
.model-demo-field input[type="url"],
.model-demo-field input[type="text"],
.model-demo-field input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 18px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.85);
  color: #101010;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.model-demo-textarea-wrap {
  position: relative;
  display: block;
}

.model-demo-textarea-wrap textarea {
  display: block;
  min-height: 180px;
  padding-bottom: 30px;
  resize: none;
}

.model-demo-select-wrap {
  position: relative;
  display: block;
  max-width: 100%;
  min-width: 0;
}

.model-demo-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.model-demo-select-button {
  display: flex;
  width: 100%;
  min-height: 51px;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 18px;
  padding: 0 16px;
  background: #ffffff;
  color: #101010;
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.model-demo-select-button:hover,
.model-demo-select-button:focus-visible,
.model-demo-select-wrap.is-open .model-demo-select-button {
  border-color: rgba(16, 16, 16, 0.34);
  box-shadow: 0 0 0 4px rgba(16, 16, 16, 0.08);
}

.model-demo-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-demo-select-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-left: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  opacity: 0.54;
  transition: transform 140ms ease;
}

.model-demo-select-wrap.is-open .model-demo-select-chevron {
  transform: rotate(180deg);
}

.model-demo-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 12;
  display: none;
  max-width: 100%;
  max-height: 260px;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(16, 16, 16, 0.13);
}

.model-demo-select-wrap.is-open .model-demo-select-menu {
  display: grid;
  gap: 2px;
  grid-template-columns: minmax(0, 1fr);
}

.model-demo-select-option {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  background: transparent;
  color: rgba(16, 16, 16, 0.82);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.model-demo-select-option:hover,
.model-demo-select-option:focus-visible {
  background: rgba(16, 16, 16, 0.06);
  outline: none;
}

.model-demo-select-option[aria-selected="true"] {
  background: #101010;
  color: #ffffff;
}

.model-demo-select-wrap--voice-id .model-demo-voice-id-option {
  justify-content: flex-start;
  gap: 8px;
}

.model-demo-voice-id-option-label {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-demo-voice-id-preview {
  display: inline-flex;
  flex-shrink: 0;
  width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid rgba(16, 16, 16, 0.12);
  background: rgba(16, 16, 16, 0.04);
  color: rgba(16, 16, 16, 0.72);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.model-demo-voice-id-preview:hover,
.model-demo-voice-id-preview:focus-visible {
  background: rgba(16, 16, 16, 0.1);
  color: #101010;
  outline: none;
}

.model-demo-select-option[aria-selected="true"] .model-demo-voice-id-preview {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.model-demo-select-option[aria-selected="true"] .model-demo-voice-id-preview:hover,
.model-demo-select-option[aria-selected="true"] .model-demo-voice-id-preview:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.model-demo-voice-id-preview-icon {
  display: block;
  width: 15px;
  height: 15px;
}

.model-demo-ratio-wrap {
  display: block;
}

.model-demo-ratio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 6px;
}

.model-demo-ratio-option {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 12px;
  padding: 0 10px;
  background: #f3f3f3;
  color: rgba(16, 16, 16, 0.84);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.model-demo-ratio-option:hover,
.model-demo-ratio-option:focus-visible {
  border-color: rgba(16, 16, 16, 0.22);
  box-shadow: 0 0 0 3px rgba(16, 16, 16, 0.06);
}

.model-demo-ratio-option[aria-selected="true"] {
  border-color: #101010;
  background: #101010;
  color: #ffffff;
}

.model-demo-textarea-resize {
  position: absolute;
  right: 1px;
  bottom: 1px;
  left: 1px;
  display: flex;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 17px 17px;
  color: rgba(16, 16, 16, 0.36);
  cursor: ns-resize;
  touch-action: none;
}

.model-demo-textarea-resize::before {
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.model-demo-field textarea:focus,
.model-demo-field select:focus,
.model-demo-field input[type="url"]:focus,
.model-demo-field input[type="text"]:focus,
.model-demo-field input[type="number"]:focus {
  border-color: rgba(16, 16, 16, 0.34);
  box-shadow: 0 0 0 4px rgba(16, 16, 16, 0.08);
}

.model-demo-double-slider {
  display: grid;
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.model-demo-single-slider {
  gap: 14px;
}

.model-demo-slider-label-row--value-end {
  justify-content: flex-end;
}

.model-demo-slider-track {
  display: grid;
  gap: 12px;
  width: 100%;
}

.model-demo-slider-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.model-demo-slider-sublabel {
  color: rgba(16, 16, 16, 0.62);
  font-size: 14px;
  font-weight: 500;
}

.model-demo-slider-value {
  min-width: 72px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(37, 87, 254, 0.1);
  color: #2557fe;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.model-demo-slider-value-input {
  border: 0;
  cursor: text;
  outline: 1px solid transparent;
  transition: outline-color 0.15s ease;
  box-sizing: border-box;
}

.model-demo-slider-value-input:hover {
  outline-color: rgba(37, 87, 254, 0.35);
}

.model-demo-slider-value-input:focus {
  outline-color: rgba(37, 87, 254, 0.65);
}

.model-demo-slider-track input[type="range"] {
  --model-demo-slider-progress: 0%;
  display: block;
  width: 100%;
  height: 26px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

/* Трек ~на 15% ниже прежних 10px; заполненная часть — один тёмный оттенок синего,
без градиента */
.model-demo-slider-track input[type="range"]::-webkit-slider-runnable-track {
  height: 8.5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #1a3dad 0%,
    #1a3dad var(--model-demo-slider-progress),
    rgba(16, 16, 16, 0.11) var(--model-demo-slider-progress),
    rgba(16, 16, 16, 0.11) 100%
  );
}

.model-demo-slider-track input[type="range"]::-moz-range-track {
  height: 8.5px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.11);
}

.model-demo-slider-track input[type="range"]::-moz-range-progress {
  height: 8.5px;
  border-radius: 999px;
  background: #1a3dad;
}

.model-demo-slider-track input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border: 4px solid #ffffff;
  border-radius: 999px;
  margin-top: -7.75px;
  background: #2557fe;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.model-demo-slider-track input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 4px solid #ffffff;
  border-radius: 999px;
  background: #2557fe;
  box-shadow: none;
}

.model-demo-slider-track input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(37, 87, 254, 0.35);
}

.model-demo-slider-track input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(37, 87, 254, 0.35);
}

.model-demo-upload {
  display: grid;
  gap: 10px;
}

.model-demo-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.model-demo-upload-zone {
  display: grid;
  min-height: 154px;
  place-items: center;
  box-sizing: border-box;
  border: 1px dashed rgba(16, 16, 16, 0.22);
  border-radius: 20px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.62);
  color: #101010;
  text-align: center;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.model-demo-upload-zone:hover,
.model-demo-upload.is-dragover .model-demo-upload-zone {
  border-color: rgba(37, 87, 254, 0.72);
  background: rgba(37, 87, 254, 0.08);
  box-shadow: 0 0 0 4px rgba(37, 87, 254, 0.08);
}

.model-demo-upload.has-files .model-demo-upload-zone {
  display: none;
}

.model-demo-upload-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 87, 254, 0.12);
  color: #2557fe;
}

.model-demo-upload-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.model-demo-upload-media-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: #8c8c8c;
}

.model-demo-upload-media-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.75;
}

html[data-theme="dark"] .model-demo-upload-media-icon {
  color: #b8b8b8;
}

.model-demo-upload-title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
}

.model-demo-upload-hint {
  max-width: 360px;
  margin-top: 6px;
  color: rgba(16, 16, 16, 0.58);
  font-size: 13px;
  line-height: 1.45;
}

.model-demo-upload-status {
  overflow-wrap: anywhere;
  color: rgba(16, 16, 16, 0.58);
  font-size: 13px;
  line-height: 1.45;
}

.model-demo-upload-status:empty {
  display: none;
}

.model-demo-upload-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
}

.model-demo-upload-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 18px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.model-demo-upload-card.is-uploaded {
  width: 132px;
  min-width: 0;
  flex: 0 0 132px;
  grid-template-columns: 132px;
  align-items: start;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.model-demo-upload-card.is-uploading {
  position: relative;
  width: 132px;
  height: 132px;
  min-width: 0;
  box-sizing: border-box;
  flex: 0 0 132px;
  grid-template-columns: 132px;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.model-demo-upload-preview {
  position: relative;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(16, 16, 16, 0.06);
}

.model-demo-upload-card.is-uploading .model-demo-upload-preview {
  width: 100%;
  height: 100%;
  border-radius: 17px;
}

.model-demo-upload-card.is-uploaded .model-demo-upload-preview {
  width: 132px;
  height: 132px;
  box-sizing: border-box;
  border: 1px solid rgba(16, 16, 16, 0.08);
  padding: 6px;
  cursor: zoom-in;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.model-demo-upload-card.is-uploaded .model-demo-upload-preview:hover,
.model-demo-upload-card.is-uploaded .model-demo-upload-preview:focus-visible {
  border-color: rgba(37, 87, 254, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 87, 254, 0.1);
}

.model-demo-upload-preview img,
.model-demo-upload-preview video {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.model-demo-upload-preview video {
  background: rgba(16, 16, 16, 0.04);
}

.model-demo-upload-meta {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.model-demo-upload-card.is-uploading .model-demo-upload-meta {
  position: absolute;
  right: 12px;
  top: 50%;
  left: 12px;
  z-index: 1;
  gap: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.model-demo-upload-name {
  overflow: hidden;
  color: rgba(16, 16, 16, 0.82);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-demo-upload-card.is-uploading .model-demo-upload-name {
  display: none;
}

.model-demo-upload-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.08);
}

.model-demo-upload-card.is-uploading .model-demo-upload-progress {
  height: 10px;
}

.model-demo-upload-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2557fe;
  transition: width 120ms ease;
}

.model-demo-upload-card.is-uploaded .model-demo-upload-progress span {
  background: #147a3f;
}

.model-demo-upload-card.is-error .model-demo-upload-progress span {
  background: #b42318;
}

.model-demo-upload-card-error {
  color: #b42318;
  font-size: 12px;
  line-height: 1.35;
}

.model-demo-upload-remove {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #101010;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.model-demo-upload-remove:hover,
.model-demo-upload-remove:focus-visible {
  background: #dc2626;
  color: #ffffff;
  outline: none;
}

.model-demo-upload-remove svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.model-demo-upload-add-zone {
  display: grid;
  width: 132px;
  height: 132px;
  box-sizing: border-box;
  flex: 0 0 132px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed rgba(16, 16, 16, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  color: rgba(16, 16, 16, 0.7);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-align: center;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.model-demo-upload-add-zone:hover,
.model-demo-upload-add-zone:focus-visible,
.model-demo-upload-add-zone.is-dragover {
  border-color: rgba(37, 87, 254, 0.48);
  background: rgba(37, 87, 254, 0.08);
  color: #2557fe;
  outline: none;
}

.model-demo-upload-add-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: rgba(37, 87, 254, 0.12);
  font-size: 24px;
  line-height: 1;
}

.model-demo-upload-add-icon-glyph {
  transform: translateY(-1px);
}

.model-demo-upload-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(37, 87, 254, 0.18);
  border-top-color: #2557fe;
  border-radius: 999px;
  animation: model-demo-upload-spin 800ms linear infinite;
}

.model-demo-upload-error-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
  font-weight: 700;
}

.model-demo-upload.is-uploading .model-demo-upload-status {
  color: #2557fe;
}

.model-demo-upload.is-uploaded .model-demo-upload-status {
  color: rgba(16, 16, 16, 0.7);
}

.model-demo-upload.is-error .model-demo-upload-zone {
  border-color: rgba(210, 45, 45, 0.62);
  background: rgba(210, 45, 45, 0.08);
}

.model-demo-upload.is-error .model-demo-upload-status {
  color: #b42318;
}

.model-demo-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-demo-segment input,
.model-demo-checkbox input,
.model-demo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.model-demo-segment span {
  display: inline-flex;
  min-width: 56px;
  justify-content: center;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(16, 16, 16, 0.05);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.model-demo-segment span:hover,
.model-demo-segment input:focus-visible + span {
  border-color: rgba(16, 16, 16, 0.22);
  box-shadow: 0 0 0 3px rgba(16, 16, 16, 0.06);
}

.model-demo-segment input:checked + span {
  background: #101010;
  color: #ffffff;
}

.model-demo-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.model-demo-field-switch_full .model-demo-checkbox {
  width: 100%;
}

.model-demo-checkbox-box {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1px solid rgba(16, 16, 16, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.85);
  transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.model-demo-checkbox:hover .model-demo-checkbox-box {
  border-color: rgba(16, 16, 16, 0.24);
  box-shadow: 0 0 0 3px rgba(16, 16, 16, 0.06);
}

.model-demo-checkbox-box::after {
  position: absolute;
  top: 3px;
  left: 8px;
  width: 6px;
  height: 11px;
  border: solid #ffffff;
  border-width: 0 2.4px 2.4px 0;
  content: "";
  opacity: 0;
  transform: rotate(45deg) scale(0.72);
  transition: opacity 140ms ease, transform 140ms ease;
}

.model-demo-checkbox input:checked + .model-demo-checkbox-box {
  border-color: #101010;
  background: #101010;
}

.model-demo-checkbox input:checked + .model-demo-checkbox-box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.model-demo-checkbox input:focus-visible + .model-demo-checkbox-box {
  box-shadow: 0 0 0 4px rgba(16, 16, 16, 0.08);
}

.studio-toggle-switch {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  border: 1px solid rgba(16, 16, 16, 0.12);
  border-radius: 14px;
  padding: 8px 13px;
  background: rgba(16, 16, 16, 0.035);
  cursor: pointer;
}

.studio-toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.studio-toggle-switch-copy {
  display: flex;
  min-height: 28px;
  align-items: center;
  min-width: 0;
}

.studio-toggle-switch-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.studio-toggle-switch-track {
  position: relative;
  display: block;
  width: 46px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.16);
  transition: background 160ms ease;
}

.studio-toggle-switch-thumb {
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 9px rgba(16, 16, 16, 0.18);
  transition: transform 160ms ease;
}

.studio-toggle-switch input:checked + .studio-toggle-switch-track {
  background: #34c759;
}

.studio-toggle-switch input:checked + .studio-toggle-switch-track .studio-toggle-switch-thumb {
  transform: translateX(18px);
}

.studio-toggle-switch:focus-within {
  outline: none;
}

.model-demo-actions {
  display: grid;
  gap: 12px;
}

.model-demo-guest-pricing-note {
  display: grid;
  gap: 4px;
  padding: 0 4px;
  color: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.62;
}

.model-demo-guest-pricing-note-line {
  margin: 0;
}

.model-demo-submit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto);
  min-height: 52px;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  overflow: hidden;
  background: #2557fe;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.model-demo-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.model-demo-submit-label {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  line-height: 1;
}

.model-demo-submit-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.model-demo-live-price {
  display: flex;
  min-width: 96px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0 18px;
  color: #ffffff;
}

.model-demo-submit.is-authenticated .model-demo-live-price {
  gap: 6px;
}

.model-demo-live-price-icon {
  flex: 0 0 auto;
}

.model-demo-live-price.is-loading .model-demo-live-price-icon {
  display: none;
}

.model-demo-live-price-value {
  color: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.model-demo-live-price-spinner {
  display: none;
  width: 17px;
  height: 17px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-top-color: #ffffff;
  border-radius: 999px;
  animation: model-demo-price-spin 760ms linear infinite;
}

.model-demo-live-price.is-loading .model-demo-live-price-spinner {
  display: block;
}

.model-demo-live-price.is-loading .model-demo-live-price-value {
  display: none;
}

.model-demo-live-price.is-error .model-demo-live-price-value {
  opacity: 0.78;
}

@media (max-width: 900px) {
.model-demo-layout {
    grid-template-columns: 1fr;
  }

.model-demo-layout-resizer {
    display: none;
  }

.model-demo-preview,
  .model-demo-form {
    grid-column: auto;
  }
}

.model-demo-related-sections {
  display: grid;
  gap: clamp(24px, 3cqw, 36px);
  width: 100%;
  margin-top: clamp(40px, 5cqw, 64px);
}

.model-demo-related-section {
  width: 100%;
}

.model-demo-demogen-title {
  margin: 0 0 10px;
  padding: 0 2px;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  opacity: 0.7;
  text-transform: uppercase;
}

.model-demo-demogen-tile-caption {
  display: block;
  margin-top: 6px;
  padding: 0 2px;
  color: rgba(16, 16, 16, 0.72);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;
}

.model-demo-demogen-section {
  width: 100%;
  margin-top: clamp(24px, 3cqw, 36px);
  overflow: visible;
}

.model-demo-demogen-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  overflow: visible;
}

.model-demo-demogen-tile {
  display: flex;
  width: 180px;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 10px;
  overflow: visible;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.model-demo-demogen-tile:hover,
.model-demo-demogen-tile:focus-visible {
  transform: translateY(-1px);
}

.model-demo-demogen-tile:hover .model-demo-demogen-tile-media,
.model-demo-demogen-tile:focus-visible .model-demo-demogen-tile-media {
  box-shadow: 0 8px 24px rgba(16, 16, 16, 0.12);
}

.model-demo-demogen-tile-media {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(16, 16, 16, 0.04);
}

.model-demo-demogen-tile-media.is-audio {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
}

.model-demo-demogen-tile-audio-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(16, 16, 16, 0.42);
}

.model-demo-demogen-tile-audio-placeholder svg {
  display: block;
  width: 56px;
  height: 56px;
}

.model-demo-demogen-tile img,
.model-demo-demogen-tile video {
  display: block;
  width: 180px;
  vertical-align: top;
}

.model-demo-demogen-tile img {
  height: 180px;
  object-fit: cover;
  object-position: center;
}

.model-demo-demogen-tile video {
  height: auto;
}

@media (max-width: 1080px) {
.model-demo-demogen-tile {
    width: 162px;
  }

.model-demo-demogen-tile img,
  .model-demo-demogen-tile video {
    width: 162px;
  }

.model-demo-demogen-tile img {
    height: 162px;
  }

.model-demo-demogen-tile-media.is-audio {
    width: 162px;
    height: 162px;
  }
}

.studio-lightbox-usecase-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.studio-lightbox-usecase-tag-row .model-demo-tooltip {
  color: rgba(255, 255, 255, 0.52);
}

.studio-lightbox-usecase-tag-row .model-demo-tooltip-icon {
  transform: translateY(1px);
}

.studio-lightbox-usecase-tag-row .model-demo-tooltip-bubble {
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 10052;
  width: min(280px, calc(100vw - 48px));
  transform: translate(-50%, 4px);
}

.studio-lightbox-detail-section-usecase {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.studio-lightbox-usecase-tag-row .model-demo-tooltip:hover .model-demo-tooltip-bubble,
.studio-lightbox-usecase-tag-row .model-demo-tooltip:focus-visible .model-demo-tooltip-bubble {
  transform: translate(-50%, 0);
}

.studio-lightbox-detail-section-pricing {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.studio-lightbox-pricing-label {
  display: inline-flex;
  align-items: center;
}

.studio-lightbox-pricing-tooltip {
  margin-left: 3px;
  transform: translateY(-1px);
  color: rgba(255, 255, 255, 0.52);
}

.studio-lightbox-pricing-tooltip .model-demo-tooltip-bubble {
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 10052;
  width: min(280px, calc(100vw - 48px));
  white-space: normal;
  word-break: break-word;
  transform: translate(-50%, 4px);
}

.studio-lightbox-pricing-tooltip:hover .model-demo-tooltip-bubble,
.studio-lightbox-pricing-tooltip:focus-visible .model-demo-tooltip-bubble {
  transform: translate(-50%, 0);
}

.studio-lightbox-media-column {
  display: flex;
  min-width: 0;
  flex: 2 1 0;
  flex-direction: column;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 84px);
}

.studio-lightbox-media-column .studio-lightbox-media-pane {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  min-height: 0;
  max-height: 100%;
}

.model-demo-lightbox.studio-generation-lightbox.has-details .studio-lightbox-media-pane:has(.studio-lightbox-demogen-disclaimer) {
  flex-direction: column;
  gap: 8px;
}

.studio-lightbox-details-column {
  display: flex;
  min-width: 0;
  flex: 0 1 clamp(252px, 32%, 396px);
  flex-direction: column;
  align-self: center;
  max-height: calc(100vh - 84px);
  overflow: visible;
}

.studio-lightbox-details-column .studio-lightbox-details-pane {
  flex: 1 1 auto;
  align-self: stretch;
  min-height: 0;
  max-height: 100%;
  overflow: visible;
}

.studio-lightbox-details-scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  overflow: auto;
}

.studio-lightbox-demogen-disclaimer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  box-sizing: border-box;
  margin: 7px 0 0;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  flex: 0 0 auto;
  width: fit-content;
  max-width: min(100%, 720px);
}

.studio-lightbox-param-media-tile.is-clickable {
  padding: 0;
  border: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.studio-lightbox-param-media-tile.is-clickable:hover,
.studio-lightbox-param-media-tile.is-clickable:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.model-demo-lightbox.model-demo-source-lightbox.is-open {
  z-index: 10002;
  cursor: zoom-out;
}

/* Studio-style lightbox с панелью параметров (demogen) */
.model-demo-lightbox.studio-generation-lightbox.is-open {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 58px 26px 26px;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}

.studio-lightbox-layout {
  display: flex;
  width: min(100%, 1062px);
  max-height: calc(100vh - 84px);
  align-items: stretch;
  justify-content: center;
  cursor: default;
}

.studio-lightbox-layout.has-details {
  width: min(100%, 1296px);
  align-items: center;
  gap: 18px;
}

.studio-lightbox-media-pane {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
}

.studio-lightbox-details-pane {
  display: flex;
  min-width: 0;
  width: 100%;
  flex-direction: column;
  align-self: stretch;
  gap: 18px;
  box-sizing: border-box;
  overflow: visible;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(18, 18, 22, 0.34);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.92);
}

.studio-lightbox-detail-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.studio-lightbox-copyable-body {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.studio-lightbox-copy-control {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.studio-lightbox-copyable-body .studio-lightbox-detail-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

.studio-lightbox-copy-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 2;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(12, 12, 16, 0.92);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  pointer-events: none;
}

.studio-lightbox-detail-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}

.studio-lightbox-detail-tag {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.94);
  word-break: break-word;
}

.studio-lightbox-detail-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  white-space: pre-wrap;
  word-break: break-word;
}

.studio-lightbox-params-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
}

.studio-lightbox-param-row {
  display: grid;
  width: 100%;
  align-items: baseline;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 11px;
}

.studio-lightbox-param-name-line {
  display: flex;
  align-items: baseline;
  min-width: 0;
  min-height: 1.45em;
}

.studio-lightbox-param-label {
  flex: 0 0 auto;
  padding-right: 0.36em;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.studio-lightbox-param-leader {
  flex: 1 1 auto;
  min-width: 0.5em;
  height: 0;
  margin-bottom: 0.32em;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
}

.studio-lightbox-param-value {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-word;
}

.studio-lightbox-param-media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-lightbox-param-media-tile {
  display: block;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.studio-lightbox-param-media-tile img,
.studio-lightbox-param-media-tile video,
.studio-lightbox-param-media-tile .studio-lightbox-param-media-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.studio-lightbox-param-media-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.studio-lightbox-param-media-placeholder.is-video::before,
.studio-lightbox-param-media-placeholder.is-audio::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  opacity: 0.7;
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.studio-lightbox-param-media-placeholder.is-video::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpolygon points='5 3 19 12 5 21 5 3'/%3E%3C/svg%3E");
}

.studio-lightbox-param-media-placeholder.is-audio::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E");
}

.studio-lightbox-copy-btn {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.studio-lightbox-copy-btn:hover,
.studio-lightbox-copy-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.studio-lightbox-copy-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-stage {
  display: flex;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 84px);
  align-items: center;
  justify-content: center;
}

.model-demo-lightbox.studio-generation-lightbox.is-open.has-details .model-demo-lightbox-stage {
  max-height: calc(100vh - 84px - 52px);
}

.model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 84px);
  object-fit: contain;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

.model-demo-lightbox.studio-generation-lightbox.is-open.has-details .studio-lightbox-media-column .model-demo-lightbox-image,
.model-demo-lightbox.studio-generation-lightbox.is-open.has-details .studio-lightbox-media-column .model-demo-lightbox-video {
  max-height: calc(100vh - 84px - 52px);
}

.model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 84px);
  background: #000000;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

.model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-audio-wrap {
  display: flex;
  width: min(100%, 504px);
  padding: 22px 26px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

.model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-audio {
  display: block;
  width: 100%;
  min-width: 280px;
}

.model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-action {
  position: fixed;
  top: 20px;
  z-index: 10001;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
}

.model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-download {
  right: 68px;
}

.model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-close {
  right: 20px;
}

.model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-action:hover,
.model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-action:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (max-width: 1080px) {
/* Скролл всего окна lightbox,
  без внутренней прокрутки плашки параметров */
  .model-demo-lightbox.studio-generation-lightbox.is-open.has-details {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: clip;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 52px 14px 24px;
  }

.model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-action {
    position: fixed;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.72);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
  }

.model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-action:hover,
  .model-demo-lightbox.studio-generation-lightbox.is-open .model-demo-lightbox-action:focus-visible {
    background: rgba(0, 0, 0, 0.86);
  }

.studio-lightbox-layout.has-details {
    flex: 0 0 auto;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    max-height: none;
    min-height: min-content;
    margin: 0 auto;
  }

.studio-lightbox-layout.has-details .studio-lightbox-media-column,
  .studio-lightbox-layout.has-details .studio-lightbox-details-column {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    max-height: none;
  }

.studio-lightbox-layout.has-details .studio-lightbox-media-column {
    align-self: stretch;
  }

.studio-lightbox-layout.has-details .studio-lightbox-details-column {
    align-self: stretch;
    overflow: visible;
  }

.studio-lightbox-details-column .studio-lightbox-details-pane {
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

.studio-lightbox-details-column .studio-lightbox-details-scroll {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
  }

/* Demogen lightbox: изображение целиком (contain),
  дисклеймер поверх низа кадра */
  .model-demo-lightbox.studio-generation-lightbox.is-open.has-details .studio-lightbox-media-pane:has(.studio-lightbox-demogen-disclaimer) {
    position: relative;
    flex-direction: row;
    gap: 0;
    width: 100%;
    max-width: 100%;
    max-height: min(56vh, calc(100vh - 190px));
    overflow: visible;
  }

.model-demo-lightbox.studio-generation-lightbox.is-open.has-details .studio-lightbox-media-pane .model-demo-lightbox-image,
  .model-demo-lightbox.studio-generation-lightbox.is-open.has-details .studio-lightbox-media-pane .model-demo-lightbox-video {
    display: block;
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    max-height: min(56vh, calc(100vh - 190px));
    height: auto;
    object-fit: contain;
  }

.model-demo-lightbox.studio-generation-lightbox.is-open.has-details .studio-lightbox-media-column .model-demo-lightbox-image,
  .model-demo-lightbox.studio-generation-lightbox.is-open.has-details .studio-lightbox-media-column .model-demo-lightbox-video {
    max-height: min(56vh, calc(100vh - 190px));
  }

.model-demo-lightbox.studio-generation-lightbox.is-open.has-details .model-demo-lightbox-stage {
    max-height: min(56vh, calc(100vh - 190px));
  }

.model-demo-lightbox.studio-generation-lightbox.is-open .studio-lightbox-media-pane .studio-lightbox-demogen-disclaimer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    box-sizing: border-box;
    margin: 0;
    padding: 18px 8px 7px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 72%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 9px;
    font-weight: 400;
    line-height: 1.32;
    text-align: center;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }
}
