

:root {
  color-scheme: light;
  --overlay: rgba(255, 255, 255, 0.4);
  --text: #141414;
  --muted: rgba(20, 20, 20, 0.6);
  --danger: #c1121f;
  --gold: #c9a227;
  --font-family-primary: "Montserrat", Arial, sans-serif;
  --font-family-secondary: "Montserrat", Arial, sans-serif;
  --font-accent: "Montserrat", Arial, sans-serif;
  --font-title-editorial: "Montserrat", Arial, sans-serif;
  --font-subtitle-ui: var(--font-family-primary);
  --font-text-ui: var(--font-family-primary);
  --font-text-reading: var(--font-family-secondary);
  --font-menu-button: var(--font-family-primary);
  --sidebar-width: 260px;
  --home-topbar-height: 60px;
  --topbar-logo-width: 200px;
  --topbar-logo-height: 50px;
  --settings-sidebar-width: 220px;
  --sidebar-transition-duration: 0.28s;
  --sidebar-surface: #f2f2f2;
  --sidebar-surface-alt: #f7f7f7;
  --sidebar-border: rgba(20, 20, 20, 0.12);
}

body[data-sidebar-theme="dark"] {
  --sidebar-surface: #141414;
  --sidebar-surface-alt: #1c1c1c;
  --sidebar-border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-text-ui);
  background-color: #f5f5f5;
  color: var(--text);
}

/* Editorial typography system (global) excluding sidebars and tool workspaces. */
main:not(.dashboard__content--tool-split):not(.dashboard__content--facechex)
  :where(h1, h2, h3, .home-card__title, .home-section__title, .home-block__title, .site-footer__title) {
  font-family: var(--font-title-editorial);
  font-weight: 600;
  letter-spacing: 0.035em;
}

main:not(.dashboard__content--tool-split):not(.dashboard__content--facechex)
  :where(h4, h5, h6, .home-hero__subtitle, [data-home-subtitle], .home-card__meta, .home-card__summary) {
  font-family: var(--font-subtitle-ui);
  font-weight: 300;
}

main:not(.dashboard__content--tool-split):not(.dashboard__content--facechex)
  :where(p, li, label, input, textarea, select, td, th, .form__hint, .site-footer__link) {
  font-family: var(--font-text-ui);
  font-weight: 400;
}

main:not(.dashboard__content--tool-split):not(.dashboard__content--facechex)
  :where(.custom-public-page__article p, .custom-public-page__article li, .custom-public-page__article blockquote) {
  font-family: var(--font-text-reading);
  font-weight: 400;
}

main:not(.dashboard__content--tool-split):not(.dashboard__content--facechex)
  :where(button, .button, .panel__action-button, .home-hero__explore, .home-card__overlay-text, .site-footer__contact-button) {
  font-family: var(--font-menu-button);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Spinwerad is used only as accent for key display moments, with elegant fallback. */
main:not(.dashboard__content--tool-split):not(.dashboard__content--facechex)
  :where([data-home-title], .home-hero__title, .home-hero__badge, .home-section__title) {
  font-family: var(--font-accent);
  letter-spacing: 0.045em;
}

body.dashboard:not(.home-page) .dashboard__content :is(h1, h2, .dashboard__title, .panel__title) {
  font-family: var(--font-text-ui);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.dashboard:not(.home-page) .sidebar__nav {
  visibility: hidden;
}

body.dashboard:not(.home-page).admin-sidebar-permission-ready .sidebar__nav {
  visibility: visible;
}

/* Avoid default mobile Safari blue tap highlight on interactive UI (home cards/chat). */
a,
button,
input,
select,
textarea,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

/*
  NOTE: We avoid hiding the whole body behind a JS class.
  The main script is loaded at the end of <body>, so adding `html.js` can happen
  after first paint and cause a visible blink (content shows, disappears, then fades in).
  Keep a lightweight transition only.
*/
html.js body {
  opacity: 1;
  transition: opacity 0.2s ease;
}

html.js.edolls-ready body {
  opacity: 1;
}

[data-i18n],
[data-language-selector] {
  visibility: hidden;
}

html.edolls-ready [data-i18n],
html.edolls-ready [data-language-selector] {
  visibility: visible;
}

.i18n-loading [data-i18n] {
  visibility: hidden;
}

.i18n-loading [data-language-selector] {
  visibility: hidden;
}

body.home-page [data-home-title],
body.home-page [data-home-subtitle] {
  visibility: hidden;
}

body.home-page.home-content-ready [data-home-title],
body.home-page.home-content-ready [data-home-subtitle] {
  visibility: visible;
}

body.home-page .dashboard__content.home {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

body.home-page.home-content-ready .dashboard__content.home {
  opacity: 1;
  transform: translateY(0);
}

body.home-page.home-content-ready:not(.home-editor) .dashboard__content.home {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .dashboard__content.home {
    transition: none;
    transform: none;
  }
}

body.my-profile-page .profile-shell {
  opacity: 0;
  visibility: hidden;
  transition: margin-left var(--sidebar-transition-duration) ease, opacity 0.4s ease-out, visibility 0s linear 0.4s;
}

body.my-profile-page.profile-content-ready .profile-shell {
  opacity: 1;
  visibility: visible;
  transition: margin-left var(--sidebar-transition-duration) ease, opacity 0.4s ease-out;
}

body.my-profile-page .profile-tab-panels {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0s linear 0.4s;
}

body.my-profile-page.profile-content-ready .profile-tab-panels {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  body.my-profile-page .profile-shell,
  body.my-profile-page .profile-tab-panels {
    transition: none;
  }
}

body.dashboard {
  background-color: #ffffff;
}

body[data-page-key="pricing"] {
  background-color: #000000;
}

body[data-page-key="pricing"] .site-footer__logo {
  filter: invert(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

body[data-page-key="pricing"] .site-footer__social-icon {
  filter: invert(1);
}

body[data-page-key="pricing"] .site-footer__rule {
  background-color: rgba(255, 255, 255, 0.16);
}

body[data-page-key="pricing"] .site-footer__title,
body[data-page-key="pricing"] .site-footer__tagline,
body[data-page-key="pricing"] .site-footer__link,
body[data-page-key="pricing"] .site-footer__contact-button {
  color: #ffffff;
}

body[data-page-key="pricing"] .site-footer__link:hover,
body[data-page-key="pricing"] .site-footer__link:focus-visible,
body[data-page-key="pricing"] .site-footer__contact-button:hover,
body[data-page-key="pricing"] .site-footer__contact-button:focus-visible {
  color: rgba(255, 255, 255, 0.85);
}

body.age-gate-active .dashboard__content,
body.age-gate-active .sidebar,
body.age-gate-active .home-mobile-nav,
body.age-gate-active .home-mobile-overlay,
body.age-gate-active .chat,
body.age-gate-active .log {
  filter: blur(6px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.dashboard__content {
  margin-left: var(--sidebar-width);
  padding: 32px 40px;
  min-height: 100vh;
  position: relative;
}

body.tools-page .dashboard__content.home,
body.tools-page .dashboard__content--tool-split,
body.tools-page .dashboard__content--facechex {
  padding-top: 0;
}

.dashboard-kpi-loader {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--sidebar-width);
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(2px);
  z-index: 1200;
  pointer-events: none;
}

.dashboard-kpi-loader.is-active {
  display: flex;
}

.dashboard-kpi-loader__spinner {
  width: 78px;
  height: 78px;
  border: 6px solid rgba(20, 20, 20, 0.2);
  border-top-color: #141414;
  border-right-color: #141414;
  border-radius: 50%;
  animation: dashboard-kpi-loader-spin 0.9s linear infinite;
}

@keyframes dashboard-kpi-loader-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.dashboard__filters {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard__grid {
  display: grid;
  grid-template-columns: minmax(680px, 2fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}

.dashboard__grid--analytics {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  grid-auto-flow: row;
}

.dashboard__grid--analytics .dashboard-panel--total-visits {
  grid-column: 1 / -1;
  order: 1;
}

.dashboard__grid--analytics .dashboard-panel--world-heatmap {
  grid-column: 1 / -1;
  order: 2;
}

.dashboard__grid--analytics .dashboard-panel--avg-session {
  grid-column: 1 / span 3;
  order: 3;
}

.dashboard__grid--analytics .dashboard-panel--kpi-summary {
  grid-column: 1 / span 6;
  order: 3;
}

.dashboard__grid--analytics .dashboard-panel--traffic-funnel {
  grid-column: 1 / span 6;
  order: 7;
}

.dashboard__grid--analytics .dashboard-panel--new-returning {
  grid-column: 7 / span 6;
  order: 8;
}

.dashboard__grid--analytics .dashboard-panel--session-duration {
  grid-column: 1 / span 6;
  order: 9;
}

.dashboard__grid--analytics .dashboard-panel--first-sources {
  grid-column: 7 / span 6;
  order: 6;
}

.dashboard__grid--analytics .dashboard-panel--social-clicks {
  grid-column: 1 / span 6;
  order: 5;
}

.dashboard__grid--analytics .dashboard-panel--top-referers {
  grid-column: 7 / span 6;
  order: 4;
}

.dashboard__grid--analytics .dashboard-panel--source-trend {
  grid-column: 1 / -1;
  order: 11;
}

.dashboard__grid--analytics .dashboard-panel--top-pages {
  grid-column: 1 / span 6;
  order: 12;
}

.dashboard__grid--analytics .dashboard-panel--entry-paths {
  grid-column: 7 / span 6;
  order: 14;
}

.dashboard__grid--analytics .dashboard-panel--referer-country {
  grid-column: 1 / span 6;
  order: 13;
}

.dashboard__grid--analytics .dashboard-panel--hourly-traffic {
  grid-column: 7 / span 6;
  order: 14;
}

.dashboard__grid--analytics .panel--compact .panel__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.dashboard__grid--analytics .dashboard-panel--kpi-summary .panel__body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard__grid--analytics .dashboard-panel--kpi-summary .panel__body,
.dashboard__grid--analytics .dashboard-panel--kpi-summary.panel--compact .panel__body {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.dashboard__grid--analytics .panel--compact .dashboard-stat__value {
  font-size: clamp(1.55rem, 1.75vw, 2.05rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.chart-card {
  min-height: 360px;
}

.chart-card__body {
  width: 100%;
  min-height: 280px;
}

.dashboard-total-visits-label {
  display: inline-block;
  white-space: nowrap;
}

.dashboard-total-visits-label--edge-start {
  transform: translateX(50%);
  text-align: left;
}

.dashboard-total-visits-label--edge-end {
  transform: translateX(-50%);
  text-align: right;
}

.chart-card__empty {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.heatmap-fallback {
  min-height: 280px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #ffffff;
  height: 100%;
}

.heatmap-fallback__title {
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
}

.heatmap-fallback__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.heatmap-fallback__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  max-height: calc(6 * 40px + 5 * 8px);
}

.heatmap-fallback__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 10px 12px;
  min-height: 40px;
}

.heatmap-fallback__name {
  font-size: 0.85rem;
  color: var(--text);
}

.heatmap-fallback__value {
  font-size: 0.85rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.chart-card__body--map {
  min-height: 420px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.heatmap-grid__map {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.heatmap-grid__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.heatmap-grid__label {
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.heatmap-grid__value {
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
}

@media (max-width: 1100px) {
  .heatmap-grid {
    grid-template-columns: 1fr;
  }
}

.panel--compact {
  min-height: 0;
}

.dashboard-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-stat__value {
  font-size: 2.4rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
}

.dashboard-stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--muted);
}

.dashboard__title {
  font-size: 1.4rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-weight: 500;
}

.dashboard__title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard__header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.dashboard__header-action-button {
  min-height: 38px;
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: #141414;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  font-size: 0.72rem;
  cursor: pointer;
}

.dashboard__header-action-button:hover,
.dashboard__header-action-button:focus-visible {
  background: #000000;
  outline: none;
}

.dashboard__header-action-button .material-symbols-outlined {
  font-size: 18px;
}

.model-forms-header-total {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(20, 20, 20, 0.35);
  background: #ffffff;
  min-height: 28px;
  padding: 0 8px;
  color: #141414;
}

.model-forms-header-total__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.model-forms-header-total__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.model-forms-header-total__value {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  line-height: 1;
}

.model-forms-header-total__label {
  font-size: 0.7rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.78);
}

.panel {
  border: 1px solid rgba(20, 20, 20, 0.12);
  background-color: #ffffff;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  min-width: 0;
}

.panel--span {
  grid-column: 1 / -1;
}

.panel--minimal {
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.panel--minimal .panel__body {
  padding: 0;
}

.panel__action-button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
}

.panel__action-button:hover {
  background-color: rgba(255, 255, 255, 0.85);
}
.profile-header__avatar-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: calc(128px + 6px + 56px);
  justify-content: flex-start;
}

.profile-level {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.profile-level__ring {
  width: 46px;
  height: 46px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.profile-level__ring.is-capped {
  cursor: pointer;
}

.profile-level__ring.is-capped .profile-level__progress {
  stroke: #9b1111;
}

.profile-level__svg {
  width: 46px;
  height: 46px;
  transform: rotate(-90deg);
}

.profile-level__track {
  stroke: rgba(20, 20, 20, 0.18);
  stroke-width: 4;
}

.profile-level__progress {
  stroke: #141414;
  stroke-width: 4;
}

.profile-level__number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 700;
}

.profile-level__label {
  font-size: 0.65rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-level__cap-note {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: min(220px, 52vw);
  max-width: 220px;
  text-align: left;
  font-size: 0.62rem;
  line-height: 1.35;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  color: #9b1111;
  border: 1px solid rgba(155, 17, 17, 0.42);
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
  padding: 8px 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease;
  z-index: 5;
}

.profile-level__cap-note::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  background: #ffffff;
  border-left: 1px solid rgba(155, 17, 17, 0.42);
  border-bottom: 1px solid rgba(155, 17, 17, 0.42);
}

.profile-level__ring.is-capped:hover .profile-level__cap-note,
.profile-level__ring.is-capped:focus-visible .profile-level__cap-note {
  opacity: 1;
  visibility: visible;
}

.panel__action-button .material-symbols-outlined {
  font-size: 1.05rem;
}

.panel__action-button.is-active {
  border-color: rgba(20, 20, 20, 0.6);
  background: rgba(20, 20, 20, 0.08);
}

.swal-filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 0;
}

.swal-filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.swal-filter-item input {
  width: 16px;
  height: 16px;
}

.swal-filter-note {
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.swal-files-edit-list {
  max-height: 180px;
  overflow: auto;
  border: 1px solid rgba(20, 20, 20, 0.14);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.swal-files-edit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}

.swal-files-edit-item span {
  word-break: break-word;
}

.swal-filter-actions {
  display: flex;
  justify-content: flex-end;
  margin: 8px 0 4px;
}

.panel__toggle {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.panel__toggle .material-symbols-outlined {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.panel.is-collapsed .panel__toggle .material-symbols-outlined {
  transform: rotate(-90deg);
}

.panel.is-collapsed .panel__body {
  display: none;
}

.panel__title {
  font-size: 0.9rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--muted);
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.panel__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
  max-width: 100%;
}

.dashboard-total-visits__filter {
  min-width: 180px;
  max-width: 360px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #fff;
  color: #141414;
  font-family: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .dashboard-total-visits__filter {
    min-width: 100%;
    max-width: 100%;
  }
}

.panel__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.watermark__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.watermark__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.watermark__dropzone {
  min-height: 240px;
}

.watermark__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.watermark__list li {
  border-left: 2px solid rgba(20, 20, 20, 0.2);
  padding-left: 12px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.form__group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.form__group[hidden] {
  display: none;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__field--full {
  grid-column: 1 / -1;
}

.form__field--half {
  grid-column: span 1;
}

@media (max-width: 900px) {
  .form__field--half {
    grid-column: 1 / -1;
  }
}

.social-media__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.is-loading .social-media__list {
  opacity: 0;
  visibility: hidden;
}

body.is-loading .social-media__row {
  opacity: 0;
}

.social-media__row {
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1.2fr) auto auto;
  gap: 16px;
  align-items: center;
}

.social-media__icon-placeholder {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.icon-button .material-symbols-outlined {
  font-size: 1.1rem;
}

.social-media__icon-placeholder--patreon {
  background-image: url("assets/icons/patreon.png");
}

.social-media__icon-placeholder--instagram {
  background-image: url("assets/icons/instagram.png");
}

.social-media__icon-placeholder--deviantart {
  background-image: url("assets/icons/deviantart.png");
}

.social-media__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.social-media__name {
  font-size: 0.9rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: var(--text);
}

.social-media__meta {
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
}


.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.toggle__track {
  width: 42px;
  height: 20px;
  background: rgba(193, 18, 31, 0.2);
  position: relative;
  border-radius: 999px;
}

.toggle__track::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  background: #c1121f;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.toggle input:checked + .toggle__track::after {
  transform: translateX(20px);
  background: #2f9e44;
}

.toggle input:checked + .toggle__track {
  background: rgba(47, 158, 68, 0.2);
}

@media (max-width: 900px) {
  .social-media__row {
    grid-template-columns: 1fr;
  }

  .social-media__icon-placeholder {
    width: 56px;
    height: 56px;
  }
}

.form__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.form__input,
.form__select,
.form__textarea {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
}

.form__textarea {
  resize: vertical;
}

.profile-photo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-photo__drop {
  position: relative;
  width: 140px;
  height: 140px;
  border: 2px dashed rgba(20, 20, 20, 0.4);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  background: #f5f5f5;
}

.profile-photo__drop.is-dragover {
  background: rgba(20, 20, 20, 0.05);
}

.profile-photo__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.profile-photo__icon {
  font-size: 1.6rem;
  color: var(--muted);
}

.profile-photo__text {
  font-size: 0.65rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 10px;
}

.profile-photo__preview {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  border-radius: 50%;
  object-fit: cover;
  display: none;
}

.profile-photo__drop.has-preview .profile-photo__icon,
.profile-photo__drop.has-preview .profile-photo__text {
  display: none;
}

@media (max-width: 720px) {
  .profile-photo {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-photo__drop {
    width: 160px;
    height: 160px;
  }
}

.avatar-cropper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.banner-picker__hint,
.profile-edit-modal__banner-drag-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 6px 0 0;
  text-align: center;
}

.banner-picker {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  cursor: grab;
  border: 1px solid rgba(20, 20, 20, 0.2);
  user-select: none;
  touch-action: none;
}

.banner-picker:active {
  cursor: grabbing;
}

.banner-picker__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.banner-picker__crosshair {
  position: absolute;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.avatar-cropper__canvas {
  width: 240px;
  height: 240px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 50%;
  background: #f5f5f5;
}

.avatar-cropper__range {
  width: 100%;
}

.image-cropper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.image-cropper__canvas {
  width: 320px;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #f5f5f5;
}

.image-cropper__range {
  width: 100%;
}

.image-cropper__hint {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.form__helper {
  font-size: 0.75rem;
  color: var(--muted);
}

.form__actions {
  display: flex;
  justify-content: flex-end;
}

.status__box {
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.status__value {
  font-size: 0.85rem;
  color: var(--text);
}

.button {
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: transparent;
  padding: 10px 18px;
  min-height: 42px;
  box-sizing: border-box;
  line-height: 1;
  font-size: 0.85rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.button--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button__content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button__icon {
  font-size: 18px;
  line-height: 1;
}

.button__text {
  line-height: 1;
}

.button:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.button[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.button--dashed {
  border: 1px dashed rgba(20, 20, 20, 0.4);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 10px 14px;
}

.grok-result__media {
  border: 1px solid rgba(20, 20, 20, 0.12);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.grok-result__media img,
.grok-result__media video {
  max-width: 100%;
  height: auto;
  display: block;
}

.table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.table__row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(220px, 1fr);
  gap: 16px;
  padding: 12px 0;
}

.table__row--users {
  grid-template-columns: minmax(200px, 1fr) minmax(220px, 1fr) 48px 48px;
}

.table__row--accounts {
  grid-template-columns: minmax(160px, 1fr) minmax(220px, 1.2fr) minmax(220px, 1.2fr) minmax(140px, 0.8fr);
}

.table__row--accounts-users {
  grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1.05fr) minmax(220px, 1.45fr) minmax(150px, 0.9fr) 160px;
  align-items: center;
}

.table__row--accounts-admin {
  grid-template-columns: minmax(180px, 1.1fr) minmax(200px, 1.1fr) minmax(220px, 1.45fr) 160px;
  align-items: center;
}

.table__row--uploads {
  grid-template-columns: minmax(120px, 0.6fr) minmax(180px, 0.8fr) minmax(220px, 1.2fr) minmax(160px, 0.9fr) minmax(160px, 0.9fr) 120px;
  align-items: center;
}

.table__row--files-gallery {
  grid-template-columns: minmax(220px, 1.6fr) minmax(220px, 1.6fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(120px, 0.8fr);
  align-items: center;
}

body[data-files-gallery-mode="editing"] .table__row--files-gallery {
  grid-template-columns: minmax(190px, 2.4fr) minmax(120px, 1.2fr) minmax(120px, 1.2fr) minmax(92px, 0.78fr) minmax(88px, 0.7fr) minmax(134px, 1fr) minmax(92px, 0.66fr);
}

body[data-files-gallery-mode="editing"] .table__row--files-gallery .table__cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-files-gallery-mode="editing"] .table__row--files-gallery > :first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body[data-files-gallery-mode="editing"] .table__row--files-gallery.table__row--work-pending {
  background: rgba(33, 150, 243, 0.08);
}

body[data-files-gallery-mode="editing"] .table__row--files-gallery.table__row--work-in-process {
  background: rgba(255, 193, 7, 0.1);
}

body[data-files-gallery-mode="editing"] .table__row--files-gallery.table__row--work-finalized {
  background: rgba(76, 175, 80, 0.1);
}

body[data-files-gallery-mode="editing"] .table__row--files-gallery .table__cell--action {
  overflow: visible;
  padding-left: 2px;
}

body[data-files-gallery-mode="editing"] .dashboard__actions {
  margin-left: auto;
  flex-shrink: 0;
}

.table__row--grok-prompts {
  grid-template-columns: minmax(320px, 2fr) minmax(200px, 1fr) minmax(120px, 0.6fr) minmax(120px, 0.6fr) minmax(90px, 0.5fr) minmax(112px, 0.7fr);
  align-items: center;
}

.table__row--grok-prompts > :last-child {
  justify-self: end;
}

.table__row--header.table__row--grok-prompts > :last-child {
  text-align: right;
}

.table__cell--grok-prompt {
  white-space: normal;
  line-height: 1.35;
}

.table__row--grok-prompts .table__cell--action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.table__row--results-analysis {
  grid-template-columns: minmax(220px, 1.5fr) minmax(100px, 0.6fr) minmax(110px, 0.6fr) minmax(110px, 0.7fr) minmax(110px, 0.7fr) minmax(90px, 0.5fr) minmax(170px, 1fr);
  align-items: center;
}

.table__cell--results-analysis-group {
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-results-analysis__filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 12px;
}

.admin-results-analysis__field {
  margin: 0;
}

.admin-results-analysis__kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.kpi-card {
  border: 1px solid rgba(20, 20, 20, 0.16);
  padding: 10px;
  background: #ffffff;
}

.kpi-card__label {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi-card__value {
  margin: 6px 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 980px) {
  .admin-results-analysis__filters {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }

  .admin-results-analysis__kpis {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .table__row--results-analysis {
    grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(82px, 0.56fr)) minmax(140px, 0.9fr);
    gap: 10px;
  }
}

@media (max-width: 680px) {
  .admin-results-analysis__filters {
    grid-template-columns: 1fr;
  }

  .admin-results-analysis__kpis {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

body[data-files-gallery-mode="transfer"] .table__row--files-gallery {
  grid-template-columns: minmax(220px, 1.25fr) minmax(220px, 1.25fr) minmax(90px, 0.45fr) minmax(120px, 0.55fr) minmax(180px, 0.9fr) 120px;
}

body[data-files-gallery-mode="web"] .table__row--files-gallery {
  grid-template-columns: 44px minmax(220px, 1.25fr) minmax(220px, 1.25fr) minmax(90px, 0.45fr) minmax(120px, 0.55fr) minmax(180px, 0.9fr) 120px;
}

.table__select--files-gallery-category {
  width: 100%;
  min-width: 180px;
}

.table__files-meta {
  margin-top: 6px;
  font-size: 0.74rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: var(--muted);
}

.table__work-status-select {
  width: 100%;
  min-width: 120px;
  max-width: none;
  height: 34px;
  min-height: 34px;
  padding: 0 8px;
  font-size: 0.56rem;
  letter-spacing: 0.03rem;
  line-height: 1;
  text-transform: uppercase;
}

.table__work-status-control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.45);
  background: rgba(255, 255, 255, 0.92);
}

.table__work-status-control--pending {
  background: rgba(33, 150, 243, 0.12);
  border-color: rgba(33, 150, 243, 0.45);
}

.table__work-status-control--in_process {
  background: rgba(255, 193, 7, 0.14);
  border-color: rgba(255, 193, 7, 0.55);
}

.table__work-status-control--finalized {
  background: rgba(76, 175, 80, 0.14);
  border-color: rgba(76, 175, 80, 0.55);
}

.swal-form__input.table__work-status-select {
  font-size: 0.56rem;
  letter-spacing: 0.03rem;
  line-height: 1;
  text-transform: uppercase;
  border: none;
  background: transparent;
  padding-right: 26px;
}

.table__work-status-select option {
  font-size: 0.56rem;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
}

.table__work-status-select:disabled {
  opacity: 1;
  border: none;
  color: rgba(20, 20, 20, 0.9);
  background: transparent;
  cursor: not-allowed;
}

.table__work-status-icon {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: rgba(20, 20, 20, 0.85);
  pointer-events: none;
}

.table__work-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(20, 20, 20, 0.4);
  background: #ffffff;
  font-size: 0.66rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  font-weight: 600;
}

.table__work-status-pill--pending {
  background: rgba(33, 150, 243, 0.12);
  border-color: rgba(33, 150, 243, 0.48);
}

.table__work-status-pill--in_process {
  background: rgba(255, 193, 7, 0.16);
  border-color: rgba(255, 193, 7, 0.56);
}

.table__work-status-pill--finalized {
  background: rgba(76, 175, 80, 0.16);
  border-color: rgba(76, 175, 80, 0.6);
}

.table__work-status-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.64rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  color: var(--muted);
}

.table__work-status-dot {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 20, 20, 0.42);
  background: #ffffff;
}

.table__work-status-dot--pending {
  background: rgba(33, 150, 243, 0.12);
  border-color: rgba(33, 150, 243, 0.52);
}

.table__work-status-dot--in_process {
  background: rgba(255, 193, 7, 0.18);
  border-color: rgba(255, 193, 7, 0.56);
}

.table__work-status-dot--finalized {
  background: rgba(76, 175, 80, 0.17);
  border-color: rgba(76, 175, 80, 0.58);
}

.table__work-status-dot-icon {
  font-size: 15px;
  color: rgba(20, 20, 20, 0.9);
}

.table__row--files-gallery > :first-child {
  padding-left: 10px;
}

.table__cell--preview {
  justify-content: center;
}

.table__row--files-gallery > :last-child {
  padding-right: 10px;
}

.table__row--header.table__row--files-gallery > :last-child {
  justify-self: end;
  text-align: right;
}

body[data-files-gallery-mode="transfer"] .table__row--files-gallery.table__row--work-pending {
  background: rgba(33, 150, 243, 0.1);
  padding-left: 10px;
  padding-right: 10px;
}

body[data-files-gallery-mode="transfer"] .table__row--files-gallery.table__row--work-in-process {
  background: rgba(255, 193, 7, 0.1);
  padding-left: 10px;
  padding-right: 10px;
}

body[data-files-gallery-mode="transfer"] .table__row--files-gallery.table__row--work-finalized {
  background: rgba(76, 175, 80, 0.1);
  padding-left: 10px;
  padding-right: 10px;
}

.table__row--mailbox {
  grid-template-columns: minmax(150px, 0.8fr) minmax(160px, 1fr) minmax(220px, 1.2fr) minmax(320px, 2fr);
}

.table__row--model-forms {
  grid-template-columns: 88px minmax(260px, 1.35fr) minmax(210px, 1fr) minmax(230px, 1.1fr) 132px;
  align-items: center;
}

.table__body .table__row--model-forms {
  min-height: 100px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.table__body .table__row--model-forms::before {
  content: none;
}

.table__body .table__row--model-forms::after {
  content: none;
}

.table__body .table__row--model-forms > * {
  position: relative;
  z-index: 1;
}

.table__body .table__row--model-forms:nth-child(even) {
  background: rgba(20, 20, 20, 0.04);
}

.table__cell--model-form-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.table__cell--model-form-details {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  align-self: start;
}

.table__cell--model-form-name,
.table__cell--model-form-age {
  line-height: 1.2;
}

.table__cell--model-form-name {
  font-weight: 600;
}

.table__cell--model-form-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table__creator-verified-icon {
  color: #0c4fb1;
  font-size: 17px;
  line-height: 1;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.table__cell--model-form-id {
  font-size: 0.68rem;
  letter-spacing: 0.01rem;
}

.model-form-status-item--clickable {
  cursor: pointer;
}

.model-form-status-item--clickable:focus-visible {
  outline: 1px solid rgba(12, 79, 177, 0.45);
  outline-offset: 2px;
}

.model-form-dni-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0c4fb1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01rem;
}

.model-form-dni-badge--pending {
  color: #b46300;
}

.model-form-dni-badge--rejected {
  color: #c0392b;
}

.model-form-dni-badge--accepted {
  color: #0c4fb1;
}

.model-form-dni-badge .material-symbols-outlined {
  font-size: 15px;
}

.model-form-agreement-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #141414;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01rem;
}

.model-form-agreement-badge--signed {
  color: #c66a00;
}

.model-form-agreement-badge--verified {
  color: #0b4ea2;
}

.model-form-agreement-badge--rejected {
  color: #ad3125;
}

.model-form-agreement-badge .material-symbols-outlined {
  font-size: 15px;
}

.model-form-dni-review-button {
  border: 0;
  background: transparent;
  color: #141414;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.model-form-dni-review-button--pending {
  color: #c66a00;
}

.model-form-dni-review-button--rejected {
  color: #c0392b;
}

.model-form-dni-review-button--accepted {
  color: #0c4fb1;
}

.model-form-dni-review-button .material-symbols-outlined {
  font-size: 15px;
}

.model-form-agreement-review-button {
  border: 0;
  background: transparent;
  color: #141414;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.model-form-agreement-review-button--signed {
  color: #c66a00;
}

.model-form-agreement-review-button--verified {
  color: #0b4ea2;
}

.model-form-agreement-review-button--rejected {
  color: #ad3125;
}

.model-form-agreement-review-button .material-symbols-outlined {
  font-size: 15px;
}

.model-form-dni-review-button:hover,
.model-form-dni-review-button:focus-visible {
  background: transparent;
}

.model-form-dni-review-popup {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.model-form-dni-review-popup__meta {
  display: grid;
  gap: 4px;
  font-size: 0.84rem;
}

.model-form-dni-review-popup__meta--id-editable {
  gap: 6px;
}

.model-form-dni-review-popup__id-label {
  font-size: 0.74rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.78);
}

.model-form-dni-review-popup__id-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: #ffffff;
  padding: 6px 8px;
}

.model-form-dni-review-popup__id-icon {
  font-size: 16px;
  color: rgba(20, 20, 20, 0.72);
}

.model-form-dni-review-popup__id-input {
  border: 0;
  background: transparent;
  color: #141414;
  font-size: 0.88rem;
  min-width: 0;
}

.model-form-dni-review-popup__id-input:focus {
  outline: none;
}

.model-form-dni-review-popup__id-edit {
  border: 0;
  background: transparent;
  color: rgba(20, 20, 20, 0.78);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.model-form-dni-review-popup__id-edit .material-symbols-outlined {
  font-size: 16px;
}

.model-form-dni-review-popup__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.model-form-dni-review-popup__image-card {
  border: 1px solid rgba(20, 20, 20, 0.18);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.model-form-dni-review-popup__image-card h4 {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
}

.model-form-dni-review-popup__image-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 260px;
}

.model-form-dni-review-popup__image-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  cursor: zoom-in;
}

.model-form-dni-review-popup__image-trigger img {
  transition: transform 0.18s ease;
}

.model-form-dni-review-popup__image-trigger:hover img,
.model-form-dni-review-popup__image-trigger:focus-visible img {
  transform: scale(1.02);
}

.model-form-dni-review-popup__empty {
  border: 1px dashed rgba(20, 20, 20, 0.3);
  padding: 16px 10px;
  font-size: 0.78rem;
  text-align: center;
  color: rgba(20, 20, 20, 0.65);
}

@media (max-width: 860px) {
  .model-form-dni-review-popup__grid {
    grid-template-columns: 1fr;
  }
}

.swal-popup--model-form-dni-preview {
  width: min(900px, 94vw);
  max-width: min(900px, 94vw);
}

.model-form-dni-preview-popup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-form-dni-preview-popup__stage {
  position: relative;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #050505;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.model-form-dni-preview-popup__stage img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.16s ease;
}

.model-form-dni-preview-popup__controls {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(20, 20, 20, 0.2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.model-form-dni-preview-popup__control {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.model-form-dni-preview-popup__control .material-symbols-outlined {
  font-size: 18px;
}

.model-form-dni-preview-popup__control.is-active {
  background: rgba(18, 122, 255, 0.35);
  border-color: rgba(18, 122, 255, 0.7);
}

.table__cell--model-form-age {
  color: var(--muted);
}

.model-form-like-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.model-form-like-toggle {
  border: 0;
  background: transparent;
  color: rgba(20, 20, 20, 0.58);
  width: 22px;
  height: 22px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.table__row--model-forms:hover .model-form-like-toggle,
.model-form-like-row--has-likes .model-form-like-toggle,
.model-form-like-toggle.is-active {
  opacity: 1;
  pointer-events: auto;
}

.model-form-like-toggle .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.model-form-like-toggle.is-active {
  color: #0c4fb1;
}

.model-form-like-toggle:hover,
.model-form-like-toggle:focus-visible {
  color: #0c4fb1;
}

.model-form-like-avatars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.model-form-like-avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: #f2f2f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.model-form-like-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.model-form-like-avatar .material-symbols-outlined {
  font-size: 13px;
  color: rgba(20, 20, 20, 0.64);
}

.table__cell--model-form-contact {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
  gap: 8px;
}

.table__cell--model-form-status {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
}

.model-form-status-stack {
  display: grid;
  gap: 8px;
}

.model-form-status-stack__row {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.model-form-status-stack__empty {
  font-size: 0.84rem;
  color: rgba(20, 20, 20, 0.48);
}

.model-form-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.model-form-contact-item .material-symbols-outlined {
  font-size: 18px;
  color: rgba(20, 20, 20, 0.6);
  flex: 0 0 auto;
}

.model-form-contact-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.table__cell--model-form-actions {
  position: relative;
  overflow: visible;
}

.table__cell--model-form-actions::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  width: 96px;
  height: 72px;
  transform: translateY(-50%);
  background-image: var(--model-form-flag-url);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  opacity: 0.1;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.table__cell--model-form-actions > * {
  position: relative;
  z-index: 1;
}

.creator-proposals-toggle .material-symbols-outlined {
  transition: transform 0.2s ease;
}

.creator-proposals-toggle--expanded .material-symbols-outlined {
  transform: rotate(180deg);
}

.creator-proposals-details {
  padding: 0 0 14px;
  margin-top: -6px;
}

.creator-proposals-details__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.creator-proposals-option {
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: rgba(255, 255, 255, 0.96);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 152px;
}

.creator-proposals-option__title {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07rem;
  color: #141414;
}

.creator-proposals-option__hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(20, 20, 20, 0.72);
}

.creator-proposals-dropzone {
  border: 1px dashed rgba(20, 20, 20, 0.38);
  background: rgba(20, 20, 20, 0.03);
  min-height: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
  padding: 8px;
}

.creator-proposals-dropzone:focus-visible {
  outline: 1px solid rgba(20, 20, 20, 0.5);
  outline-offset: 1px;
}

.creator-proposals-dropzone--dragover {
  border-color: rgba(12, 79, 177, 0.65);
  background: rgba(12, 79, 177, 0.08);
}

.creator-proposals-dropzone__icon {
  font-size: 20px;
  color: rgba(20, 20, 20, 0.78);
}

.creator-proposals-dropzone__text {
  font-size: 0.74rem;
  line-height: 1.25;
  color: rgba(20, 20, 20, 0.76);
}

.creator-proposals-option__button {
  margin-top: auto;
  border: 1px solid rgba(20, 20, 20, 0.35);
  background: #ffffff;
  color: #141414;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}

.creator-proposals-option__button .material-symbols-outlined {
  font-size: 17px;
}

.creator-proposals-option__button:hover,
.creator-proposals-option__button:focus-visible {
  background: rgba(20, 20, 20, 0.07);
}

.creator-proposals-option__button--disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.creator-proposals-option__status {
  margin: 0;
  min-height: 18px;
  font-size: 0.68rem;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.7);
}

.creator-proposals-option__status--success {
  color: #0f6f2f;
}

.creator-proposals-option__status--warning {
  color: #8f5d00;
}

.creator-proposals-option__status--error {
  color: #8a1111;
}

.creator-proposals-option__status--progress {
  color: #0c4fb1;
}

.creator-proposals-modal-popup {
  width: min(960px, calc(100vw - 28px));
}

.creator-proposals-modal__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.creator-proposals-modal__loading-icon {
  font-size: 28px;
  color: rgba(20, 20, 20, 0.62);
  animation: model-forms-spin 0.9s linear infinite;
}

.creator-proposals-modal__summary {
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.68);
}

.creator-proposals-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 58vh;
  overflow: auto;
  padding-right: 2px;
}

.creator-proposals-modal__card {
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}

.creator-proposals-modal__card:hover,
.creator-proposals-modal__card:focus-visible {
  background: rgba(20, 20, 20, 0.04);
}

.creator-proposals-modal__card--disabled {
  opacity: 0.72;
}

.creator-proposals-modal__media {
  border: 1px solid rgba(20, 20, 20, 0.14);
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(20, 20, 20, 0.02);
}

.creator-proposals-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creator-proposals-modal__media .material-symbols-outlined {
  font-size: 24px;
  color: rgba(20, 20, 20, 0.58);
}

.creator-proposals-modal__meta {
  font-size: 0.66rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.72);
}

.creator-proposals-modal__status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  padding: 2px 8px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  font-size: 0.64rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #141414;
  background: rgba(20, 20, 20, 0.05);
}

.creator-proposals-modal__status--approved {
  border-color: rgba(15, 111, 47, 0.35);
  color: #0f6f2f;
  background: rgba(15, 111, 47, 0.08);
}

.creator-proposals-modal__status--rejected {
  border-color: rgba(138, 17, 17, 0.32);
  color: #8a1111;
  background: rgba(138, 17, 17, 0.08);
}

.creator-proposals-modal__status--pending {
  border-color: rgba(20, 20, 20, 0.24);
  color: #141414;
  background: rgba(20, 20, 20, 0.05);
}

.creator-proposals-modal__meta--reward {
  color: #0f6f2f;
  font-weight: 700;
}

.creator-proposals-modal__open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  font-size: 0.68rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #0c4fb1;
}

.creator-proposals-modal__open .material-symbols-outlined {
  font-size: 16px;
}

.creator-proposals-modal__empty {
  margin: 0;
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 0.82rem;
  color: rgba(20, 20, 20, 0.72);
}

.creator-content-review-popup {
  width: min(1360px, calc(100vw - 18px));
  max-width: calc(100vw - 18px);
  min-height: 90vh;
}

.creator-content-review-popup .swal2-html-container {
  max-height: calc(90vh - 132px);
  overflow-y: auto;
  padding-right: 4px;
}

.creator-content-review__loading,
.creator-content-references__loading {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creator-content-review__loading .material-symbols-outlined,
.creator-content-references__loading .material-symbols-outlined {
  font-size: 30px;
  color: rgba(20, 20, 20, 0.62);
  animation: model-forms-spin 0.9s linear infinite;
}

.creator-content-review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

body.my-profile-page--creator-content-route .profile-shell,
body.my-profile-page--creator-content-route #my-profile-creator-content-page,
body.my-profile-page--creator-content-route #my-profile-creator-content-page .panel__body,
body.my-profile-page--creator-content-route #my-profile-creator-content-page-body,
body.my-profile-page--creator-content-route .creator-content-review,
body.my-profile-page--creator-content-route .creator-content-references {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.my-profile-page--creator-content-route .dashboard__content.profile-shell {
  overflow-x: clip;
}

.creator-content-review__flash,
.creator-content-references__flash {
  margin: 0;
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: rgba(20, 20, 20, 0.05);
  padding: 8px 10px;
  font-size: 0.76rem;
  letter-spacing: 0.02rem;
}

.creator-content-review__section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.creator-content-review__section > h3 {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07rem;
  color: rgba(20, 20, 20, 0.8);
}

.creator-content-review__pending-grid,
.creator-content-review__history-grid,
.creator-content-review__grid,
.creator-content-mentions__grid,
.creator-content-references__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.creator-content-review__card,
.creator-content-review__history-card,
.creator-content-mentions__card,
.creator-content-references__card {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.creator-content-review__card.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.creator-content-review__media,
.creator-content-review__history-media,
.creator-content-mentions__media,
.creator-content-references__media {
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: rgba(20, 20, 20, 0.03);
  min-height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.creator-content-review__media img,
.creator-content-review__history-media img,
.creator-content-mentions__media img,
.creator-content-references__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creator-content-review__media .material-symbols-outlined,
.creator-content-review__history-media .material-symbols-outlined,
.creator-content-mentions__media .material-symbols-outlined,
.creator-content-references__media .material-symbols-outlined {
  font-size: 26px;
  color: rgba(20, 20, 20, 0.58);
}

.creator-content-review__body,
.creator-content-review__history-body,
.creator-content-mentions__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.creator-content-review__body > *,
.creator-content-review__history-body > *,
.creator-content-mentions__body > *,
.creator-content-references__meta,
.creator-content-review__meta,
.creator-content-review__history-meta,
.creator-content-mentions__meta,
.creator-content-review__history-note,
.creator-content-review__notes,
.creator-content-review__history-reward,
.creator-content-review__empty,
.creator-content-mentions__empty,
.creator-content-references__empty,
.creator-content-mentions__open {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.creator-content-review__meta,
.creator-content-review__history-meta,
.creator-content-mentions__meta,
.creator-content-references__meta {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.72);
}

.creator-content-review__decision-actions,
.creator-content-review__actions,
.creator-content-references__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.creator-content-review__decision-actions .button,
.creator-content-review__actions .button,
.creator-content-references__actions .button,
.creator-content-references__toolbar .button {
  max-width: 100%;
  min-width: 0;
}

.creator-content-review__decision-actions .button__content,
.creator-content-review__actions .button__content,
.creator-content-references__actions .button__content,
.creator-content-references__toolbar .button__content {
  white-space: normal;
}

.creator-content-review__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.creator-content-review__field > span {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  color: rgba(20, 20, 20, 0.66);
}

.creator-content-review__field .form__input,
.creator-content-review__field .form__textarea,
.creator-content-review__field .form__select {
  width: 100%;
}

.creator-content-review__history-status {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-weight: 700;
}

.creator-content-review__history-status--approved {
  color: #0f6f2f;
}

.creator-content-review__history-status--rejected {
  color: #8a1111;
}

.creator-content-review__history-note,
.creator-content-review__notes,
.creator-content-review__history-reward {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.32;
  color: rgba(20, 20, 20, 0.8);
}

.creator-content-review__history-reward,
.creator-content-review__reward {
  color: #0f6f2f;
  font-weight: 600;
}

.creator-content-review__empty,
.creator-content-mentions__empty,
.creator-content-references__empty {
  margin: 0;
  min-height: 84px;
  border: 1px dashed rgba(20, 20, 20, 0.28);
  background: rgba(20, 20, 20, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  font-size: 0.8rem;
  color: rgba(20, 20, 20, 0.72);
}

.creator-content-mentions__body h3 {
  margin: 0;
  font-size: 0.88rem;
  color: #141414;
}

.creator-content-mentions__body p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(20, 20, 20, 0.78);
}

.creator-content-mentions__open {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0c4fb1;
  font-size: 0.72rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
}

.creator-content-mentions__open .material-symbols-outlined {
  font-size: 16px;
}

.creator-content-references {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.creator-content-references__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.creator-content-references__summary,
.creator-content-references__count {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07rem;
  color: rgba(20, 20, 20, 0.72);
}

@media (max-width: 1160px) {
  .creator-content-review__pending-grid,
  .creator-content-review__history-grid,
  .creator-content-review__grid,
  .creator-content-mentions__grid,
  .creator-content-references__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .creator-content-review-popup {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    min-height: 88vh;
  }

  .creator-content-review-popup .swal2-html-container {
    max-height: calc(88vh - 120px);
  }

  .creator-content-review__pending-grid,
  .creator-content-review__history-grid,
  .creator-content-review__grid,
  .creator-content-mentions__grid,
  .creator-content-references__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1160px) {
  .table__row--model-forms {
    grid-template-columns: 76px minmax(190px, 1.2fr) minmax(170px, 0.95fr) minmax(170px, 1fr) 120px;
  }

  .model-form-contact-text {
    font-size: 0.86rem;
  }

  .creator-proposals-details__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creator-proposals-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .creator-proposals-details__grid {
    grid-template-columns: 1fr;
  }

  .creator-proposals-modal__grid {
    grid-template-columns: 1fr;
  }
}

.table__row--loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.table__cell--model-forms-loading {
  width: 100%;
  min-height: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.model-forms-loading-spinner {
  font-size: 34px;
  line-height: 1;
  color: rgba(20, 20, 20, 0.58);
  animation: model-forms-spin 0.9s linear infinite;
}

@keyframes model-forms-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.model-form-avatar {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: #f5f5f5;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.model-form-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.model-form-avatar .material-symbols-outlined {
  font-size: 18px;
  color: rgba(20, 20, 20, 0.7);
}

.model-form-avatar-source {
  display: grid;
  gap: 12px;
}

.model-form-avatar-source__uploaded {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-form-avatar-source__item {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: #ffffff;
  padding: 0;
  cursor: pointer;
}

.model-form-avatar-source__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.swal-popup--model-form-pdf {
  width: auto !important;
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.model-form-sheet-modal-container {
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.swal-container--model-form-sidebar {
  padding: 0 !important;
}

.swal-container--model-form-sidebar.swal2-backdrop-show {
  align-items: stretch;
  justify-content: flex-end;
}

.swal-container--model-form-sidebar.swal2-center {
  grid-template-columns: minmax(0, 1fr) auto 0 !important;
}

.swal-popup--model-form-sidebar {
  margin: 0 !important;
  right: 0;
  justify-self: end !important;
  grid-column: 2 !important;
  align-self: stretch;
  overflow: hidden;
  height: 100vh;
  max-height: 100vh;
  max-width: 100vw !important;
  width: min(1100px, 100vw) !important;
  background: #ffffff !important;
  border: 0 !important;
  border-left: 1px solid rgba(20, 20, 20, 0.16) !important;
  border-radius: 0 !important;
  box-shadow: -12px 0 28px rgba(20, 20, 20, 0.16) !important;
  padding: 0 !important;
  transform-origin: right center;
  will-change: transform, opacity;
}

.swal-popup--model-form-sidebar.swal2-show {
  animation: modelFormSidebarSlideIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modelFormSidebarSlideIn {
  from {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .swal-popup--model-form-sidebar.swal2-show {
    animation: none !important;
  }
}

.model-form-sheet-modal-container--sidebar {
  height: 100%;
  background: #ffffff;
  overflow: hidden !important;
}

.model-form-sidebar-layout {
  height: 100%;
  width: 100%;
  background: #ffffff;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 0;
  position: relative;
}

.model-form-sidebar-strip {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  background: #ffffff;
  border-right: 1px solid rgba(20, 20, 20, 0.14);
  padding: 10px 8px 12px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
}

.model-form-sidebar-strip__dni-actions {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  background: #ffffff;
}

.model-form-sidebar-strip__dni-label {
  font-size: 0.72rem;
  color: rgba(20, 20, 20, 0.72);
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.model-form-sidebar-strip__dni-input {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: #ffffff;
  color: #141414;
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.78rem;
}

.model-form-sidebar-strip__dni-button {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  color: #0c4fb1;
  min-height: 36px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.model-form-sidebar-strip__dni-button .material-symbols-outlined {
  font-size: 16px;
}

.model-form-sidebar-strip__dni-button:hover,
.model-form-sidebar-strip__dni-button:focus-visible {
  background: #f1f6ff;
}

.model-form-sidebar-strip__dni-button:disabled {
  opacity: 0.5;
  cursor: default;
  color: rgba(20, 20, 20, 0.5);
  background: #ffffff;
}

.model-form-sidebar-strip__review-actions {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  display: grid;
  gap: 6px;
}

.model-form-sidebar-strip__review-title {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(20, 20, 20, 0.72);
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.model-form-sidebar-strip__review-current {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(20, 20, 20, 0.76);
}

.model-form-sidebar-strip__review-current[data-status="accepted"] {
  color: #1f8f3a;
}

.model-form-sidebar-strip__review-current[data-status="rejected"] {
  color: #ad3125;
}

.model-form-sidebar-strip__review-buttons {
  display: grid;
  gap: 6px;
}

.model-form-sidebar-strip__review-buttons .model-form-sidebar-strip__dni-button.is-active {
  border-color: #141414;
  color: #141414;
  background: rgba(20, 20, 20, 0.08);
}

.model-form-sidebar-strip__review-feedback {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(20, 20, 20, 0.74);
}

.model-form-sidebar-strip__review-feedback[data-status="success"] {
  color: #1f8f3a;
}

.model-form-sidebar-strip__review-feedback[data-status="error"] {
  color: #ad3125;
}

.model-form-dni-verified-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #0c4fb1;
  font-size: 0.72rem;
  font-weight: 600;
}

.model-form-dni-verified-inline .material-symbols-outlined {
  font-size: 15px;
}

.model-form-sidebar-strip__photos {
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 1px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.model-form-sidebar-strip__photos::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.model-form-sidebar-strip__thumb {
  display: block;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  width: 100%;
  height: auto;
  padding: 0;
  cursor: zoom-in;
  overflow: visible;
}

.model-form-sidebar-strip__thumb img {
  max-width: 100%;
  max-height: none;
  width: 100%;
  height: auto;
  object-fit: unset;
  object-position: initial;
  display: block;
}

.model-form-sidebar-strip__thumb:focus-visible {
  outline: 2px solid rgba(12, 79, 177, 0.55);
  outline-offset: -2px;
}

.model-form-sidebar-strip__empty {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.76rem;
  border: 1px dashed rgba(20, 20, 20, 0.22);
  min-height: 98px;
}

.model-form-agreement-panel {
  height: 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  background: #ffffff;
}

.model-form-agreement-panel__meta {
  border-right: 1px solid rgba(20, 20, 20, 0.16);
  padding: 14px 14px 16px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  overflow: hidden;
}

.model-form-agreement-panel__meta-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.model-form-agreement-panel__meta-scroll > * {
  flex-shrink: 0;
}

.model-form-agreement-panel__meta-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.model-form-agreement-panel__meta h3 {
  margin: 8px 0 2px;
  font-size: 0.8rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.74);
}

.model-form-agreement-panel__meta p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.36;
  word-break: break-word;
}

.model-form-agreement-panel__meta pre {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  background: #f8f8f8;
  color: #141414;
  font-size: 0.74rem;
  line-height: 1.4;
  overflow: visible;
  white-space: pre-wrap;
  word-break: break-word;
}

.model-form-agreement-panel__download {
  margin-top: 8px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  color: #0c4fb1;
  min-height: 36px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
}

.model-form-agreement-panel__download .material-symbols-outlined {
  font-size: 16px;
}

.model-form-agreement-panel__download:hover,
.model-form-agreement-panel__download:focus-visible {
  background: #f1f6ff;
}

.model-form-agreement-panel__download:disabled {
  opacity: 0.55;
  cursor: default;
}

.model-form-agreement-review-inline {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  display: grid;
  gap: 6px;
}

.model-form-agreement-review-inline__title {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(20, 20, 20, 0.72);
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.model-form-agreement-review-inline__status {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(20, 20, 20, 0.78);
}

.model-form-agreement-review-inline__status[data-status="accepted"] {
  color: #0b4ea2;
}

.model-form-agreement-review-inline__status[data-status="rejected"] {
  color: #ad3125;
}

.model-form-agreement-review-inline__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.model-form-agreement-review-inline__button {
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: #fff;
  color: #141414;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 7px 10px;
  flex: 1 1 0;
  min-width: 0;
  cursor: pointer;
}

.model-form-agreement-review-inline__button:hover,
.model-form-agreement-review-inline__button:focus-visible {
  border-color: #141414;
  background: #f2f2f2;
}

.model-form-agreement-review-inline__button:disabled {
  opacity: 0.6;
  cursor: default;
}

.model-form-agreement-review-inline__button.is-active {
  border-color: #141414;
  background: rgba(20, 20, 20, 0.08);
}

.model-form-agreement-review-inline__feedback {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(20, 20, 20, 0.76);
}

.model-form-agreement-review-inline__feedback[data-status="success"] {
  color: #1f8f3a;
}

.model-form-agreement-review-inline__feedback[data-status="error"] {
  color: #ad3125;
}

.model-form-agreement-panel__document {
  background: #e8e8e8;
  min-height: 0;
}

.model-form-agreement-panel__iframe {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  background: #ffffff;
}

.model-form-modal-layout {
  position: relative;
  width: min(1160px, 96vw);
  background: #ffffff;
  max-height: 92vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.model-form-modal-layout__document {
  max-height: 92vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.model-form-modal-layout__document::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.model-form-collage {
  position: sticky;
  top: 0;
  height: 92vh;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.model-form-collage__title {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.model-form-collage__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 64px;
  grid-auto-flow: dense;
  gap: 8px;
  overflow: hidden;
}

.model-form-collage__item {
  margin: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
}

.model-form-collage__preview-trigger {
  border: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  padding: 0;
  display: block;
  cursor: zoom-in;
}

.model-form-collage__preview-trigger:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.45);
  outline-offset: -2px;
}

.model-form-collage__item--hero {
  grid-column: span 2;
  grid-row: span 3;
}

.model-form-collage__item--tall {
  grid-row: span 3;
}

.model-form-collage__item--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.model-form-collage__item--square {
  grid-row: span 2;
}

.model-form-collage__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.model-form-collage-preview-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 92vh;
  margin: 0 auto;
  object-fit: contain;
  object-position: center center;
}

.model-form-collage-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.8);
  z-index: 3000;
  padding: 22px;
}

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

.model-form-collage-lightbox__content {
  position: relative;
  width: min(96vw, 1260px);
  max-height: 92vh;
  display: grid;
  place-items: center;
}

.model-form-collage-lightbox__actions {
  position: fixed;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3101;
}

.model-form-collage-lightbox__download,
.model-form-collage-lightbox__close {
  width: 34px;
  height: 34px;
  border: 0;
  background: #ffffff;
  color: #141414;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.model-form-collage-lightbox__download:hover,
.model-form-collage-lightbox__download:focus-visible,
.model-form-collage-lightbox__close:hover,
.model-form-collage-lightbox__close:focus-visible {
  background: #f1f1f1;
}

.model-form-collage-lightbox__download[hidden] {
  display: none !important;
}

.model-form-collage-lightbox__download .material-symbols-outlined,
.model-form-collage-lightbox__close .material-symbols-outlined {
  font-size: 20px;
}

.model-form-collage__empty {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
}

.model-form-sheet {
  width: min(100%, 794px);
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.18);
  padding: 24px 28px;
}

.model-form-sheet--pdf {
  width: min(100%, 794px);
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(20, 20, 20, 0.08);
  padding: 24px 28px;
  margin-left: auto;
}

.model-form-sheet--pdf-textual {
  min-height: min(1122px, 92vh);
}

.model-form-sheet--textual-sidebar {
  width: 100%;
  max-width: none;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
  padding: 24px 22px 28px;
  position: relative;
}

.model-form-sheet-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.78);
  z-index: 4;
  pointer-events: all;
}

.model-form-sheet-loading__label {
  font-size: 0.84rem;
  color: rgba(20, 20, 20, 0.76);
}

.model-form-sheet-loading .model-forms-loading-spinner {
  font-size: 28px;
}

.model-form-textual-loading-modal-container {
  margin: 0 !important;
}

.model-form-textual-loading-modal {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 10px;
}

.model-form-textual-loading-modal__label {
  font-size: 0.84rem;
  color: rgba(20, 20, 20, 0.76);
}

.swal-popup--model-form-dni {
  position: relative;
  max-width: min(460px, calc(100vw - 24px)) !important;
}

.swal-popup--model-form-dni.is-saving::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.68);
  z-index: 6;
}

.swal-popup--model-form-dni.is-saving .swal2-loader {
  z-index: 7;
}

.model-form-dni-popup {
  display: grid;
  gap: 10px;
  text-align: left;
}

.model-form-dni-popup__existing {
  display: grid;
  gap: 8px;
}

.model-form-dni-popup__existing-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #141414;
}

.model-form-dni-popup__existing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.model-form-dni-popup__existing-thumb-wrap {
  border: 1px solid rgba(20, 20, 20, 0.16);
  background: #ffffff;
  min-height: 84px;
  padding: 4px;
}

.model-form-dni-popup__existing-thumb {
  width: 100%;
  height: 100%;
  max-height: 148px;
  object-fit: contain;
  display: block;
}

.model-form-dni-popup__existing-empty {
  border: 1px dashed rgba(20, 20, 20, 0.22);
  min-height: 72px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: rgba(20, 20, 20, 0.7);
  text-align: center;
  padding: 8px;
}

.model-form-sheet--textual-sidebar .model-form-sheet__question {
  text-align: left;
  color: #111111;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01rem;
  text-transform: none;
}

.model-form-sheet--textual-sidebar .model-form-sheet__answer,
.model-form-sheet--textual-sidebar .model-form-sheet__answer-field {
  font-size: 0.84rem;
  line-height: 1.35;
}

.model-form-sheet--textual-sidebar .model-form-sheet__answer-field {
  border-bottom: 0.5px solid rgba(17, 17, 17, 0.28);
  padding: 7px 0 8px;
}

.model-form-sheet__question-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
}

.model-form-sheet__question-row .model-form-sheet__question {
  margin: 0;
}

.model-form-sheet__answer-edit {
  border: 0;
  background: transparent;
  color: #141414;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.model-form-sheet__answer-edit .material-symbols-outlined {
  font-size: 16px;
}

.model-form-sheet__answer-edit:hover,
.model-form-sheet__answer-edit:focus-visible {
  background: transparent;
  color: rgba(20, 20, 20, 0.65);
}

.model-form-sheet__answer-editor {
  display: grid;
  gap: 8px;
  margin: 6px 0 8px;
}

.model-form-sheet__answer-input {
  width: 100%;
  min-height: 94px;
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: #ffffff;
  color: #111111;
  padding: 10px;
  resize: vertical;
  font-size: 0.84rem;
  line-height: 1.35;
  font-family: inherit;
}

.model-form-sheet__answer-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-form-action-button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  padding: 0;
  line-height: 1;
  aspect-ratio: 1 / 1;
}

.model-form-action-button .material-symbols-outlined {
  font-size: 20px;
}

.model-form-action-button--delete {
  border-color: rgba(165, 25, 25, 0.35);
  color: #8a1111;
}

.model-form-action-button--delete:hover,
.model-form-action-button--delete:focus-visible {
  background: rgba(165, 25, 25, 0.08);
}

.model-form-action-button--approve {
  border-color: rgba(16, 120, 45, 0.35);
  color: #0f6f2f;
}

.model-form-action-button--approve:hover,
.model-form-action-button--approve:focus-visible {
  background: rgba(16, 120, 45, 0.1);
}

.model-form-action-button--reject {
  border-color: rgba(165, 25, 25, 0.35);
  color: #8a1111;
}

.model-form-action-button--reject:hover,
.model-form-action-button--reject:focus-visible {
  background: rgba(165, 25, 25, 0.1);
}

.model-form-review-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(20, 20, 20, 0.26);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111111;
  background: rgba(255, 255, 255, 0.8);
}

.model-form-review-badge--accepted {
  border-color: rgba(16, 120, 45, 0.5);
  color: #0f6f2f;
  background: rgba(16, 120, 45, 0.12);
}

.model-form-review-badge--rejected {
  border-color: rgba(165, 25, 25, 0.45);
  color: #8a1111;
  background: rgba(165, 25, 25, 0.12);
}

.model-form-review-badge--pending {
  border-color: rgba(170, 120, 18, 0.45);
  color: #8a5d07;
  background: rgba(170, 120, 18, 0.12);
}

.swal-model-activation-options {
  display: grid;
  gap: 10px;
}

.swal-model-activation-options__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  background: #ffffff;
  color: #121212;
  text-align: left;
  cursor: pointer;
}

.swal-model-activation-options__item .material-symbols-outlined {
  font-size: 28px;
  color: rgba(20, 20, 20, 0.75);
}

.swal-model-activation-options__item:hover,
.swal-model-activation-options__item:focus-visible {
  background: rgba(20, 20, 20, 0.06);
}

.model-form-sheet__profile-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid rgba(20, 20, 20, 0.14);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.model-form-sheet__profile-header--pdf {
  margin-bottom: 14px;
}

.model-form-sheet__profile-avatar {
  width: 90px;
  height: 90px;
  border: 1px solid rgba(20, 20, 20, 0.22);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #edf0f3;
}

.model-form-sheet__profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-form-sheet__profile-avatar .material-symbols-outlined {
  font-size: 38px;
  color: rgba(20, 20, 20, 0.62);
}

.model-form-sheet__profile-main h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0.01rem;
}

.model-form-sheet__meta--profile {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.model-form-sheet__header {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.16);
  margin-bottom: 16px;
}

.model-form-sheet__header h3 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

.model-form-sheet__meta {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 0.8rem;
}

.model-form-sheet__qa {
  padding: 11px 0 8px;
}

.model-form-sheet__qa--pdf {
  border-bottom: 0;
}

.model-form-sheet__question {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: var(--muted);
}

.model-form-sheet--pdf-textual .model-form-sheet__question {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.model-form-sheet__answer {
  margin: 6px 0 7px;
  white-space: pre-wrap;
  line-height: 1.4;
  font-size: 0.96rem;
}

.model-form-sheet__answer-field {
  margin: 0;
  width: 100%;
  border-bottom: 0.5px solid rgba(17, 17, 17, 0.34);
  padding: 9px 0;
  line-height: 1.45;
  text-align: left;
}

.model-form-sheet__rule {
  display: block;
  width: 100%;
  height: 0.5px;
  background: rgba(20, 20, 20, 0.09);
}

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

  .model-form-agreement-panel {
    grid-template-columns: 1fr;
  }

  .model-form-agreement-panel__meta {
    border-right: 0;
    border-bottom: 1px solid rgba(20, 20, 20, 0.14);
    max-height: 42vh;
  }

  .model-form-agreement-panel__document {
    min-height: 58vh;
  }

  .model-form-sidebar-strip {
    position: static;
    top: auto;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 20, 20, 0.14);
  }

  .model-form-sidebar-strip__photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 82px;
    max-height: 260px;
  }

  .model-form-modal-layout {
    width: min(100%, 96vw);
    max-height: none;
    grid-template-columns: 1fr;
  }

  .model-form-modal-layout__document {
    max-height: 72vh;
  }

  .model-form-collage {
    position: static;
    height: auto;
  }

  .model-form-collage__grid {
    grid-auto-rows: 70px;
    max-height: 280px;
  }

  .model-form-sheet__meta {
    grid-template-columns: 1fr;
  }

  .model-form-sheet--pdf {
    padding: 14px;
  }

  .model-form-sheet__profile-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .model-form-sheet__meta--profile {
    text-align: left;
  }
}

.table__row--model-applications {
  grid-template-columns: minmax(150px, 0.8fr) minmax(170px, 1fr) minmax(190px, 1.2fr) minmax(150px, 1fr) minmax(160px, 1fr) 80px;
  align-items: center;
}

.table__row--help-cases {
  grid-template-columns: minmax(150px, 0.8fr) minmax(140px, 0.9fr) minmax(190px, 1.1fr) minmax(280px, 2fr) minmax(120px, 0.8fr) minmax(170px, 1fr);
}

.table__row--ideas {
  grid-template-columns: 52px minmax(230px, 1.15fr) minmax(140px, 0.9fr) minmax(190px, 1.05fr) minmax(260px, 1.45fr) minmax(130px, 0.8fr);
  align-items: center;
}

.table__row--ideas > :nth-child(2),
.table__row--header.table__row--ideas > :nth-child(2) {
  white-space: nowrap;
}

.table__row--ideas > :nth-child(5),
.table__row--header.table__row--ideas > :nth-child(5) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mailbox-help-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  font-size: 0.64rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.mailbox-help-status--attended {
  border-color: rgba(24, 122, 57, 0.4);
  color: #0d6e36;
}

.mailbox-help-status--unattended {
  border-color: rgba(169, 25, 25, 0.38);
  color: #8a1111;
}

.table__row--three {
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(120px, 0.7fr);
}

.table__cell--thumb {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uploads__thumb {
  position: relative;
  width: 84px;
  height: 64px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.uploads__thumb--preview {
  cursor: pointer;
  padding: 0;
  appearance: none;
}

.uploads__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uploads__thumb-eye {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #ffffff;
  background: rgba(20, 20, 20, 0.5);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.uploads__thumb--preview:hover .uploads__thumb-eye,
.uploads__thumb--preview:focus-visible .uploads__thumb-eye {
  opacity: 1;
}

.uploads__thumb--preview:hover img,
.uploads__thumb--preview:focus-visible img {
  filter: brightness(0.55);
}

.uploads__thumb .material-symbols-outlined {
  font-size: 28px;
  color: var(--muted);
}

.uploads__meta {
  font-size: 0.75rem;
  color: var(--muted);
}

.panel__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel__stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel__meta {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.table__row--four {
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(120px, 0.7fr) minmax(140px, 0.8fr);
}

.table__row--five {
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(120px, 0.7fr) minmax(140px, 0.8fr) 80px;
}

.table__row--api-usage {
  grid-template-columns: minmax(160px, 1fr) minmax(130px, 0.72fr) minmax(150px, 0.85fr) minmax(180px, 0.95fr) minmax(190px, 1.05fr) minmax(160px, 0.86fr);
}

.table__row--content-pages {
  grid-template-columns: minmax(86px, 0.55fr) minmax(260px, 2.1fr) minmax(130px, 0.95fr) minmax(120px, 0.8fr) 96px;
  align-items: center;
}

.table__row--content-pages > * {
  min-width: 0;
}

.table__row--content-pages .table__cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table__row--content-pages .table__cell--api {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.table__row--content-pages .table__cell--api .content-list__link {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table__row--content-pages .table__copy {
  flex: 0 0 auto;
}

.table__row--content-pages .table__cell--action {
  overflow: visible;
  white-space: normal;
}

.table__row--header.table__row--content-pages .table__cell--header {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table__row--tool-settings {
  grid-template-columns: minmax(220px, 1.6fr) minmax(220px, 1fr) 120px;
  align-items: center;
}

.table__row--subscription-settings {
  grid-template-columns: minmax(200px, 1.45fr) repeat(4, minmax(128px, 1fr));
  gap: 10px;
  align-items: start;
}

.table--tool-settings > .table__row--header.table__row--subscription-settings {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface, #ffffff);
}

.subscription-settings__tier-cell {
  align-self: stretch;
}

.subscription-settings__tier-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subscription-settings__tier-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#subscription-settings-body .table__row--subscription-settings {
  padding: 10px 0;
}

#subscription-settings-body .table__row--subscription-settings + .table__row--subscription-settings {
  border-top: 1px solid rgba(20, 20, 20, 0.12);
}

.toggle.toggle--only-slider {
  gap: 0;
}

.toggle.toggle--only-slider .toggle__text {
  display: none;
}

.subscription-settings__model-label {
  font-size: 0.7rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.table__row--header {
  padding-bottom: 8px;
}

.table__row--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.table__row--seven {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.table__row--eight {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.spendings__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.overview__range {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.overview__range-label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.overview__range-select {
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  padding: 8px 12px;
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
  outline: none;
  min-width: 180px;
}

.overview__stat {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overview__stat--api-earnings {
  grid-column: 1;
  grid-row: 2;
}

.overview__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.overview__value {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.overview__value--positive {
  color: #1b7a3a;
}

.overview__value--negative {
  color: #b42318;
}

.overview__value-small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

.overview__delta {
  font-size: 0.85rem;
  color: var(--muted);
}

.overview__delta--positive {
  color: #1b7a3a;
}

.overview__delta--negative {
  color: #b42318;
}

.table__cell.overview__delta--positive {
  color: #1b7a3a;
}

.table__cell.overview__delta--negative {
  color: #b42318;
}

.overview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.overview__chart-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.overview__chart-select {
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  padding: 6px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
  outline: none;
}

.qwen-edit__form-panel {
  max-width: 460px;
  width: 100%;
  justify-self: start;
}

.upscaler2__form-panel {
  max-width: 460px;
  width: 100%;
  justify-self: start;
}

#qwen-dropzone {
  aspect-ratio: 3 / 2;
  min-height: 0;
}

#qwen-dropzone .upscaler__image-wrap {
  width: 100%;
  height: 100%;
  max-height: none;
}

#qwen-dropzone .upscaler__preview-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

#qwen-max-dropzone {
  aspect-ratio: 3 / 2;
  min-height: 0;
}

#qwen-max-dropzone .upscaler__image-wrap {
  width: 100%;
  height: 100%;
  max-height: none;
}

#qwen-max-dropzone .upscaler__preview-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

#upscaler-dropzone {
  aspect-ratio: 3 / 2;
  min-height: 0;
}

#upscaler-dropzone .upscaler__image-wrap {
  width: 100%;
  height: 100%;
  max-height: none;
}

#upscaler-dropzone .upscaler__preview-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.upscaler-home-layout #upscaler-dropzone {
  box-sizing: border-box;
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  aspect-ratio: 1 / 1;
  flex: 0 0 100px;
  padding: 0;
}

body.home-page[data-i18n-page="tool-seedvr2"] #upscaler-dropzone:not(.has-image) .upscaler__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.home-page[data-i18n-page="tool-seedvr2"] #upscaler-dropzone .upscaler__placeholder > span:not(.material-symbols-outlined) {
  display: none;
}

.upscaler-home-layout #upscaler-dropzone .upscaler__image-wrap {
  width: 100%;
  height: 100%;
  max-height: none;
}

.upscaler-home-layout #upscaler-dropzone .upscaler__preview-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

#facechex-source-dropzone,
#facechex-comparison-dropzone {
  aspect-ratio: 4 / 5;
  height: clamp(360px, 56vh, 500px);
  min-height: 360px;
  max-height: 500px;
}

#facechex-source-dropzone .upscaler__image-wrap,
#facechex-comparison-dropzone .upscaler__image-wrap {
  width: 100%;
  height: 100%;
  max-height: none;
}

#facechex-source-dropzone .upscaler__preview-image,
#facechex-comparison-dropzone .upscaler__preview-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.qwen-preview__placeholder {
  height: clamp(360px, 65vh, 700px);
  min-height: clamp(360px, 65vh, 700px);
  max-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(20, 20, 20, 0.3);
  border: none;
  background-color: #ffffff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.qwen-preview__placeholder .material-symbols-outlined {
  font-size: 48px;
}

.qwen-preview__placeholder.has-output {
  color: transparent;
  cursor: pointer;
}

.qwen-preview__placeholder.has-output .material-symbols-outlined {
  opacity: 0;
}

.qwen-preview__placeholder.is-tool-processing,
.upscaler-output__placeholder.is-tool-processing,
[id$="-output-placeholder"].is-tool-processing {
  color: transparent;
  cursor: default;
}

.qwen-preview__placeholder.is-tool-processing > .material-symbols-outlined,
.upscaler-output__placeholder.is-tool-processing > .material-symbols-outlined,
[id$="-output-placeholder"].is-tool-processing > .material-symbols-outlined {
  opacity: 0;
}

.output-processing__overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.is-tool-processing > .output-processing__overlay {
  display: flex;
}

.output-processing__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(10px) saturate(0.88) brightness(0.65);
  transform: scale(1.06);
}

.output-processing__preview.has-preview {
  opacity: 1;
}

.output-processing__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0.58) 100%);
}

.output-processing__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.output-processing__spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.98);
  border-radius: 999px;
  animation: output-processing-spin 0.9s linear infinite;
}

.output-processing__percent {
  color: #ffffff;
  font-family: var(--font-ui, "Rajdhani", sans-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

@keyframes output-processing-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .output-processing__spinner {
    animation-duration: 2.4s;
  }
}

.output-media {
  position: absolute;
  inset: 0;
  --output-icon-inset: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.output-media__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
}

#watermark-output-placeholder .output-media__frame {
  aspect-ratio: auto;
}

.output-media__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
}

.qwen-output__download {
  display: none;
  position: absolute;
  z-index: 6;
  border: none;
  background: transparent;
  padding: 0;
  line-height: 1;
  appearance: none;
  outline: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  -webkit-tap-highlight-color: transparent;
}

.qwen-output__download[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.4;
}

.qwen-preview__placeholder.has-output .qwen-output__download {
  display: inline-flex;
}

.qwen-preview__placeholder.has-output .output-media {
  display: inline-flex;
}

.qwen-preview__placeholder.has-output .qwen-output__download .material-symbols-outlined {
  opacity: 0.7;
}

.qwen-preview__placeholder.has-output .upscaler-output__download .material-symbols-outlined {
  opacity: 0.7;
}

.qwen-output__download .material-symbols-outlined,
.upscaler-output__download .material-symbols-outlined {
  font-size: 25px;
  line-height: 1;
  opacity: 0.7;
}

.upscaler-output__placeholder {
  border: none;
  position: relative;
}

.upscaler-output__placeholder.has-output {
  cursor: pointer;
}

.upscaler-output__placeholder.has-output .output-media__image {
  cursor: zoom-in;
}

/* Upscaler renders its pending state inside Output; retain persisted jobs for
   recovery but do not duplicate that state in the fixed process widget. */
body[data-i18n-page="tool-seedvr2"] .processes {
  display: none !important;
}

.upscaler-output__placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  background: #000000;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: opacity 0.2s ease;
}

.upscaler-output__placeholder.is-processing {
  color: transparent;
  cursor: default;
}

.upscaler-output__placeholder.is-processing::before {
  opacity: 1;
  background: #000000;
  filter: none;
}

.upscaler-output__placeholder.is-processing .output-media {
  display: none;
}

.upscaler-output__placeholder.is-processing > .material-symbols-outlined {
  opacity: 0;
}

.upscaler-output__loader {
  z-index: 3;
}

.upscaler-output__placeholder.is-processing .upscaler-output__loader {
  display: flex;
}

.upscaler-output__download {
  display: none;
  position: absolute;
  z-index: 6;
  border: none;
  background: transparent;
  padding: 0;
  line-height: 1;
  appearance: none;
  outline: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  -webkit-tap-highlight-color: transparent;
}

.qwen-output__download:focus,
.upscaler-output__download:focus {
  outline: none;
}

.qwen-output__download:focus-visible,
.upscaler-output__download:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.92);
}

.upscaler-output__download[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.4;
}

.upscaler-output__placeholder.has-output .upscaler-output__download {
  display: inline-flex;
}

.upscaler-options-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: start;
}

.upscaler-options-layout__column {
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upscaler-options-layout__title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.upscaler-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.upscaler-actions__status {
  margin: 0;
}

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

.seedance-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seedance-dropdown {
  position: relative;
  width: 100%;
}

.seedance-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  min-height: 44px;
  gap: 10px;
  padding: 10px 12px;
  text-transform: none;
  letter-spacing: 0.04rem;
}

.seedance-dropdown__label {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seedance-dropdown__toggle .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
}

.seedance-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.seedance-dropdown__menu[aria-hidden="true"] {
  display: none;
}

.seedance-dropdown__option {
  border: none;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  min-height: 40px;
  font: inherit;
  text-transform: none;
  letter-spacing: 0.03rem;
  cursor: pointer;
}

.seedance-dropdown__option:first-child {
  border-top: none;
}

.seedance-option.is-active {
  background: rgba(20, 20, 20, 0.08);
}

.qwen-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.qwen-actions__status {
  margin: 0;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.filters--collapsed {
  display: none;
}

.filters__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.filters__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__field[hidden] {
  display: none;
}

.filters__field--wide {
  grid-column: span 2;
}

.filters__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.filters__input {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-family: var(--font-text-ui);
  color: var(--text);
}

.filters__input::placeholder {
  color: rgba(20, 20, 20, 0.5);
}

.filters__actions {
  display: flex;
  justify-content: flex-end;
}

.model-forms-age-range {
  position: relative;
  height: 34px;
  display: flex;
  align-items: center;
}

.model-forms-age-range__track {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(20, 20, 20, 0.16);
}

.model-forms-age-range__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: #141414;
}

.model-forms-age-range__input {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.model-forms-age-range__input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.model-forms-age-range__input::-moz-range-track {
  height: 4px;
  background: transparent;
  border: 0;
}

.model-forms-age-range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 1px solid #141414;
  pointer-events: auto;
  cursor: ew-resize;
  margin-top: -5px;
}

.model-forms-age-range__input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 1px solid #141414;
  pointer-events: auto;
  cursor: ew-resize;
}

.model-forms-age-range__values {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.model-forms-age-range__value {
  letter-spacing: 0.04rem;
}

.upscaler {
  margin-bottom: 32px;
}

.panel.upscaler.upscaler--active {
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #ffffff;
  padding: 20px 22px;
}

.upscaler__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.upscaler__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upscaler__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.upscaler__input {
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
}

.upscaler__inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.upscaler__inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.upscaler__canvas {
  display: flex;
  justify-content: center;
}

.upscaler__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.upscaler__backdrop.is-active {
  opacity: 1;
}

.upscaler__dropzone {
  width: 100%;
  min-height: 420px;
  border: 2px dashed rgba(20, 20, 20, 0.35);
  background: #f7f7f7;
  --upscaler-image: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  z-index: 6;
}

.image-editing-extra-inputs {
  display: grid;
  grid-template-columns: repeat(5, 70px);
  grid-auto-rows: 70px;
  gap: 10px;
  justify-content: flex-start;
  align-content: flex-start;
  align-items: stretch;
}

body[data-i18n-page="tool-image-editing"] .tool-input-source-files-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

body[data-i18n-page="tool-image-editing"] .tool-input-source-files-panel,
body[data-i18n-page="tool-image-editing"] .tool-input-source-files-body {
  width: 100%;
  max-width: 100%;
}

body[data-i18n-page="tool-image-editing"] .tool-input-source-files-body {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  justify-items: stretch;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  max-width: 100%;
}

body[data-i18n-page="tool-image-editing"] .tool-input-source-files-body > .tool-input-source-field,
body[data-i18n-page="tool-image-editing"] .tool-input-source-files-body > .image-editing-extra-dropzone {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  flex: 1 1 0;
  justify-self: stretch;
  align-self: stretch;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
}

body[data-i18n-page="tool-image-editing"] .tool-input-source-files-body > .image-editing-extra-inputs {
  display: none;
}

body[data-i18n-page="tool-image-editing"] .tool-input-source-files-grid > .form__field--full {
  grid-column: auto;
  min-width: 0;
}

body[data-i18n-page="tool-image-editing"] .tool-input-source-files-grid > .form__field--full:first-child {
  flex: 0 0 auto;
}

body[data-i18n-page="tool-image-editing"] .tool-input-source-files-grid > .image-editing-extra-inputs {
  flex: 1 1 auto;
  min-width: 0;
}

.image-editing-extra-inputs.is-compact {
  grid-template-columns: repeat(2, 70px);
}

.tool-input-redesign .tool-input-compact-dropzone:not(.has-image),
.tool-input-redesign .tool-input-source-field .upscaler__dropzone:not(.has-image),
.tool-input-redesign .tool-input-source-field .facechex__dropzone:not(.has-image),
.image-editing-extra-dropzone:not(.has-image) {
  border-style: dashed;
  animation: toolInputDropzonePulse 1.8s ease-in-out infinite;
}

.image-editing-extra-dropzone {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  flex: 1 1 0;
  justify-self: stretch;
  aspect-ratio: 1 / 1;
  border-width: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}

.image-editing-extra-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  transform: none;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #141414;
  cursor: pointer;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  box-shadow: 0 2px 8px rgba(20, 20, 20, 0.16);
}

.image-editing-extra-delete .material-symbols-outlined {
  font-size: 16px;
}

.image-editing-extra-dropzone.has-image:hover .image-editing-extra-delete {
  opacity: 1;
  pointer-events: auto;
}

.image-editing-extra-delete:hover,
.image-editing-extra-delete:focus-visible {
  background: #f1f1f1;
  color: #000000;
  outline: none;
}

.image-editing-extra-dropzone > .material-symbols-outlined {
  font-size: 22px;
  color: var(--muted);
}

.image-editing-extra-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  display: none;
}

.image-editing-extra-dropzone.has-image > .material-symbols-outlined {
  display: none;
}

.image-editing-extra-dropzone.has-image .image-editing-extra-preview {
  display: block;
}

#image-editing-dropzone {
  border-radius: 12px;
  overflow: hidden;
}

#image-editing-dropzone .upscaler__image-wrap,
#image-editing-dropzone .upscaler__preview-image {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

body[data-i18n-page="tool-image-editing"] #image-editing-dropzone .upscaler__placeholder > span:last-child {
  display: none;
}

body[data-i18n-page="tool-image-editing"] #image-editing-dropzone .upscaler__placeholder .material-symbols-outlined {
  font-size: 22px;
  color: var(--muted);
  margin: 0;
}

@keyframes toolInputDropzonePulse {
  0%,
  100% {
    border-color: rgba(20, 20, 20, 0.16);
    box-shadow: 0 0 0 0 rgba(20, 20, 20, 0.05);
  }
  50% {
    border-color: rgba(20, 20, 20, 0.42);
    box-shadow: 0 0 0 3px rgba(20, 20, 20, 0.04);
  }
}

.upscaler__dropzone.is-dragover {
  border-color: rgba(20, 20, 20, 0.6);
  background: rgba(20, 20, 20, 0.05);
}

.upscaler__file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.upscaler__placeholder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  position: relative;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.upscaler__placeholder .material-symbols-outlined {
  font-size: 48px;
}

.tool-input-redesign .upscaler__placeholder > span:last-child {
  display: none;
}

.tool-input-redesign .upscaler__placeholder .material-symbols-outlined {
  font-size: 30px;
}

.upscaler__preview-image {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  display: block;
  object-fit: contain;
  width: auto;
  height: auto;
}

.upscaler__image-wrap {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(100vh - 220px);
  overflow: hidden;
  z-index: 1;
}

.upscaler__download {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 0;
  border: none;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  z-index: 7;
}

.upscaler__download[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.6;
}

.upscaler__dropzone.has-result .upscaler__download {
  display: inline-flex;
}

.upscaler__dropzone.has-image .upscaler__placeholder {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background: rgba(247, 247, 247, 0.82);
}

.upscaler__dropzone.has-image .upscaler__preview-image {
  display: block;
}

#image-editing-dropzone #image-editing-preview {
  display: none;
}

#image-editing-dropzone.has-image #image-editing-preview {
  display: block;
}

body[data-i18n-page="tool-image-editing"] #image-editing-dropzone.has-image:hover .upscaler__preview-image {
  opacity: 1;
}

body[data-i18n-page="tool-image-editing"] #image-editing-dropzone.has-image:hover .upscaler__placeholder {
  opacity: 0;
  pointer-events: none;
  background: transparent;
}

.upscaler__dropzone.has-image:hover .upscaler__preview-image {
  opacity: 0.22;
}

.upscaler__dropzone.has-image:hover .upscaler__placeholder {
  opacity: 1;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.5);
}

#kling26mc-video-dropzone.has-image:hover .upscaler__preview-image {
  opacity: 1;
}

#kling26mc-video-dropzone.has-image:hover .upscaler__placeholder {
  opacity: 0;
  pointer-events: none;
}

#kling26mc-video-dropzone .upscaler__file {
  pointer-events: none;
  z-index: 0;
}

#kling26mc-video-dropzone .upscaler__image-wrap {
  z-index: 4;
}

#kling26mc-image-dropzone,
#kling26mc-video-dropzone {
  width: min(100%, 260px);
  aspect-ratio: 3 / 4;
  min-height: 0;
  margin: 0 auto;
}

.kling26mc-media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.kling26mc-media-field {
  margin: 0;
}

.kling26mc-media-field .tool-split-header {
  margin-bottom: 8px;
}

#kling26mc-image-dropzone .upscaler__image-wrap,
#kling26mc-video-dropzone .upscaler__image-wrap {
  width: 100%;
  height: 100%;
  max-height: none;
}

#kling26mc-image-dropzone .upscaler__preview-image,
#kling26mc-video-dropzone .upscaler__preview-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

@media (min-width: 1440px) {
  .kling26mc-media-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

#kling26mc-video-dropzone .kling26mc-video-clear {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.65);
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  border-radius: 0;
  z-index: 7;
  cursor: pointer;
}

#kling26mc-video-dropzone .kling26mc-video-clear .material-symbols-outlined {
  font-size: 16px;
}

#kling26mc-video-dropzone .kling26mc-video-clear:hover,
#kling26mc-video-dropzone .kling26mc-video-clear:focus-visible {
  background: #fff;
  color: #000;
}

#kling26mc-video-dropzone:not(.has-image) .kling26mc-video-clear {
  display: none;
}

.upscaler__dropzone.has-image .upscaler__image-wrap {
  display: inline-flex;
}

.upscaler__dropzone.has-image {
  border: none;
  background: transparent;
}

.upscaler__loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  z-index: 5;
  pointer-events: none;
}

.upscaler__dropzone.is-processing .upscaler__loader {
  display: flex;
}

.upscaler__dropzone.is-processing .upscaler__preview-image {
	opacity: 0;
	position: relative;
	z-index: 1;
}

.upscaler__dropzone.is-processing .upscaler__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--upscaler-image);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0.3) blur(10px);
  pointer-events: none;
  z-index: 2;
}

.upscaler__dot {
  width: 10px;
  height: 10px;
  background: #ffffff;
  display: inline-block;
  animation: upscalerDots 1s infinite ease-in-out;
}

.upscaler__dot:nth-child(2) {
  animation-delay: 0.2s;
}

.upscaler__dot:nth-child(3) {
  animation-delay: 0.4s;
}

.upscaler__queue-strip {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.upscaler__queue-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #ffffff;
  overflow: hidden;
}

.upscaler__queue-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upscaler__queue-item--add {
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
  border-style: dashed;
  border-radius: 12px;
}

.upscaler__queue-item--add .material-symbols-outlined {
  font-size: 22px;
}

.upscaler__queue-item--remove {
  position: absolute;
  top: 3px;
  right: 3px;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #141414;
  cursor: pointer;
}

.upscaler__queue-item--remove .material-symbols-outlined {
  font-size: 15px;
}

.upscaler__queue-overflow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111111;
  background: #f2f2f2;
}

@keyframes upscalerDots {
  0%,
  80%,
  100% {
    transform: scale(0.3);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.upscaler__footer {
  position: fixed;
  width: min(960px, calc(100vw - var(--sidebar-width) - 220px));
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.12);
  z-index: 5;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  z-index: 15;
}

.upscaler__footer > * {
  align-self: center;
}

.upscaler__footer-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
  min-width: 180px;
  align-items: end;
  justify-self: start;
}

.upscaler__footer-group .upscaler__field {
  min-width: 140px;
}

.upscaler__footer .button {
  justify-self: center;
}

.upscaler__status {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  justify-self: end;
  text-align: right;
}

.tool-results,
.facechex__results {
  display: grid;
  gap: 16px;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  align-content: start;
}

.tool-split-layout,
.facechex-layout {
  --facechex-main-width: 30%;
  --facechex-main-min-width: 320px;
  position: relative;
  grid-template-columns: minmax(var(--facechex-main-min-width), var(--facechex-main-width)) 8px minmax(360px, 1fr);
  margin: 0;
  align-items: stretch;
}

.tool-split-layout::before,
.facechex-layout::before {
  display: none;
}

.upscaler-home-layout {
  --facechex-main-min-width: 420px;
}

.tool-split-layout--wide-form {
  --facechex-main-min-width: 420px;
}

.tool-split-panel,
.facechex-flat-layer {
  width: 100%;
  margin: 0;
  padding: 0 12px 18px;
  border: none;
  background: #ffffff;
  display: grid;
  grid-template-rows: auto;
  gap: 18px;
  justify-self: start;
  align-self: stretch;
  min-height: calc(100vh - 104px);
  overflow: visible;
}

.tool-split-panel,
.facechex-flat-layer,
.tool-split-section,
.facechex-flat-section,
.tool-split-section .form__grid,
.facechex-flat-section .form__grid,
.tool-split-section .form__field,
.facechex-flat-section .form__field,
.tool-settings-menu,
.facechex__config-menu,
.tool-settings-details,
.facechex__config-details,
.tool-settings-body,
.facechex__config-body {
  min-width: 0;
  max-width: 100%;
}

.tool-split-panel .upscaler__dropzone,
.facechex-flat-layer .upscaler__dropzone {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.tool-split-side,
.facechex-results-side {
  border: none;
  background: #ffffff;
  padding: 0 16px 18px 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  align-self: stretch;
  height: calc(100vh - 104px);
  max-height: calc(100vh - 104px);
  overflow: hidden;
}

.tool-split-side.tool-split-side--with-history,
.facechex-results-side.facechex-results-side--with-history {
  padding-right: 0;
  padding-bottom: 18px;
  height: auto;
  max-height: none;
  overflow: visible;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.tool-split-side.tool-split-side--with-history > .tool-split-header,
.facechex-results-side.facechex-results-side--with-history > .facechex-flat-header {
  align-self: start;
}

.tool-split-resize-handle,
.facechex-resize-handle {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: col-resize;
  position: relative;
  width: 8px;
  align-self: stretch;
}

.tool-split-resize-handle::before,
.facechex-resize-handle::before {
  content: "";
  position: absolute;
  left: calc(50% - 0.5px);
  top: 0;
  bottom: 0;
  width: 1px;
  height: auto;
  background: rgba(20, 20, 20, 0.22);
  transform: none;
}

.tool-split-resize-handle:hover::before,
.tool-split-resize-handle:focus-visible::before,
.tool-split-resize-handle.is-resizing::before,
.facechex-resize-handle:hover::before,
.facechex-resize-handle:focus-visible::before,
.facechex-resize-handle.is-resizing::before {
  background: rgba(20, 20, 20, 0.56);
}

body.is-tool-split-resizing,
body.is-facechex-resizing {
  cursor: col-resize;
  user-select: none;
}

.tool-split-section,
.facechex-flat-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
  gap: 14px;
  height: auto;
  min-height: 0;
}

.tool-split-section .form__grid,
.facechex-flat-section .form__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  overflow: visible;
}

.tool-settings-menu,
.facechex__config-menu {
  margin: 0;
}

.tool-settings-details,
.facechex__config-details {
  margin: 0;
  border: none;
  background: #eef1f5;
  border-radius: 16px;
  overflow: hidden;
}

.tool-settings-summary,
.facechex__config-summary {
  list-style: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
}

.tool-settings-summary::-webkit-details-marker,
.facechex__config-summary::-webkit-details-marker {
  display: none;
}

.tool-settings-icon,
.facechex__config-icon,
.tool-settings-arrow,
.facechex__config-arrow {
  font-size: 1.1rem;
  color: var(--muted);
}

.tool-settings-title,
.facechex__config-title {
  min-width: 0;
  font-size: 0.76rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.78);
  font-weight: 600;
}

.tool-settings-arrow,
.facechex__config-arrow {
  justify-self: end;
  transition: transform 0.18s ease;
}

.tool-settings-details[open] .tool-settings-arrow,
.facechex__config-details[open] .facechex__config-arrow {
  transform: rotate(180deg);
}

.tool-settings-details,
.facechex__config-details {
  overflow: visible;
}

.tool-settings-body,
.facechex__config-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  overflow: visible;
}

.tool-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
}

.tool-settings-grid .form__field {
  width: 100%;
  margin: 0;
}

.tool-settings-grid .form__field.form__field--full {
  grid-column: 1 / -1;
}

.tool-settings-grid .form__input,
.tool-settings-grid .form__select,
.tool-settings-grid .upscaler__input,
.tool-settings-grid .form__textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: rgba(255, 255, 255, 0.95);
}

.tool-settings-grid .upscaler__inline {
  width: 100%;
}

.tool-model-picker {
  position: relative;
  width: 100%;
}

.tool-model-picker__native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tool-model-picker__trigger,
.tool-model-picker__option {
  font-family: inherit;
  font-size: 0.9rem;
}

.tool-model-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.tool-model-picker__trigger-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tool-model-picker__trigger-text,
.tool-model-picker__option-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-model-picker__icon-image,
.tool-model-picker__icon-symbol {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
}

.tool-model-picker__icon-image {
  object-fit: contain;
}

.tool-model-picker__icon-symbol {
  font-size: 20px;
  color: rgba(20, 20, 20, 0.68);
}

.tool-model-picker__trigger-arrow {
  font-size: 20px;
  color: rgba(20, 20, 20, 0.7);
}

.tool-model-picker__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid rgba(20, 20, 20, 0.16);
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.14);
}

.tool-model-picker.is-open .tool-model-picker__menu {
  display: block;
}

.tool-model-picker.is-open .tool-model-picker__trigger {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.tool-model-picker__option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  background: #ffffff;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  cursor: pointer;
  text-align: left;
}

.tool-model-picker__option:last-child {
  border-bottom: 0;
}

.tool-model-picker__option:hover,
.tool-model-picker__option:focus-visible,
.tool-model-picker__option.is-selected {
  background: rgba(20, 20, 20, 0.06);
}

.tool-settings-grid--compact .form__textarea {
  min-height: 88px;
}

#kling26mc-form .tool-settings-grid--compact .seedance-options .form__label {
  line-clamp: 1;
  -webkit-line-clamp: 1;
  letter-spacing: 0.07rem;
  font-size: 0.68rem;
  max-height: 1.35em;
}

.tool-split-panel .form__label,
.facechex-flat-layer .form__label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  max-height: 2.5em;
  font-size: clamp(0.62rem, 0.52vw + 0.52rem, 0.75rem);
}

.facechex__threshold-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 0;
  width: 100%;
}

.tool-split-controls,
.facechex__controls-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
}

.dashboard__content--tool-split .tool-split-controls,
.dashboard__content--tool-split .facechex__controls-row,
.dashboard__content--facechex .tool-split-controls,
.dashboard__content--facechex .facechex__controls-row {
  position: sticky;
  bottom: 0;
  z-index: 12;
  padding-top: calc(10px + env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(20, 20, 20, 0.06);
  background: #ffffff;
}

.dashboard__content--tool-split .tool-split-controls:not(.tool-output-history__widgets),
.dashboard__content--facechex .tool-split-controls:not(.tool-output-history__widgets),
.dashboard__content--tool-split .facechex__controls-row,
.dashboard__content--facechex .facechex__controls-row {
  height: 63px;
  min-height: 63px;
  max-height: 63px;
  padding-top: 0;
  padding-bottom: 0;
}

.dashboard__content--tool-split .tool-split-controls:not(.tool-output-history__widgets) .tool-split-actions,
.dashboard__content--facechex .tool-split-controls:not(.tool-output-history__widgets) .tool-split-actions,
.dashboard__content--tool-split .facechex__controls-row .facechex__actions,
.dashboard__content--facechex .facechex__controls-row .facechex__actions {
  height: 100%;
  margin-top: 0;
  align-items: center;
}

.facechex__threshold-field .form__label {
  display: block;
  width: 100%;
  min-width: 0;
  padding-right: 0;
}

.facechex__threshold-field .form__input {
  width: 72px;
  height: 40px;
  min-width: 72px;
  margin: 0;
  padding: 0 !important;
  text-align: center !important;
  text-align-last: center !important;
  line-height: 40px;
  font-size: 0.84rem;
  appearance: textfield;
  -moz-appearance: textfield;
}

.facechex__threshold-field .form__input::-webkit-outer-spin-button,
.facechex__threshold-field .form__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tool-split-section + .tool-split-section,
.facechex-flat-section + .facechex-flat-section {
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  padding-top: 18px;
}

.tool-split-header,
.facechex-flat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-split-header--divider {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.tool-split-side .tool-split-header,
.facechex-results-side .facechex-flat-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #ffffff;
}

.tool-split-title,
.facechex-flat-title {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.75);
}

.facechex__toolbar {
  display: flex;
  justify-content: flex-end;
}

.tool-split-actions,
.facechex__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  margin-top: auto;
}

.tool-action-credits {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 58px;
  height: 37px;
  min-height: 37px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: #ffffff;
  color: #141414;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: auto;
}

.tool-action-credits__icon {
  font-size: 17px;
  line-height: 1;
}

.tool-action-credits__value {
  min-width: 1ch;
  text-align: center;
}

.tool-action-submit {
  margin-left: auto;
  min-width: 86px;
  height: 37px;
  min-height: 37px;
  padding: 0 10px 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  border-radius: 999px;
  background: #141414;
  color: #ffffff;
}

.tool-action-submit:hover {
  opacity: 0.5;
  background: #141414;
}

#grok-send:not([data-tool-action-fused="true"]),
#z-image-send:not([data-tool-action-fused="true"]),
#nano-banana-submit:not([data-tool-action-fused="true"]),
#facechex-submit:not([data-tool-action-fused="true"]),
#face-swap-submit:not([data-tool-action-fused="true"]),
#upscaler-submit:not([data-tool-action-fused="true"]),
#seedance-submit:not([data-tool-action-fused="true"]),
#qwen-submit:not([data-tool-action-fused="true"]),
#qwen-max-submit:not([data-tool-action-fused="true"]),
#wan26-submit:not([data-tool-action-fused="true"]),
#wan26i2v-submit:not([data-tool-action-fused="true"]),
#image-editing-submit:not([data-tool-action-fused="true"]),
#image-restoration-submit:not([data-tool-action-fused="true"]),
#kling26mc-submit:not([data-tool-action-fused="true"]),
#watermark-submit:not([data-tool-action-fused="true"]) {
  color: transparent !important;
  font-size: 0 !important;
}

.tool-action-submit__credits-icon.material-symbols-outlined {
  font-size: 15px;
  line-height: 1;
  color: #ffffff;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.tool-action-submit__cost {
  min-width: 1ch;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  line-height: 1;
  color: #ffffff;
}

.tool-action-submit__arrow.material-symbols-outlined {
  font-size: 17px;
  line-height: 1;
  margin-left: 1px;
  color: #ffffff;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.tool-action-submit.is-loading {
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
  cursor: wait;
}

.tool-action-submit__loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  animation: facechexSpin 0.8s linear infinite;
}

.tool-status-indicator,
.upscaler-actions__status,
.qwen-actions__status {
  align-self: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid rgba(20, 20, 20, 0.18);
  border-top-color: #141414;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  display: inline-flex;
  animation: facechexSpin 0.8s linear infinite;
  cursor: help;
}

.tool-status-indicator[data-status-state="success"],
.upscaler-actions__status[data-status-state="success"],
.qwen-actions__status[data-status-state="success"] {
  animation: none;
  border-color: rgba(20, 20, 20, 0.28);
  border-top-color: #141414;
}

.tool-status-indicator[data-status-state="error"],
.upscaler-actions__status[data-status-state="error"],
.qwen-actions__status[data-status-state="error"] {
  animation: none;
  border-color: rgba(140, 24, 24, 0.28);
  border-top-color: #8c1818;
}

.tool-status-indicator[hidden],
.upscaler-actions__status[hidden],
.qwen-actions__status[hidden] {
  display: none !important;
}

.upscaler-home-layout .tool-settings-body .form__field,
.upscaler-home-layout .facechex__config-body .form__field {
  width: 100%;
}

.upscaler-home-layout .tool-settings-body .form__field.form__field--full,
.upscaler-home-layout .facechex__config-body .form__field.form__field--full {
  grid-column: auto;
}

.upscaler-home-layout .tool-settings-body .upscaler__input,
.upscaler-home-layout .facechex__config-body .upscaler__input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.upscaler-home-layout .tool-settings-body .form__input,
.upscaler-home-layout .tool-settings-body .form__select,
.upscaler-home-layout .facechex__config-body .form__input,
.upscaler-home-layout .facechex__config-body .form__select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.upscaler-home-layout .tool-settings-body .upscaler__inline,
.upscaler-home-layout .facechex__config-body .upscaler__inline {
  width: 100%;
  align-items: center;
}

.upscaler-home__controls {
  gap: 10px;
}

.upscaler-resize-mp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.upscaler-resize-mp-input {
  min-width: 0;
}

.upscaler-resize-mp-row #upscaler-enable-resize {
  justify-self: center;
  margin: 0;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.upscaler-resize-mp-row #upscaler-enable-resize:disabled {
  cursor: not-allowed;
}

.upscaler-home__controls .upscaler-actions__status {
  width: auto;
  margin: 0;
  text-align: left;
}

.upscaler-validation-message {
  margin: 0 8px 0 0;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 400;
}

.upscaler-validation-message.is-shaking {
  animation: upscaler-validation-shake 0.34s ease-in-out both;
}

.upscaler-validation-message[hidden] {
  display: none !important;
}

@keyframes upscaler-validation-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.upscaler-home__controls .tool-split-actions {
  justify-content: flex-end;
  gap: 0;
}

.upscaler-home__controls .tool-split-actions .tool-action-submit {
  margin-left: 0;
}

.upscaler-home__output-wrap {
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.upscaler-output-gallery {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 88px;
  gap: 10px;
  align-items: start;
}

.upscaler-output-gallery__controls {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

.upscaler-output-gallery__main {
  min-width: 0;
}

.upscaler-output-gallery__download-all {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.upscaler-output-gallery__download-all[disabled],
.upscaler-output-gallery__download-all[aria-disabled="true"] {
  background: #d4d4d4;
  color: #666666;
  border-color: #bcbcbc;
  cursor: not-allowed;
}

.upscaler-output-gallery__nav {
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.upscaler-output-gallery__nav[disabled],
.upscaler-output-gallery__nav[aria-disabled="true"] {
  background: #ededed;
  color: #8a8a8a;
  cursor: not-allowed;
}

.upscaler-output-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.upscaler-output-gallery__thumb {
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: #ffffff;
  padding: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.upscaler-output-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upscaler-home__output-wrap .upscaler-output__placeholder {
  width: 100%;
  min-height: 0;
  max-height: 100%;
  margin: 0 auto;
}

.upscaler-home__output-wrap .upscaler-output__placeholder.is-image-mode {
  flex: 0 0 auto;
}

.upscaler-output__placeholder .output-media__frame {
  background: #ffffff;
}

.upscaler-output__placeholder .output-media__image {
  background: transparent;
}

/* Only the Admin Upscaler accepts a queued batch. Public Upscaler remains a
   single, large source-image control in its own Home template. */
body.dashboard:not(.home-page)[data-i18n-page="tool-seedvr2"] .tool-input-source-files-grid,
body.dashboard:not(.home-page)[data-i18n-page="tool-seedvr2"] .tool-input-source-files-panel,
body.dashboard:not(.home-page)[data-i18n-page="tool-seedvr2"] .tool-input-source-files-body {
  width: 100%;
  max-width: 100%;
}

body.dashboard:not(.home-page)[data-i18n-page="tool-seedvr2"] .tool-input-source-files-body {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px;
  align-items: start;
}

body.dashboard:not(.home-page)[data-i18n-page="tool-seedvr2"] .tool-input-source-files-body > #upscaler-dropzone.tool-input-source-field {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  flex: none !important;
  justify-self: stretch !important;
  align-self: start !important;
  padding: 0 !important;
  box-sizing: border-box;
  border: 1px dashed rgba(20, 20, 20, 0.22);
  border-radius: 12px;
  background: #f7f7f7;
  overflow: hidden;
}

body.dashboard:not(.home-page)[data-i18n-page="tool-seedvr2"] #upscaler-dropzone .upscaler__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dashboard:not(.home-page)[data-i18n-page="tool-seedvr2"] #upscaler-dropzone .upscaler__placeholder .material-symbols-outlined {
  margin: 0;
  font-size: 22px;
  line-height: 1;
}

/* Keep the Upscaler configuration labels in sentence case, as in the other tool panels. */
body[data-i18n-page="tool-seedvr2"] .tool-settings-grid .form__label {
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Custom option menu used by Upscaler configuration. The native select stays as state only. */
.upscaler-select-picker {
  position: relative;
  width: 100%;
}

.upscaler-select-picker__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.upscaler-select-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.upscaler-select-picker__trigger::after {
  content: "expand_more";
  font-family: "Material Symbols Outlined";
  font-size: 20px;
  line-height: 1;
  color: rgba(20, 20, 20, 0.7);
}

.upscaler-select-picker__trigger:focus-visible,
.upscaler-select-picker__option:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.36);
  outline-offset: 2px;
}

.upscaler-select-picker__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 90;
  display: none;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid rgba(20, 20, 20, 0.16);
  border-radius: 0 0 12px 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.14);
}

.upscaler-select-picker.is-open .upscaler-select-picker__menu {
  display: block;
}

.upscaler-select-picker.is-open .upscaler-select-picker__trigger {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.upscaler-select-picker__option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  background: #ffffff;
  color: var(--text);
  padding: 9px 11px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
}

.upscaler-select-picker__option:last-child {
  border-bottom: 0;
}

.upscaler-select-picker__option:hover,
.upscaler-select-picker__option.is-selected {
  background: rgba(20, 20, 20, 0.06);
}

.upscaler-select-picker__option:disabled {
  cursor: not-allowed;
  color: rgba(20, 20, 20, 0.38);
}

body.dashboard:not(.home-page)[data-i18n-page="tool-seedvr2"] .upscaler__queue-strip {
  grid-column: 2 / -1;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-i18n-page="tool-seedvr2"] .upscaler-home__results .tool-split-section,
body[data-i18n-page="tool-seedvr2"] .upscaler-home__output-wrap {
  width: 100%;
  min-width: 0;
}

body[data-i18n-page="tool-seedvr2"] .upscaler-home__output-wrap {
  display: block;
  overflow: hidden;
}

body[data-i18n-page="tool-seedvr2"] .upscaler-output-gallery {
  grid-template-columns: 42px minmax(0, 1fr) 72px;
  max-width: 100%;
}

body[data-i18n-page="tool-seedvr2"] #upscaler-output-placeholder:not(.has-output):not(.is-processing):not(.is-tool-processing) {
  display: none;
}

body[data-i18n-page="tool-seedvr2"] .tool-split-section.tool-output-history-output-mode > .tool-output-history,
body[data-i18n-page="tool-seedvr2"] .upscaler-home__results.tool-output-history-output-mode > .tool-output-history {
  height: auto;
  flex: 0 0 auto;
  align-self: start;
}

body[data-i18n-page="tool-seedvr2"] .upscaler-home__results .tool-output-history__list {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  body[data-i18n-page="tool-seedvr2"] .tool-input-source-files-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .upscaler-output-gallery {
    grid-template-columns: 1fr;
  }

  .upscaler-output-gallery__controls {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    margin-bottom: 8px;
  }

  .upscaler-output-gallery__download-all {
    width: 40px;
    height: 40px;
  }

  .upscaler-output-gallery__nav {
    width: 40px;
    height: 40px;
  }

  .upscaler-output-gallery__thumbs {
    flex-direction: row;
    overflow-x: auto;
  }

  .upscaler-output-gallery__thumb {
    flex: 0 0 68px;
  }
}

.facechex__status-spinner {
  margin: 0;
}

.facechex__status-spinner[hidden] {
  display: none !important;
}

@keyframes facechexSpin {
  to {
    transform: rotate(360deg);
  }
}

.facechex__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #f7f7f7;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-source-mode::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(20, 20, 20, 0.1);
  transition: transform 0.22s ease;
  pointer-events: none;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-source-mode[data-active-mode="clone"]::before {
  transform: translateX(100%);
}

@media (prefers-reduced-motion: reduce) {
  body[data-i18n-page="tool-photoshoot"] .photoshoot-source-mode::before {
    transition: none;
  }
}

.facechex__section-title {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.77rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
  background: rgba(20, 20, 20, 0.04);
}

.facechex__section-title-text {
  min-width: 0;
}

.facechex__section-preview {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: cover;
  border: 1px solid rgba(20, 20, 20, 0.18);
}

.facechex__accordion {
  list-style: none;
  margin: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.facechex__accordion-details {
  margin: 0;
}

.facechex__accordion-summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
}

.facechex__accordion-summary::-webkit-details-marker {
  display: none;
}

.facechex__accordion-arrow {
  font-size: 1.05rem;
  color: var(--muted);
  justify-self: end;
  transition: transform 0.18s ease;
}

.facechex__accordion-details[open] .facechex__accordion-arrow {
  transform: rotate(90deg);
}

.facechex__accordion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
}

.facechex__accordion-list .facechex__row:last-child {
  border-bottom: none;
}

.facechex__list > .facechex__accordion:last-child {
  border-bottom: none;
}

.facechex__row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.facechex__row:last-child {
  border-bottom: none;
}

.facechex__field-label {
  font-size: 0.76rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  color: var(--muted);
}

.facechex__field-value {
  font-size: 0.86rem;
  color: var(--text);
  word-break: break-word;
}

.facechex__field-value--muted {
  color: var(--muted);
}

.facechex__field-value--ok {
  color: #0f7a2c;
  font-weight: 600;
}

.facechex__field-value--caution {
  color: #8a6a00;
  font-weight: 600;
}

.facechex__field-value--warning {
  color: #a14f00;
  font-weight: 600;
}

.facechex__field-value--danger {
  color: #b42318;
  font-weight: 700;
}

.facechex__summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.facechex__summary-item {
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #f7f7f7;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.facechex__summary-label {
  font-size: 0.72rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: var(--muted);
}

.facechex__summary-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.facechex__json {
  margin: 0;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #f7f7f7;
  padding: 12px;
  min-height: 220px;
  max-height: 480px;
  overflow: auto;
  font-size: 0.82rem;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.dashboard__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard__actions--metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.metrics-header__top-filters {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

.dashboard__actions--metrics .admin-user-filter {
  width: 100%;
  justify-content: flex-end;
}

.admin-user-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-user-filter__fields {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 8px;
}

.admin-user-filter__field {
  position: relative;
}

.admin-user-filter__input {
  width: 100%;
  min-width: 180px;
}

.admin-user-filter__results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  border: 1px solid rgba(20, 20, 20, 0.55);
  background: #ffffff;
  z-index: 30;
  max-height: 210px;
  overflow-y: auto;
}

.admin-user-filter__result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.15);
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px 10px;
  font-size: 0.76rem;
  letter-spacing: 0.04rem;
  cursor: pointer;
}

.admin-user-filter__avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 999px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f0f0f;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
}

.admin-user-filter__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.admin-user-filter__line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-filter__line--top {
  color: var(--text);
  font-weight: 500;
}

.admin-user-filter__line--bottom {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.03rem;
}

.admin-user-filter__result:last-child {
  border-bottom: 0;
}

.admin-user-filter__result:hover,
.admin-user-filter__result:focus-visible {
  background: rgba(20, 20, 20, 0.08);
  outline: none;
}

.admin-user-filter__result--empty {
  cursor: default;
  color: var(--muted);
}

.admin-user-filter__clear {
  min-height: 36px;
}

@media (max-width: 980px) {
  .dashboard__actions--metrics {
    width: 100%;
    align-items: stretch;
  }

  .metrics-header__top-filters {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .dashboard__actions--metrics .admin-user-filter {
    justify-content: flex-start;
  }

  .admin-user-filter__fields {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .admin-user-filter {
    width: 100%;
  }
}

.connections-tabs {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(20, 20, 20, 0.22);
  flex-shrink: 0;
}

.connections-tabs__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 40px;
  padding: 0 14px;
  border-right: 1px solid rgba(20, 20, 20, 0.22);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.connections-tabs__tab:last-child {
  border-right: none;
}

.connections-tabs__tab--active {
  background: rgba(20, 20, 20, 0.08);
  font-weight: 600;
}

.icon-button {
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: transparent;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.icon-button:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.spendings__currency-toggle {
  display: inline-flex;
  gap: 8px;
}

.spendings__currency-toggle .button.is-active {
  background-color: rgba(20, 20, 20, 0.1);
}

.spendings__total {
  font-size: 1.4rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--text);
}

.spendings__api {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.spendings__api-label {
  font-size: 0.65rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.spendings__api-total {
  font-size: 0.95rem;
  letter-spacing: 0.08rem;
  color: var(--text);
}

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

  .filters__row {
    grid-template-columns: 1fr;
  }

  .filters__field--wide {
    grid-column: span 1;
  }

  .upscaler__dropzone {
    min-height: 300px;
  }

  .image-editing-extra-inputs {
    grid-template-columns: repeat(4, 70px);
    grid-auto-rows: 70px;
  }

  .image-editing-extra-inputs.is-compact {
    grid-template-columns: repeat(2, 70px);
  }

  .image-editing-extra-dropzone {
    min-height: 70px;
  }

  #facechex-source-dropzone,
  #facechex-comparison-dropzone {
    height: clamp(320px, 48vh, 420px);
    min-height: 320px;
    max-height: 420px;
  }

  .upscaler__footer {
    left: 16px;
    right: 16px;
    width: auto;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .upscaler__footer-group {
    width: 100%;
  }

  .watermark__grid {
    grid-template-columns: 1fr;
  }

  .watermark__split {
    grid-template-columns: 1fr;
  }

  .processes {
    right: 96px;
  }
}

@keyframes processesLine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.table__cell {
  font-size: 0.9rem;
  color: var(--text);
}

.table__identity-user {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.table__identity-user-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: rgba(20, 20, 20, 0.72);
  overflow: hidden;
}

.table__identity-user-avatar--fallback .material-symbols-outlined {
  font-size: 16px;
}

.table__identity-user-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.table__body .table__row--accounts-users .table__cell,
.table__body .table__row--accounts-admin .table__cell {
  min-width: 0;
}

.table__body .table__row--accounts-users > :first-child,
.table__body .table__row--accounts-admin > :first-child {
  display: flex;
  align-items: center;
}

.table__cell--action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.table__icon-button {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0;
  box-sizing: border-box;
  line-height: 1;
}

.table__icon-button--expanded .material-symbols-outlined {
  transform: rotate(180deg);
}

.table__select {
  border: 1px solid rgba(20, 20, 20, 0.35);
  background: transparent;
  padding: 6px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
  font-family: var(--font-text-ui);
  width: 100%;
  min-width: 120px;
  outline: none;
  border-radius: 0;
}

.grok-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 140px;
}

.grok-gallery.grok-gallery--photoshoot-output {
  display: block;
  padding-bottom: 16px;
}

.photoshoot-output-viewer {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 0;
}

.photoshoot-output-viewer__main-frame {
  position: relative;
  min-height: 0;
}

.photoshoot-output-viewer__main {
  border: 1px solid rgba(20, 20, 20, 0.16);
  background: #f5f5f5;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
  max-height: min(58vh, calc(100dvh - 320px));
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.photoshoot-output-viewer__main-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(58vh, calc(100dvh - 320px));
  object-fit: contain;
  display: block;
}

.photoshoot-output-viewer__main-download {
  top: 8px;
  right: 8px;
  z-index: 2;
}

.photoshoot-output-viewer__thumbs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.photoshoot-output-viewer__thumb {
  --thumb-ratio: 1;
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: #f5f5f5;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  height: 96px;
  width: calc(96px * var(--thumb-ratio));
  min-width: 64px;
  max-width: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photoshoot-output-viewer__thumb.is-active {
  border-color: rgba(20, 20, 20, 0.58);
}

.photoshoot-output-viewer__thumb-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.user-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.user-gallery__grid.user-gallery__grid--masonry {
  --user-gallery-masonry-row: 8px;
  grid-auto-flow: dense;
  align-items: start;
  grid-auto-rows: var(--user-gallery-masonry-row);
}

.user-gallery__grid.user-gallery__grid--profile-masonry {
	display: block;
	column-count: 4;
	column-gap: 4px;
  padding-top: 0;
  padding-bottom: 0;
}

.user-gallery__grid.user-gallery__grid--profile-masonry .user-gallery-card {
  display: block;
  width: 100%;
	margin: 0 0 4px;
	break-inside: avoid;
}

@media (max-width: 900px) {
	.user-gallery__grid.user-gallery__grid--profile-masonry {
		column-count: 3;
	}
}

@media (max-width: 620px) {
	.user-gallery__grid.user-gallery__grid--profile-masonry {
		column-count: 2;
	}
}

.user-gallery-card--profile-gallery .user-gallery-card__media {
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  background: transparent;
}

.user-gallery-card--profile-gallery .user-gallery-card__body {
  display: none;
}

.user-gallery-card--profile-gallery .user-gallery-card__image {
  width: 100%;
  height: auto;
  object-fit: initial;
}

.user-gallery-card--profile-gallery .user-gallery-card__media {
  display: block;
}

.user-gallery__empty {
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.user-gallery__filters {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.user-gallery__heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-gallery__usage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(20, 20, 20, 0.08);
  color: rgba(20, 20, 20, 0.7);
  font-size: 0.64rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 999px;
}

.user-gallery__usage.is-max {
  background: rgba(155, 17, 17, 0.12);
  color: #9b1111;
}

.user-gallery__usage-count {
  font-weight: 700;
}

.user-gallery__usage-help-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-gallery__usage-help {
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
}

.user-gallery__usage-tooltip {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  width: min(280px, 64vw);
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: #ffffff;
  color: #141414;
  padding: 8px 10px;
  font-size: 0.7rem;
  line-height: 1.45;
  letter-spacing: 0.02rem;
  text-transform: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
}

.user-gallery__usage-tooltip::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  background: #ffffff;
  border-left: 1px solid rgba(20, 20, 20, 0.22);
  border-bottom: 1px solid rgba(20, 20, 20, 0.22);
}

.user-gallery__usage-help-wrap:hover .user-gallery__usage-tooltip,
.user-gallery__usage-help-wrap:focus-within .user-gallery__usage-tooltip {
  opacity: 1;
  visibility: visible;
}

.user-gallery__filters .form__label {
  margin-bottom: 0;
}

.user-gallery__filters .form__select {
  min-width: 180px;
}

.profile-tab-panel[data-profile-panel="gallery"] .panel__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__header-spacer {
  display: none;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__heading {
  grid-column: 1;
  justify-self: start;
  justify-content: flex-start;
  text-align: left;
  min-width: 0;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__filters {
  grid-column: 2;
  justify-self: end;
  min-width: 0;
  margin-left: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__pagination {
  margin-top: 0;
  margin-left: 12px;
  flex-shrink: 0;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__filters .form__label {
  white-space: nowrap;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__filters .form__select {
  min-width: 0;
  max-width: 100%;
  width: min(100%, 260px);
}

.profile-tab-panel[data-profile-panel="gallery"] {
  color: #f5f5f5;
}

.profile-tab-panel[data-profile-panel="gallery"] .panel {
  background: #000;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.profile-tab-panel[data-profile-panel="gallery"] .panel__header,
.profile-tab-panel[data-profile-panel="gallery"] .panel__body {
  background: transparent;
}

.profile-tab-panel[data-profile-panel="gallery"] .panel__title,
.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__empty,
.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__pagination-info,
.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__filters .form__label,
.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__usage,
.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__usage-tooltip,
.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__usage-tooltip::before {
  color: #f5f5f5;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__usage {
  background: rgba(255, 255, 255, 0.08);
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__usage-tooltip {
  background: #111;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__usage-tooltip::before {
  background: #111;
  border-left-color: rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery-card--profile-gallery .user-gallery-card__media,
.profile-tab-panel[data-profile-panel="gallery"] .user-gallery-card--profile-gallery .user-gallery-card__image {
  border-radius: 18px;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery-card--profile-gallery .user-gallery-card__media {
  background: #111;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery-card--profile-gallery .user-gallery-card__info,
.profile-tab-panel[data-profile-panel="gallery"] .user-gallery-card--profile-gallery .user-gallery-card__download,
.profile-tab-panel[data-profile-panel="gallery"] .user-gallery-card--profile-gallery .user-gallery-card__delete,
.profile-tab-panel[data-profile-panel="gallery"] .user-gallery-card--profile-gallery .user-gallery-card__vote {
  border-radius: 999px;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__filters .form__select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 999px;
  background-color: #d9d9d9;
  background-image: linear-gradient(45deg, transparent 50%, #141414 50%), linear-gradient(135deg, #141414 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: #141414;
  padding-right: 38px;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__filters .form__select:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__pagination-button {
  border: none;
  border-radius: 50%;
  background: #d9d9d9;
  color: #141414;
  padding: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__pagination-button:hover,
.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__pagination-button:focus-visible {
  background: #ececec;
}

.profile-tab-panel[data-profile-panel="gallery"] .user-gallery__grid.user-gallery__grid--profile-masonry .user-gallery-card {
  border-radius: 18px;
  overflow: hidden;
}

.user-gallery__pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.user-gallery__pagination-button {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
}

.user-gallery__pagination-button .material-symbols-outlined {
  font-size: 20px;
  line-height: 1;
}

.user-gallery__pagination-info {
  font-size: 0.76rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.72);
}

.user-gallery-card {
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-gallery-card__media {
  position: relative;
  min-height: 180px;
  background: #f2f2f2;
}

.user-gallery-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-gallery-card__media.user-gallery-card__media--image-error {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d8d8d8;
}

.user-gallery-card__media.user-gallery-card__media--image-error::before {
  content: "broken_image";
  font-family: "Material Symbols Outlined";
  font-size: 42px;
  line-height: 1;
  color: rgba(20, 20, 20, 0.52);
}

.user-gallery-card__image.user-gallery-card__image--is-broken {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.user-gallery-card__download {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
}

.user-gallery-card__info {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
}

.user-gallery-card--profile-gallery .user-gallery-card__download {
  right: 42px;
}

.user-gallery-card--profile-gallery .user-gallery-card__download,
.user-gallery-card--profile-gallery .user-gallery-card__info,
.user-gallery-card--profile-gallery .user-gallery-card__delete,
.user-gallery-card--profile-gallery .user-gallery-card__vote {
  width: 32px;
  height: 32px;
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.85);
}

.user-gallery-card--profile-gallery .user-gallery-card__download,
.user-gallery-card--profile-gallery .user-gallery-card__info,
.user-gallery-card--profile-gallery .user-gallery-card__delete,
.user-gallery-card--profile-gallery .user-gallery-card__vote {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.user-gallery-card--profile-gallery .user-gallery-card__media:hover .user-gallery-card__download,
.user-gallery-card--profile-gallery .user-gallery-card__media:hover .user-gallery-card__info,
.user-gallery-card--profile-gallery .user-gallery-card__media:hover .user-gallery-card__delete,
.user-gallery-card--profile-gallery .user-gallery-card__media:hover .user-gallery-card__vote,
.user-gallery-card--profile-gallery .user-gallery-card__media:focus-within .user-gallery-card__download,
.user-gallery-card--profile-gallery .user-gallery-card__media:focus-within .user-gallery-card__info,
.user-gallery-card--profile-gallery .user-gallery-card__media:focus-within .user-gallery-card__delete,
.user-gallery-card--profile-gallery .user-gallery-card__media:focus-within .user-gallery-card__vote {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .user-gallery-card--profile-gallery .user-gallery-card__download,
  .user-gallery-card--profile-gallery .user-gallery-card__info,
  .user-gallery-card--profile-gallery .user-gallery-card__delete,
  .user-gallery-card--profile-gallery .user-gallery-card__vote {
    opacity: 1;
    pointer-events: auto;
  }
}

.user-gallery-card--profile-gallery .user-gallery-card__download .material-symbols-outlined,
.user-gallery-card--profile-gallery .user-gallery-card__info .material-symbols-outlined,
.user-gallery-card--profile-gallery .user-gallery-card__delete .material-symbols-outlined,
.user-gallery-card--profile-gallery .user-gallery-card__vote .material-symbols-outlined {
  font-size: 1.2rem;
}

.user-gallery-card--profile-gallery .user-gallery-card__votes {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  gap: 10px;
}

.user-gallery-card--profile-gallery .user-gallery-card__vote {
  border: none;
  background: transparent;
}

.user-gallery-card--profile-gallery .user-gallery-card__delete {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
}

.user-gallery-card--profile-gallery {
  border: 0;
  background: transparent;
}

.user-gallery-card__body {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 14px;
}

.user-gallery-card__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.user-gallery-card__delete {
  border: none;
  background: transparent;
  color: var(--text);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  align-self: flex-end;
}

.user-gallery-card__delete .material-symbols-outlined {
  font-size: 1.1rem;
}

.user-gallery-card__tool {
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.user-gallery-card__date {
  font-size: 0.72rem;
  color: var(--text);
}

.user-gallery-card__prompt {
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.4;
  margin: 0;
}

.user-gallery-card__votes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.user-gallery-card__vote {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(20, 20, 20, 0.3);
  background: #ffffff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.user-gallery-card__vote .material-symbols-outlined {
  font-size: 1rem;
}

.user-gallery-card__vote.is-active.user-gallery-card__vote--up {
  border-color: #2e7d32;
  color: #2e7d32;
}

.user-gallery-card__vote.is-active.user-gallery-card__vote--down {
  border-color: #c62828;
  color: #c62828;
}

.tool-output-votes {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
}

.tool-output-votes:not(.tool-output-votes--outside) {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
}

.tool-output-votes--outside {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  z-index: auto;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.tool-output-wrap--with-votes {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.tool-output-wrap--with-votes > .qwen-preview__placeholder,
.tool-output-wrap--with-votes > .upscaler-output__placeholder,
.tool-output-wrap--with-votes > [id$="-output-placeholder"] {
  align-self: stretch;
  width: 100%;
}

.tool-output-wrap--with-votes > .tool-output-votes--outside {
  align-self: center;
}

.tool-output-history-layout {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  overflow: visible;
}

.tool-output-history-layout__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.tool-output-history {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  max-height: none;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #141414;
  overflow: visible;
  transform: none;
  transition: none;
}

.tool-output-history.is-collapsed {
  width: 100%;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  transform: none;
}

.tool-output-history.is-collapsed > :not(.tool-output-history__toggle) {
  display: block;
}

.tool-output-history__toggle {
  display: none !important;
}

.tool-output-history.is-collapsed .tool-output-history__toggle {
  display: none !important;
}

.tool-output-history:not(.is-collapsed) .tool-output-history__toggle {
  display: none !important;
}

.tool-output-history__toggle-icon,
.tool-output-history__toggle-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.tool-output-history__toggle-icon {
  font-size: 26px;
}

.tool-output-history__toggle-arrow {
  font-size: 18px;
  opacity: 0.9;
}

.tool-output-history__toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 0;
  overflow: visible;
}

.tool-output-history__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.72);
  font-weight: 700;
  line-height: 1.2;
}

.tool-output-history__filter {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 18;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #17212b;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.06);
  transition: width 0.16s ease, height 0.16s ease, border-radius 0.16s ease, background 0.16s ease;
}

.tool-output-history__filter.is-open,
.tool-output-history__filter.is-active {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.08);
}

.tool-output-history__filter.is-open {
  position: absolute;
  top: 50%;
  right: 0;
  left: auto;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 999px;
  margin-left: 0;
  box-shadow: none;
  overflow: visible;
  background: #ffffff;
}

.tool-output-history__filter.is-open > .material-symbols-outlined {
  position: relative;
  z-index: 21;
  align-self: center;
  margin: 0;
}

.tool-output-history__filter .material-symbols-outlined {
  font-size: 14px;
  line-height: 1;
}

.tool-output-history__filters {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  transform: none;
  z-index: 20;
  display: grid;
  gap: 7px;
  width: 240px;
  max-width: min(240px, calc(100vw - 24px));
  padding: 8px 10px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #141414;
  max-height: min(320px, calc(100vh - 140px));
  overflow: auto;
  box-shadow: none;
}

.tool-output-history__filter-divider {
  width: 100%;
  height: 1px;
  margin: 2px 0;
  background: rgba(20, 20, 20, 0.12);
}

.tool-output-history__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.72rem;
  color: rgba(20, 20, 20, 0.9);
}

.tool-output-history__check--master {
  font-weight: 600;
}

.tool-output-history__list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
  margin-top: 2px;
  padding-right: 3px;
  overflow-y: auto;
  min-height: 0;
  max-height: none;
}

.tool-output-history__loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 2px 2px 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.02rem;
}

.tool-output-history__loading-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  flex: 0 0 auto;
  animation: toolOutputHistorySpin 0.8s linear infinite;
}

.tool-output-history__item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.tool-output-history__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.tool-output-history__thumb {
  position: relative;
}

.tool-output-history__thumb-loader {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  color: inherit;
  transition: opacity 0.18s ease;
}

.tool-output-history__thumb-loader::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: toolOutputHistorySpin 0.8s linear infinite;
}

.tool-output-history__thumb.is-loading .tool-output-history__thumb-loader {
  opacity: 1;
}

.tool-output-history__thumb.is-loading .tool-output-history__image {
  opacity: 0;
}

@keyframes toolOutputHistorySpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.tool-output-history__meta {
  display: block;
  padding: 5px 6px;
}

.tool-output-history__tool {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-output-history__time {
  display: block;
  margin-top: 3px;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.64);
}

.tool-output-history__empty {
  margin-top: 8px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

.tool-output-history__widgets {
  position: sticky;
  bottom: 0;
  z-index: 2147483000;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 63px;
  min-height: 63px;
  max-height: 63px;
  gap: 8px;
  margin-top: 0;
  padding: 7px 0 calc(7px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(20, 20, 20, 0.06);
  background: #ffffff;
  overflow: visible;
}

.dashboard__content--tool-split .tool-output-history__widgets,
.dashboard__content--facechex .tool-output-history__widgets {
  padding-top: 0;
  padding-bottom: 0;
  z-index: 2147483000;
}

.tool-output-history__widgets .chat,
.tool-output-history__widgets .log,
.tool-output-history__widgets .processes {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 2147483001 !important;
}

body.home-sidebar-open .tool-output-history__widgets {
  z-index: 30 !important;
  background: transparent !important;
  border-top-color: transparent !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.swal2-shown .tool-output-history__widgets {
  background: transparent !important;
  border-top-color: transparent !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.home-sidebar-open .tool-output-history__widgets .chat,
body.home-sidebar-open .tool-output-history__widgets .log,
body.home-sidebar-open .tool-output-history__widgets .processes {
  z-index: 31 !important;
}

.tool-output-history__widgets .chat {
  display: block !important;
}

.tool-output-history__widgets .log.log--visible,
.tool-output-history__widgets .processes {
  display: block;
}

.tool-output-history__widgets .chat__toggle,
.tool-output-history__widgets .log__toggle {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.12);
}

.tool-output-history__widgets .chat__toggle::after,
.tool-output-history__widgets .chat__toggle::before {
  opacity: 0.72;
}

.tool-output-history__widgets .chat__toggle .material-symbols-outlined,
.tool-output-history__widgets .log__toggle .material-symbols-outlined {
  font-size: 21px;
}

.tool-output-history__widgets .processes__pill,
.tool-output-history__widgets .processes__pill--stacked {
  min-width: 0;
  height: 48px;
  box-shadow: 0 4px 12px rgba(20, 20, 20, 0.12);
}

.tool-output-history__widgets .processes__pill {
  min-width: 196px;
  padding: 8px 14px 8px 10px;
  gap: 10px;
}

.tool-output-history__widgets .processes__pill-ring,
.tool-output-history__widgets .processes__pill-ring-svg {
  width: 32px;
  height: 32px;
}

.tool-output-history__widgets .processes__pill-label {
  font-size: 0.64rem;
  letter-spacing: 0.1rem;
}

.tool-output-history__widgets .processes__pill-status {
  font-size: 0.68rem;
}

.tool-output-history__widgets .processes__pill-percent {
  font-size: 0.55rem;
}

.tool-output-history__widgets .processes__pill-close {
  top: -4px;
  right: -4px;
}

.tool-output-history__widgets .chat__panel,
.tool-output-history__widgets .log__panel,
.tool-output-history__widgets .processes__panel {
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 2147483002;
}

.tool-output-history__widgets .processes__body {
  align-items: stretch;
}

@media (max-width: 1160px) {
  .tool-output-history-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tool-output-history {
    position: static;
    border-left: none;
    border-top: 1px solid rgba(20, 20, 20, 0.12);
    padding-left: 0;
    padding-top: 10px;
  }

  .tool-output-history__list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding-bottom: 4px;
  }

  .tool-output-history__item {
    width: 112px;
    min-width: 112px;
  }

  .tool-output-history__widgets {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 10px;
  }

  .tool-output-history__widgets .chat,
  .tool-output-history__widgets .log,
  .tool-output-history__widgets .processes {
    flex: 1 1 180px;
  }
}

.tool-output-history-output-mode .tool-output-history {
  position: relative;
  top: 0;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 0;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 0;
  border: none;
  background: transparent;
  color: #141414;
  overflow: visible;
  box-shadow: none;
}

.tool-output-history-output-mode {
  gap: 0;
  align-content: start;
}

.tool-output-history-output-mode > .tool-split-header,
.tool-output-history-output-mode > .facechex-flat-header {
  margin: 0;
}

.tool-split-layout > .tool-split-panel,
.facechex-layout > .facechex-flat-layer {
  grid-column: 1;
}

.tool-split-layout > .tool-split-resize-handle,
.facechex-layout > .facechex-resize-handle {
  grid-column: 2;
}

.tool-split-layout > .tool-split-side,
.facechex-layout > .facechex-results-side {
  grid-column: 3;
}

.tool-output-history-output-mode > .tool-split-header--divider,
.tool-output-history-output-mode > .facechex-flat-header.tool-split-header--divider {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.tool-output-history-output-mode > .tool-output-history {
  margin-top: 6px;
  min-height: 0;
  height: 100%;
  max-height: none;
}

body.is-lightbox-open .tool-output-history-output-mode .tool-output-history,
body.is-lightbox-open .tool-output-history__widgets {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.tool-output-history-output-mode .tool-output-history__legacy-placeholder {
  display: none !important;
}

.tool-output-history-output-mode .tool-output-history__list {
  display: grid;
  gap: 12px;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 2px 4px 0;
  margin: 0;
}

.tool-output-history-output-mode .tool-output-history__loading {
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(20, 20, 20, 0.72);
}

.tool-output-history-output-mode .tool-output-history__loading-spinner {
  border-color: rgba(20, 20, 20, 0.12);
  border-top-color: rgba(20, 20, 20, 0.7);
}

.tool-output-history-output-mode .tool-output-history__item {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: none;
  border-radius: 18px;
  background: #eef1f5;
  padding: 12px;
}

.tool-output-history-output-mode .tool-output-history__thumb {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  width: 100%;
  max-width: 200px;
  border-radius: 14px;
  overflow: hidden;
  min-height: 200px;
}

.tool-output-history-output-mode .tool-output-history__image {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #e6e8ec;
  border-radius: 14px;
}

.tool-output-history-output-mode .tool-output-history__thumb-loader::before {
  border-color: rgba(20, 20, 20, 0.14);
  border-top-color: rgba(20, 20, 20, 0.7);
}

.tool-output-history-output-mode .tool-output-history__meta {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
}

.tool-output-history-output-mode .tool-output-history__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tool-output-history-output-mode .tool-output-history__tool {
  font-size: 0.64rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.76);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-output-history-output-mode .tool-output-history__time {
  font-size: 0.62rem;
  color: rgba(20, 20, 20, 0.56);
  white-space: nowrap;
}

.tool-output-history-output-mode .tool-output-history__prompt {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #141414;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-output-history-output-mode .tool-output-history__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.tool-output-history-output-mode .tool-output-history__action-wrap {
  position: relative;
  display: inline-flex;
}

.tool-output-history-output-mode .tool-output-history__action {
  border: none;
  background: #ffffff;
  color: #000000;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.tool-output-history-output-mode .tool-output-history__action .material-symbols-outlined {
  font-size: 17px;
}

.tool-output-history-output-mode .tool-output-history__action-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: #ffffff;
  color: #141414;
  padding: 8px 10px;
  font-size: 0.7rem;
  line-height: 1.45;
  letter-spacing: 0.02rem;
  text-transform: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
}

.tool-output-history-output-mode .tool-output-history__action-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: #ffffff;
  border-right: 1px solid rgba(20, 20, 20, 0.22);
  border-bottom: 1px solid rgba(20, 20, 20, 0.22);
}

.tool-output-history-output-mode .tool-output-history__action-wrap:hover .tool-output-history__action-tooltip,
.tool-output-history-output-mode .tool-output-history__action-wrap:focus-within .tool-output-history__action-tooltip {
  opacity: 1;
  visibility: visible;
}

.tool-output-history-output-mode .tool-output-history__action:hover,
.tool-output-history-output-mode .tool-output-history__action:focus-visible {
  background: #f6f7f9;
}

.tool-output-history-output-mode .tool-output-history__action.is-success {
  color: #2e7d32;
}

@media (max-width: 760px) {
  .tool-output-history-output-mode .tool-output-history__item {
    grid-template-columns: 1fr;
  }
}

.tool-output-history-output-mode .tool-output-history__empty {
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(20, 20, 20, 0.62);
}

.tool-input-redesign .tool-input-subtitle {
  display: none;
}

.tool-input-redesign .form__grid {
  display: flex;
  flex-direction: column;
}

.tool-input-redesign .form__grid > .tool-split-header,
.tool-input-redesign .form__grid > .facechex-flat-header {
  order: 1;
}

.tool-input-redesign .form__grid > .tool-input-subtitle {
  order: 2;
}

.tool-input-redesign .form__grid > .tool-input-source-files-grid {
  order: 3;
}

.tool-input-redesign .form__grid > .tool-settings-menu,
.tool-input-redesign .form__grid > .facechex__config-menu,
.tool-input-redesign .form__grid > .tool-split-controls {
  order: 4;
}

.tool-input-redesign .tool-input-source-files-grid {
  margin: 0;
}

.tool-input-redesign .tool-input-source-files-panel {
  margin: 0;
}

.tool-input-redesign .tool-input-source-files-header {
  cursor: default;
}

.tool-input-redesign .tool-input-source-files-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.tool-input-redesign .tool-input-source-files-body {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  justify-content: stretch;
}

body.home-page[data-i18n-page="tool-seedvr2"] .tool-input-redesign .tool-input-source-files-body {
  grid-template-columns: repeat(auto-fit, 100px) !important;
}

body.home-page[data-i18n-page="tool-image-restoration"] .tool-input-redesign .tool-input-source-files-body {
  grid-template-columns: repeat(auto-fit, 100px) !important;
}

body.home-page[data-i18n-page="tool-image-restoration"] .tool-input-redesign .tool-input-source-files-body > #image-restoration-dropzone {
  box-sizing: border-box;
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  height: 100px !important;
  min-height: 100px !important;
  max-height: 100px !important;
  aspect-ratio: 1 / 1 !important;
}

body.home-page[data-i18n-page="tool-image-restoration"] #image-restoration-dropzone:not(.has-image) .upscaler__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.home-page[data-i18n-page="tool-image-restoration"] #image-restoration-dropzone .upscaler__placeholder > span:not(.material-symbols-outlined) {
  display: none;
}

body.home-page[data-i18n-page="tool-seedvr2"] .tool-input-redesign .tool-input-source-files-body > .tool-input-source-field,
body.home-page[data-i18n-page="tool-seedvr2"] .tool-input-redesign .tool-input-source-field #upscaler-dropzone {
  box-sizing: border-box;
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  height: 100px !important;
  min-height: 100px !important;
  max-height: 100px !important;
  aspect-ratio: 1 / 1 !important;
}

.tool-input-redesign .tool-input-source-files-body > .form__field--full,
.tool-input-redesign .tool-input-source-files-body > .tool-input-source-field,
.tool-input-redesign .tool-input-source-files-body > .upscaler__dropzone,
.tool-input-redesign .tool-input-source-files-body > .image-editing-extra-dropzone {
  grid-column: auto;
  min-width: 0;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 1 1 0 !important;
  justify-self: stretch !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px;
  overflow: hidden;
}

.tool-input-redesign .tool-input-source-files-body > .form__field--full:first-child {
  grid-column: auto;
}

.tool-input-redesign .tool-input-source-files-body > .form__field--full:first-child,
.tool-input-redesign .tool-input-source-files-body > .tool-input-source-field:only-child,
.tool-input-redesign .tool-input-source-files-body > .upscaler__dropzone:only-child,
.tool-input-redesign .tool-input-source-files-body > .facechex__dropzone:only-child {
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
}

.tool-input-redesign .tool-input-source-files-body > .form__field--full:first-child .tool-input-compact-dropzone,
.tool-input-redesign .tool-input-source-files-body > .form__field--full:first-child .upscaler__dropzone,
.tool-input-redesign .tool-input-source-files-body > .form__field--full:first-child .facechex__dropzone {
  min-height: 0 !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
}

.tool-input-redesign .tool-input-source-files-body > .image-editing-extra-inputs {
  display: none;
}

.tool-input-redesign #image-editing-dropzone:not(.has-image) .upscaler__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.tool-input-redesign #image-editing-dropzone:not(.has-image) .upscaler__placeholder .material-symbols-outlined {
  margin: 0;
}

.tool-input-redesign .tool-input-source-field {
  margin: 0;
}

.tool-input-redesign .tool-input-compact-dropzone,
.tool-input-redesign .tool-input-source-field .upscaler__dropzone,
.tool-input-redesign .tool-input-source-field .facechex__dropzone {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  flex: 1 1 0;
  align-self: stretch;
  justify-self: stretch;
  border-width: 1px;
  border-style: solid;
  border-color: rgba(20, 20, 20, 0.08);
  border-radius: 12px;
  background: #f7f7f7;
  padding: 6px;
  overflow: hidden;
}

.tool-input-redesign .tool-input-compact-dropzone .material-symbols-outlined,
.tool-input-redesign .upscaler__dropzone .material-symbols-outlined,
.tool-input-redesign .facechex__dropzone .material-symbols-outlined,
.tool-input-redesign .tool-input-source-field .upscaler__dropzone .material-symbols-outlined,
.tool-input-redesign .tool-input-source-field .facechex__dropzone .material-symbols-outlined {
  font-size: 22px !important;
  line-height: 1;
}

.tool-input-redesign .tool-input-compact-dropzone.has-image,
.tool-input-redesign .tool-input-source-field .upscaler__dropzone.has-image,
.tool-input-redesign .tool-input-source-field .facechex__dropzone.has-image {
  padding: 0;
}

.tool-input-redesign .tool-input-compact-dropzone .upscaler__image-wrap,
.tool-input-redesign .tool-input-source-field .upscaler__dropzone .upscaler__image-wrap,
.tool-input-redesign .tool-input-source-field .facechex__dropzone .upscaler__image-wrap,
.tool-input-redesign .tool-input-compact-dropzone.has-image .upscaler__image-wrap,
.tool-input-redesign .tool-input-source-field .upscaler__dropzone.has-image .upscaler__image-wrap,
.tool-input-redesign .tool-input-source-field .facechex__dropzone.has-image .upscaler__image-wrap {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: inherit;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-input-redesign .tool-input-compact-dropzone .upscaler__preview-image,
.tool-input-redesign .tool-input-source-field .upscaler__dropzone .upscaler__preview-image,
.tool-input-redesign .tool-input-source-field .facechex__dropzone .upscaler__preview-image,
.tool-input-redesign .tool-input-compact-dropzone.has-image .upscaler__preview-image,
.tool-input-redesign .tool-input-source-field .upscaler__dropzone.has-image .upscaler__preview-image,
.tool-input-redesign .tool-input-source-field .facechex__dropzone.has-image .upscaler__preview-image {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.tool-input-redesign .tool-input-compact-dropzone:not(.has-image) .upscaler__preview-image,
.tool-input-redesign .tool-input-source-field .upscaler__dropzone:not(.has-image) .upscaler__preview-image,
.tool-input-redesign .tool-input-source-field .facechex__dropzone:not(.has-image) .upscaler__preview-image {
  display: none;
}

.tool-input-redesign .tool-input-compact-dropzone.has-image .upscaler__preview-image,
.tool-input-redesign .tool-input-source-field .upscaler__dropzone.has-image .upscaler__preview-image,
.tool-input-redesign .tool-input-source-field .facechex__dropzone.has-image .upscaler__preview-image {
  display: block;
}

.tool-input-redesign .tool-input-source-field .upscaler__dropzone .material-symbols-outlined,
.tool-input-redesign .tool-input-source-field .facechex__dropzone .material-symbols-outlined {
  font-size: 22px;
}

.tool-input-redesign #image-editing-dropzone {
  width: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  height: 80px !important;
  min-height: 80px !important;
  max-height: 80px !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 80px !important;
  justify-self: start !important;
  align-self: start !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
}

.tool-input-redesign #image-editing-dropzone .upscaler__placeholder {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
}

.tool-input-redesign #image-editing-dropzone .upscaler__placeholder .material-symbols-outlined {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Image Editing uses a fixed four-column grid: every source cell is a square,
   regardless of the selected image dimensions. */
body[data-i18n-page="tool-image-editing"] .tool-input-source-files-body {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: start !important;
}

body[data-i18n-page="tool-image-editing"] .tool-input-source-files-body > #image-editing-dropzone,
body[data-i18n-page="tool-image-editing"] .tool-input-source-files-body > .image-editing-extra-dropzone {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  flex: none !important;
  justify-self: stretch !important;
  align-self: start !important;
}

body[data-i18n-page="tool-image-editing"] #image-editing-dropzone .upscaler__image-wrap,
body[data-i18n-page="tool-image-editing"] #image-editing-dropzone #image-editing-preview {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 760px) {
  .tool-output-history-output-mode .tool-output-history__item {
    grid-template-columns: 1fr;
  }

  .tool-output-history-output-mode .tool-output-history__thumb {
    max-width: 160px;
  }

  .tool-output-history-output-mode .tool-output-history__list {
    max-height: none;
  }
}

.tool-output-votes__button {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition: color 0.16s ease;
}

.tool-output-votes__button.is-pop {
  animation: outputVoteThumbPop 0.28s ease;
}

.tool-output-votes__button .material-symbols-outlined {
  font-size: 1.5rem;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  color: #141414;
}

.tool-output-votes__svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.tool-output-votes__button.is-active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
  color: #000000;
}

.tool-output-votes__button--up.is-active {
  color: #57c7ff;
}

.tool-output-votes__button--down.is-active {
  color: #ee8f8f;
}

.tool-output-votes__button--up.is-active .material-symbols-outlined,
.tool-output-votes__button--up.is-active .tool-output-votes__svg {
  color: #57c7ff;
}

.tool-output-votes__button--down.is-active .material-symbols-outlined,
.tool-output-votes__button--down.is-active .tool-output-votes__svg {
  color: #ee8f8f;
}

.tool-output-votes__confetti {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.tool-output-votes__piece {
  position: absolute;
  width: 6px;
  height: 10px;
  background: hsl(var(--hue), 86%, 54%);
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation: outputVoteConfetti 0.9s ease-out forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes outputVoteConfetti {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.4);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), var(--dy), 0) rotate(480deg) scale(1);
  }
}

@keyframes outputVoteThumbPop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.24);
  }
  100% {
    transform: scale(1);
  }
}


.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
  z-index: 2300;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox__content {
  display: contents;
}

.gallery-lightbox__media {
  position: fixed;
  z-index: 1;
  inset: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.gallery-lightbox.is-with-sidebar .gallery-lightbox__media {
  right: calc(min(360px, 36vw) + 24px);
}

.gallery-lightbox__image {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  pointer-events: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: scale(0.98);
  transition: transform 0.18s ease;
}

.gallery-lightbox.is-open .gallery-lightbox__image {
  transform: scale(1);
}

.gallery-lightbox__close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  color: #ffffff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox__close .material-symbols-outlined {
  font-size: 1.6rem;
}

.gallery-lightbox__download {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 64px;
  border: none;
  background: transparent;
  color: #ffffff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox__download .material-symbols-outlined {
  font-size: 1.4rem;
}

.gallery-lightbox__sidebar {
  position: fixed;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 36vw);
  min-width: 280px;
  background: rgba(8, 8, 8, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px 18px 26px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.3);
}

.gallery-lightbox.is-sidebar-collapsed .gallery-lightbox__sidebar {
  transform: translateX(calc(100% - 60px));
}

.gallery-lightbox__sidebar-toggle {
  position: absolute;
  top: 50%;
  left: -52px;
  transform: translateY(-50%);
  width: 62px;
  height: 124px;
  border: none;
  border-radius: 62px 0 0 62px;
  background: #000000;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: -8px 0 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.28s ease, background 0.28s ease;
}

.gallery-lightbox__sidebar-toggle:hover,
.gallery-lightbox__sidebar-toggle:focus-visible {
  background: #050505;
}

.gallery-lightbox__sidebar-toggle .material-symbols-outlined {
  font-size: 1.6rem;
  line-height: 1;
}

.gallery-lightbox__sidebar-title {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.gallery-lightbox__meta {
  display: grid;
  gap: 12px;
}

.gallery-lightbox__expiry-note {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.68rem;
  line-height: 1.35;
  color: #ff5b5b;
  letter-spacing: 0.02rem;
  margin-top: auto;
}

.gallery-lightbox__meta-row {
  display: grid;
  gap: 6px;
}

.gallery-lightbox__meta-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.gallery-lightbox__meta-value {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #ffffff;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 900px) {
  .gallery-lightbox__media {
    inset: 12px;
  }

  .gallery-lightbox.is-with-sidebar .gallery-lightbox__media {
    right: calc(min(320px, 78vw) + 12px);
  }

  .gallery-lightbox__sidebar {
    width: min(320px, 78vw);
    min-width: 0;
  }

  .photoshoot-output-viewer__thumbs {
    gap: 8px;
  }

  .photoshoot-output-viewer__thumb {
    height: 84px;
    width: calc(84px * var(--thumb-ratio));
    max-width: 180px;
  }

  .photoshoot-output-viewer__main {
    max-height: min(52vh, calc(100dvh - 300px));
  }

  .photoshoot-output-viewer__main-image {
    max-height: min(52vh, calc(100dvh - 300px));
  }
}

body.is-lightbox-open {
  overflow: hidden;
}

.grok-card {
  position: relative;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #f5f5f5;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.grok-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px);
  transition: filter 0.5s ease;
}

.grok-card.is-ready .grok-card__image {
  filter: none;
}

.grok-card__placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 20, 20, 0.04), rgba(20, 20, 20, 0.12), rgba(20, 20, 20, 0.04));
  animation: grokShimmer 1.5s ease-in-out infinite;
}

.grok-card.is-ready .grok-card__placeholder {
  display: none;
}

.grok-card__download {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
}

.output-media__frame .qwen-output__download,
.output-media__frame .upscaler-output__download {
  left: auto;
  bottom: auto;
  top: max(0px, var(--output-icon-inset));
  right: max(0px, var(--output-icon-inset));
}

#image-editing-output-placeholder .output-media__frame .qwen-output__download {
  top: max(0px, var(--image-editing-download-top, var(--output-icon-inset)));
  right: max(0px, var(--image-editing-download-right, var(--output-icon-inset)));
}

.output-media__frame .upscaler-output__download {
  top: max(0px, var(--upscaler-download-top, var(--output-icon-inset)));
  right: max(0px, var(--upscaler-download-right, var(--output-icon-inset)));
}

.upscaler__download .material-symbols-outlined,
.user-gallery-card__download .material-symbols-outlined,
.grok-card__download .material-symbols-outlined,
.qwen-output__download .material-symbols-outlined,
.upscaler-output__download .material-symbols-outlined {
  color: #ffffff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.grok-card__download[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.grok-command-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #d8d8d8;
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 10px 14px;
  width: calc(100% + 80px);
  margin-top: 0;
  margin-bottom: 0;
  margin-left: -40px;
  margin-right: -40px;
}

.grok-command-bar__model,
.grok-command-bar__aspect,
.grok-command-bar__settings {
  position: relative;
  display: inline-flex;
}

.grok-command-bar__prompt-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.grok-command-bar__circle {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(20, 20, 20, 0.3);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 999px;
}

.grok-command-bar__circle .material-symbols-outlined {
  font-size: 1.18rem;
}

.grok-aspect-icon {
  --grok-ratio-width: 18px;
  --grok-ratio-height: 12px;
  width: var(--grok-ratio-width);
  height: var(--grok-ratio-height);
  border: 1px solid rgba(20, 20, 20, 0.86);
  background: transparent;
  box-sizing: border-box;
  display: inline-block;
  flex: 0 0 auto;
}

.grok-aspect-icon[data-ratio="1:1"] {
  --grok-ratio-width: 14px;
  --grok-ratio-height: 14px;
}

.grok-aspect-icon[data-ratio="3:2"] {
  --grok-ratio-width: 18px;
  --grok-ratio-height: 12px;
}

.grok-aspect-icon[data-ratio="2:3"] {
  --grok-ratio-width: 12px;
  --grok-ratio-height: 18px;
}

.grok-aspect-icon[data-ratio="4:3"] {
  --grok-ratio-width: 16px;
  --grok-ratio-height: 12px;
}

.grok-aspect-icon[data-ratio="3:4"] {
  --grok-ratio-width: 12px;
  --grok-ratio-height: 16px;
}

.grok-aspect-icon[data-ratio="16:9"] {
  --grok-ratio-width: 18px;
  --grok-ratio-height: 10px;
}

.grok-aspect-icon[data-ratio="9:16"] {
  --grok-ratio-width: 10px;
  --grok-ratio-height: 18px;
}

.grok-aspect-icon[data-ratio="21:9"] {
  --grok-ratio-width: 21px;
  --grok-ratio-height: 9px;
}

.grok-aspect-icon[data-ratio="2:1"] {
  --grok-ratio-width: 20px;
  --grok-ratio-height: 10px;
}

.grok-aspect-icon[data-ratio="1:2"] {
  --grok-ratio-width: 10px;
  --grok-ratio-height: 20px;
}

.grok-aspect-icon[data-ratio="19.5:9"] {
  --grok-ratio-width: 22px;
  --grok-ratio-height: 10px;
}

.grok-aspect-icon[data-ratio="9:19.5"] {
  --grok-ratio-width: 10px;
  --grok-ratio-height: 22px;
}

.grok-aspect-icon[data-ratio="20:9"] {
  --grok-ratio-width: 22px;
  --grok-ratio-height: 10px;
}

.grok-aspect-icon[data-ratio="9:20"] {
  --grok-ratio-width: 10px;
  --grok-ratio-height: 22px;
}

.grok-aspect-icon[data-ratio="auto"] {
  --grok-ratio-width: 16px;
  --grok-ratio-height: 12px;
  border-style: dashed;
}

.grok-command-bar__circle--model {
  width: auto;
  min-width: 180px;
  padding: 0 12px;
  gap: 8px;
}

.grok-command-bar__model-text {
  font-size: 0.76rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: #141414;
  font-weight: 600;
}

.grok-command-bar__model-price {
  font-size: 0.68rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.72);
}

.grok-command-bar__ratio {
  font-size: 0.66rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.75);
  position: absolute;
  bottom: 5px;
}

.grok-command-bar__input {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 260px;
  border: 1px solid rgba(20, 20, 20, 0.26);
  background: #ffffff;
  border-radius: 999px;
  padding: 0 52px 0 16px;
  width: auto;
}

.photoshoot-upload {
  display: block;
  width: 100%;
  min-width: 0;
}

.photoshoot-upload--panel {
  width: 100%;
}

.photoshoot-upload--sources .photoshoot-upload__sources-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.photoshoot-upload__source-slot {
  min-width: 0;
}

.photoshoot-upload--sources .photoshoot-upload__trigger {
  min-height: 188px;
}

.photoshoot-upload__trigger {
  position: relative;
  width: 100%;
  min-height: 300px;
  border: 2px dashed rgba(20, 20, 20, 0.35);
  background: #f7f7f7;
  color: #141414;
  display: block;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.photoshoot-upload__trigger:hover,
.photoshoot-upload__trigger:focus-visible {
  background: #f2f2f2;
}

.photoshoot-upload__trigger--large {
  min-height: 420px;
}

.photoshoot-upload--sources .photoshoot-upload__trigger--large {
  min-height: 188px;
}

.photoshoot-upload__trigger.is-dragging {
  border-color: rgba(20, 20, 20, 0.6);
  background: rgba(20, 20, 20, 0.05);
}

.photoshoot-upload__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.84);
  pointer-events: none;
  text-align: center;
}

.photoshoot-upload__trigger.has-image .photoshoot-upload__overlay {
  display: none;
}

.photoshoot-upload__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.photoshoot-upload__title {
  font-size: 0.76rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: inherit;
}

.photoshoot-upload__hint {
  font-size: 0.7rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.84;
}

.photoshoot-upload__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  background: #ffffff;
}

@media (max-width: 980px) {
  .photoshoot-upload--sources .photoshoot-upload__sources-grid {
    grid-template-columns: 1fr;
  }

  .photoshoot-upload--sources .photoshoot-upload__trigger--large {
    min-height: 220px;
  }
}

.photoshoot-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 0;
  height: auto;
  align-items: stretch;
}

.photoshoot-styler {
  display: block;
  border: none;
  background: transparent;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.photoshoot-layout .tool-split-panel {
  padding: 0;
  gap: 14px;
}

.photoshoot-layout {
  /* Four 100px tiles, three 10px gaps, and the enclosing horizontal padding. */
  --facechex-main-min-width: 502px;
}

.photoshoot-layout__left {
  padding: 0 12px 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 620px;
}

.photoshoot-layout__output {
  padding: 0 12px 18px;
}

.photoshoot-layout__output .tool-split-header--divider {
  margin: 0;
}

.photoshoot-workbench {
  position: relative;
  --line-end-gap: 10px;
  --field-head-top: 12%;
  --field-chest-top: 31%;
  --field-hands-top: 50%;
  --field-waist-top: 69%;
  --field-feet-top: 88%;
  --line-head-y: 14%;
  --line-head-len: 8px;
  --line-head-angle: -13deg;
  --line-chest-y: 33%;
  --line-chest-len: 164px;
  --line-chest-angle: -6deg;
  --line-hands-y: 51%;
  --line-hands-len: 164px;
  --line-hands-angle: -1deg;
  --line-waist-y: 69%;
  --line-waist-len: 164px;
  --line-waist-angle: 5deg;
  --line-feet-y: 87%;
  --line-feet-len: 164px;
  --line-feet-angle: 11deg;
  display: block;
  background: #ffffff;
  border: none;
  padding: 0 14px 14px;
  min-height: 620px;
}

.photoshoot-silhouette {
  border: none;
  background: transparent;
  min-height: 620px;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}

.photoshoot-silhouette__image {
  width: 100%;
  height: 100%;
  min-height: 620px;
  background: url("/assets/brand/images/photoshoot-silhouette.webp") center top / 125% auto no-repeat;
  filter: blur(0.35px) contrast(1.01);
}

.photoshoot-controls {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: 14px;
  min-width: 0;
  width: 100%;
  overflow: visible;
  z-index: 4;
}

.photoshoot-styler__controls {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.photoshoot-styler__outfit,
.photoshoot-styler__panel {
  border: 0;
  border-radius: 12px;
  background: #f7f7f7;
}

.photoshoot-styler__outfit-summary,
.photoshoot-styler__panel-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.photoshoot-styler__outfit-summary::-webkit-details-marker,
.photoshoot-styler__panel-summary::-webkit-details-marker {
  display: none;
}

.photoshoot-styler__outfit-summary .photoshoot-styler__label,
.photoshoot-styler__panel-summary .photoshoot-styler__label {
  grid-column: auto;
  grid-row: auto;
}

.photoshoot-styler__outfit-summary .photoshoot-styler__icon-wrap,
.photoshoot-styler__panel-summary .photoshoot-styler__icon-wrap {
  border: none;
  background: transparent;
  width: auto;
  min-height: 0;
  padding: 0;
  grid-column: auto;
  grid-row: auto;
}

.photoshoot-styler__outfit-chevron {
  font-size: 1.15rem;
  margin-left: auto;
  transition: transform 0.2s ease;
}

.photoshoot-styler__outfit[open] .photoshoot-styler__outfit-chevron,
.photoshoot-styler__panel[open] .photoshoot-styler__outfit-chevron {
  transform: rotate(180deg);
}

.photoshoot-styler__outfit-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 10px 10px;
}

.photoshoot-outfit-mode {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}

.photoshoot-outfit-mode__option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.78);
}

.photoshoot-source-mode {
  position: relative;
  display: block;
  width: 100%;
  min-height: 116px;
  margin-bottom: 10px;
}

.photoshoot-source-mode__option {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(20, 20, 20, 0.86);
  cursor: pointer;
  transform-origin: center top;
  transition: transform 0.22s ease, opacity 0.22s ease, left 0.22s ease, right 0.22s ease;
}

.photoshoot-source-mode:not([data-interacted="true"]) .photoshoot-source-mode__option {
  transform: scale(1);
  opacity: 1;
}

.photoshoot-source-mode:not([data-interacted="true"]) .photoshoot-source-mode__option[data-photoshoot-source-mode-option="image"] {
  left: calc(50% - 72px);
  right: auto;
  transform: translateX(-100%) scale(1);
}

.photoshoot-source-mode:not([data-interacted="true"]) .photoshoot-source-mode__option[data-photoshoot-source-mode-option="clone"] {
  left: calc(50% + 72px);
  right: auto;
  transform: translateX(0) scale(1);
}

.photoshoot-source-mode__option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.photoshoot-source-mode__bubble {
  position: relative;
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 20, 20, 0.28);
  border-radius: 999px;
  background: #fff;
  transition: border-color 0.22s ease;
}

.photoshoot-source-mode__icon {
  font-size: 1.6rem;
  color: rgba(20, 20, 20, 0.86);
}

.photoshoot-source-mode__icon-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photoshoot-source-mode__icon-plus {
  position: absolute;
  right: -10px;
  bottom: -9px;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(20, 20, 20, 0.22);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  color: rgba(20, 20, 20, 0.88);
}

.photoshoot-source-mode__text {
  font-size: 0.69rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  font-weight: 700;
}

@media (max-width: 600px) {
  body[data-i18n-page="tool-photoshoot"] .photoshoot-source-mode {
    display: flex;
    justify-content: center;
    gap: 8px;
    height: auto;
  }

  body[data-i18n-page="tool-photoshoot"] .photoshoot-source-mode .photoshoot-source-mode__option {
    position: static;
    flex: 0 0 auto;
    transform: none !important;
  }

  body[data-i18n-page="tool-photoshoot"] .photoshoot-source-mode__bubble {
    width: 58px;
    height: 58px;
  }
}

.photoshoot-source-mode__clone-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photoshoot-source-mode__option--has-cover .photoshoot-source-mode__icon-stack {
  display: none;
}

.photoshoot-clone-panel {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: rgba(20, 20, 20, 0.03);
  padding: 10px;
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.photoshoot-clone-panel__message {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  color: rgba(20, 20, 20, 0.82);
}

.photoshoot-clone-panel__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  border: 1px solid rgba(20, 20, 20, 0.28);
  padding: 0 14px;
  font-size: 0.68rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  text-decoration: none;
  color: #141414;
  background: #ffffff;
}

.photoshoot-source-mode[data-interacted="true"] .photoshoot-source-mode__option.is-active {
  left: 50%;
  right: auto;
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 2;
}

.photoshoot-source-mode[data-interacted="true"] .photoshoot-source-mode__option.is-active .photoshoot-source-mode__bubble {
  border-color: rgba(20, 20, 20, 0.8);
}

.photoshoot-source-mode[data-interacted="true"] .photoshoot-source-mode__option:not(.is-active) {
  left: auto;
  right: 0;
  transform: scale(0.74);
  opacity: 0.82;
  z-index: 1;
}

.photoshoot-outfit-mode__hint,
.photoshoot-outfit-images__hint {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(20, 20, 20, 0.64);
}

.photoshoot-outfit-images {
  display: grid;
  gap: 8px;
}

.photoshoot-outfit-text-fields {
  display: grid;
  gap: 10px;
}

.photoshoot-outfit-images__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.photoshoot-outfit-images__slot {
  position: relative;
  min-height: 78px;
  border: 1px dashed rgba(20, 20, 20, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(20, 20, 20, 0.03);
  overflow: hidden;
}

.photoshoot-outfit-images__slot .material-symbols-outlined {
  font-size: 1.25rem;
  color: rgba(20, 20, 20, 0.62);
}

.photoshoot-outfit-images__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photoshoot-outfit-images__slot.has-image .material-symbols-outlined {
  display: none;
}

.photoshoot-styler__subfield {
  display: grid;
  grid-template-columns: minmax(92px, 126px) minmax(0, 190px) 72px 38px 38px;
  align-items: center;
  column-gap: 4px;
}

.photoshoot-styler__subfield .photoshoot-styler__custom-input {
  grid-column: 2;
  grid-row: 2;
  width: 190px;
  max-width: 100%;
}

.photoshoot-styler__subfield .photoshoot-styler__label,
.photoshoot-styler__outfit-summary .photoshoot-styler__label,
.photoshoot-styler__panel-summary .photoshoot-styler__label {
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: rgba(20, 20, 20, 0.72);
  font-size: 0.64rem;
}

.photoshoot-styler__subfield .photoshoot-styler__select {
  grid-column: 2;
  grid-row: 1;
  width: 190px;
  max-width: 100%;
}

.photoshoot-styler__subfield--model .photoshoot-styler__select {
  border-radius: 999px !important;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23141414' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}

.photoshoot-styler__subfield .photoshoot-styler__label {
  grid-column: 1;
  grid-row: 1;
}

.photoshoot-styler__subfield .photoshoot-styler__color-select {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  width: 72px;
  min-height: 42px;
}

.photoshoot-styler__subfield .photoshoot-styler__add-control {
  grid-column: 5;
  grid-row: 1;
  position: relative;
  width: 38px;
  height: 38px;
  min-height: 38px;
}

.photoshoot-styler__subfield .photoshoot-styler__custom-remove-control {
  grid-column: 4;
  grid-row: 1;
  position: relative;
  width: 38px;
  height: 38px;
  min-height: 38px;
}

.photoshoot-styler__subfield .photoshoot-styler__remove-control {
  grid-column: 4;
  grid-row: 1;
  position: relative;
  width: 38px;
  height: 38px;
  min-height: 38px;
}

.photoshoot-styler__subfield--variant .photoshoot-styler__variant-input {
  width: 190px;
  max-width: 100%;
}

.photoshoot-styler__subfield--count {
  grid-template-columns: minmax(92px, 126px) minmax(0, 190px);
}

.photoshoot-styler__range-wrap {
  grid-column: 2;
  grid-row: 1;
  width: 190px;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
}

.photoshoot-styler__range {
  width: 100%;
  margin: 0;
}

.photoshoot-styler__range-value {
  min-width: 20px;
  font-size: 0.72rem;
  color: rgba(20, 20, 20, 0.74);
  text-align: right;
}

.photoshoot-styler__subfield--aspect {
  grid-template-columns: minmax(92px, 126px) minmax(0, 190px);
  align-items: start;
}

.photoshoot-styler__number {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  border-radius: 0 !important;
  background: #ffffff;
  color: #141414;
  font-family: inherit;
  font-size: 0.84rem;
  padding: 0 12px;
  outline: none;
}

.photoshoot-styler__aspect-select {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: 190px;
  max-width: 100%;
}

.photoshoot-styler__aspect-trigger {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  border-radius: 999px !important;
  background: #ffffff;
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 10px;
  cursor: pointer;
}

.photoshoot-styler__aspect-label {
  font-size: 0.74rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.78);
}

.photoshoot-styler__aspect-chevron {
  margin-left: auto;
  font-size: 1rem;
}

#photoshoot-resolution,
#photoshoot-mood-select {
  border-radius: 999px !important;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
}

.photoshoot-styler__aspect-menu {
  left: auto;
  right: 0;
  top: calc(100% + 6px);
  width: min(360px, calc(100vw - 48px));
  min-width: 236px;
}

.photoshoot-color-picker__trigger {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  border-radius: 0 999px 999px 0 !important;
  background: #ffffff;
  padding: 0 8px;
  cursor: pointer;
}

.photoshoot-color-picker__swatches {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.photoshoot-color-picker__swatch-host {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photoshoot-color-picker__swatch {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: #141414;
  box-sizing: border-box;
}

.photoshoot-color-picker__swatch.is-active {
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.24);
}

.photoshoot-color-picker__swatch-remove {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 999px;
  background: rgba(180, 20, 20, 0.75);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.16s ease;
}

.photoshoot-color-picker__swatch-host:hover .photoshoot-color-picker__swatch-remove,
.photoshoot-color-picker__swatch-host:focus-within .photoshoot-color-picker__swatch-remove {
  opacity: 1;
  pointer-events: auto;
}

.photoshoot-color-picker__swatch-remove .material-symbols-outlined {
  font-size: 0.9rem;
  line-height: 1;
}

.photoshoot-color-picker__arrow {
  font-size: 1rem;
  color: #141414;
  line-height: 1;
}

.photoshoot-color-picker__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 40;
  width: max-content;
  max-width: calc(100vw - 24px);
  max-height: 300px;
  overflow: auto;
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 6px 14px rgba(20, 20, 20, 0.12);
}

.photoshoot-color-picker__group {
  margin: 0 0 10px;
}

.photoshoot-color-picker__group:last-child {
  margin-bottom: 0;
}

.photoshoot-color-picker__group-title {
  margin: 0 0 6px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: rgba(20, 20, 20, 0.7);
}

.photoshoot-color-picker__grid {
  display: grid;
  grid-template-columns: repeat(8, 30px);
  gap: 3px;
  justify-content: flex-start;
}

.photoshoot-color-picker__option {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(20, 20, 20, 0.18);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.photoshoot-color-picker__option[data-color-id="white"] {
  border-color: rgba(20, 20, 20, 0.5);
}

.photoshoot-color-picker__option[data-color-id="black"] {
  border-color: rgba(20, 20, 20, 0.7);
}

.photoshoot-color-picker__option.is-selected {
  border-color: #141414;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.photoshoot-color-picker__add-trigger {
  width: 100%;
  height: 38px;
  min-height: 38px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #141414;
  font-family: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.photoshoot-color-picker__remove-trigger {
  width: 100%;
  height: 38px;
  min-height: 38px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.photoshoot-color-picker__remove-custom-trigger {
  border-color: rgba(180, 20, 20, 0.55);
  background: rgba(180, 20, 20, 0.2);
  color: #b41414;
}

.photoshoot-color-picker__remove-trigger .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
}

.photoshoot-color-picker__add-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 42;
  min-width: 170px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(20, 20, 20, 0.12);
  display: grid;
}

.photoshoot-color-picker__add-option {
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  background: transparent;
  color: #141414;
  font-family: inherit;
  font-size: 0.72rem;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}

.photoshoot-color-picker__add-option:last-child {
  border-bottom: 0;
}

.photoshoot-styler__field {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  min-height: 0;
  overflow: visible;
  z-index: 1;
}

.photoshoot-styler__field::before {
  display: none;
}

.photoshoot-styler__field[data-zone="head"]::before {
  --line-start-y: var(--line-head-y);
  --line-length: var(--line-head-len);
  --line-angle: var(--line-head-angle);
}

.photoshoot-styler__field[data-zone="head"] {
  top: var(--field-head-top);
}

.photoshoot-styler__field[data-zone="chest"]::before {
  --line-start-y: var(--line-chest-y);
  --line-length: var(--line-chest-len);
  --line-angle: var(--line-chest-angle);
}

.photoshoot-styler__field[data-zone="chest"] {
  top: var(--field-chest-top);
}

.photoshoot-styler__field[data-zone="hands"]::before {
  --line-start-y: var(--line-hands-y);
  --line-length: var(--line-hands-len);
  --line-angle: var(--line-hands-angle);
}

.photoshoot-styler__field[data-zone="hands"] {
  top: var(--field-hands-top);
}

.photoshoot-styler__field[data-zone="waist"]::before {
  --line-start-y: var(--line-waist-y);
  --line-length: var(--line-waist-len);
  --line-angle: var(--line-waist-angle);
}

.photoshoot-styler__field[data-zone="waist"] {
  top: var(--field-waist-top);
}

.photoshoot-styler__field[data-zone="feet"]::before {
  --line-start-y: var(--line-feet-y);
  --line-length: var(--line-feet-len);
  --line-angle: var(--line-feet-angle);
}

.photoshoot-styler__field[data-zone="feet"] {
  top: var(--field-feet-top);
}

.photoshoot-workbench--stacked .photoshoot-styler__field,
.photoshoot-workbench--stacked .photoshoot-styler__field[data-zone="head"],
.photoshoot-workbench--stacked .photoshoot-styler__field[data-zone="chest"],
.photoshoot-workbench--stacked .photoshoot-styler__field[data-zone="hands"],
.photoshoot-workbench--stacked .photoshoot-styler__field[data-zone="waist"],
.photoshoot-workbench--stacked .photoshoot-styler__field[data-zone="feet"] {
  top: auto !important;
}

.photoshoot-styler__icon-wrap {
  grid-column: 1;
  grid-row: 2;
  width: 42px;
  min-height: 42px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photoshoot-styler__icon {
  font-size: 1.2rem;
}

.photoshoot-styler__select-wrap {
  display: contents;
}

.photoshoot-styler__label {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: rgba(20, 20, 20, 0.72);
}

.photoshoot-styler__select {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  border-radius: 999px 0 0 999px !important;
  -webkit-appearance: none;
  appearance: none;
  background: #ffffff;
  color: #141414;
  font-family: inherit;
  font-size: 0.84rem;
  padding: 0 12px;
  outline: none;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__select,
body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__aspect-trigger,
body[data-i18n-page="tool-photoshoot"] .tool-model-picker__trigger {
  border: 0;
  border-radius: 12px !important;
  background-color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__aspect-label {
  font-size: 0.9rem;
  letter-spacing: normal;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__subfield--model .tool-model-picker {
  grid-column: 2;
  width: 190px;
  max-width: 100%;
}

body[data-i18n-page="tool-photoshoot"] #photoshoot-model-select.tool-model-picker__native {
  position: absolute;
  width: 1px !important;
  min-width: 0 !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

/* Photoshoot uses the same compact input tiles as the other Studio tools. */
body[data-i18n-page="tool-photoshoot"] .photoshoot-source-mode {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  box-sizing: border-box;
  min-height: 0;
  margin: 0;
  padding: 4px;
  border-radius: 12px;
  background: #f7f7f7;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-source-mode .photoshoot-source-mode__option[data-photoshoot-source-mode-option] {
  position: relative;
  left: auto;
  right: auto;
  flex: 1 1 0;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-radius: 9px;
  transform: none !important;
  opacity: 1;
  transition: background-color 0.2s ease;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-source-mode__option:focus-within {
  outline: 2px solid rgba(20, 20, 20, 0.6);
  outline-offset: 2px;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-source-mode__bubble {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-source-mode__icon {
  font-size: 20px;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-source-mode__icon-plus {
  display: none;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-source-mode__text {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-upload__sources-grid,
body[data-i18n-page="tool-photoshoot"] .photoshoot-outfit-images__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 100px);
  justify-content: start;
  gap: 10px;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-upload__trigger,
body[data-i18n-page="tool-photoshoot"] .photoshoot-outfit-images__slot {
  box-sizing: border-box;
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  height: 100px;
  min-height: 100px;
  max-height: 100px;
  border: 1px dashed rgba(20, 20, 20, 0.18);
  border-radius: 12px;
  background: #f7f7f7;
  overflow: hidden;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-upload__trigger:not(.has-image),
body[data-i18n-page="tool-photoshoot"] .photoshoot-outfit-images__slot:not(.has-image) {
  animation: toolInputDropzonePulse 1.8s ease-in-out infinite;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-upload__overlay {
  padding: 0;
  background: transparent;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-upload__overlay svg {
  width: 22px;
  height: 22px;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-upload__title,
body[data-i18n-page="tool-photoshoot"] .photoshoot-upload__hint {
  display: none;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-upload__preview {
  object-fit: cover;
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-upload__trigger.is-dragging,
body[data-i18n-page="tool-photoshoot"] .photoshoot-outfit-images__slot.is-dragging {
  border-color: rgba(20, 20, 20, 0.6);
}

.photoshoot-send {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(20, 20, 20, 0.32);
  background: #141414;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  align-self: stretch;
}

.photoshoot-send:hover,
.photoshoot-send:focus-visible {
  background: #2a2a2a;
}

.photoshoot-hidden-prompt {
  display: none;
}

.photoshoot-admin-prompt-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.68rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  background: #ffffff;
  color: #141414;
  border: 1px solid rgba(20, 20, 20, 0.26);
}

.photoshoot-admin-prompt-button:hover,
.photoshoot-admin-prompt-button:focus-visible {
  background: rgba(20, 20, 20, 0.07);
}

.photoshoot-admin-prompt-preview {
  margin: 0;
  max-height: min(46vh, 420px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  color: #141414;
  font-family: "Roboto Mono", "Consolas", "Courier New", monospace;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}

.photoshoot-admin-prompt-section-title {
  margin: 0 0 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: #141414;
}

.photoshoot-admin-prompt-structured {
  margin: 0 0 12px;
}

.photoshoot-admin-prompt-table-wrap {
  max-height: min(36vh, 300px);
  overflow: auto;
  border: 1px solid rgba(20, 20, 20, 0.2);
  margin: 0 0 10px;
}

.photoshoot-admin-prompt-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.72rem;
}

.photoshoot-admin-prompt-table th,
.photoshoot-admin-prompt-table td {
  border: 1px solid rgba(20, 20, 20, 0.15);
  padding: 8px;
  vertical-align: top;
  text-align: left;
}

.photoshoot-admin-prompt-table th {
  background: rgba(20, 20, 20, 0.07);
  font-weight: 700;
}

.photoshoot-admin-prompt-table td code {
  display: block;
  font-family: "Roboto Mono", "Consolas", "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  color: #141414;
}

.grok-command-bar__textarea {
  border: none;
  width: 100%;
  resize: none;
  font-family: inherit;
  font-size: 0.94rem;
  padding: 12px 0;
  outline: none;
  background: transparent;
}

.grok-command-bar__send {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid rgba(20, 20, 20, 0.3);
  background: #ffffff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.grok-command-bar__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.22);
  z-index: 40;
}

.grok-command-bar__menu[aria-hidden="true"] {
  display: none;
}

.grok-command-bar__settings {
  margin-left: auto;
}

#grok-settings-menu {
  left: auto;
  right: 0;
  width: min(320px, calc(100vw - 32px));
  min-width: 220px;
  max-width: calc(100vw - 32px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  box-sizing: border-box;
}

.grok-command-bar__menu--ratios {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 240px;
}

.grok-command-bar__menu-option {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  padding: 7px 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  cursor: pointer;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

.grok-command-bar__menu-option .material-symbols-outlined {
  font-size: 1rem;
}

.grok-command-bar__menu-option .grok-aspect-icon {
  margin-right: 2px;
}

.grok-command-bar__menu-option.is-active {
  border-color: rgba(20, 20, 20, 0.85);
  background: rgba(20, 20, 20, 0.06);
}

.grok-command-bar__menu-price {
  margin-left: auto;
  font-size: 0.64rem;
  letter-spacing: 0.04rem;
  color: rgba(20, 20, 20, 0.65);
}

.grok-command-bar__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.72);
}

.grok-command-bar__field input {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.25);
  padding: 8px 10px;
  font-size: 0.86rem;
  font-family: inherit;
  border-radius: 999px;
}

.tool-footer.tool-footer--grok {
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  margin-top: auto;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.58);
}

.qwen-preview__placeholder .qwen-output__download,
.upscaler-output__placeholder .upscaler-output__download {
  display: none;
}

.qwen-preview__placeholder.has-output .qwen-output__download[aria-disabled="false"],
.upscaler-output__placeholder.has-output .upscaler-output__download[aria-disabled="false"] {
  display: inline-flex;
}

.grok-composer {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(900px, 92vw);
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 12px 16px;
  background: #ffffff;
  z-index: 20;
}

.grok-composer__menu {
  position: absolute;
  bottom: 72px;
  left: 16px;
  display: grid;
  gap: 6px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.2);
  z-index: 25;
}


.grok-composer__menu[aria-hidden="true"] {
  display: none;
}

.grok-composer__option {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 6px 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  cursor: pointer;
}

.grok-composer__option.is-active {
  border-color: rgba(20, 20, 20, 0.8);
}

.grok-composer__icon {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  min-width: 64px;
  height: 58px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.grok-composer__label {
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.grok-composer__controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.grok-composer__control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grok-composer__control-label {
  font-size: 0.65rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.grok-composer__control-input {
  width: 68px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 6px 8px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
}

.grok-composer__input {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 0 44px 0 12px;
}

.grok-composer__textarea {
  border: none;
  width: 100%;
  resize: none;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 0;
  outline: none;
  background: transparent;
}

.grok-composer__send {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@keyframes grokShimmer {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.4;
  }
}

@media (max-width: 860px) {
  .dashboard__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard__grid--analytics {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard__grid--analytics .dashboard-panel {
    grid-column: 1 / -1;
  }

  .dashboard__grid--analytics .panel--compact .panel__body,
  .dashboard__grid--analytics .dashboard-panel--kpi-summary .panel__body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .grok-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .grok-gallery {
    grid-template-columns: 1fr;
  }

  .user-gallery__grid {
    grid-template-columns: 1fr;
  }

  .user-gallery__heading {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .user-gallery__usage-tooltip {
    left: auto;
    right: 0;
    top: calc(100% + 8px);
    transform: none;
    width: min(260px, 78vw);
  }

  .user-gallery__usage-tooltip::before {
    left: auto;
    right: 12px;
    top: -5px;
    transform: rotate(45deg);
  }

  .profile-tab-panel[data-profile-panel="gallery"] .user-gallery__filters {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .profile-tab-panel[data-profile-panel="gallery"] .user-gallery__pagination {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .grok-composer {
    grid-template-columns: 1fr;
  }

  .grok-composer__icon {
    width: 100%;
  }

  .grok-composer__controls {
    width: 100%;
    justify-content: space-between;
  }

  .grok-composer__control {
    flex: 1;
  }

  .grok-composer__control-input {
    width: 100%;
  }

  .grok-command-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .grok-command-bar__prompt-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }

  .grok-command-bar__input {
    min-width: 0;
    width: 100%;
  }

  .photoshoot-upload {
    width: 100%;
    max-width: none;
  }

  .photoshoot-layout {
    grid-template-columns: 1fr;
  }

  .photoshoot-layout > .tool-split-resize-handle {
    display: none;
  }

  .photoshoot-layout__left {
    min-height: 0;
  }

  .photoshoot-workbench {
    padding: 10px;
    min-height: 0;
  }

  .photoshoot-upload__trigger--large {
    min-height: 260px;
  }

  .photoshoot-upload__overlay {
    padding: 18px;
  }

  .photoshoot-builder {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .photoshoot-styler__field {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 6px;
    row-gap: 3px;
  }

  .photoshoot-styler__outfit-summary {
    gap: 6px;
    padding: 8px;
  }

  .photoshoot-styler__outfit-body {
    padding: 0 8px 8px;
  }

  .photoshoot-styler__icon-wrap {
    width: 36px;
    min-height: 36px;
  }

  .photoshoot-styler__select {
    min-height: 38px;
  }

  .photoshoot-styler__subfield {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .photoshoot-styler__subfield .photoshoot-styler__label,
  .photoshoot-styler__subfield .photoshoot-styler__select,
  .photoshoot-styler__subfield .photoshoot-styler__custom-input,
  .photoshoot-styler__subfield .photoshoot-styler__color-select,
  .photoshoot-styler__subfield .photoshoot-styler__custom-remove-control,
  .photoshoot-styler__subfield .photoshoot-styler__add-control,
  .photoshoot-styler__subfield .photoshoot-styler__remove-control {
    grid-column: 1;
  }

  .photoshoot-styler__subfield .photoshoot-styler__custom-input {
    grid-row: auto;
    width: 100%;
  }

  .photoshoot-styler__subfield .photoshoot-styler__select {
    width: 100%;
  }

  .photoshoot-styler__subfield .photoshoot-styler__color-select {
    width: 72px;
  }

  .photoshoot-styler__subfield .photoshoot-styler__add-control {
    width: 38px;
  }

  .photoshoot-styler__subfield .photoshoot-styler__custom-remove-control {
    width: 38px;
  }

  .photoshoot-styler__subfield .photoshoot-styler__remove-control {
    width: 38px;
  }

  .photoshoot-styler__range-wrap {
    width: 100%;
  }

  .photoshoot-outfit-mode {
    flex-wrap: wrap;
    gap: 8px;
  }

  .photoshoot-outfit-images__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photoshoot-color-picker__menu {
    width: max-content;
    max-width: calc(100vw - 24px);
  }

  .photoshoot-color-picker__grid {
    grid-template-columns: repeat(6, 30px);
  }

  .photoshoot-send {
    width: 100%;
    min-height: 42px;
  }

  .grok-command-bar__model {
    width: 100%;
  }

  .grok-command-bar__circle--model {
    width: 100%;
    justify-content: center;
  }

  .grok-command-bar__settings {
    margin-left: 0;
  }

  #grok-settings-menu {
    right: 0;
    left: auto;
    width: min(300px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.table__cell--muted {
  color: var(--muted);
}

.photoshoot-config-gui {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  text-align: left;
}

.photoshoot-config-gui__gap {
  grid-column: 1 / -1;
}

.photoshoot-config-gui__zones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.photoshoot-config-zone {
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
}

.photoshoot-config-zone__title {
  margin: 0 0 8px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09rem;
  color: #111;
}

.photoshoot-config-zone__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 76px;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.photoshoot-config-zone__row:last-child {
  margin-bottom: 0;
}

.photoshoot-config-zone__row span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06rem;
}

.photoshoot-config-zone__row input[type="range"] {
  padding: 0;
}

.photoshoot-config-preview {
  position: relative;
  height: 420px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: #ececec;
  overflow: hidden;
}

.photoshoot-config-preview__silhouette {
  position: absolute;
  inset: 0;
  background: url("/assets/brand/images/photoshoot-silhouette.webp") 16% top / 55% auto no-repeat;
  opacity: 0.85;
}

.photoshoot-config-preview__field {
  position: absolute;
  left: 56%;
  width: 40%;
  min-height: 28px;
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: #111;
  padding: 6px 8px;
  transform: translateY(-50%);
}

.photoshoot-config-preview__point {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #000;
  transform: translate(-50%, -50%);
}

@media (max-width: 960px) {
  .photoshoot-config-gui {
    grid-template-columns: 1fr;
  }

  .photoshoot-config-preview {
    height: 320px;
  }

  .photoshoot-config-zone__row {
    grid-template-columns: 1fr;
  }
}

.table__cell--api {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table__copy {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}

.table__copy .material-symbols-outlined {
  font-size: 1rem;
}

.table__cell--header {
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font-size: 0.8rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--muted);
}

.table__cell--header[data-sort-key] {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.table__cell--active {
  color: var(--text);
}

.table__cell--header[data-sort-key]::after {
  content: "";
  margin-left: 8px;
  font-size: 0.7rem;
  letter-spacing: 0;
  font-family: "Material Symbols Outlined";
  opacity: 0;
  transform: translateY(1px);
}

.table__cell--header[data-sort-direction='asc']::after {
  content: "arrow_upward";
  opacity: 1;
}

.table__cell--header[data-sort-direction='desc']::after {
  content: "arrow_downward";
  opacity: 1;
}

.table__divider {
  height: 1px;
  background-color: rgba(20, 20, 20, 0.2);
}

.table__pager {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.table__pager-button {
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  color: var(--text);
  padding: 6px 10px;
  cursor: pointer;
}

.table__pager-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.table__pager-info {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.global-uploads__pager {
  justify-content: center;
}

.global-uploads__pager-sticky {
  position: sticky;
  bottom: 12px;
  z-index: 6;
  margin-inline: auto;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(2px);
}

.global-uploads__pager-selector {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.global-uploads__pager-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.global-uploads__pager-select {
  min-width: 74px;
  padding: 5px 8px;
}

@media (max-width: 760px) {
  .global-uploads__pager {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .global-uploads__pager-sticky {
    width: 100%;
    justify-content: center;
  }
}

.table__row--api-usage.api-usage-row--new {
  animation: api-usage-new-flash 2s ease;
}

@keyframes api-usage-new-flash {
  0% {
    background-color: rgba(255, 235, 130, 0.65);
  }
  100% {
    background-color: transparent;
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 24px;
  padding-bottom: 120px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/brand/images/Wallpaper_2.webp");
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) contrast(1.05);
  opacity: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero__bg[data-parallax-ready="true"] {
  will-change: transform, opacity;
}

html.parallax-disabled .hero__bg[data-parallax] {
  transform: translate3d(0, 0, 0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg[data-parallax] {
    transform: translate3d(0, 0, 0) !important;
  }
}

.hero--loaded .hero__bg {
  animation: heroFade 2s ease-in-out forwards;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 1;
  pointer-events: none;
}

.hero__watermark {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0.85;
}

.hero__mark {
  width: min(70vw, 520px);
  max-width: 100%;
  height: auto;
  display: block;
}

.hero--login {
  justify-content: center;
  padding-bottom: 48px;
}

.hero__panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  width: min(90vw, 420px);
  padding: 32px;
  background-color: rgba(255, 255, 255, 0.7);
}

.login {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.login__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login__label {
  font-size: 0.9rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
}

.login__input {
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  padding: 12px 14px;
  font-size: 1rem;
  outline: none;
}

.login__password {
  position: relative;
  display: flex;
  align-items: center;
}

.login__password .login__input {
  width: 100%;
  padding-right: 46px;
}

.login__toggle {
  position: absolute;
  right: 10px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}

.login__toggle .material-symbols-outlined {
  font-size: 22px;
}

.login__input:focus {
  border-color: rgba(20, 20, 20, 0.9);
}
.login__submit {
  margin-top: 8px;
  min-height: 44px;
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: transparent;
  padding: 12px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}

.login__forgot {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04rem;
  text-transform: none;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  padding: 0;
  margin-top: -12px;
}

.login__register {
  min-height: 42px;
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  padding: 10px 12px;
}

.login__google {
  min-height: 42px;
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: rgba(20, 20, 20, 0.06);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login__google-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.login__forgot:hover {
  color: var(--text);
}

.login__register:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

.login__google:hover {
  background-color: rgba(20, 20, 20, 0.12);
}

.login__error {
  min-height: 0.6rem;
  font-size: 0.9rem;
  color: var(--danger);
  text-align: left;
}

.login__submit:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.hero__tagline {
  position: relative;
  z-index: 2;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__cta {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 66%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 46px;
  border: none;
  background: #ffffff;
  padding: 12px 20px;
  font-size: 0.9rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}

.hero__cta:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.hero__links {
  --hero-social-gap: clamp(6px, 2.4vw, 12px);
  --hero-social-hit-size: clamp(44px, 15vw, 72px);
  --hero-social-icon-size: clamp(34px, 11vw, 56px);
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: var(--hero-social-gap);
  flex-wrap: nowrap;
  justify-content: center;
  width: min(
    calc(var(--hero-social-hit-size) * 3 + var(--hero-social-gap) * 2),
    calc(100vw - 24px)
  );
  min-height: var(--hero-social-hit-size);
  z-index: 2;
  opacity: 0;
  visibility: hidden;
}

body.is-loading .hero__links {
  opacity: 0;
  visibility: hidden;
}

.hero--loaded .hero__links {
  visibility: visible;
  animation: heroFade 2s ease-in-out forwards;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hero-social-hit-size);
  height: var(--hero-social-hit-size);
  flex: 0 0 var(--hero-social-hit-size);
  border: none;
  background-color: transparent;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.hero__icon {
  width: var(--hero-social-icon-size);
  height: var(--hero-social-icon-size);
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0));
}

.hero--loaded .hero__links .hero__icon {
  animation: heroIconFade 2s ease-in-out forwards;
}

@keyframes heroFade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes heroIconFade {
  0% {
    opacity: 0;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0));
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
  }
}

.hero__icon--patreon {
  background-image: url("assets/icons/patreon.png");
}

.hero__icon--instagram {
  background-image: url("assets/icons/instagram.png");
}

.hero__icon--deviantart {
  background-image: url("assets/icons/deviantart.png");
}

.hero__link:hover {
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .hero__links {
    bottom: 14px;
  }

  .hero__cta {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .hero {
    overflow: hidden;
  }

  .hero__bg {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-position: 75% center;
  }
}

@media (max-width: 640px) {
  .hero__mark {
    width: min(78vw, 360px);
  }
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background-color: var(--sidebar-surface);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  gap: 24px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: visible;
}

body.settings-page .sidebar:not(.settings-sidebar) {
  display: none !important;
}

body.settings-page .dashboard__content {
  margin-left: var(--settings-sidebar-width) !important;
  transition: margin-left var(--sidebar-transition-duration) ease;
}

body.settings-page .settings-sidebar {
  position: fixed !important;
  left: 0 !important;
  width: var(--settings-sidebar-width) !important;
}

.settings-page .dashboard__grid {
  grid-template-columns: minmax(0, 1fr);
}

.providers-models__tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

#providers-models .table__row {
  grid-template-columns: minmax(180px, 1fr) minmax(200px, 1fr) minmax(220px, 1.35fr) 84px;
  align-items: center;
}

#tools-model-mapping .table__row {
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.45fr) 84px;
  align-items: center;
}

#models-catalog .table__row {
  grid-template-columns: minmax(140px, 0.85fr) minmax(170px, 1fr) minmax(220px, 1.25fr) 80px 84px;
  align-items: center;
}

@media (max-width: 900px) {
  #providers-models .table__row,
  #tools-model-mapping .table__row,
  #models-catalog .table__row {
    grid-template-columns: 1fr;
  }
}

.providers-models__icon-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.providers-models__icon-chip {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.providers-models__icon-chip .material-symbols-outlined,
.providers-models__icon-chip img {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 18px;
  object-fit: cover;
}

.providers-models__key-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.providers-models__mono {
  font-family: "Courier New", monospace;
  font-size: 0.79rem;
}

.providers-models__tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.42rem;
  border: 1px solid rgba(20, 20, 20, 0.2);
  font-size: 0.75rem;
}

.providers-models__tool-chip .material-symbols-outlined,
.providers-models__tool-chip img {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  object-fit: cover;
}

.providers-models__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.3rem 0.55rem;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.74rem;
}

.providers-models__toggle .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.providers-models__models-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.providers-models__models-list[hidden],
.providers-models__tool-list[hidden] {
  display: none;
}

.providers-models__model {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.providers-models__icon-drop {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px dashed rgba(20, 20, 20, 0.4);
  cursor: pointer;
}

.providers-models__icon-drop.is-dragover {
  background: rgba(20, 20, 20, 0.06);
}

.providers-models__icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.providers-models__model-fields {
  display: grid;
  gap: 0.3rem;
}

.providers-models__input {
  width: 100%;
  min-height: 34px;
  border-radius: 0;
}

.providers-models__save {
  min-width: 74px;
}

.providers-models__checkbox-list {
  max-height: 55vh;
  overflow: auto;
  padding-right: 0.2rem;
}

.providers-models__checkbox-group {
  border: 1px solid rgba(20, 20, 20, 0.16);
  margin-bottom: 0.5rem;
  background: #ffffff;
}

.providers-models__checkbox-group summary {
  list-style: none;
  cursor: pointer;
  padding: 0.45rem 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.providers-models__checkbox-group summary::-webkit-details-marker {
  display: none;
}

.providers-models__checkbox-group-list {
  display: grid;
  gap: 0.15rem;
  padding: 0.3rem 0.5rem 0.5rem;
}

.providers-models__checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.providers-models__checkbox-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.providers-models__checkbox-icon .material-symbols-outlined,
.providers-models__checkbox-icon img {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  object-fit: cover;
}

.providers-models__popup-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.providers-models__popup-meta-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.providers-models__popup-meta-value {
  color: var(--text);
}

.providers-models__popup-list {
  max-height: 52vh;
  overflow: auto;
  display: grid;
  gap: 0.35rem;
}

.providers-models__popup-row {
  display: grid;
  grid-template-columns: 34px minmax(110px, 0.9fr) minmax(0, 1.3fr);
  gap: 0.45rem;
  align-items: center;
  border: 1px solid rgba(20, 20, 20, 0.1);
  padding: 0.35rem;
}

.providers-models__popup-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.providers-models__popup-icon .material-symbols-outlined,
.providers-models__popup-icon img {
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
  object-fit: cover;
}

.providers-models__popup-model-id {
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

.providers-models__catalog-row .providers-models__icon-drop {
  width: 40px;
  height: 40px;
}

.providers-models__empty {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  .providers-models__model {
    grid-template-columns: 1fr;
  }

  .providers-models__save {
    width: 100%;
  }

  .providers-models__popup-row {
    grid-template-columns: 1fr;
  }
}

body.settings-account-page {
  background: linear-gradient(180deg, #f6f6f6 0%, #ffffff 42%, #f8f8f8 100%);
}

body.settings-account-page .dashboard__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

body.settings-account-page .home-topbar {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 60px;
  background: #141414;
  color: #ffffff;
  align-items: center;
  gap: 16px;
}

body.settings-account-page .home-topbar__drawer-toggle {
  color: #ffffff;
}

body.settings-account-page .home-topbar__drawer-toggle:hover,
body.settings-account-page .home-topbar__drawer-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

body.settings-account-page .home-topbar__drawer-toggle-icon,
body.settings-account-page .home-topbar__drawer-toggle-label {
  color: inherit;
}

body.settings-account-page .settings-account__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

body.settings-account-page .settings-account__logo {
  display: block;
  width: 200px;
  height: 50px;
}

body.settings-account-page .settings-account__topbar-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.settings-account-page .settings-account__topbar-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  color: var(--muted);
}

body.settings-account-page .settings-account__topbar-title {
  font-size: 0.98rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

body.settings-account-page .settings-account__hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

body.settings-account-page .settings-account__hero-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 820px;
}

body.settings-account-page .settings-account__hero-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.24rem;
  text-transform: uppercase;
  color: var(--muted);
}

body.settings-account-page .settings-account__hero-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

body.settings-account-page .settings-account__hero-subtitle {
  margin: 0;
  max-width: 58rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

body.settings-account-page .settings-account__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}

body.settings-account-page .settings-account-card {
  border: 0;
  background: #ffffff;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.06);
  min-width: 0;
}

body.settings-account-page .settings-account-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.settings-account-page .settings-account-card__header--stacked {
  flex-direction: column;
}

body.settings-account-page .settings-account-card__eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  color: var(--muted);
}

body.settings-account-page .settings-account-card__title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

body.settings-account-page .settings-account-card__hint {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

body.settings-account-page .settings-account-card__pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  background: #f2f2f2;
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
}

body.settings-account-page .settings-account-summary {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

body.settings-account-page .settings-account-summary__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

body.settings-account-page .settings-account-summary__label {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

body.settings-account-page .settings-account-summary__value {
  font-size: 0.92rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

body.settings-account-page .settings-account-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

body.settings-account-page .settings-account-card__actions--flush {
  justify-content: flex-start;
}

body.settings-account-page .settings-account-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

body.settings-account-page .settings-account-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

body.settings-account-page .settings-account-form__grid--password {
  grid-template-columns: minmax(0, 1fr);
}

body.settings-account-page .settings-account-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

body.settings-account-page .settings-account-field--full {
  grid-column: 1 / -1;
}

body.settings-account-page .settings-account-field__label {
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

body.settings-account-page .settings-account-field__control {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

body.settings-account-page .settings-account-field__input {
  flex: 1 1 auto;
  min-width: 0;
  background: #fafafa;
}

body.settings-account-page .settings-account-field.is-editing .settings-account-field__input {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.18);
}

body.settings-account-page .settings-account-field__edit {
  width: 44px;
  flex: 0 0 44px;
  border: 0;
  background: #f0f0f0;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.settings-account-page .settings-account-field__edit:hover,
body.settings-account-page .settings-account-field__edit:focus-visible {
  background: #e6e6e6;
}

body.settings-account-page .settings-account-password__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

body.settings-account-page .settings-account-password__mask {
  font-size: 1.05rem;
  letter-spacing: 0.28rem;
}

body.settings-account-page .settings-account-password__label {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

body.settings-account-page .settings-account-password__form {
  margin-top: 18px;
}

@media (max-width: 900px) {
  body.settings-account-page .settings-account__hero {
    align-items: flex-start;
    flex-direction: column;
  }

  body.settings-account-page .settings-account-form__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  body.settings-account-page .dashboard__content {
    gap: 18px;
  }

  body.settings-account-page .settings-account-card {
    padding: 20px;
  }

  body.settings-account-page .settings-account__logo {
    width: 170px;
    height: 42px;
  }

  body.settings-account-page .settings-account-card__actions {
    justify-content: flex-start;
  }
}

.settings-sidebar {
  left: 0;
  width: var(--settings-sidebar-width);
  background-color: var(--sidebar-surface-alt);
  border-left: 1px solid var(--sidebar-border);
  padding: 24px 16px;
  gap: 20px;
  transition: left var(--sidebar-transition-duration) ease;
}

.settings-sidebar .sidebar__nav {
  gap: 2px;
}

/* ── Settings sidebar tree menu ───────────────────────────── */

.settings-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
}

.settings-sidebar__return {
  margin-top: auto;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  padding-top: 12px;
  margin-bottom: 0;
}

/* Group wrapper */
.settings-sidebar__group {
  display: flex;
  flex-direction: column;
}

/* Toggle button (parent item with children) */
.settings-sidebar__toggle {
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  padding-right: 8px;
  position: relative;
}

.settings-sidebar__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-sidebar__chevron {
  font-size: 18px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.settings-sidebar__toggle[aria-expanded="true"] .settings-sidebar__chevron {
  transform: rotate(180deg);
}

/* Submenu */
.settings-sidebar__submenu {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 32px;
  overflow: hidden;
}

.settings-sidebar__group.is-open .settings-sidebar__submenu {
  display: flex;
}

/* Sublink */
.settings-sidebar__sublink {
  display: block;
  padding: 7px 10px 7px 12px;
  font-size: 0.78rem;
  letter-spacing: 0.06rem;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-sidebar__sublink:hover {
  color: var(--text);
  background: rgba(20, 20, 20, 0.05);
}

.settings-sidebar__sublink.is-active {
  color: var(--text);
  border-left-color: var(--text);
  font-weight: 500;
  background: rgba(20, 20, 20, 0.05);
}

/* Leaf link label */
a.settings-sidebar__link .settings-sidebar__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Active parent group highlight */
.settings-sidebar__group.is-open > .settings-sidebar__toggle {
  color: var(--text);
  font-weight: 600;
}

.settings-sidebar__header {
  gap: 8px;
}

.sidebar__nav {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
  padding-bottom: 8px;
}

.sidebar__nav::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.sidebar__footer {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  flex-shrink: 0;
  gap: 8px;
  padding-top: 8px;
  background-color: var(--sidebar-surface);
  position: sticky;
  bottom: 0;
  z-index: 8;
}

.sidebar__nav > a[href="/admin/content/create"],
.sidebar__nav > a[href="/admin/settings"] {
  position: sticky;
  z-index: 2;
  background-color: var(--sidebar-surface);
}

.sidebar__nav > a[href="/admin/content/create"] {
  bottom: 44px;
}

.sidebar__nav > a[href="/admin/settings"] {
  bottom: 0;
}

.dashboard .sidebar__nav [data-collapse="landing"],
.dashboard .sidebar__nav [data-collapse-target="landing"] {
  display: none;
}

.sidebar__profile {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  flex-shrink: 0;
  gap: 8px;
  position: sticky;
  bottom: 0;
  z-index: 9;
}

.profile {
  border: none;
  background: transparent;
  padding: 8px 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
}

.profile__avatar {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  overflow: visible;
  flex-shrink: 0;
}

.profile__avatar .material-symbols-outlined {
  font-size: 1.2rem;
}

.profile__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: none;
  z-index: 1;
}

.profile__status {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background-color: #2f9e44;
  z-index: 2;
}

.profile__status[data-status='busy'] {
  background-color: #c1121f;
}

.profile__status[data-status='away'],
.profile__status[data-status='absent'] {
  background-color: #f59f00;
}

.profile__status-group,
.profile__option[data-profile-status],
.profile__option[data-profile-action='status-toggle'] {
  display: none !important;
}

.sidebar__link[href='/admin/status'] {
  display: none !important;
}

.profile__level {
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  transform: translateX(-50%);
  font-size: 0.55rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.profile__name {
  flex: 1;
  min-width: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.profile__chevron {
  margin-left: auto;
  font-size: 1rem;
  font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 20;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.profile.is-open .profile__chevron {
  transform: rotate(180deg);
}

.profile__menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  background-color: var(--sidebar-surface);
  border: 1px solid rgba(20, 20, 20, 0.15);
  box-sizing: border-box;
  z-index: 5;
}

.profile__menu.is-open {
  display: flex;
}

.profile-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-edit-top-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(20, 20, 20, 0.34);
  background: transparent;
  color: rgba(20, 20, 20, 0.9);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1;
  padding: 5px 8px;
  min-height: 24px;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.profile-header:hover .profile-edit-top-button,
.profile-edit-top-button:focus-visible {
  border-color: rgba(20, 20, 20, 0.3);
  background: #ffffff;
  color: #141414;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  outline: none;
}

.profile-edit-top-button .material-symbols-outlined {
  font-size: 13px;
  color: inherit;
}

.profile-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 -40px 0;
  padding: 24px 40px;
  overflow: hidden;
  background: #d6d6d6;
}

.profile-topbar + .profile-header {
  margin-top: 0;
}

.profile-header__banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.profile-header__banner.is-inline-editable-media {
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
}

.profile-header__banner.is-inline-editable-media::before,
.profile-header__avatar.is-inline-editable-media::before {
  content: "edit";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Material Symbols Outlined";
  font-size: 18px;
  line-height: 1;
  color: #ffffff;
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 3;
}

.profile-header__banner.is-inline-editable-media::after,
.profile-header__avatar.is-inline-editable-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.2);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
  z-index: 2;
}

.profile-header__banner.is-inline-editable-media:hover::before,
.profile-header__banner.is-inline-editable-media:focus-visible::before,
.profile-header__avatar.is-inline-editable-media:hover::before,
.profile-header__avatar.is-inline-editable-media:focus-visible::before,
.profile-header__banner.is-inline-editable-media:hover::after,
.profile-header__banner.is-inline-editable-media:focus-visible::after,
.profile-header__avatar.is-inline-editable-media:hover::after,
.profile-header__avatar.is-inline-editable-media:focus-visible::after {
  opacity: 1;
}

.profile-header__banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
}

.profile-header > *:not(.profile-header__banner):not(.profile-header__meta):not(.profile-header__achievements-corner) {
  position: relative;
  z-index: 1;
}

.profile-header__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin-left: 0;
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
}

.profile-header__achievements-corner {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 2;
}

.profile-header__meta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.profile-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  background: #ffffff;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.75rem;
}

.profile-meta-pill__label {
  color: rgba(20, 20, 20, 0.6);
}

.profile-meta-pill__value {
  color: #141414;
  font-weight: 600;
}

.profile-meta-pill--achievements {
  min-width: 70px;
  justify-content: center;
}

.profile-meta-pill__icon {
  font-size: 1rem;
  line-height: 1;
}

.profile-header__identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-right: 152px;
}

.pricing-page,
.credits-page {
  width: min(1200px, calc(100vw - 48px));
  margin: 24px auto;
}

.credits-page .panel__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-page__plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-page__plan {
  min-height: 100%;
  border: 0;
  border-radius: 24px;
  background-color: #1b1b1b;
  box-shadow: none;
  overflow: hidden;
  color: #ffffff;
}

.pricing-page__plan .panel__header,
.pricing-page__plan .panel__body {
  background: transparent;
}

.pricing-page__plan .panel__header {
  justify-content: center;
}

.pricing-page__plan-hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pricing-page__plan-icon {
  font-size: 2rem;
  color: #ffffff;
}

.pricing-page__plan .panel__title {
  width: 100%;
  text-align: center;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  letter-spacing: 0.04rem;
  font-weight: 700;
  text-transform: none;
}

.pricing-page__plan .panel__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-page__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pricing-page__list > li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  min-height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-page__list > li.pricing-page__tier-credits {
  justify-content: center;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.06);
  padding-left: 8px;
  padding-right: 8px;
  gap: 8px;
}

.pricing-page__list > li.pricing-page__tier-credits .pricing-page__feature-icon {
  font-size: 1.2rem;
}

.pricing-page__list > li.pricing-page__tier-credits .pricing-page__feature-text {
  flex: 0 0 auto;
  text-align: center;
}

.pricing-page__feature-icon {
  font-size: 1.1rem;
  color: #ffffff;
  flex: 0 0 auto;
}

.pricing-page__feature-text {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.28;
  font-size: clamp(0.72rem, 0.62rem + 0.24vw, 0.82rem);
  text-wrap: balance;
}

.pricing-page__plan .panel__title,
.pricing-page__plan .pricing-page__feature-text,
.pricing-page__plan .pricing-page__price {
  color: #ffffff;
}

.pricing-page__feature-status {
  margin-left: auto;
  font-size: 1rem;
  line-height: 1;
  flex: 0 0 auto;
}

.pricing-page__feature-status.is-available {
  visibility: hidden;
}

.pricing-page__feature-status.is-unavailable {
  color: rgba(255, 255, 255, 0.45);
}

.pricing-page__list li.is-unavailable {
  opacity: 0.45;
}

.pricing-page__list > li.pricing-page__feature-group {
  padding-top: 8px;
  min-height: 40px;
  font-weight: 400;
}

.pricing-page__list > li.pricing-page__feature-group[data-model-toggle] {
  cursor: pointer;
}

.pricing-page__list > li.pricing-page__feature-group .material-symbols-outlined {
  font-size: 1.15rem;
}

.pricing-page__list > li.pricing-page__feature-models {
  border-bottom: 0;
  padding-top: 0;
  padding-bottom: 2px;
  padding-left: 18px;
  display: block;
}

.pricing-page__models-toggle {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  min-height: 32px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0.01rem;
  font-size: clamp(0.7rem, 0.62rem + 0.18vw, 0.78rem);
  font-weight: 600;
  color: #141414;
}

.pricing-page__models-toggle-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.pricing-page__models-toggle-icon {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 1rem;
}

.pricing-page__models-list {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.pricing-page__model-item {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 20px;
  font-size: clamp(0.68rem, 0.6rem + 0.16vw, 0.74rem);
  line-height: 1.18;
  border-bottom: 0;
  padding: 0;
}

.pricing-page__model-item .pricing-page__feature-icon {
  font-size: 0.82rem;
}

.pricing-page__model-item span:not(.material-symbols-outlined) {
  flex: 1 1 auto;
  min-width: 0;
  text-wrap: balance;
}

.pricing-page__model-item .pricing-page__feature-status {
  margin-left: auto;
  font-size: 0.8rem;
}

.pricing-page__model-item .pricing-page__feature-status.is-available {
  visibility: visible;
  color: #1f8f3a;
}

.pricing-page__model-item.is-unavailable {
  opacity: 0.45;
}

.pricing-page__plan-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-page__price {
  margin: 0;
  text-align: center;
  font-size: 2.15rem;
  line-height: 1;
  letter-spacing: 0.08rem;
  font-weight: 400;
}

.pricing-page__subscribe {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid #141414;
  background: #141414;
  color: #ffffff;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.02rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.pricing-page__subscribe:hover,
.pricing-page__subscribe:focus-visible {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

body.model-benefits-page {
  background: #ffffff;
}

.model-benefits-page .dashboard__content {
  margin-left: 0;
  padding: 0 40px 40px;
}

.model-benefits-page .dashboard__content > .home-topbar {
  margin-top: 0;
}

.model-benefits-page__content {
  min-height: 100vh;
}

.model-benefits-page__topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: calc(100% + 80px);
  margin-left: -40px;
  margin-right: -40px;
  pointer-events: auto;
  z-index: 70;
}

body.home-page[data-page-key="clone-creation"] {
  margin: 0;
}

body.home-page[data-page-key="clone-creation"]:not(.home-editor) .dashboard__content.model-benefits-page__content {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.home-page[data-page-key="clone-creation"]:not(.home-editor) .model-benefits-page__topbar,
body.home-page[data-page-key="clone-creation"]:not(.home-editor) .model-benefits-page__masthead {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.model-benefits-page__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.model-benefits-page__menu-toggle {
  z-index: 72;
}

.model-benefits-page__topbar-menu {
  position: absolute;
  left: 12px;
  top: calc(100% + 6px);
  min-width: 230px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  z-index: 71;
}

.model-benefits-page__topbar-menu[hidden] {
  display: none;
}

.model-benefits-page__topbar-menu-link {
  display: block;
  padding: 10px 12px;
  color: #141414;
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  font-size: 0.74rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  line-height: 1.2;
}

.model-benefits-page__topbar-menu-link:last-child {
  border-bottom: 0;
}

.model-benefits-page__topbar-menu-link:hover,
.model-benefits-page__topbar-menu-link:focus-visible {
  background: rgba(20, 20, 20, 0.06);
}

.model-benefits-page__wrapper {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 18px;
}

.model-benefits-page__card {
  min-height: auto;
  padding: 20px 22px;
  border: 0;
  background: transparent;
}

.model-benefits-page__masthead {
  width: calc(100% + 80px);
  margin-left: -40px;
  margin-right: -40px;
  margin-top: 0;
  margin-bottom: 18px;
}

.model-benefits-page__hero-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 32 / 5;
  min-height: 126px;
  max-height: 220px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(252, 249, 248, 0.88) 100%),
    linear-gradient(110deg, #d8d1d1 0%, #f4f0ef 28%, #c7bec0 56%, #efe9e7 100%);
  border: 0;
}

.model-benefits-page__hero-content {
  width: 100%;
  padding: 0 22px 14px 52px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.model-benefits-page__hero-content .panel__title {
  text-align: left;
  font-size: clamp(1.9rem, 1.4rem + 1.35vw, 2.7rem);
  letter-spacing: 0.06rem;
}

.model-benefits-page__subtitle {
  margin: 4px 0 0;
  text-align: left;
  color: rgba(20, 20, 20, 0.72);
  font-size: clamp(0.84rem, 0.74rem + 0.28vw, 0.96rem);
  line-height: 1.4;
}

.model-benefits-page__card .pricing-page__list.model-benefits-page__list--grid > li {
  padding-top: 0;
  padding-bottom: 0;
}

.model-benefits-page__list {
  gap: 0;
}

.model-benefits-page__list.model-benefits-page__list--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.model-benefits-page__list > li.model-benefits-page__item {
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.16);
  padding: 0;
  min-height: 0;
  display: block;
}

.model-benefits-page__list.model-benefits-page__list--grid > li.model-benefits-page__item {
  border: 0;
  min-height: 182px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  background: transparent;
}

.model-benefits-page__benefit-card {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(20, 20, 20, 0.18);
  background:
    linear-gradient(180deg, rgba(252, 249, 248, 0.96) 0%, rgba(246, 242, 241, 0.96) 100%),
    #fcf9f8;
  padding: 13px 14px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
}

.model-benefits-page__benefit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.model-benefits-page__benefit-head .pricing-page__feature-icon {
  font-size: 20px;
}

.model-benefits-page__benefit-title {
  margin: 0;
  font-size: clamp(0.9rem, 0.78rem + 0.28vw, 1.02rem);
  line-height: 1.28;
  letter-spacing: 0.02rem;
  color: #141414;
  text-wrap: balance;
}

.model-benefits-page__benefit-description {
  margin: 0;
  font-size: clamp(0.75rem, 0.66rem + 0.2vw, 0.84rem);
  line-height: 1.42;
  color: rgba(20, 20, 20, 0.82);
  text-wrap: pretty;
}

.model-benefits-page__card .pricing-page__feature-status.is-available {
  visibility: visible;
  color: #1f8f3a;
}

.model-benefits-page__footer {
  border-top-color: rgba(20, 20, 20, 0.18);
}

.model-benefits-page__wizard-step {
  margin-top: 12px;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
  padding-top: 14px;
  min-height: 214px;
  will-change: transform, opacity;
}

.model-benefits-page__footer[data-benefits-main-flow] {
  will-change: transform, opacity;
}

.model-benefits-page__wizard-step.model-benefits-page__wizard-pane-leave-left,
.model-benefits-page__footer[data-benefits-main-flow].model-benefits-page__wizard-pane-leave-left {
  animation: modelBenefitsWizardLeaveLeft 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: none;
}

.model-benefits-page__wizard-step.model-benefits-page__wizard-pane-leave-right,
.model-benefits-page__footer[data-benefits-main-flow].model-benefits-page__wizard-pane-leave-right {
  animation: modelBenefitsWizardLeaveRight 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: none;
}

.model-benefits-page__wizard-step.model-benefits-page__wizard-pane-enter-left,
.model-benefits-page__footer[data-benefits-main-flow].model-benefits-page__wizard-pane-enter-left {
  animation: modelBenefitsWizardEnterLeft 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.model-benefits-page__wizard-step.model-benefits-page__wizard-pane-enter-right,
.model-benefits-page__footer[data-benefits-main-flow].model-benefits-page__wizard-pane-enter-right {
  animation: modelBenefitsWizardEnterRight 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modelBenefitsWizardLeaveLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-22px);
  }
}

@keyframes modelBenefitsWizardEnterRight {
  from {
    opacity: 0;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modelBenefitsWizardLeaveRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(22px);
  }
}

@keyframes modelBenefitsWizardEnterLeft {
  from {
    opacity: 0;
    transform: translateX(-22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-benefits-page__wizard-step.model-benefits-page__wizard-pane-leave-left,
  .model-benefits-page__footer[data-benefits-main-flow].model-benefits-page__wizard-pane-leave-left,
  .model-benefits-page__wizard-step.model-benefits-page__wizard-pane-leave-right,
  .model-benefits-page__footer[data-benefits-main-flow].model-benefits-page__wizard-pane-leave-right,
  .model-benefits-page__wizard-step.model-benefits-page__wizard-pane-enter-left,
  .model-benefits-page__footer[data-benefits-main-flow].model-benefits-page__wizard-pane-enter-left,
  .model-benefits-page__wizard-step.model-benefits-page__wizard-pane-enter-right,
  .model-benefits-page__footer[data-benefits-main-flow].model-benefits-page__wizard-pane-enter-right {
    animation: none;
  }
}

.model-benefits-page__authorization {
  margin-top: 12px;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
  padding-top: 14px;
}

.model-benefits-page__authorization-header {
  margin: 0;
}

.model-benefits-page__authorization-title {
  margin: 0;
  font-size: clamp(0.86rem, 0.76rem + 0.28vw, 1rem);
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.model-benefits-page__authorization-description {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: rgba(20, 20, 20, 0.74);
  line-height: 1.4;
  text-wrap: pretty;
}

.model-benefits-page__wizard-step[data-benefits-wizard-step="intro"]
  .model-benefits-page__authorization-description {
  text-align: justify;
  text-align-last: left;
}

.model-benefits-page__authorization-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.model-benefits-page__authorization-field {
  display: grid;
  gap: 4px;
  font-size: 0.74rem;
  color: rgba(20, 20, 20, 0.78);
}

.model-benefits-page__authorization-field--full {
  grid-column: 1 / -1;
}

.model-benefits-page__authorization-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(20, 20, 20, 0.28);
  background: #ffffff;
  color: #141414;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
  padding: 7px 9px;
}

.model-benefits-page__authorization-select {
  cursor: pointer;
}

.model-benefits-page__authorization-select:invalid {
  color: rgba(20, 20, 20, 0.58);
}

.model-benefits-page__authorization-select option {
  color: #141414;
}

.model-benefits-page__authorization-input:focus-visible {
  outline: 1px solid #141414;
  outline-offset: 1px;
}

.model-benefits-page__authorization-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  grid-column: 1 / -1;
}

.model-benefits-page__authorization-review {
  min-height: 28px;
  height: 28px;
  padding: 3px 10px;
  font-size: 0.72rem;
  line-height: 1.1;
  min-width: 118px;
  justify-content: center;
  text-align: center;
}

.model-benefits-page__authorization-review--dark,
.model-benefits-page__authorization-review--dark.model-benefits-page__cta.model-benefits-page__cta--secondary {
  background: #141414;
  border-color: #141414;
  color: #ffffff;
}

.model-benefits-page__authorization-review--dark .model-benefits-page__authorization-review-arrow,
.model-benefits-page__authorization-review--dark .model-benefits-page__cta-main {
  color: #ffffff;
}

.model-benefits-page__authorization-review--dark:hover,
.model-benefits-page__authorization-review--dark:focus-visible,
.model-benefits-page__authorization-review--dark.model-benefits-page__cta.model-benefits-page__cta--secondary:hover,
.model-benefits-page__authorization-review--dark.model-benefits-page__cta.model-benefits-page__cta--secondary:focus-visible {
  background: #000000;
  border-color: #000000;
}

.model-benefits-page__authorization-review-main {
  gap: 5px;
  width: 100%;
  justify-content: center;
}

.model-benefits-page__authorization-review-arrow {
  font-size: 15px;
  line-height: 1;
}

.model-benefits-page__authorization-feedback {
  margin: 2px 0 0;
  font-size: 0.78rem;
  line-height: 1.32;
  color: rgba(20, 20, 20, 0.74);
  grid-column: 1 / -1;
}

.model-benefits-page__authorization-feedback[data-status="success"] {
  color: #1f8f3a;
}

.model-benefits-page__authorization-feedback[data-status="error"] {
  color: #a12d22;
}

.model-benefits-page__wizard-choice-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.model-benefits-page__wizard-choice-actions .model-benefits-page__cta {
  justify-content: center;
  text-align: center;
}

.model-benefits-page__wizard-step[data-benefits-wizard-step="form-check"],
.model-benefits-page__wizard-step[data-benefits-wizard-step="authorization"] {
  display: flex;
  flex-direction: column;
}

.model-benefits-page__wizard-nav {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: flex-start;
}

.model-benefits-page__wizard-nav--main {
  margin-top: 10px;
  padding-top: 2px;
}

.model-benefits-page__step-back {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(20, 20, 20, 0.64);
  text-decoration: none;
  font: inherit;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.model-benefits-page__step-back > span:not(.material-symbols-outlined) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.model-benefits-page__step-back .material-symbols-outlined {
  font-size: 14px;
  line-height: 1;
}

.model-benefits-page__step-back:hover,
.model-benefits-page__step-back:focus-visible {
  color: #141414;
}

.model-benefits-page__actions-title {
  margin: 0;
  font-size: clamp(0.86rem, 0.76rem + 0.28vw, 1rem);
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.model-benefits-page__actions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.model-benefits-page__status-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(20, 20, 20, 0.62);
  text-decoration: underline;
  text-underline-offset: 2px;
  font: inherit;
  font-size: 0.76rem;
  line-height: 1.2;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

.model-benefits-page__status-link:hover,
.model-benefits-page__status-link:focus-visible {
  color: rgba(20, 20, 20, 0.9);
}

.model-benefits-page__process-hint {
  margin: 8px 0 0;
  text-align: center;
  color: rgba(20, 20, 20, 0.74);
  font-size: 0.82rem;
}

.model-benefits-page__process-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.model-benefits-page__process-item {
  margin: 0;
  padding: 0;
}

.model-benefits-page__cta {
  min-height: 30px;
  height: 30px;
  text-transform: none;
  letter-spacing: 0.02rem;
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 4px 10px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 400;
}

.model-benefits-page__process-item > .model-benefits-page__cta {
  min-height: 56px;
  height: auto;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(112px, max-content);
  align-items: center;
  column-gap: 10px;
}

.model-benefits-page__process-item > .model-benefits-page__cta .model-benefits-page__cta-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.model-benefits-page__process-item > .model-benefits-page__cta .model-benefits-page__cta-main > span:last-child {
  min-width: 0;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.model-benefits-page__process-item > .model-benefits-page__cta .model-benefits-page__step-status {
  justify-self: end;
  justify-content: flex-end;
  min-width: 112px;
  flex-shrink: 0;
}

.model-benefits-page__cta-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-family: inherit;
  font-weight: 400;
}

.model-benefits-page__cta-icon {
  font-size: 18px;
  color: #141414;
  flex-shrink: 0;
}

.model-benefits-page__cta.model-benefits-page__cta--secondary {
  background: #ffffff;
  color: #141414;
  border-color: rgba(20, 20, 20, 0.5);
}

.model-benefits-page__cta.model-benefits-page__cta--secondary:hover,
.model-benefits-page__cta.model-benefits-page__cta--secondary:focus-visible {
  background: rgba(20, 20, 20, 0.06);
  border-color: #141414;
}

.model-benefits-page__cta[data-state="start"] {
  background: #ffffff;
  color: #141414;
  border-color: rgba(20, 20, 20, 0.5);
}

.model-benefits-page__cta[data-state="in-progress"] {
  background: rgba(255, 193, 7, 0.5);
  color: #141414;
  border-color: rgba(255, 193, 7, 0.5);
}

.model-benefits-page__cta[data-state="in-progress"][disabled],
.model-benefits-page__cta[data-state="in-progress"][aria-disabled="true"] {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.9;
}

.model-benefits-page__cta[data-state="locked"] {
  background: rgba(20, 20, 20, 0.12);
  color: rgba(20, 20, 20, 0.62);
  border-color: rgba(20, 20, 20, 0.2);
}

.model-benefits-page__cta[data-state="locked"][disabled],
.model-benefits-page__cta[data-state="locked"][aria-disabled="true"] {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 1;
}

.model-benefits-page__cta[data-state="completed"][disabled],
.model-benefits-page__cta[data-state="completed"][aria-disabled="true"] {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.9;
}

.model-benefits-page__cta[data-state="completed"] {
  background: rgba(31, 143, 58, 0.5);
  color: #141414;
  border-color: rgba(31, 143, 58, 0.5);
}

.model-benefits-page__cta[data-state="rejected"] {
  background: rgba(192, 57, 43, 0.24);
  color: #141414;
  border-color: rgba(192, 57, 43, 0.34);
}

.model-benefits-page__cta[data-state="in-progress"] .model-benefits-page__cta-icon,
.model-benefits-page__cta[data-state="completed"] .model-benefits-page__cta-icon,
.model-benefits-page__cta[data-state="rejected"] .model-benefits-page__cta-icon,
.model-benefits-page__cta[data-state="locked"] .model-benefits-page__cta-icon,
.model-benefits-page__cta[data-state="in-progress"] .model-benefits-page__step-status,
.model-benefits-page__cta[data-state="completed"] .model-benefits-page__step-status,
.model-benefits-page__cta[data-state="rejected"] .model-benefits-page__step-status,
.model-benefits-page__cta[data-state="locked"] .model-benefits-page__step-status {
  color: #141414;
}

.model-benefits-page__cta[data-state="in-progress"]:hover,
.model-benefits-page__cta[data-state="in-progress"]:focus-visible {
  background: rgba(255, 193, 7, 0.5);
  border-color: rgba(255, 193, 7, 0.5);
}

.model-benefits-page__cta[data-state="completed"]:hover,
.model-benefits-page__cta[data-state="completed"]:focus-visible {
  background: rgba(27, 127, 52, 0.5);
  border-color: rgba(27, 127, 52, 0.5);
}

.model-benefits-page__cta[data-state="rejected"]:hover,
.model-benefits-page__cta[data-state="rejected"]:focus-visible {
  background: rgba(173, 49, 37, 0.34);
  border-color: rgba(173, 49, 37, 0.42);
}

.model-benefits-page__step-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
  color: rgba(20, 20, 20, 0.7);
  white-space: nowrap;
  font-family: inherit;
  font-weight: 400;
}

.model-benefits-page__step-status-label {
  display: inline-block;
}

.model-benefits-page__step-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
}

.model-benefits-page__step-status-icon svg {
  display: block;
  width: 21px;
  height: 21px;
}

.model-benefits-page__step-status[data-state="completed"] {
  color: #141414;
}

.model-benefits-page__step-status[data-state="in-progress"] {
  color: #141414;
}

.model-benefits-page__step-status[data-state="rejected"] {
  color: #141414;
}

.model-benefits-page__status-actions {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.model-benefits-page__activation-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
}

.model-benefits-page__activation-ready-message {
  margin: 10px 0 6px;
  text-align: center;
}

.model-benefits-page__activation-ready-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #141414;
}

.model-benefits-page__activation-ready-copy {
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: rgba(20, 20, 20, 0.82);
}

.model-benefits-page__main-flow--activation-ready .model-benefits-page__actions-header,
.model-benefits-page__main-flow--activation-ready .model-benefits-page__process-list {
  display: none;
}

.model-benefits-page__main-flow--activation-ready .model-benefits-page__activation-actions {
  margin-top: 8px;
}

.model-benefits-page__cta[data-benefits-action="send-dni"] .model-benefits-page__cta-main [data-i18n="profile.creator.actionSendDni"] {
  font-size: 0.72rem;
  letter-spacing: 0.01rem;
  white-space: nowrap;
}

.model-benefits-page__cta[data-benefits-action="activate-model-account"] {
  width: 100%;
  min-height: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  text-align: left;
}

.model-benefits-page__activation-main {
  justify-content: flex-start;
  text-align: left;
}

.model-benefits-page__activation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.model-benefits-page__activation-meta {
  position: static;
  transform: none;
}

.model-benefits-page__activation-progress-track {
  width: 100%;
  height: 7px;
  background: rgba(20, 20, 20, 0.16);
  overflow: hidden;
  display: block;
}

.model-benefits-page__activation-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: #9a9a9a;
  transition: width 0.24s ease, background-color 0.24s ease;
}

.model-benefits-page__activation-progress-fill[data-state="start"] {
  background: #9a9a9a;
}

.model-benefits-page__activation-progress-fill[data-state="in-progress"] {
  background: #ff9800;
}

.model-benefits-page__activation-progress-fill[data-state="completed"] {
  background: #1f9d55;
}

.model-benefits-page__activation-waiting-note {
  font-size: 0.7rem;
  line-height: 1.45;
  color: rgba(20, 20, 20, 0.72);
}

.model-benefits-page__cta[data-benefits-action="activate-model-account"].model-benefits-page__cta--activation-ready,
.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="ready"] {
  position: relative;
  border: 1px solid #242424;
  background: linear-gradient(152deg, #050505 0%, #101010 48%, #1d1d1d 100%);
  color: #f3f3f3;
  padding: 11px 16px;
  overflow: hidden;
  border-radius: 999px;
}

.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="ready"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    110deg,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0) 44px,
    rgba(232, 232, 232, 0.22) 58px,
    rgba(255, 255, 255, 0.56) 70px,
    rgba(232, 232, 232, 0.22) 82px,
    rgba(255, 255, 255, 0) 96px,
    rgba(255, 255, 255, 0) 164px
  );
  background-size: 214px 100%;
  background-position: 0 0;
  pointer-events: none;
  opacity: 1;
  transform: scale(1.12);
  animation: modelBenefitsActivationSilverSweep 4.4s linear infinite;
}

.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="ready"] .model-benefits-page__activation-top {
  justify-content: center;
  position: relative;
}

.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="ready"] .model-benefits-page__cta-main {
  position: relative;
  z-index: 1;
  width: 100%;
  justify-content: center;
  text-align: center;
  padding-right: 26px;
}

.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="ready"] .model-benefits-page__cta-icon,
.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="ready"] [data-activate-label] {
  background-image: repeating-linear-gradient(
    90deg,
    #ffffff 0px,
    #ffffff 82px,
    #d1d1d1 108px,
    #ffffff 136px,
    #ffffff 220px
  );
  background-size: 276px 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: modelBenefitsActivationSilverText 4.4s linear infinite;
}

.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="ready"] .model-benefits-page__activation-progress-track,
.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="ready"] [data-activate-progress],
.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="ready"] [data-activate-note] {
  display: none !important;
}

.model-benefits-page__activation-ready-arrow {
  font-size: 18px;
  color: #f3f3f3;
}

.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="ready"] .model-benefits-page__activation-ready-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.model-benefits-page__activation-ready-arrow.is-active {
  animation: modelBenefitsActivationReadyArrow 1.85s ease-in-out infinite;
}

.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="ready"]:hover,
.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="ready"]:focus-visible {
  background: linear-gradient(152deg, #050505 0%, #101010 48%, #1d1d1d 100%);
  border-color: #242424;
}

.model-benefits-page__activate-arrow {
  font-size: 18px;
  color: #141414;
}

.model-benefits-page__activate-arrow.is-active {
  animation: modelBenefitsArrowSlide 1.1s ease-in-out infinite;
}

@keyframes modelBenefitsArrowSlide {
  0% {
    transform: translateX(0);
    opacity: 0.55;
  }
  50% {
    transform: translateX(7px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0.55;
  }
}

.model-benefits-page__cta[data-benefits-action="activate-model-account"][aria-disabled="true"] {
  opacity: 1;
  cursor: not-allowed;
}

.model-benefits-page__cta[data-benefits-action="activate-model-account"],
.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="start"],
.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="in-progress"],
.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="completed"],
.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="waiting-review"],
.model-benefits-page__cta[data-benefits-action="activate-model-account"][data-state="rejected"],
.model-benefits-page__cta[data-benefits-action="activate-model-account"]:hover,
.model-benefits-page__cta[data-benefits-action="activate-model-account"]:focus-visible {
  background: transparent;
  border-color: transparent;
}

@keyframes modelBenefitsActivationSilverText {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 276px 0;
  }
}

@keyframes modelBenefitsActivationSilverSweep {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 214px 0;
  }
}

@keyframes modelBenefitsActivationReadyArrow {
  0% {
    transform: translateY(-50%) translateX(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-50%) translateX(5px);
    opacity: 1;
  }
  100% {
    transform: translateY(-50%) translateX(0);
    opacity: 0.55;
  }
}

.model-benefits-page__footer[data-benefits-main-flow] {
  transition: opacity 0.24s ease, transform 0.24s ease;
  min-height: 250px;
}

.model-benefits-page__footer[data-benefits-main-flow].is-fading-out {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.model-benefits-page__wrapper.is-onboarding-active .model-benefits-page__card > .panel__header,
.model-benefits-page__wrapper.is-onboarding-active .model-benefits-page__list {
  display: none;
}

.model-benefits-page__wrapper.is-onboarding-active .model-benefits-page__card {
  border: 0;
  background: transparent;
  padding: 0;
}

.model-benefits-page__onboarding {
  margin-top: 12px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  padding: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.model-benefits-page__onboarding[hidden] {
  display: none;
}

.model-benefits-page__onboarding.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.model-benefits-page__onboarding-header {
  display: grid;
  gap: 6px;
}

.model-benefits-page__onboarding-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.model-benefits-page__onboarding-kicker {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.7);
}

.model-benefits-page__onboarding-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.25;
}

.model-benefits-page__onboarding-subtitle {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(20, 20, 20, 0.74);
}

.model-benefits-page__onboarding-progress {
  position: relative;
  margin-top: 2px;
  width: 100%;
  height: 6px;
  background: rgba(20, 20, 20, 0.14);
  overflow: hidden;
}

.model-benefits-page__onboarding-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: #141414;
  transition: width 0.2s ease;
}

.model-benefits-page__onboarding-step-indicator {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  color: rgba(20, 20, 20, 0.68);
  white-space: nowrap;
  text-align: right;
}

.model-benefits-page__onboarding-body {
  margin-top: 10px;
}

.model-benefits-page__onboarding-block {
  display: grid;
  gap: 8px;
}

.model-benefits-page__onboarding-block h3 {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
}

.model-benefits-page__onboarding-block p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(20, 20, 20, 0.76);
}

.model-benefits-page__onboarding-block label {
  font-size: 0.7rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.75);
}

.model-benefits-page__onboarding-input,
.model-benefits-page__onboarding-textarea {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.3);
  background: #ffffff;
  color: #141414;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 8px 9px;
}

.model-benefits-page__onboarding-textarea {
  min-height: 92px;
  resize: vertical;
}

.model-benefits-page__onboarding-preview {
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(20, 20, 20, 0.66);
}

.model-benefits-page__onboarding-preview strong {
  color: #141414;
}

.model-benefits-page__onboarding-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.model-benefits-page__onboarding-media-item {
  display: grid;
  gap: 8px;
}

.model-benefits-page__onboarding-media-label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  font-size: 0.74rem;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
  color: #141414;
}

.model-benefits-page__onboarding-media-label .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.model-benefits-page__onboarding-dropzone {
  border: 0;
  background: transparent;
  padding: 0;
  display: block;
  cursor: pointer;
}

.model-benefits-page__onboarding-dropzone:hover,
.model-benefits-page__onboarding-dropzone:focus-visible,
.model-benefits-page__onboarding-dropzone.is-dragover {
  transform: none;
}

.model-benefits-page__onboarding-dropzone-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.model-benefits-page__onboarding-dropzone-media--avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 999px;
}

.model-benefits-page__onboarding-dropzone-media--banner {
  width: 100%;
  border-radius: 0;
}

.model-benefits-page__onboarding-media-preview {
  border: 0;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.model-benefits-page__onboarding-media-preview--avatar {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  margin: 0 auto;
}

.model-benefits-page__onboarding-media-preview--banner {
  width: 100%;
  aspect-ratio: 21 / 9;
  height: auto;
}

.model-benefits-page__onboarding-drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.model-benefits-page__onboarding-drop-overlay .material-symbols-outlined {
  color: #ffffff;
  font-size: 34px;
  line-height: 1;
}

.model-benefits-page__onboarding-dropzone:hover .model-benefits-page__onboarding-drop-overlay,
.model-benefits-page__onboarding-dropzone:focus-visible .model-benefits-page__onboarding-drop-overlay,
.model-benefits-page__onboarding-dropzone.is-dragover .model-benefits-page__onboarding-drop-overlay {
  opacity: 1;
}

.model-benefits-page__onboarding-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.model-benefits-page__onboarding-social-field {
  display: flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(20, 20, 20, 0.3);
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
}

.model-benefits-page__onboarding-social-icon {
  width: 40px;
  min-width: 40px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(20, 20, 20, 0.8);
}

.model-benefits-page__onboarding-social-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.model-benefits-page__onboarding-social-field .model-benefits-page__onboarding-input {
  border: 0;
  padding: 8px 9px;
}

.model-benefits-page__onboarding-social-field .model-benefits-page__onboarding-input:focus {
  outline: 0;
}

.model-benefits-page__wrapper.is-onboarding-active .model-benefits-page__onboarding {
  border: 0;
  margin-top: 0;
  padding: 0;
}

.model-benefits-page__cropper-zoom-label {
  width: 100%;
  font-size: 0.72rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.76);
}

.model-benefits-page__onboarding-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.model-benefits-page__onboarding-btn {
  min-height: 30px;
  min-width: 112px;
  border: 1px solid #141414;
  background: #141414;
  color: #ffffff;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 4px 10px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.model-benefits-page__onboarding-btn .material-symbols-outlined {
  font-size: 17px;
}

.model-benefits-page__onboarding-btn--secondary {
  min-height: auto;
  min-width: auto;
  border: 0;
  background: transparent;
  color: rgba(20, 20, 20, 0.64);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  padding: 0;
  text-decoration: none;
  justify-content: flex-start;
}

.model-benefits-page__onboarding-btn--secondary > span:not(.material-symbols-outlined) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.model-benefits-page__onboarding-btn--secondary .material-symbols-outlined {
  font-size: 14px;
  line-height: 1;
}

.model-benefits-page__onboarding-btn:hover,
.model-benefits-page__onboarding-btn:focus-visible {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.model-benefits-page__onboarding-btn--secondary:hover,
.model-benefits-page__onboarding-btn--secondary:focus-visible {
  background: transparent;
  border-color: transparent;
  color: #141414;
}

.model-benefits-page__onboarding.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.model-benefits-page__dni-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-benefits-page__dni-logo {
  width: 110px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 6px;
}

.swal-popup.swal-popup--benefits-dni .swal2-title {
  margin-top: 0;
}

.model-benefits-page__dni-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
  color: rgba(20, 20, 20, 0.76);
}

.model-benefits-page__dni-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.model-benefits-page__dni-uploader {
  border: 1px dashed rgba(20, 20, 20, 0.34);
  background: #ffffff;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  padding: 8px;
}

.model-benefits-page__dni-uploader .material-symbols-outlined {
  font-size: 22px;
}

.model-benefits-page__dni-uploader strong {
  font-size: 0.76rem;
}

.model-benefits-page__dni-uploader small {
  font-size: 0.72rem;
  color: rgba(20, 20, 20, 0.68);
}

.model-benefits-page__dni-uploader--has-preview {
  padding: 0;
  border-style: solid;
  border-color: rgba(20, 20, 20, 0.6);
  overflow: hidden;
}

.model-benefits-page__dni-uploader-preview {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
  object-position: center;
}

.swal-popup--benefits-dni-camera {
  width: min(760px, 96vw);
}

.model-benefits-page__camera-capture {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.model-benefits-page__camera-hint,
.model-benefits-page__camera-status {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(20, 20, 20, 0.78);
  text-align: left;
}

.model-benefits-page__camera-status {
  font-weight: 600;
}

.model-benefits-page__camera-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(20, 20, 20, 0.32);
  background: #050505;
  overflow: hidden;
}

.model-benefits-page__camera-video,
.model-benefits-page__camera-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.model-benefits-page__camera-video {
  object-fit: cover;
}

.model-benefits-page__camera-overlay {
  pointer-events: none;
}

.model-benefits-page__dni-uploader.is-dragover,
.model-benefits-page__dni-uploader:hover,
.model-benefits-page__dni-uploader:focus-visible {
  border-color: #141414;
  background: rgba(20, 20, 20, 0.05);
}

.model-benefits-page__status-popup {
  text-align: left;
  font-size: 0.86rem;
}

.model-benefits-page__status-popup p {
  margin: 4px 0;
}

@media (max-width: 900px) {
  .model-benefits-page .dashboard__content {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 24px;
  }

  .model-benefits-page__topbar {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
  }

  .model-benefits-page__wrapper {
    width: min(1120px, 100%);
    margin-top: 0;
  }

  .model-benefits-page__masthead {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: 14px;
  }

  .model-benefits-page__hero-media {
    min-height: 102px;
    max-height: 170px;
  }

  .model-benefits-page__hero-content {
    padding: 0 14px 12px 34px;
  }

  .model-benefits-page__hero-content .panel__title {
    font-size: clamp(1.65rem, 1.28rem + 1.02vw, 2.1rem);
  }

  .model-benefits-page__list.model-benefits-page__list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .model-benefits-page__actions-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .model-benefits-page__status-link {
    font-size: 0.74rem;
  }

  .model-benefits-page__authorization {
    margin-top: 10px;
    padding-top: 12px;
  }

  .model-benefits-page__wizard-step {
    margin-top: 10px;
    padding-top: 12px;
    min-height: 182px;
  }

  .model-benefits-page__footer[data-benefits-main-flow] {
    min-height: 222px;
  }

  .model-benefits-page__authorization-form {
    grid-template-columns: 1fr;
  }

  .model-benefits-page__authorization-actions {
    justify-content: flex-end;
  }

  .model-benefits-page__authorization-actions .model-benefits-page__cta {
    width: auto;
  }

  .model-benefits-page__benefit-card {
    min-height: 158px;
    padding: 11px;
  }

  .model-benefits-page__dni-upload-grid {
    grid-template-columns: 1fr;
  }

  .model-benefits-page__onboarding {
    padding: 10px;
  }

  .model-benefits-page__onboarding-media-grid,
  .model-benefits-page__onboarding-links-grid {
    grid-template-columns: 1fr;
  }

  .model-benefits-page__onboarding-actions {
    flex-direction: row;
    align-items: center;
  }

  .model-benefits-page__process-item > .model-benefits-page__cta {
    min-height: 60px;
    padding: 9px 12px;
    grid-template-columns: minmax(0, 1fr) minmax(106px, max-content);
  }

  .model-benefits-page__process-item > .model-benefits-page__cta .model-benefits-page__step-status {
    min-width: 106px;
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  .model-benefits-page__masthead {
    margin-bottom: 10px;
  }

  .model-benefits-page__list.model-benefits-page__list--grid {
    grid-template-columns: 1fr;
  }

  .model-benefits-page__hero-media {
    aspect-ratio: 22 / 5;
    min-height: 88px;
  }

  .model-benefits-page__hero-content {
    padding: 0 10px 10px 22px;
  }

  .model-benefits-page__hero-content .panel__title {
    font-size: clamp(1.42rem, 1.18rem + 0.9vw, 1.72rem);
  }

  .model-benefits-page__subtitle {
    font-size: 0.82rem;
  }
}

.pricing-page__credits-store {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-page__credits-header {
  margin-bottom: 12px;
}

.pricing-page__credits-header h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.02rem;
  text-transform: none;
  color: #ffffff;
}

.pricing-page__credits-header p {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.72);
}

.pricing-page__credits-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.pricing-page__credit-pack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  border-radius: 24px;
  background: #1b1b1b;
  color: #ffffff;
  overflow: hidden;
}

.pricing-page__credit-pack--featured {
  box-shadow: none;
}

.pricing-page__credit-pack-top {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pricing-page__credit-pack-icon {
  font-size: 1.1rem;
  color: #ffffff;
}

.pricing-page__credit-pack-top h4 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0.01rem;
  color: #ffffff;
}

.pricing-page__credit-pack-amount {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.pricing-page__credit-pack-price {
  margin: 2px 0 0;
  font-size: 1.42rem;
  line-height: 1;
  letter-spacing: 0.03rem;
  font-weight: 500;
  color: #ffffff;
}

.pricing-page__subscribe--ghost {
  border-color: rgba(20, 20, 20, 0.26);
  background: #ffffff;
  color: #141414;
}

.pricing-page__subscribe--ghost:hover,
.pricing-page__subscribe--ghost:focus-visible {
  background: rgba(20, 20, 20, 0.06);
  border-color: rgba(20, 20, 20, 0.32);
}

@media (max-width: 1024px) {
  .pricing-page__plans {
    grid-template-columns: 1fr;
  }

  .pricing-page__credits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .pricing-page,
  .credits-page {
    width: 100%;
    margin: 12px auto;
  }

  .model-benefits-page .pricing-page.model-benefits-page__wrapper {
    width: min(560px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-page__credits-store {
    margin-top: 18px;
    padding-top: 14px;
  }

  .pricing-page__credits-header h3 {
    font-size: 0.94rem;
  }

  .pricing-page__credits-header p {
    font-size: 0.78rem;
  }

  .pricing-page__credit-pack {
    gap: 7px;
  }

  .pricing-page__credit-pack-price {
    font-size: 1.28rem;
  }

  .pricing-page__credits-grid {
    grid-template-columns: 1fr;
  }
}

.profile-header__avatar {
  width: 128px;
  height: 128px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
}

.profile-header__avatar.is-inline-editable-media {
  cursor: pointer;
}

.profile-plan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  background: #ffffff;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.75rem;
  line-height: 1;
}

.profile-header__name-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-header__bio {
  margin: 8px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(20, 20, 20, 0.7);
  white-space: pre-wrap;
}

.profile-plan__label {
  color: rgba(20, 20, 20, 0.6);
}

.profile-plan__value {
  color: #141414;
  font-weight: 600;
}

.profile-plan--pro {
  background: #141414;
  border-color: #141414;
  position: relative;
  overflow: hidden;
}

.profile-plan--pro::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    110deg,
    rgba(88, 165, 255, 0) 0px,
    rgba(88, 165, 255, 0) 42px,
    rgba(121, 195, 255, 0.2) 56px,
    rgba(160, 218, 255, 0.48) 70px,
    rgba(121, 195, 255, 0.2) 84px,
    rgba(88, 165, 255, 0) 98px,
    rgba(88, 165, 255, 0) 168px
  );
  background-size: 168px 100%;
  background-position: 0 0;
  pointer-events: none;
  opacity: 0.85;
  animation: profileUpgradeBlueShineSweep 2.8s linear infinite;
}

.profile-plan--pro .profile-plan__value {
  position: relative;
  z-index: 1;
  background-image: repeating-linear-gradient(
    90deg,
    #ffffff 0px,
    #ffffff 84px,
    #b9e0ff 112px,
    #ffffff 140px,
    #ffffff 224px
  );
  background-size: 224px 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: profileUpgradeBlueShineText 2.8s linear infinite;
}

.profile-plan__upgrade {
  border: 1px solid #141414;
  background: #141414;
  color: #ffffff;
  padding: 7px 12px;
  font-size: 0.68rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  font-weight: 700;
  border-radius: 0;
  transform: scale(1);
  transition: transform 0.18s ease;
  position: relative;
  overflow: hidden;
}

.profile-plan__upgrade::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    110deg,
    rgba(88, 165, 255, 0) 0px,
    rgba(88, 165, 255, 0) 42px,
    rgba(121, 195, 255, 0.2) 56px,
    rgba(160, 218, 255, 0.48) 70px,
    rgba(121, 195, 255, 0.2) 84px,
    rgba(88, 165, 255, 0) 98px,
    rgba(88, 165, 255, 0) 168px
  );
  background-size: 168px 100%;
  background-position: 0 0;
  pointer-events: none;
  opacity: 0.85;
  animation: profileUpgradeBlueShineSweep 2.8s linear infinite;
}

.profile-plan__upgrade .material-symbols-outlined,
.profile-plan__upgrade .profile-plan__upgrade-text {
  position: relative;
  z-index: 1;
  background-image: repeating-linear-gradient(
    90deg,
    #ffffff 0px,
    #ffffff 84px,
    #b9e0ff 112px,
    #ffffff 140px,
    #ffffff 224px
  );
  background-size: 224px 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: profileUpgradeBlueShineText 2.8s linear infinite;
}

.profile-plan__upgrade:hover {
  transform: scale(0.95);
}

.profile-plan__upgrade .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
}

@keyframes profileUpgradeBlueShineText {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 224px 0;
  }
}

@keyframes profileUpgradeBlueShineSweep {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 168px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-plan__upgrade::after,
  .profile-plan__upgrade .material-symbols-outlined,
  .profile-plan__upgrade .profile-plan__upgrade-text,
  .profile-plan--pro::after,
  .profile-plan--pro .profile-plan__value {
    animation: none;
  }

  .profile-plan__upgrade .material-symbols-outlined,
  .profile-plan__upgrade .profile-plan__upgrade-text {
    background-image: none;
    -webkit-text-fill-color: currentColor;
    color: currentColor;
  }

  .profile-plan--pro .profile-plan__value {
    background-image: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
  }
}

.profile-plan__button.button {
  padding: 6px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  min-height: auto;
}

.profile-header__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-header__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-header__handle-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.profile-header__name {
  font-size: 1.1rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.profile-header__handle {
  font-size: 0.78rem;
  letter-spacing: 0.04rem;
  text-transform: none;
  color: rgba(20, 20, 20, 0.7);
  margin: 0;
}

.profile-header__edit-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #141414;
  background: #ffffff;
  text-decoration: none;
}

.profile-header__edit-icon .material-symbols-outlined {
  font-size: 18px;
}

.profile-credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.profile-credits--link {
  color: inherit;
  text-decoration: none;
}

.profile-credits__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  background: #ffffff;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.75rem;
}

/* Tools credits badge (keeps the same pill style as my-profile) */
[data-tool-credits] .profile-credits__pill,
.profile-header [data-tool-credits] .profile-credits__pill {
  border-radius: 12px;
  padding: 6px 12px;
  min-height: 36px;
  font-size: 0.75rem;
  letter-spacing: 0.1rem;
}

[data-tool-credits] .profile-credits__value {
  font-size: 1.05rem;
  font-weight: 700;
}

.profile-header [data-tool-credits] .profile-credits__label {
  font-size: 0.75rem;
}

.profile-header [data-tool-credits] .profile-credits__value {
  font-size: 1.05rem;
  font-weight: 700;
}

.profile-header [data-tool-credits] .profile-credits__add {
  width: 30px;
  height: 30px;
  border-radius: 999px;
}

.profile-header [data-tool-credits] .profile-credits__add .material-symbols-outlined {
  font-size: 18px;
}

/* Credits spent popup (left of credits badge on tool pages) */
.tool-credits-spent {
  display: inline-flex;
  align-items: center;
}

.tool-credits-spent[hidden] {
  display: none;
}

.tool-credits-spent__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  min-height: 36px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  background: #ffffff;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.75rem;
}

.tool-credits-spent__value {
  color: var(--danger);
  font-size: 1.05rem;
  font-weight: 700;
}

.profile-credits__label {
  color: rgba(20, 20, 20, 0.6);
}

.profile-credits__value {
  color: #141414;
  font-weight: 600;
}

button.profile-credits__value {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.profile-credits__value.is-infinite {
  font-size: 0.95rem;
}

.profile-credits__add {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(20, 20, 20, 0.25);
  background: #ffffff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #141414;
}

.profile-credits__add .material-symbols-outlined {
  font-size: 20px;
}

.profile-credits-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, 92vw);
  padding: 12px;
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: #ffffff;
  z-index: 5;
}

.profile-edit-modal {
  max-width: 96vw;
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0;
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
}

.profile-edit-modal .swal2-title {
  margin: 0;
  padding: 18px 70px 16px 22px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.14);
  text-align: left;
  font-size: clamp(1rem, 0.56rem + 1.25vw, 1.36rem);
  line-height: 1.2;
  letter-spacing: 0.08rem;
  color: #141414;
}

.profile-edit-modal .swal2-close,
.profile-edit-modal__close {
  display: inline-flex !important;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(20, 20, 20, 0.42);
  border-radius: 0;
  background: #ffffff;
  color: rgba(20, 20, 20, 0.85);
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.profile-edit-modal .swal2-close .material-symbols-outlined,
.profile-edit-modal__close .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
}

.profile-edit-modal .swal2-close:hover,
.profile-edit-modal .swal2-close:focus-visible,
.profile-edit-modal__close:hover,
.profile-edit-modal__close:focus-visible {
  background: #141414;
  color: #ffffff;
  outline: none;
}

.profile-edit-modal .swal2-html-container {
  margin: 0;
  padding: 18px 18px 0 22px;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.profile-edit-modal__content {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
}

.profile-edit-modal__section {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.03) 0%, rgba(20, 20, 20, 0) 72%);
  padding: 12px;
}

.profile-edit-modal__section--media {
  gap: 10px;
}

.profile-edit-modal__label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.64);
  text-align: left;
}

.profile-edit-modal__label--media {
  margin: 0 0 6px;
  text-align: left;
}

.profile-edit-modal__media-row {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 0;
}

.profile-edit-modal__media-block {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.profile-edit-modal__upload-target {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: #f7f7f7;
}

.profile-edit-modal__media-block--avatar .profile-edit-modal__upload-target {
  width: 112px;
}

.profile-edit-modal__media-block--banner .profile-edit-modal__upload-target {
  width: 100%;
}

.profile-edit-modal__upload-target::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0);
  transition: background 0.16s ease;
}

.profile-edit-modal__upload-target:hover::after,
.profile-edit-modal__upload-target:focus-visible::after {
  background: rgba(20, 20, 20, 0.42);
}

.profile-edit-modal__upload-target:focus-visible {
  outline: 1px solid rgba(20, 20, 20, 0.56);
  outline-offset: 0;
}

.profile-edit-modal__upload-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.16s ease;
  z-index: 2;
  pointer-events: none;
}

.profile-edit-modal__upload-target:hover .profile-edit-modal__upload-icon,
.profile-edit-modal__upload-target:focus-visible .profile-edit-modal__upload-icon {
  opacity: 1;
}

.profile-edit-modal__upload-target--banner.is-draggable-banner::after {
  background: transparent;
  pointer-events: none;
}

.profile-edit-modal__upload-target--avatar .profile-edit-modal__avatar-preview-wrap {
  width: 112px;
  height: 112px;
  flex-basis: 112px;
}

.profile-edit-modal__upload-target--banner .profile-edit-modal__banner-preview-wrap {
  width: 100%;
  height: 120px;
  flex-basis: auto;
}

.profile-edit-modal__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.profile-edit-modal__fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-bottom: 8px;
}

.profile-edit-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.profile-edit-modal__field .profile-edit-modal__label {
  margin: 0;
}

.profile-edit-modal__field--email .profile-edit-modal__password-button {
  align-self: flex-start;
  margin-top: 2px;
}

.profile-edit-modal__avatar-preview-wrap {
  width: 112px;
  height: 112px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f4f4f4;
  flex: 0 0 112px;
}

.profile-edit-modal__avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-edit-modal__avatar-fallback {
  color: rgba(20, 20, 20, 0.5);
  font-size: 28px;
}

.profile-edit-modal__banner-preview-wrap {
  width: 100%;
  height: 120px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f4f4f4;
  flex: 0 0 auto;
  user-select: none;
  touch-action: none;
}

.profile-edit-modal__banner-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.profile-edit-modal__banner-drag-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
  text-align: left;
  white-space: nowrap;
}

.profile-edit-modal__password-button {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  color: #141414;
  font-size: 0.72rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
}

.profile-edit-modal__password-button:hover,
.profile-edit-modal__password-button:focus-visible {
  background: #f4f4f4;
  outline: none;
}

.swal-form__forgot {
  border: none;
  background: transparent;
  padding: 0;
  margin-top: 2px;
  text-align: left;
  color: var(--text);
  text-decoration: underline;
  font-size: 0.76rem;
  letter-spacing: 0.02rem;
  cursor: pointer;
}

.swal-form__forgot-status {
  min-height: 0.95rem;
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 2px;
}

.swal-form__forgot-status.is-success {
  color: #0b6b3a;
}

.swal-form__forgot-status.is-error {
  color: var(--danger);
}

.profile-edit-modal__input,
.profile-edit-modal__textarea {
  width: 100%;
  display: block;
  margin: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: #ffffff;
  color: #141414;
  border-radius: 0;
}

.profile-edit-modal__input:focus,
.profile-edit-modal__textarea:focus,
.profile-edit-modal__input:focus-visible,
.profile-edit-modal__textarea:focus-visible {
  border-color: rgba(20, 20, 20, 0.62);
  outline: none;
}

.profile-edit-modal__textarea {
  min-height: 108px;
  resize: vertical;
}

.profile-edit-modal__creator-block {
  margin-top: 0;
  display: grid;
  gap: 12px;
}

.profile-edit-modal__creator-title,
.profile-edit-modal__creator-subtitle {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  text-align: left;
  color: rgba(20, 20, 20, 0.78);
}

.profile-edit-modal__creator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.profile-edit-modal__creator-privacy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 2px;
}

.profile-edit-modal__creator-privacy-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.03rem;
  color: rgba(20, 20, 20, 0.82);
  cursor: pointer;
}

.profile-edit-modal__creator-privacy-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #141414;
}

.profile-edit-modal__creator-colors-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.profile-edit-modal__creator-color-card {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  align-content: start;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: #ffffff;
  padding: 10px;
}

.profile-edit-modal__creator-color-trigger {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  color: #141414;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.profile-edit-modal__creator-color-trigger:hover,
.profile-edit-modal__creator-color-trigger:focus-visible {
  background: #f7f7f7;
  border-color: rgba(20, 20, 20, 0.5);
  outline: none;
}

.profile-edit-modal__creator-color-dot {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 50%;
  background: #141414;
  display: inline-flex;
  flex: 0 0 56px;
}

.profile-edit-modal__creator-color-meta {
  display: grid;
  min-width: 0;
}

.profile-edit-modal__creator-color-value {
  font-size: 0.88rem;
  letter-spacing: 0.03rem;
  color: rgba(20, 20, 20, 0.9);
  text-transform: lowercase;
  word-break: break-word;
}

.profile-edit-modal__creator-color-trigger-icon {
  font-size: 22px;
  color: rgba(20, 20, 20, 0.74);
}

.profile-edit-modal__creator-color-hidden-input {
  display: none;
}

.profile-edit-modal__creator-color-editor {
  grid-column: 1 / -1;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: #ffffff;
  padding: 10px;
  gap: 10px;
  display: none;
}

.profile-edit-modal__creator-color-editor.is-open {
  display: grid;
}

.profile-edit-modal__creator-color-editor[hidden] {
  display: none !important;
}

.profile-edit-modal__creator-color-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-edit-modal__creator-color-editor-title {
  margin: 0;
}

.profile-edit-modal__creator-color-editor-close {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(20, 20, 20, 0.3);
  background: #ffffff;
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-edit-modal__creator-color-editor-close .material-symbols-outlined {
  font-size: 18px;
}

.profile-edit-modal__creator-color-editor-close:hover,
.profile-edit-modal__creator-color-editor-close:focus-visible {
  background: #141414;
  color: #ffffff;
  outline: none;
}

.profile-edit-modal__creator-color-editor-body {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.profile-edit-modal__creator-color-wheel {
  width: min(100%, 190px);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(20, 20, 20, 0.24);
  border-radius: 50%;
  cursor: crosshair;
  touch-action: none;
  background: #ffffff;
}

.profile-edit-modal__creator-color-range {
  width: min(100%, 190px);
  margin: 0;
  accent-color: #1a1a1a;
}

.profile-edit-modal__creator-color-hex {
  width: min(100%, 190px);
  text-transform: lowercase;
  letter-spacing: 0.02rem;
}

.profile-edit-modal__creator-color-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.profile-edit-modal__creator-colors-preview-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  justify-items: start;
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: #ffffff;
  padding: 10px;
}

.profile-edit-modal__creator-colors-preview {
  width: min(164px, 42vw);
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(20, 20, 20, 0.2);
  border-radius: 50%;
  background: linear-gradient(135deg, #141414 0%, #141414 50%, #4b5563 50%, #4b5563 100%);
}

.profile-edit-modal .swal2-actions {
  width: 100%;
  margin: 0;
  padding: 14px 22px 16px;
  border-top: 1px solid rgba(20, 20, 20, 0.14);
  justify-content: flex-end;
  gap: 10px;
  background: #ffffff;
}

.profile-edit-modal .swal2-actions .swal2-loader {
  margin: 0;
}

.profile-edit-modal .swal2-actions .swal-button {
  min-height: 42px;
}

.admin-ai-model-modal {
  width: min(1120px, 96vw);
  max-width: 96vw;
  padding: 0;
}

.admin-ai-model-modal .swal2-html-container {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.admin-ai-model-modal__shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: min(560px, 72vh);
}

.admin-ai-model-modal__sidebar {
  border-right: 1px solid rgba(20, 20, 20, 0.15);
  background: #f7f7f7;
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-ai-model-modal__tab {
  min-height: 40px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-size: 0.7rem;
}

.admin-ai-model-modal__tab.is-active {
  background: #141414;
  color: #ffffff;
}

.admin-ai-model-modal__content {
  min-width: 0;
  padding: 16px;
  overflow-y: auto;
}

.admin-ai-model-modal__pane {
  display: none;
}

.admin-ai-model-modal__pane.is-active {
  display: block;
}

.admin-ai-model-modal__media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-ai-model-modal__media-card {
  border: 1px solid rgba(20, 20, 20, 0.18);
  padding: 10px;
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.admin-ai-model-modal__media-preview {
  border: 1px solid rgba(20, 20, 20, 0.16);
  background: #f4f4f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.admin-ai-model-modal__media-preview--avatar {
  aspect-ratio: 1 / 1;
  max-width: 160px;
}

.admin-ai-model-modal__media-preview--banner {
  aspect-ratio: 21 / 9;
}

.admin-ai-model-modal__media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-ai-model-modal__media-status {
  font-size: 0.72rem;
  color: rgba(20, 20, 20, 0.68);
  letter-spacing: 0.03rem;
}

.admin-ai-model-modal__media-hint {
  font-size: 0.69rem;
  color: rgba(20, 20, 20, 0.56);
  letter-spacing: 0.02rem;
}

.admin-ai-model-modal__media-status--success {
  color: #0b6b3a;
}

.admin-ai-model-modal__media-status--error {
  color: #8f1f1f;
}

.admin-ai-model-modal__media-status--progress {
  color: #1c3f7a;
}

.admin-ai-model-modal__gallery-picker {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  font-size: 0.72rem;
}

.admin-ai-model-modal__gallery-hint {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: rgba(20, 20, 20, 0.7);
}

.admin-ai-model-modal__gallery-list {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.admin-ai-model-modal__gallery-item {
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  font-size: 0.75rem;
}

.admin-ai-model-modal__gallery-remove {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: #ffffff;
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.admin-ai-model-modal__gallery-remove:hover,
.admin-ai-model-modal__gallery-remove:focus-visible {
  background: #141414;
  color: #ffffff;
  outline: none;
}

.admin-ai-model-cropper {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 10, 0.6);
  padding: 16px;
}

.admin-ai-model-cropper__panel {
  width: min(760px, 96vw);
  max-height: calc(100vh - 32px);
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  display: grid;
  gap: 12px;
  padding: 14px;
  overflow-y: auto;
}

.admin-ai-model-cropper__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-ai-model-cropper__title {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: #141414;
}

.admin-ai-model-cropper__close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(20, 20, 20, 0.28);
  background: #ffffff;
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-ai-model-cropper__close:hover,
.admin-ai-model-cropper__close:focus-visible {
  background: #141414;
  color: #ffffff;
  outline: none;
}

.admin-ai-model-cropper__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.admin-ai-model-cropper .image-cropper__canvas {
  width: min(100%, 250px);
  max-height: calc(100vh - 220px);
}

@media (max-width: 980px) {
  .admin-ai-model-modal__shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .admin-ai-model-modal__sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(20, 20, 20, 0.15);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-ai-model-modal__media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .profile-edit-modal__media-row {
    grid-template-columns: 1fr;
  }

  .profile-edit-modal__media-block--avatar .profile-edit-modal__upload-target {
    width: 100%;
    max-width: 112px;
  }
}

.profile-credits:hover .profile-credits-dropdown,
.profile-credits.is-open .profile-credits-dropdown {
  display: block;
}

.profile-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.profile-tabs__tab {
  border: none;
  background: transparent;
  padding: 10px 0;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.profile-tabs__tab.is-active {
  color: var(--text);
  border-bottom: 2px solid rgba(20, 20, 20, 0.85);
  margin-bottom: -1px;
}

.profile-tab-panels {
  display: block;
  margin-top: -20px;
}

.profile-shell .profile-tab-panels .panel {
  border: none;
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.profile-tab-panel[hidden] {
  display: none;
}

.profile-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-section__actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.profile-achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-creator-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

.profile-header__creator-socials {
  margin: 8px 0 2px;
}

.profile-creator-panel {
  margin-top: 18px;
}

.profile-creator-panel__body {
  display: grid;
  gap: 12px;
}

.profile-creator-panel__hint {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(20, 20, 20, 0.74);
}

.profile-creator-editor {
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.profile-creator-editor__subtitle {
  margin: 4px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.02rem;
  text-transform: uppercase;
}

.profile-creator-editor__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-creator-editor__actions {
  display: flex;
  justify-content: flex-start;
}

.profile-creator-socials__item {
  border: 1px solid rgba(0, 0, 0, 0.22);
  padding: 6px 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 0;
}

.profile-creator-socials__item-icon {
  font-size: 16px;
  line-height: 1;
}

.profile-creator-socials__item-label {
  line-height: 1;
}

.profile-creator-socials__item--disabled {
  color: rgba(20, 20, 20, 0.5);
  border-color: rgba(20, 20, 20, 0.16);
  background: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.profile-creator-posts__composer {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-creator-posts__composer .button {
  justify-self: start;
}

.profile-creator-posts__list {
  display: grid;
  gap: 10px;
}

.profile-creator-post {
  border: 1px solid rgba(0, 0, 0, 0.14);
  padding: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.profile-creator-post h4 {
  margin: 0 0 6px;
  font-size: 15px;
}

.profile-creator-post p {
  margin: 0;
  white-space: pre-wrap;
}

.profile-creator-post__date {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.7;
}

.sidebar__model-brand {
  display: grid;
  justify-items: start;
  gap: 6px;
}

body.my-profile-page--creator-mode .sidebar__header {
  align-items: center;
  text-align: center;
}

body.my-profile-page--creator-mode .sidebar__title {
  text-align: center;
}

.sidebar.sidebar--model .sidebar__header {
  align-items: center;
  text-align: center;
}

.sidebar.sidebar--model .sidebar__title {
  text-align: center;
}

body.my-profile-page--creator-mode .sidebar__nav {
  display: flex;
}

body.my-profile-page--creator-mode .sidebar__nav.sidebar__nav--creator-panel {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .profile-creator-editor__grid {
    grid-template-columns: 1fr;
  }
}

/* Override transparent panel for showcase - full-bleed black */
article.panel[aria-label="Achievements showcase"] {
  background: #3a3a3a !important;
  padding: 0 !important;
  margin-left: 12px;
  margin-right: 12px;
  overflow: visible;
  gap: 0;
}

article.panel[aria-label="Achievements showcase"] > .panel__header {
  padding: 14px 40px;
}

article.panel[aria-label="Achievements showcase"] > .panel__header .panel__title {
  color: #ffffff;
}

article.panel[aria-label="Achievements showcase"] > .panel__body {
  padding: 0;
}

.profile-showcase {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 0;
  align-items: center;
  width: 100%;
  max-width: none;
  min-height: 200px;
  margin: 0;
  position: relative;
  background-image: url('/assets/brand/images/achievements.webp');
  background-size: cover;
  background-position: center;
}

.profile-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.profile-showcase__item {
  border: none;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  position: relative;
  z-index: 1;
  background: transparent;
}

.profile-showcase__item.is-featured {
  padding: 18px 12px;
}

.profile-showcase__icon {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.profile-showcase__item.is-featured .profile-showcase__icon {
  width: 92px;
  height: 92px;
}

.profile-showcase__icon .material-symbols-outlined {
  font-size: 36px;
  color: #ffffff;
}

.profile-showcase__item.is-featured .profile-showcase__icon .material-symbols-outlined {
  font-size: 44px;
}

.profile-showcase__title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.profile-showcase__item.is-featured .profile-showcase__title {
  font-size: 0.85rem;
}

.profile-showcase__item.is-complete .profile-showcase__title {
	color: var(--gold);
}

.profile-showcase__tooltip {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(360px, 86vw);
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: #ffffff;
  padding: 12px;
  z-index: 20;
}

.profile-showcase__item:hover .profile-showcase__tooltip {
  display: block;
}

.profile-showcase__tooltip-title {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--text);
}

.profile-showcase__tooltip-desc {
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(20, 20, 20, 0.7);
}

.profile-showcase__tooltip-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.profile-showcase__item.is-complete {
  border: none;
}

.profile-showcase__item.is-complete .profile-showcase__icon {
  border-color: var(--gold);
}

.profile-showcase__item.is-complete .profile-showcase__icon .material-symbols-outlined {
  color: var(--gold);
}

@media (max-width: 900px) {
  article.panel[aria-label="Achievements showcase"] {
    margin-left: 10px;
    margin-right: 10px;
  }

  article.panel[aria-label="Achievements showcase"] > .panel__header {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 720px) {
  .profile-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  article.panel[aria-label="Achievements showcase"] {
    margin-left: 8px;
    margin-right: 8px;
  }

  article.panel[aria-label="Achievements showcase"] > .panel__header {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.profile-achievements__item {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 12px;
  border-radius: 12px;
}

.profile-achievements__side-pill {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: #ffffff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  user-select: none;
}

.profile-achievements__side-pill--icon .material-symbols-outlined {
  font-size: 22px;
}

.profile-achievements__side-pill--level {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.02rem;
}

.profile-achievements__side-pill--level.is-complete {
  background: #ffffff;
  border-color: var(--gold);
  color: var(--gold);
}

.profile-achievements__side-pill--level.is-complete .material-symbols-outlined {
  font-size: 22px;
}

.profile-achievements__item.is-complete {
  border-color: var(--gold);
}

.profile-achievements__item.is-complete .profile-achievements__side-pill--icon {
  border-color: var(--gold);
}

.profile-achievements__item.is-complete .profile-achievements__side-pill--icon .material-symbols-outlined {
  color: var(--gold);
}

.profile-achievements__item.is-complete .profile-achievements__progress-bar {
  background: var(--gold);
}

.profile-achievements__item h3 {
  font-size: 0.9rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.profile-achievements__item p {
  font-size: 0.8rem;
  color: rgba(20, 20, 20, 0.7);
}

.profile-achievements__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.profile-achievements__progress {
  height: 6px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}

.profile-achievements__progress-bar {
  display: block;
  height: 100%;
  background: #141414;
  width: 0;
}

.profile-achievements__status {
  font-size: 0.7rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.achievements-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 6px;
}

.achievements-modal .profile-achievements {
  gap: 12px;
}

.mailbox-tabs {
  display: flex;
  gap: 10px;
  margin: 6px 0 16px;
  flex-wrap: wrap;
}

.mailbox-tab {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  color: rgba(20, 20, 20, 0.85);
  padding: 10px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  cursor: pointer;
}

.mailbox-tab.is-active {
  border-color: rgba(20, 20, 20, 0.8);
  color: #141414;
}

.table__row--bug-reports {
  grid-template-columns: 52px minmax(150px, 1fr) minmax(220px, 1.2fr) minmax(260px, 1.2fr);
  align-items: center;
}

.bug-report-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.bug-report-user__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bug-report-open {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bug-report-open .material-symbols-outlined {
  font-size: 20px;
}

.bug-report-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.bug-report-status {
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 6px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.75);
  background: #ffffff;
}

.bug-report-status.is-pending {
  border-color: rgba(20, 20, 20, 0.35);
}

.bug-report-status.is-in-progress {
  border-color: rgba(155, 17, 17, 0.6);
  color: #9b1111;
}

.bug-report-status.is-rejected {
  border-color: rgba(20, 20, 20, 0.35);
  color: rgba(20, 20, 20, 0.65);
}

.bug-report-status.is-completed {
  border-color: var(--gold);
  color: var(--gold);
}

.achievement-family__levels {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
}

.achievement-level-pill {
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: #ffffff;
  color: rgba(20, 20, 20, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  user-select: none;
}

.achievement-level-pill.is-achieved {
  border-color: var(--gold);
  color: var(--gold);
}

.achievement-level-pill.is-next {
  border-color: rgba(20, 20, 20, 0.6);
  color: #141414;
}

.profile-achievements__side-pill--level[data-level-tooltip]:focus-visible,
.achievement-level-pill[data-level-tooltip]:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.35);
  outline-offset: 2px;
}

.app-level-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  z-index: 12000;
  max-width: min(360px, calc(100vw - 16px));
  background: #ffffff;
  color: #141414;
  border: 1px solid rgba(20, 20, 20, 0.18);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(20, 20, 20, 0.12);
  padding: 8px 10px;
  font-size: 0.7rem;
  line-height: 1.35;
  letter-spacing: 0.04rem;
  text-transform: none;
  text-align: left;
  white-space: normal;
  transition: opacity 90ms ease, transform 90ms ease, visibility 90ms ease;
}

.app-level-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}

.app-level-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.app-level-tooltip[data-placement="top"]::before {
  top: 100%;
  border-top: 6px solid rgba(20, 20, 20, 0.18);
}

.app-level-tooltip[data-placement="bottom"]::before {
  bottom: 100%;
  border-bottom: 6px solid rgba(20, 20, 20, 0.18);
}

@media (max-width: 720px) {
  .app-level-tooltip {
    max-width: calc(100vw - 20px);
    font-size: 0.68rem;
    letter-spacing: 0.02rem;
    padding: 7px 9px;
  }
}

.profile-membership {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-membership__label {
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.profile-membership__row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-credits-meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-credits-meter__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.profile-credits-meter__value {
  color: #141414;
}

.profile-credits-meter__bar {
  width: 100%;
  height: 8px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.profile-credits-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: #141414;
}

.profile-membership__plan {
  font-size: 1rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.profile-membership__note {
  font-size: 0.85rem;
  color: rgba(20, 20, 20, 0.6);
}

.profile-upsell-banner {
  border-color: rgba(20, 20, 20, 0.22);
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.04), rgba(20, 20, 20, 0.01));
}

.profile-upsell-banner__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.profile-upsell-banner__copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-upsell-banner__title {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: #141414;
  font-weight: 700;
}

.profile-upsell-banner__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(20, 20, 20, 0.72);
}

.profile-upsell-banner__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-upsell-banner__dismiss {
  border: 1px solid rgba(20, 20, 20, 0.35);
  background: #ffffff;
  color: rgba(20, 20, 20, 0.7);
  padding: 10px 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  cursor: pointer;
}

.profile-upsell-banner__dismiss:hover {
  background: rgba(20, 20, 20, 0.04);
}

@media (max-width: 900px) {
  .profile-sections {
    grid-template-columns: 1fr;
  }

  .my-profile-page.profile-model-public-external .profile-topbar {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 60px;
    height: 60px;
    row-gap: 0;
  }

  .my-profile-page.profile-model-public-external .profile-topbar__model-edit {
    right: 12px;
    width: 30px;
    height: 30px;
  }

  .my-profile-page .profile-topbar {
    padding: 6px 20px;
    min-height: 60px;
    height: auto;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .my-profile-page .profile-topbar__nav {
    width: auto;
    flex: 1 1 auto;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .my-profile-page .profile-topbar__credits {
    flex: 0 0 auto;
  }

  .my-profile-page .profile-topbar__tab {
    white-space: nowrap;
  }

  .my-profile-page .profile-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 20px 24px;
  }

  .my-profile-page .profile-header__identity {
    width: 100%;
    padding-right: 132px;
  }

  .my-profile-page .profile-header__meta {
    width: auto;
    align-items: center;
    top: 4px;
    right: 4px;
  }

  .my-profile-page .profile-header__meta-stack {
    width: 100%;
    align-items: stretch;
  }

  .my-profile-page .profile-header__achievements-corner {
    right: 8px;
    bottom: 8px;
  }

  .my-profile-page .profile-meta-pill--achievements-large {
    width: 90px;
    min-width: 90px;
  }

  .my-profile-page .profile-upsell-banner__actions {
    width: 100%;
  }

  .my-profile-page .profile-upsell-banner__actions .button,
  .my-profile-page .profile-upsell-banner__dismiss,
  .my-profile-page .profile-plan__upgrade {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .my-profile-page .profile-header__identity {
    padding-right: 114px;
  }

  .my-profile-page .profile-header__meta {
    top: 3px;
    right: 3px;
  }

  .my-profile-page .profile-header__achievements-corner {
    right: 7px;
    bottom: 7px;
  }

  .my-profile-page .profile-header {
    margin-left: -20px;
    margin-right: -20px;
    padding: 18px 20px;
  }

  .profile-edit-modal {
    max-height: calc(100dvh - 10px);
  }

  .profile-edit-modal .swal2-title {
    padding: 14px 54px 12px 16px;
    letter-spacing: 0.06rem;
  }

  .profile-edit-modal .swal2-close,
  .profile-edit-modal__close {
    top: 9px;
    right: 9px;
    width: 32px;
    height: 32px;
  }

  .profile-edit-modal .swal2-html-container {
    padding: 12px 10px 0 16px;
  }

  .profile-edit-modal__content {
    gap: 10px;
    padding-bottom: 12px;
  }

  .profile-edit-modal__section {
    padding: 10px;
  }

  .profile-edit-modal__media-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-edit-modal__media-block--avatar .profile-edit-modal__upload-target {
    width: 100%;
    max-width: 100px;
  }

  .profile-edit-modal__upload-target--avatar .profile-edit-modal__avatar-preview-wrap {
    width: 100px;
    height: 100px;
    flex-basis: 100px;
  }

  .profile-edit-modal__upload-target--banner .profile-edit-modal__banner-preview-wrap {
    width: 100%;
    height: 96px;
    flex-basis: auto;
  }

  .profile-edit-modal__banner-drag-hint {
    white-space: normal;
  }

  .profile-edit-modal__fields-grid {
    grid-template-columns: 1fr;
  }

  .profile-edit-modal__creator-grid {
    grid-template-columns: 1fr;
  }

  .profile-edit-modal__creator-privacy {
    grid-template-columns: 1fr;
  }

  .profile-edit-modal__creator-colors-grid {
    grid-template-columns: 1fr;
  }

  .profile-edit-modal__creator-color-editor-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .profile-edit-modal__creator-color-editor-actions .swal-button {
    width: 100%;
  }

  .profile-edit-modal__creator-colors-preview-panel {
    justify-items: start;
  }

  .profile-edit-modal .swal2-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 12px 16px 14px;
  }

  .profile-edit-modal .swal2-actions .swal-button {
    width: 100%;
  }
}

.home {
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: opacity 0.6s ease;
}

.home-section + .home-section {
  margin-top: 0;
}

.home-topbar {
  position: sticky;
  top: 0;
  width: calc(100% + 80px);
  height: var(--home-topbar-height);
  background: #000000;
  z-index: 15;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -40px;
  margin-right: -40px;
  margin-bottom: 0;
}

body.home-page .home-topbar:has(.profile-credits),
body.my-profile-page .home-topbar:has(.profile-credits),
body.home-page .tool-topbar:has([data-tool-credits]),
body.my-profile-page .tool-topbar:has([data-tool-credits]) {
  justify-content: center !important;
  padding-left: 0 !important;
}

body.home-page .home-topbar.has-home-drawer-toggle:has(.profile-credits),
body.my-profile-page .home-topbar.has-home-drawer-toggle:has(.profile-credits),
body.home-page .tool-topbar.has-home-drawer-toggle:has([data-tool-credits]),
body.my-profile-page .tool-topbar.has-home-drawer-toggle:has([data-tool-credits]) {
  justify-content: center !important;
  padding-left: 0 !important;
}

body.home-vertical-aspect-mobile.home-page .home-topbar:has(.profile-credits),
body.home-vertical-aspect-mobile.my-profile-page .home-topbar:has(.profile-credits),
body.home-vertical-aspect-mobile.home-page .tool-topbar:has([data-tool-credits]),
body.home-vertical-aspect-mobile.my-profile-page .tool-topbar:has([data-tool-credits]) {
  justify-content: flex-start !important;
  padding-left: 104px !important;
}

body.home-page:not(.home-editor) .dashboard__content.home {
  padding-top: 0;
}

body.home-page[data-page-key="pricing"]:not(.home-editor) .dashboard__content.home {
  padding-top: 60px;
}

body.home-page[data-page-key="gallery"]:not(.home-editor) .dashboard__content.home {
  padding-top: 68px;
}

body.home-page[data-page-key="models"]:not(.home-editor) .dashboard__content.home {
  padding-top: 68px;
}

body.home-page[data-page-key="clone-creation"]:not(.home-editor) .dashboard__content.home {
  padding-top: 0;
}

body.home-page[data-page-key="clone-creation"]:not(.home-editor) .dashboard__content.model-benefits-page__content {
  padding-top: 0;
}

body.home-page[data-page-key="clone-creation"]:not(.home-editor) .dashboard__content.model-benefits-page__content > .home-topbar {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  pointer-events: auto !important;
  z-index: 72 !important;
}

body.home-page[data-page-key="clone-creation"]:not(.home-editor) .dashboard__content > .home-topbar {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  pointer-events: auto !important;
  z-index: 72 !important;
}

body.home-page:not(.home-editor) .dashboard__content.home > .home-topbar {
  position: fixed !important;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  width: auto;
  margin: 0;
  pointer-events: auto;
  z-index: 72;
}

body.my-profile-page .dashboard__content.profile-shell {
  padding-top: 60px;
}

body.my-profile-page .dashboard__content.profile-shell > .home-topbar {
  position: fixed !important;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  width: auto;
  margin: 0;
  pointer-events: auto;
  z-index: 72;
}

body.my-profile-page.home-drawer-mode .dashboard__content.profile-shell > .home-topbar {
  left: 0;
}

body.home-page.home-drawer-mode:not(.home-editor) .dashboard__content.home > .home-topbar {
  left: 0;
}

.tool-topbar {
  position: relative;
  pointer-events: auto;
  justify-content: center;
  padding: 0 16px;
}

.dashboard__content--tool-split .home-topbar.tool-topbar,
.dashboard__content--facechex .home-topbar.tool-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
}

.tool-topbar__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 50px;
  object-fit: contain;
  display: block;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: auto;
}

.tool-topbar.has-home-drawer-toggle .tool-topbar__logo {
  left: 50%;
  transform: translate(-50%, -50%);
}

.home-topbar__drawer-toggle {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 0.62rem;
  font-weight: 700;
  pointer-events: auto;
  cursor: pointer;
  z-index: 5;
}

.home-topbar__drawer-toggle-icon {
  font-size: 1.02rem;
}

.home-topbar__drawer-toggle-label {
  line-height: 1;
}

.tool-topbar.has-home-drawer-toggle .tool-topbar__title-wrap {
  left: 104px;
  max-width: 30%;
}

.tool-topbar__title-wrap {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 36%;
  z-index: 2;
}

.tool-topbar__title {
  margin: 0;
  color: #ffffff;
  font-size: 0.88rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-topbar__help-trigger {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.tool-topbar__help-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: min(320px, 52vw);
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.18);
  padding: 10px 12px;
  color: #141414;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.tool-topbar__help-popover[hidden] {
  display: none;
}

.tool-topbar__help-text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
}

.tool-topbar__credits {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-topbar .profile-credits {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard__content--tool-split,
.dashboard__content--facechex {
  padding-top: 0;
  padding-bottom: 0;
}

.dashboard__content--tool-split > .dashboard__grid,
.dashboard__content--facechex > .dashboard__grid {
  margin-top: 10px;
}

.dashboard__content--tool-admin {
  padding-bottom: 0;
}

.dashboard__content--tool-admin > .dashboard__header {
  position: sticky;
  top: 0;
  z-index: 80;
  margin: 0 -40px;
  min-height: 60px;
  padding: 0 16px;
  background: #000000;
  display: flex;
  align-items: center;
  border-bottom: none;
  margin-bottom: 10px;
}

.dashboard__content--tool-admin > .dashboard__header .dashboard__title {
  margin: 0;
  color: #ffffff;
  font-size: 0.88rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
}

.dashboard__content--tool-admin .upscaler-actions {
  position: sticky;
  bottom: 0;
  z-index: 12;
  padding-top: calc(10px + env(safe-area-inset-bottom, 0px));
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(20, 20, 20, 0.06);
  background: #ffffff;
}

.tool-topbar [data-tool-credits] .profile-credits__pill,
.tool-topbar [data-tool-credits-spent] .tool-credits-spent__pill {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08rem;
}

.tool-topbar [data-tool-credits] .profile-credits__value,
.tool-topbar [data-tool-credits-spent] .tool-credits-spent__value {
  font-size: 0.9rem;
}

.profile-topbar {
  position: relative;
  pointer-events: auto;
  justify-content: space-between;
  padding: 0 40px;
}

.profile-topbar__model-edit {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(20, 20, 20, 0.34);
  color: #ffffff;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.profile-topbar__model-edit .material-symbols-outlined {
  font-size: 18px;
  color: inherit;
}

.profile-topbar__model-edit:hover,
.profile-topbar__model-edit:focus-visible {
  background: #ffffff;
  color: #141414;
  border-color: rgba(20, 20, 20, 0.34);
  outline: none;
}

.profile-topbar__nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.profile-topbar__credits {
  position: static;
  transform: none;
  margin-left: auto;
  right: auto;
  top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.my-profile-page .profile-topbar [data-tool-credits] .profile-credits__pill {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08rem;
}

.my-profile-page .profile-topbar [data-tool-credits] .profile-credits__value {
  font-size: 0.9rem;
}

.profile-topbar__tab {
  border: none;
  background: transparent;
  padding: 10px 0;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.profile-topbar__tab.is-active {
  color: #ffffff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  margin-bottom: -1px;
}

.profile-meta-pill--achievements-large {
  width: 90px;
  min-width: 90px;
  height: 30px;

.profile-model-public-privacy .profile-plan,
.profile-model-public-privacy #my-profile-plan-hint,
.profile-model-public-privacy #my-profile-level,
.profile-model-public-privacy .profile-header__achievements-corner,
.profile-model-public-privacy [data-profile-tab="achievements"],
.profile-model-public-privacy [data-profile-panel="achievements"],
.profile-model-public-privacy article.panel[aria-label="Achievements showcase"] {
  display: none !important;
}
  min-height: 30px;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
}

.profile-meta-pill--achievements-large .profile-meta-pill__icon {
  font-size: 1rem;
}

.profile-meta-pill--achievements-large .profile-meta-pill__value {
  font-size: 0.84rem;
  letter-spacing: 0.02rem;
  font-weight: 700;
}

.profile-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.profile-overview__bio {
  flex: 1 1 320px;
  min-width: 240px;
}

.profile-bio {
  position: relative;
}

.profile-bio__header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-bio__title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.profile-bio__edit {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: transparent;
  padding: 0;
  align-items: center;
  justify-content: center;
  display: inline-flex;
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
}

.profile-bio__edit:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.profile-bio__edit .material-symbols-outlined {
  font-size: 1.05rem;
}

.profile-bio__text {
  margin: 12px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
}

.panel[aria-label="Achievements showcase"] .panel__header {
  justify-content: center;
}

.panel[aria-label="Achievements showcase"] .panel__title {
  text-align: center;
}

.panel[aria-label="Achievements showcase"] .panel__body {
  align-items: center;
}

.profile-overview__label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.profile-overview__bio-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
}

.profile-overview__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
  align-items: stretch;
  flex: 0 1 360px;
}

.profile-overview__stat {
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #ffffff;
  padding: 12px;
}

.profile-overview__stat-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.profile-overview__stat-value {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
}

.profile-overview__showcase {
  margin-top: 18px;
}

.dashboard__content:not(.home) > .home-topbar {
  margin-top: 0;
  margin-bottom: 14px;
}

.my-profile-page .dashboard__content:not(.home) > .home-topbar {
  margin-bottom: 0 !important;
}

.profile-model-public-external .dashboard__content:not(.home) > .home-topbar {
  margin-top: 0 !important;
}

.profile-model-public-external {
  --profile-model-primary-color: #141414;
  --profile-model-secondary-color: #4b5563;
  --profile-model-text-contrast: #ffffff;
}

.my-profile-page.profile-model-public-external .dashboard__content:not(.home) {
  padding-top: 60px !important;
}

.my-profile-page.profile-model-public-external .dashboard__content.profile-shell {
  gap: 0;
}

.profile-model-public-external .profile-topbar {
  justify-content: center;
}

.profile-model-public-external .profile-topbar__nav,
.profile-model-public-external .profile-topbar__credits {
  display: none !important;
}

.profile-model-public-external .profile-topbar + .profile-header {
  margin-top: 0 !important;
}

.profile-model-public-external #my-profile-edit,
.profile-model-public-external #profile-dropdown [data-profile-action="edit-profile"] {
  display: none !important;
}

.profile-model-public-external .profile-header {
  overflow: visible;
  background: var(--profile-model-primary-color);
  color: var(--profile-model-text-contrast);
  --profile-model-avatar-size: 176px;
  --profile-model-banner-bottom: 205px;
  --profile-model-header-inline-padding: 40px;
  --profile-model-header-padding-top: 24px;
  min-height: clamp(340px, 28vw, 520px);
}

.profile-model-public-external .profile-header__avatar {
  width: var(--profile-model-avatar-size);
  height: var(--profile-model-avatar-size);
  border-radius: 0;
}

.profile-model-public-external .profile-header__avatar-wrap {
  flex: 0 0 var(--profile-model-avatar-size);
  min-height: var(--profile-model-avatar-size);
  transform: none;
  z-index: 3;
}

.profile-model-public-external .profile-header__identity {
  position: absolute !important;
  left: var(--profile-model-header-inline-padding);
  right: var(--profile-model-header-inline-padding);
  top: calc(100% - var(--profile-model-banner-bottom) - (var(--profile-model-avatar-size) / 2));
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  padding-right: 0;
  z-index: 3 !important;
}

.profile-model-public-external .profile-header__text {
  margin-top: calc((var(--profile-model-avatar-size) / 2) + 6px);
  gap: 8px;
  background: transparent;
  color: var(--profile-model-text-contrast);
  padding: 0;
  min-width: 0;
}

.profile-model-public-external .profile-header__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-transform: none;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  letter-spacing: 0.02rem;
  line-height: 1.05;
  font-weight: 600;
  color: var(--profile-model-text-contrast);
}

.profile-model-public-external .profile-header__name-row {
  position: static;
  margin: 0;
  z-index: auto;
  color: var(--profile-model-text-contrast);
  flex-wrap: wrap;
}

.profile-model-public-external .profile-header__name::after {
  content: "verified";
  font-family: "Material Symbols Outlined";
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  line-height: 1;
  color: var(--profile-model-text-contrast);
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(1px);
}

.profile-model-public-external .profile-header__handle-row {
  position: static;
  margin: 0;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  overflow: visible;
}

.profile-model-public-external .profile-header__handle-row[hidden] {
  display: none;
}

.profile-model-public-external .profile-header__handle {
  margin: 0;
  color: var(--profile-model-text-contrast);
  opacity: 0.86;
  font-size: clamp(0.72rem, 1.05vw, 1rem);
  letter-spacing: 0.03rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-model-public-external .profile-header__creator-socials {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  margin: 0;
  gap: 10px;
  z-index: auto;
  color: var(--profile-model-text-contrast);
  flex-wrap: wrap;
}

.profile-model-public-external .profile-creator-socials__item {
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  border-color: var(--profile-model-text-contrast);
  color: var(--profile-model-text-contrast);
  font-size: 0.74rem;
  letter-spacing: 0.03rem;
}

.profile-model-public-external .profile-creator-socials__item-icon {
  font-size: 17px;
}

.profile-model-public-external .profile-creator-socials__item--disabled {
  background: transparent;
  border-color: var(--profile-model-text-contrast);
  color: var(--profile-model-text-contrast);
  opacity: 0.45;
}

.profile-model-public-external .profile-header__bio {
  margin-top: 2px;
  color: var(--profile-model-text-contrast);
}

.profile-model-public-external .profile-header__banner {
  bottom: var(--profile-model-banner-bottom);
}

.profile-model-public-external .profile-divider {
  margin-top: 112px;
}

.my-profile-page.profile-model-public-external #my-profile-default-profile-panel {
  display: none !important;
}

.my-profile-page.profile-gallery-tab-active .profile-header,
.my-profile-page.profile-gallery-tab-active .profile-divider {
  display: none !important;
}

body.my-profile-page.profile-gallery-tab-active,
html body.my-profile-page.profile-gallery-tab-active {
  background: #000 !important;
}

body.my-profile-page.profile-gallery-tab-active .profile-shell,
body.my-profile-page.profile-gallery-tab-active .profile-tab-panels {
  background: #000 !important;
}

.my-profile-page.profile-gallery-tab-active .profile-tab-panels {
  margin-top: 0 !important;
  padding-top: 12px;
}

.my-profile-page.profile-model-public-external.profile-model-gallery-tab-active .profile-tab-panels {
  margin-top: 0;
}

.my-profile-page.profile-model-public-external.profile-model-gallery-tab-active .profile-tab-panel[data-profile-panel="profile"],
.my-profile-page.profile-model-public-external.profile-model-gallery-tab-active .profile-tab-panel[data-profile-panel="achievements"] {
  display: none !important;
}

.my-profile-page.profile-model-public-external:not(.profile-model-gallery-tab-active) .profile-tab-panel[data-profile-panel="gallery"] {
  display: none !important;
}

.home-topbar__logo {
  width: 200px;
  height: 50px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  min-width: 200px;
  min-height: 50px;
  max-width: 200px;
  max-height: 50px;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.tool-topbar .home-topbar__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.tool-topbar.has-home-drawer-toggle .home-topbar__logo {
  left: 50%;
  transform: translate(-50%, -50%);
}

.home.is-fading {
  opacity: 0;
}

.dashboard__content.home {
  --home-content-inline-padding: 40px;
  padding-top: 0;
  background: transparent;
}

body.home-page:not(.home-editor) {
  overflow-y: auto;
  overflow-y: overlay;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.5) transparent;
}

body.home-page:not(.home-editor) .dashboard__content.home {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  overscroll-behavior-y: auto;
}

body.home-page:not(.home-editor)::-webkit-scrollbar {
  width: 6px;
}

body.home-page:not(.home-editor)::-webkit-scrollbar-track {
  background: transparent;
}

body.home-page:not(.home-editor)::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
}

.dashboard__content.home:not(.home-editor) {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.home-hero {
  position: relative;
  padding: 0;
  margin: 0 calc(-1 * var(--home-content-inline-padding, 40px)) 0;
  border: none;
  background: transparent;
  color: var(--text);
  width: calc(100% + (2 * var(--home-content-inline-padding, 40px)));
  aspect-ratio: auto;
  min-height: calc(100vh - var(--home-topbar-height));
  min-height: calc(100dvh - var(--home-topbar-height));
  height: calc(100vh - var(--home-topbar-height));
  height: calc(100dvh - var(--home-topbar-height));
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.home-page.home-drawer-mode .home-hero {
  min-height: calc(100vh - var(--home-topbar-height));
  min-height: calc(100dvh - var(--home-topbar-height));
  height: calc(100vh - var(--home-topbar-height));
  height: calc(100dvh - var(--home-topbar-height));
}

body.tools-page .home-hero {
  aspect-ratio: 32 / 9;
  min-height: clamp(240px, 28vw, 420px);
  height: auto;
  margin-bottom: 24px;
}

body.tools-page.home-page.home-drawer-mode .home-hero {
  min-height: clamp(240px, 28vw, 420px);
  height: auto;
}

.home-hero.is-fading,
.home-section.is-fading {
  opacity: 0;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  max-width: 840px;
  width: min(100%, 840px);
  margin-top: 0;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --hero-media-transition-ms: 760ms;
  --hero-media-kenburns-ms: 6000ms;
  --hero-media-kenburns-scale: 1.03;
}

.home-hero__media-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity var(--hero-media-transition-ms) ease, transform var(--hero-media-transition-ms) ease;
}

.home-hero__media-layer.is-active {
  opacity: 1;
}

.home-hero__media-layer--slide-left {
  transform: translate3d(6%, 0, 0);
}

.home-hero__media-layer--slide-left.is-active {
  transform: translate3d(0, 0, 0);
}

.home-hero__media-layer--slide-left.is-leaving {
  transform: translate3d(-6%, 0, 0);
}

.home-hero__media-layer--slide-right {
  transform: translate3d(-6%, 0, 0);
}

.home-hero__media-layer--slide-right.is-active {
  transform: translate3d(0, 0, 0);
}

.home-hero__media-layer--slide-right.is-leaving {
  transform: translate3d(6%, 0, 0);
}

.home-hero__media-layer--slide-up {
  transform: translate3d(0, 8%, 0);
}

.home-hero__media-layer--slide-up.is-active {
  transform: translate3d(0, 0, 0);
}

.home-hero__media-layer--slide-up.is-leaving {
  transform: translate3d(0, -8%, 0);
}

.home-hero__media-layer--zoom {
  transform: scale(1.08);
}

.home-hero__media-layer--zoom.is-active {
  transform: scale(1);
}

.home-hero__media-layer--zoom.is-leaving {
  transform: scale(0.96);
}

.home-hero__bg-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__media-layer--kenburns .home-hero__bg-media {
  transform: scale(1);
  will-change: transform;
}

.home-hero__media-layer--kenburns.is-active .home-hero__bg-media {
  animation: home-hero-kenburns var(--hero-media-kenburns-ms) ease-out forwards;
}

.home-hero__media-layer--kenburns.is-leaving .home-hero__bg-media {
  animation: none;
  transform: scale(var(--hero-media-kenburns-scale));
}

@keyframes home-hero-kenburns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(var(--hero-media-kenburns-scale));
  }
}

.home-hero.has-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.48) 0%, rgba(10, 10, 10, 0.62) 100%);
}

.home-hero__logo {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 3;
  width: min(320px, 80%);
  height: auto;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 6px 10px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  color: var(--text);
  background: transparent;
  font-size: 0.7rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
}

.home-hero__title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  margin: 0;
}

.home-hero__subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.home-hero__explore {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 3;
  border: 1px solid rgba(20, 20, 20, 0.38);
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  min-width: 148px;
  padding: 8px 16px 6px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}

.home-hero.has-media .home-hero__explore {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(0, 0, 0, 0.32);
  color: #ffffff;
}

.home-hero__explore-label {
  font-size: 0.74rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  line-height: 1;
}

.home-hero__explore-arrow {
  font-size: 1.2rem;
  line-height: 1;
  animation: home-hero-explore-arrow 1.35s ease-in-out infinite;
}

.home-hero__explore:hover .home-hero__explore-arrow,
.home-hero__explore:focus-visible .home-hero__explore-arrow {
  animation-duration: 0.95s;
}

.home-hero__explore:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.68);
  outline-offset: 2px;
}

.home-hero.has-media .home-hero__explore:focus-visible {
  outline-color: rgba(255, 255, 255, 0.78);
}

.home-hero__explore.is-scrolling {
  opacity: 0.6;
  pointer-events: none;
}

@keyframes home-hero-explore-arrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.home-hero.has-media .home-hero__badge {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  background: rgba(0, 0, 0, 0.28);
}

.home-hero.has-media .home-hero__title {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.home-hero.has-media .home-hero__subtitle {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(20, 20, 20, 0.32);
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.home-hero__cta:hover,
.home-hero__cta:focus-visible {
  background: #111111;
  color: #ffffff;
  outline: none;
}

.home-hero.has-media .home-hero__cta {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(0, 0, 0, 0.34);
  color: #ffffff;
}

.home-section {
  padding: 0;
  border: 1px solid rgba(20, 20, 20, 0.15);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.6s ease;
}

.dashboard__content.home:not(.home-editor) .home-snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.dashboard__content.home:not(.home-editor) .home-snap-section--hero {
  min-height: calc(100vh - var(--home-topbar-height));
  min-height: calc(100dvh - var(--home-topbar-height));
  flex-shrink: 0;
}

.home-section[data-home-cards-section] {
  border: none;
  background-color: transparent;
}

.home-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-section--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  padding: 0;
  border: none;
  background: transparent;
}

.home-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-section__title,
.home-block__title {
  font-size: 1.1rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  margin: 0;
}

.home-section__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-block {
  padding: 24px;
  border: 1px solid rgba(20, 20, 20, 0.15);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-block--title,
.home-block--text {
  border: none;
  background: transparent;
  padding: 4px 0;
}

.home-block--text.home-block--size-sm,
.home-block--text.home-block--size-md,
.home-block--text.home-block--size-lg {
  padding: 4px 0;
}

.home-block--align-left {
  text-align: left;
}

.home-block--align-center {
  text-align: center;
}

.home-block--align-right {
  text-align: right;
}

.home-block--align-center .home-block__image {
  margin-left: auto;
  margin-right: auto;
}

.home-block--align-right .home-block__image {
  margin-left: auto;
}

.home-block--size-sm {
  padding: 16px;
}

.home-block--size-md {
  padding: 24px;
}

.home-block--size-lg {
  padding: 32px;
}

.home-block--size-sm .home-block__title {
  font-size: 0.95rem;
}

.home-block--size-lg .home-block__title {
  font-size: 1.25rem;
}

.home-block--size-sm .home-section__text {
  font-size: 0.9rem;
}

.home-block--size-lg .home-section__text {
  font-size: 1.1rem;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
}

body.home-page:not(.home-editor) .home-cards {
  gap: 14px;
}

body.home-page.tools-page:not(.home-editor) .home-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.home-page.tools-page:not(.home-editor) .home-section[data-home-cards-layout] .home-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-tools-group--admin {
  margin-bottom: 14px;
}

.home-tools-group__title {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
}

body.home-page.tools-page:not(.home-editor) .home-card--admin-only {
  background-color: #ffffff;
  border-radius: 0 18px 18px 0;
  overflow: hidden;
}

body.home-page.tools-page:not(.home-editor) .home-card--admin-only .home-card__media,
body.home-page.tools-page:not(.home-editor) .home-card--admin-only .home-card__image,
body.home-page.tools-page:not(.home-editor) .home-card--admin-only .home-card__overlay {
  border-radius: 0 18px 18px 0;
}

body.home-page.tools-page:not(.home-editor) .home-card--admin-only .home-card__media {
  overflow: hidden;
}

body.home-page.tools-page:not(.home-editor)
  .home-card--admin-only
  .home-card__media.sidebar__sublink--admin-only {
  background: transparent;
  border-radius: 0 18px 18px 0 !important;
}

body.home-page.tools-page:not(.home-editor) .home-card--admin-only .home-card__image {
  border-radius: 0 18px 18px 0 !important;
}

@media (max-width: 980px) {
  body.home-page.tools-page:not(.home-editor) .home-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  body.home-page.tools-page:not(.home-editor) .home-section[data-home-cards-layout] .home-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.home-page:not(.home-editor)
  .home-section[data-home-cards-layout="2"]
  .home-cards {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}

#public-content-gallery-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  justify-items: stretch;
  margin-top: 8px;
}

#public-models-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  justify-items: stretch;
  margin-top: 8px;
}

#public-content-gallery-grid .home-card {
  width: 100%;
}

#public-models-grid .home-card {
  width: 100%;
}

body[data-page-key="models"] #public-models-grid .home-card__media {
  overflow: hidden;
  line-height: 0;
}

body[data-page-key="models"] #public-models-grid .home-card {
  padding: 0;
  gap: 0;
}

body[data-page-key="models"] #public-models-grid .home-card__content {
  padding: 10px 0 0;
}

body[data-page-key="models"] #public-models-grid .home-card__image {
  display: block;
  transition: transform 0.34s ease;
  transform-origin: center bottom;
}

body[data-page-key="models"] #public-models-grid .home-card__overlay,
body[data-page-key="models"] #public-models-grid .home-card::after {
  display: none !important;
  opacity: 0 !important;
}

body[data-page-key="models"] #public-models-grid .home-card:hover .home-card__image,
body[data-page-key="models"] #public-models-grid .home-card:focus-within .home-card__image,
body[data-page-key="models"] #public-models-grid .home-card__media:hover .home-card__image,
body[data-page-key="models"] #public-models-grid .home-card__media:focus-visible .home-card__image {
  transform: scale(1.06);
}

@media (max-width: 720px) {
  #public-content-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #public-models-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

.home-card {
  border: none;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

body.home-page:not(.home-editor) .home-card--clickable {
  cursor: pointer;
}

body.home-page:not(.home-editor) .home-card {
  background-color: transparent;
}

@media (max-width: 960px) {
  body.home-page:not(.home-editor) .home-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  body.home-page:not(.home-editor)
    .home-section[data-home-cards-layout="2"]
    .home-cards {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }
}

@media (max-width: 720px) {
  body.home-page:not(.home-editor) .home-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  body.home-page:not(.home-editor) .home-card--layout-side {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }

  body.home-page:not(.home-editor) .home-card--layout-side .home-card__media,
  body.home-page:not(.home-editor) .home-card--layout-side .home-preview__dropzone,
  body.home-page:not(.home-editor) .home-card--layout-side .home-card__image {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    max-width: none;
    min-height: 180px;
    height: auto;
  }

  body.home-page:not(.home-editor) .home-card--layout-side .home-card__content {
    grid-column: auto;
  }
}

.home-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.20);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 2;
}

.home-card__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-card--layout-side {
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 16px;
  row-gap: 10px;
  align-items: start;
}

.home-card--layout-full {
  position: relative;
  min-height: 220px;
  padding: 16px;
  color: #ffffff;
  overflow: hidden;
}

.home-card--layout-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.home-card--layout-full > * {
  position: relative;
  z-index: 1;
}

.home-card--layout-full > *:not(.home-card__media) {
  position: relative;
  z-index: 1;
}

.home-card--layout-full .home-card__meta,
.home-card--layout-full .home-card__summary {
  color: rgba(255, 255, 255, 0.78);
}

.home-card--layout-full .home-card__link {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.home-card--layout-side .home-card__image,
.home-card--layout-side .home-preview__dropzone {
  grid-column: 1;
  grid-row: 1 / -1;
}

.home-card--layout-side .home-card__content {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.home-card__meta {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-editor .home-card__meta.is-hidden {
  opacity: 0.5;
  text-decoration: line-through;
}

.home-editor .home-card__meta.is-hidden .home-preview__text {
  text-decoration: line-through;
}

.home-card__title {
  margin: 0;
  font-size: clamp(1.18rem, 1.02rem + 0.36vw, 1.34rem);
  line-height: 1.2;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  font-weight: 600;
}

.home-card__summary {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.5;
}

.home-card__title-link,
.home-card__summary-link {
  color: inherit;
  text-decoration: none;
  display: inline;
}

.home-card__summary-link {
  color: var(--muted);
}

.home-card__title-link:hover,
.home-card__title-link:focus-visible,
.home-card__summary-link:hover,
.home-card__summary-link:focus-visible {
  text-decoration: none;
}


.home-card__media {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.home-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 3;
}

.home-card__overlay-text {
  font-size: 0.85rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: #ffffff;
}

.home-card__media:hover .home-card__overlay,
.home-card__media:focus-visible .home-card__overlay,
.home-card:hover .home-card__overlay,
.home-card:focus-within .home-card__overlay {
  opacity: 1;
}

body.home-page:not(.home-editor) .home-card--clickable:focus-visible {
  outline: 1px solid rgba(20, 20, 20, 0.34);
  outline-offset: -1px;
}

.home-card:hover::after,
.home-card:focus-within::after {
  opacity: 1;
}

.home-editor .home-card:hover::after,
.home-editor .home-card:focus-within::after {
  opacity: 0;
}

.home-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

body.tools-page .home-card__image {
  aspect-ratio: 21 / 9;
	border-radius: 14px;
}

body.tools-page .home-card__media,
body.tools-page .home-card--layout-side .home-card__media {
  width: 100%;
  height: auto;
  min-height: 0;
	border-radius: 14px;
	overflow: hidden;
}

/* Studio tools open on card click; do not add a redundant hover CTA. */
body.tools-page:not(.home-editor) .home-card__overlay {
	display: none;
}

.home-card--layout-side .home-card__media,
.home-card--layout-side .home-preview__dropzone {
  grid-column: 1;
  grid-row: 1 / -1;
}

.home-card--layout-side .home-card__media {
  width: 160px;
  height: 160px;
  min-height: 160px;
}

.home-card--layout-full .home-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-card--layout-full .home-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-card--layout-side .home-card__image {
  grid-row: 1 / -1;
  width: 160px;
  height: 160px;
  min-height: 160px;
}

.home-preview__dropzone {
  border: 1px dashed rgba(20, 20, 20, 0.3);
  background: #f7f7f7;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 160px;
}

.home-preview__dropzone.is-dragover {
  background: rgba(20, 20, 20, 0.06);
}

.home-preview__dropzone:hover .home-preview__dropzone-image,
.home-preview__dropzone:focus-visible .home-preview__dropzone-image,
.home-preview__dropzone.is-dragover .home-preview__dropzone-image {
  opacity: 0.38;
}

.home-preview__dropzone--filled {
  border-style: solid;
  padding: 0;
  background: #ffffff;
}

.home-preview__dropzone-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
  transition: opacity 0.2s ease;
}

.home-preview__dropzone-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(20, 20, 20, 0.42);
}

.home-preview__dropzone-placeholder .material-symbols-outlined {
  font-size: 28px;
}

.home-preview__dropzone-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
  pointer-events: none;
}

.home-preview__dropzone:hover .home-preview__dropzone-overlay,
.home-preview__dropzone:focus-within .home-preview__dropzone-overlay,
.home-preview__dropzone.is-dragover .home-preview__dropzone-overlay {
  opacity: 1;
  pointer-events: auto;
}

.home-preview__dropzone-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.38);
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease;
  padding: 0;
}

.home-preview__dropzone-icon:hover,
.home-preview__dropzone-icon:focus-visible {
  background: rgba(20, 20, 20, 0.62);
}

.home-preview__dropzone-icon + .home-preview__dropzone-icon {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.home-preview__dropzone-icon .material-symbols-outlined {
  font-size: 24px;
  pointer-events: none;
}

.home-preview__dropzone-title {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
}

.home-preview__dropzone-subtitle {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.home-card--layout-side .home-preview__dropzone {
  grid-row: 1 / -1;
  width: 160px;
  min-height: 160px;
  aspect-ratio: 1 / 1;
}

.home-empty {
  margin: 0;
  color: var(--muted);
  display: none;
}

.home-block__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.home-config__group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.home-config__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.home-config__field.is-hidden {
  display: none;
}

.home-config__item {
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-config__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-config__item-remove {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-config__item-title {
  font-size: 0.68rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-config__media-preview {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #f4f5f7;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-config__media-preview--sequence {
  min-height: 120px;
}

.home-config__media-preview-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-config__media-preview-empty {
  font-size: 0.68rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-config__inline-actions--banner {
  margin-bottom: 8px;
}

.home-config__media-preview--selected {
  min-height: 84px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 8px;
  background: #ffffff;
}

.home-config__selected-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.home-config__selected-media-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-config__selected-media-thumb {
  border: 1px solid rgba(20, 20, 20, 0.2);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f5f7;
}

.home-config__selected-media-thumb .home-config__media-preview-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-config__selected-media-label {
  font-size: 0.62rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-banner-config-modal {
  gap: 10px;
}

.home-banner-config-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.home-banner-config-modal__actions .button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-banner-config-modal__actions .material-symbols-outlined {
  font-size: 1rem;
}

.home-banner-config-modal__media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.home-banner-config-modal__media-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-banner-config-modal__media-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
}

.home-banner-config-modal__media-remove .material-symbols-outlined {
  font-size: 1rem;
}

.home-banner-config-modal__media-thumb {
  border: 1px solid rgba(20, 20, 20, 0.2);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f5f7;
}

.home-banner-config-modal__media-thumb .home-config__media-preview-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-banner-config-modal__media-label {
  font-size: 0.62rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-config__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.home-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-editor .dashboard__content {
  height: 100vh;
  overflow: hidden;
  padding: 0;
  margin-left: var(--sidebar-width);
}

.home-editor {
  --sidebar-width: 300px;
}

.home-editor .home-preview {
  flex: 1;
  min-height: 0;
}

.home-editor-config-sidebar {
  width: 300px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
  border-right: 1px solid rgba(20, 20, 20, 0.12);
}

.home-editor-config-sidebar__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-editor-config-sidebar__title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  font-weight: 500;
}

.home-editor-config-sidebar__back {
  border: 1px solid rgba(20, 20, 20, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  width: fit-content;
}

.home-editor-config-sidebar__back .material-symbols-outlined {
  font-size: 1rem;
}

.home-editor-config-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
}

.home-editor-config-sidebar__banner-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.home-editor-config-sidebar__banner-button .material-symbols-outlined {
  font-size: 1rem;
}

.home-editor-config-sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-editor-save-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.home-editor-save-button__main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-editor-save-button__icon {
  font-size: 1rem;
}

.home-editor-save-button__check {
  font-size: 1rem;
  color: #0f8a2a;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-editor-save-button.is-saved .home-editor-save-button__check {
  opacity: 1;
  transform: scale(1);
}

.home-editor-save-button:disabled {
  opacity: 0.8;
  cursor: wait;
}

.home-editor-config-sidebar .home-preview__controls {
  grid-template-columns: 1fr;
}

.home-editor__palette {
  position: fixed;
  top: 32px;
  right: 32px;
  width: min(320px, calc(100vw - var(--sidebar-width) - 48px));
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: #ffffff;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 15;
}

.home-editor__palette-toggle {
  align-self: flex-end;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.home-editor__palette.is-collapsed {
  width: 52px;
  padding: 10px;
  gap: 0;
}

.home-editor__palette.is-collapsed .home-preview__controls,
.home-editor__palette.is-collapsed .home-editor__actions {
  display: none;
}

.home-editor__palette.is-collapsed .home-editor__palette-toggle .material-symbols-outlined {
  transform: rotate(180deg);
}

.home-editor .home-hero {
  margin: 0 0 24px;
  width: 100%;
}

.home-editor .home-topbar {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  height: 60px;
}

.home-editor .home-hero__content {
  padding-top: 0;
}

.home-editor .home-hero__logo {
  width: min(280px, 70%);
}

.home-editor__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.home-editor__hidden {
  display: none;
}

.home-preview__controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: center;
}

.home-editor__palette .home-preview__controls {
  grid-template-columns: 1fr;
}

.home-preview__canvas {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.home-editor .home-preview__canvas {
  max-height: none;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  padding-bottom: 24px;
}

.home-editor .home-preview__canvas > .home-topbar {
  margin-bottom: -24px;
}

.home-hero__media-browser-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #ffffff;
  padding: 6px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  cursor: pointer;
}

.home-hero__media-browser-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.home-editor .home-preview__canvas > * {
  width: 100%;
  flex: 0 0 auto;
  align-self: stretch;
  clear: both;
}

.home-editor .home-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
  align-items: start;
}

.home-editor .home-preview__card {
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}

.home-editor .home-card--layout-side {
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
}

.home-editor .home-card--layout-side .home-card__media,
.home-editor .home-card--layout-side .home-card__image,
.home-editor .home-card--layout-side .home-preview__dropzone {
  width: 100%;
  max-width: 160px;
  min-height: 120px;
  aspect-ratio: 1 / 1;
  height: auto;
}

body.home-editor[data-home-content-scope="tools"] .home-card--layout-stacked .home-preview__dropzone,
body.home-editor[data-home-content-scope="tools"] .home-card--layout-stacked .home-card__media,
body.home-editor[data-home-content-scope="tools"] .home-card--layout-stacked .home-card__image {
  aspect-ratio: 18 / 8;
  min-height: 0;
  height: auto;
}

@media (max-width: 960px) {
  .home-editor {
    --sidebar-width: 240px;
  }

  .home-editor-config-sidebar {
    width: 240px;
  }

  .home-editor .dashboard__content {
    margin-left: 240px;
  }
}

@media (max-width: 720px) {
  .home-editor {
    --sidebar-width: 100%;
  }

  .home-editor-config-sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  }

  .home-editor .dashboard__content {
    margin-left: 0;
    height: auto;
    min-height: 100vh;
  }

  .home-editor .home-preview__canvas {
    height: auto;
    min-height: calc(100vh - 220px);
  }
}

.home-preview__editable {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 100%;
  position: relative;
  z-index: 1;
  width: 100%;
}

.home-preview__text {
  cursor: text;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.home-preview__editable.is-empty .home-preview__text {
  color: var(--muted);
}

.home-preview__editable.is-hidden .home-preview__text {
  text-decoration: line-through;
}

.home-preview__edit {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.home-preview__toggle {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.home-preview__toggle.is-hidden {
  opacity: 0.6;
}

.home-preview__card {
  position: relative;
}

.home-preview__main-block {
  border: 1px dashed rgba(20, 20, 20, 0.2);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fbfbfb;
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.home-preview__main-block > .home-section,
.home-preview__main-block > .home-block {
  margin: 0;
  width: 100%;
}

.home-preview__main-block .home-section {
  border: none;
  background: transparent;
  padding: 0;
}

.home-preview__main-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-preview__main-block-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-preview__main-block-label {
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-preview__field {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-preview__field-label {
  font-size: 0.55rem;
  letter-spacing: 0.12rem;
}

.home-preview__select {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  padding: 4px 6px;
  font-size: 0.65rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--text);
  font-family: inherit;
}

.home-preview__input {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  padding: 4px 6px;
  font-size: 0.65rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--text);
  font-family: inherit;
  min-width: 120px;
}

.home-preview__input--color {
  padding: 0;
  height: 28px;
  min-width: 44px;
}

.home-preview__main-block-add {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.home-preview__card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  z-index: 2;
}

.home-preview__drag {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  color: var(--text);
}

.home-preview__layout-select {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  padding: 4px 6px;
  font-size: 0.65rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--text);
  font-family: inherit;
}

.home-preview__drag .material-symbols-outlined {
  font-size: 16px;
}

.home-preview__card.is-over {
  outline: 2px dashed rgba(20, 20, 20, 0.35);
  outline-offset: 2px;
}

.home-preview__main-block.is-over {
  outline: 2px dashed rgba(20, 20, 20, 0.35);
  outline-offset: 2px;
}

.home-preview__edit .material-symbols-outlined {
  font-size: 16px;
}

.home-preview__toggle .material-symbols-outlined {
  font-size: 16px;
}

.home-preview__inline-input,
.home-preview__inline-textarea {
  border: 1px solid rgba(20, 20, 20, 0.4);
  background: transparent;
  padding: 6px 8px;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: var(--text);
  font-family: inherit;
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 180px;
}

.home-hero__title .home-preview__inline-input {
  padding: 2px 6px;
}

.home-hero__subtitle .home-preview__inline-textarea,
.home-hero__subtitle .home-preview__inline-input {
  padding: 3px 6px;
}

.home-preview__inline-textarea {
  min-height: 60px;
  resize: vertical;
}

.home-preview__section-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.home-preview__placeholder {
  border: 1px dashed rgba(20, 20, 20, 0.3);
  background: transparent;
  padding: 16px;
}

.home-preview__action {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 6px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text);
}

.home-preview__action--icon {
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-preview__action--icon .material-symbols-outlined {
  font-size: 16px;
}

.home-preview__focal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  align-items: center;
}

.home-preview__focal {
  display: none;
}

.home-preview__focal.is-visible {
  display: grid;
}

.home-config__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.home-config__section-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-layouts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.home-layout {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background-color: #ffffff;
}

.home-layout__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.home-layout__title {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.home-layout__toggle {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.home-layout__toggle .material-symbols-outlined {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.home-layout.is-collapsed .home-layout__toggle .material-symbols-outlined {
  transform: rotate(-90deg);
}

.home-layout__body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-layout.is-collapsed .home-layout__body {
  display: none;
}

.home-layout__settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.landing-home-config-page .dashboard__content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.landing-home-config-page .panel {
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #faf8f3 100%);
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.06);
}

.landing-home-config-page .panel__header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.landing-home-config-page .panel__body {
  padding: 16px;
  gap: 18px;
}

.landing-home-config-page__hero {
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background:
    radial-gradient(circle at top right, rgba(193, 18, 31, 0.1), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f7f2e8 100%);
  box-shadow: 0 18px 36px rgba(20, 20, 20, 0.05);
}

.landing-home-config-page__hero-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
}

.landing-home-config-page__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
  color: #8b7b63;
}

.landing-home-config-page__hero .dashboard__title {
  margin: 0;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  letter-spacing: 0.08rem;
  color: #141414;
}

.landing-home-config-page__hero-text {
  margin: 0;
  max-width: 64ch;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #5f5a52;
}

.landing-home-config-page__hero-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.landing-home-config-page__hero-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding-inline: 14px;
}

.landing-home-config-page__hero-button .material-symbols-outlined {
  font-size: 1rem;
}

.landing-home-config-page__section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.landing-home-config-page__section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: rgba(255, 255, 255, 0.85);
  color: #141414;
}

.landing-home-config-page__section-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.landing-home-config-page__section-text,
.landing-home-config-page__subsection-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #6d665c;
}

.landing-home-config-page__subsection-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.landing-home-config-page .home-config__section {
  gap: 12px;
  margin-bottom: 14px;
}

.landing-home-config-page .home-layouts {
  gap: 12px;
  margin-bottom: 4px;
}

.landing-home-config-page .home-layout {
  border-color: rgba(20, 20, 20, 0.12);
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 20, 20, 0.04);
}

.landing-home-config-page .home-layout__header {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.landing-home-config-page .home-layout__body {
  padding: 14px;
  gap: 14px;
}

.landing-home-config-page .home-config__group,
.landing-home-config-page .home-config__items,
.landing-home-config-page .home-layout__settings {
  gap: 10px;
}

.landing-home-config-page .home-config .form__input,
.landing-home-config-page .home-config .form__textarea,
.landing-home-config-page .home-config .form__select {
  padding: 9px 10px;
  border-color: rgba(20, 20, 20, 0.14);
  background: #fff;
}

.landing-home-config-page .social-media__list {
  gap: 10px;
}

.landing-home-config-page .social-media__row {
  grid-template-columns: 58px minmax(0, 1fr) auto 44px;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(20, 20, 20, 0.1);
}

.landing-home-config-page .social-media__icon-placeholder {
  width: 42px;
  height: 42px;
}

.landing-home-config-page .social-media__name {
  letter-spacing: 0.12rem;
}

.landing-home-config-page .icon-button {
  width: 36px;
  height: 36px;
  border-color: rgba(20, 20, 20, 0.14);
  background: #fff;
}

.landing-home-config-page .icon-button:hover,
.landing-home-config-page .home-config__picker-button:hover,
.landing-home-config-page .home-layout__toggle:hover {
  background: rgba(20, 20, 20, 0.05);
}

.landing-home-config-page .home-layout__header-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.landing-home-config-page .home-layout__eyebrow {
  font-size: 0.64rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: #9a8461;
}

.landing-home-config-page .home-layout__title {
  font-size: 0.9rem;
  letter-spacing: 0.08rem;
}

.landing-home-config-page .home-layout__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  background: linear-gradient(180deg, #fff 0%, #fcfbf8 100%);
}

.landing-home-config-page .home-layout__group-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.landing-home-config-page .home-layout__group-kicker {
  font-size: 0.64rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
  color: #8b7b63;
}

.landing-home-config-page .home-layout__group-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #6e685e;
}

.landing-home-config-page .home-config__item {
  gap: 10px;
  padding: 12px;
  border-color: rgba(20, 20, 20, 0.12);
  background: #fff;
}

.landing-home-config-page .home-config__item-header {
  align-items: center;
}

.landing-home-config-page .home-config__item-title {
  font-size: 0.64rem;
  letter-spacing: 0.14rem;
}

.landing-home-config-page .home-config__media-preview,
.landing-home-config-page .home-config__selected-media-thumb,
.landing-home-config-page .home-banner-config-modal__media-thumb {
  border-color: rgba(20, 20, 20, 0.12);
  background: #f6f3ec;
}

.landing-home-config-page .home-config__media-preview--selected {
  padding: 10px;
}

.landing-home-config-page .home-config__actions {
  padding-top: 8px;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
}

.landing-home-config-page .home-config__status {
  font-size: 0.68rem;
  letter-spacing: 0.12rem;
}

@media (max-width: 900px) {
  .landing-home-config-page__hero {
    padding: 16px;
  }

  .landing-home-config-page__hero-actions {
    justify-content: flex-start;
  }

  .landing-home-config-page .social-media__row {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .landing-home-config-page .social-media__row .toggle,
  .landing-home-config-page .social-media__row .icon-button {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .landing-home-config-page .panel__header,
  .landing-home-config-page .panel__body,
  .landing-home-config-page .home-layout__body,
  .landing-home-config-page .home-layout__group {
    padding: 12px;
  }

  .landing-home-config-page .social-media__row {
    gap: 10px;
    padding: 12px;
  }
}

.home-config__status {
  font-size: 0.72rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: var(--muted);
}

.home-config__picker {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.home-config__picker .form__input {
  width: 100%;
}

.home-config__picker-actions {
  display: inline-flex;
  gap: 4px;
  align-items: stretch;
}

.home-config__picker-button {
  border: 1px solid rgba(20, 20, 20, 0.2);
  width: auto;
  min-width: 30px;
  height: 100%;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  color: var(--text);
}

.home-config__picker-button .material-symbols-outlined {
  font-size: 18px;
}

.home-config__picker-button-text {
  font-size: 0.62rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.home-config .form__field {
  gap: 6px;
}

.home-config .form__label {
  font-size: 0.7rem;
  letter-spacing: 0.1rem;
}

.home-config .form__input,
.home-config .form__textarea,
.home-config .form__select {
  padding: 8px 10px;
  font-size: 0.85rem;
}

.home-config .form__input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
}

.home-config .form__textarea {
  min-height: 64px;
}

.home-config .form__actions .button,
.home-config .button--dashed {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.home-config__picker-button:hover {
  background-color: rgba(20, 20, 20, 0.06);
}

.media-library {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media-library__paths {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--muted);
}

.media-library__roots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.media-library__dropzone {
  border: 1px dashed rgba(20, 20, 20, 0.35);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  background: rgba(20, 20, 20, 0.02);
}

.media-library__dropzone.is-dragover {
  background: rgba(20, 20, 20, 0.08);
}

.media-library__dropzone-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.02rem;
}

.media-library__dropzone-content strong {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.media-library__dropzone-content .material-symbols-outlined {
  font-size: 28px;
  color: var(--muted);
}

.media-library__input {
  display: none;
}

.media-library__root {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 6px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  cursor: pointer;
}

.media-library__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.media-library__item {
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: transparent;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}

.media-library__item:hover {
  background-color: rgba(20, 20, 20, 0.05);
}

.media-library__icon {
  font-size: 28px;
  color: var(--muted);
}

.media-library__thumb {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border: 1px solid rgba(20, 20, 20, 0.1);
}

.media-library__name {
  font-size: 0.75rem;
  color: var(--text);
  word-break: break-word;
}

@media (max-width: 960px) {
  .home-hero {
    padding: 0;
  }

  .tool-split-layout,
  .facechex-layout {
    --facechex-main-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    margin-right: 0;
  }

  .tool-split-panel,
  .facechex-flat-layer {
    width: 100%;
  }

  .tool-split-resize-handle,
  .facechex-resize-handle {
    display: none;
  }

  .tool-split-side,
  .facechex-results-side {
    border-left: none;
    height: calc(100vh - 116px);
    max-height: calc(100vh - 116px);
    overflow: hidden;
  }

  .home-hero__logo {
    top: 28px;
    left: 28px;
  }
}

@media (max-width: 720px) {
  .home {
    gap: 0;
  }

  .home-section + .home-section {
    margin-top: 0;
  }

  .home-topbar {
    margin-top: 0;
    margin-bottom: 0;
  }

  .tool-topbar {
    padding: 0 10px;
  }

  .tool-topbar__title-wrap {
    left: 10px;
    max-width: 34%;
    gap: 6px;
  }

  .tool-topbar__title {
    font-size: 0.75rem;
    letter-spacing: 0.08rem;
  }

  .tool-topbar__credits {
    right: 10px;
  }

  .tool-topbar [data-tool-credits] .profile-credits__pill,
  .tool-topbar [data-tool-credits-spent] .tool-credits-spent__pill {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 0.62rem;
    letter-spacing: 0.06rem;
  }

  .tool-topbar [data-tool-credits] .profile-credits__value,
  .tool-topbar [data-tool-credits-spent] .tool-credits-spent__value {
    font-size: 0.78rem;
  }

  .home-hero {
    padding: 0;
  }

  .home-hero__explore {
    bottom: 12px;
    min-width: 136px;
    padding: 7px 14px 5px;
  }

  .home-hero__explore-label {
    font-size: 0.68rem;
    letter-spacing: 0.16rem;
  }

  .home-hero__logo {
    top: 24px;
    left: 24px;
  }

  .home-section {
    padding: 0;
  }

  .home-block {
    padding: 20px;
  }
}

.profile__option {
  border: none;
  background: transparent;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}

.profile__option-icon {
  font-size: 1.05rem;
  color: var(--text);
}

.profile__divider {
  width: 100%;
  height: 1px;
  background: rgba(20, 20, 20, 0.15);
  margin: 4px 0;
}

.profile__menu .profile__option[data-profile-action='my-profile'] {
  order: 10;
}

.profile__menu .profile__option[data-profile-action='gallery'] {
  order: 20;
}

.profile__menu .profile__divider {
  order: 30;
}

.profile__menu .profile__option[data-profile-action='admin-panel'] {
  order: 40;
}

.profile__menu .profile__option[data-profile-action='logout'] {
  order: 50;
}

.profile__menu .profile__status-group {
  order: 60;
}

.profile__menu .profile__divider {
  display: none !important;
}

.profile__menu .profile__option[data-profile-action='gallery'] + .profile__option[data-profile-action='admin-panel'],
.profile__menu .profile__option[data-profile-action='gallery'] + .profile__option[data-profile-action='logout'] {
  border-top: 1px solid rgba(20, 20, 20, 0.15);
  margin-top: 4px;
  padding-top: 10px;
}

.profile__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  background-color: #2f9e44;
}

.profile__dot--busy {
  background-color: #c1121f;
}

.profile__status-group {
  position: relative;
}

.profile__option--submenu {
  justify-content: space-between;
}

.profile__submenu-chevron {
  font-size: 1rem;
  color: var(--muted);
}

.profile__submenu {
  display: none;
  position: absolute;
  left: calc(100% + 8px);
  top: 0;
  min-width: 140px;
  padding: 8px 10px;
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: #f2f2f2;
  z-index: 6;
  flex-direction: column;
  gap: 6px;
}

.profile__status-group.is-open .profile__submenu {
  display: flex;
}

.profile__status-group.is-open .profile__submenu-chevron {
  color: var(--text);
}

.profile__submenu-option {
  width: 100%;
}

.chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000 !important;
  display: block !important;
}

.chat[hidden] {
  display: block !important;
}

.chat__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.08));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -8px 14px rgba(148, 163, 184, 0.14);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: rgba(20, 20, 20, 0.86);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .chat__toggle {
    border: none;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08));
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }
}

.chat__toggle::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.chat__toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.chat__toggle:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.chat__toggle:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.5);
  outline-offset: 2px;
}

.chat__toggle .material-symbols-outlined {
  position: relative;
  z-index: 1;
  color: rgba(20, 20, 20, 0.86);
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.chat__toggle-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: #c1121f;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.chat__toggle-badge[hidden] {
  display: none;
}

.log {
  display: none;
  position: fixed;
  right: 96px;
  bottom: 24px;
  z-index: 2147482999;
}

.log.log--visible {
  display: block;
}

.processes {
  position: fixed;
  right: 168px;
  bottom: 24px;
  z-index: 2147482999;
}

.processes__pill {
  min-width: 230px;
  height: 56px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background-color: #f2f2f2;
  border-radius: 999px;
  display: none;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  cursor: default;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  color: rgba(20, 20, 20, 0.86);
}

.processes__pill.is-visible {
  display: inline-flex;
}

.processes__pill-label {
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.processes__pill-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.processes__pill-status {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.processes__pill-ring {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.processes__pill-cancel {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(193, 18, 31, 0.14);
  color: #c1121f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  border-radius: 999px;
  z-index: 3;
}

.processes__pill-cancel .material-symbols-outlined {
  font-size: 18px;
}

.processes__pill-ring-svg {
  position: absolute;
  inset: 0;
  width: 36px;
  height: 36px;
  transform: rotate(-90deg);
}

.processes__pill-ring-track,
.processes__pill-ring-progress {
  fill: none;
  stroke-width: 3;
}

.processes__pill-ring-track {
  stroke: rgba(20, 20, 20, 0.18);
}

.processes__pill-ring-progress {
  stroke: #141414;
}

.processes__pill-percent {
  position: relative;
  font-size: 0.6rem;
  letter-spacing: 0.08rem;
  color: rgba(20, 20, 20, 0.86);
  z-index: 1;
}

.processes__pill-check {
  display: none;
  font-size: 20px;
  color: #1b7a3a;
  position: relative;
  z-index: 1;
}

.processes__pill-fail {
  display: none;
  font-size: 20px;
  color: #c1121f;
  position: relative;
  z-index: 1;
}

.processes__pill-close {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(20, 20, 20, 0.35);
  background: rgba(20, 20, 20, 0.12);
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}

.processes__pill-close .material-symbols-outlined {
  font-size: 16px;
}

.processes__pill:hover .processes__pill-close {
  opacity: 1;
  pointer-events: auto;
}

.processes__pill.is-complete .processes__pill-ring-progress {
  stroke: #1b7a3a;
}

.processes__pill.is-complete .processes__pill-ring-track {
  stroke: rgba(27, 122, 58, 0.2);
}

.processes__pill.is-complete .processes__pill-percent {
  display: none;
}

.processes__pill.is-complete .processes__pill-check {
  display: inline-flex;
}

.processes__pill.is-failed .processes__pill-ring-progress {
  stroke: #c1121f;
}

.processes__pill.is-failed .processes__pill-ring-track {
  stroke: rgba(193, 18, 31, 0.2);
}

.processes__pill.is-failed .processes__pill-percent {
  display: none;
}

.processes__pill.is-failed .processes__pill-fail {
  display: inline-flex;
}

.processes__pill.is-failed .processes__pill-status {
  color: #c1121f;
}

.processes__pill.is-canceled .processes__pill-label {
  text-decoration: line-through;
  color: var(--muted);
}

.processes__pill.is-canceled .processes__pill-status {
  color: #c1121f;
}

.processes__pill.is-processing .processes__pill-ring:hover .processes__pill-cancel {
  opacity: 1;
  pointer-events: auto;
}

.processes__pill.is-processing .processes__pill-ring:hover .processes__pill-percent {
  opacity: 0;
}

.processes__pill.is-processing .processes__pill-percent {
  pointer-events: none;
}

.processes__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: max-content;
  min-width: 230px;
  max-width: calc(100vw - var(--sidebar-width) - 48px);
  background: transparent;
  border: none;
  display: none;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.processes__panel .processes__header {
  display: none;
}

.processes__panel.is-open {
  display: flex;
}

.processes__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
}

.processes__title {
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.processes__close {
  border: none;
  background: transparent;
  cursor: pointer;
}

.processes__body {
  max-height: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  align-items: flex-end;
}

.processes__empty {
  font-size: 0.78rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
}

.processes__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 10px 12px;
}

.processes__pill--stacked {
  width: auto;
  min-width: 230px;
  display: inline-flex;
}

.processes__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.processes__tool {
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.processes__status {
  font-size: 0.82rem;
  color: var(--text);
}

.processes__bar {
  width: 100%;
  height: 6px;
  background: rgba(20, 20, 20, 0.1);
  position: relative;
}

.processes__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #141414;
  width: 0;
}

.log__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background-color: #f2f2f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  color: rgba(20, 20, 20, 0.86);
}

.log__toggle .material-symbols-outlined {
  color: rgba(20, 20, 20, 0.86);
}

.log__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 360px;
  height: 320px;
  min-width: 320px;
  min-height: 240px;
  max-width: calc(100vw - var(--sidebar-width) - 48px);
  max-height: 520px;
  background-color: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.log__panel.is-open {
  display: flex;
}

.log__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.log__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.log__title {
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.log__close,
.log__button {
  border: none;
  background: transparent;
  cursor: pointer;
}

.log__body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  font-size: 0.8rem;
  white-space: pre-wrap;
  color: var(--muted);
}

.chat__panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 480px;
  height: 420px;
  min-width: 480px;
  min-height: 440px;
  max-width: calc(100vw - var(--sidebar-width) - 48px);
  max-height: min(640px, calc(100vh - 96px));
  background-color: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.chat__resize {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  cursor: nwse-resize;
}

.chat__resize::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(20, 20, 20, 0.35);
  border-left: 2px solid rgba(20, 20, 20, 0.35);
}

.chat__panel.is-open {
  display: flex;
}

.chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.chat__title {
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.chat__close {
  border: none;
  background: transparent;
  cursor: pointer;
}

.chat__search {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.chat__search input {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 8px 10px;
  font-size: 0.85rem;
  outline: none;
}

.chat__body {
  display: grid;
  grid-template-columns: minmax(160px, 200px) minmax(300px, 1fr);
  height: 100%;
  min-height: 0;
}

.chat--ai .chat__search {
  display: none;
}

.chat--ai .chat__body {
  grid-template-columns: 1fr;
}

.chat--ai .chat__users {
  display: none;
}

.chat--admin-request .chat__search {
  display: none;
}

.chat--admin-request .chat__panel,
.chat--admin-request .chat__header,
.chat--admin-request .chat__messages,
.chat--admin-request .chat__history,
.chat--admin-request .chat__composer {
  background: #ffffff;
}

.chat--admin-request .chat__body {
  grid-template-columns: 1fr;
}

.chat--admin-request .chat__users {
  display: none;
}

.chat--admin-request .chat__header {
  border-bottom: none;
}

.chat--admin-request .chat__composer {
  border-top: none;
}

.chat--admin-request .chat__history {
  align-items: stretch;
}

.chat__history--admin-request {
  justify-content: center;
}

.chat__request-stage {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.chat__request-stage--home {
  max-width: none;
  min-height: 260px;
  align-items: center;
  justify-content: center;
}

.chat__request-stage:not(.chat__request-stage--home) {
  min-height: 320px;
}

.chat__request-stage--sent {
  max-width: none;
  min-height: 320px;
  justify-content: space-between;
}

.chat__request-sent {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.chat__request-sent-icon {
  font-size: 56px;
  line-height: 1;
  color: #141414;
}

.chat__request-sent-text {
  max-width: 320px;
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: #141414;
}

.chat__request-intro {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: #141414;
}

.chat__request-options {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.chat__request-options--reasons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.chat__request-options--split {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.chat__request-option {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: transparent;
  min-height: 44px;
  padding: 10px 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.chat__request-options--reasons .chat__request-option {
  min-height: 40px;
  padding: 8px 10px;
  gap: 4px;
  font-size: 0.7rem;
}

.chat__request-options--reasons .chat__request-option .material-symbols-outlined {
  font-size: 18px;
}

.chat__request-options--split .chat__request-option {
  width: 220px;
  min-height: 120px;
  border: none;
}

.chat__request-options--split .chat__request-option .material-symbols-outlined {
  font-size: 44px;
  line-height: 1;
}

.chat__request-option.is-active {
  background: rgba(20, 20, 20, 0.08);
}

.chat__request-option .material-symbols-outlined {
  font-size: 22px;
}

.chat__request-selected {
  width: 100%;
  text-align: center;
  font-size: 0.74rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: var(--muted);
}

.chat__request-back {
  border: 1px solid rgba(20, 20, 20, 0.35);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  font-size: 0.66rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text);
  padding: 5px 10px;
  border-radius: 999px;
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 4px;
}

.chat__request-back--menu {
  align-self: center;
}

.chat__request-composer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat__request-textarea {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: #ffffff;
  min-height: 120px;
  padding: 10px;
  resize: vertical;
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text);
}

.chat__request-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat__request-actions .chat__request-back {
  margin: 0;
  align-self: auto;
}

.chat__request-submit {
  border: 1px solid rgba(20, 20, 20, 0.75);
  background: #141414;
  color: #ffffff;
  min-height: 32px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  cursor: pointer;
}

.chat__request-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.chat__request-status {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.3;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  color: var(--muted);
}

.chat__request-status.is-error {
  color: #8a1111;
}

.chat__request-status.is-success {
  color: #0f7a2c;
}

.chat__composer.is-hidden {
  display: none;
}

.chat__admin-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  border-bottom: none;
}

.chat__admin-tab {
  border: none;
  background: #d5d5d5;
  min-height: 36px;
  font-size: 0.68rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  cursor: pointer;
}

.chat__admin-tab.is-active {
  background: #ffffff;
}

.chat--admin-no-header .chat__header {
  display: none;
}

.chat--admin-no-header .chat__admin-tabs {
  border-top: none;
  min-height: 40px;
  padding: 0 44px 0 28px;
}

.chat--admin-no-header .chat__admin-tab {
  min-height: 40px;
}

.chat--admin-no-header .chat__resize {
  top: 2px;
  left: 2px;
  z-index: 6;
}

.chat--admin-no-header .chat__close {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
}

.chat__admin-actions {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.chat__admin-actions.is-hidden {
  display: none;
}

.chat--user-split .chat__title {
  display: none;
}

.chat--user-split .chat__header {
  position: relative;
  padding: 0 76px 0 0;
  min-height: 40px;
  border-bottom: none;
}

.chat--user-split .chat__resize {
  left: 2px;
  right: auto;
  top: 2px;
  width: 20px;
  height: 20px;
  z-index: 4;
}

.chat--user-split .chat__resize::before {
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(20, 20, 20, 0.45);
  border-left: 2px solid rgba(20, 20, 20, 0.45);
  border-right: none;
}

.chat--user-split .chat__close {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.chat--user-split .chat__admin-tabs {
  width: 100%;
  height: 40px;
  border: none;
}

.chat--user-split .chat__admin-tab {
  min-height: 40px;
  background: #d5d5d5;
}

.chat--user-split .chat__admin-tab.is-active {
  background: #ffffff;
}

.chat--user-split .chat__admin-cases {
  flex: 1;
  height: auto;
  padding: 8px 12px 10px;
}

.chat--user-split .chat__admin-cases.is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chat--user-split .chat__admin-cases-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: auto 0;
}

.chat--user-split .chat__request-stage,
.chat--user-split .chat__request-stage--home,
.chat--user-split .chat__request-stage:not(.chat__request-stage--home),
.chat--user-split .chat__request-stage--sent {
  min-height: 0;
}

.chat--user-split .chat__request-stage--home {
  justify-content: flex-start;
  padding-top: 12px;
}

.chat--user-split .chat__request-stage--reasons {
  margin: auto;
}

.chat--user-split .chat__request-stage--reasons .chat__request-back {
  align-self: center;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 0;
}

.chat--user-split .chat__admin-cases-list > .chat__request-stage {
  margin: auto;
}

.chat--user-split .chat__admin-cases-list > .chat__request-stage > .chat__request-back {
  align-self: center;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 0;
}

.chat--user-split .chat__body {
  flex: 1;
  min-height: 0;
}

.chat__admin-user-info {
  margin-left: 0;
  border: 1px solid rgba(20, 20, 20, 0.16);
  background: #ffffff;
  color: #111111;
  min-height: 28px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  cursor: pointer;
}

.chat__admin-user-info .material-symbols-outlined {
  font-size: 15px;
}

.chat__admin-close-case {
  border-color: rgba(170, 20, 20, 0.38);
  color: #7a1111;
}

.chat__admin-user-info.is-hidden {
  display: none;
}

.chat__admin-cases {
  display: none;
  padding: 10px 12px;
  overflow-y: auto;
  height: calc(100% - 72px);
}

.chat__admin-cases.is-active {
  display: block;
}

.chat__admin-cases-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat__admin-case {
  border: 1px solid rgba(20, 20, 20, 0.14);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat__admin-case.is-disabled {
  opacity: 0.7;
}

.chat__admin-case-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.64rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: var(--muted);
}

.chat__admin-case-body {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat__admin-case-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.chat__admin-case-row-label {
  font-size: 0.62rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: var(--muted);
}

.chat__admin-case-row-value {
  font-size: 0.72rem;
  color: var(--text);
  text-align: right;
}

.chat__admin-case-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.chat__admin-case-action {
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: #fff;
  color: #111;
  min-height: 26px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  cursor: pointer;
}

.chat__admin-case-action .material-symbols-outlined {
  font-size: 14px;
}

.chat__admin-case-action:disabled {
  opacity: 0.5;
  cursor: default;
}

.chat__admin-case-close {
  border: 1px solid rgba(170, 20, 20, 0.38);
  background: #fff;
  color: #7a1111;
}

.swal-popup--case-message {
  width: min(480px, 88vw);
  aspect-ratio: 3 / 4;
  max-height: min(84vh, 780px);
}

.swal-popup--case-message .swal2-html-container {
  text-align: left;
  overflow-y: auto;
}

.chat__admin-case-message-modal-body {
  white-space: pre-wrap;
  line-height: 1.35;
}

.chat__admin-case-context {
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: #ffffff;
  padding: 8px 10px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat__admin-case-context-reason {
  font-size: 0.58rem;
  line-height: 1.1;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: var(--muted);
}

.chat__admin-case-context-body {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.chat__admin-cases-empty {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: var(--muted);
}

.chat__users {
  border-right: 1px solid rgba(20, 20, 20, 0.08);
  overflow-y: auto;
}

.chat__user {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat__user-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: #c1121f;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-left: auto;
}

.chat__user-badge[hidden] {
  display: none;
}

.chat__user-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.chat__user-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.chat__user-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background-color: rgba(20, 20, 20, 0.06);
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text);
}

.chat__user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat__user.is-active {
  background-color: rgba(20, 20, 20, 0.06);
}

.chat__user-name {
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat__user-status {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #a0a0a0;
}

.chat__status-dot--avatar {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
}

.chat__status-dot[data-status='online'] {
  background-color: #2f9e44;
}

.chat__status-dot[data-status='busy'] {
  background-color: #c1121f;
}

.chat__messages {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  flex: 1;
  min-height: 0;
}

.chat__history {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  min-height: 0;
}

.chat__empty-state {
  margin: auto;
  max-width: 260px;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.02rem;
  color: rgba(20, 20, 20, 0.7);
}

.chat__bubble {
  max-width: 80%;
  padding: 8px 10px;
  border: none;
  font-size: 0.8rem;
  line-height: 1.4;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background-color: #dbe9ff;
}

.chat__bubble-text {
  min-width: 0;
}

.chat__bubble-time {
  font-size: 0.6rem;
  color: var(--muted);
  flex-shrink: 0;
}

.chat__bubble--me {
  margin-left: auto;
  background-color: #e6e6e6;
}

.chat__bubble--system {
  background-color: rgba(20, 20, 20, 0.08);
}

.chat--admin-request .chat__bubble,
.chat--admin-request .chat__bubble--me,
.chat--admin-request .chat__bubble--system {
  background-color: #ffffff;
  border: none;
}

.chat__typing {
  max-width: 80%;
  padding: 8px 10px;
  border: none;
  font-size: 0.8rem;
  line-height: 1.4;
  border-radius: 14px;
  display: flex;
  align-items: center;
  background-color: #dbe9ff;
}

.chat__typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chat__typing-dot {
  width: 6px;
  height: 6px;
  background-color: var(--muted);
  animation: chatTypingPulse 1s infinite ease-in-out;
}

.chat__typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chat__typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chatTypingPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.site-footer {
  padding: 0 24px 24px;
  margin-top: 48px;
  position: relative;
}

.site-footer__rule {
  width: 100%;
  height: 1px;
  background-color: rgba(20, 20, 20, 0.12);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2.2fr);
  gap: 32px;
  padding-top: 24px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.site-footer__logo {
  width: min(200px, 80%);
  height: auto;
}

.site-footer__tagline {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.site-footer__title {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04rem;
  text-transform: none;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--text);
}

.site-footer__contact a.site-footer__link[href^="mailto:"] {
  text-decoration: underline;
}

.site-footer__contact a.site-footer__link[href^="mailto:"]:hover,
.site-footer__contact a.site-footer__link[href^="mailto:"]:focus-visible {
  text-decoration: underline;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__contact-button {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04rem;
  text-transform: none;
  line-height: inherit;
}

main:not(.dashboard__content--tool-split):not(.dashboard__content--facechex) .site-footer .site-footer__contact-button {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.04rem;
}

.site-footer__contact-button:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.4);
  outline-offset: 2px;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__brand .site-footer__socials {
  margin-top: 4px;
  width: min(200px, 80%);
  justify-content: center;
}

.site-footer__social {
  border: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  color: var(--text);
}

.site-footer__social-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: none;
}

.site-footer__rating {
  width: 52px;
  height: auto;
}

.site-footer__rating-link {
  display: inline-flex;
  align-self: flex-start;
}

.site-footer__rating-link--bottom {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 22px;
  align-self: center;
}

.age-gate__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding-bottom: 6px;
}

.age-gate__rating {
  width: 56px;
  height: auto;
}

.age-gate__rating-link {
  display: inline-flex;
}

.age-gate__logo {
  width: 250px;
  height: auto;
}

.age-gate__title {
  margin: 4px 0 0;
  font-size: 1.3rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  font-weight: 700;
}

.age-gate__subtitle {
  margin: 2px 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.03rem;
}

.age-gate__content [data-age-gate-body-2],
.age-gate__content [data-age-gate-body-3] {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  font-weight: 400;
}

.age-gate__content [data-age-gate-title],
.age-gate__content [data-age-gate-body-1],
.age-gate__content [data-age-gate-body-2],
.age-gate__content [data-age-gate-body-3] {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.age-gate-popup .swal2-html-container {
  margin-top: 0;
}

.age-gate-popup .swal2-actions {
  flex-direction: row;
  justify-content: center;
  gap: 12px;
}

.age-gate-popup .swal2-footer {
  margin: 16px 0 0;
  padding: 0;
  border-top: 0;
  display: flex;
  justify-content: center;
}

.age-gate__language {
  position: absolute;
  top: -8px;
  left: -8px;
}

.age-gate__language-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.25);
  color: #141414;
  font-size: 0.7rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 0;
}

.age-gate__language-icon {
  font-size: 16px;
}

.age-gate__language-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 150px;
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.18);
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.12);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 0;
  z-index: 2;
}

.age-gate__language-menu[hidden] {
  display: none;
}

.age-gate__language-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 6px 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}

.legal-page {
  background-color: #f5f5f5;
  color: var(--text);
  min-height: 100vh;
  --legal-doc-width: 750px;
}

.legal-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 72px;
  background-color: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.12);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 10px 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.7rem;
  background-color: #ffffff;
}

.legal-back .material-symbols-outlined {
  font-size: 18px;
}

.legal-title-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-title {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-weight: 500;
}

.legal-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-card {
  border: none;
  background-color: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-card__title {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-card__body {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
}

.legal-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
  line-height: 1.6;
}

.legal-shell--embedded {
  max-width: none;
  background-color: transparent;
  border: none;
  padding: 0;
  gap: 0;
}

.legal-shell--document {
  max-width: none;
  background-color: transparent;
  border: none;
  padding: 32px 16px 72px;
  gap: 32px;
  align-items: center;
}

.legal-shell--editor {
  max-width: 1100px;
  background-color: transparent;
  border: none;
  padding: 40px 24px 72px;
  gap: 0;
}

.legal-doc-controls {
  width: 100%;
  max-width: var(--legal-doc-width);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-doc-controls__right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.legal-doc-controls--single-logo {
  justify-content: flex-end;
}

.legal-doc-action {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background-color: #ffffff;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.7rem;
}

.legal-doc-action .material-symbols-outlined {
  font-size: 18px;
}

.legal-doc-logo {
  padding: 8px 16px;
}

.legal-doc-logo img {
  display: block;
  height: 22px;
  width: auto;
}

.legal-doc-language {
  position: relative;
}

.legal-doc-language-toggle,
.legal-doc-language-option {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background-color: #ffffff;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.7rem;
  cursor: pointer;
}

.legal-doc-language-toggle {
  min-width: 160px;
}

.legal-doc-language-icon,
.legal-doc-language-chevron {
  font-size: 18px;
}

.legal-doc-language-chevron {
  margin-left: auto;
}

.legal-doc-language-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
}

.legal-doc-language-menu.is-open {
  display: flex;
}

.legal-doc-language-option.is-active {
  background: rgba(20, 20, 20, 0.06);
}

.legal-doc-language-option[hidden] {
  display: none;
}

.model-application-form__top-logo {
  padding: 0;
}

.model-application-form__top-logo img {
  height: 34px;
}

.legal-document {
  width: 100%;
  max-width: var(--legal-doc-width);
  margin: 0 auto;
  padding: 32px 28px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background-color: #ffffff;
  line-height: 1.65;
  min-height: 60vh;
}

.legal-document img {
  max-width: 100%;
  height: auto;
}

.image-auth {
  display: grid;
  gap: 14px;
  text-align: left;
}

.image-auth__title {
  margin: 0;
  text-align: left;
  font-size: clamp(1.18rem, 1rem + 0.7vw, 1.55rem);
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

.image-auth__updated {
  margin: 0;
}

.image-auth h2 {
  margin: 12px 0 0;
  font-size: 1rem;
  letter-spacing: 0.02rem;
  text-transform: none;
}

.image-auth p {
  margin: 0;
}

.image-auth__list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 7px;
}

.image-auth__fieldset {
  margin: 4px 0 0;
  border: 1px solid rgba(20, 20, 20, 0.16);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.image-auth__legend {
  font-size: 0.76rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  padding: 0 6px;
}

.image-auth__radio-option,
.image-auth__check-option {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.image-auth__radio-option input[type="radio"],
.image-auth__check-option input[type="checkbox"] {
  margin-top: 2px;
}

.image-auth__check-option--other {
  align-items: center;
  flex-wrap: wrap;
}

.image-auth__option-line {
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
}

.image-auth__inline-text {
  min-width: min(380px, 100%);
  flex: 1;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.32);
  padding: 6px 0;
  font: inherit;
}

.image-auth__inline-text:focus {
  outline: none;
  border-bottom-color: #111111;
}

.image-auth__line-field {
  min-width: min(420px, 100%);
  max-width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.32);
  padding: 4px 0;
  font: inherit;
  background: transparent;
}

.image-auth__line-field:focus {
  outline: none;
  border-bottom-color: #111111;
}

.image-auth__line-field:not([readonly]):not([disabled]),
.image-auth__inline-text:not([readonly]):not([disabled]) {
  background: #f1f1f1;
}

.image-auth__line-field[data-image-auth-model-email="true"],
.image-auth__line-field[data-image-auth-record-email="true"] {
  background: #f1f1f1;
}

.image-auth__line-field[readonly] {
  background: #f1f1f1;
}

.image-auth__required {
  color: #c40000;
  font-weight: 700;
  margin-left: 3px;
}

.image-auth__line-field.image-auth__required-missing-input:not([readonly]):not([disabled]) {
  background: #f7dcdc;
}

.image-auth__line-field--short {
  min-width: 150px;
  max-width: 220px;
}

.image-auth__line-field--date {
  min-width: 220px;
  max-width: 300px;
}

.image-auth__paid-block {
  border-left: 3px solid rgba(20, 20, 20, 0.22);
  padding-left: 12px;
  display: grid;
  gap: 6px;
}

.image-auth__consent {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  display: grid;
  gap: 12px;
}

.image-auth__accept {
  justify-self: start;
}

.image-auth__back-bottom {
  justify-self: start;
}

@media (max-width: 700px) {
  .image-auth__inline-text {
    min-width: 100%;
  }

  .image-auth__line-field {
    min-width: 100%;
  }
}

.public-form__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.model-application-form__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 12;
}

.model-application-form__language {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: #ffffff;
  padding: 6px 8px;
}

.model-application-form__language .material-symbols-outlined {
  font-size: 18px;
}

.model-application-form__language select {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
}

.model-application-form {
  position: relative;
}

.model-application-form__header-logo {
  width: 100%;
  display: flex;
  justify-content: center;
}

.model-application-form__header-logo img {
  display: block;
  width: min(620px, 96vw);
  height: auto;
}

.model-application-form,
.model-application-form input,
.model-application-form textarea,
.model-application-form button,
.model-application-form h1,
.model-application-form h2,
.model-application-form h3,
.model-application-form p,
.model-application-form span,
.model-application-form label,
.model-application-form div,
.model-application-form article,
.model-application-form section {
  font-family: var(--font-text-ui);
  font-weight: 300;
}

.model-application-form .material-symbols-outlined {
  font-family: "Material Symbols Outlined";
}

.clone-creation {
  display: grid;
  gap: 22px;
}

.clone-creation__hero-media {
  min-height: clamp(320px, 50vh, 520px);
  position: relative;
  overflow: hidden;
}

.clone-creation__hero-media::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 25%, rgba(37, 99, 235, 0.72), transparent 46%),
    radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.62), transparent 45%),
    radial-gradient(circle at 45% 75%, rgba(168, 85, 247, 0.48), transparent 52%),
    linear-gradient(120deg, #030712 0%, #0b1c4a 45%, #220a42 100%);
  background-size: 130% 130%, 140% 140%, 150% 150%, 100% 100%;
  animation: cloneCreationSciFiFlow 14s ease-in-out infinite alternate;
  transform: translateZ(0);
}

.clone-creation__hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}

.clone-creation__hero-content {
  position: relative;
  z-index: 1;
  min-height: clamp(320px, 50vh, 520px);
  display: grid;
  align-content: center;
}

.clone-creation__hero-title {
  margin: 0;
  max-width: 12ch;
  color: #f8fafc;
  font-size: clamp(1.9rem, 5.6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 12px 34px rgba(2, 6, 23, 0.65);
  animation: cloneCreationHeroReveal 820ms cubic-bezier(0.2, 0.65, 0.2, 1) both;
}

.clone-creation__hero-subtitle {
  margin: 0;
  color: var(--muted);
}

.clone-creation__wrapper {
  width: min(100%, 1360px);
  margin: 0 auto;
}

.clone-creation__card {
  padding: clamp(18px, 2vw, 32px);
}

.clone-creation__step {
  display: grid;
  gap: 26px;
}

.clone-creation__step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.clone-creation__step-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  padding: 18px 16px 16px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  min-height: 310px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.clone-creation__step-image-wrap {
  width: 90px;
  height: 90px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  overflow: hidden;
  border-radius: 999px;
}

.clone-creation__step-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 999px;
}

.clone-creation__step-title {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02rem;
  text-transform: none;
}

.clone-creation__step-copy {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.clone-creation__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.clone-creation__actions > * {
  min-height: 52px;
  min-width: 220px;
}

.clone-creation__upload {
  display: grid;
  gap: 14px;
}

.clone-creation__upload-header {
  display: grid;
  gap: 8px;
  text-align: center;
}

.clone-creation__upload-title {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  letter-spacing: 0.04rem;
  text-transform: none;
}

.clone-creation__upload-copy {
  margin: 0;
  color: var(--muted);
}

.clone-creation__counter {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.clone-creation__dropzone {
  position: relative;
  width: clamp(180px, 22vw, 220px);
  height: clamp(180px, 22vw, 220px);
  margin: 0 auto;
  border: 1px dashed rgba(20, 20, 20, 0.28);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.02), rgba(20, 20, 20, 0.045));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.clone-creation__dropzone--inline {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  padding: 12px;
}

.clone-creation__dropzone--inline .clone-creation__dropzone-title {
  font-size: 0.68rem;
  line-height: 1.3;
}

.clone-creation__dropzone--inline .clone-creation__dropzone-copy {
  font-size: 0.68rem;
  line-height: 1.3;
}

.clone-creation__dropzone:hover,
.clone-creation__dropzone:focus-visible {
  border-color: rgba(17, 17, 17, 0.5);
  transform: translateY(-1px);
}

.clone-creation__dropzone.is-dragover {
  border-color: #111111;
  background: rgba(20, 20, 20, 0.08);
}

.clone-creation__file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.clone-creation__dropzone-content {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.clone-creation__dropzone-icon {
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1;
}

.clone-creation__dropzone-title {
  font-weight: 600;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
}

.clone-creation__dropzone-copy {
  color: var(--muted);
  font-size: 0.9rem;
}

.clone-creation__preview {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.clone-creation__preview-slot {
  display: block;
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.clone-creation__preview-slot .clone-creation__dropzone {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 1 / 1;
}

.clone-creation__preview-item {
  position: relative;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #f7f7f7;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.clone-creation__preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.clone-creation__preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.clone-creation__preview-remove .material-symbols-outlined {
  font-size: 18px;
}

.clone-creation__upload-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.clone-creation__done {
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 24px 20px;
  background: #ffffff;
  display: grid;
  gap: 10px;
  text-align: center;
}

.clone-creation__done-icon {
  justify-self: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clone-creation__done-title,
.clone-creation__done-copy {
  margin: 0;
}

.clone-creation__done-copy {
  color: var(--muted);
}

.clone-creation__done-title {
  text-transform: lowercase;
}

.clone-creation__swal-content {
  display: grid;
  gap: 10px;
  text-align: left;
}

.clone-creation__swal-image {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid rgba(20, 20, 20, 0.16);
}

.clone-creation__swal-question,
.clone-creation__swal-answer {
  margin: 0;
}

.clone-creation__swal-answer {
  color: var(--muted);
}

@media (max-width: 1200px) {
  .clone-creation__step-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .clone-creation__step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clone-creation__preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .clone-creation__preview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .clone-creation__actions,
  .clone-creation__upload-actions {
    justify-content: stretch;
  }

  .clone-creation__actions > *,
  .clone-creation__upload-actions > * {
    width: 100%;
    min-width: 100%;
    justify-content: center;
  }
}

@keyframes cloneCreationSciFiFlow {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1);
    filter: hue-rotate(0deg) saturate(1.02);
  }
  100% {
    transform: translate3d(3%, 2%, 0) scale(1.08);
    filter: hue-rotate(12deg) saturate(1.16);
  }
}

@keyframes cloneCreationHeroReveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.98);
    letter-spacing: 0.05em;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    letter-spacing: 0.01em;
  }
}

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

  .clone-creation__actions,
  .clone-creation__upload-actions {
    justify-content: stretch;
  }

  .clone-creation__actions .button,
  .clone-creation__upload-actions .button,
  .clone-creation__upload-actions .button--ghost {
    width: 100%;
    justify-content: center;
  }
}

.public-form__title {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2rem);
  letter-spacing: 0.03rem;
  text-transform: uppercase;
}

.public-form__description {
  margin: 0;
  color: var(--muted);
}

.public-form__status {
  min-height: 18px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.public-form__status.is-error {
  color: #b30000;
}

.public-form__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.public-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.public-form__field > span {
  font-size: 0.78rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.public-form__field input,
.public-form__field textarea,
.public-form__field select {
  width: 100%;
}

.public-form__actions {
  display: flex;
  justify-content: flex-start;
}

.public-form__empty {
  margin: 0;
  color: var(--muted);
}

.model-application-native {
  display: grid;
  gap: 14px;
  min-height: calc(100vh - 180px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.model-application-native[data-page-ready="true"] {
  opacity: 1;
  transform: translateY(0);
}

.model-application-native__status {
  min-height: 18px;
  margin: 0;
  margin-top: 2px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--muted);
}

.model-application-native__status.is-error {
  color: #b30000;
}

body.model-application-no-scroll {
  overflow: hidden;
}

.model-application-native__progress {
  width: 100%;
  height: 4px;
  background: rgba(20, 20, 20, 0.12);
  overflow: hidden;
}

.model-application-native__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: #111111;
  transition: width 0.2s ease;
}

.model-application-native__form {
  display: grid;
  gap: 16px;
  min-height: calc(100vh - 250px);
  grid-template-rows: minmax(0, 1fr) auto;
  scrollbar-gutter: stable;
}

.model-application-native__content {
  display: grid;
  gap: 14px;
  align-self: start;
}

.model-application-native__content--enter {
  animation: modelAppStepFadeIn 0.28s ease;
}

.model-application-native__content--final {
  min-height: 260px;
  align-content: start;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding-top: 8px;
}

.model-application-native__final-icon {
  position: relative;
  width: 110px;
  height: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.model-application-native__final-icon-doc,
.model-application-native__final-icon-check {
  font-family: "Material Symbols Outlined";
  line-height: 1;
}

.model-application-native__final-icon-doc {
  font-size: 84px;
  color: #141414;
}

.model-application-native__final-icon-check {
  position: absolute;
  right: 6px;
  bottom: 10px;
  font-size: 34px;
  color: #0b6b3a;
  background: #ffffff;
}

.model-application-native__section-title {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

.model-application-native__description {
  display: grid;
  gap: 10px;
}

.model-application-native__description p,
.model-application-native__section-description {
  margin: 0;
  line-height: 1.6;
  text-align: justify;
}

.model-application-native__content--final .model-application-native__section-description {
  text-align: center;
}

.model-application-native__rich-block p {
  margin: 0;
  line-height: 1.6;
  text-align: justify;
}


.model-application-native__media {
  margin: 8px 0 2px;
  background: #ffffff;
  overflow: visible;
}

.model-application-native__media-stack {
  display: grid;
  gap: 10px;
}

.model-application-native__media-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: rgba(20, 20, 20, 0.03);
}

.model-application-native__after-media-note {
  margin: 2px 0 0;
  line-height: 1.6;
  text-align: center;
}

.model-application-native__rich-block ul {
  margin: 8px 0 0 18px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.model-application-native__questions {
  display: grid;
  gap: 12px;
}

.model-application-native__question {
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  gap: 8px;
}

.model-application-native__question h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.model-application-native__question-description {
  margin: -2px 0 0;
  color: rgba(20, 20, 20, 0.7);
  font-size: 0.82rem;
  line-height: 1.5;
}

.model-application-native__required {
  color: #b30000;
}

.model-application-native__question input:not([type="radio"]),
.model-application-native__question select,
.model-application-native__question textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.32);
  background: transparent;
  padding: 9px 0;
  font: inherit;
}

.model-application-native__question textarea {
  resize: none;
  min-height: 40px;
  overflow: hidden;
}

.model-application-native__question input:not([type="radio"]):focus,
.model-application-native__question select:focus,
.model-application-native__question textarea:focus {
  outline: none;
  border-bottom-color: #111111;
}

.model-application-native__date-control {
  position: relative;
}

.model-application-native__date-native-input,
.model-application-native__date-mask-input {
  width: 100%;
}

.model-application-native__date-mask-input::placeholder {
  letter-spacing: 0.12rem;
  color: rgba(20, 20, 20, 0.45);
}

.model-application-native__date-mask-input {
  padding-right: 34px;
}

.model-application-native__date-picker-trigger {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  cursor: pointer;
}

.model-application-native__date-picker-trigger .material-symbols-outlined {
  font-size: 18px;
}

.model-application-native__date-native-input[data-model-app-date-picker-proxy] {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  opacity: 0;
  pointer-events: none;
}

.model-application-native__completion-sticky-link {
  position: sticky;
  bottom: 0;
  z-index: 6;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 440px);
  border: 1px solid #111111;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 10px 14px;
}

.model-application-native__completion-sticky-link .material-symbols-outlined {
  font-size: 16px;
}

.model-application-native__radio-group {
  display: grid;
  gap: 8px;
}

.model-application-native__radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
}

.model-application-native__radio-option input[type="radio"] {
  width: auto;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.model-application-native__file-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: #ffffff;
  color: #111111;
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
}

.model-application-native__file-upload .material-symbols-outlined {
  font-size: 18px;
}

.model-application-native__file-upload:hover,
.model-application-native__file-upload:focus-within {
  border-color: rgba(20, 20, 20, 0.36);
}

.model-application-native__file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.model-application-native__file-thumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.model-application-native__file-thumb-item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.model-application-native__file-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border: 1px solid rgba(20, 20, 20, 0.22);
}

.model-application-native__file-clear {
  margin-left: auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #b30000;
  text-decoration: underline;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.model-application-native__file-clear:disabled {
  opacity: 0.45;
  cursor: default;
}

.model-application-native__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.model-application-native__file-list {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.model-application-native__file-list li {
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(20, 20, 20, 0.84);
  overflow-wrap: anywhere;
}

.model-application-native__actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: #ffffff;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  padding-top: 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

.model-application-native__actions-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.model-application-native__btn {
  appearance: none;
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: #ffffff;
  color: #111111;
  padding: 10px 14px;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
}

.model-application-native__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.model-application-native__btn--primary {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.model-application-native__btn-icon {
  font-size: 16px;
}

.model-application-native__btn--secondary {
  border-color: rgba(20, 20, 20, 0.34);
}

.model-application-native__btn--clear {
  border-style: dashed;
}

@keyframes modelAppStepFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-application-native {
    transition: none;
    transform: none;
  }

  .model-application-native__content--enter {
    animation: none;
  }
}

@media (max-width: 680px) {
  .model-application-native {
    min-height: 0;
  }

  .model-application-native__form {
    min-height: 0;
    grid-template-rows: auto auto;
  }

  .model-application-native__actions,
  .model-application-native__actions-right {
    width: auto;
  }

  .model-application-native__btn,
  .model-application-native__btn--primary,
  .model-application-native__btn--secondary,
  .model-application-native__btn--clear {
    width: auto;
    justify-content: center;
    text-align: center;
  }

  .model-application-native__file-row {
    flex-wrap: wrap;
  }

  .model-application-native__file-thumbs {
    width: 100%;
  }

  .model-application-native__file-clear {
    margin-left: 0;
  }
}

.legal-scroll-top {
  position: fixed;
  left: 50%;
  top: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 20, 0.25);
  background: #ffffff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.legal-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.legal-scroll-top .material-symbols-outlined {
  font-size: 22px;
}

.legal-doc-actions {
  width: 100%;
  display: flex;
  justify-content: center;
}

.legal-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 10px 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.7rem;
  background-color: #ffffff;
}

.legal-home-link .material-symbols-outlined {
  font-size: 18px;
}

.legal-doc {
  width: 100%;
  display: flex;
  justify-content: center;
}

.legal-doc .doc-content {
  width: 100%;
  max-width: var(--legal-doc-width, 600px) !important;
  margin: 0 auto;
}

.legal-doc .c3,
.legal-doc .c10,
.legal-doc .c11,
.legal-doc .c16 {
  max-width: var(--legal-doc-width, 600px) !important;
  margin: 0 auto;
}

.legal-embed {
  display: flex;
  justify-content: center;
  padding: 40px 20px 72px;
}

.legal-embed .doc-content {
  margin: 0;
  width: 100%;
  max-width: 600px !important;
}

.legal-embed ul,
.legal-embed ol {
  margin-left: 0;
  padding-left: 0;
}

.legal-embed li {
  margin-left: 0;
  padding-left: 0;
}

@media (max-width: 640px) {
  .legal-shell {
    padding: 24px 18px 64px;
  }

  .legal-title {
    font-size: 1.3rem;
  }

  .legal-doc-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .legal-doc-controls__right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .legal-doc-action {
    justify-content: center;
  }

  .legal-doc-language-toggle,
  .legal-doc-language-option {
    width: 100%;
    justify-content: center;
  }

  .legal-doc-language-menu {
    left: 0;
    right: 0;
  }

  .legal-scroll-top {
    left: 50%;
    right: auto;
    transform: translate(-50%, 0);
  }

  .legal-scroll-top.is-visible {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 900px) {
  .site-footer {
    padding-bottom: 96px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

.chat__composer {
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.chat__input-wrap {
  flex: 1;
  min-width: 220px;
  flex-basis: 220px;
  position: relative;
  display: flex;
  align-items: stretch;
}

.chat__composer input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  padding: 8px 34px 8px 10px;
  font-size: 0.85rem;
  outline: none;
}

.chat__emoji-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(20, 20, 20, 0.32);
  transition: color 0.15s;
  flex-shrink: 0;
  z-index: 1;
}

.chat__emoji-btn:hover {
  color: rgba(20, 20, 20, 0.72);
}

.chat__emoji-btn .material-symbols-outlined {
  font-size: 17px;
}

.chat__emoji-picker-wrap {
  position: absolute;
  bottom: 66px;
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
  border-top: 1px solid rgba(20, 20, 20, 0.1);
}

.chat__emoji-picker-wrap.is-open {
  display: block;
}

emoji-picker {
  width: 100%;
  height: 280px;
  --border-radius: 0;
  --border-size: 0px;
  --background: #ffffff;
  --button-hover-background: rgba(20, 20, 20, 0.06);
  --button-active-background: rgba(20, 20, 20, 0.1);
  --input-border-radius: 0;
  --input-border-color: rgba(20, 20, 20, 0.2);
  --input-font-size: 0.82rem;
  --emoji-size: 1.4rem;
  --emoji-padding: 3px;
  --category-emoji-size: 1rem;
}

.chat__send {
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chat__send .material-symbols-outlined {
  font-size: 1rem;
}

@media (max-width: 640px) {
  .chat {
    right: 16px;
    bottom: 16px;
  }

  .log {
    right: 88px;
    bottom: 16px;
  }

  .chat__panel {
    width: calc(100vw - 32px);
    height: calc(100vh - 140px);
    min-width: 0;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 140px);
  }

  .log__panel {
    width: calc(100vw - 32px);
    height: 40vh;
    max-width: calc(100vw - 32px);
  }

  .chat__body {
    grid-template-columns: 1fr;
  }

  .chat__users {
    max-height: 120px;
  }
}

.sidebar__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sidebar__header--collapse {
  align-items: flex-start;
}

.sidebar__home-shortcut {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  z-index: 2;
}

.sidebar__home-shortcut .material-symbols-outlined {
  font-size: 20px;
}

.sidebar__home-shortcut:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.4);
  outline-offset: 2px;
}

.sidebar__collapse {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.sidebar__collapse .material-symbols-outlined {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.sidebar__logo {
  width: 140px;
  height: auto;
}

.sidebar__title {
  font-size: 0.75rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  max-width: 140px;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar__divider {
  height: 1px;
  background: rgba(20, 20, 20, 0.15);
  margin: 6px 0;
}

.sidebar__language {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.sidebar__language-toggle,
.sidebar__language-option {
  border: none;
  background: transparent;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.75rem;
  font-family: var(--font-text-ui);
  font-weight: 400;
  justify-content: flex-start;
}

.sidebar__language-toggle {
  width: 100%;
}

.sidebar__language-icon,
.sidebar__language-chevron {
  font-size: 1rem;
  line-height: 1;
}

.sidebar__language-icon {
  width: 20px;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.sidebar__language-chevron {
  margin-left: auto;
}

.sidebar__language-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 20, 20, 0.12);
  z-index: 3;
}

.sidebar__language-menu.is-open {
  display: flex;
}

.sidebar__language-option.is-active {
  background: rgba(20, 20, 20, 0.06);
}

.sidebar__language-option[hidden] {
  display: none;
}

.sidebar__language-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  display: block;
}

.home-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.35);
  z-index: 40;
}

.home-mobile-nav {
  display: none;
}

body.home-vertical-aspect-mobile {
  --home-mobile-nav-visible: 1;
}

body.home-vertical-aspect-mobile .home-mobile-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: var(--home-mobile-nav-height, 64px) !important;
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
  background: #ffffff !important;
  border-top: 1px solid rgba(20, 20, 20, 0.12) !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 90 !important;
}

body.home-vertical-aspect-mobile .home-topbar__drawer-toggle {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.home-vertical-aspect-mobile .dashboard__content {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}

.home-mobile-nav__button {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.home-mobile-nav__button .material-symbols-outlined {
  font-size: 24px;
}

@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --sidebar-width: 260px !important;
  }

  body.home-page .sidebar,
  body.my-profile-page .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: min(320px, 82vw) !important;
    height: 100dvh !important;
    min-height: 0 !important;
    transform: translateX(-100%) !important;
    z-index: 80 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    transition: transform 0.25s ease !important;
    background: #f2f2f2 !important;
  }

  body.home-page.home-sidebar-open .sidebar,
  body.my-profile-page.home-sidebar-open .sidebar {
    transform: translateX(0) !important;
  }

  body.home-page .dashboard__content,
  body.my-profile-page .dashboard__content {
    margin-left: 0 !important;
    padding-top: 60px !important;
    padding-bottom: 24px !important;
  }

  body.home-page .home-mobile-overlay,
  body.my-profile-page .home-mobile-overlay {
    top: 60px !important;
    z-index: 70 !important;
    pointer-events: none !important;
  }

  body.home-page.home-sidebar-open .home-mobile-overlay,
  body.my-profile-page.home-sidebar-open .home-mobile-overlay {
    display: block !important;
    pointer-events: auto !important;
  }

  body.my-profile-page[data-profile-owner-model-view="true"] {
    --sidebar-width: min(260px, 34vw) !important;
  }

  body.my-profile-page[data-profile-owner-model-view="true"] .sidebar {
    transform: translateX(0) !important;
    width: var(--sidebar-width) !important;
    top: 0 !important;
    height: 100dvh !important;
  }

  body.my-profile-page[data-profile-owner-model-view="true"] .dashboard__content {
    margin-left: var(--sidebar-width) !important;
    padding-top: 60px !important;
  }

  body.my-profile-page[data-profile-owner-model-view="true"] .dashboard__content.profile-shell > .home-topbar {
    left: var(--sidebar-width) !important;
  }

  body.my-profile-page[data-profile-owner-model-view="true"] .home-mobile-overlay {
    display: none !important;
    pointer-events: none !important;
  }

  body.home-page.home-drawer-mode .dashboard__content {
    padding-top: 0 !important;
  }

  body.home-page.home-drawer-mode .sidebar {
    top: 60px !important;
    height: calc(100dvh - 60px) !important;
    z-index: 80 !important;
  }

  body.home-page.home-drawer-mode .home-mobile-overlay {
    top: 60px !important;
    z-index: 70 !important;
  }

  body.home-page[data-home-content-scope="services"],
  body.home-page[data-home-content-scope="tools"],
  body.home-page[data-i18n-page^="tool-"],
  body.model-benefits-page {
    --home-mobile-nav-visible: 1;
  }

  body.home-page[data-home-content-scope="services"] .home-mobile-nav,
  body.home-page[data-home-content-scope="tools"] .home-mobile-nav,
  body.home-page[data-i18n-page^="tool-"] .home-mobile-nav,
  body.model-benefits-page .home-mobile-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: var(--home-mobile-nav-height, 64px) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(20, 20, 20, 0.12) !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 90 !important;
  }

  body.home-page[data-home-content-scope="services"] .dashboard__content,
  body.home-page[data-home-content-scope="tools"] .dashboard__content,
  body.home-page[data-i18n-page^="tool-"] .dashboard__content,
  body.model-benefits-page .dashboard__content {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.home-page[data-home-content-scope="services"] .home-topbar__drawer-toggle,
  body.home-page[data-home-content-scope="tools"] .home-topbar__drawer-toggle,
  body.home-page[data-i18n-page^="tool-"] .home-topbar__drawer-toggle,
  body.model-benefits-page .home-topbar__drawer-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.home-page:not([data-home-content-scope="services"]):not([data-home-content-scope="tools"]):not([data-i18n-page^="tool-"]):not(.model-benefits-page) .home-mobile-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.home-page:not([data-home-content-scope="services"]):not([data-home-content-scope="tools"]):not([data-i18n-page^="tool-"]):not(.model-benefits-page):not(.home-vertical-aspect-mobile) .home-topbar__drawer-toggle {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.home-vertical-aspect-mobile .home-topbar__drawer-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

}

@media (max-width: 1024px) {
  /* Pages WITH the bottom mobile nav: show nav, hide hamburger */
  body.home-page[data-home-content-scope="services"],
  body.home-page[data-home-content-scope="tools"],
  body.home-page[data-i18n-page^="tool-"],
  body.model-benefits-page {
    --home-mobile-nav-visible: 1;
  }

  body.home-page[data-home-content-scope="services"] .home-mobile-nav,
  body.home-page[data-home-content-scope="tools"] .home-mobile-nav,
  body.home-page[data-i18n-page^="tool-"] .home-mobile-nav,
  body.model-benefits-page .home-mobile-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: var(--home-mobile-nav-height, 64px) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(20, 20, 20, 0.12) !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 90 !important;
  }

  body.home-page[data-home-content-scope="services"] .dashboard__content,
  body.home-page[data-home-content-scope="tools"] .dashboard__content,
  body.home-page[data-i18n-page^="tool-"] .dashboard__content,
  body.model-benefits-page .dashboard__content {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.home-page[data-home-content-scope="services"] .home-topbar__drawer-toggle,
  body.home-page[data-home-content-scope="tools"] .home-topbar__drawer-toggle,
  body.home-page[data-i18n-page^="tool-"] .home-topbar__drawer-toggle,
  body.model-benefits-page .home-topbar__drawer-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Pages WITHOUT bottom mobile nav: show hamburger, hide nav */
  body.home-page:not([data-home-content-scope="services"]):not([data-home-content-scope="tools"]):not([data-i18n-page^="tool-"]):not(.model-benefits-page) .home-mobile-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.home-page:not([data-home-content-scope="services"]):not([data-home-content-scope="tools"]):not([data-i18n-page^="tool-"]):not(.model-benefits-page):not(.home-vertical-aspect-mobile) .home-topbar__drawer-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.home-vertical-aspect-mobile .home-topbar__drawer-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

}

@media (min-width: 1025px) {
  body.home-page .home-topbar__drawer-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.home-page .home-mobile-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

.settings__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.settings__list li {
  border-left: 2px solid rgba(20, 20, 20, 0.2);
  padding-left: 12px;
}

/* Ensure the HTML hidden attribute actually hides elements even when author styles set display values. */
[hidden] {
  display: none !important;
}

.settings__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.settings__section-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings__section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.settings__section-title {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
}

.settings__section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.settings__route-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.settings__category {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0;
  border: 0;
  background: transparent;
}

.settings__category + .settings__category {
  border-top: 1px solid rgba(20, 20, 20, 0.14);
}

.settings__category-title {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.02rem;
  text-transform: none;
  font-weight: 600;
}

.settings__route-item {
  border: 0;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: transparent;
  flex-wrap: wrap;
}

.settings__route-item + .settings__route-item {
  border-top: 1px solid rgba(20, 20, 20, 0.1);
}

.settings__route-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 300px;
  min-width: 0;
  align-items: flex-start;
  text-align: left;
}

.settings__route-title {
  font-size: 0.86rem;
  letter-spacing: 0.01rem;
  text-transform: none;
  font-weight: 600;
}

.settings__route-path {
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
}

.settings__route-item--permission-parent {
  padding-top: 14px;
  padding-bottom: 14px;
}

.settings__route-item--permission-parent .settings__route-title {
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 0.8rem;
}

.settings__route-item--permission-parent .settings__route-path {
  display: none;
}

.settings__route-item--permission-child {
  padding-left: 22px;
}

.settings__route-item--permission-child .settings__route-title {
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.005rem;
  text-transform: none;
}

.settings__route-item--permission-child .settings__route-path {
  display: none;
}

.settings__popup-item {
  align-items: center;
  gap: 12px;
}

.settings__popup-row-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.settings__popup-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.settings__popup-item .toggle {
  margin-left: 0;
}

.settings__popup-frequency-select {
  width: 160px;
  min-width: 140px;
  margin-left: 8px;
}

.settings__popup-actions .table__icon-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings__popup-actions .table__icon-button .material-symbols-outlined {
  font-size: 19px;
}

.settings__route-redirect {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.settings__route-redirect-label {
  font-size: 0.72rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
}

.settings__route-redirect-select {
  min-width: 0;
  width: min(100%, 360px);
}

.settings__ip-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.settings__ip-list--modal {
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 4px;
}

.settings__admin-ip-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.settings__admin-ip-actions .settings__hint {
  flex: 1;
  min-width: 260px;
}

.settings__typography-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settings__font-picker {
  border: 1px solid rgba(20, 20, 20, 0.14);
  background: #ffffff;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.settings__font-picker-header {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings__font-picker-title {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.settings__font-picker-current {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.settings__font-picker-list {
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

.settings__font-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  background: #ffffff;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-transform: none;
  letter-spacing: normal;
}

.settings__font-option:last-child {
  border-bottom: 0;
}

.settings__font-option:hover,
.settings__font-option:focus-visible {
  background: rgba(20, 20, 20, 0.05);
}

.settings__font-option.is-active {
  background: rgba(20, 20, 20, 0.08);
}

.settings__font-option-name {
  font-size: 0.8rem;
  color: #141414;
  text-transform: none;
}

.settings__font-option-sample {
  font-size: 0.78rem;
  color: rgba(20, 20, 20, 0.72);
  line-height: 1.35;
  text-transform: none;
}

@media (max-width: 1100px) {
  .settings__typography-grid {
    grid-template-columns: 1fr;
  }

  .settings__font-picker-list {
    max-height: 250px;
  }
}

.settings__public-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.settings__public-form-questions {
  margin-top: 16px;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  padding-top: 14px;
}

.settings__public-form-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.settings__link-hub-grid {
  align-items: start;
}

.settings__link-hub-list-wrap {
  margin-top: 6px;
}

.settings__link-hub-button-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  padding: 12px;
}

.settings__link-hub-button-card--spacer {
  background: rgba(20, 20, 20, 0.03);
}

.settings__link-hub-inline-icon {
  font-size: 16px;
  vertical-align: middle;
}

.settings__link-hub-preview {
  margin-top: 14px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  padding: 12px;
  background: linear-gradient(145deg, var(--link-hub-bg-from, #f5f7fa), var(--link-hub-bg-to, #dfe6ee));
}

.settings__link-hub-preview-url {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: rgba(20, 20, 20, 0.62);
  word-break: break-all;
}

.settings__link-hub-preview-shell {
  --links-content-width: min(420px, 88%);
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
  padding: 16px 8px;
  border: 0;
  background: transparent;
}

.settings__link-hub-preview-shell h4 {
  margin: 8px 0 6px;
  font-size: 1rem;
}

.settings__link-hub-preview-shell p {
  margin: 0 0 12px;
  color: rgba(20, 20, 20, 0.66);
  font-size: 0.84rem;
}

.settings__link-hub-preview-avatar {
  width: var(--links-content-width);
  max-height: 170px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  border: 0;
}

.settings__link-hub-preview-avatar--empty {
  display: grid;
  place-items: center;
  background: rgba(20, 20, 20, 0.05);
}

.settings__link-hub-preview-avatar--empty .material-symbols-outlined {
  font-size: 28px;
  color: rgba(20, 20, 20, 0.56);
}

.settings__link-hub-preview-buttons {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.settings__link-hub-preview-spacer {
  width: var(--links-content-width);
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(20, 20, 20, 0.62);
  font-size: 0.9rem;
  letter-spacing: 0.02rem;
}

.settings__link-hub-preview-spacer--line {
  min-height: 0;
  border-top: 1px solid rgba(20, 20, 20, 0.22);
}

.settings__link-hub-preview-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: var(--links-content-width);
  min-height: 48px;
  border: 1px solid var(--link-hub-accent, #141414);
  color: #141414;
  text-decoration: none;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 400;
  letter-spacing: 0.02rem;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 140ms ease, background-color 140ms ease;
}

.settings__link-hub-preview-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
}

.settings__link-hub-icon-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(36px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.settings__link-hub-icon-picker-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  position: relative;
}

.settings__link-hub-icon-picker-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings__link-hub-icon-picker-option .material-symbols-outlined {
  font-size: 21px;
  color: rgba(20, 20, 20, 0.76);
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings__link-hub-icon-picker-option input:checked + .material-symbols-outlined {
  color: #141414;
  background: rgba(20, 20, 20, 0.06);
  box-shadow: inset 0 0 0 1px #141414;
}

.settings__link-hub-logo-fixed-wrap {
  display: flex;
  justify-content: center;
  padding: 12px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: rgba(20, 20, 20, 0.03);
}

.settings__link-hub-logo-fixed {
  width: min(380px, 100%);
  height: auto;
  object-fit: contain;
}

.settings__form-question-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(20, 20, 20, 0.14);
  padding: 12px;
}

.settings__form-question-title {
  margin: 0 0 4px;
  font-size: 0.86rem;
  letter-spacing: 0.02rem;
}

.settings__form-question-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.settings__model-form-media-grid {
  display: grid;
  gap: 12px;
}

.settings__model-form-media-block {
  border: 1px solid rgba(20, 20, 20, 0.14);
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.settings__model-form-media-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.settings__model-form-media-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 10px;
}

.settings__model-form-media-preview-wrap {
  width: 110px;
  min-width: 110px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  padding: 4px;
  background: rgba(20, 20, 20, 0.03);
}

.settings__model-form-media-preview {
  display: block;
  width: 100%;
  height: 68px;
  object-fit: cover;
}

.settings__model-form-media-main {
  min-width: 0;
  flex: 1;
}

.settings__model-form-media-name {
  margin: 0 0 4px;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.settings__model-form-media-input {
  display: none;
}

.settings__ip-item {
  border: 0;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: transparent;
  flex-wrap: wrap;
}

.settings__ip-item + .settings__ip-item {
  border-top: 1px solid rgba(20, 20, 20, 0.1);
}

.settings__ip-info {
  min-width: 0;
  flex: 1 1 280px;
}

@media (max-width: 980px) {
  .settings__route-item,
  .settings__ip-item {
    align-items: flex-start;
  }

  .settings__public-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .settings__form-question-card {
    flex-direction: column;
  }

  .settings__link-hub-button-card {
    flex-direction: column;
  }

  .settings__model-form-media-item {
    flex-direction: column;
  }

  .settings__model-form-media-preview-wrap {
    width: 100%;
    min-width: 0;
    max-width: 280px;
  }

  .settings__link-hub-icon-picker {
    grid-template-columns: repeat(4, minmax(36px, 1fr));
  }

  .settings__form-question-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .settings__popup-item {
    align-items: flex-start;
  }

  .settings__popup-row-header {
    width: 100%;
  }

  .settings__popup-item .toggle {
    margin-left: 0;
  }

  .settings__popup-frequency-select {
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .settings__popup-actions {
    margin-left: auto;
  }

  .settings__route-item .toggle,
  .settings__ip-item .toggle {
    margin-left: auto;
  }
}

.links-page {
  --links-accent: #141414;
  --links-bg-from: #f5f7fa;
  --links-bg-to: #dfe6ee;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(145deg, var(--links-bg-from), var(--links-bg-to));
  color: #141414;
  font-family: var(--font-text-ui);
}

.links-page__main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 14px;
}

.links-page__card {
  --links-content-width: min(420px, 88%);
  width: min(540px, 94vw);
  border: 0;
  background: transparent;
  backdrop-filter: none;
  padding: 28px 20px;
  text-align: center;
}

.floating-language,
.links-page__language {
  width: auto;
  margin: 0;
  display: flex;
  justify-content: center;
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 1201;
}

.floating-language__button,
.links-page__language-button {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #141414;
  border-radius: 999px;
  background: transparent;
  color: #141414;
  cursor: pointer;
  padding: 0;
}

.floating-language__button .material-symbols-outlined,
.links-page__language-button .material-symbols-outlined {
  font-size: 28px;
}

.floating-language__button:focus-visible,
.floating-language__option:focus-visible,
.links-page__language-button:focus-visible,
.links-page__language-option:focus-visible {
  outline: 2px solid rgba(20, 20, 20, 0.35);
  outline-offset: 1px;
}

.floating-language__menu,
.links-page__language-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  border: 1px solid #141414;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
  display: none;
  gap: 0;
  padding: 6px;
  z-index: 3;
}

.floating-language__menu.is-open,
.links-page__language-menu.is-open {
  display: grid;
}

.floating-language__menu[hidden],
.links-page__language-menu[hidden] {
  display: none;
}

.floating-language__option,
.links-page__language-option {
  border: 0;
  background: transparent;
  color: #141414;
  min-height: 34px;
  font: inherit;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  cursor: pointer;
}

.floating-language__option + .floating-language__option,
.links-page__language-option + .links-page__language-option {
  border-top: 1px solid rgba(20, 20, 20, 0.3);
}

.floating-language__option.is-active,
.links-page__language-option.is-active {
  font-weight: 600;
}

.links-page__avatar {
  width: var(--links-content-width);
  max-height: 170px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 16px;
}

.links-page__avatar--hidden {
  display: none;
}

.links-page__title {
  margin: 2px 0 14px;
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  letter-spacing: 0.01rem;
}

.links-page__subtitle {
  margin: 0 auto 18px;
  max-width: 36ch;
  color: rgba(20, 20, 20, 0.72);
}

.links-page__list {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.links-page__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: var(--links-content-width);
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--links-accent);
  border-radius: 999px;
  color: #141414;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.02rem;
  background: rgba(255, 255, 255, 0.8);
  transition: transform 140ms ease, background-color 140ms ease;
}

.links-page__button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
}

.links-page__spacer {
  width: var(--links-content-width);
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(20, 20, 20, 0.62);
  font-size: 0.9rem;
  letter-spacing: 0.02rem;
}

.links-page__spacer--line {
  min-height: 0;
  border-top: 1px solid rgba(20, 20, 20, 0.22);
}

.links-page__status {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(20, 20, 20, 0.76);
}

.links-page__status.is-error {
  color: #7c1717;
}

.settings__ip-item--modal {
  align-items: flex-start;
}

.settings__ip-table {
  margin-top: 4px;
}

.settings__ip-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings__ip-value {
  font-size: 0.86rem;
  letter-spacing: 0.01rem;
  text-transform: none;
  font-weight: 600;
}

.settings__ip-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.settings__ip-empty {
  margin: 0;
}

.settings__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.settings__size-conversion-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.settings__size-conversion-input {
  width: 160px;
  max-width: 100%;
}

.settings__size-conversion-estimate {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

.settings__status {
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.settings__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.settings__preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-previews-tabs {
  display: flex;
  border: 1px solid rgba(20, 20, 20, 0.18);
  margin-bottom: 16px;
}

.settings-previews-tabs__tab {
  flex: 1 1 0;
  border: 0;
  border-right: 1px solid rgba(20, 20, 20, 0.18);
  background: rgba(20, 20, 20, 0.04);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.72rem;
  font-family: var(--font-text-ui);
  padding: 10px 12px;
  cursor: pointer;
}

.settings-previews-tabs__tab:last-child {
  border-right: 0;
}

.settings-previews-tabs__tab.is-active {
  background: #ffffff;
  color: var(--text);
}

.settings-previews-panel {
  display: none;
}

.settings-previews-panel.is-active {
  display: block;
}

.settings-achievement-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 900px) {
  .settings-previews-tabs {
    flex-direction: column;
  }

  .settings-previews-tabs__tab {
    border-right: 0;
    border-bottom: 1px solid rgba(20, 20, 20, 0.18);
  }

  .settings-previews-tabs__tab:last-child {
    border-bottom: 0;
  }

  .settings__preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.api-connections__tools {
  border: 0;
  padding: 12px 0;
  margin-top: -10px;
  margin-bottom: 14px;
  background: transparent;
}

.api-connections__row {
  background: rgba(20, 20, 20, 0.06);
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 12px;
  padding-right: 12px;
}

.api-connections__tools-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1fr) minmax(180px, 1fr) 80px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  background: transparent;
  font-size: 0.9rem;
}

.api-connections__tools-row > :last-child {
  display: flex;
  justify-content: flex-end;
}

.toggle.toggle--forced-off input:checked + .toggle__track {
  background: rgba(193, 18, 31, 0.2);
}

.toggle.toggle--forced-off input:checked + .toggle__track::after {
  background: #c1121f;
}

.api-connections__tools-row:first-child {
  border-top: 0;
}

.api-connections__tools-row--header {
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}

.api-connections__tools-empty {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: normal;
  text-transform: none;
}

.api-connections__footer {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.api-connections__footer .button {
  min-width: 220px;
}

@media (max-width: 900px) {
  .api-connections__tools-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

.settings__preview-frame {
  width: 100%;
  height: 420px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
}

.settings__preview-shell {
  position: relative;
}

.settings__preview-launch {
  position: absolute;
  inset: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.settings-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 70;
}

.settings-preview-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.settings-preview-overlay__frame {
  position: relative;
  width: min(1100px, 92vw);
  height: min(720px, 90vh);
  background: #ffffff;
}

.settings-preview-overlay__iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.settings-preview-overlay__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #141414;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}

.settings-preview-overlay__close .material-symbols-outlined {
  font-size: 26px;
}

.doc-editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 80;
}

.doc-editor-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.doc-editor {
  width: min(1360px, 98vw);
  height: min(90vh, 920px);
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doc-editor.doc-editor--popup-mode {
  display: grid;
  grid-template-columns: minmax(420px, 520px) minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.doc-editor__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.doc-editor__eyebrow {
  margin: 0 0 4px;
  font-size: 0.7rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-editor__title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}

.doc-editor__subtitle {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.doc-editor__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.doc-editor__popup-language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.doc-editor__popup-language-buttons {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(20, 20, 20, 0.28);
  background: #ffffff;
}

.doc-editor__popup-language-option {
  border: 0;
  background: transparent;
  color: var(--text);
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  cursor: pointer;
}

.doc-editor__popup-language-option + .doc-editor__popup-language-option {
  border-left: 1px solid rgba(20, 20, 20, 0.2);
}

.doc-editor__popup-language-option.is-active {
  background: #141414;
  color: #ffffff;
}

.doc-editor__preview {
  height: 36px;
  padding: 8px 12px;
}

.doc-editor__close {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: transparent;
  color: var(--text);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.doc-editor__close .material-symbols-outlined {
  font-size: 20px;
}

.doc-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  background-color: #f7f7f7;
}

.doc-editor__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-editor__select,
.doc-editor__input {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  padding: 8px 10px;
  font-size: 0.85rem;
  min-width: 140px;
  font-family: inherit;
  color: var(--text);
}

.doc-editor__input[type="color"] {
  padding: 2px 6px;
  min-width: 60px;
  height: 36px;
}

.doc-editor__button {
  border: 1px solid rgba(20, 20, 20, 0.4);
  background: #ffffff;
  padding: 8px 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
}

.doc-editor__button .material-symbols-outlined {
  font-size: 18px;
}

.doc-editor__divider {
  width: 1px;
  height: 32px;
  background: rgba(20, 20, 20, 0.2);
}

.doc-editor__content {
  flex: 1;
  margin: 20px;
  padding: 20px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  overflow: auto;
  background: #ffffff;
  font-family: var(--font-text-ui);
  color: var(--text);
}

.doc-editor.doc-editor--popup-mode .doc-editor__header,
.doc-editor.doc-editor--popup-mode .doc-editor__toolbar,
.doc-editor.doc-editor--popup-mode .doc-editor__footer {
  grid-column: 1 / -1;
}

.doc-editor.doc-editor--popup-mode .doc-editor__content {
  grid-column: 2;
  grid-row: 3;
  margin: 14px 20px 0 0;
  min-height: 0;
}

.doc-editor.doc-editor--popup-mode .doc-editor__content h2 {
  font-size: 2em;
  line-height: 1.25;
}

.doc-editor.doc-editor--popup-mode .doc-editor__content h3 {
  font-size: 1.5em;
  line-height: 1.35;
}

.doc-editor.doc-editor--popup-mode .doc-editor__content p {
  font-size: 1em;
  line-height: 1.6;
}

.doc-editor__content:focus {
  outline: none;
  border-color: rgba(20, 20, 20, 0.35);
}

.doc-editor__content:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.doc-editor__pdf-import {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.doc-editor__pdf-page {
  width: 100%;
  max-width: 920px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: #ffffff;
  overflow: hidden;
}

.doc-editor__pdf-page svg {
  width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
}

.doc-editor__pdf-page text {
  fill: #141414;
}

.doc-editor__popup-meta {
  margin: 14px 20px 0;
  padding: 12px;
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-editor.doc-editor--popup-mode .doc-editor__popup-meta {
  grid-column: 1;
  grid-row: 3;
  margin: 14px 0 0 20px;
  min-height: 0;
  overflow: auto;
  overflow-x: hidden;
  align-self: stretch;
}

.doc-editor__popup-name .doc-editor__input {
  width: 100%;
}

.doc-editor__popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-editor__popup-buttons-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.doc-editor__label {
  font-size: 0.72rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-editor__popup-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-editor__popup-button-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.doc-editor__popup-button-row .doc-editor__input,
.doc-editor__popup-button-row .doc-editor__select {
  min-width: 0;
  width: 100%;
}

.doc-editor__popup-button-row .doc-editor__input[data-popup-editor-button-field="label"] {
  grid-column: 1 / -1;
}

.doc-editor__popup-button-row .doc-editor__input[data-popup-editor-button-field="redirectUrl"] {
  grid-column: 1 / 3;
}

.doc-editor__popup-button-row .table__icon-button {
  width: 36px;
  height: 36px;
}

.doc-editor__popup-button-row .table__icon-button .material-symbols-outlined {
  font-size: 18px;
}

.doc-editor__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px 20px;
}

@media (max-width: 900px) {
  .settings__preview-frame {
    height: 360px;
  }

  .settings-preview-overlay__frame {
    width: 94vw;
    height: 88vh;
  }

  .doc-editor {
    width: 94vw;
    height: 86vh;
  }

  .doc-editor.doc-editor--popup-mode {
    display: flex;
    flex-direction: column;
  }

  .doc-editor.doc-editor--popup-mode .doc-editor__content,
  .doc-editor.doc-editor--popup-mode .doc-editor__popup-meta {
    margin: 14px 20px 0;
  }

  .doc-editor__popup-language {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .doc-editor__popup-button-row {
    grid-template-columns: 1fr;
  }
}

.sidebar__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  padding: 8px 0;
}

.sidebar__link--action {
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.sidebar__link--action[data-sidebar-action="report-bug"] {
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
}

.sidebar__link--action[data-sidebar-action="become-model"] {
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
}

.sidebar__link--disabled {
  opacity: 0.58;
  cursor: default;
}

.sidebar__become-model-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.sidebar__novelty-dot--icon {
  right: -2px;
  top: 1px;
  transform: none;
}

.sidebar__link--toggle {
  background: none;
  border: none;
  width: 100%;
  justify-content: space-between;
  padding: 8px 0;
  font-family: inherit;
}

.sidebar__icon {
  width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: currentColor;
  visibility: visible;
  text-transform: none;
  letter-spacing: normal;
}

.sidebar__chevron {
  margin-left: auto;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.sidebar__link--toggle.is-open .sidebar__chevron {
  transform: rotate(180deg);
}

.sidebar__link--toggle.is-locked .sidebar__chevron {
  transform: none;
}

.sidebar__submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 4px 26px;
  position: relative;
}

.sidebar__submenu.is-open {
  display: flex;
}

.tool-access-pending .sidebar__submenu[data-collapse-target="tools"],
.tool-access-pending .sidebar__submenu[data-collapse-target="image-generation"] {
  visibility: hidden;
}

.sidebar__submenu.is-open::before {
  content: "";
  position: absolute;
  left: 10px;
  top: -2px;
  bottom: 2px;
  width: 1px;
  background: rgba(20, 20, 20, 0.25);
}

.sidebar__sublink {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  padding: 2px 0;
  padding-right: 14px;
  line-height: 16px;
  min-height: 20px;
  white-space: nowrap;
  position: relative;
}

.sidebar__sublink--admin-only {
  display: flex;
  align-items: center;
  min-height: 20px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 46%,
    rgba(133, 63, 196, 0.14) 78%,
    rgba(133, 63, 196, 0.28) 100%
  );
}

.sidebar__sublink--admin-only .sidebar__sublabel {
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
}

.sidebar__sublink--with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar__subicon {
  width: 16px;
  min-width: 16px;
  font-size: 16px;
  line-height: 1;
  visibility: visible;
  text-transform: none;
  letter-spacing: normal;
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar__sublink--with-icon .sidebar__sublabel {
  line-height: inherit;
}

button.sidebar__sublink {
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.sidebar__sublink > span {
  line-height: inherit;
}

.sidebar__novelty-dot {
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d22626;
  transform: translateY(-50%);
  box-shadow: 0 0 0 0 rgba(210, 38, 38, 0.35);
  animation: sidebar-novelty-pulse 2.2s ease-in-out infinite;
}

.sidebar__novelty-dot[hidden] {
  display: none;
}

@keyframes sidebar-novelty-pulse {
  0% {
    opacity: 0.78;
    box-shadow: 0 0 0 0 rgba(210, 38, 38, 0.35);
  }

  65% {
    opacity: 1;
    box-shadow: 0 0 0 5px rgba(210, 38, 38, 0);
  }

  100% {
    opacity: 0.82;
    box-shadow: 0 0 0 0 rgba(210, 38, 38, 0);
  }
}

.sidebar__sublink::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 12px;
  height: 1px;
  background: rgba(20, 20, 20, 0.25);
  transform: translateY(-50%);
  display: none;
}

.sidebar__submenu.is-open .sidebar__sublink[hidden]::before {
  display: none;
}

.sidebar__submenu.is-open .sidebar__sublink:not([hidden])::before {
  display: block;
}

.sidebar__sublabel {
  font-size: 0.7rem;
  letter-spacing: 0.14rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.45);
  display: inline-flex;
  align-items: center;
  line-height: 1.1;
}

.sidebar__sublink--active {
  color: var(--text);
  font-weight: 500;
}

.sidebar__sublink--active .sidebar__sublabel {
  color: var(--text);
  font-weight: 600;
}

.sidebar__link--active {
  font-weight: 700;
}

/* Sidebar theme skeleton: toggle by setting body[data-sidebar-theme="light|dark"]. */
body[data-sidebar-theme="dark"] .sidebar,
body[data-sidebar-theme="dark"] .settings-sidebar,
body[data-sidebar-theme="dark"] .sidebar__footer,
body[data-sidebar-theme="dark"] .sidebar__nav > a[href="/admin/content/create"],
body[data-sidebar-theme="dark"] .sidebar__nav > a[href="/admin/settings"],
body[data-sidebar-theme="dark"] .profile__menu,
body[data-sidebar-theme="dark"] .sidebar__language-menu {
  background-color: var(--sidebar-surface);
  color: #f5f5f5;
}

body[data-sidebar-theme="dark"] .settings-sidebar {
  background-color: var(--sidebar-surface-alt);
}

body[data-sidebar-theme="dark"] .sidebar__link,
body[data-sidebar-theme="dark"] .sidebar__language-toggle,
body[data-sidebar-theme="dark"] .sidebar__language-option,
body[data-sidebar-theme="dark"] .profile,
body[data-sidebar-theme="dark"] .sidebar__sublink,
body[data-sidebar-theme="dark"] .sidebar__sublabel,
body[data-sidebar-theme="dark"] .settings-sidebar__toggle,
body[data-sidebar-theme="dark"] .settings-sidebar__sublink,
body[data-sidebar-theme="dark"] .profile__option,
body[data-sidebar-theme="dark"] .profile__name,
body[data-sidebar-theme="dark"] .sidebar__title {
  color: rgba(245, 245, 245, 0.92);
}

body[data-sidebar-theme="dark"] .sidebar__divider,
body[data-sidebar-theme="dark"] .sidebar__submenu.is-open::before,
body[data-sidebar-theme="dark"] .sidebar__sublink::before,
body[data-sidebar-theme="dark"] .profile__divider,
body[data-sidebar-theme="dark"] .profile__menu,
body[data-sidebar-theme="dark"] .sidebar__language-menu,
body[data-sidebar-theme="dark"] .settings-sidebar {
  border-color: rgba(255, 255, 255, 0.16);
}

body[data-sidebar-theme="dark"] .sidebar__language-option.is-active,
body[data-sidebar-theme="dark"] .settings-sidebar__sublink:hover,
body[data-sidebar-theme="dark"] .settings-sidebar__sublink.is-active,
body[data-sidebar-theme="dark"] .profile__option:hover,
body[data-sidebar-theme="dark"] .profile__option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

body[data-sidebar-theme="dark"] .sidebar__collapse {
  border-color: rgba(255, 255, 255, 0.24);
  color: #f5f5f5;
}

body[data-sidebar-theme="dark"] .profile__avatar {
  border-color: rgba(255, 255, 255, 0.3);
}

.home-page .sidebar__header {
  align-items: flex-end;
}

.my-profile-page .sidebar__collapse {
  display: none;
}

.my-profile-page.profile-model-public-external .sidebar__collapse,
body.my-profile-page[data-profile-owner-model-view="true"] .sidebar__collapse {
  display: inline-flex;
}

.dashboard .sidebar {
  transition: width var(--sidebar-transition-duration) ease, padding var(--sidebar-transition-duration) ease;
}

.dashboard .dashboard__content {
  transition: margin-left var(--sidebar-transition-duration) ease;
}

.dashboard .upscaler__footer,
.dashboard .home-editor__palette,
.dashboard .processes__panel,
.dashboard .log__panel {
  transition: width var(--sidebar-transition-duration) ease, max-width var(--sidebar-transition-duration) ease;
}

.dashboard .chat__panel {
  transition: none;
}

@media (min-width: 901px) {
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .dashboard__content:not(.home),
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .dashboard__header,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .dashboard__grid,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .home-topbar,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .home-hero,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .home-blocks,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .site-footer,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .grok-command-bar,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .dashboard__content--tool-admin > .dashboard__header {
    transition-property: margin-left, margin-right, width, max-width, padding-left, padding-right;
    transition-duration: var(--sidebar-transition-duration);
    transition-timing-function: ease;
  }

  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .dashboard__content.home {
    transition-property: opacity, transform, margin-left, margin-right, width, max-width, padding-left, padding-right;
    transition-duration: 0.75s, 0.75s, var(--sidebar-transition-duration), var(--sidebar-transition-duration), var(--sidebar-transition-duration), var(--sidebar-transition-duration), var(--sidebar-transition-duration), var(--sidebar-transition-duration);
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1), cubic-bezier(0.22, 1, 0.36, 1), ease, ease, ease, ease, ease, ease;
  }

  .dashboard:is(.is-sidebar-expanding, .is-home-sidebar-expanding) .sidebar__link > span:not(.material-symbols-outlined),
  .dashboard:is(.is-sidebar-expanding, .is-home-sidebar-expanding) .sidebar__sublabel,
  .dashboard:is(.is-sidebar-expanding, .is-home-sidebar-expanding) .sidebar__language-toggle [data-language-current],
  .dashboard:is(.is-sidebar-expanding, .is-home-sidebar-expanding) .sidebar__language-toggle .sidebar__language-chevron,
  .dashboard:is(.is-sidebar-expanding, .is-home-sidebar-expanding) .profile__name,
  .dashboard:is(.is-sidebar-expanding, .is-home-sidebar-expanding) .profile__chevron {
    opacity: 0;
    visibility: hidden;
  }

  .dashboard:is(.is-sidebar-text-reveal, .is-home-sidebar-text-reveal) .sidebar__link > span:not(.material-symbols-outlined),
  .dashboard:is(.is-sidebar-text-reveal, .is-home-sidebar-text-reveal) .sidebar__sublabel,
  .dashboard:is(.is-sidebar-text-reveal, .is-home-sidebar-text-reveal) .sidebar__language-toggle [data-language-current],
  .dashboard:is(.is-sidebar-text-reveal, .is-home-sidebar-text-reveal) .sidebar__language-toggle .sidebar__language-chevron,
  .dashboard:is(.is-sidebar-text-reveal, .is-home-sidebar-text-reveal) .profile__name,
  .dashboard:is(.is-sidebar-text-reveal, .is-home-sidebar-text-reveal) .profile__chevron {
    opacity: 0;
    visibility: visible;
    animation: homeSidebarTextFadeIn 0.18s ease forwards;
  }
}

@keyframes homeSidebarTextFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .dashboard__content,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .dashboard__content.home,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .dashboard__header,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .dashboard__grid,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .home-topbar,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .home-hero,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .home-blocks,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .site-footer,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .grok-command-bar,
  .dashboard:is(.is-sidebar-animating, .is-home-sidebar-animating) .dashboard__content--tool-admin > .dashboard__header {
    transition-duration: 0s;
  }

  .dashboard:is(.is-sidebar-text-reveal, .is-home-sidebar-text-reveal) .sidebar__link > span:not(.material-symbols-outlined),
  .dashboard:is(.is-sidebar-text-reveal, .is-home-sidebar-text-reveal) .sidebar__sublabel,
  .dashboard:is(.is-sidebar-text-reveal, .is-home-sidebar-text-reveal) .sidebar__language-toggle [data-language-current],
  .dashboard:is(.is-sidebar-text-reveal, .is-home-sidebar-text-reveal) .sidebar__language-toggle .sidebar__language-chevron,
  .dashboard:is(.is-sidebar-text-reveal, .is-home-sidebar-text-reveal) .profile__name,
  .dashboard:is(.is-sidebar-text-reveal, .is-home-sidebar-text-reveal) .profile__chevron {
    animation-duration: 0s;
  }
}

@media (min-width: 901px) {
  .dashboard {
    --sidebar-width: 260px;
  }
}

body.home-page.home-drawer-mode {
  --sidebar-width: 0px;
}

body.home-page.home-drawer-mode .dashboard__content {
  margin-left: 0;
  padding-top: 0;
}

body.home-page.home-drawer-mode[data-page-key="gallery"]:not(.home-editor) .dashboard__content.home {
  padding-top: 68px;
}

body.home-page.home-drawer-mode[data-page-key="models"]:not(.home-editor) .dashboard__content.home {
  padding-top: 68px;
}

body.home-page.home-drawer-mode .dashboard__content--tool-split,
body.home-page.home-drawer-mode .dashboard__content--facechex {
  padding-top: 74px !important;
}

body.home-page.home-drawer-mode .home-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  pointer-events: auto;
  z-index: 72;
}

body.home-page.home-drawer-mode .sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: min(280px, 82vw);
  height: calc(100vh - 60px);
  min-height: 0;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 70;
  background: #f2f2f2;
}

body.home-page.home-drawer-mode.home-sidebar-open .sidebar {
  transform: translateX(0);
}

body.home-page.home-drawer-mode .sidebar__header {
  display: none;
}

body.home-page.home-drawer-mode .home-mobile-overlay {
  top: 60px;
  z-index: 69;
}

body.home-page.home-drawer-mode.home-sidebar-open .home-mobile-overlay {
  display: block;
}

@media (max-width: 900px) {
  .home-topbar {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 0;
  }

  .dashboard__content:not(.home) > .home-topbar {
    margin-top: 0;
    margin-bottom: 12px;
  }
  .sidebar {
    width: 220px;
    padding: 20px 16px;
  }

  .sidebar__logo {
    width: 120px;
  }

  :root {
    --sidebar-width: 220px;
  }

  .dashboard__content {
    margin-left: 220px;
    padding: 28px 24px;
  }

  .dashboard__content.home {
    --home-content-inline-padding: 24px;
  }

  .settings-page .dashboard__content {
    margin-left: var(--settings-sidebar-width);
  }
  .grok-command-bar {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
  }

  .dashboard__content--tool-admin > .dashboard__header {
    margin-left: -24px;
    margin-right: -24px;
  }

  .profile-model-public-external .profile-header {
    --profile-model-avatar-size: 156px;
    --profile-model-banner-bottom: 189px;
    --profile-model-header-inline-padding: 24px;
    --profile-model-header-padding-top: 20px;
  }

  .profile-model-public-external .profile-header__avatar-wrap {
    transform: none;
  }

  .profile-model-public-external .profile-header__text {
    margin-top: calc((var(--profile-model-avatar-size) / 2) + 6px);
  }

  .profile-model-public-external .profile-header__name-row {
    top: auto;
  }

  .profile-model-public-external .profile-header__handle-row {
    top: auto;
  }

  .profile-model-public-external .profile-header__creator-socials {
    top: auto;
  }

  .profile-model-public-external .profile-divider {
    margin-top: 104px;
  }
}

@media (max-width: 640px) {
  html,
  body,
  .dashboard__content,
  .home-page .sidebar,
  .my-profile-page .sidebar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  .dashboard__content::-webkit-scrollbar,
  .home-page .sidebar::-webkit-scrollbar,
  .my-profile-page .sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  body {
    --home-mobile-nav-height: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .home-topbar {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: 0;
  }

  .dashboard__content:not(.home) > .home-topbar {
    margin-top: 0;
    margin-bottom: 10px;
  }

  .profile-model-public-external .profile-header {
    --profile-model-avatar-size: 136px;
    --profile-model-banner-bottom: 173px;
    --profile-model-header-inline-padding: 20px;
    --profile-model-header-padding-top: 20px;
  }

  .profile-model-public-external .profile-header__avatar-wrap {
    transform: none;
  }

  .profile-model-public-external .profile-header__text {
    margin-top: calc((var(--profile-model-avatar-size) / 2) + 4px);
  }

  .profile-model-public-external .profile-header__name-row {
    left: auto;
    top: auto;
  }

  .profile-model-public-external .profile-header__handle-row {
    left: auto;
    top: auto;
  }

  .profile-model-public-external .profile-header__creator-socials {
    left: auto;
    top: auto;
    gap: 6px;
  }

  .profile-model-public-external .profile-creator-socials__item {
    padding: 6px 10px;
    font-size: 0.66rem;
  }

  .profile-model-public-external .profile-creator-socials__item-icon {
    font-size: 14px;
  }

  .profile-model-public-external .profile-divider {
    margin-top: 96px;
  }

  .my-profile-page.profile-model-public-external .profile-topbar__model-edit {
    right: 10px;
    width: 28px;
    height: 28px;
  }

  .my-profile-page.profile-model-public-external .profile-topbar__model-edit .material-symbols-outlined {
    font-size: 16px;
  }

  .tool-topbar.has-home-drawer-toggle .tool-topbar__title-wrap {
    left: 92px;
    max-width: 34%;
  }

  .tool-topbar {
    padding: 0 8px;
    gap: 8px;
  }

  .tool-topbar .home-topbar__logo {
    width: 200px;
    height: 50px;
  }

  .tool-topbar__title-wrap {
    left: 8px;
    max-width: 30%;
  }

  .tool-topbar.has-home-drawer-toggle .tool-topbar__title-wrap {
    left: 86px;
    max-width: 28%;
  }

  .tool-topbar.has-home-drawer-toggle .home-topbar__logo,
  .tool-topbar.has-home-drawer-toggle .tool-topbar__logo {
    left: 104px;
    transform: translateY(-50%);
  }

  .tool-topbar__title {
    font-size: 0.7rem;
  }

  .tool-topbar__credits {
    right: 8px;
  }

  .tool-topbar__help-popover {
    width: min(260px, 74vw);
  }

  .grok-command-bar {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
  }

  .dashboard__content--tool-admin > .dashboard__header {
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 10px;
  }

  .dashboard__content--tool-admin > .dashboard__header .dashboard__title {
    font-size: 0.75rem;
    letter-spacing: 0.08rem;
  }

  .tool-split-panel,
  .facechex-flat-layer {
    padding: 0 12px 14px;
    gap: 14px;
  }

  .tool-split-side,
  .facechex-results-side {
    padding: 0 12px 14px;
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
  }

  .tool-split-section + .tool-split-section,
  .facechex-flat-section + .facechex-flat-section {
    padding-top: 14px;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100vh;
  }

  :root {
    --sidebar-width: 0px;
  }

  .sidebar__profile {
    margin-top: 0;
  }

  .dashboard__content {
    margin-left: 0;
    padding: 24px 20px;
  }

  .dashboard__content.home {
    --home-content-inline-padding: 20px;
  }

  .settings-sidebar {
    position: relative;
    left: 0;
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(20, 20, 20, 0.12);
    padding: 16px 20px;
  }

  .settings-page .dashboard__content {
    margin-left: 0;
  }

  .sidebar__collapse {
    display: none;
  }
  .home-page .dashboard__content {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .my-profile-page .dashboard__content {
    padding-bottom: 96px;
  }

  body.my-profile-page[data-profile-owner-model-view="true"] {
    --sidebar-width: min(220px, 64vw);
  }

  body.my-profile-page[data-profile-owner-model-view="true"] .sidebar {
    width: var(--sidebar-width);
    transform: translateX(0);
    top: 0;
    height: 100vh;
  }

  body.my-profile-page[data-profile-owner-model-view="true"] .dashboard__content {
    margin-left: var(--sidebar-width);
    padding-top: 60px;
  }

  body.my-profile-page[data-profile-owner-model-view="true"] .dashboard__content.profile-shell > .home-topbar {
    left: var(--sidebar-width);
  }

  body.my-profile-page[data-profile-owner-model-view="true"] .home-mobile-overlay,
  body.my-profile-page[data-profile-owner-model-view="true"] .home-mobile-nav {
    display: none;
    pointer-events: none;
  }

  .home-page .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 75vw;
    height: 100vh;
    min-height: 0;
    padding-bottom: calc(24px + var(--home-mobile-nav-height, 64px));
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 50;
    background-color: #f2f2f2;
  }

  .my-profile-page .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 75vw;
    height: 100vh;
    min-height: 0;
    padding-bottom: calc(24px + var(--home-mobile-nav-height, 64px));
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 50;
    background-color: #f2f2f2;
  }

  .home-page.home-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .my-profile-page.home-sidebar-open .sidebar {
    transform: translateX(0);
  }

  .home-page.home-sidebar-open .home-mobile-overlay {
    display: block;
  }

  .my-profile-page.home-sidebar-open .home-mobile-overlay {
    display: block;
  }

  .home-mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--home-mobile-nav-height, 64px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #ffffff;
    border-top: 1px solid rgba(20, 20, 20, 0.12);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    z-index: 60;
  }

  .home-page[data-i18n-page^="tool-"] .home-mobile-nav {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 130 !important;
  }

  .home-page[data-i18n-page^="tool-"] .dashboard__content {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  body.home-page.home-drawer-mode .home-hero {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
  }

  body.home-page.home-drawer-mode .dashboard__content {
    padding-top: 0;
  }

  body.home-page.home-drawer-mode .dashboard__content--tool-split,
  body.home-page.home-drawer-mode .dashboard__content--facechex {
    padding-top: 74px !important;
  }

  body.home-page.home-drawer-mode .sidebar {
    top: 60px;
    height: calc(100vh - 60px);
    width: min(280px, 75vw);
  }

  body.home-page.home-drawer-mode .home-mobile-overlay {
    top: 60px;
  }

  .home-mobile-nav {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .model-benefits-page .dashboard__content {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .profile-tab-panel[data-profile-panel="gallery"] .user-gallery__filters {
    grid-column: 1;
    width: 100%;
    justify-content: flex-start;
  }

  .profile-tab-panel[data-profile-panel="gallery"] .panel__header {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .profile-tab-panel[data-profile-panel="gallery"] .user-gallery__header-spacer {
    display: none;
  }

  .profile-tab-panel[data-profile-panel="gallery"] .user-gallery__heading {
    grid-column: 1;
    justify-self: center;
    width: 100%;
  }

  .profile-tab-panel[data-profile-panel="gallery"] .user-gallery__filters .form__select {
    width: 100%;
  }

  .table__row {
    grid-template-columns: 1fr;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .overview__stats {
    grid-template-columns: 1fr;
  }

  .overview__stat--api-earnings {
    grid-column: auto;
    grid-row: auto;
  }

  .overview__grid {
    grid-template-columns: 1fr;
  }

  .table__row--four {
    grid-template-columns: 1fr;
  }

  .panel__split {
    grid-template-columns: 1fr;
  }

  .home-editor__palette {
    position: static;
    width: 100%;
  }
}

.swal-popup {
  border-radius: 0;
  font-family: var(--font-text-ui);
  padding: 24px 24px 20px;
}

body.swal2-shown {
  overflow: hidden !important;
}

body.swal2-height-auto {
  height: 100% !important;
}

div.swal2-container {
  overflow-y: hidden !important;
}

.swal2-title,
.swal2-html-container {
  color: #000000;
  font-family: var(--font-text-ui);
}

.swal2-title {
  font-weight: 400;
  text-transform: uppercase;
}

.swal2-icon {
  width: 5em;
  height: 5em;
}

.swal2-icon .material-symbols-outlined {
  font-size: 44px;
}

.swal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.swal-form--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.swal-form--grid .swal-form__field--full {
  grid-column: 1 / -1;
}

.swal-form--register {
  position: relative;
  padding-top: 34px;
}

.swal-popup--register {
  width: min(720px, 92vw);
}

@media (max-width: 640px) {
  .swal-popup--register {
    width: min(720px, 94vw);
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 16px 16px;
  }

  .swal-popup--register::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .swal-popup--register .swal2-title,
  .swal-popup--register .swal2-html-container,
  .swal-popup--register .swal2-actions {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .swal-popup--register .swal2-title {
    text-align: center;
    white-space: nowrap;
    font-size: clamp(1.02rem, 4.1vw, 1.22rem);
    letter-spacing: 0.09rem;
    line-height: 1.1;
  }

  .swal-popup--register .swal-form {
    width: 100%;
    margin: 0 auto;
  }

  .swal-popup--register .swal2-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .swal-popup--register .swal2-confirm.swal-button {
    width: 100%;
    min-width: 0;
  }

  .swal-popup--register .swal2-cancel.swal-button {
    border: 0;
    background: transparent;
    text-decoration: underline;
    opacity: 0.5;
    min-height: 0;
    height: auto;
    padding: 0;
    margin: 2px auto 0;
    width: auto;
  }

  .swal-popup--register .swal2-cancel .swal-button__icon,
  .swal-popup--register .swal2-cancel .material-symbols-outlined {
    display: none !important;
  }

  .swal-popup--register .swal2-html-container {
    overflow: visible;
  }
}

.swal-form__language {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swal-form__language-label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.75);
}

.swal-form__language-select {
  min-width: 100px;
  height: 30px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: #ffffff;
  color: #141414;
  padding: 0 24px 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .swal-form--grid {
    grid-template-columns: 1fr;
  }

  .swal-form--grid .swal-form__field--full {
    grid-column: auto;
  }

  .swal-form--register {
    padding-top: 46px;
  }

  .swal-form__language {
    right: 0;
  }
}

.swal-stats {
  display: grid;
  gap: 12px;
  text-align: left;
}

.swal-stats__row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 12px;
  align-items: center;
}

.swal-stats__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.swal-stats__value {
  font-size: 0.95rem;
  color: var(--text);
}

.swal-popup--user-inspection {
  width: min(1480px, 97vw);
  height: min(860px, 92vh);
  display: flex;
  flex-direction: column;
}

.swal-popup--user-inspection .swal2-html-container {
  margin-top: 14px;
  margin-bottom: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.swal-user-inspection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  height: 100%;
  min-height: 0;
}

.swal-user-inspection__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(20, 20, 20, 0.16);
}

.swal-user-inspection__tab {
  appearance: none;
  border: 0;
  border-right: 1px solid rgba(20, 20, 20, 0.16);
  background: rgba(10, 16, 26, 0.08);
  color: #0f1115;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07rem;
  text-transform: uppercase;
  padding: 10px 12px;
  cursor: pointer;
}

.swal-user-inspection__tab:last-child {
  border-right: 0;
}

.swal-user-inspection__tab.is-active {
  background: rgba(255, 255, 255, 0.98);
}

.swal-user-inspection__tab:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.45);
  outline-offset: -2px;
}

.swal-user-inspection__panel {
  border: 1px solid rgba(20, 20, 20, 0.16);
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.swal-user-inspection__panel:not(.is-active) {
  display: none;
}

.swal-user-inspection__title {
  margin: 0 0 10px;
  font-size: 0.84rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
}

.swal-user-inspection__subtitle {
  margin: 14px 0 8px;
  font-size: 0.74rem;
  letter-spacing: 0.09rem;
  text-transform: uppercase;
  color: var(--muted);
}

.swal-user-inspection__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.swal-user-inspection__list li {
  font-size: 0.85rem;
  line-height: 1.35;
}

.swal-user-inspection__list small {
  color: var(--muted);
  font-size: 0.75rem;
}

.swal-user-inspection__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 1200px) {
  .swal-popup--user-inspection {
    width: min(1220px, 97vw);
    height: min(820px, 92vh);
  }
}

@media (max-width: 820px) {
  .swal-popup--user-inspection {
    width: min(760px, 96vw);
    height: min(760px, 94vh);
  }

  .swal-popup--user-inspection .swal2-html-container {
    min-height: 0;
  }

  .swal-user-inspection__tabs {
    grid-template-columns: 1fr;
  }

  .swal-user-inspection__panel {
    min-height: 0;
  }
}

.swal-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swal-form__field[hidden] {
  display: none;
}

.swal-form__control {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.swal-form__control .swal-form__input {
  width: 100%;
}

.swal-form__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.swal-form__option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 10px 12px;
  cursor: pointer;
}

.swal-form__option .swal-form__label {
  margin: 0;
  letter-spacing: 0.06rem;
}

.swal-form__status {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
}

.swal-form__status.is-valid {
  color: #0b6b3a;
  opacity: 1;
}

.swal-form__status.is-invalid {
  color: var(--danger);
  opacity: 1;
}

.swal-form__hint {
  min-height: 0.85rem;
  font-size: 0.75rem;
  color: var(--danger);
}

.swal-form__notice {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--danger);
  min-height: 0.9rem;
}

.swal-form__notice.is-visible {
  display: block;
}

.swal-form__notice-link {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.swal-form__oauth {
  grid-column: 1 / -1;
  min-height: 42px;
  border: 1px solid rgba(20, 20, 20, 0.5);
  background: rgba(20, 20, 20, 0.06);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 12px;
}

.swal-form__oauth:hover {
  background: rgba(20, 20, 20, 0.12);
}

.swal-form__consent {
  align-items: flex-start;
  gap: 8px;
}

.swal-form__consent .swal-form__control {
  gap: 8px;
  align-items: flex-start;
}

.swal-form__checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  margin-top: 2px;
}

.swal-form__checkbox--option {
  margin-top: 0;
}

.swal-form__consent-text {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.4;
}

.swal-legal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.35);
  z-index: 30050;
  padding: 24px;
}

.swal-legal.is-open {
  display: flex;
}

.swal-legal__panel {
  position: relative;
  width: min(960px, 92vw);
  height: min(78vh, 720px);
  background: #ffffff;
  border: 1px solid rgba(20, 20, 20, 0.12);
  display: flex;
  flex-direction: column;
  padding-top: 48px;
}

.swal-legal__close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.swal-legal__close .material-symbols-outlined {
  font-size: 20px;
}

.swal-legal__frame {
  width: 100%;
  height: calc(100% - 48px);
  border: none;
}

.swal-popup--legal-open .swal2-actions,
.swal-actions--hidden,
.swal-legal-open .swal2-actions,
.swal-legal-open .swal2-confirm,
.swal-legal-open .swal2-cancel {
  display: none !important;
}

.legal-page--embedded .legal-doc-controls a.legal-doc-action {
  display: none;
}

.legal-page--embedded .legal-doc-controls {
  justify-content: flex-end;
}

.legal-page--loading .legal-doc-controls {
  opacity: 0;
}


.swal-form__tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.swal-form__row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 150px 130px 110px 110px;
  gap: 12px;
  align-items: center;
}

.swal-form__row--header {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.swal-form__cell {
  font-size: 0.85rem;
  color: var(--text);
}

.swal-popup {
  width: min(720px, 92vw);
}

.swal-popup--api-connections {
  width: 80vw !important;
  min-width: 80vw !important;
  max-width: 80vw !important;
}

.swal-popup--tool-config,
.swal-popup--api-connections {
  width: 80vw !important;
  min-width: 80vw !important;
  max-width: 80vw !important;
  height: 80vh !important;
  min-height: 80vh !important;
  max-height: 80vh !important;
  overflow: hidden;
  overflow: clip;
}

.swal-container--tool-config {
  overflow: hidden !important;
  pointer-events: none !important;
}

.swal-container--tool-config .swal-popup--tool-config {
  pointer-events: auto !important;
}

.swal-container--tool-config.swal2-backdrop-show > .swal-popup--tool-config {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.swal-container--tool-config.swal2-center > .swal-popup--tool-config {
  place-self: start center !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  margin-top: 20px;
}

.swal-popup--tool-config .swal2-html-container,
.swal-popup--api-connections .swal2-html-container {
  display: block;
  min-height: 0;
  max-height: calc(80vh - 170px);
  overflow: auto !important;
  overscroll-behavior: contain;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 10px;
}

.swal-popup--tool-config .toggle {
  position: relative;
}

.swal-popup--tool-config .toggle input {
  position: static;
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.tool-config-tabs {
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid rgba(20, 20, 20, 0.24);
  margin-bottom: 0;
}

.tool-config-tabs__tab {
  flex: 0 0 auto;
  border: 1px solid rgba(20, 20, 20, 0.24);
  border-bottom-color: rgba(20, 20, 20, 0.24);
  border-right: 0;
  background: #d6d6d6;
  color: #3b3b3b;
  padding: 9px 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-size: 0.72rem;
  font-family: var(--font-text-ui);
}

.tool-config-tabs__tab:last-child {
  border-right: 1px solid rgba(20, 20, 20, 0.24);
}

.tool-config-tabs__tab.is-active {
  color: var(--text);
  background: #ffffff;
  border-bottom-color: #ffffff;
  position: relative;
  z-index: 2;
}

.tool-config-panel {
  display: none;
  border: 1px solid rgba(20, 20, 20, 0.24);
  border-top: 0;
  padding: 14px;
  min-height: calc(80vh - 180px);
}

.tool-config-panel.is-active {
  display: block;
}

.tool-config-panel .swal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tool-config-panel .swal-form__hint {
  grid-column: 1 / -1;
}

.photoshoot-config-group-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.photoshoot-config-group {
  margin-bottom: 0;
}

.photoshoot-config-group > .photoshoot-option-editor-list {
  padding: 12px;
}

.photoshoot-option-editor-list {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.photoshoot-workflow-mood-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.photoshoot-workflow-variants-grid {
  padding: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photoshoot-option-editor {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.photoshoot-option-editor__title {
  margin: 0 0 8px;
  font-size: 0.76rem;
  letter-spacing: 0.09rem;
  text-transform: uppercase;
  color: var(--text);
}

.photoshoot-option-editor__actions {
  display: flex;
  gap: 8px;
}

.photoshoot-option-editor__button {
  border: 1px solid rgba(20, 20, 20, 0.26);
  background: #ffffff;
  color: #141414;
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.68rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  cursor: pointer;
}

.photoshoot-option-editor__button[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
}

.photoshoot-option-editor__meta {
  margin: 0;
  min-height: 0.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.04rem;
  color: rgba(20, 20, 20, 0.72);
}

.tool-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tool-config-grid--price {
  margin-bottom: 14px;
}

.tool-config-model {
  border: 1px solid rgba(20, 20, 20, 0.18);
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.82);
}

.tool-config-model__summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  font-family: var(--font-text-ui);
  font-size: 0.78rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.tool-config-model__summary::-webkit-details-marker {
  display: none;
}

.tool-config-model > .tool-config-grid,
.tool-config-model > .tool-config-metrics {
  padding-left: 12px;
  padding-right: 12px;
}

.tool-config-model > .tool-config-grid {
  padding-top: 12px;
}

.tool-config-model > .tool-config-metrics {
  padding-bottom: 12px;
}

.tool-config-inline-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
  grid-column: span 2;
}

.tool-config-credit-cost-field {
  align-self: end;
}

.tool-config-credit-cost-value {
  border: 1px solid rgba(20, 20, 20, 0.16);
  background: rgba(20, 20, 20, 0.04);
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04rem;
}

.tool-config-metrics {
  border: 1px solid rgba(20, 20, 20, 0.15);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-config-metric {
  padding: 10px 12px;
  border-right: 1px solid rgba(20, 20, 20, 0.15);
  background: rgba(20, 20, 20, 0.02);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tool-config-metric:last-child {
  border-right: 0;
}

.tool-config-metric__label {
  font-size: 0.68rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--muted);
}

.tool-config-metric__value {
  font-size: 1rem;
  color: var(--text);
}

.tool-config-metric--cost .tool-config-metric__value {
  color: #a32626;
}

.tool-config-metric--revenue .tool-config-metric__value {
  color: #137a1f;
}

.tool-config-metric--margin.is-positive .tool-config-metric__value {
  color: #137a1f;
}

.tool-config-metric--margin.is-negative .tool-config-metric__value {
  color: #a32626;
}

.tool-config-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 900px) {
  .swal-popup--tool-config,
  .swal-popup--api-connections {
    width: 96vw !important;
    min-width: 96vw !important;
    max-width: 96vw !important;
    height: 88vh !important;
    min-height: 88vh !important;
    max-height: 88vh !important;
  }

  .tool-config-panel .swal-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .photoshoot-option-editor-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .tool-config-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tool-config-inline-pair {
    grid-template-columns: minmax(0, 1fr);
    grid-column: span 1;
  }

  .tool-config-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .tool-config-metric {
    border-right: 0;
    border-top: 1px solid rgba(20, 20, 20, 0.15);
  }

  .tool-config-metric:first-child {
    border-top: 0;
  }
}

.swal-popup--files-upload {
  width: min(1160px, 96vw);
}

.swal-popup--files-manage {
  width: min(1160px, 96vw);
  padding-top: 8px;
}

.swal-popup--files-manage .swal2-html-container {
  margin: 0;
  padding: 0;
}

.swal-files-manage__title {
  margin-top: 2px;
  margin-bottom: 18px;
}

.swal-files-manage__actions {
  margin-top: 14px;
}

.swal-form__row .swal-form__input[type="number"] {
  max-width: 120px;
}

.api-spend-toast-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(20, 20, 20, 0.15);
  background: #ffffff;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.08rem;
  color: #d92d2d;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 6;
}

.api-spend-toast-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.swal-form__label {
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--muted);
}

.swal-form__input {
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
}

.swal-form__password-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 0;
}

.swal-form__password-wrap .swal-form__input {
  border-right: 0;
}

.swal-form__password-toggle {
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.swal-form__password-toggle .material-symbols-outlined {
  font-size: 1rem;
}

.swal-form__input--compact {
  max-width: 320px;
  width: 100%;
  margin: 0;
  align-self: flex-start;
}

.swal-files-upload {
  align-items: flex-start;
  position: relative;
}

.swal-files-manage {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  width: 100%;
  min-height: 460px;
  margin: 0;
}

.swal-files-manage__menu {
  border: 1px solid rgba(20, 20, 20, 0.2);
  display: flex;
  flex-direction: column;
  align-self: stretch;
  margin: 0;
  padding: 0;
}

.swal-files-manage__menu-item {
  border: none;
  border-bottom: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: left;
}

.swal-files-manage__menu-item:last-child {
  border-bottom: none;
}

.swal-files-manage__menu-item.is-active {
  background: rgba(20, 20, 20, 0.08);
}

.swal-files-manage__menu-item .material-symbols-outlined {
  font-size: 20px;
}

.swal-files-manage__content {
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-left: none;
  background: #ffffff;
  min-height: 460px;
  padding: 12px;
}

.swal-files-manage__panel {
  display: none;
  height: 100%;
  position: relative;
}

.swal-files-manage__panel.is-active {
  display: block;
}

.swal-files-manage__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  padding-top: 6px;
}

body.tools-page .home-hero {
  aspect-ratio: 32 / 9 !important;
  min-height: clamp(240px, 28vw, 420px) !important;
  height: auto !important;
}

.swal-files-manage__status-block {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(20, 20, 20, 0.16);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swal-files-status-control {
  border: 1px solid rgba(20, 20, 20, 0.42);
  background: #ffffff;
  min-height: 40px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
}

.swal-files-status-control--pending {
  background: rgba(33, 150, 243, 0.12);
  border-color: rgba(33, 150, 243, 0.5);
}

.swal-files-status-control--in_process {
  background: rgba(255, 193, 7, 0.16);
  border-color: rgba(255, 193, 7, 0.56);
}

.swal-files-status-control--finalized {
  background: rgba(76, 175, 80, 0.16);
  border-color: rgba(76, 175, 80, 0.58);
}

.swal-files-status-control__icon,
.swal-files-status-control__arrow {
  font-size: 18px;
  color: rgba(20, 20, 20, 0.88);
  justify-self: center;
}

.swal-files-status-select {
  border: none;
  background: transparent;
  min-height: 38px;
  padding: 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  font-size: 0.78rem;
}

.swal-files-status-select:focus {
  outline: none;
}

.swal-files-manage__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.swal-files-manage__files-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.swal-files-manage__download {
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: #ffffff;
  color: #141414;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  cursor: pointer;
}

.swal-files-manage__download .material-symbols-outlined {
  font-size: 18px;
}

.swal-files-manage__download:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.swal-files-manage__tile {
  position: relative;
}

.swal-files-manage__image {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #f8f8f8;
  padding: 0;
  cursor: pointer;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  width: 100%;
}

.swal-files-manage__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swal-files-manage__upload-slot {
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-style: dashed;
  background: rgba(20, 20, 20, 0.03);
  aspect-ratio: 1;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.swal-files-manage__upload-slot .material-symbols-outlined {
  font-size: 32px;
  color: rgba(20, 20, 20, 0.66);
}

.swal-files-manage__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(20, 20, 20, 0.34);
  background: rgba(255, 255, 255, 0.96);
  color: #202020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  cursor: pointer;
}

.swal-files-manage__remove .material-symbols-outlined {
  font-size: 17px;
}

.swal-files-manage__tile:hover .swal-files-manage__remove,
.swal-files-manage__tile:focus-within .swal-files-manage__remove {
  opacity: 1;
  pointer-events: auto;
}

.swal-files-manage__empty {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: var(--muted);
}

.swal-files-upload--with-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 18px;
  width: 100%;
}

.swal-files-upload__main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.swal-files-upload__meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  width: 100%;
}

.swal-files-upload__meta-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swal-files-upload__meta-field--full {
  grid-column: 1 / -1;
}

.swal-files-upload__meta-grid .swal-form__input {
  width: 100%;
}

.swal-files-edit-delete-trigger {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  border: 1px solid #9d1212;
  background: #d62828;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border-radius: 0;
}

.swal-files-edit-delete-trigger:hover,
.swal-files-edit-delete-trigger:focus-visible {
  background: #b71c1c;
  border-color: #8b1111;
  outline: none;
}

.swal-files-edit-delete-trigger .material-symbols-outlined {
  font-size: 20px;
}

.swal-files-dropzone {
  width: 100%;
  border: 1px dashed rgba(20, 20, 20, 0.45);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
}

.swal-files-dropzone .material-symbols-outlined {
  font-size: 30px;
}

.swal-files-dropzone p {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: var(--muted);
}

.swal-files-dropzone.is-dragging {
  border-color: rgba(20, 20, 20, 0.8);
  background: rgba(20, 20, 20, 0.05);
}

.swal-files-upload__actions {
  width: 100%;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swal-files-upload__count {
  margin: 2px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.swal-files-upload__panel {
  border: 1px solid rgba(20, 20, 20, 0.2);
  padding: 10px;
  background: rgba(20, 20, 20, 0.02);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}

.swal-files-upload__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.swal-files-upload__panel-header strong {
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.swal-files-upload__view-modes {
  display: inline-flex;
  gap: 6px;
}

.swal-files-upload__view-modes .table__icon-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
}

.swal-files-upload__view-modes .table__icon-button.is-active {
  border-color: rgba(20, 20, 20, 0.7);
  background: rgba(20, 20, 20, 0.08);
}

.swal-files-upload__view-modes .material-symbols-outlined {
  font-size: 18px;
}

.swal-files-selected-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.swal-files-selected-list__empty {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  color: var(--muted);
}

.swal-files-selected-list.is-grid-large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.swal-files-selected-list.is-grid-small {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.swal-files-selected-list.is-list {
  grid-template-columns: 1fr;
}

.swal-files-selected-item {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.swal-files-selected-item__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(20, 20, 20, 0.36);
  background: #ffffff;
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.swal-files-selected-item__remove .material-symbols-outlined {
  font-size: 16px;
}

.swal-files-selected-item:hover .swal-files-selected-item__remove,
.swal-files-selected-item:focus-within .swal-files-selected-item__remove {
  opacity: 1;
  pointer-events: auto;
}

.swal-files-selected-item__remove:hover,
.swal-files-selected-item__remove:focus-visible {
  border-color: rgba(155, 17, 17, 0.72);
  color: #9b1111;
}

.swal-files-selected-item__icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 20, 20, 0.16);
}

.swal-files-selected-item__icon.has-thumb {
  width: 64px;
  min-width: 64px;
  height: 46px;
  padding: 0;
  overflow: hidden;
  background: #f6f6f6;
}

.swal-files-selected-item__icon .material-symbols-outlined {
  font-size: 18px;
  color: var(--muted);
}

.swal-files-selected-item__thumb-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.swal-files-selected-item__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
  flex: 1;
}

.swal-files-selected-item__meta strong,
.swal-files-selected-item__meta small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swal-files-selected-item__meta strong {
  font-size: 0.78rem;
}

.swal-files-selected-item__meta small {
  font-size: 0.7rem;
  color: var(--muted);
}

.swal-files-selected-item__size {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04rem;
}

.swal-files-selected-list.is-grid-small .swal-files-selected-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.swal-files-selected-list.is-grid-small .swal-files-selected-item__icon.has-thumb,
.swal-files-selected-list.is-grid-large .swal-files-selected-item__icon.has-thumb {
  width: 100%;
  min-width: 0;
  height: 96px;
}

.swal-files-selected-list.is-grid-small .swal-files-selected-item__size {
  align-self: flex-end;
}

.swal-files-source-picker {
  display: flex;
  gap: 10px;
  justify-content: center;
}

@media (max-width: 980px) {
  .swal-popup--files-upload {
    width: min(760px, 96vw);
  }

  .swal-popup--files-manage {
    width: min(760px, 96vw);
  }

  .swal-files-manage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .swal-files-manage__menu {
    flex-direction: row;
  }

  .swal-files-manage__menu-item {
    border-right: 1px solid rgba(20, 20, 20, 0.2);
    border-bottom: none;
    flex: 1;
    justify-content: center;
  }

  .swal-files-manage__menu-item:last-child {
    border-right: none;
  }

  .swal-files-manage__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 340px;
  }

  .swal-files-upload--with-panel {
    grid-template-columns: 1fr;
  }

  .swal-files-selected-list.is-grid-large,
  .swal-files-selected-list.is-grid-small {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-files-gallery-mode="editing"] .table__row--files-gallery {
    grid-template-columns: minmax(138px, 1.5fr) minmax(90px, 0.9fr) minmax(90px, 0.9fr) minmax(86px, 0.7fr) minmax(74px, 0.55fr) minmax(106px, 0.8fr) minmax(84px, 0.6fr);
    gap: 8px;
  }

  .swal-files-manage__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.swal-files-work-summary {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.16);
  padding: 10px 12px;
  background: rgba(20, 20, 20, 0.03);
  display: grid;
  gap: 6px;
}

.swal-files-work-summary p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text);
}

.swal-popup--files-preview {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
}

.files-preview-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.files-preview-modal__meta,
.files-preview-modal__empty {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--muted);
}

.files-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  max-height: min(62vh, 560px);
  overflow: auto;
  padding-right: 4px;
}

.files-preview-card {
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

.files-preview-card img,
.files-preview-card video {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(20, 20, 20, 0.15);
  background: rgba(20, 20, 20, 0.04);
}

.files-preview-card figcaption,
.files-preview-card--file {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.files-preview-card strong {
  font-size: 0.8rem;
  color: var(--text);
  word-break: break-word;
}

.files-preview-card small {
  font-size: 0.68rem;
  letter-spacing: 0.04rem;
  color: var(--muted);
  word-break: break-word;
}

.files-preview-card--file {
  justify-content: center;
  min-height: 150px;
}

.files-preview-card--file .material-symbols-outlined {
  font-size: 26px;
}

.swal-form__input--status {
  padding-right: 36px;
}

.swal-form__input.is-valid {
  border-color: #0b6b3a;
}

.swal-form__input.is-invalid {
  border-color: var(--danger);
}

.swal2-validation-message {
  background: transparent;
  color: var(--danger);
  text-align: left;
  padding: 0;
  margin: 8px 0 0;
  font-size: 0.8rem;
  display: block;
}

.swal2-validation-message::before {
  display: none;
}

select.swal-form__input {
  appearance: none;
  background-color: transparent;
}

.swal-button {
  border-radius: 0;
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: transparent;
  padding: 10px 16px;
  min-height: 42px;
  box-sizing: border-box;
  line-height: 1;
  font-size: 0.8rem;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.swal-button .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.swal-button__content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.swal-button__icon {
  font-size: 18px;
  line-height: 1;
}

.swal-button__text {
  line-height: 1;
}

.swal-button--secondary {
  border-color: rgba(20, 20, 20, 0.4);
  color: var(--muted);
}

.swal-button--success {
  border-color: rgba(38, 132, 62, 0.7);
  color: #1f7a35;
  background: rgba(38, 132, 62, 0.08);
}

.swal-button--danger {
  border-color: rgba(192, 57, 43, 0.72);
  color: #b43427;
  background: rgba(192, 57, 43, 0.08);
}

.swal-popup__analytics-table .table__cell,
.swal-popup__analytics-table .table__cell--header {
  text-align: left;
  justify-content: flex-start;
}

.swal-popup.swal-popup--analytics-table-modal {
  width: min(1200px, 92vw);
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  min-height: 60vh;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  padding: 22px 20px 18px;
}

.swal-popup.swal-popup--analytics-table-modal .swal2-title {
  position: relative;
  flex: 0 0 auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  margin: 0 28px 0 0;
  padding: 0 0 10px;
  background: #ffffff;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
}

.swal-popup.swal-popup--analytics-table-modal .swal2-html-container {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.swal-popup.swal-popup--analytics-table-modal .swal2-actions {
  display: none !important;
}

.swal-popup__close {
  display: inline-flex !important;
  position: absolute;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  top: 10px;
  right: 10px;
  padding: 0;
  border: 1px solid rgba(20, 20, 20, 0.45);
  border-radius: 0;
  background: #ffffff;
  color: #141414;
  font-size: 1.1rem;
  line-height: 1;
}

.swal-popup__close:hover,
.swal-popup__close:focus-visible {
  background: #141414;
  color: #ffffff;
  outline: none;
}

.swal-popup__close.swal-popup__close--ghost {
  border: 0;
  background: transparent;
  color: rgba(20, 20, 20, 0.78);
}

.swal-popup__close.swal-popup__close--ghost:hover,
.swal-popup__close.swal-popup__close--ghost:focus-visible {
  background: rgba(20, 20, 20, 0.1);
  color: #141414;
}

.swal-popup.swal-popup--pro-upgrade {
  --pro-popup-padding: 18px;
  width: min(64vw, 760px);
  max-width: 64vw;
  min-height: min(88vh, 900px);
  border-radius: 18px;
  border: none;
  padding: 0;
  background: #000;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.swal-popup.swal-popup--pro-upgrade .swal2-title {
  display: none;
}

.swal-popup.swal-popup--pro-upgrade .swal2-html-container {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.swal-popup.swal-popup--pro-upgrade .swal2-actions {
  display: none !important;
}

.swal-popup.swal-popup--pro-upgrade .swal2-close {
  color: rgba(255, 255, 255, 0.92);
}

.swal-pro-offer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  background:
    radial-gradient(76% 62% at 14% 8%, rgba(118, 118, 118, 0.34) 0%, rgba(118, 118, 118, 0) 68%),
    radial-gradient(64% 58% at 84% 18%, rgba(94, 94, 94, 0.26) 0%, rgba(94, 94, 94, 0) 70%),
    radial-gradient(120% 86% at 46% 100%, rgba(72, 72, 72, 0.35) 0%, rgba(72, 72, 72, 0) 72%),
    linear-gradient(152deg, #040404 0%, #101010 46%, #1c1c1c 100%);
  background-size: 130% 130%, 120% 120%, 140% 140%, 100% 100%;
  background-position: 8% 4%, 92% 14%, 56% 100%, 50% 50%;
  animation: pro-offer-radial-flow 16s ease-in-out infinite;
  padding: 0 0 18px;
}

.swal-pro-offer::before {
  content: "";
  position: absolute;
  inset: -16% -14% -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(54% 46% at 22% 30%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(46% 42% at 82% 40%, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 74%),
    radial-gradient(62% 54% at 50% 84%, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
  animation: pro-offer-radial-drift 11.8s ease-in-out infinite;
}

.swal-pro-offer > * {
  position: relative;
  z-index: 1;
}

.swal-pro-offer__hero {
  position: relative;
  border-left: 0;
  margin: 0;
  padding: 18px var(--pro-popup-padding) 56px;
  min-height: 210px;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.swal-pro-offer__hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: min(56%, 320px);
  height: 64px;
  transform: translateX(-50%);
  pointer-events: none;
  background: url("/assets/brand/icons/EDOLLS_T.png") center / contain no-repeat;
  opacity: 0.18;
  filter: grayscale(1) brightness(1.45);
  mix-blend-mode: screen;
}

.swal-pro-offer__hero > * {
  position: relative;
  z-index: 1;
}

.swal-pro-offer__eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 4px;
}

.swal-pro-offer__headline {
  font-family: var(--font-text-reading);
  font-size: clamp(1.44rem, 2vw, 1.95rem);
  line-height: 1.12;
  margin: 0;
  color: #ffffff;
}

.swal-pro-offer__subtitle {
  margin: 8px auto 0;
  max-width: min(92%, 540px);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.swal-pro-offer__benefits {
  list-style: none;
  margin: 0;
  padding: 0 var(--pro-popup-padding);
  display: grid;
  gap: 8px;
}

.swal-pro-offer__benefit {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.swal-pro-offer__benefit:first-child {
  border-top: none;
}

.swal-pro-offer__benefit-icon {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 1px;
}

.swal-pro-offer__benefit-copy h4 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.swal-pro-offer__benefit-copy p {
  margin: 3px 0 0;
  font-size: 0.76rem;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.86);
}

.swal-pro-offer__pricing {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px var(--pro-popup-padding) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.swal-pro-offer__old-price {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: line-through;
}

.swal-pro-offer__new-price {
  margin: 0;
  font-family: var(--font-text-reading);
  font-size: clamp(1.58rem, 2.4vw, 2.05rem);
  line-height: 1;
  color: #ffffff;
}

.swal-pro-offer__currency {
  font-size: 0.52em;
  letter-spacing: 0.03em;
  vertical-align: baseline;
}

.swal-pro-offer__price-note {
  margin: 5px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.swal-pro-offer__cta {
  margin-top: 10px;
  min-width: 170px;
  align-self: center;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.05);
}

@keyframes pro-offer-radial-flow {
  0% {
    background-position: 8% 4%, 92% 14%, 56% 100%, 50% 50%;
    background-size: 130% 130%, 120% 120%, 140% 140%, 100% 100%;
  }
  29% {
    background-position: 16% 10%, 78% 24%, 48% 88%, 49% 51%;
    background-size: 136% 132%, 124% 126%, 146% 142%, 100% 100%;
  }
  63% {
    background-position: 3% 14%, 86% 8%, 60% 82%, 51% 49%;
    background-size: 126% 128%, 128% 122%, 142% 136%, 100% 100%;
  }
  100% {
    background-position: 11% 6%, 90% 18%, 54% 94%, 50% 50%;
    background-size: 132% 134%, 122% 124%, 144% 140%, 100% 100%;
  }
}

@keyframes pro-offer-radial-drift {
  0% {
    transform: translate3d(-1.2%, -0.8%, 0) rotate(-0.42deg);
  }
  34% {
    transform: translate3d(1.3%, 0.5%, 0) rotate(0.28deg);
  }
  67% {
    transform: translate3d(-0.8%, 0.9%, 0) rotate(-0.2deg);
  }
  100% {
    transform: translate3d(0.6%, -0.6%, 0) rotate(0.18deg);
  }
}

@media (max-width: 900px) {
  .swal-popup.swal-popup--pro-upgrade {
    --pro-popup-padding: 14px;
    width: 90vw;
    max-width: 90vw;
    min-height: 86vh;
    padding: 0;
  }

  .swal-pro-offer__hero {
    min-height: 190px;
  }

  .swal-pro-offer__hero::after {
    width: min(64%, 250px);
    height: 52px;
    bottom: 10px;
  }
}

.grok-prompts-dialog {
  align-items: stretch;
}

.grok-prompts-dialog__mode-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.grok-prompts-dialog__mode-label {
  margin: 0;
}

.grok-prompts-dialog__mode-select {
  width: 220px;
  max-width: 100%;
}

.grok-prompts-dialog__textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
}

.grok-prompts-dialog__lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.grok-prompts-dialog__line-input {
  width: 100%;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid rgba(20, 20, 20, 0.3);
  padding: 6px 0;
  min-height: 34px;
}

.grok-prompts-dialog__line-input:focus {
  border-bottom-color: rgba(20, 20, 20, 0.8);
}

.grok-prompts-dialog__bulk-hint {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: left;
}

.grok-prompts-dialog__rating-label {
  margin-top: 4px;
}

.grok-prompts-dialog__rating-grid {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.grok-prompts-dialog__rating-option {
  border: 1px solid rgba(20, 20, 20, 0.38);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  padding: 0;
  width: 26px;
  flex: 0 0 26px;
  aspect-ratio: 1 / 1;
  min-height: 26px;
  cursor: pointer;
}

.grok-prompts-dialog__rating-option:hover,
.grok-prompts-dialog__rating-option:focus-visible {
  border-color: rgba(20, 20, 20, 0.78);
  background: rgba(20, 20, 20, 0.06);
  outline: none;
}

.grok-prompts-dialog__rating-option.is-active {
  border-color: rgba(20, 20, 20, 0.88);
  background: rgba(20, 20, 20, 0.14);
  font-weight: 700;
}

.grok-prompts-dialog__tests-section {
  width: 100%;
  margin-top: 8px;
}

.grok-prompts-dialog__tests-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.grok-prompts-dialog__tests-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.grok-prompts-dialog__tests-add {
  margin-top: 8px;
}

.grok-prompts-dialog__test-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(20, 20, 20, 0.16);
  padding: 8px;
}

.grok-prompts-dialog__test-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.grok-prompts-dialog__test-prompt {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  word-break: break-word;
}

.grok-prompts-dialog__test-meta {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.grok-prompts-dialog__test-actions {
  display: inline-flex;
  gap: 6px;
}

.grok-prompts-dialog__test-action {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.62rem;
}

.grok-prompts-dialog__test-editor {
  margin-top: 10px;
  border-top: 1px solid rgba(20, 20, 20, 0.16);
  padding-top: 10px;
}

.grok-prompts-dialog__test-editor-actions {
  margin-top: 8px;
  display: inline-flex;
  gap: 8px;
}

.grok-prompts-dialog__test-status {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.grok-prompts-studio-menu {
  position: relative;
}

.grok-prompts-studio-menu__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-color: rgba(20, 20, 20, 0.68);
  background-image: linear-gradient(
    90deg,
    rgba(149, 236, 255, 0.44) 0%,
    rgba(255, 181, 227, 0.44) 48%,
    rgba(173, 243, 255, 0.44) 100%
  );
  background-size: 200% 100%;
  animation: grok-studio-gradient 7s linear infinite;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.grok-prompts-studio-menu__toggle:hover,
.grok-prompts-studio-menu__toggle:focus-visible,
.grok-prompts-studio-menu__toggle[aria-expanded="true"] {
  border-color: rgba(20, 20, 20, 0.78);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.grok-prompts-studio-menu__neural {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.grok-prompts-studio-menu__neural-svg {
  width: 16px;
  height: 16px;
  overflow: visible;
  animation: grok-neural-float 3.2s ease-in-out infinite;
}

.grok-prompts-studio-menu__line {
  stroke: currentColor;
  stroke-width: 0.9;
  opacity: 0.28;
  stroke-linecap: round;
  animation: grok-neural-line 2.4s ease-in-out infinite;
}

.grok-prompts-studio-menu__line--2,
.grok-prompts-studio-menu__line--5 {
  animation-delay: 0.22s;
}

.grok-prompts-studio-menu__line--3,
.grok-prompts-studio-menu__line--6 {
  animation-delay: 0.44s;
}

.grok-prompts-studio-menu__node {
  fill: currentColor;
  opacity: 0.52;
  transform-box: fill-box;
  transform-origin: center;
  animation: grok-neural-node 2.2s ease-in-out infinite;
}

.grok-prompts-studio-menu__node--2,
.grok-prompts-studio-menu__node--4 {
  animation-delay: 0.18s;
}

.grok-prompts-studio-menu__node--3 {
  animation-delay: 0.36s;
}

.grok-prompts-studio-menu__toggle:hover .grok-prompts-studio-menu__neural-svg,
.grok-prompts-studio-menu__toggle:focus-visible .grok-prompts-studio-menu__neural-svg,
.grok-prompts-studio-menu__toggle[aria-expanded="true"] .grok-prompts-studio-menu__neural-svg {
  animation-duration: 2.4s;
}

.grok-prompts-studio-menu__toggle:hover .grok-prompts-studio-menu__line,
.grok-prompts-studio-menu__toggle:focus-visible .grok-prompts-studio-menu__line,
.grok-prompts-studio-menu__toggle[aria-expanded="true"] .grok-prompts-studio-menu__line {
  animation-duration: 1.8s;
}

.grok-prompts-studio-menu__toggle:hover .grok-prompts-studio-menu__node,
.grok-prompts-studio-menu__toggle:focus-visible .grok-prompts-studio-menu__node,
.grok-prompts-studio-menu__toggle[aria-expanded="true"] .grok-prompts-studio-menu__node {
  animation-duration: 1.6s;
}

@keyframes grok-neural-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.6px);
  }
}

@keyframes grok-neural-line {
  0%,
  100% {
    opacity: 0.28;
  }

  50% {
    opacity: 0.62;
  }
}

@keyframes grok-neural-node {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(1);
  }

  45% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes grok-studio-gradient {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.grok-prompts-studio-menu__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  border: 1px solid rgba(20, 20, 20, 0.24);
  background: #ffffff;
  z-index: 12;
}

.grok-prompts-studio-menu__item {
  display: block;
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(20, 20, 20, 0.15);
  background: #ffffff;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}

.grok-prompts-studio-menu__item:last-child {
  border-bottom: none;
}

.grok-prompts-studio-menu__item:hover,
.grok-prompts-studio-menu__item:focus-visible {
  background: rgba(20, 20, 20, 0.06);
  outline: none;
}

.grok-prompts-studio-menu__item:disabled,
.grok-prompts-studio-menu__item[aria-disabled="true"] {
  color: rgba(20, 20, 20, 0.42);
  background: #f2f2f2;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .grok-prompts-studio-menu__toggle {
    animation: none;
    background-position: 50% 50%;
  }

  .grok-prompts-studio-menu__neural-svg,
  .grok-prompts-studio-menu__line,
  .grok-prompts-studio-menu__node {
    animation: none;
  }

  .grok-prompts-studio-menu__line {
    opacity: 0.45;
  }

  .grok-prompts-studio-menu__node {
    opacity: 0.75;
  }
}

  .swal-popup--grok-report {
    width: min(96vw, 980px);
  }

  .grok-report {
    text-align: left;
  }

  .grok-report--pdf {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 74vh;
    overflow-y: auto;
    padding-right: 4px;
  }

  .grok-report__header {
    border: 1px solid rgba(20, 20, 20, 0.2);
    padding: 10px;
  }

  .grok-report__meta {
    margin: 0 0 10px;
    font-size: 0.74rem;
    color: var(--muted);
  }

  .grok-report__kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .grok-report__kpi {
    border: 1px solid rgba(20, 20, 20, 0.2);
    padding: 8px;
  }

  .grok-report__kpi-label {
    margin: 0;
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08rem;
  }

  .grok-report__kpi-value {
    margin: 4px 0 0;
    font-size: 0.92rem;
    font-weight: 700;
  }

  .grok-report__section {
    border: 1px solid rgba(20, 20, 20, 0.16);
    padding: 10px;
  }

  .grok-report__section > h3 {
    margin: 0 0 8px;
    font-size: 0.82rem;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
  }

  .grok-report__chart {
    width: 100%;
    min-height: 250px;
  }

  .grok-report__raw {
    margin: 0;
    border: 1px solid rgba(20, 20, 20, 0.2);
    background: #fff;
    padding: 8px;
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .grok-studio-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 56vh;
    overflow: auto;
  }

  .grok-studio-list__item {
    width: 100%;
    border: 1px solid rgba(20, 20, 20, 0.2);
    background: #ffffff;
    color: #141414;
    text-align: left;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
  }

  .grok-studio-list__item:hover,
  .grok-studio-list__item:focus-visible {
    background: rgba(20, 20, 20, 0.06);
    outline: none;
  }

  .grok-studio-list__name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .grok-studio-list__meta {
    font-size: 0.72rem;
    color: var(--muted);
  }

  @media (max-width: 900px) {
    .grok-report__kpis {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grok-report__chart {
      min-height: 210px;
    }
  }

.swal2-actions {
  gap: 12px;
}

.swal2-actions .swal-button {
  min-width: 140px;
  height: 42px;
}

.registration-complete {
  background: #ffffff;
  color: var(--text);
}

.registration-complete__main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 20px;
  text-align: center;
}

.registration-complete__logo {
  width: 160px;
  height: auto;
}

.registration-complete__title {
  font-size: 1.4rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  font-weight: 500;
}

.registration-complete__message {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 520px;
}

.registration-complete__status {
  min-height: 1.2em;
  font-size: 0.85rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.registration-complete__status.is-error {
  color: var(--danger);
}

.content-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.content-editor__compact {
  min-width: 130px;
}

.content-editor__font-select {
  min-width: 230px;
}

.content-editor__color {
  width: 56px;
  min-width: 56px;
  padding: 0;
}

.content-editor__surface {
  min-height: 340px;
  padding: 12px;
  border: 1px solid #d8dde8;
  background: #fff;
  color: #111;
  line-height: 1.6;
}

.content-editor__surface:focus {
  outline: none;
  border-color: #111;
}

.content-editor__image-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.content-editor__image-row .form__label {
  width: 100%;
}

.content-editor__file-input {
  display: none;
}

.content-editor__control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.content-editor__image-options {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 8px;
}

.content-editor__control-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--muted);
}

.content-editor__image-row .button {
  width: 100%;
  align-self: stretch;
}

.content-editor__pending-row {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 8px;
  align-items: center;
}

.content-editor__pending-actions {
  width: 100%;
  margin-top: 8px;
}

.content-editor__pending-actions .button {
  width: 100%;
}

.watermark__dropzone .upscaler__placeholder {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.content-editor__pending-row #editor-insert-image {
  width: auto;
  min-width: 150px;
}

.content-editor__pending-list {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  border: 1px solid #d8dde8;
  background: #fff;
  padding: 6px;
}

.content-editor__pending-item {
  width: 52px;
  height: 52px;
  position: relative;
  flex: 0 0 auto;
  border: 1px solid #d8dde8;
  background: #f6f8fd;
  cursor: grab;
}

.content-editor__pending-item.is-dragging {
  opacity: 0.5;
}

.content-editor__pending-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-editor__pending-delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border: 1px solid #141414;
  background: #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.content-editor__pending-delete .material-symbols-outlined {
  font-size: 14px;
}

.content-editor__add-square {
  width: 64px;
  height: 64px;
  border: 1px dashed #b9c2d4;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.content-editor__add-square.is-dragover {
  border-color: #111;
}

.content-editor__add-square.is-uploading {
  opacity: 0.65;
  pointer-events: none;
}

.content-editor__add-square .material-symbols-outlined {
  font-size: 24px;
}

.content-editor__surface img.is-selected-content-image {
  outline: 2px dashed #111;
  outline-offset: 3px;
}

.content-editor__image-settings-button {
  position: fixed;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(20, 20, 20, 0.85);
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 3000;
}

.content-editor__image-settings-button .material-symbols-outlined {
  font-size: 17px;
}

.content-editor__surface img[data-content-editor-image="true"] {
  display: block;
  margin: 12px auto;
}

.content-creator-page .content-editor__surface .content-editor__spacer {
  min-height: 26px;
  outline: 1px dashed rgba(20, 20, 20, 0.25);
  background: rgba(20, 20, 20, 0.04);
}

.content-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eceff6;
}

.content-list__row:last-child {
  border-bottom: 0;
}

.content-list__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.content-list__button,
.content-list__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.content-list__link {
  justify-content: center;
  width: 100%;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: underline;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-list__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.swal-popup--content-edit {
  width: 90vw;
  max-width: 90vw;
  height: 90vh;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.swal-popup--content-create {
  width: 90vw;
  max-width: 90vw;
  height: 90vh;
  max-height: 90vh;
}

.swal-popup--content-edit .swal2-html-container {
  margin: 0;
  padding: 0;
  width: 100%;
  flex: 1 1 auto;
  overflow: hidden;
}

.swal-popup--content-edit .swal2-title {
  display: none !important;
}

.content-edit-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  height: 100%;
  min-height: 0;
}

.content-edit-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.content-edit-modal--create .content-edit-modal__top {
  flex-wrap: nowrap;
  align-items: baseline;
}

.content-edit-modal--create .content-edit-modal__label {
  flex: 1 1 auto;
  min-width: 0;
}

.content-edit-modal--create .content-edit-modal__create-lang {
  flex: 0 0 auto;
}

.content-edit-modal__create-lang {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.content-edit-modal__create-lang-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--muted);
}

.content-edit-modal__layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.6fr);
  gap: 16px;
  align-items: stretch;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.content-edit-modal__left,
.content-edit-modal__right {
  min-height: 0;
  height: 100%;
}

.content-edit-modal--create .content-edit-modal__left {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.content-edit-modal--create .content-edit-modal__author-visibility {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.content-edit-modal__right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.content-edit-modal__meta {
  margin-bottom: 12px;
}

.content-edit-modal--create .content-edit-modal__surface {
  min-height: 420px;
}

.content-edit-modal--split .content-edit-modal__surface {
  min-width: 140px;
  min-height: 0;
  max-height: none;
  height: 100%;
  overflow-y: auto;
  border: 1px solid rgba(20, 20, 20, 0.6);
  background: #ffffff;
}

.content-edit-modal--split .content-editor__image-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-edit-modal--create .content-editor__image-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .content-edit-modal__layout {
    grid-template-columns: 1fr;
  }

  .content-edit-modal--create .content-edit-modal__top {
    flex-wrap: wrap;
  }
}

.content-edit-modal__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.content-edit-modal__slug-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(380px, 100%);
  flex: 1 1 320px;
}

.content-edit-modal__slug-row .form__input {
  width: 100%;
}

.content-edit-modal__slug-row .panel__meta {
  margin: 0;
}

.content-edit-modal__langs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.content-edit-modal__lang {
  border-radius: 0;
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: transparent;
  padding: 8px 12px;
  font-size: 0.75rem;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
}

.content-edit-modal__lang.is-active {
  border-color: rgba(20, 20, 20, 0.6);
  background: rgba(20, 20, 20, 0.08);
}

.content-edit-modal__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.content-edit-modal__toolbar .panel__action-button.is-active,
.content-edit-modal__toolbar .panel__action-button[aria-pressed="true"] {
  border-color: rgba(55, 55, 55, 0.75);
  background: rgba(120, 120, 120, 0.35);
}

.content-edit-modal__surface {
  min-height: 280px;
  max-height: 55vh;
  overflow-y: auto;
}

.content-edit-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.content-edit-modal__mentions {
  margin-top: 12px;
  border-top: 1px solid rgba(20, 20, 20, 0.2);
  padding-top: 10px;
}

.content-edit-modal__mentions-selected,
.content-edit-modal__mentions-results {
  border: 1px solid rgba(20, 20, 20, 0.22);
  background: #ffffff;
}

.content-edit-modal__mentions-selected {
  min-height: 44px;
  max-height: 132px;
  overflow-y: auto;
  padding: 8px;
}

.content-edit-modal__mentions-results {
  margin-top: 8px;
  max-height: 210px;
  overflow-y: auto;
  padding: 4px;
}

.content-edit-modal__mentions-empty,
.content-edit-modal__mentions-summary {
  margin: 0;
  font-size: 0.72rem;
}

.content-edit-modal__mentions-summary {
  margin-bottom: 6px;
}

.content-edit-modal__mentions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-edit-modal__mention-pill {
  border: 1px solid rgba(20, 20, 20, 0.3);
  background: rgba(20, 20, 20, 0.06);
  color: #141414;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.content-edit-modal__mention-pill .material-symbols-outlined {
  font-size: 16px;
}

.content-edit-modal__mention-pill-label {
  font-size: 0.71rem;
  line-height: 1.2;
}

.content-edit-modal__mention-option {
  width: 100%;
  border: 1px solid transparent;
  background: #ffffff;
  color: #141414;
  text-align: left;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
}

.content-edit-modal__mention-option:hover,
.content-edit-modal__mention-option:focus-visible {
  border-color: rgba(20, 20, 20, 0.34);
  background: rgba(20, 20, 20, 0.04);
  outline: none;
}

.content-edit-modal__mention-option.is-selected {
  border-color: rgba(20, 20, 20, 0.56);
  background: rgba(20, 20, 20, 0.09);
}

.content-edit-modal__mention-option-main {
  font-size: 0.75rem;
  line-height: 1.3;
}

.content-edit-modal__mention-option-meta {
  font-size: 0.67rem;
  color: rgba(20, 20, 20, 0.66);
}

@media (max-width: 980px) {
  .content-edit-modal__mentions-results {
    max-height: 180px;
  }
}

.swal-popup--content-repository {
  width: 94vw;
  max-width: 94vw;
  height: 88vh;
  max-height: 88vh;
}

.swal-popup--content-repository .swal2-html-container {
  margin: 0;
  padding: 0;
  width: 100%;
  height: calc(100% - 8px);
  overflow: hidden;
}

.content-repository {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
  background: #f4f5f7;
  border: 1px solid rgba(20, 20, 20, 0.18);
}

.content-repository__sidebar,
.content-repository__workspace {
  min-height: 0;
  border: 1px solid rgba(20, 20, 20, 0.18);
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.content-repository__sidebar-head,
.content-repository__workspace-title {
  margin: 0;
  padding: 11px 12px;
  font-size: 0.7rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.7);
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  background: linear-gradient(180deg, #fafbfc 0%, #f1f3f7 100%);
}

.content-repository__workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.content-repository__selected {
  padding-right: 12px;
  font-size: 0.66rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.64);
}

.content-repository__tree {
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.content-repository__tree-item {
  --depth: 0;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 6px;
  width: 100%;
  border: 1px solid transparent;
  background: #ffffff;
  color: #141414;
  padding: 7px 9px;
  padding-left: calc(8px + (var(--depth) * 12px));
  text-align: left;
  cursor: pointer;
}

.content-repository__tree-item .material-symbols-outlined {
  font-size: 18px;
}

.content-repository__tree-item.is-active {
  border-color: rgba(20, 20, 20, 0.38);
  background: #e9edf5;
}

.content-repository__tree-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
}

.content-repository__tree-count {
  font-size: 0.66rem;
  color: rgba(20, 20, 20, 0.64);
}

.content-repository__path {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
  background: #f8f9fb;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
}

.content-repository__crumb {
  border: 1px solid transparent;
  background: transparent;
  color: rgba(20, 20, 20, 0.86);
  font-size: 0.68rem;
  letter-spacing: 0.02rem;
  padding: 3px 6px;
  cursor: pointer;
}

.content-repository__crumb.is-active {
  border-color: rgba(20, 20, 20, 0.28);
  background: #ffffff;
}

.content-repository__crumb-separator {
  font-size: 14px;
  color: rgba(20, 20, 20, 0.44);
}

.content-repository__grid-wrap {
  min-height: 0;
  overflow: hidden;
  flex: 1;
}

.content-repository__grid {
  min-height: 0;
  height: 100%;
  padding: 10px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  align-content: start;
  background: #ffffff;
}

.content-repository__grid-empty {
  border: 1px dashed rgba(20, 20, 20, 0.28);
  padding: 18px;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(20, 20, 20, 0.62);
  background: rgba(20, 20, 20, 0.03);
}

.content-repository__card {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: #ffffff;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  position: relative;
}

.content-repository__card.is-selected {
  border-color: rgba(20, 20, 20, 0.75);
  background: #edf2fb;
}

.content-repository__card.is-focused {
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.6);
}

.content-repository__card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid rgba(20, 20, 20, 0.18);
  display: block;
}

.content-repository__card-name {
  font-size: 0.7rem;
  color: rgba(20, 20, 20, 0.86);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-repository__card-meta {
  font-size: 0.64rem;
  color: rgba(20, 20, 20, 0.52);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content-repository__card-check {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(20, 20, 20, 0.85);
  background: #ffffff;
  color: #141414;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.content-repository__card.is-selected .content-repository__card-check {
  display: inline-flex;
}

@media (max-width: 1100px) {
  .content-repository {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  }

  .content-repository__grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  }
}

@media (max-width: 840px) {
  .content-repository {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(130px, 0.55fr) minmax(260px, 1fr);
  }

  .content-repository__sidebar {
    overflow: hidden;
  }

  .content-repository__grid {
    grid-template-columns: repeat(auto-fill, minmax(114px, 1fr));
  }
}

@media (max-width: 760px) {
  .tool-settings-grid {
    grid-template-columns: 1fr;
  }

  .tool-settings-grid .form__field.form__field--full {
    grid-column: auto;
  }
}

.custom-public-page {
  min-height: 100vh;
  margin: 0;
  background: #f3f5fa;
  color: #111;
  font-family: var(--font-text-ui);
}

.custom-public-page__shell {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.custom-public-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: #111;
  text-decoration: none;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.custom-public-page__article {
  background: #fff;
  border: none;
  box-shadow: none;
  padding: 18px;
  width: min(900px, 100%);
  margin: 0 auto;
  overflow-wrap: anywhere;
}

.custom-public-page__content-grid {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 8px;
}

.custom-public-page .panel,
.custom-public-page .panel--span,
.custom-public-page .custom-public-page__article {
  border: none !important;
  box-shadow: none !important;
}

.custom-public-page__article img {
  max-width: 100%;
  height: auto;
}

.custom-public-page__article img[data-content-editor-image="true"] {
  display: block;
  margin: 0 auto 6px;
}

body.custom-public-page.public-content-preview-locked {
  position: static;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
}

body.custom-public-page.public-content-preview-locked .dashboard__content.home {
  min-height: 100vh;
  overflow: visible;
  touch-action: pan-y;
}

body.custom-public-page.public-content-preview-locked .custom-public-page__article {
  position: relative;
  max-height: min(68vh, 520px);
  overflow: hidden;
  padding-bottom: 180px;
}

body.custom-public-page.public-content-preview-locked .custom-public-page__article::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 250px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 18%,
    rgba(255, 255, 255, 0.34) 42%,
    rgba(255, 255, 255, 0.72) 66%,
    rgba(255, 255, 255, 0.94) 84%,
    #ffffff 100%
  );
  pointer-events: none;
}

.public-content-preview-lock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  padding: 18px 20px 20px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.58) 32%,
    rgba(255, 255, 255, 0.9) 60%,
    #ffffff 100%
  );
}

.public-content-preview-lock__title {
  font-size: 1.1rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02rem;
}

.public-content-preview-lock__text {
  max-width: 640px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(20, 20, 20, 0.82);
}

.public-content-preview-lock__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.public-content-preview-lock__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #141414;
  background: #ffffff;
  color: #141414;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
}

.public-content-preview-lock__button--primary {
  background: #141414;
  color: #ffffff;
}

@media (max-width: 720px) {
  body.custom-public-page.public-content-preview-locked .custom-public-page__article {
    max-height: min(62vh, 430px);
    padding-bottom: 235px;
  }

  body.custom-public-page.public-content-preview-locked .custom-public-page__article::after {
    height: 260px;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.16) 16%,
      rgba(255, 255, 255, 0.46) 40%,
      rgba(255, 255, 255, 0.82) 66%,
      rgba(255, 255, 255, 0.96) 84%,
      #ffffff 100%
    );
  }

  .public-content-preview-lock {
    padding: 14px 14px 18px;
    gap: 8px;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.62) 30%,
      rgba(255, 255, 255, 0.92) 58%,
      #ffffff 100%
    );
  }

  .public-content-preview-lock__title {
    font-size: 0.96rem;
  }

  .public-content-preview-lock__text {
    font-size: 0.82rem;
  }

  .public-content-preview-lock__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .public-content-preview-lock__button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .content-editor__image-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-editor__pending-row {
    grid-template-columns: 1fr;
  }

  .content-editor__add-square {
    width: 100%;
  }
}

/* SweetAlert2 toast: achievement progress pill (under topbar) */
.swal-toast-container--under-topbar.swal2-container {
  position: fixed;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
	display: flex;
	justify-content: center;
	align-items: flex-start;
}

.swal-popup.swal-toast-achievement.swal2-popup {
  width: min(560px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  overflow: visible;
  box-shadow: none;
  background: #ffffff;
}

.swal-popup.swal-toast-achievement .swal2-html-container {
  margin: 0;
  padding: 0;
  overflow: visible;
}

.achievement-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
	padding: 6px 12px;
  border: 0;
  background: transparent;
}

.achievement-toast__close {
  position: absolute;
  right: -9px;
  bottom: -9px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(20, 20, 20, 0.25);
  border-radius: 50%;
  background: #ffffff;
  color: #111111;
  z-index: 2;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.achievement-toast__close .material-symbols-outlined {
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  font-variation-settings: "opsz" 20, "wght" 500, "FILL" 0, "GRAD" 0;
}

.swal-popup.swal-toast-achievement:hover .achievement-toast__close,
.achievement-toast:focus-within .achievement-toast__close,
.achievement-toast__close:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {
  .achievement-toast__close {
    opacity: 1;
    pointer-events: auto;
  }
}

.achievement-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.achievement-toast__icon .material-symbols-outlined {
  font-size: 28px;
  line-height: 1;
}

.achievement-toast__body {
  flex: 1 1 auto;
  min-width: 0;
}

.achievement-toast__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.achievement-toast__title {
	font-weight: 700;
	font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.achievement-toast__delta {
	font-weight: 700;
	font-size: 12px;
  flex: 0 0 auto;
}

.achievement-toast__bar {
	margin-top: 4px;
	height: 6px;
  border: 0;
	background: rgba(20, 20, 20, 0.06);
  overflow: hidden;
}

.achievement-toast__bar-fill {
  display: block;
  height: 100%;
  width: 0;
	background: var(--gold);
	transition: width 900ms ease;
}

.achievement-toast__meta {
	margin-top: 4px;
	font-size: 11px;
  opacity: 0.9;
}

/* Keep home-editor sidebar width and main content offset in sync on resize. */
body.home-editor {
  --home-editor-sidebar-width: 300px;
}

body.home-editor .home-editor-config-sidebar.sidebar {
  width: var(--home-editor-sidebar-width);
  min-width: var(--home-editor-sidebar-width);
  max-width: var(--home-editor-sidebar-width);
  transform: none;
}

body.home-editor .dashboard__content.home {
  margin-left: var(--home-editor-sidebar-width);
}

@media (max-width: 960px) {
  body.home-editor {
    --home-editor-sidebar-width: 240px;
  }
}

@media (max-width: 720px) {
  body.home-editor {
    --home-editor-sidebar-width: 100%;
  }

  body.home-editor .home-editor-config-sidebar.sidebar {
    position: static;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid rgba(20, 20, 20, 0.12);
    transform: none;
  }

  body.home-editor .dashboard__content.home {
    margin-left: 0;
    height: auto;
    min-height: 100vh;
  }
}

@media (max-width: 640px) {
  body.home-editor .home-editor-config-sidebar.sidebar {
    width: 100%;
    transform: none;
  }

  body.home-editor .dashboard__content.home {
    margin-left: 0;
  }
}

/* Universal non-admin drawer route (single MENU pattern). */
body.universal-drawer-route {
  --sidebar-width: 0px !important;
}

body.universal-drawer-route .dashboard__content,
body.universal-drawer-route .settings-page .dashboard__content {
  margin-left: 0 !important;
  padding-top: 60px !important;
}

body.universal-drawer-route .dashboard-kpi-loader {
  left: 0 !important;
}

body.universal-drawer-route .dashboard__content > .home-topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  margin: 0 !important;
  z-index: 72 !important;
}

body[data-account-sidebar="true"] .sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: min(320px, var(--sidebar-width)) !important;
  height: 100dvh !important;
  min-height: 0 !important;
  transform: none !important;
  transition: none !important;
  z-index: 130 !important;
  overflow-y: hidden !important;
  box-shadow: none !important;
}

body[data-account-sidebar="true"] .sidebar__nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  visibility: visible !important;
  padding-bottom: 180px !important;
}

body[data-account-sidebar="true"] .sidebar__language,
body[data-account-sidebar="true"] .sidebar__profile {
  flex: 0 0 auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body[data-account-sidebar="true"] .sidebar__footer {
  display: flex !important;
  position: absolute !important;
  left: 20px !important;
  right: 20px !important;
  bottom: 20px !important;
  z-index: 10 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body[data-account-sidebar="true"] .sidebar__profile {
  position: relative !important;
}

body[data-account-sidebar="true"] .home-topbar__drawer-toggle,
body[data-account-sidebar="true"] [data-home-topbar-menu-toggle],
body[data-account-sidebar="true"] .home-mobile-nav,
body[data-account-sidebar="true"] [data-home-mobile-menu],
body[data-account-sidebar="true"] [data-home-mobile-overlay],
body[data-account-sidebar="true"] #home-sidebar-toggle {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body[data-account-sidebar="true"] .home-mobile-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.universal-drawer-route .sidebar {
  position: fixed !important;
  top: 60px !important;
  left: 0 !important;
  width: min(320px, 82vw) !important;
  height: calc(100dvh - 60px) !important;
  min-height: 0 !important;
  transform: translateX(-100%) !important;
  transition: transform 0.22s ease !important;
  z-index: 130 !important;
  overflow-y: auto !important;
  box-shadow: 16px 0 30px rgba(0, 0, 0, 0.16) !important;
}

body.universal-drawer-route.home-sidebar-open .sidebar {
  transform: translateX(0) !important;
}

body[data-account-sidebar="true"].universal-drawer-route .sidebar,
body[data-account-sidebar="true"] .sidebar {
  transform: none !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: min(320px, var(--sidebar-width)) !important;
  height: 100dvh !important;
}

body.universal-drawer-route .home-mobile-overlay {
  position: fixed !important;
  top: 60px !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  background: rgba(0, 0, 0, 0.35) !important;
  display: none !important;
  z-index: 120 !important;
}

body.universal-drawer-route.home-sidebar-open .home-mobile-overlay {
  display: block !important;
  pointer-events: auto !important;
}

@media (max-width: 1024px) {
  body.universal-drawer-route .home-topbar__drawer-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body.universal-drawer-route .home-mobile-nav {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.universal-drawer-route .dashboard__content {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 1025px) {
  body.universal-drawer-route .home-topbar__drawer-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.universal-drawer-route .home-mobile-overlay,
  body.universal-drawer-route.home-sidebar-open .home-mobile-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  body.universal-drawer-route .home-mobile-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}





/* Account settings and security owners */
.account-owner-page .dashboard__content.account-owner-content{gap:0;min-width:0;background:#f5f6f8}.account-owner-topbar{margin:0!important;min-height:64px;padding:0 32px!important;border-bottom:1px solid #e7e8eb;background:#fff}.account-owner-brand img{display:block;max-height:28px;width:auto}.account-owner-shell{width:min(980px,100%);box-sizing:border-box;margin:0 auto;padding:42px 32px 64px}.account-owner-heading{margin:0 0 28px}.account-owner-heading p{margin:0 0 7px;color:#ad1738;font-size:.72rem;font-weight:800;letter-spacing:.12em}.account-owner-heading h1{margin:0;color:#191b20;font-size:2rem}.account-owner-heading span{display:block;margin-top:8px;color:#6c7079}.account-owner-panel{margin:0 0 18px;padding:28px;border:1px solid #e4e6ea;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(25,27,32,.035)}.account-owner-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.account-owner-panel h2{margin:0;color:#202228;font-size:1.1rem}.account-owner-panel p{margin:6px 0 0;color:#747881;font-size:.9rem}.account-owner-fields,.account-security-form{display:grid;gap:16px}.account-owner-fields--two{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}.account-owner-page label{display:grid;gap:7px;color:#383b42;font-size:.82rem;font-weight:700}.account-owner-page label small{color:#858991;font-weight:400}.account-owner-page input,.account-owner-page textarea,.account-owner-page select{box-sizing:border-box;width:100%;border:0;border-radius:12px;outline:0;background:#f4f5f7;color:#24262c;font:inherit;padding:13px 14px}.account-owner-page textarea{resize:vertical;min-height:108px}.account-owner-page input:focus,.account-owner-page textarea:focus,.account-owner-page select:focus{box-shadow:0 0 0 3px rgba(173,23,56,.15);background:#fff}.account-owner-page button{border:0;border-radius:11px;padding:11px 15px;cursor:pointer;font:inherit;font-weight:700;background:#f0f1f3;color:#272a30}.account-owner-page .button-primary{background:#ad1738;color:#fff}.account-media-layout{display:grid;grid-template-columns:140px minmax(0,1fr);gap:18px;margin-bottom:22px}.account-avatar-editor,.account-banner-editor{display:grid;gap:10px}.account-avatar-editor img{width:112px;height:112px;border-radius:50%;object-fit:cover;background:#eceef1}.account-banner-preview{height:112px;border-radius:14px;background:#ebeef2 center/cover no-repeat}.account-banner-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.account-banner-actions label{display:flex;align-items:center;gap:8px}.account-banner-actions select{width:auto;padding:9px}.account-owner-status{min-height:1.25em;margin:16px 0 0!important;color:#16723d!important;font-weight:700}.account-owner-status.is-error{color:#b42318!important}.account-security-form{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.account-security-form .button-primary{align-self:end}.security-activity{border-top:1px solid #eceef0}.security-activity__row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid #eceef0}.security-activity__row>.material-symbols-outlined{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#f2f3f5;color:#555b65}.security-activity__row strong{color:#282b31;font-size:.9rem}.security-activity__row p{margin:3px 0 0;font-size:.8rem}.security-activity__row time{color:#737781;font-size:.8rem;text-align:right}@media(max-width:760px){.account-owner-topbar{padding:0 18px!important}.account-owner-shell{padding:28px 18px 48px}.account-owner-panel{padding:20px}.account-owner-panel__head{display:block}.account-owner-panel__head button{margin-top:16px}.account-owner-fields--two,.account-security-form{grid-template-columns:1fr}.account-media-layout{grid-template-columns:1fr}.account-banner-actions{align-items:flex-start;flex-direction:column}.security-activity__row{grid-template-columns:38px minmax(0,1fr)}.security-activity__row time{grid-column:2;text-align:left}}

/* Photoshoot selectors retain their rounded shape and show a dropdown indicator. */
body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__select {
  border: 1px solid rgba(20, 20, 20, 0.24);
  border-radius: 999px !important;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23141414' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
}
body[data-i18n-page="tool-photoshoot"] .photoshoot-color-picker__trigger { border-radius: 999px !important; }
body[data-i18n-page="tool-photoshoot"] .photoshoot-color-picker__menu { border-radius: 12px; }
body[data-i18n-page="tool-photoshoot"] .photoshoot-color-picker__option { border-radius: 50%; }
@media (max-width: 720px) {
  body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__subfield .photoshoot-styler__label,
  body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__subfield .photoshoot-styler__select,
  body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__subfield .photoshoot-styler__color-select { grid-row: auto; }
}

/* Give Photoshoot dropdowns the space reclaimed from their labels. */
@media (min-width: 721px) {
  body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__subfield {
    grid-template-columns: 90px minmax(0, 226px) 72px 38px 38px;
  }
  body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__subfield--count,
  body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__subfield--aspect {
    grid-template-columns: 90px minmax(0, 226px);
  }
  body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__subfield .photoshoot-styler__select,
  body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__subfield--model .tool-model-picker,
  body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__aspect-select,
  body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__range-wrap {
    width: 226px;
    max-width: 100%;
  }
}

body[data-i18n-page="tool-photoshoot"] .photoshoot-styler__select { border: 0; border-radius: 12px !important; }

body[data-i18n-page="tool-photoshoot"] .photoshoot-color-picker__trigger { border: 0; border-radius: 12px !important; }
body[data-i18n-page="tool-photoshoot"] .photoshoot-color-picker__menu { border: 0; border-radius: 12px; }

.clone-creation-page .clone-creation__step-card { border: 0; border-radius: 16px; color: #141414; }
.clone-creation-page .clone-creation__upload-title, .clone-creation-page .clone-creation__done-title { color: #141414; }

.achievement-toast__close { position: static; flex: 0 0 24px; opacity: 1; pointer-events: auto; }
