:root {
  --bg: #f4efe3;
  --paper: rgba(255, 250, 242, 0.9);
  --paper-strong: rgba(255, 252, 247, 0.96);
  --paper-soft: rgba(255, 255, 255, 0.6);
  --ink: #1f2b23;
  --muted: #5a685e;
  --line: rgba(31, 43, 35, 0.12);
  --line-strong: rgba(31, 43, 35, 0.18);
  --accent: #c76642;
  --accent-deep: #9f4627;
  --moss: #6b7c5f;
  --sky: #d7e6e9;
  --shadow: 0 24px 70px rgba(59, 47, 29, 0.14);
  --mono: var(--font-ibm-plex-mono), ui-monospace, monospace;
  --sans: var(--font-manrope), "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(199, 102, 66, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(107, 124, 95, 0.16), transparent 24%),
    linear-gradient(180deg, #f8f2e7 0%, #efe8d8 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

code,
pre,
textarea {
  font-family: var(--mono);
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.announcement-bar {
  position: relative;
  z-index: 3;
  width: min(1360px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 250, 242, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.announcement-bar a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.38;
}

.ambient-a {
  width: 30rem;
  height: 30rem;
  top: -6rem;
  right: -6rem;
  background: rgba(199, 102, 66, 0.24);
}

.ambient-b {
  width: 20rem;
  height: 20rem;
  left: -4rem;
  bottom: 4rem;
  background: rgba(107, 124, 95, 0.2);
}

.site-header,
.panel,
.hero-copy-panel,
.hero-panel {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--paper);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 8;
  width: min(1360px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup,
.hero-copy-panel,
.hero-stat-card,
.catalog-card,
.asset-card,
.history-card,
.template-card,
.style-card,
.inspiration-card,
.summary-stack,
.reference-preview-copy,
.stack-form,
.field-stack,
.config-list,
.session-meta,
.capability-overview,
.capability-summary {
  display: grid;
  gap: 12px;
}

.brand-lockup strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.site-nav,
.header-actions,
.hero-bullet-list,
.pill-group,
.action-row,
.history-actions,
.history-meta,
.source-asset-head,
.catalog-meta,
.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.locale-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover {
  background: rgba(31, 43, 35, 0.06);
  color: var(--ink);
}

.layout {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.landing-layout {
  display: grid;
  gap: 22px;
}

.hero-grid,
.workspace-grid,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(420px, 0.94fr);
  align-items: start;
}

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

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

.hero-copy-panel,
.hero-panel,
.panel {
  padding: 26px;
}

.hero-copy-panel {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(199, 102, 66, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 239, 0.78));
}

.hero-panel {
  position: relative;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero-cta-row,
.footer-grid,
.faq-grid,
.hero-mosaic,
.showcase-filter-row,
.library-controls,
.filter-button-row,
.template-details {
  display: grid;
  gap: 14px;
}

.hero-cta-row {
  margin-top: 8px;
  grid-template-columns: repeat(2, minmax(0, max-content));
}

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

.hero-mosaic-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(31, 43, 35, 0.1);
  background: rgba(255, 255, 255, 0.58);
  display: grid;
  gap: 10px;
}

.hero-mosaic-card p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-mosaic-media,
.showcase-cover,
.style-cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(31, 43, 35, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.hero-mosaic-media {
  aspect-ratio: 1.3 / 1;
}

.hero-mosaic-media img,
.showcase-cover img,
.style-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stat-grid,
.metrics-grid,
.field-grid,
.status-grid,
.catalog-grid,
.asset-grid,
.composer-summary,
.showcase-grid,
.inspiration-grid {
  display: grid;
  gap: 14px;
}

.hero-stat-grid,
.metrics-grid,
.status-grid,
.composer-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.asset-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.showcase-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.compact-showcase-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.inspiration-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.eyebrow,
.summary-label,
.stat-label,
.metric-card span,
.helper-inline,
.helper-text,
.field-stack span,
.token-wrap label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(31, 43, 35, 0.08);
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  font-size: 22px;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 15px;
}

.helper-paragraph {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-stat-card,
.metric-card,
.catalog-card,
.asset-card,
.history-card,
.empty-state,
.template-card,
.style-card,
.inspiration-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
}

.hero-stat-card,
.metric-card,
.catalog-card,
.asset-card,
.history-card,
.template-card,
.style-card,
.inspiration-card,
.empty-state {
  padding: 18px;
}

.showcase-filter-row {
  grid-template-columns: repeat(auto-fit, minmax(96px, max-content));
  margin: -2px 0 16px;
}

.library-controls {
  margin: 0 0 20px;
}

.filter-group {
  display: grid;
  gap: 10px;
}

.filter-button-row {
  grid-template-columns: repeat(auto-fit, minmax(112px, max-content));
}

.hero-stat-card strong,
.metric-card strong {
  font-size: 24px;
  letter-spacing: -0.05em;
}

.pill-button,
.ghost-button,
.link-button,
.filter-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(31, 43, 35, 0.14);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.pill-button:hover,
.ghost-button:hover,
.link-button:hover,
.filter-button:hover {
  transform: translateY(-1px);
  border-color: rgba(199, 102, 66, 0.34);
  background: rgba(255, 255, 255, 0.82);
}

.pill-button.is-active {
  border-color: rgba(199, 102, 66, 0.28);
  background: rgba(199, 102, 66, 0.12);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(199, 102, 66, 0.12);
}

.subtle-pills .pill-button {
  min-height: 40px;
  font-size: 14px;
}

.filter-button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.filter-button.is-active {
  border-color: rgba(199, 102, 66, 0.28);
  background: rgba(199, 102, 66, 0.12);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px rgba(199, 102, 66, 0.12);
}

.ghost-button:disabled,
.pill-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.ghost-button-accent {
  border-color: rgba(199, 102, 66, 0.3);
  background: rgba(199, 102, 66, 0.14);
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge {
  background: rgba(199, 102, 66, 0.14);
  color: var(--accent-deep);
}

.badge-soft,
.chip {
  background: rgba(107, 124, 95, 0.14);
  color: #4d5d36;
}

.meta-item,
.composer-summary .meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.panel {
  grid-column: span 4;
}

.panel-wide {
  grid-column: span 8;
}

.panel-log {
  min-height: 100%;
}

.console-intro-panel {
  grid-column: span 4;
}

.showcase-panel {
  overflow: hidden;
}

.panel-head,
.subsection-head,
.history-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-head {
  margin-bottom: 18px;
}

.subsection-head {
  margin: 18px 0 12px;
}

.notice {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(199, 102, 66, 0.28);
  background: rgba(199, 102, 66, 0.08);
  color: var(--accent-deep);
  line-height: 1.6;
}

.notice-soft {
  border-style: solid;
  border-color: rgba(107, 124, 95, 0.24);
  background: rgba(107, 124, 95, 0.08);
  color: #45533a;
}

.composer-notice {
  margin-bottom: 2px;
}

input,
select,
textarea {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-strong);
  color: var(--ink);
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 14px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
}

.checkbox-row input {
  width: 16px;
  min-height: auto;
  padding: 0;
}

.json-view,
.log-view {
  width: 100%;
  min-height: 220px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-strong);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
}

.log-view {
  min-height: 320px;
}

.ledger-view {
  min-height: 200px;
}

.reference-upload-block {
  display: grid;
  gap: 12px;
}

.upload-dropzone {
  width: 100%;
  padding: 22px;
  border: 1px dashed rgba(31, 43, 35, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(215, 230, 233, 0.46));
  text-align: left;
}

.upload-dropzone.is-dragover {
  border-color: rgba(199, 102, 66, 0.42);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(199, 102, 66, 0.1));
}

.reference-preview {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.reference-preview img {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.advanced-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.36);
}

.advanced-panel summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 14px;
}

.preview-wrap {
  margin: 16px 0 18px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(216, 231, 234, 0.4));
}

.preview-stage {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.preview-stage img,
.preview-stage video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.55);
}

.asset-card,
.catalog-card,
.history-card,
.template-card,
.style-card,
.inspiration-card {
  display: grid;
  gap: 12px;
}

.catalog-card.is-locked {
  opacity: 0.72;
}

.catalog-card.is-active,
.style-card.is-active,
.template-card.is-active {
  border-color: rgba(199, 102, 66, 0.28);
  box-shadow: inset 0 0 0 1px rgba(199, 102, 66, 0.12);
}

.asset-thumb,
.history-preview,
.inspiration-thumb {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.asset-thumb img,
.asset-thumb video,
.history-preview img,
.inspiration-thumb img,
.inspiration-thumb video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-body {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
}

.history-preview-empty {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 12px;
}

.template-card {
  min-height: 290px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.66), rgba(215, 230, 233, 0.62)),
    linear-gradient(180deg, rgba(199, 102, 66, 0.08), rgba(107, 124, 95, 0.08));
}

.template-card-featured {
  min-height: 320px;
}

.template-card-quick-path {
  min-height: 240px;
}

.template-card strong,
.style-card strong,
.inspiration-card strong,
.asset-meta strong,
.history-title strong {
  font-size: 15px;
}

.template-card p,
.style-card p {
  color: var(--muted);
  line-height: 1.65;
}

.style-card {
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 238, 0.62)),
    rgba(255, 255, 255, 0.5);
}

.showcase-cover {
  aspect-ratio: 1.24 / 1;
}

.style-cover {
  aspect-ratio: 1.1 / 1;
}

.showcase-cover-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.92);
  border: 1px solid rgba(31, 43, 35, 0.08);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-details {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.template-detail-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(31, 43, 35, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

.template-detail-item span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-detail-item strong {
  font-size: 13px;
  line-height: 1.5;
}

.template-preview-note {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(199, 102, 66, 0.24);
  background: rgba(199, 102, 66, 0.08);
  color: var(--accent-deep);
  font-size: 13px;
  line-height: 1.6;
}

.asset-meta,
.history-title {
  display: grid;
  gap: 6px;
}

.style-swatch {
  height: 78px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(135deg, var(--swatch-a, #f4d6b6), var(--swatch-b, #d9e6df));
}

.example-library-note {
  margin-bottom: 18px;
}

.pricing-panel {
  background:
    radial-gradient(circle at top right, rgba(199, 102, 66, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 240, 230, 0.82));
}

.pricing-head {
  align-items: flex-start;
}

.pricing-billing-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pricing-insights {
  margin-bottom: 18px;
}

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

.pricing-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(31, 43, 35, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(250, 243, 233, 0.82)),
    rgba(255, 255, 255, 0.52);
  box-shadow: 0 14px 36px rgba(59, 47, 29, 0.08);
}

.pricing-card-popular {
  border-color: rgba(199, 102, 66, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 243, 236, 0.88)),
    rgba(255, 255, 255, 0.56);
  box-shadow:
    0 20px 48px rgba(159, 70, 39, 0.12),
    inset 0 0 0 1px rgba(199, 102, 66, 0.12);
}

.pricing-card-head {
  display: grid;
  gap: 8px;
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-price {
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.pricing-note {
  color: var(--accent-deep);
  font-size: 12px;
  line-height: 1.5;
}

.pricing-card-status-row {
  display: grid;
  gap: 8px;
}

.pricing-placeholder-note {
  color: rgba(57, 49, 34, 0.76);
}

.pricing-section {
  display: grid;
  gap: 8px;
}

.pricing-model-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pricing-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pricing-feature-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.pricing-feature-list li::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(199, 102, 66, 0.72);
}

.pricing-footnote {
  margin-top: 14px;
}

.library-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.insight-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 240, 230, 0.78)),
    rgba(255, 255, 255, 0.5);
  display: grid;
  gap: 6px;
}

.insight-card strong {
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.insight-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.featured-showcase-grid {
  margin-bottom: 10px;
}

.template-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31, 43, 35, 0.12);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.template-signal-badge.is-hot {
  border-color: rgba(199, 102, 66, 0.28);
  background: rgba(199, 102, 66, 0.12);
  color: var(--accent-deep);
}

.inspiration-card {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(245, 239, 228, 0.72)),
    rgba(255, 255, 255, 0.5);
}

.inspiration-card .inspiration-thumb img,
.inspiration-card .inspiration-thumb video {
  aspect-ratio: 4 / 5;
}

.empty-state {
  color: var(--muted);
  line-height: 1.7;
}

.google-slot {
  min-height: 48px;
  margin-bottom: 16px;
}

.token-wrap {
  display: grid;
  gap: 10px;
}

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

.faq-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  display: grid;
  gap: 10px;
}

.faq-card p {
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  padding: 24px 28px 36px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 250, 242, 0.78);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

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

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-column a,
.footer-column span {
  color: var(--muted);
  text-decoration: none;
}

.field-stack-inline {
  align-content: start;
}

.source-asset-head {
  align-items: center;
  justify-content: space-between;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .site-header,
  .library-insights,
  .pricing-grid,
  .hero-mosaic,
  .faq-grid,
  .footer-grid,
  .hero-grid,
  .workspace-grid,
  .dashboard-grid,
  .field-grid,
  .metrics-grid,
  .status-grid,
  .composer-summary,
  .history-body {
    grid-template-columns: 1fr;
  }

  .panel,
  .panel-wide,
  .console-intro-panel {
    grid-column: auto;
  }

  .hero-stat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .announcement-bar,
  .site-header {
    top: 10px;
    width: min(100% - 16px, 1360px);
    padding: 14px;
    border-radius: 22px;
    flex-direction: column;
    align-items: stretch;
  }

  .announcement-bar {
    margin-top: 12px;
  }

  .layout {
    width: min(100% - 16px, 1360px);
    padding-top: 16px;
  }

  .hero-copy-panel,
  .hero-panel,
  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .site-nav,
  .header-actions,
  .hero-cta-row,
  .filter-button-row {
    justify-content: flex-start;
  }

  .field-grid,
  .showcase-grid,
  .inspiration-grid,
  .catalog-grid,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .reference-preview {
    grid-template-columns: 1fr;
  }

  .template-details {
    grid-template-columns: 1fr;
  }
}

.home-shell {
  min-height: 100vh;
  background: #050505;
}

.home-main {
  position: relative;
  z-index: 1;
}

.home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent;
  padding: 7px 0;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    backdrop-filter 180ms ease;
}

.home-header.is-scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.home-header-inner {
  width: min(1720px, calc(100% - 48px));
  min-height: 62px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.home-brand-mark {
  font-size: 31px;
  line-height: 1;
}

.home-nav,
.home-header-actions,
.showcase-tab-row,
.gallery-card-footer,
.hero-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-nav {
  flex: 1;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.home-nav a,
.home-nav-button {
  color: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  padding: 7px 10px;
  border-radius: 8px;
}

.home-nav a {
  text-decoration: none;
}

.home-nav-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.home-nav a:hover,
.home-nav-button:hover,
.home-nav-item.is-open .home-nav-button {
  background: rgba(255, 255, 255, 0.08);
}

.home-nav-with-badge,
.home-nav-with-chevron {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.home-nav-label-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-nav-chevron {
  width: 9px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: 0.92;
}

.home-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 12px;
  border-radius: 11px;
  background: #ff3a31;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.home-nav-item {
  position: relative;
}

.home-mobile-leading,
.home-mobile-actions,
.home-mobile-drawer {
  display: none;
}

.home-mobile-menu-button,
.home-mobile-close-button,
.home-mobile-primary-link,
.home-mobile-section-toggle,
.home-mobile-account-actions a,
.home-mobile-account-actions button {
  font: inherit;
}

.home-mobile-head-spacer {
  width: 46px;
  height: 46px;
  display: inline-flex;
}

.home-mobile-menu-button,
.home-mobile-close-button {
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.home-mobile-menu-button span,
.home-mobile-close-button span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
}

.home-mobile-menu-button span:nth-child(1) {
  top: 15px;
}

.home-mobile-menu-button span:nth-child(2) {
  top: 22px;
}

.home-mobile-menu-button span:nth-child(3) {
  top: 29px;
}

.home-mobile-close-button span:first-child {
  top: 22px;
  transform: rotate(45deg);
}

.home-mobile-close-button span:last-child {
  top: 22px;
  transform: rotate(-45deg);
}

.home-account-trigger-mobile {
  width: 46px;
  height: 46px;
  border-radius: 999px;
}

.home-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 75;
  display: none;
}

.home-mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
}

.home-mobile-drawer-panel {
  position: relative;
  width: min(100vw - 16px, 760px);
  height: calc(100vh - 16px);
  margin: 8px auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 7, 7, 0.98);
  color: #fff;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  transform: translateY(16px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.home-mobile-drawer.is-open .home-mobile-drawer-panel {
  transform: translateY(0);
  opacity: 1;
}

.home-mobile-drawer.is-open {
  display: block;
}

.home-mobile-drawer-head {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-brand-mobile {
  justify-self: center;
}

.home-mobile-drawer-body {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px 16px 28px;
  overflow: auto;
}

.home-mobile-primary-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.home-mobile-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.home-mobile-section-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  text-align: left;
}

.home-mobile-section-toggle span:last-child {
  margin-left: auto;
  transition: transform 180ms ease;
}

.home-mobile-section-toggle.is-open span:last-child {
  transform: rotate(180deg);
}

.home-mobile-section-panel {
  display: grid;
  gap: 18px;
}

.home-mobile-links {
  display: grid;
  gap: 12px;
}

.home-mobile-links-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-mobile-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-mobile-links-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.home-mobile-locale-wrap .locale-switcher,
.home-mobile-locale-wrap .locale-switcher-trigger {
  width: 100%;
  min-width: 0;
}

.home-mobile-account-card,
.home-mobile-auth-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.home-mobile-account-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-mobile-account-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-mobile-account-copy strong,
.home-mobile-account-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-mobile-account-copy span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.home-mobile-account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-mobile-account-stats div {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.home-mobile-account-stats span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-mobile-account-stats strong {
  font-size: 18px;
}

.home-mobile-account-actions {
  display: grid;
  gap: 10px;
}

.home-mobile-account-actions a,
.home-mobile-account-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.home-mobile-account-actions .is-danger {
  color: #ff978d;
}

.home-upgrade-button-mobile {
  width: 100%;
  min-height: 54px;
  margin-top: 4px;
}

.home-header-actions {
  justify-content: flex-end;
}

.home-header .account-avatar-md {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

.home-header-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100vw - 56px));
  max-height: min(72vh, 700px);
  overflow: auto;
  padding: 22px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(25, 86, 113, 0.84), rgba(12, 54, 74, 0.8)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 24px 60px rgba(4, 24, 34, 0.28);
  backdrop-filter: blur(22px) saturate(130%);
  z-index: 60;
  transform-origin: top center;
  animation: homeHeaderPopoverEnter 240ms cubic-bezier(0.2, 0.9, 0.22, 1) both;
}

.home-header-popover-tools {
  width: min(980px, calc(100vw - 72px));
  max-height: min(68vh, 620px);
  padding: 20px 22px 22px;
}

.home-menu-grid {
  display: grid;
  gap: 24px 32px;
}

.home-menu-grid-tools {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.home-menu-grid-tools .home-menu-section + .home-menu-section {
  padding-top: 0;
  padding-left: 18px;
  border-top: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.home-menu-grid-models {
  grid-template-columns: minmax(0, 1fr);
}

.home-menu-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-menu-section + .home-menu-section {
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-menu-section h3 {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
}

.home-menu-list {
  display: grid;
  gap: 12px;
}

.home-menu-list-models {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
}

.home-menu-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
  opacity: 0;
  animation: homeHeaderMenuItemEnter 280ms cubic-bezier(0.18, 0.9, 0.22, 1) both;
  animation-delay: calc(var(--menu-item-index, 0) * 36ms + 72ms);
}

.home-menu-card:hover {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.home-menu-card-static {
  min-height: 82px;
}

.home-menu-card-model {
  min-height: 88px;
}

.home-menu-mark {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(34, 34, 34, 0.98), rgba(24, 24, 24, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.home-menu-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.home-menu-copy strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.home-menu-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.42;
}

.home-menu-grid-tools .home-menu-section {
  gap: 14px;
}

.home-menu-grid-tools .home-menu-section h3 {
  padding-bottom: 12px;
  font-size: 17px;
}

.home-menu-grid-tools .home-menu-list {
  gap: 10px;
}

@keyframes homeHeaderPopoverEnter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes homeHeaderMenuItemEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-header-popover,
  .home-menu-card {
    animation: none;
  }

  .home-menu-card {
    opacity: 1;
  }
}

/* MkImage-inspired app workspace */
.workspace-route-shell,
.workspace-route-main {
  min-height: 100vh;
}

.mk-workspace {
  --mk-bg: #0d0e0d;
  --mk-panel: #131413;
  --mk-panel-soft: #191a18;
  --mk-line: rgba(255, 255, 255, 0.09);
  --mk-muted: rgba(255, 255, 255, 0.54);
  --mk-text: #f5f5f1;
  --mk-accent: #d9ff63;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
  overflow: clip;
  background: var(--mk-bg);
  color: var(--mk-text);
  transition: grid-template-columns 180ms ease;
}

.mk-workspace.is-sidebar-collapsed {
  grid-template-columns: 80px minmax(0, 1fr);
}

.mk-workspace.is-quiet {
  --mk-bg: #151614;
  --mk-panel: #1d1e1b;
  --mk-panel-soft: #242521;
  --mk-line: rgba(255, 255, 255, 0.14);
  --mk-accent: #c7ea68;
}

.mk-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100dvh;
  padding: 18px 15px 15px;
  overflow-y: auto;
  border-right: 1px solid var(--mk-line);
  background: #111210;
  transition: width 180ms ease, transform 180ms ease, padding 180ms ease;
}

.mk-sidebar-backdrop {
  display: none;
}

.mk-sidebar-brand-row,
.mk-primary-nav a,
.mk-sidebar-section-title,
.mk-sidebar-filter-list button,
.mk-account-button,
.mk-topbar,
.mk-top-models,
.mk-sort,
.mk-gallery-meta,
.mk-work-card-media,
.mk-card-save,
.mk-empty-gallery,
.mk-empty-view,
.mk-generate-intro,
.mk-generate-intro a {
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.mk-sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin: 0 3px 22px;
}

.mk-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  color: #fff;
  font-size: 19px;
  font-weight: 830;
  letter-spacing: -0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.mk-brand-mark {
  flex: 0 0 auto;
  color: var(--mk-accent);
  font-size: 21px;
  line-height: 1;
}

.mk-sidebar-collapse,
.mk-mobile-menu,
.mk-theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--mk-muted);
  cursor: pointer;
}

.mk-sidebar-collapse {
  width: 28px;
  height: 28px;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  font-size: 19px;
}

.mk-sidebar-collapse:hover,
.mk-theme:hover {
  border-color: rgba(217, 255, 99, 0.4);
  color: var(--mk-accent);
}

.mk-primary-nav,
.mk-sidebar-filter-list {
  display: grid;
  gap: 3px;
}

.mk-primary-nav {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--mk-line);
}

.mk-primary-nav a,
.mk-sidebar-filter-list button {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 38px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--mk-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 680;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.mk-primary-nav a > span:first-child,
.mk-sidebar-filter-list button > span:first-child {
  display: inline-flex;
  justify-content: center;
  width: 17px;
  flex: 0 0 17px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
}

.mk-primary-nav a:hover,
.mk-primary-nav a.is-active,
.mk-sidebar-filter-list button:hover,
.mk-sidebar-filter-list button.is-active {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.085);
  color: #fff;
}

.mk-primary-nav a.is-active > span:first-child,
.mk-sidebar-filter-list button.is-active > span:first-child {
  color: var(--mk-accent);
}

.mk-sidebar-section {
  padding: 17px 0 0;
}

.mk-sidebar-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 28px;
  padding: 0 10px 7px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  font: inherit;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.mk-sidebar-section-title:hover {
  color: var(--mk-accent);
}

.mk-sidebar-filter-list button {
  min-height: 34px;
  font-size: 12px;
}

.mk-sidebar-filter-list button > span:first-child {
  font-size: 11px;
}

.mk-credit-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: auto 0 15px;
  padding: 12px;
  border: 1px solid rgba(217, 255, 99, 0.38);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(217, 255, 99, 0.14), rgba(217, 255, 99, 0.03));
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.mk-credit-card:hover {
  background: rgba(217, 255, 99, 0.18);
  transform: translateY(-1px);
}

.mk-credit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #d9ff63;
  color: #20261b;
}

.mk-credit-copy,
.mk-account-button > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.mk-credit-copy strong,
.mk-account-button strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mk-credit-copy small,
.mk-account-button small {
  overflow: hidden;
  color: var(--mk-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mk-credit-card b {
  color: var(--mk-accent);
  font-size: 19px;
}

.mk-account-button {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.mk-account-button:hover {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.075);
}

.mk-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #2d302a;
  color: var(--mk-accent);
  font-size: 14px;
}

.mk-main {
  min-width: 0;
  min-height: 100vh;
  background: var(--mk-bg);
}

.mk-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(170px, max-content) minmax(180px, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  min-height: 65px;
  padding: 9px 20px;
  border-bottom: 1px solid var(--mk-line);
  background: color-mix(in srgb, var(--mk-bg) 92%, transparent);
  backdrop-filter: blur(18px);
}

.mk-mobile-menu {
  display: none;
}

.mk-top-models,
.mk-sort {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  background: var(--mk-panel);
}

.mk-top-models {
  overflow-x: auto;
  scrollbar-width: none;
}

.mk-top-models button,
.mk-sort button,
.mk-random {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mk-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 740;
  white-space: nowrap;
  cursor: pointer;
}

.mk-top-models button:hover,
.mk-top-models button.is-active,
.mk-sort button:hover,
.mk-sort button.is-active {
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.mk-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  background: var(--mk-panel);
  color: rgba(255, 255, 255, 0.42);
}

.mk-search span {
  font-size: 19px;
}

.mk-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
}

.mk-search input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.mk-random {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #151714;
  color: #fff;
}

.mk-random:hover {
  border-color: var(--mk-accent);
  background: var(--mk-accent);
  color: #20261b;
}

.mk-random span {
  color: var(--mk-accent);
  font-size: 15px;
}

.mk-random:hover span {
  color: inherit;
}

.mk-theme {
  width: 38px;
  height: 38px;
  border: 1px solid var(--mk-line);
  border-radius: 11px;
  background: var(--mk-panel);
  font-size: 16px;
}

.mk-gallery-view {
  padding: 22px 28px 48px;
}

.mk-gallery-mobile-head {
  display: none;
}

.mk-gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 16px;
  color: var(--mk-muted);
  font-size: 12px;
  font-weight: 680;
}

.mk-gallery-meta button {
  padding: 6px 9px;
  border: 1px solid rgba(217, 255, 99, 0.34);
  border-radius: 999px;
  background: rgba(217, 255, 99, 0.09);
  color: var(--mk-accent);
  font: inherit;
  font-size: 11px;
  font-weight: 740;
  cursor: pointer;
}

.mk-masonry {
  column-count: 4;
  column-gap: 14px;
}

.mk-work-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid var(--mk-line);
  border-radius: 15px;
  background: #191a18;
}

.mk-work-card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #1b1c19;
  color: #fff;
  cursor: pointer;
}

.mk-work-card-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 260ms ease, filter 220ms ease;
}

.mk-work-card-media:hover img {
  filter: brightness(0.66);
  transform: scale(1.035);
}

.mk-work-card-badge,
.mk-work-card-hover {
  position: absolute;
  opacity: 0;
  transition: opacity 160ms ease;
}

.mk-work-card-badge {
  top: 9px;
  left: 9px;
  max-width: calc(100% - 18px);
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(4, 5, 4, 0.68);
  color: rgba(255, 255, 255, 0.92);
  font-size: 9px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mk-work-card-hover {
  right: 9px;
  bottom: 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  max-width: calc(100% - 18px);
  padding: 8px 9px 8px 11px;
  border-radius: 9px;
  background: var(--mk-accent);
  color: #192118;
  font-size: 11px;
  font-weight: 790;
  text-align: left;
}

.mk-work-card-hover > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mk-work-card-hover i {
  font-style: normal;
}

.mk-work-card-media:hover .mk-work-card-badge,
.mk-work-card-media:hover .mk-work-card-hover {
  opacity: 1;
}

.mk-card-save {
  position: absolute;
  z-index: 2;
  right: 9px;
  top: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  background: rgba(4, 5, 4, 0.65);
  color: #fff;
  font: inherit;
  cursor: pointer;
  opacity: 0;
}

.mk-work-card:hover .mk-card-save,
.mk-card-save:focus-visible,
.mk-card-save.is-saved {
  opacity: 1;
}

.mk-card-save.is-saved,
.mk-card-save:hover {
  border-color: rgba(217, 255, 99, 0.62);
  color: var(--mk-accent);
}

.mk-empty-gallery,
.mk-empty-view {
  display: grid;
  justify-items: center;
  gap: 15px;
  padding: min(16vh, 150px) 24px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: var(--mk-muted);
  text-align: center;
}

.mk-empty-gallery strong {
  max-width: 480px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.mk-empty-gallery button,
.mk-empty-gallery a,
.mk-empty-view a,
.mk-generate-intro a {
  padding: 10px 13px;
  border: 1px solid rgba(217, 255, 99, 0.42);
  border-radius: 10px;
  background: rgba(217, 255, 99, 0.09);
  color: var(--mk-accent);
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.mk-empty-gallery button:hover,
.mk-empty-gallery a:hover,
.mk-empty-view a:hover,
.mk-generate-intro a:hover {
  background: var(--mk-accent);
  color: #172016;
}

.mk-empty-view {
  min-height: calc(100vh - 65px);
  align-content: center;
  border: 0;
  border-radius: 0;
}

.mk-empty-view > span {
  color: var(--mk-accent);
  font-size: 36px;
}

.mk-empty-view h1 {
  max-width: 520px;
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.mk-empty-view p {
  max-width: 470px;
  color: var(--mk-muted);
  font-size: 15px;
  line-height: 1.65;
}

.mk-generate-view {
  display: grid;
  grid-template-columns: minmax(250px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(28px, 5vw, 76px);
  min-height: calc(100vh - 65px);
  padding: clamp(32px, 6vw, 90px);
}

.mk-generate-intro {
  align-self: center;
  display: grid;
  gap: 18px;
}

.mk-generate-intro > span {
  color: var(--mk-accent);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mk-generate-intro h1 {
  max-width: 460px;
  color: #fff;
  font-size: clamp(42px, 5vw, 66px);
  letter-spacing: -0.075em;
  line-height: 0.93;
}

.mk-generate-intro p {
  max-width: 440px;
  color: var(--mk-muted);
  font-size: 15px;
  line-height: 1.7;
}

.mk-generate-intro a {
  width: fit-content;
  margin-top: 4px;
}

.mk-composer-frame {
  align-self: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--mk-line);
  border-radius: 24px;
  background: #181a17;
}

.mk-composer-frame .hero-composer {
  width: 100%;
}

.mk-composer-frame .hero-composer-task-switch {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.mk-composer-frame .hero-composer-task-button {
  min-width: 130px;
  min-height: 44px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
}

.mk-composer-frame .hero-composer-task-button.is-active {
  background: var(--mk-accent);
  color: #172016;
  box-shadow: none;
}

.mk-composer-frame .hero-composer-panel {
  border-color: rgba(255, 255, 255, 0.13);
  background: #22241f;
  box-shadow: none;
}

.mk-composer-frame .hero-composer-stage-split {
  grid-template-columns: minmax(0, 1fr);
}

.mk-composer-frame .hero-reference-grid-1 {
  grid-template-columns: minmax(0, 220px);
}

.mk-composer-frame .hero-reference-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mk-composer-frame .hero-reference-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mk-composer-frame .hero-composer-textarea {
  min-height: 142px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.mk-composer-frame .hero-composer-mode-button,
.mk-composer-frame .hero-prompt-panel-head strong,
.mk-composer-frame .hero-reference-tile strong,
.mk-composer-frame .hero-composer-chip,
.mk-composer-frame .hero-composer-chip select {
  color: rgba(255, 255, 255, 0.83);
}

.mk-composer-frame .hero-composer-mode-button.is-active {
  color: var(--mk-accent);
}

.mk-composer-frame .hero-prompt-panel-head span,
.mk-composer-frame .hero-reference-tile-meta,
.mk-composer-frame .hero-reference-slot-label {
  color: rgba(255, 255, 255, 0.47);
}

.mk-composer-frame .hero-composer-textarea {
  color: #fff;
}

.mk-composer-frame .hero-composer-textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.mk-composer-frame .hero-reference-tile {
  border-color: rgba(217, 255, 99, 0.38);
  background: rgba(255, 255, 255, 0.03);
}

.mk-composer-frame .hero-composer-chip {
  background: rgba(255, 255, 255, 0.09);
}

.mk-composer-frame .hero-composer-submit {
  background: var(--mk-accent);
  color: #172016;
  box-shadow: none;
}

.mk-workspace.is-sidebar-collapsed .mk-sidebar {
  padding-right: 15px;
  padding-left: 15px;
}

.mk-workspace.is-sidebar-collapsed .mk-sidebar-brand-row {
  justify-content: center;
}

.mk-workspace.is-sidebar-collapsed .mk-brand-name,
.mk-workspace.is-sidebar-collapsed .mk-sidebar-collapse,
.mk-workspace.is-sidebar-collapsed .mk-primary-nav a > span:nth-child(2),
.mk-workspace.is-sidebar-collapsed .mk-sidebar-section-title,
.mk-workspace.is-sidebar-collapsed .mk-sidebar-filter-list,
.mk-workspace.is-sidebar-collapsed .mk-credit-copy,
.mk-workspace.is-sidebar-collapsed .mk-credit-card b,
.mk-workspace.is-sidebar-collapsed .mk-account-button > span:nth-child(2),
.mk-workspace.is-sidebar-collapsed .mk-account-button > span:last-child {
  display: none;
}

.mk-workspace.is-sidebar-collapsed .mk-primary-nav a {
  justify-content: center;
  padding: 0;
}

.mk-workspace.is-sidebar-collapsed .mk-credit-card,
.mk-workspace.is-sidebar-collapsed .mk-account-button {
  display: flex;
  justify-content: center;
  padding: 8px;
}

@media (max-width: 1320px) {
  .mk-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  }

  .mk-top-models {
    max-width: 365px;
  }

  .mk-masonry {
    column-count: 3;
  }

  .mk-generate-view {
    grid-template-columns: 1fr;
  }

  .mk-generate-intro {
    max-width: 700px;
  }
}

@media (max-width: 980px) {
  .mk-workspace {
    display: block;
  }

  .mk-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(286px, calc(100vw - 56px));
    transform: translateX(-105%);
    box-shadow: 24px 0 65px rgba(0, 0, 0, 0.48);
  }

  .mk-workspace.is-mobile-sidebar-open .mk-sidebar {
    transform: translateX(0);
  }

  .mk-workspace.is-mobile-sidebar-open .mk-sidebar-backdrop {
    position: fixed;
    z-index: 29;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, 0.42);
  }

  .mk-workspace.is-sidebar-collapsed .mk-sidebar {
    width: min(286px, calc(100vw - 56px));
    padding: 18px 15px 15px;
  }

  .mk-workspace.is-sidebar-collapsed .mk-brand-name,
  .mk-workspace.is-sidebar-collapsed .mk-sidebar-collapse,
  .mk-workspace.is-sidebar-collapsed .mk-primary-nav a > span:nth-child(2),
  .mk-workspace.is-sidebar-collapsed .mk-sidebar-section-title,
  .mk-workspace.is-sidebar-collapsed .mk-sidebar-filter-list,
  .mk-workspace.is-sidebar-collapsed .mk-credit-copy,
  .mk-workspace.is-sidebar-collapsed .mk-credit-card b,
  .mk-workspace.is-sidebar-collapsed .mk-account-button > span:nth-child(2),
  .mk-workspace.is-sidebar-collapsed .mk-account-button > span:last-child {
    display: initial;
  }

  .mk-workspace.is-sidebar-collapsed .mk-primary-nav a {
    display: flex;
    justify-content: flex-start;
    padding: 0 10px;
  }

  .mk-workspace.is-sidebar-collapsed .mk-credit-card {
    display: grid;
    justify-content: initial;
    padding: 12px;
  }

  .mk-workspace.is-sidebar-collapsed .mk-account-button {
    display: grid;
    justify-content: initial;
    padding: 8px;
  }

  .mk-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    padding: 9px 13px;
  }

  .mk-mobile-menu {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border: 1px solid var(--mk-line);
    border-radius: 11px;
    background: var(--mk-panel);
    font-size: 17px;
  }

  .mk-top-models {
    display: none;
  }

  .mk-search {
    min-height: 38px;
  }

  .mk-sort button:nth-child(2) {
    display: none;
  }

  .mk-gallery-view {
    padding: 16px 16px 40px;
  }

  .mk-masonry {
    column-count: 3;
  }
}

@media (max-width: 640px) {
  .mk-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 7px;
    min-height: 59px;
    padding: 8px 12px;
  }

  .mk-search {
    min-height: 37px;
    padding: 0 10px;
  }

  .mk-search input {
    font-size: 12px;
  }

  .mk-sort {
    display: none;
  }

  .mk-random {
    width: 37px;
    min-width: 37px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .mk-random span {
    font-size: 17px;
  }

  .mk-theme {
    display: none;
  }

  .mk-gallery-view {
    padding: 13px 10px 30px;
  }

  .mk-gallery-mobile-head {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 31px;
    margin: 0 5px 10px;
    color: #fff;
    font-size: 14px;
  }

  .mk-gallery-mobile-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    margin-left: auto;
    border: 1px solid var(--mk-line);
    border-radius: 8px;
    color: var(--mk-accent);
    text-decoration: none;
  }

  .mk-gallery-meta {
    min-height: 27px;
    margin: 0 5px 10px;
    font-size: 11px;
  }

  .mk-masonry {
    column-count: 2;
    column-gap: 9px;
  }

  .mk-work-card {
    margin-bottom: 9px;
    border-radius: 11px;
  }

  .mk-work-card-badge {
    top: 6px;
    left: 6px;
    opacity: 1;
  }

  .mk-card-save {
    top: 6px;
    right: 6px;
    width: 27px;
    height: 27px;
    opacity: 1;
  }

  .mk-work-card-hover {
    display: none;
  }

  .mk-generate-view {
    gap: 28px;
    padding: 34px 14px;
  }

  .mk-generate-intro h1 {
    font-size: 44px;
  }

  .mk-composer-frame {
    padding: 9px;
    border-radius: 18px;
  }

  .mk-composer-frame .hero-composer-task-button {
    min-width: 0;
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-workspace,
  .mk-sidebar,
  .mk-work-card-media img,
  .mk-work-card-media,
  .mk-card-save,
  .mk-credit-card {
    transition: none;
  }
}

.home-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 22px;
  padding: 0 7px;
  border-radius: 8px;
  background: #ef3f38;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.home-menu-feedback {
  padding: 10px 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.6;
}

.home-menu-feedback-error {
  color: #ff8f8a;
}

.home-upgrade-button,
.home-signin-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.home-upgrade-button {
  border: 0;
  background: linear-gradient(90deg, #da442f 0%, #2da651 100%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 16px 32px rgba(24, 32, 24, 0.24);
}

.home-sale-badge {
  position: absolute;
  top: -15px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffd33d;
  color: #a33c00;
  font-size: 10px;
  font-weight: 800;
}

.home-signin-button {
  border: 0;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.home-signin-button.is-authenticated {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.home-account-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.home-account-trigger.is-guest {
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(16, 41, 67, 0.18);
}

.home-guest-avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.52);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    url('/images/showcase-avatar.svg') center center / cover no-repeat;
  box-shadow:
    0 12px 22px rgba(3, 18, 41, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.account-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 240, 214, 0.52), transparent 34%),
    linear-gradient(135deg, #3858c9 0%, #4aa285 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-avatar-sm {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.account-avatar-md {
  width: 46px;
  height: 46px;
  font-size: 16px;
}

.account-avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 22px;
}

.account-avatar-xl {
  width: 124px;
  height: 124px;
  font-size: 34px;
}

.home-account-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  z-index: 70;
}

.home-account-card,
.account-page-card,
.account-auth-gate-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(10, 10, 10, 0.96);
  color: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.home-account-card {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.home-account-identity,
.home-account-row,
.account-page-card-head,
.account-inline-action,
.workspace-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-account-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.home-account-copy strong,
.home-account-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-account-copy strong,
.home-account-highlight strong,
.home-account-plan strong {
  color: #fff;
}

.home-account-copy span,
.home-account-referral p,
.account-page-hero p,
.account-auth-gate-card p,
.profile-avatar-dropzone span {
  color: rgba(255, 255, 255, 0.62);
}

.home-account-row strong,
.profile-avatar-dropzone strong {
  color: #fff;
}

.home-account-highlight,
.home-account-plan,
.account-summary-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 8px;
}

.home-account-highlight {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.home-account-highlight span {
  color: #ffca2d;
  font-size: 24px;
}

.home-account-highlight strong {
  color: #ffca2d;
  font-size: 18px;
}

.home-account-plan span,
.account-summary-card span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
}

.home-account-plan strong,
.account-summary-card strong {
  font-size: 18px;
}

.home-account-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.home-account-referral {
  display: grid;
  gap: 10px;
}

.home-account-copy-button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 202, 45, 0.16);
  color: #ffca2d;
  cursor: pointer;
  font-weight: 700;
}

.home-account-copy-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.home-account-actions {
  display: grid;
  gap: 8px;
}

.home-account-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.home-account-action.is-danger {
  color: #ff8c85;
}

.home-account-action:hover {
  background: rgba(255, 255, 255, 0.08);
}

.account-page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 128px 0 72px;
  display: grid;
  gap: 24px;
}

.account-page-hero {
  display: grid;
  gap: 10px;
}

.account-page-hero h1,
.account-auth-gate-card h2 {
  color: #fff;
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 0.98;
  font-weight: 800;
}

.account-page-back {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.account-page-back:hover {
  color: #fff;
}

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

.account-summary-card {
  min-height: 108px;
}

.account-summary-card strong {
  color: #fff;
  font-size: clamp(20px, 3vw, 28px);
}

.account-page-card,
.account-auth-gate-card {
  padding: 28px;
}

.account-page-card-head {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.account-page-card-head h2 {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.account-page-card-head p {
  color: rgba(255, 255, 255, 0.62);
  margin-top: 8px;
}

.profile-editor-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
}

.profile-avatar-column,
.profile-form-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.profile-avatar-dropzone {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 132px;
  padding: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  cursor: pointer;
}

.account-page-card .field-stack > span,
.account-page-card .helper-paragraph,
.account-page-card .helper-inline,
.account-page-card .helper-text {
  color: rgba(255, 255, 255, 0.68);
}

.account-page-card .field-stack input,
.account-page-card .field-stack select,
.account-inline-action input {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.account-page-card .field-stack input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.account-inline-action {
  align-items: stretch;
}

.account-inline-action input {
  flex: 1;
}

.account-primary-button {
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #3564e1 0%, #467ff2 100%);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.account-primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.account-auth-gate {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 160px 0 80px;
}

.account-auth-gate-card {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.workspace-toolbar-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.account-page-shell .panel,
.account-page-shell .asset-card,
.account-page-shell .history-card,
.account-page-shell .notice,
.account-page-shell .empty-state,
.account-page-shell .json-view {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.94);
  color: #fff;
}

.account-page-shell .asset-card,
.account-page-shell .history-card {
  box-shadow: none;
}

.account-page-shell .ghost-button,
.account-page-shell .link-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.account-page-shell .chip,
.account-page-shell .badge-soft {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.account-page-shell .helper-paragraph,
.account-page-shell .helper-inline,
.account-page-shell .helper-text,
.account-page-shell .meta-item span {
  color: rgba(255, 255, 255, 0.62);
}

.hero-stage {
  position: relative;
  min-height: 100vh;
  padding: 98px 0 30px;
  overflow: hidden;
}

.hero-stage-backdrop,
.hero-stage-overlay {
  position: absolute;
  inset: 0;
}

.hero-stage-backdrop {
  overflow: hidden;
  transform: scale(1.02);
}

.hero-stage-backdrop-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stage-overlay {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.08) 58%, rgba(0, 0, 0, 0.18) 100%),
    radial-gradient(circle at 18% 18%, rgba(127, 178, 70, 0.05), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.09), transparent 28%);
}

.hero-stage-inner {
  position: relative;
  z-index: 1;
  width: min(1760px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.hero-stage-copy {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding-top: 14px;
}

.hero-stage-tool {
  min-height: calc(100vh - 72px);
  padding-top: 96px;
}

.hero-stage-inner-tool {
  align-items: stretch;
}

.tool-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.tool-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
}

.tool-breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.tool-breadcrumb a:hover {
  color: #fff;
}

.tool-breadcrumb span:last-child {
  font-weight: 700;
}

.hero-notice {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
}

.hero-stage h1 {
  max-width: 1620px;
  color: #fff;
  font-size: clamp(40px, 4.8vw, 66px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  white-space: nowrap;
  text-shadow:
    0 6px 14px rgba(0, 0, 0, 0.34),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.hero-stage-copy p {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.hero-summary-row {
  flex-wrap: wrap;
  justify-content: center;
}

.hero-summary-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(244, 241, 213, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 34px;
  line-height: 1;
}

.hero-composer {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.hero-composer-task-switch,
.hero-composer-mode-row,
.hero-composer-footer,
.hero-composer-chip-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-composer-task-switch {
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: 7px;
  border-radius: 24px;
  background: rgba(236, 239, 229, 0.24);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 40px rgba(22, 39, 38, 0.14);
}

.hero-composer-task-button {
  min-width: 236px;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 18px;
  background: rgba(242, 236, 208, 0.66);
  color: rgba(86, 70, 34, 0.72);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.hero-composer-task-button.is-active {
  background: linear-gradient(180deg, #ffd847 0%, #f2c529 100%);
  color: #5c3a00;
  box-shadow:
    0 16px 32px rgba(73, 63, 22, 0.18),
    0 2px 6px rgba(255, 223, 99, 0.32);
}

.hero-composer-panel {
  padding: 20px 24px 18px;
  border-radius: 30px;
  border: 1.5px solid rgba(38, 29, 16, 0.96);
  background:
    radial-gradient(circle at 77% 23%, rgba(255, 245, 178, 0.74), transparent 20%),
    radial-gradient(circle at 16% 85%, rgba(240, 233, 177, 0.34), transparent 20%),
    linear-gradient(180deg, rgba(246, 241, 208, 0.96), rgba(236, 229, 183, 0.94));
  box-shadow: 0 28px 68px rgba(8, 12, 9, 0.24);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.hero-composer-panel[data-popover-open='true'] {
  box-shadow: 0 34px 84px rgba(8, 12, 9, 0.38);
}

.hero-composer-mode-row {
  flex-wrap: wrap;
  margin-bottom: 8px;
  gap: 22px;
}

.hero-composer-mode-button {
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(46, 38, 27, 0.72);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hero-composer-mode-button.is-active {
  background: transparent;
  color: #17110a;
  font-weight: 800;
}

.hero-composer-stage {
  display: grid;
  gap: 16px;
  min-height: 198px;
}

.hero-composer-stage-split {
  grid-template-columns: minmax(448px, 0.78fr) minmax(0, 1.22fr);
}

.hero-composer-stage-single {
  grid-template-columns: minmax(0, 1fr);
}

.hero-reference-grid {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hero-reference-grid-1 {
  grid-template-columns: minmax(0, 240px);
}

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

.hero-reference-slot {
  display: grid;
  gap: 8px;
}

.hero-composer-textarea {
  width: 100%;
  min-height: 124px;
  border: 0;
  border-radius: 18px;
  background: rgba(247, 243, 219, 0.14);
  color: #40342a;
  font-size: 17px;
  line-height: 1.55;
  padding: 4px 0 0;
  resize: none;
}

.hero-composer-textarea::placeholder {
  color: rgba(74, 63, 48, 0.64);
}

.hero-prompt-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 8px 0 0;
}

.hero-prompt-panel-head {
  display: grid;
  gap: 6px;
}

.hero-prompt-panel-head strong {
  color: rgba(79, 69, 51, 0.92);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero-prompt-panel-head span {
  color: rgba(96, 85, 67, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.hero-reference-tile {
  min-height: 126px;
  padding: 16px 12px;
  border: 3px dashed rgba(106, 96, 74, 0.44);
  border-radius: 18px;
  background: rgba(255, 249, 222, 0.22);
  color: rgba(88, 78, 58, 0.88);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.hero-reference-tile.is-upload-card {
  justify-items: start;
  align-content: center;
  text-align: left;
}

.hero-reference-tile.is-upload-card strong {
  color: rgba(80, 71, 53, 0.94);
  font-size: 14px;
  font-weight: 500;
}

.hero-reference-tile.is-filled {
  border-style: solid;
  justify-items: stretch;
  align-content: stretch;
  overflow: hidden;
  padding: 0;
}

.hero-reference-tile img,
.hero-reference-tile video {
  width: 100%;
  height: 100%;
  min-height: 126px;
  object-fit: cover;
}

.hero-reference-audio-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 126px;
  background: radial-gradient(circle, rgba(217, 255, 99, 0.18), transparent 58%);
  color: #d9ff63;
  font-size: 48px;
}

.hero-reference-tile-copy {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(11, 11, 11, 0.62);
  text-align: left;
}

.hero-reference-tile.is-filled {
  position: relative;
}

.hero-reference-tile-copy strong,
.hero-reference-tile-copy span {
  color: #fff;
}

.hero-reference-tile-copy strong {
  font-size: 14px;
}

.hero-reference-tile-copy span {
  font-size: 12px;
  opacity: 0.86;
}

.hero-reference-tile-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hero-reference-tile-meta {
  color: rgba(96, 85, 67, 0.88);
  font-size: 12px;
  line-height: 1.4;
}

.hero-reference-tile strong {
  color: rgba(80, 71, 53, 0.94);
  font-size: 14px;
}

.hero-reference-slot-label {
  color: rgba(88, 78, 58, 0.9);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  padding-left: 8px;
}

.hero-composer-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(194, 101, 64, 0.14);
  color: #8b4023;
  font-size: 14px;
  line-height: 1.6;
}

.hero-composer-feedback {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
  animation: composer-feedback-enter 200ms ease both;
}

.hero-composer-feedback-icon {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
}

.hero-composer-feedback.is-info {
  border-color: rgba(116, 178, 255, 0.2);
  background: rgba(65, 132, 219, 0.12);
  color: #a9d0ff;
}

.hero-composer-feedback.is-info .hero-composer-feedback-icon {
  background: rgba(116, 178, 255, 0.18);
}

.hero-composer-feedback.is-success {
  border-color: rgba(144, 225, 107, 0.24);
  background: rgba(92, 170, 58, 0.13);
  color: #c8f5aa;
}

.hero-composer-feedback.is-success .hero-composer-feedback-icon {
  background: rgba(144, 225, 107, 0.18);
}

.hero-composer-feedback.is-warning {
  border-color: rgba(255, 196, 84, 0.24);
  background: rgba(209, 139, 34, 0.13);
  color: #ffda8b;
}

.hero-composer-feedback.is-error {
  border-color: rgba(255, 113, 113, 0.24);
  background: rgba(199, 68, 68, 0.13);
  color: #ffb2b2;
}

@keyframes composer-feedback-enter {
  from { opacity: 0.7; transform: translateY(-3px); }
  to { opacity: 1; transform: none; }
}

.hero-composer-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  align-items: center;
}

.hero-composer-chip-row {
  min-width: 0;
  flex: 1;
  flex-wrap: nowrap;
  overflow: hidden;
}

.hero-composer-chip {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(236, 228, 176, 0.76);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4d402c;
}

.hero-composer-chip span {
  font-size: 14px;
}

.hero-composer-chip > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-composer-chip select {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #352c21;
  font-size: 15px;
  font-weight: 500;
}

.hero-composer-chip-compact {
  min-width: 116px;
}

.hero-composer-chip-icon {
  min-width: 48px;
  justify-content: center;
  border: 0;
  font-size: 18px;
}

.hero-composer-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 292px;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

.hero-composer-submit:disabled {
  opacity: 0.7;
}

.hero-composer-submit.is-submitting {
  cursor: wait;
}

.hero-composer-submit.is-submitting > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-composer-submit.is-submitting > span:first-child::before {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: currentColor;
  border-radius: 50%;
  content: '';
  animation: generation-spinner 700ms linear infinite;
}

.task-notification-dock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 72;
  display: flex;
  align-items: center;
  gap: 12px;
}

.task-notification-caption {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.task-notification-caption strong {
  font-size: 14px;
  line-height: 1;
}

.task-notification-caption span {
  font-size: 11px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.64);
}

.task-notification-hub {
  position: relative;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  border: 1px solid rgba(217, 255, 99, 0.32);
  background:
    radial-gradient(circle at 34% 28%, rgba(217, 255, 99, 0.13), transparent 44%),
    #171a14;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.42),
    0 0 0 5px rgba(217, 255, 99, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.task-notification-hub:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.48),
    0 0 0 7px rgba(217, 255, 99, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.task-notification-hub-core,
.task-notification-hub-rings {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 999px;
}

.task-notification-hub-core {
  width: 18px;
  height: 18px;
  background: #d9ff63;
  box-shadow:
    0 0 0 6px rgba(217, 255, 99, 0.1),
    0 0 28px rgba(217, 255, 99, 0.24);
}

.task-notification-hub-rings {
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(217, 255, 99, 0.4);
  opacity: 0.72;
}

.task-notification-hub.is-active .task-notification-hub-rings {
  animation: task-notification-pulse 1.6s ease-out infinite;
}

.task-notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #0b0c10;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.task-launch-flyer {
  position: fixed;
  z-index: 73;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #111213 0%, #050505 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  opacity: 1;
  transition:
    transform 760ms cubic-bezier(0.18, 0.84, 0.2, 1),
    opacity 760ms ease,
    filter 760ms ease;
}

.task-launch-flyer.is-flying {
  transform: translate3d(var(--task-fly-x), var(--task-fly-y), 0) scale(0.2);
  opacity: 0.12;
  filter: blur(1.5px);
}

.task-toast-shell {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 74;
  width: min(540px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.task-toast-card {
  min-height: 88px;
  padding: 18px 18px 18px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 8, 8, 0.96);
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  animation: task-toast-slide-in 260ms ease;
}

.task-toast-card.is-accepted,
.task-toast-card.is-succeeded {
  border-color: rgba(154, 224, 93, 0.26);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), inset 3px 0 #b7f36b;
}

.task-toast-card.is-submit-failed,
.task-toast-card.is-failed {
  border-color: rgba(255, 112, 112, 0.24);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), inset 3px 0 #ff7474;
}

.task-toast-card.is-submitting,
.task-toast-card.is-partial {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), inset 3px 0 #e4ff86;
}

.task-toast-status-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 2px solid rgba(228, 255, 134, 0.26);
  border-top-color: #e4ff86;
  border-radius: 50%;
  color: #e4ff86;
  font-size: 13px;
  font-weight: 900;
  animation: generation-spinner 850ms linear infinite;
}

.task-toast-card.is-accepted .task-toast-status-icon,
.task-toast-card.is-succeeded .task-toast-status-icon,
.task-toast-card.is-submit-failed .task-toast-status-icon,
.task-toast-card.is-failed .task-toast-status-icon {
  border-color: currentColor;
  animation: none;
}

.task-toast-card.is-accepted .task-toast-status-icon,
.task-toast-card.is-succeeded .task-toast-status-icon { color: #b7f36b; }
.task-toast-card.is-submit-failed .task-toast-status-icon,
.task-toast-card.is-failed .task-toast-status-icon { color: #ff8585; }

.task-toast-copy {
  display: grid;
  gap: 8px;
}

.task-toast-copy strong {
  font-size: 16px;
  line-height: 1.1;
}

.task-toast-copy span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.4;
}

.task-toast-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.task-toast-open,
.task-toast-close {
  border: 0;
  background: transparent;
}

.task-notification-panel {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 73;
  display: grid;
  width: min(400px, calc(100vw - 32px));
  max-height: min(620px, calc(100dvh - 132px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(14, 15, 14, 0.98);
  color: #fff;
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px);
  animation: task-panel-enter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.task-notification-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.task-notification-panel > header > div {
  display: grid;
  gap: 4px;
}

.task-notification-panel > header strong { font-size: 15px; }
.task-notification-panel > header span { color: rgba(255, 255, 255, 0.5); font-size: 11px; }
.task-notification-panel > header button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  line-height: 1;
}

.task-notification-list {
  display: grid;
  gap: 8px;
  min-height: 90px;
  max-height: 450px;
  padding: 10px;
  overflow-y: auto;
}

.task-notification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.task-notification-state {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(217, 255, 99, 0.22);
  border-top-color: #d9ff63;
  border-radius: 50%;
  color: #d9ff63;
  font-size: 12px;
  font-weight: 900;
  animation: generation-spinner 850ms linear infinite;
}

.task-notification-item.is-success .task-notification-state,
.task-notification-item.is-error .task-notification-state {
  animation: none;
}
.task-notification-item.is-success .task-notification-state { border-color: #9de761; color: #9de761; }
.task-notification-item.is-error .task-notification-state { border-color: #ff7474; color: #ff7474; }

.task-notification-item-copy { min-width: 0; }
.task-notification-item-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-notification-item-copy strong,
.task-notification-item-copy p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-notification-item-copy strong { font-size: 12px; }
.task-notification-item-copy > div span { color: #d9ff63; font-size: 10px; }
.task-notification-item.is-success .task-notification-item-copy > div span { color: #9de761; }
.task-notification-item.is-error .task-notification-item-copy > div span { color: #ff8c8c; }
.task-notification-item-copy p { margin: 5px 0 3px; color: rgba(255, 255, 255, 0.58); font-size: 11px; }
.task-notification-item-copy small { color: rgba(255, 255, 255, 0.4); font-size: 9px; }
.task-notification-item > button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.task-notification-empty {
  display: grid;
  place-items: center;
  min-height: 90px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  text-align: center;
}

.task-notification-view-all {
  min-height: 43px;
  margin: 0 10px 10px;
  border: 0;
  border-radius: 11px;
  background: #d9ff63;
  color: #18200f;
  font-size: 12px;
  font-weight: 800;
}

@keyframes task-panel-enter {
  from { opacity: 0.72; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes generation-spinner {
  to { transform: rotate(360deg); }
}

.task-toast-open {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.task-toast-close {
  color: rgba(255, 255, 255, 0.58);
  font-size: 24px;
  line-height: 1;
}

@keyframes task-notification-pulse {
  0% {
    opacity: 0.78;
    transform: scale(1);
  }

  70% {
    opacity: 0;
    transform: scale(1.75);
  }

  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

@keyframes task-toast-slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-composer-mode-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(95, 87, 70, 0.72);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  margin-left: 6px;
}

.hero-prompt-panel-head.is-single strong {
  font-size: 21px;
  line-height: 1.24;
  font-weight: 400;
  color: rgba(93, 94, 73, 0.9);
}

.hero-composer-textarea {
  min-height: 126px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: 17px;
  line-height: 1.36;
}

.hero-composer-textarea:focus {
  outline: none;
}

.hero-reference-grid-1 {
  grid-template-columns: minmax(0, 182px);
}

.hero-reference-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 174px));
}

.hero-reference-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 160px));
}

.hero-reference-tile {
  min-height: 158px;
  padding: 14px 10px;
  border-width: 3px;
  border-radius: 16px;
  gap: 10px;
}

.hero-reference-tile-icon {
  width: 48px;
  height: 48px;
  color: rgba(97, 93, 75, 0.88);
}

.hero-reference-tile-icon svg,
.hero-composer-mode-info svg {
  width: 100%;
  height: 100%;
}

.hero-reference-tile-meta {
  font-size: 13px;
  line-height: 1.35;
}

.hero-reference-slot-label {
  padding-left: 10px;
  font-size: 13px;
  color: rgba(91, 86, 68, 0.92);
}

.hero-composer-chip-row {
  gap: 10px;
}

.hero-composer-chip {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(223, 214, 152, 0.46);
  color: #343327;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 8px 18px rgba(67, 71, 33, 0.12);
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 200ms ease;
}

.hero-composer-chip:hover {
  transform: translateY(-1px);
  background: rgba(223, 214, 152, 0.54);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 24px rgba(67, 71, 33, 0.14);
}

.hero-composer-chip[aria-expanded='true'] {
  background: rgba(213, 204, 139, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 28px rgba(67, 71, 33, 0.16);
}

.hero-composer-chip-compact {
  min-width: 0;
}

.hero-composer-chip-style {
  max-width: 146px;
}

.hero-composer-chip-model {
  max-width: 196px;
}

.hero-composer-chip-ratio {
  max-width: 154px;
}

.hero-composer-chip-duration,
.hero-composer-chip-resolution {
  max-width: 118px;
}

.hero-composer-chip-quality {
  max-width: 142px;
}

.hero-composer-chip-count {
  min-width: 104px;
  max-width: 132px;
}

.hero-chip-count-label {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.hero-composer-chip-icon {
  min-width: 40px;
  flex: 0 0 auto;
}

.hero-chip-brand,
.hero-chip-rect,
.hero-chip-monitor,
.hero-chip-clock,
.hero-chip-sliders,
.hero-chip-stack,
.hero-chip-style-thumb,
.hero-chip-style-placeholder {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.hero-chip-brand {
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: conic-gradient(#ea4335 0deg 90deg, #fbbc05 90deg 180deg, #34a853 180deg 270deg, #4285f4 270deg 360deg);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.hero-chip-rect {
  width: 20px;
  height: 13px;
  border: 2.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.9;
}

.hero-chip-monitor {
  width: 22px;
  height: 15px;
  border: 2.5px solid currentColor;
  border-radius: 4px;
}

.hero-chip-monitor::after {
  content: '';
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.hero-chip-clock {
  width: 20px;
  height: 20px;
  border: 2.5px solid currentColor;
  border-radius: 50%;
  opacity: 0.9;
}

.hero-chip-clock::before,
.hero-chip-clock::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  width: 2.5px;
  border-radius: 999px;
  background: currentColor;
}

.hero-chip-clock::before {
  height: 6px;
}

.hero-chip-clock::after {
  top: 9px;
  width: 6px;
  height: 2.5px;
}

.hero-chip-sliders {
  width: 24px;
  height: 18px;
}

.hero-chip-sliders::before,
.hero-chip-sliders::after {
  content: '';
  position: absolute;
  left: 0;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
}

.hero-chip-sliders::before {
  top: 4px;
  width: 18px;
  box-shadow: 0 8px 0 currentColor;
}

.hero-chip-sliders::after {
  top: 5px;
  left: 11px;
  width: 13px;
  transform: rotate(-34deg);
  transform-origin: left center;
}

.hero-chip-stack {
  width: 18px;
  height: 14px;
}

.hero-chip-style-thumb,
.hero-chip-style-placeholder {
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  overflow: hidden;
}

.hero-chip-style-thumb {
  background: rgba(27, 28, 32, 0.12);
}

.hero-chip-style-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-chip-style-placeholder {
  background: rgba(27, 28, 32, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.hero-chip-stack::before,
.hero-chip-stack::after,
.hero-chip-stack span {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  border: 2.5px solid currentColor;
  border-radius: 3px;
}

.hero-chip-stack::before {
  top: 0;
}

.hero-chip-stack::after {
  top: 5px;
}

.hero-chip-arrow {
  margin-left: 2px;
  font-size: 13px;
  opacity: 0.64;
}

.hero-composer-panel {
  position: relative;
}

.hero-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(104, 118, 166, 0.42);
  background:
    linear-gradient(180deg, rgba(34, 35, 40, 0.98), rgba(21, 22, 25, 0.98)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 52px rgba(0, 0, 0, 0.38);
  color: #fff;
  max-height: var(--hero-popover-max-height, calc(100vh - 32px));
  opacity: 0;
  pointer-events: none;
  filter: saturate(0.96);
  will-change: transform, opacity, top, left;
  transition:
    opacity 160ms ease,
    transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 200ms ease;
}

.hero-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  border: 0;
  background: rgba(3, 5, 8, 0.16);
  backdrop-filter: blur(2px);
  opacity: 0;
  animation: hero-popover-backdrop-in 160ms ease forwards;
  cursor: default;
}

.hero-popover strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.hero-popover-model {
  width: min(720px, calc(100vw - 32px));
  overflow: hidden;
}

.hero-popover-style {
  width: min(1160px, calc(100vw - 32px));
  padding: 18px 20px 22px;
}

.hero-popover-more {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
}

.hero-popover-model-video {
  width: min(620px, calc(100vw - 32px));
}

.hero-popover[data-placement='bottom'] {
  transform: translateY(-14px) scale(0.97);
  transform-origin: top left;
}

.hero-popover[data-placement='top'] {
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom left;
}

.hero-popover[data-ready='true'] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: saturate(1);
}

.hero-popover-model-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(99, 118, 180, 0.2);
}

.hero-popover-more-head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(99, 118, 180, 0.2);
}

.hero-popover-style-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-style-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-style-tab,
.hero-popover-style-close,
.hero-style-card {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.hero-style-tab {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 700;
}

.hero-style-tab.is-active {
  background: #ccb173;
  color: #fff;
}

.hero-popover-style-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-size: 34px;
  line-height: 1;
}

.hero-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: 22px 18px;
  overflow: auto;
  max-height: calc(var(--hero-popover-max-height, 560px) - 84px);
  padding: 8px 4px 4px;
}

.hero-style-card {
  display: grid;
  gap: 12px;
  background: transparent;
  text-align: left;
}

.hero-style-card-media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-style-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-style-card-title {
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  line-height: 1.35;
}

.hero-style-card.is-active .hero-style-card-media,
.hero-style-card.is-active.hero-style-card-custom {
  box-shadow:
    inset 0 0 0 2px rgba(204, 177, 115, 0.9),
    0 12px 24px rgba(0, 0, 0, 0.26);
}

.hero-style-card-custom {
  align-content: center;
  justify-items: center;
  min-height: 100%;
  padding: 0 14px;
}

.hero-style-card-custom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(81, 104, 139, 0.22);
  box-shadow: inset 0 0 0 1px rgba(148, 170, 206, 0.16);
  color: rgba(214, 223, 240, 0.9);
  font-size: 48px;
  line-height: 1;
}

.hero-style-card-custom strong {
  color: rgba(255, 255, 255, 0.96);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.hero-popover-model-linkish {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.hero-popover-model-linkish:hover {
  color: rgba(255, 255, 255, 0.9);
}

.hero-popover-model-body {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
  align-items: start;
}

.hero-model-groups {
  display: grid;
  gap: 6px;
  align-content: start;
  grid-auto-rows: min-content;
  padding: 8px;
  border-right: 1px solid rgba(99, 118, 180, 0.18);
  overflow: auto;
  max-height: calc(var(--hero-popover-max-height, 520px) - 50px);
}

.hero-model-group,
.hero-model-option,
.hero-ratio-option,
.hero-quality-option,
.hero-count-option {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.hero-model-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  transition: background-color 160ms ease, box-shadow 180ms ease;
}

.hero-model-group:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hero-model-group.is-active {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(126, 143, 207, 0.24);
}

.hero-model-group-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hero-model-group-mark {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(50, 52, 60, 0.98), rgba(31, 32, 37, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
}

.hero-inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 7px;
  border-radius: 8px;
  background: #20ba5a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.hero-inline-badge.is-new {
  background: #ff4b36;
}

.hero-model-options {
  display: grid;
  gap: 8px;
  padding: 8px;
  overflow: auto;
  max-height: calc(var(--hero-popover-max-height, 520px) - 50px);
}

.hero-model-option {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  transition:
    background-color 160ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.hero-model-option:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.hero-model-option.is-active {
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(129, 154, 255, 0.24),
    0 10px 22px rgba(0, 0, 0, 0.14);
}

.hero-model-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.hero-model-option-row,
.hero-model-option-title,
.hero-model-option-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-model-option-row {
  align-items: flex-start;
}

.hero-model-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(31, 32, 36, 0.98), rgba(20, 21, 25, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.hero-model-option-title {
  font-size: 14px;
  font-weight: 700;
  flex-wrap: wrap;
}

.hero-model-option-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.hero-model-option-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.hero-model-option-status {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  line-height: 1.45;
}

.hero-model-option-meta {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  flex-wrap: wrap;
  padding-left: 40px;
}

.hero-model-option-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.hero-model-check {
  margin-left: auto;
  font-size: 16px;
  color: #fff;
}

.hero-popover-ratio,
.hero-popover-quality,
.hero-popover-count {
  width: min(276px, calc(100vw - 32px));
  padding: 12px 0 8px;
}

.hero-popover-ratio {
  width: min(264px, calc(100vw - 32px));
}

.hero-popover-ratio-video {
  width: min(226px, calc(100vw - 32px));
}

.hero-popover-video-settings {
  width: min(900px, calc(100vw - 32px));
  padding: 0 0 18px;
  overflow: hidden;
}

.hero-ratio-list,
.hero-quality-list,
.hero-count-list {
  display: grid;
  gap: 0;
  margin-top: 10px;
  overflow: auto;
  max-height: calc(var(--hero-popover-max-height, 520px) - 46px);
}

.hero-popover-ratio strong,
.hero-popover-quality strong,
.hero-popover-count strong {
  padding: 0 18px;
}

.hero-video-settings-head {
  padding: 18px 20px 8px;
}

.hero-video-settings-section {
  display: grid;
  gap: 12px;
  padding: 14px 20px 0;
}

.hero-video-ratio-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 12px;
}

.hero-video-duration-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(48px, 1fr));
  gap: 8px;
}

.hero-video-resolution-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-video-param-option {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.hero-video-ratio-option {
  min-height: 74px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
}

.hero-video-param-option:hover,
.hero-video-param-option.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-video-ratio-icon {
  display: block;
  width: 24px;
  height: 15px;
  border: 2.5px solid currentColor;
  border-radius: 3px;
}

.hero-video-ratio-icon-4-3 {
  width: 22px;
  height: 17px;
}

.hero-video-ratio-icon-1-1 {
  width: 20px;
  height: 20px;
}

.hero-video-ratio-icon-3-4 {
  width: 17px;
  height: 22px;
}

.hero-video-ratio-icon-9-16 {
  width: 14px;
  height: 24px;
}

.hero-video-ratio-icon-21-9 {
  width: 28px;
  height: 12px;
}

.hero-ratio-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: transparent;
  font-size: 14px;
  text-align: left;
  transition: background-color 140ms ease;
}

.hero-ratio-option.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.hero-quality-option,
.hero-count-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: transparent;
  text-align: left;
  transition: background-color 140ms ease;
}

.hero-quality-option.is-active,
.hero-count-option.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.hero-ratio-option-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-ratio-option .hero-chip-rect {
  width: 20px;
  height: 13px;
  border-width: 2.5px;
}

.hero-quality-option span,
.hero-count-option span {
  display: block;
  font-size: 14px;
}

.hero-quality-option small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.hero-more-option-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.hero-more-option-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(216, 223, 235, 0.76);
}

.hero-more-option-icon svg {
  width: 100%;
  height: 100%;
}

.hero-more-option-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hero-more-option-copy span {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hero-more-option-copy small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.hero-switch {
  position: relative;
  width: 48px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.hero-switch.is-on {
  background: #18a842;
}

.hero-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease;
}

.hero-switch.is-on .hero-switch-thumb {
  transform: translateX(20px);
}

@keyframes hero-popover-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-stage .creator-panel.hero-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 24px 24px 18px;
  border-radius: 28px;
  border: 1.5px solid rgba(38, 29, 16, 0.95);
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 246, 187, 0.42), transparent 16%),
    linear-gradient(180deg, rgba(242, 236, 194, 0.94), rgba(236, 229, 183, 0.9));
  box-shadow: 0 36px 80px rgba(8, 12, 9, 0.32);
}

.hero-stage .creator-panel.hero-panel .panel-head {
  display: none;
}

.hero-stage .creator-panel.hero-panel .stack-form {
  display: grid;
  gap: 14px;
}

.hero-stage .creator-panel.hero-panel .pill-group {
  justify-content: center;
}

.hero-stage .creator-panel.hero-panel .pill-group:first-of-type {
  margin-top: -62px;
}

.hero-stage .creator-panel.hero-panel .pill-group:first-of-type .pill-button {
  min-width: 224px;
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: rgba(241, 236, 210, 0.72);
  color: #7b4b1a;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(52, 61, 36, 0.2);
}

.hero-stage .creator-panel.hero-panel .pill-group:first-of-type .pill-button.is-active {
  background: linear-gradient(180deg, #ffd847 0%, #f0c52d 100%);
  color: #583800;
}

.hero-stage .creator-panel.hero-panel .pill-group.subtle-pills {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-stage .creator-panel.hero-panel .pill-group.subtle-pills .pill-button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: rgba(46, 38, 27, 0.72);
  font-size: 15px;
  font-weight: 700;
}

.hero-stage .creator-panel.hero-panel .pill-group.subtle-pills .pill-button.is-active {
  background: rgba(255, 250, 227, 0.68);
  color: #17110a;
}

.hero-stage .creator-panel.hero-panel .composer-notice {
  border: 0;
  padding: 0;
  background: transparent;
  color: #544633;
  gap: 6px;
}

.hero-stage .creator-panel.hero-panel .composer-notice strong {
  font-size: 14px;
}

.hero-stage .creator-panel.hero-panel .composer-notice .helper-inline:last-child {
  display: none;
}

.hero-stage .creator-panel.hero-panel textarea {
  min-height: 230px;
  border: 0;
  border-radius: 22px;
  background: rgba(247, 243, 219, 0.38);
  color: #40342a;
  font-size: 18px;
  line-height: 1.7;
  padding: 16px 18px;
}

.hero-stage .creator-panel.hero-panel textarea::placeholder {
  color: rgba(74, 63, 48, 0.64);
}

.hero-stage .creator-panel.hero-panel .field-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.hero-stage .creator-panel.hero-panel .field-stack span {
  color: rgba(76, 65, 48, 0.8);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.hero-stage .creator-panel.hero-panel input,
.hero-stage .creator-panel.hero-panel select {
  min-height: 48px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 249, 223, 0.74);
  color: #2f271d;
}

.hero-stage .creator-panel.hero-panel .reference-upload-block {
  gap: 12px;
}

.hero-stage .creator-panel.hero-panel .subsection-head {
  margin: 0;
}

.hero-stage .creator-panel.hero-panel .subsection-head h3 {
  color: #413527;
}

.hero-stage .creator-panel.hero-panel .subsection-head .helper-inline,
.hero-stage .creator-panel.hero-panel .reference-preview-copy .helper-inline,
.hero-stage .creator-panel.hero-panel .notice .helper-inline {
  color: rgba(84, 67, 43, 0.75);
  text-transform: none;
  letter-spacing: 0;
}

.hero-stage .creator-panel.hero-panel .upload-dropzone {
  border-radius: 22px;
  border: 1px dashed rgba(72, 60, 43, 0.3);
  background: rgba(255, 250, 226, 0.42);
  color: #574937;
}

.hero-stage .creator-panel.hero-panel .reference-preview {
  grid-template-columns: 120px minmax(0, 1fr);
}

.hero-stage .creator-panel.hero-panel .reference-preview img {
  border-radius: 18px;
}

.hero-stage .creator-panel.hero-panel .notice:not(.composer-notice) {
  border: 0;
  border-radius: 16px;
  background: rgba(65, 54, 41, 0.12);
  color: #554530;
}

.hero-stage .creator-panel.hero-panel .advanced-panel {
  border-radius: 18px;
  background: rgba(255, 251, 229, 0.34);
  border: 1px solid rgba(69, 55, 34, 0.14);
}

.hero-stage .creator-panel.hero-panel .advanced-panel summary {
  color: #413527;
}

.hero-stage .creator-panel.hero-panel .composer-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-stage .creator-panel.hero-panel .meta-item {
  border: 0;
  border-radius: 16px;
  background: rgba(255, 250, 226, 0.48);
  color: #4d4030;
}

.hero-stage .creator-panel.hero-panel .action-row {
  align-items: center;
  justify-content: flex-end;
}

.hero-stage .creator-panel.hero-panel .action-row .ghost-button {
  min-height: 52px;
  border-radius: 18px;
}

.hero-stage .creator-panel.hero-panel .action-row .ghost-button:not(.ghost-button-accent) {
  display: none;
}

.hero-stage .creator-panel.hero-panel .action-row .ghost-button.ghost-button-accent {
  min-width: 248px;
  border-radius: 999px;
  border: 0;
  background: #050505;
  color: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

.showcase-band {
  position: relative;
  background: #050505;
  padding: 46px 0 0;
}

.showcase-band-secondary {
  padding-top: 56px;
  padding-bottom: 32px;
}

.showcase-band-inner {
  width: calc(100% - 32px);
  margin: 0 auto;
}

.showcase-band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.showcase-band-title-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.showcase-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.16);
}

.showcase-band h2 {
  color: #fff;
  font-size: clamp(28px, 1.9vw, 36px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.showcase-tab-row {
  flex-wrap: wrap;
  gap: 15px;
}

.showcase-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.showcase-tab.is-active {
  background: #202020;
  color: #fff;
}

.showcase-band-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
}

.showcase-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase-pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #354051;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.showcase-select {
  position: relative;
}

.showcase-select-caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.92;
}

.showcase-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 6;
  overflow: hidden;
  border-radius: 8px;
  background: #1c2634;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

.showcase-select-menu-sort {
  width: 260px;
}

.showcase-select-menu-model {
  width: 330px;
  max-height: 620px;
  overflow-y: auto;
}

.showcase-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}

.showcase-select-option.is-selected {
  background: #354051;
}

.showcase-menu-check {
  width: 18px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex: 0 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
}

.gallery-grid-templates {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  -webkit-overflow-scrolling: touch;
}

.gallery-grid-styles {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-grid-styles-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  -webkit-overflow-scrolling: touch;
}

.gallery-card {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #0b0b0b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.gallery-grid-templates .gallery-card {
  flex: 0 0 clamp(182px, 12.2vw, 216px);
  scroll-snap-align: start;
}

.gallery-grid-styles-slider .gallery-card {
  flex: 0 0 clamp(174px, 11.7vw, 204px);
  scroll-snap-align: start;
}

.gallery-card-main {
  display: grid;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.gallery-card-main:focus-visible,
.gallery-card-media-link:focus-visible,
.gallery-card-cta:focus-visible,
.gallery-card-icon:focus-visible {
  outline: 2px solid rgba(255, 212, 71, 0.8);
  outline-offset: 3px;
}

.gallery-card.is-active {
  border-color: rgba(255, 212, 71, 0.44);
}

.gallery-card-media {
  aspect-ratio: 0.8 / 1;
  background: #181818;
}

.gallery-card-media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gallery-grid-styles .gallery-card-media {
  aspect-ratio: 0.96 / 1;
}

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

.gallery-card-body {
  display: grid;
  gap: 10px;
  padding: 20px 24px 14px;
}

.gallery-card-body strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-card-body span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.gallery-grid-templates .gallery-card-body {
  gap: 6px;
  padding: 14px 14px 10px;
}

.gallery-grid-templates .gallery-card-body strong {
  font-size: 14px;
  line-height: 1.2;
}

.gallery-grid-styles-slider .gallery-card-body {
  gap: 6px;
  padding: 14px 14px 10px;
}

.gallery-grid-styles-slider .gallery-card-body strong {
  font-size: 14px;
  line-height: 1.2;
}

.gallery-card-footer {
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px 22px;
}

.gallery-grid-templates .gallery-card-footer {
  gap: 6px;
  padding: 0 14px 14px;
}

.gallery-grid-styles-slider .gallery-card-footer {
  gap: 6px;
  padding: 0 14px 14px;
}

.gallery-card-footer-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.gallery-grid-styles-slider .gallery-card-footer-split {
  gap: 6px;
}

.gallery-grid-styles .gallery-card-footer {
  padding-right: 20px;
  padding-left: 20px;
}

.gallery-card-cta,
.gallery-card-icon {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.gallery-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  word-break: keep-all;
}

.gallery-grid-styles .gallery-card-cta {
  padding: 10px 12px;
  font-size: 15px;
}

.gallery-grid-templates .gallery-card-cta {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 12px;
}

.gallery-grid-styles-slider .gallery-card-cta {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 12px;
}

.gallery-card-icon {
  width: 50px;
  min-width: 50px;
  height: 50px;
  border-radius: 8px;
  background: transparent;
  font-size: 28px;
  line-height: 1;
}

.gallery-grid-templates .gallery-card-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
  font-size: 17px;
}

.gallery-card-cta-secondary {
  flex: 1;
  min-width: 0;
}

.gallery-grid-templates > .showcase-empty {
  min-width: 100%;
}

.gallery-grid-styles-slider > .showcase-empty {
  min-width: 100%;
}

.gallery-style-swatch {
  width: 48px;
  min-width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--swatch-a, #f4d6b6), var(--swatch-b, #d9e6df));
}

.showcase-empty {
  grid-column: 1 / -1;
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.templates-directory {
  min-height: 100vh;
  background: #050505;
  padding: 124px 0 48px;
}

.templates-directory-inner {
  width: min(1760px, calc(100% - 48px));
  margin: 0 auto;
}

.templates-directory-hero {
  margin-bottom: 38px;
}

.templates-directory-hero h1 {
  color: #fff;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.05em;
}

.templates-filter-stack {
  display: grid;
  gap: 18px;
  margin-bottom: 42px;
}

.templates-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.templates-feedback.tone-error {
  border-color: rgba(248, 113, 113, 0.34);
  background: rgba(127, 29, 29, 0.36);
}

.templates-feedback.tone-soft {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(30, 64, 175, 0.26);
}

.templates-feedback button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #f5f5f5;
  color: #111;
  font-weight: 700;
}

.templates-filter-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.templates-filter-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 48px;
}

.templates-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.templates-filter-chip {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 600;
}

.templates-filter-chip.is-active {
  background: #3b82f6;
  color: #fff;
}

.templates-filter-more {
  min-height: 48px;
  padding: 0 18px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
}

.templates-filter-more:hover {
  border-color: rgba(217, 255, 99, 0.65);
  color: #d9ff63;
}

.templates-directory-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.templates-gallery-card {
  min-height: 100%;
}

.templates-gallery-card-body {
  gap: 14px;
}

.templates-card-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.templates-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.templates-card-meta strong {
  color: #f6d18a;
  font-size: 14px;
}

.templates-card-capabilities,
.templates-modal-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.templates-card-capabilities span,
.templates-modal-fields span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(217, 255, 99, 0.18);
  border-radius: 999px;
  background: rgba(217, 255, 99, 0.06);
  color: rgba(229, 255, 152, 0.78);
  font-size: 11px;
  font-weight: 700;
}

.templates-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.templates-card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
}

.templates-gallery-card .gallery-card-icon:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.templates-modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.templates-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.8);
}

.templates-modal-card {
  position: relative;
  width: min(1180px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  padding: 28px;
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #101010;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.templates-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.templates-modal-head {
  margin-bottom: 24px;
}

.templates-modal-head h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 36px;
}

.templates-modal-head p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.templates-modal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
}

.templates-modal-choices {
  display: grid;
  gap: 16px;
  align-content: start;
}

.templates-variant-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-align: left;
}

.templates-variant-card.is-active {
  border-color: rgba(245, 209, 138, 0.8);
  box-shadow: 0 0 0 1px rgba(245, 209, 138, 0.22);
}

.templates-variant-media {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 3 / 4;
}

.templates-variant-media img,
.templates-modal-preview-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.templates-variant-card strong {
  font-size: 18px;
}

.templates-modal-detail {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
}

.templates-modal-preview {
  display: grid;
  gap: 12px;
  align-content: start;
}

.templates-modal-preview-frame {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  aspect-ratio: 3 / 4;
}

.templates-modal-content {
  display: grid;
  gap: 18px;
  align-content: start;
}

.templates-modal-content h3 {
  color: #fff;
  font-size: 30px;
}

.templates-modal-section {
  display: grid;
  gap: 10px;
}

.templates-modal-section p {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.templates-modal-section .templates-modal-use-case {
  border: 1px solid rgba(217, 255, 99, 0.15);
  background: rgba(217, 255, 99, 0.06);
  color: rgba(239, 255, 192, 0.9);
}

.templates-modal-workflow {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 16px 18px 16px 38px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.55;
}

.templates-modal-source {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 2px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}

.templates-modal-source strong {
  color: rgba(255, 255, 255, 0.74);
}

.templates-modal-source small {
  width: 100%;
  color: rgba(255, 255, 255, 0.38);
}

.templates-modal-section-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.templates-modal-params {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.templates-modal-params span,
.templates-modal-balance {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.templates-modal-balance strong {
  color: #f6d18a;
  font-size: 15px;
}

.templates-modal-notice {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.templates-modal-notice.tone-error {
  background: rgba(127, 29, 29, 0.38);
  color: #fecaca;
}

.templates-modal-notice.tone-soft {
  background: rgba(30, 64, 175, 0.3);
  color: #dbeafe;
}

.templates-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.templates-modal-button {
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: #d8bb78;
  color: #111;
  font-size: 16px;
  font-weight: 700;
}

.templates-modal-button.is-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.template-submit-modal-root {
  position: fixed;
  inset: 0;
  z-index: 86;
  display: grid;
  place-items: center;
  padding: 24px;
}

.template-submit-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  animation: template-submit-modal-backdrop-in 220ms ease-out both;
}

.template-submit-modal-card {
  position: relative;
  width: min(1200px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 12, 12, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
  transform-origin: center top;
  will-change: opacity, transform;
  animation: template-submit-modal-card-in 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.template-submit-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #ee2f2f;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.template-submit-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-right: 58px;
  margin-bottom: 12px;
}

.template-submit-modal-thumb {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.template-submit-modal-head span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.template-submit-modal-head h2 {
  margin: 2px 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

.template-submit-modal-head p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.55;
}

.template-submit-modal-prompt {
  margin-bottom: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
}

.template-submit-modal-prompt summary {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.template-submit-modal-prompt p {
  padding: 0 14px 14px;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.template-submit-modal-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.74);
}

.template-submit-modal-summary p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.template-submit-modal-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-submit-modal-summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.template-submit-modal-card .hero-composer {
  width: 100%;
}

.template-submit-modal-card .hero-composer-panel {
  position: relative;
  padding: 20px 20px 98px;
  border-radius: 12px;
}

.template-submit-modal-card .hero-composer-stage-split {
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 20px;
}

.template-submit-modal-card .hero-composer-footer {
  display: block;
  margin-top: 16px;
}

.template-submit-modal-card .hero-composer-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible;
  padding-right: 392px;
}

.template-submit-modal-card .hero-composer-chip {
  flex: 0 0 auto;
  max-width: none;
}

.template-submit-modal-card .hero-composer-chip-style,
.template-submit-modal-card .hero-composer-chip-model,
.template-submit-modal-card .hero-composer-chip-ratio,
.template-submit-modal-card .hero-composer-chip-quality,
.template-submit-modal-card .hero-composer-chip-count {
  max-width: none;
}

.template-submit-modal-card .hero-composer-chip > span:nth-child(2) {
  overflow: visible;
  text-overflow: clip;
}

.template-submit-modal-card .hero-composer-feedback {
  margin-right: 392px;
}

.template-submit-modal-card .hero-composer-submit {
  position: absolute;
  right: 20px;
  bottom: 20px;
  min-width: 340px;
  min-height: 54px;
  font-size: 14px;
}

@media (max-width: 1160px) {
  .template-submit-modal-card {
    width: min(calc(100vw - 24px), 1080px);
    padding: 18px;
  }

  .template-submit-modal-card .hero-composer-panel {
    padding: 18px;
  }

  .template-submit-modal-card .hero-composer-stage-split {
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 18px;
  }

  .template-submit-modal-card .hero-composer-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .template-submit-modal-card .hero-composer-chip-row,
  .template-submit-modal-card .hero-composer-feedback {
    padding-right: 0;
    margin-right: 0;
  }

  .template-submit-modal-card .hero-composer-submit {
    position: static;
    min-width: min(100%, 340px);
    justify-self: end;
  }
}

@keyframes template-submit-modal-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes template-submit-modal-card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .template-submit-modal-backdrop,
  .template-submit-modal-card {
    animation: none;
  }
}

.inspiration-masonry {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.inspiration-card {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0b0b;
}

.inspiration-card-media {
  position: relative;
}

.inspiration-card-media a {
  display: block;
  color: inherit;
  aspect-ratio: 0.84 / 1;
  overflow: hidden;
}

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

.inspiration-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.inspiration-card-meta,
.inspiration-card-actions {
  align-items: center;
  gap: 10px;
}

.inspiration-card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 10px 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
}

.inspiration-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 10px 10px;
  gap: 8px;
}

.inspiration-author,
.inspiration-likes {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.inspiration-author {
  gap: 8px;
}

.inspiration-author img {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
}

.inspiration-author span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspiration-likes {
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  flex: 0 0 auto;
}

.inspiration-card-actions .gallery-card-cta {
  width: 100%;
  min-height: 34px;
  padding: 0 4px;
  font-size: 11px;
}

.showcase-detail-page {
  min-height: 100vh;
  background: #050505;
  color: #f6f6f6;
}

.showcase-detail-shell {
  width: min(1360px, calc(100% - 56px));
  margin: 0 auto;
  padding: 112px 0 72px;
}

.showcase-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.showcase-detail-back span {
  font-size: 24px;
  line-height: 1;
}

.showcase-detail-hero {
  display: grid;
  grid-template-columns: minmax(320px, 480px) minmax(0, 720px);
  gap: 32px;
  align-items: start;
  margin-top: 48px;
  justify-content: center;
}

.showcase-detail-media {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #171717;
  border-radius: 8px;
}

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

.showcase-detail-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.showcase-detail-title-row {
  min-height: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 18px;
  align-items: start;
}

.showcase-detail-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

.showcase-detail-users {
  margin: 0;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.showcase-detail-save {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.86);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.showcase-detail-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 2px;
}

.showcase-detail-fact {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 20px;
}

.showcase-detail-fact span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  font-weight: 800;
}

.showcase-detail-fact strong {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.showcase-detail-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 2px;
}

.showcase-detail-submit {
  min-width: 132px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #f2c066 0%, #db8e55 100%);
  color: #161616;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.showcase-detail-style-section,
.showcase-detail-block {
  display: grid;
  gap: 10px;
}

.showcase-detail-style-section {
  padding-top: 4px;
}

.showcase-detail-style-section h2,
.showcase-detail-block h2,
.showcase-related-head h2 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.showcase-detail-style-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.showcase-detail-style-card {
  position: relative;
  overflow: hidden;
  width: 124px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #111;
  color: #fff;
  cursor: pointer;
  padding: 0;
}

.showcase-detail-style-card.is-active {
  border-color: #c8af74;
  box-shadow: 0 0 0 1px #c8af74;
}

.showcase-detail-style-card.is-active::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(199, 178, 119, 0.88);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
}

.showcase-detail-style-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.showcase-detail-style-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 32px;
  padding: 8px 8px 7px;
  background: rgba(171, 153, 99, 0.68);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-detail-block {
  padding-top: 4px;
}

.showcase-detail-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.showcase-detail-copy-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.showcase-detail-copy-prompt span {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1;
}

.showcase-detail-textbox {
  min-height: 104px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #242424;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.showcase-detail-textbox p + p {
  margin-top: 2px;
}

.showcase-detail-empty {
  min-height: 420px;
  padding: 96px 0;
}

.showcase-detail-empty h1 {
  color: #fff;
  font-size: 42px;
  line-height: 1.1;
}

.showcase-detail-empty p {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
}

.showcase-related-section {
  margin-top: 64px;
}

.showcase-related-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.showcase-related-head h2 {
  font-size: 34px;
}

.showcase-related-head p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 18px;
  font-weight: 700;
}

.showcase-related-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.showcase-related-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #050505;
}

.showcase-related-media {
  aspect-ratio: 1 / 1.34;
  overflow: hidden;
  background: #151515;
}

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

.showcase-related-body {
  display: grid;
  gap: 18px;
  padding: 16px 18px 18px;
}

.showcase-related-author {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
}

.showcase-related-author img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
}

.showcase-related-author span {
  min-width: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase-related-author button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.showcase-related-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.showcase-related-actions a,
.showcase-related-actions button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #080808;
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 1280px) {
  .showcase-detail-hero {
    grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  }

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

.style-detail-page {
  min-height: 100vh;
  background: #050505;
  color: #fff;
}

.style-detail-shell {
  width: min(1300px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 76px;
}

.style-detail-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
}

.style-detail-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.style-detail-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(360px, 1.08fr);
  gap: 42px;
  align-items: start;
  margin-top: 60px;
}

.style-detail-media {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.style-detail-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.style-detail-copy {
  display: grid;
  gap: 24px;
  padding-top: 6px;
}

.style-detail-copy h1,
.style-detail-empty h1,
.style-detail-related-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.style-detail-copy h1 {
  font-size: clamp(46px, 5vw, 72px);
  line-height: 0.98;
}

.style-detail-id {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.style-detail-meta-block {
  display: grid;
  gap: 14px;
}

.style-detail-meta-label {
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  font-weight: 600;
}

.style-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.style-detail-tag {
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.style-detail-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.style-detail-copy-button,
.style-detail-use-button,
.style-related-card-actions button {
  border: 0;
  cursor: pointer;
}

.style-detail-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 2px;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
}

.style-detail-prompt-box {
  min-height: 112px;
  padding: 18px 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.style-detail-use-button {
  min-height: 58px;
  border-radius: 8px;
  background: #ccb173;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.style-detail-related {
  margin-top: 72px;
}

.style-detail-related-head {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.style-detail-related-head h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}

.style-detail-related-head p,
.style-detail-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
  line-height: 1.6;
}

.style-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.style-related-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.92);
}

.style-related-card-media {
  display: block;
}

.style-related-card-media img {
  width: 100%;
  aspect-ratio: 0.9;
  object-fit: cover;
  display: block;
}

.style-related-card-meta {
  padding: 14px 16px 0;
}

.style-related-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.style-related-card-author img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  object-fit: cover;
}

.style-related-card-author span {
  min-width: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-related-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.style-related-card-actions button {
  min-height: 44px;
  border-radius: 8px;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.style-detail-empty {
  display: grid;
  gap: 12px;
  margin-top: 56px;
}

.faq-band {
  background: #050505;
  padding: 48px 0 56px;
}

.faq-band-inner {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
}

.faq-band-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-bottom: 42px;
  text-align: center;
}

.faq-band-head h2 {
  color: #fff;
  font-size: clamp(42px, 4vw, 58px);
}

.faq-band-head p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

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

.faq-card-home {
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.faq-card-home h3 {
  color: #fff;
  font-size: 18px;
  margin: 0 0 18px;
}

.faq-card-home p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.75;
}

.reference-footer {
  background: #050505;
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-footer-inner {
  width: min(1800px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 0.8fr 0.8fr;
  gap: 36px;
  align-items: start;
}

.reference-footer-brand,
.reference-footer-column {
  display: grid;
  gap: 18px;
}

.reference-footer-logo {
  color: #fff;
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
}

.reference-footer-contact {
  display: grid;
  gap: 8px;
}

.reference-footer-meta {
  display: grid;
  gap: 12px;
}

.reference-footer-meta-block {
  display: grid;
  gap: 4px;
}

.reference-footer-meta-block strong {
  color: #fff;
  font-size: 14px;
}

.reference-footer-contact strong,
.reference-footer-column h3 {
  color: #fff;
  font-size: 18px;
}

.reference-footer-contact a,
.reference-footer-column a,
.reference-footer-text {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.7;
}

.reference-footer-text {
  display: inline-block;
}

.reference-footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reference-footer-socials a {
  text-decoration: none;
}

.footer-social-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.reference-footer-bottom {
  width: min(1800px, calc(100% - 48px));
  margin: 42px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.reference-footer-bottom p,
.reference-footer-legal a,
.reference-footer-legal .reference-footer-text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.reference-footer-legal-copy {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.reference-footer-disclaimer {
  max-width: 820px;
  line-height: 1.65;
}

.reference-footer-legal {
  display: flex;
  align-items: center;
  gap: 32px;
}

.resource-page {
  width: min(1800px, calc(100% - 48px));
  margin: 116px auto 56px;
  display: grid;
  gap: 28px;
}

.resource-page-head {
  max-width: 860px;
  display: grid;
  gap: 12px;
}

.resource-page-head h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
}

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

.resource-page-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.resource-page-card h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.resource-page-card p,
.resource-page-list li {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.75;
}

.resource-page-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.resource-page-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.models-catalog-page,
.model-page-shell {
  width: min(1800px, calc(100% - 48px));
  margin: 116px auto 56px;
  display: grid;
  gap: 28px;
}

.models-catalog-hero,
.model-page-hero,
.model-page-note {
  padding: 28px;
}

.models-catalog-hero h1,
.model-page-hero h1 {
  margin: 10px 0 12px;
  color: #fff;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
}

.models-catalog-section {
  display: grid;
  gap: 18px;
}

.models-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.model-catalog-card {
  min-height: 100%;
  display: grid;
  gap: 18px;
}

.model-catalog-card-top {
  display: grid;
  gap: 8px;
}

.model-catalog-card-top h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}

.model-catalog-card p,
.model-page-copy-panel p,
.model-page-note p,
.model-page-summary-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 1.75;
}

.model-catalog-card-actions {
  margin-top: auto;
}

.model-page-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.model-page-summary-grid .panel,
.model-page-detail-grid > * {
  min-height: 100%;
}

.model-page-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.model-page-copy-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.model-page-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.model-page-link-card {
  min-height: 100%;
  display: grid;
  gap: 10px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.model-page-link-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.model-page-link-card strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.model-page-link-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.model-page-note {
  display: grid;
  gap: 12px;
}

.pricing-paywall-card-status {
  display: grid;
  gap: 8px;
}

.pricing-paywall-placeholder-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.5;
}

.locale-switcher {
  min-height: 38px;
  min-width: 136px;
  color: #fff;
}

.locale-switcher-trigger {
  position: relative;
  z-index: 1;
  min-height: 38px;
  min-width: 136px;
  padding: 0 11px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(20, 25, 34, 0.98), rgba(6, 9, 14, 0.96)),
    linear-gradient(135deg, rgba(67, 195, 255, 0.16), rgba(255, 255, 255, 0));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.24);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.locale-switcher-trigger:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 34px rgba(0, 0, 0, 0.28);
}

.locale-switcher.is-open .locale-switcher-trigger {
  border-color: rgba(117, 194, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(117, 194, 255, 0.3),
    0 20px 40px rgba(0, 0, 0, 0.3);
}

.locale-switcher-trigger-inner,
.locale-switcher-current,
.locale-switcher-option-main {
  display: inline-flex;
  align-items: center;
}

.locale-switcher-trigger-inner,
.locale-switcher-option-main {
  gap: 8px;
}

.locale-switcher-current {
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.locale-switcher-current span:last-child {
  white-space: nowrap;
}

.locale-switcher-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  font-size: 13px;
  line-height: 1;
}

.locale-switcher-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.locale-switcher-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.72);
  transition: transform 220ms ease, color 220ms ease;
}

.locale-switcher-caret svg {
  width: 9px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.locale-switcher.is-open .locale-switcher-caret {
  color: #fff;
  transform: rotate(180deg);
}

.locale-switcher-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(248px, calc(100vw - 24px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.22, 0.9, 0.24, 1),
    visibility 0ms linear 220ms;
}

.locale-switcher-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0ms;
}

.locale-switcher-menu-shell {
  position: relative;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(112, 200, 255, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(27, 33, 43, 0.92), rgba(7, 10, 15, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 44px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px);
}

.locale-switcher-menu-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 28%);
  pointer-events: none;
}

.locale-switcher-option {
  position: relative;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
}

.locale-switcher-menu.is-open .locale-switcher-option {
  animation: localeSwitcherItemEnter 240ms cubic-bezier(0.22, 0.9, 0.24, 1) both;
  animation-delay: calc(var(--locale-item-index, 0) * 46ms + 30ms);
}

.locale-switcher-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.locale-switcher-option.is-active {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.locale-switcher-check {
  min-width: 16px;
  color: #8ed0ff;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

@keyframes localeSwitcherItemEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .locale-switcher-trigger,
  .locale-switcher-caret,
  .locale-switcher-menu,
  .locale-switcher-option {
    transition: none;
    animation: none;
  }

  .locale-switcher-option {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1440px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-grid-templates {
    gap: 14px;
  }

  .gallery-grid-styles-slider {
    gap: 14px;
  }

  .templates-directory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-grid-styles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .inspiration-masonry {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .home-header {
    padding: 10px 0;
  }

  .home-header-inner {
    width: min(100% - 36px, 1800px);
    min-height: auto;
    flex-wrap: wrap;
    padding: 6px 0;
  }

  .home-nav {
    order: 3;
    width: 100%;
  }

  .home-header-popover {
    width: min(1180px, calc(100vw - 36px));
  }

  .home-menu-grid-tools,
  .home-menu-list-models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stage h1 {
    white-space: normal;
  }

  .hero-stage-copy p {
    font-size: 18px;
  }

  .hero-composer {
    width: min(980px, 100%);
  }

  .hero-composer-stage-split {
    grid-template-columns: minmax(290px, 0.76fr) minmax(0, 1.24fr);
  }

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

  .gallery-grid-templates {
    gap: 12px;
  }

  .gallery-grid-styles-slider {
    gap: 12px;
  }

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

  .templates-modal-layout,
  .templates-modal-detail {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .inspiration-masonry {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reference-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-footer-bottom {
    width: min(100% - 36px, 1800px);
    flex-direction: column;
    align-items: flex-start;
  }

  .resource-page-grid {
    grid-template-columns: 1fr;
  }

  .resource-page-support {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-summary-grid,
  .profile-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .home-header {
    padding: 0;
  }

  .home-header,
  .home-header.is-scrolled {
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .home-header-inner {
    width: min(100% - 20px, 1760px);
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .home-mobile-leading,
  .home-mobile-actions {
    display: flex;
    align-items: center;
    position: absolute;
    top: 18px;
    transform: none;
  }

  .home-mobile-leading {
    left: 0;
  }

  .home-mobile-actions {
    right: 0;
    justify-content: flex-end;
  }

  .home-brand {
    justify-content: center;
    margin: 0 auto;
  }

  .home-brand-mark {
    font-size: 42px;
  }

  .home-mobile-menu-button,
  .home-account-trigger-mobile {
    width: 42px;
    height: 42px;
  }

  .home-mobile-menu-button {
    border-radius: 12px;
  }

  .home-mobile-menu-button span {
    left: 7px;
    right: 7px;
    height: 3px;
  }

  .home-mobile-menu-button span:nth-child(1) {
    top: 11px;
  }

  .home-mobile-menu-button span:nth-child(2) {
    top: 19px;
  }

  .home-mobile-menu-button span:nth-child(3) {
    top: 27px;
  }

  .home-nav,
  .home-header-actions {
    display: none;
  }

  .home-account-popover {
    left: 0;
    right: 0;
    width: min(calc(100vw - 20px), 380px);
    margin-left: auto;
  }

  .home-header-popover {
    width: min(calc(100vw - 20px), 960px);
    padding: 22px 18px 20px;
  }

  .home-menu-grid-tools,
  .home-menu-list-models {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-menu-grid-tools .home-menu-section + .home-menu-section {
    padding-top: 8px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .home-menu-section h3 {
    font-size: 20px;
  }

  .home-mobile-drawer .home-menu-grid-mobile {
    gap: 20px;
  }

  .home-mobile-drawer .home-menu-grid-tools {
    grid-template-columns: 1fr;
  }

  .task-notification-dock,
  .task-launch-flyer,
  .task-toast-shell {
    display: none;
  }

  .home-mobile-drawer .home-menu-grid-tools .home-menu-section + .home-menu-section {
    padding-top: 18px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .home-mobile-drawer .home-menu-list-models {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-mobile-drawer .home-menu-card {
    padding: 10px 0;
    border-radius: 0;
    background: transparent;
  }

  .home-mobile-drawer .home-menu-card:hover {
    background: transparent;
    transform: none;
  }

  .home-mobile-drawer .home-menu-mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 20px;
  }

  .home-mobile-drawer .home-menu-copy strong {
    font-size: 17px;
  }

  .home-menu-copy strong {
    font-size: 18px;
  }

  .home-menu-copy p {
    font-size: 14px;
  }

  .hero-stage {
    min-height: 100svh;
    padding-top: 0;
    padding-bottom: 20px;
  }

  .account-page-shell,
  .account-auth-gate {
    width: min(100% - 20px, 1180px);
    padding-top: 122px;
  }

  .account-page-card,
  .account-auth-gate-card {
    padding: 22px;
  }

  .account-page-card-head {
    align-items: flex-start;
  }

  .templates-directory {
    padding-top: 108px;
  }

  .templates-directory-inner,
  .showcase-band-inner,
  .faq-band-inner,
  .reference-footer-inner,
  .reference-footer-bottom {
    width: min(100% - 20px, 1760px);
  }

  .resource-page {
    width: min(100% - 20px, 1760px);
    margin: 96px auto 40px;
  }

  .hero-stage-copy {
    display: none;
  }

  .hero-stage-tool {
    padding-top: 112px;
  }

  .hero-stage h1 {
    white-space: normal;
    font-size: clamp(28px, 10vw, 42px);
    max-width: 100%;
  }

  .tool-breadcrumb {
    gap: 8px;
    font-size: 14px;
  }

  .hero-stage-inner {
    width: calc(100% - 22px);
    min-height: 100svh;
    display: grid;
    align-content: start;
  }

  .hero-composer {
    width: min(100%, 692px);
    gap: 12px;
    margin-top: clamp(146px, 22vh, 194px);
    padding-bottom: 72px;
  }

  .hero-composer-task-switch {
    width: min(calc(100% - 54px), 514px);
    margin: 0 auto;
    padding: 7px;
    gap: 7px;
    border-radius: 18px;
    background: rgba(235, 231, 212, 0.34);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 28px rgba(22, 39, 38, 0.14);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
  }

  .hero-composer-task-button {
    min-width: 0;
    min-height: 52px;
    padding: 0 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-composer-task-button.is-active {
    box-shadow:
      0 10px 22px rgba(73, 63, 22, 0.18),
      0 2px 6px rgba(255, 223, 99, 0.34);
  }

  .hero-composer-panel {
    width: min(calc(100% - 14px), 656px);
    margin: 0 auto;
    padding: 18px 24px 16px;
    border-width: 2px;
    border-radius: 18px;
    overflow: visible;
  }

  .hero-composer-mode-row {
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 8px;
    padding-right: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .hero-composer-mode-row::-webkit-scrollbar {
    display: none;
  }

  .hero-composer-mode-button {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .hero-composer-stage {
    min-height: 262px;
    gap: 12px;
  }

  .hero-composer-stage-split,
  .hero-reference-grid-2,
  .hero-reference-grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-reference-grid-3 .hero-reference-slot:first-child {
    grid-row: auto;
  }

  .hero-prompt-panel {
    padding-top: 2px;
  }

  .hero-composer-textarea {
    height: clamp(214px, 34vh, 300px);
    min-height: 214px;
    padding-top: 4px;
  }

  .hero-composer-panel[data-task-type='video'] .hero-composer-mode-row {
    gap: 10px;
    margin-bottom: 6px;
    padding-right: 12px;
  }

  .hero-composer-panel[data-task-type='video'] .hero-composer-stage {
    gap: 10px;
  }

  .hero-composer-panel[data-task-type='video'] .hero-composer-mode-button {
    font-size: 11px;
    letter-spacing: -0.02em;
  }

  .hero-composer-panel[data-task-type='video'] .hero-composer-mode-info {
    width: 18px;
    height: 18px;
    border-width: 1.5px;
    font-size: 10px;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='0'] .hero-composer-textarea {
    height: 196px;
    min-height: 196px;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='0'] .hero-prompt-panel-head.is-single strong {
    font-size: 14px;
    line-height: 1.4;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='1'] .hero-composer-stage-split {
    grid-template-columns: 136px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='1'] .hero-reference-grid-1 {
    grid-template-columns: 1fr;
  }

  .hero-composer-panel[data-generation-mode='image_to_video'] .hero-reference-slot-label,
  .hero-composer-panel[data-generation-mode='video_edit'] .hero-reference-slot-label {
    display: none;
  }

  .hero-composer-panel[data-generation-mode='image_to_video'] .hero-reference-tile,
  .hero-composer-panel[data-generation-mode='video_edit'] .hero-reference-tile {
    min-height: 156px;
    padding: 10px 10px;
    border-radius: 18px;
    gap: 7px;
  }

  .hero-composer-panel[data-generation-mode='image_to_video'] .hero-reference-tile.is-upload-card,
  .hero-composer-panel[data-generation-mode='video_edit'] .hero-reference-tile.is-upload-card {
    justify-items: center;
    text-align: center;
  }

  .hero-composer-panel[data-generation-mode='image_to_video'] .hero-reference-tile.is-upload-card strong,
  .hero-composer-panel[data-generation-mode='video_edit'] .hero-reference-tile.is-upload-card strong {
    width: 100%;
    font-size: 13px;
    text-align: center;
    line-height: 1.35;
  }

  .hero-composer-panel[data-generation-mode='image_to_video'] .hero-reference-tile-icon,
  .hero-composer-panel[data-generation-mode='video_edit'] .hero-reference-tile-icon {
    font-size: 30px;
  }

  .hero-composer-panel[data-generation-mode='image_to_video'] .hero-reference-tile-meta,
  .hero-composer-panel[data-generation-mode='video_edit'] .hero-reference-tile-meta {
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
  }

  .hero-composer-panel[data-generation-mode='image_to_video'] .hero-prompt-panel-head strong,
  .hero-composer-panel[data-generation-mode='video_edit'] .hero-prompt-panel-head strong {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-composer-panel[data-generation-mode='image_to_video'] .hero-composer-textarea {
    height: 110px;
    min-height: 110px;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='2'] .hero-composer-stage-split,
  .hero-composer-panel[data-generation-mode='reference_to_video'] .hero-composer-stage-split {
    grid-template-columns: 1fr;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='2'] .hero-reference-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-composer-panel[data-generation-mode='reference_to_video'] .hero-reference-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='2'] .hero-reference-tile,
  .hero-composer-panel[data-generation-mode='reference_to_video'] .hero-reference-tile {
    min-height: 106px;
    padding: 8px 6px;
    border-radius: 16px;
    gap: 4px;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='2'] .hero-reference-tile-icon,
  .hero-composer-panel[data-generation-mode='reference_to_video'] .hero-reference-tile-icon {
    font-size: 24px;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='2'] .hero-reference-tile-meta,
  .hero-composer-panel[data-generation-mode='reference_to_video'] .hero-reference-tile-meta {
    font-size: 10px;
    line-height: 1.2;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='2'] .hero-reference-slot-label,
  .hero-composer-panel[data-generation-mode='reference_to_video'] .hero-reference-slot-label {
    padding-left: 0;
    min-width: 0;
    font-size: 9px;
    line-height: 1.15;
    white-space: normal;
    word-break: break-word;
    text-align: center;
  }

  .hero-composer-panel[data-generation-mode='reference_to_video'] .hero-prompt-panel-head strong,
  .hero-composer-panel[data-generation-mode='first_last_frame'] .hero-prompt-panel-head strong {
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-composer-panel[data-generation-mode='reference_to_video'] .hero-composer-textarea,
  .hero-composer-panel[data-generation-mode='first_last_frame'] .hero-composer-textarea {
    height: 74px;
    min-height: 74px;
  }

  .hero-composer-chip-row,
  .hero-composer-footer {
    display: grid;
  }

  .hero-composer-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 12px;
    align-items: stretch;
  }

  .hero-composer-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 8px;
    overflow: visible;
    padding: 0;
  }

  .hero-composer-chip {
    width: auto;
    min-width: 0;
    min-height: 42px;
    padding: 0 14px;
    justify-content: flex-start;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .hero-composer-chip-style {
    order: 1;
    display: none;
  }

  .hero-composer-chip-model {
    order: 2;
    flex: 0 1 auto;
    max-width: 100%;
  }

  .hero-composer-chip-quality {
    order: 4;
    flex: 0 1 auto;
  }

  .hero-composer-chip-ratio {
    order: 3;
    flex: 0 1 auto;
  }

  .hero-composer-chip-duration {
    order: 4;
    flex: 0 1 auto;
  }

  .hero-composer-chip-resolution {
    order: 5;
    flex: 0 1 auto;
  }

  .hero-composer-chip-count {
    order: 5;
    flex: 0 1 auto;
  }

  .hero-composer-chip-icon {
    order: 6;
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
    flex: 0 0 44px;
  }

  .hero-composer-chip span,
  .hero-composer-chip select {
    font-size: 13px;
  }

  .hero-composer-chip > span:nth-child(2) {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .hero-popover-video-settings {
    width: min(420px, calc(100vw - 24px));
  }

  .hero-video-settings-head {
    padding: 16px 16px 6px;
  }

  .hero-video-settings-section {
    padding: 12px 16px 0;
  }

  .hero-video-ratio-grid {
    grid-template-columns: repeat(3, minmax(76px, 1fr));
    gap: 8px;
  }

  .hero-video-duration-grid {
    grid-template-columns: repeat(4, minmax(58px, 1fr));
  }

  .hero-composer-submit {
    position: static;
    width: min(316px, 100%);
    min-height: 52px;
    font-size: 15px;
    justify-self: end;
    margin-top: 0;
    transform: none;
  }

  .showcase-band-head,
  .showcase-band-title-wrap {
    grid-template-columns: 1fr;
  }

  .hero-popover-style {
    width: min(100vw - 20px, 760px);
    padding: 16px 14px 18px;
  }

  .hero-style-tabs {
    gap: 8px;
  }

  .hero-style-tab {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
  }

  .hero-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .hero-style-card-title,
  .hero-style-card-custom strong {
    font-size: 13px;
  }

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

  .gallery-grid-templates {
    gap: 12px;
  }

  .gallery-grid-styles-slider {
    gap: 12px;
  }

  .templates-filter-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .templates-filter-label {
    line-height: 1.4;
  }

  .templates-feedback {
    flex-direction: column;
    align-items: stretch;
  }

  .templates-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .templates-modal-root {
    padding: 16px;
  }

  .templates-modal-card {
    width: min(100vw - 24px, 1180px);
    padding: 22px 18px;
  }

  .templates-modal-head h2 {
    font-size: 28px;
  }

  .templates-modal-actions {
    flex-direction: column-reverse;
  }

  .gallery-grid-styles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-grid-home {
    grid-template-columns: 1fr;
  }

  .showcase-toolbar {
    width: 100%;
    flex-wrap: wrap;
  }

  .showcase-pill-button {
    width: 100%;
  }

  .inspiration-masonry {
    grid-template-columns: 1fr;
  }

  .home-mobile-links-grid {
    grid-template-columns: 1fr;
  }

  .home-mobile-account-stats {
    grid-template-columns: 1fr;
  }

  .home-mobile-locale-wrap .locale-switcher-trigger {
    min-height: 54px;
    border-radius: 18px;
  }

  .reference-footer-inner {
    grid-template-columns: 1fr;
  }

  .reference-footer-legal {
    display: grid;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .templates-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .task-notification-dock {
    right: 16px;
    bottom: 18px;
  }

  .task-notification-caption {
    display: none;
  }

  .task-toast-shell {
    top: 12px;
    width: calc(100vw - 20px);
  }

  .task-toast-card {
    padding: 16px 16px 16px 18px;
  }

  .task-toast-actions {
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .home-header-inner {
    width: calc(100% - 16px);
    min-height: 70px;
  }

  .home-brand-mark {
    font-size: 34px;
  }

  .home-mobile-menu-button,
  .home-mobile-close-button,
  .home-mobile-head-spacer,
  .home-account-trigger-mobile {
    width: 42px;
    height: 42px;
  }

  .home-mobile-menu-button span,
  .home-mobile-close-button span {
    left: 10px;
    right: 10px;
  }

  .home-mobile-drawer-panel {
    width: calc(100vw - 12px);
    height: calc(100vh - 12px);
    margin: 6px auto;
    border-radius: 20px;
  }

  .home-mobile-drawer-head {
    padding: 12px 12px 10px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 10px;
  }

  .home-mobile-drawer-body {
    gap: 16px;
    padding: 14px 12px 22px;
  }

  .home-mobile-section,
  .home-mobile-account-card,
  .home-mobile-auth-card {
    padding: 14px;
    border-radius: 18px;
  }

  .hero-stage {
    min-height: 100svh;
  }

  .hero-stage-inner {
    width: calc(100% - 16px);
    min-height: 100svh;
  }

  .hero-stage h1 {
    font-size: clamp(26px, 9vw, 34px);
    line-height: 1.02;
  }

  .hero-composer {
    margin-top: clamp(142px, 21vh, 178px);
    gap: 14px;
  }

  .hero-composer-task-switch {
    width: min(calc(100% - 28px), 500px);
    padding: 6px;
    border-radius: 17px;
  }

  .hero-composer-task-button {
    min-height: 50px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero-stage .creator-panel.hero-panel {
    padding: 18px 14px 16px;
    border-radius: 24px;
  }

  .hero-stage .creator-panel.hero-panel textarea {
    height: 96px;
    min-height: 96px;
    padding: 14px 15px;
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-prompt-panel-head strong {
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-prompt-panel-head.is-single strong {
    font-size: 18px;
    line-height: 1.5;
  }

  .hero-composer-chip {
    width: auto;
    min-width: 0;
    min-height: 42px;
    padding: 0 14px;
  }

  .hero-composer-chip span:nth-child(2) {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .hero-composer-submit {
    width: min(316px, 100%);
    min-height: 52px;
    font-size: 15px;
    margin-top: 0;
    transform: none;
  }

  .hero-composer-panel[data-task-type='video'] .hero-composer-mode-row {
    gap: 8px;
    padding-right: 8px;
  }

  .hero-composer-panel[data-task-type='video'] .hero-composer-mode-button {
    font-size: 10px;
  }

  .hero-composer-panel[data-task-type='video'] .hero-composer-mode-info {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='1'] .hero-composer-stage-split {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
  }

  .hero-composer-panel[data-generation-mode='image_to_video'] .hero-reference-tile,
  .hero-composer-panel[data-generation-mode='video_edit'] .hero-reference-tile {
    min-height: 146px;
  }

  .hero-composer-panel[data-generation-mode='reference_to_video'] .hero-reference-grid-3 {
    gap: 6px;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='2'] .hero-reference-tile,
  .hero-composer-panel[data-generation-mode='reference_to_video'] .hero-reference-tile {
    min-height: 94px;
    padding: 7px 5px;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='2'] .hero-reference-slot-label,
  .hero-composer-panel[data-generation-mode='reference_to_video'] .hero-reference-slot-label {
    font-size: 8px;
    line-height: 1.1;
  }

  .hero-composer-panel[data-task-type='video'][data-reference-count='0'] .hero-composer-textarea {
    height: 170px;
    min-height: 170px;
  }

  .hero-popover-style {
    width: min(100vw - 12px, 560px);
    padding: 14px 10px 16px;
  }

  .hero-popover-style-head {
    gap: 12px;
    margin-bottom: 14px;
  }

  .hero-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .style-detail-shell {
    width: min(100% - 14px, 520px);
    padding-top: 96px;
  }

  .style-detail-copy h1 {
    font-size: 28px;
  }

  .style-detail-prompt-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .style-related-grid,
  .style-related-card-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid,
  .gallery-grid-styles,
  .templates-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-grid-templates .gallery-card {
    flex-basis: 176px;
  }

  .gallery-grid-styles-slider .gallery-card {
    flex-basis: 170px;
  }

  .gallery-card {
    border-radius: 10px;
  }

  .gallery-card-body {
    gap: 8px;
    padding: 12px 12px 10px;
  }

  .gallery-card-body strong {
    font-size: 14px;
    line-height: 1.3;
  }

  .gallery-card-body span {
    font-size: 12px;
    line-height: 1.45;
  }

  .gallery-card-footer {
    gap: 8px;
    padding: 0 12px 12px;
  }

  .gallery-card-footer-split {
    gap: 8px;
  }

  .gallery-card-cta {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .gallery-card-icon {
    width: 40px;
    min-width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .templates-card-meta {
    gap: 8px;
    font-size: 11px;
    flex-wrap: wrap;
  }

  .templates-card-meta strong {
    font-size: 12px;
  }

  .templates-card-tags {
    display: none;
  }
}

.pricing-paywall-root {
  position: fixed;
  inset: 0;
  z-index: 135;
}

.pricing-paywall-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}

.pricing-paywall-shell {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 22px 20px 38px;
}

.pricing-paywall-shell.theme-global {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(31, 178, 87, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(3, 3, 3, 0.98), rgba(7, 7, 7, 1));
}

.pricing-paywall-shell.theme-cn {
  background:
    radial-gradient(circle at top center, rgba(199, 165, 103, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(2, 2, 2, 0.98), rgba(8, 8, 8, 1));
}

.pricing-paywall-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(111, 115, 128, 0.86);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.pricing-paywall-content {
  width: min(1440px, calc(100% - 108px));
  margin: 0 auto;
}

.pricing-paywall-head {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 22px 0 20px;
}

.pricing-paywall-eyebrow {
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pricing-paywall-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.pricing-paywall-head p {
  margin: 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.6;
}

.pricing-paywall-billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(38, 38, 38, 0.94);
}

.pricing-paywall-billing-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.pricing-paywall-billing-toggle button.is-active {
  background: rgba(10, 10, 10, 0.92);
  color: #fff;
}

.pricing-paywall-toggle-badge {
  color: #ef3f38;
  font-size: 13px;
  font-weight: 800;
}

.pricing-paywall-notice {
  margin: 0 auto 16px;
  max-width: 820px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.pricing-paywall-notice.tone-soft {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

.pricing-paywall-notice.tone-error {
  border: 1px solid rgba(239, 63, 56, 0.24);
  background: rgba(239, 63, 56, 0.1);
  color: #ffd2ce;
}

.pricing-paywall-grid {
  display: grid;
  gap: 20px;
}

.pricing-paywall-grid.variant-cn {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-paywall-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: 560px;
  padding: 30px 32px 32px;
  border-radius: 24px;
  color: #fff;
}

.pricing-paywall-shell.theme-global .pricing-paywall-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.98), rgba(6, 6, 6, 0.98)),
    rgba(10, 10, 10, 0.98);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36);
}

.pricing-paywall-shell.theme-global .pricing-paywall-card.accent-featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, rgba(35, 7, 7, 0.96), rgba(3, 12, 6, 0.98)),
    rgba(12, 12, 12, 0.98);
}

.pricing-paywall-shell.theme-global .pricing-paywall-card.accent-featured::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: inherit;
  background: repeating-linear-gradient(125deg, #ef3f38 0 32px, #12b25d 32px 64px);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-paywall-shell.theme-cn .pricing-paywall-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.98), rgba(8, 8, 8, 0.98)),
    rgba(10, 10, 10, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.pricing-paywall-shell.theme-cn .pricing-paywall-card.accent-featured {
  border-color: rgba(198, 171, 112, 0.92);
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(198, 171, 112, 0.18);
}

.pricing-paywall-card-head {
  display: grid;
  gap: 10px;
}

.pricing-paywall-card-head h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 800;
}

.pricing-paywall-card-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 15px;
  line-height: 1.55;
}

.pricing-paywall-price-block {
  display: grid;
  gap: 8px;
}

.pricing-paywall-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.pricing-paywall-price-row strong {
  font-size: clamp(40px, 4.4vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.pricing-paywall-price-row span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.pricing-paywall-price-note {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.55;
}

.pricing-paywall-shell.theme-cn .pricing-paywall-card.accent-featured .pricing-paywall-price-note,
.pricing-paywall-shell.theme-cn .pricing-paywall-card.accent-featured .pricing-paywall-price-row span {
  color: rgba(225, 204, 154, 0.9);
}

.pricing-paywall-cta {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
}

.pricing-paywall-cta:hover:not(:disabled) {
  transform: translateY(-1px);
}

.pricing-paywall-cta:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pricing-paywall-shell.theme-global .pricing-paywall-cta {
  background: rgba(55, 55, 55, 0.88);
  color: #fff;
}

.pricing-paywall-shell.theme-global .pricing-paywall-card.accent-featured .pricing-paywall-cta {
  background: linear-gradient(90deg, #ec312b 0%, #1fb257 100%);
  box-shadow: 0 18px 40px rgba(31, 178, 87, 0.16);
}

.pricing-paywall-shell.theme-cn .pricing-paywall-cta {
  background: rgba(47, 47, 47, 0.96);
  color: #fff;
}

.pricing-paywall-shell.theme-cn .pricing-paywall-card.accent-featured .pricing-paywall-cta {
  background: #c4ab75;
  color: #fff;
  box-shadow: 0 18px 36px rgba(196, 171, 117, 0.18);
}

.pricing-paywall-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.pricing-paywall-feature-list li {
  position: relative;
  padding-left: 34px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.55;
}

.pricing-paywall-feature-list li::before {
  content: '✓';
  position: absolute;
  top: 2px;
  left: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.pricing-paywall-shell.theme-cn .pricing-paywall-feature-list li::before {
  color: #c8ab70;
}

.pricing-paywall-shell.theme-global .pricing-paywall-card.accent-default .pricing-paywall-feature-list li::before {
  color: rgba(225, 191, 112, 0.95);
}

.pricing-paywall-footnote {
  margin-top: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  line-height: 1.7;
}

.auth-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    radial-gradient(circle at top left, rgba(29, 116, 106, 0.18), transparent 28%),
    radial-gradient(circle at right center, rgba(224, 188, 112, 0.16), transparent 24%),
    rgba(4, 8, 6, 0.7);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.auth-dialog-card {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100vw - 32px));
  padding: 42px 42px 30px;
  border-radius: 34px;
  border: 1px solid rgba(209, 214, 210, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(251, 248, 243, 0.985));
  box-shadow:
    0 36px 120px rgba(0, 0, 0, 0.24),
    0 12px 34px rgba(87, 61, 28, 0.1);
}

.auth-dialog-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(31, 43, 35, 0.44);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.auth-dialog-close:hover {
  background: rgba(31, 43, 35, 0.06);
  color: rgba(31, 43, 35, 0.74);
}

.auth-dialog-hero {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 8px 44px 0;
  text-align: center;
}

.auth-dialog-hero h2 {
  font-size: clamp(34px, 4.8vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.auth-dialog-hero p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 420px;
}

.auth-dialog-status {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.auth-dialog-status.tone-ready {
  background: rgba(107, 124, 95, 0.12);
  color: #4d5d36;
}

.auth-dialog-status.tone-loading,
.auth-dialog-status.tone-missing {
  background: rgba(31, 43, 35, 0.06);
  color: var(--muted);
}

.auth-dialog-status.tone-error {
  background: rgba(199, 102, 66, 0.12);
  color: var(--accent-deep);
}

.auth-dialog-body {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.auth-dialog-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 43, 35, 0.14), transparent);
}

.auth-dialog-section-title {
  color: rgba(31, 43, 35, 0.68);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.auth-dialog-google-slot {
  padding: 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(31, 43, 35, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 246, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-dialog-google-button {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.auth-dialog-helper {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
}

.auth-dialog-secured {
  color: rgba(90, 104, 94, 0.86);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.auth-dialog-logout {
  justify-self: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(31, 43, 35, 0.12);
  background: rgba(31, 43, 35, 0.04);
  color: var(--ink);
  cursor: pointer;
}

.model-info-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
}

.model-info-dialog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 6, 10, 0.68);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.model-info-dialog-card {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 56px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(96, 111, 144, 0.42);
  background: #17181b;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.42);
}

.model-info-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgba(70, 84, 109, 0.42);
  color: rgba(255, 255, 255, 0.9);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.model-info-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 36px 22px;
  border-bottom: 1px solid rgba(96, 111, 144, 0.3);
}

.model-info-dialog-head h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.model-info-dialog-head p {
  margin: 8px 0 0;
  color: rgba(216, 220, 228, 0.74);
  font-size: 13px;
  line-height: 1.6;
}

.model-info-table-shell {
  padding: 18px 36px 10px;
  overflow: auto;
}

.model-info-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: collapse;
}

.model-info-table th,
.model-info-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(82, 95, 123, 0.28);
  text-align: left;
  vertical-align: top;
}

.model-info-table th {
  color: rgba(190, 198, 214, 0.78);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.model-info-table td {
  color: rgba(244, 247, 252, 0.92);
  font-size: 14px;
  line-height: 1.6;
}

.model-info-name-cell {
  display: grid;
  gap: 6px;
}

.model-info-name-cell strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.model-info-access-note {
  color: rgba(242, 198, 128, 0.86);
  font-size: 12px;
  line-height: 1.6;
}

.model-info-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.model-info-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  background: rgba(77, 82, 90, 0.56);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.model-info-rating-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.model-info-rating {
  position: relative;
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
}

.model-info-rating-base {
  color: rgba(255, 255, 255, 0.22);
}

.model-info-rating-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--model-info-rating-width, 0%);
  overflow: hidden;
  color: #ffd33d;
}

.model-info-rating-number {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.model-info-dialog-foot {
  display: grid;
  gap: 8px;
  padding: 12px 36px 22px;
  color: rgba(188, 196, 210, 0.68);
  font-size: 12px;
  line-height: 1.6;
}

.model-info-dialog-foot p {
  margin: 0;
}

.model-info-cards {
  display: none;
}

.model-info-empty {
  padding: 16px 4px 4px;
  color: rgba(188, 196, 210, 0.68);
  font-size: 13px;
  line-height: 1.6;
}

.model-info-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(82, 95, 123, 0.28);
  background: rgba(26, 29, 34, 0.94);
}

.model-info-card-head {
  display: grid;
  gap: 10px;
}

.model-info-card-head strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.model-info-card-section {
  display: grid;
  gap: 8px;
}

.model-info-card-section span {
  color: rgba(190, 198, 214, 0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.model-info-card-section p {
  margin: 0;
  color: rgba(244, 247, 252, 0.92);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .style-detail-shell {
    width: min(100% - 20px, 640px);
    padding: 102px 0 52px;
  }

  .style-detail-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 26px;
  }

  .style-detail-copy h1 {
    font-size: 34px;
  }

  .style-detail-id,
  .style-detail-related-head p,
  .style-detail-empty p {
    font-size: 16px;
  }

  .style-detail-prompt-box {
    padding: 16px;
    font-size: 16px;
  }

  .style-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .showcase-detail-shell {
    width: min(100% - 20px, 640px);
    padding: 96px 0 44px;
  }

  .showcase-detail-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 20px;
  }

  .showcase-detail-title-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 12px;
  }

  .showcase-detail-copy h1 {
    font-size: 24px;
  }

  .showcase-detail-users {
    padding-top: 10px;
    font-size: 14px;
  }

  .showcase-detail-save {
    width: 44px;
    height: 44px;
  }

  .showcase-detail-submit {
    width: 100%;
  }

  .showcase-detail-fact {
    gap: 10px;
  }

  .showcase-detail-fact span,
  .showcase-detail-fact strong {
    font-size: 14px;
  }

  .showcase-detail-style-card {
    width: calc(50% - 7px);
    min-width: 0;
  }

  .showcase-detail-block-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .showcase-detail-textbox {
    padding: 16px;
    font-size: 15px;
  }

  .showcase-related-section {
    margin-top: 44px;
  }

  .showcase-related-head h2 {
    font-size: 28px;
  }

  .showcase-related-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .pricing-paywall-content {
    width: min(100%, calc(100% - 16px));
  }

  .pricing-paywall-grid.variant-global,
  .pricing-paywall-grid.variant-cn {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-paywall-card {
    min-height: auto;
  }

  .auth-dialog-root {
    padding: 16px;
  }

  .auth-dialog-card {
    width: min(100vw - 16px, 620px);
    padding: 28px 18px 22px;
    border-radius: 24px;
  }

  .auth-dialog-close {
    top: 12px;
    right: 12px;
  }

  .auth-dialog-hero {
    padding: 8px 36px 0;
  }

  .auth-dialog-hero p {
    font-size: 15px;
  }

  .auth-dialog-google-slot {
    padding: 14px;
  }

  .auth-dialog-helper {
    font-size: 14px;
  }

  .model-info-dialog-root {
    padding: 12px;
  }

  .model-info-dialog-card {
    width: min(100vw - 24px, 680px);
    max-height: calc(100vh - 24px);
  }

  .model-info-dialog-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .model-info-dialog-head {
    padding: 20px 16px 14px;
    padding-right: 56px;
  }

  .model-info-dialog-head h2 {
    font-size: 20px;
  }

  .model-info-dialog-head p {
    font-size: 13px;
  }

  .model-info-table-shell {
    display: none;
  }

  .model-info-cards {
    display: grid;
    gap: 12px;
    padding: 16px;
  }

  .model-info-dialog-foot {
    padding: 4px 16px 18px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .pricing-paywall-shell {
    padding: 18px 12px 28px;
  }

  .pricing-paywall-close {
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    font-size: 28px;
  }

  .pricing-paywall-content {
    width: 100%;
  }

  .pricing-paywall-head {
    gap: 14px;
    padding: 38px 0 22px;
  }

  .pricing-paywall-head h2 {
    font-size: 42px;
  }

  .pricing-paywall-head p {
    font-size: 15px;
  }

  .pricing-paywall-billing-toggle {
    width: 100%;
    justify-content: stretch;
  }

  .pricing-paywall-billing-toggle button {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }

  .pricing-paywall-card {
    gap: 22px;
    padding: 28px 20px 30px;
    border-radius: 22px;
  }

  .pricing-paywall-card-head h3 {
    font-size: 24px;
  }

  .pricing-paywall-card-head p,
  .pricing-paywall-price-note,
  .pricing-paywall-feature-list li {
    font-size: 15px;
  }

  .pricing-paywall-price-row strong {
    font-size: 46px;
  }
}

@media (max-width: 820px) {
  .template-submit-modal-root {
    place-items: start center;
    padding: 10px 10px 92px;
    overflow-y: auto;
  }

  .template-submit-modal-card {
    width: min(calc(100vw - 12px), 720px);
    max-height: none;
    min-height: calc(100svh - 20px);
    padding: 16px 14px 104px;
    border-radius: 24px;
  }

  .template-submit-modal-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .template-submit-modal-head {
    align-items: flex-start;
    gap: 12px;
    padding-right: 54px;
    margin-bottom: 10px;
  }

  .template-submit-modal-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
  }

  .template-submit-modal-head h2 {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.08;
  }

  .template-submit-modal-head p {
    font-size: 14px;
    line-height: 1.5;
  }

  .template-submit-modal-prompt {
    margin-bottom: 12px;
  }

  .template-submit-modal-prompt summary {
    padding: 12px 14px;
    font-size: 14px;
  }

  .template-submit-modal-prompt p {
    max-height: 220px;
    overflow-y: auto;
    font-size: 13px;
  }

  .template-submit-modal-card .hero-composer {
    width: 100%;
    margin-top: 0;
    padding-bottom: 0;
    gap: 10px;
  }

  .template-submit-modal-card .hero-composer-panel {
    width: 100%;
    margin: 0;
    padding: 18px 16px 104px;
    border-radius: 22px;
  }

  .template-submit-modal-card .hero-composer-stage {
    min-height: 0;
    gap: 14px;
  }

  .template-submit-modal-card .hero-composer-stage-split,
  .template-submit-modal-card .hero-composer-panel[data-task-type='video'][data-reference-count='1'] .hero-composer-stage-split {
    grid-template-columns: minmax(108px, 128px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .template-submit-modal-card .hero-reference-grid-1 {
    grid-template-columns: 1fr;
  }

  .template-submit-modal-card .hero-reference-grid-2,
  .template-submit-modal-card .hero-reference-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .template-submit-modal-card .hero-reference-slot-label {
    display: none;
  }

  .template-submit-modal-card .hero-reference-tile {
    min-height: 128px;
    padding: 10px;
    border-radius: 18px;
    gap: 8px;
  }

  .template-submit-modal-card .hero-reference-tile img {
    min-height: 128px;
  }

  .template-submit-modal-card .hero-reference-tile-icon {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }

  .template-submit-modal-card .hero-reference-tile-meta {
    font-size: 11px;
    line-height: 1.4;
  }

  .template-submit-modal-card .hero-reference-tile.is-upload-card strong,
  .template-submit-modal-card .hero-reference-tile strong {
    font-size: 13px;
    line-height: 1.35;
  }

  .template-submit-modal-card .hero-prompt-panel {
    padding-top: 0;
    gap: 8px;
  }

  .template-submit-modal-card .hero-prompt-panel-head strong,
  .template-submit-modal-card .hero-prompt-panel-head.is-single strong {
    font-size: 16px;
    line-height: 1.45;
  }

  .template-submit-modal-card .hero-composer-textarea {
    height: clamp(160px, 30vh, 220px);
    min-height: 160px;
    padding-top: 0;
    font-size: 18px;
    line-height: 1.55;
  }

  .template-submit-modal-card .hero-composer-footer {
    gap: 12px;
    margin-top: 14px;
  }

  .template-submit-modal-card .hero-composer-chip-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-right: 0;
  }

  .template-submit-modal-card .hero-composer-chip {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 50px;
    padding: 0 14px;
    justify-content: flex-start;
  }

  .template-submit-modal-card .hero-composer-chip-style,
  .template-submit-modal-card .hero-composer-chip-model {
    grid-column: span 2;
  }

  .template-submit-modal-card .hero-composer-chip-ratio,
  .template-submit-modal-card .hero-composer-chip-quality,
  .template-submit-modal-card .hero-composer-chip-count,
  .template-submit-modal-card .hero-composer-chip-icon {
    grid-column: span 1;
  }

  .template-submit-modal-card .hero-composer-chip-icon {
    padding: 0;
    justify-content: center;
  }

  .template-submit-modal-card .hero-composer-feedback {
    margin-right: 0;
    margin-top: 12px;
  }

  .template-submit-modal-card .hero-composer-submit {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(calc(100vw - 56px), 320px);
    min-width: 0;
    min-height: 56px;
    margin: 0;
    z-index: 4;
  }

  .hero-popover-more {
    width: min(340px, calc(100vw - 24px));
  }
}

@media (max-width: 560px) {
  .template-submit-modal-root {
    padding: 8px 8px 88px;
  }

  .template-submit-modal-card {
    width: calc(100vw - 8px);
    min-height: calc(100svh - 16px);
    padding: 14px 10px 96px;
    border-radius: 20px;
  }

  .template-submit-modal-head {
    gap: 10px;
    padding-right: 48px;
  }

  .template-submit-modal-thumb {
    width: 68px;
    height: 68px;
  }

  .template-submit-modal-head h2 {
    font-size: 20px;
  }

  .template-submit-modal-head p {
    font-size: 13px;
  }

  .template-submit-modal-card .hero-composer-panel {
    padding: 16px 14px 96px;
    border-radius: 20px;
  }

  .template-submit-modal-card .hero-composer-stage-split,
  .template-submit-modal-card .hero-composer-panel[data-task-type='video'][data-reference-count='1'] .hero-composer-stage-split {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .template-submit-modal-card .hero-reference-tile,
  .template-submit-modal-card .hero-reference-tile img {
    min-height: 118px;
  }

  .template-submit-modal-card .hero-composer-textarea {
    height: clamp(148px, 28vh, 200px);
    min-height: 148px;
    font-size: 16px;
  }

  .template-submit-modal-card .hero-composer-chip {
    min-height: 48px;
    padding: 0 12px;
  }

  .template-submit-modal-card .hero-composer-chip span,
  .template-submit-modal-card .hero-composer-chip select {
    font-size: 13px;
  }

  .template-submit-modal-card .hero-composer-submit {
    width: min(calc(100vw - 44px), 312px);
    min-height: 54px;
    font-size: 15px;
  }

  .hero-popover-more {
    width: min(320px, calc(100vw - 18px));
  }
}

@media (max-width: 820px) {
  .template-submit-modal-root {
    place-items: center;
    padding: 18px 0 92px;
    overflow-y: auto;
  }

  .template-submit-modal-card {
    width: min(calc(100vw - 54px), 560px);
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .template-submit-modal-head,
  .template-submit-modal-prompt {
    display: none;
  }

  .template-submit-modal-close {
    top: -20px;
    right: -18px;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    font-size: 36px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  }

  .template-submit-modal-card .hero-composer {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .template-submit-modal-card .hero-composer-panel {
    width: 100%;
    max-height: calc(100svh - 154px);
    overflow-y: auto;
    margin: 0;
    padding: 22px 18px 24px;
    border-radius: 12px;
    overscroll-behavior: contain;
  }

  .template-submit-modal-card .hero-composer-stage {
    min-height: 0;
    gap: 14px;
  }

  .template-submit-modal-card .hero-composer-stage-split,
  .template-submit-modal-card .hero-composer-panel[data-task-type='video'][data-reference-count='1'] .hero-composer-stage-split {
    grid-template-columns: minmax(96px, 0.38fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  .template-submit-modal-card .hero-reference-tile,
  .template-submit-modal-card .hero-reference-tile img {
    min-height: 128px;
  }

  .template-submit-modal-card .hero-reference-tile {
    padding: 10px;
    border-radius: 8px;
  }

  .template-submit-modal-card .hero-reference-tile-icon {
    width: 34px;
    height: 34px;
    font-size: 28px;
  }

  .template-submit-modal-card .hero-reference-tile-meta,
  .template-submit-modal-card .hero-reference-slot-label {
    display: none;
  }

  .template-submit-modal-card .hero-composer-textarea {
    height: 144px;
    min-height: 144px;
    font-size: 17px;
    line-height: 1.5;
  }

  .template-submit-modal-card .hero-prompt-panel-head {
    display: none;
  }

  .template-submit-modal-card .hero-composer-footer {
    gap: 12px;
    margin-top: 18px;
  }

  .template-submit-modal-card .hero-composer-chip-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-right: 0;
  }

  .template-submit-modal-card .hero-composer-chip,
  .template-submit-modal-card .hero-composer-chip-style,
  .template-submit-modal-card .hero-composer-chip-model,
  .template-submit-modal-card .hero-composer-chip-ratio,
  .template-submit-modal-card .hero-composer-chip-quality,
  .template-submit-modal-card .hero-composer-chip-count,
  .template-submit-modal-card .hero-composer-chip-icon {
    grid-column: span 1;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 46px;
    padding: 0 12px;
  }

  .template-submit-modal-card .hero-composer-chip-icon {
    justify-content: center;
    padding: 0;
  }

  .template-submit-modal-card .hero-composer-chip span,
  .template-submit-modal-card .hero-composer-chip select {
    font-size: 13px;
  }

  .template-submit-modal-card .hero-composer-chip > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .template-submit-modal-card .hero-composer-chip-count > .hero-chip-count-label {
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .template-submit-modal-card .hero-composer-feedback {
    margin-right: 0;
  }

  .template-submit-modal-card .hero-composer-submit {
    position: fixed;
    left: auto;
    right: max(28px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    transform: none;
    width: min(calc(100vw - 92px), 320px);
    min-width: 0;
    min-height: 54px;
    margin: 0;
    z-index: 4;
  }
}

@media (max-width: 390px) {
  .template-submit-modal-root {
    padding-bottom: 84px;
  }

  .template-submit-modal-card {
    width: min(calc(100vw - 44px), 540px);
  }

  .template-submit-modal-close {
    top: -18px;
    right: -16px;
    width: 50px;
    height: 50px;
    font-size: 34px;
  }

  .template-submit-modal-card .hero-composer-panel {
    max-height: calc(100svh - 140px);
    padding: 20px 16px 22px;
  }

  .template-submit-modal-card .hero-composer-stage-split,
  .template-submit-modal-card .hero-composer-panel[data-task-type='video'][data-reference-count='1'] .hero-composer-stage-split {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .template-submit-modal-card .hero-reference-tile,
  .template-submit-modal-card .hero-reference-tile img {
    min-height: 118px;
  }

  .template-submit-modal-card .hero-composer-textarea {
    height: 132px;
    min-height: 132px;
    font-size: 16px;
  }

  .template-submit-modal-card .hero-composer-chip {
    min-height: 44px;
  }

  .template-submit-modal-card .hero-composer-submit {
    right: 24px;
    width: min(calc(100vw - 84px), 300px);
    min-height: 52px;
  }
}

.pricing-page-shell {
  display: grid;
  gap: 20px;
}

.pricing-page-hero,
.pricing-page-note {
  padding: 28px;
}

.pricing-page-hero h1 {
  margin: 10px 0 12px;
  font-size: 2rem;
}

.pricing-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.pricing-page-status {
  display: block;
  margin-top: 12px;
}

.pricing-page-summary-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-page-summary-grid .panel {
  min-height: 100%;
}

@media (max-width: 900px) {
  .models-catalog-grid,
  .model-page-summary-grid,
  .model-page-link-grid,
  .pricing-page-summary-grid {
    grid-template-columns: 1fr;
  }

  .model-page-detail-grid {
    grid-template-columns: 1fr;
  }

  .models-catalog-page,
  .model-page-shell {
    width: min(100% - 20px, 1760px);
    margin: 96px auto 40px;
  }

  .pricing-page-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Scenario-first homepage design preview */
.scenario-preview {
  --scenario-ink: #14221f;
  --scenario-muted: #63706c;
  --scenario-lime: #d9ff63;
  --scenario-sand: #f6f3eb;
  --scenario-line: rgba(20, 34, 31, 0.13);
  width: min(100% - 48px, 1440px);
  margin: 116px auto 72px;
  color: var(--scenario-ink);
}

.scenario-preview button {
  font: inherit;
}

.scenario-preview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(440px, 0.88fr);
  overflow: hidden;
  border: 1px solid var(--scenario-line);
  border-radius: 32px;
  background: var(--scenario-sand);
  box-shadow: 0 24px 70px rgba(15, 36, 28, 0.1);
}

.scenario-preview-intro {
  min-height: 520px;
  padding: clamp(32px, 5vw, 76px);
  background:
    radial-gradient(circle at 78% 12%, rgba(217, 255, 99, 0.84), transparent 26%),
    radial-gradient(circle at 14% 88%, rgba(147, 203, 184, 0.34), transparent 31%),
    #eef0e9;
}

.scenario-preview-eyebrow,
.scenario-preview-guide-head,
.scenario-preview-brief-topline,
.scenario-preview-proof-grid span,
.scenario-preview-prompt > span,
.scenario-preview-settings span,
.scenario-preview-art-caption span {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.scenario-preview-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(20, 34, 31, 0.2);
  border-radius: 999px;
  color: #315149;
}

.scenario-preview-intro h1 {
  max-width: 690px;
  margin: 25px 0 18px;
  font-size: clamp(48px, 5.4vw, 88px);
  letter-spacing: -0.075em;
  line-height: 0.95;
}

.scenario-preview-intro p {
  max-width: 555px;
  margin: 0;
  color: var(--scenario-muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
}

.scenario-preview-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 76px;
  color: #3c514a;
  font-size: 13px;
  font-weight: 700;
}

.scenario-preview-steps span {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.scenario-preview-steps i {
  color: #7c918a;
  font-style: normal;
}

.scenario-preview-guide {
  padding: 22px;
  background: #17342d;
}

.scenario-preview-guide-head {
  display: flex;
  justify-content: space-between;
  padding: 2px 8px 17px;
  color: rgba(255, 255, 255, 0.74);
}

.scenario-preview-guide-head b {
  color: var(--scenario-lime);
  font-size: 12px;
}

.scenario-preview-scene-list {
  display: grid;
  gap: 8px;
}

.scenario-preview-scene {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 102px;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: white;
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.scenario-preview-scene:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.scenario-preview-scene.is-active {
  border-color: rgba(217, 255, 99, 0.82);
  background: rgba(217, 255, 99, 0.13);
}

.scenario-preview-scene-index {
  align-self: start;
  padding-top: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 700;
}

.scenario-preview-scene.is-active .scenario-preview-scene-index,
.scenario-preview-scene.is-active .scenario-preview-scene-icon {
  color: var(--scenario-lime);
}

.scenario-preview-scene-copy {
  display: grid;
  gap: 5px;
}

.scenario-preview-scene-copy small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.scenario-preview-scene-copy strong {
  font-size: 17px;
  line-height: 1.22;
}

.scenario-preview-scene-icon {
  color: rgba(255, 255, 255, 0.63);
  font-size: 24px;
  text-align: center;
}

.scenario-preview-workflow {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: 0;
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--scenario-line);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 36, 28, 0.08);
}

.scenario-preview-art {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #b5c7be;
}

.scenario-preview-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(11, 30, 24, 0.72));
  content: '';
  pointer-events: none;
}

.scenario-preview-art img {
  width: 100%;
  height: 100%;
  min-height: 720px;
  object-fit: cover;
  transition: transform 420ms ease;
}

.scenario-preview-workflow:hover .scenario-preview-art img {
  transform: scale(1.025);
}

.scenario-preview-art-caption {
  position: absolute;
  z-index: 1;
  right: 36px;
  bottom: 34px;
  left: 36px;
  display: grid;
  gap: 8px;
  color: white;
}

.scenario-preview-art-caption span {
  color: rgba(255, 255, 255, 0.72);
}

.scenario-preview-art-caption strong {
  max-width: 500px;
  font-size: clamp(28px, 3vw, 45px);
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.scenario-preview-brief {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 58px);
}

.scenario-preview-brief-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #6b756e;
}

.scenario-preview-model-chip {
  max-width: 55%;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: 999px;
  background: #eaf1e6;
  color: #2c4a42;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: normal;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.scenario-preview-brief h2 {
  max-width: 630px;
  margin: 26px 0 12px;
  font-size: clamp(34px, 3.5vw, 58px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.scenario-preview-brief > p {
  max-width: 570px;
  margin: 0;
  color: var(--scenario-muted);
  font-size: 17px;
  line-height: 1.55;
}

.scenario-preview-proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 30px;
}

.scenario-preview-proof-grid > div {
  display: grid;
  gap: 8px;
  min-height: 102px;
  padding: 17px;
  border: 1px solid var(--scenario-line);
  border-radius: 18px;
  background: #fafaf7;
}

.scenario-preview-proof-grid span,
.scenario-preview-prompt > span,
.scenario-preview-settings span {
  color: #7d8984;
}

.scenario-preview-proof-grid strong,
.scenario-preview-settings strong {
  font-size: 15px;
  line-height: 1.36;
}

.scenario-preview-prompt {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #edf6dc;
}

.scenario-preview-prompt p {
  margin: 0;
  color: #35483f;
  font-size: 15px;
  line-height: 1.55;
}

.scenario-preview-settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #344941;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}

.scenario-preview-settings-toggle i {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #e9eee9;
  font-size: 19px;
  font-style: normal;
  font-weight: 400;
  line-height: 23px;
  text-align: center;
}

.scenario-preview-settings {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.85fr;
  gap: 9px;
  margin-top: 14px;
}

.scenario-preview-settings > div {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--scenario-line);
  border-radius: 16px;
  background: #fff;
}

.scenario-preview-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: auto;
  padding: 17px 21px;
  border: 1px solid #14221f;
  border-radius: 16px;
  background: #14221f;
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 760;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.scenario-preview-cta:hover {
  background: var(--scenario-lime);
  color: #14221f;
  transform: translateY(-2px);
}

.scenario-preview-note,
.scenario-preview-ready {
  margin: 12px 0 0 !important;
  font-size: 12px !important;
}

.scenario-preview-ready {
  color: #2a6759 !important;
  font-weight: 700;
}

@media (max-width: 980px) {
  .scenario-preview {
    width: min(100% - 28px, 760px);
    margin-top: 90px;
  }

  .scenario-preview-hero,
  .scenario-preview-workflow {
    grid-template-columns: 1fr;
  }

  .scenario-preview-intro {
    min-height: auto;
  }

  .scenario-preview-steps {
    margin-top: 42px;
  }

  .scenario-preview-guide {
    padding: 16px;
  }

  .scenario-preview-scene-list {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-preview-art,
  .scenario-preview-art img {
    min-height: 480px;
  }
}

@media (max-width: 620px) {
  .scenario-preview {
    width: min(100% - 18px, 540px);
    margin-top: 74px;
    margin-bottom: 36px;
  }

  .scenario-preview-hero,
  .scenario-preview-workflow {
    border-radius: 22px;
  }

  .scenario-preview-intro,
  .scenario-preview-brief {
    padding: 25px 20px;
  }

  .scenario-preview-intro h1 {
    margin-top: 19px;
    font-size: clamp(41px, 12vw, 58px);
  }

  .scenario-preview-intro p {
    font-size: 16px;
  }

  .scenario-preview-steps {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 32px;
  }

  .scenario-preview-steps i {
    display: none;
  }

  .scenario-preview-steps span:last-child {
    grid-column: span 2;
  }

  .scenario-preview-guide-head {
    padding: 3px 4px 13px;
  }

  .scenario-preview-scene-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .scenario-preview-scene {
    min-height: 78px;
    padding: 11px;
  }

  .scenario-preview-scene-copy strong {
    font-size: 15px;
  }

  .scenario-preview-art,
  .scenario-preview-art img {
    min-height: 380px;
  }

  .scenario-preview-art-caption {
    right: 22px;
    bottom: 22px;
    left: 22px;
  }

  .scenario-preview-art-caption strong {
    font-size: 31px;
  }

  .scenario-preview-brief h2 {
    margin-top: 19px;
    font-size: 39px;
  }

  .scenario-preview-proof-grid,
  .scenario-preview-settings {
    grid-template-columns: 1fr;
  }

  .scenario-preview-proof-grid > div,
  .scenario-preview-settings > div {
    min-height: auto;
  }

  .scenario-preview-cta {
    margin-top: 30px;
  }
}

/* Scenario-first live studio */
.scenario-studio {
  position: relative;
  width: min(100% - 48px, 1440px);
  margin: 0 auto 76px;
  overflow: hidden;
  border: 1px solid rgba(217, 255, 99, 0.42);
  border-radius: 32px;
  background: #102a24;
  color: #fff;
  box-shadow: 0 24px 70px rgba(15, 36, 28, 0.16);
}

.scenario-studio-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 18%, rgba(217, 255, 99, 0.24), transparent 26%),
    radial-gradient(circle at 85% 82%, rgba(83, 168, 143, 0.26), transparent 30%);
}

.scenario-studio-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
}

.scenario-studio-copy {
  display: grid;
  align-content: center;
  gap: 17px;
}

.scenario-studio-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(217, 255, 99, 0.46);
  border-radius: 999px;
  color: #d9ff63;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.scenario-studio-copy h2 {
  margin: 0;
  max-width: 480px;
  color: #fff;
  font-size: clamp(38px, 4vw, 61px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.scenario-studio-copy > p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.62;
}

.scenario-studio-copy ul {
  display: grid;
  gap: 9px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.scenario-studio-copy li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 700;
}

.scenario-studio-copy li::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d9ff63;
  color: #163129;
  content: '✓';
  font-size: 12px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

.scenario-studio .hero-composer-panel {
  min-width: 0;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
}

@media (max-width: 980px) {
  .scenario-studio {
    width: min(100% - 28px, 760px);
    margin-bottom: 56px;
  }

  .scenario-studio-inner {
    grid-template-columns: 1fr;
  }

  .scenario-studio-copy > p,
  .scenario-studio-copy h2 {
    max-width: 620px;
  }
}

@media (max-width: 620px) {
  .scenario-studio {
    width: min(100% - 18px, 540px);
    margin-bottom: 38px;
    border-radius: 22px;
  }

  .scenario-studio-inner {
    gap: 26px;
    padding: 26px 20px 20px;
  }

  .scenario-studio-copy h2 {
    font-size: 40px;
  }
}

/* Curated discovery workspace */
.discover-page {
  min-height: 100vh;
  background: #070807;
  color: #f4f5f1;
}

.discover-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.discover-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 112px 22px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: #101110;
}

.discover-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 10px 32px;
  color: #f4f5f1;
  font-size: 20px;
  font-weight: 820;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.discover-brand span:first-child {
  color: #d9ff63;
  font-size: 22px;
}

.discover-sidebar-nav,
.discover-sidebar-group {
  display: grid;
  gap: 5px;
}

.discover-sidebar-nav {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.discover-sidebar-nav a,
.discover-sidebar-nav button,
.discover-sidebar-group button {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.discover-sidebar-nav a:hover,
.discover-sidebar-nav button:hover,
.discover-sidebar-group button:hover,
.discover-sidebar-nav button.is-active,
.discover-sidebar-group button.is-active {
  border-color: rgba(217, 255, 99, 0.28);
  background: rgba(217, 255, 99, 0.1);
  color: #f4f5f1;
}

.discover-sidebar-group {
  margin-top: 24px;
}

.discover-sidebar-group > span {
  padding: 0 12px 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discover-sidebar-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  margin: auto 0 0;
  padding: 17px;
  border: 1px solid rgba(217, 255, 99, 0.3);
  border-radius: 17px;
  background: linear-gradient(140deg, rgba(217, 255, 99, 0.16), rgba(217, 255, 99, 0.03));
}

.discover-sidebar-note span {
  color: #d9ff63;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.discover-sidebar-note strong {
  color: #fff;
  font-size: 17px;
}

.discover-sidebar-note p {
  grid-column: span 2;
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.discover-content {
  min-width: 0;
  padding: 112px clamp(24px, 4vw, 70px) 76px;
}

.discover-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 35px;
}

.discover-hero > div > span,
.discover-drawer-eyebrow {
  color: #d9ff63;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.discover-hero h1 {
  max-width: 860px;
  margin: 12px 0 13px;
  color: #fff;
  font-size: clamp(44px, 5vw, 74px);
  letter-spacing: -0.072em;
  line-height: 0.94;
}

.discover-hero p {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 1.58;
}

.discover-random-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: #161815;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.discover-random-button:hover {
  background: #d9ff63;
  color: #15241e;
  transform: translateY(-2px);
}

.discover-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  background: #111310;
}

.discover-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.065);
  color: rgba(255, 255, 255, 0.45);
}

.discover-search span {
  font-size: 22px;
  line-height: 1;
}

.discover-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
}

.discover-search input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.discover-toolbar-selects {
  display: flex;
  gap: 8px;
}

.discover-toolbar-selects select {
  min-height: 46px;
  max-width: 180px;
  padding: 0 31px 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  outline: 0;
  background: #1b1d1a;
  color: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}

.discover-mobile-categories {
  display: none;
}

.discover-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 26px 2px 17px;
  color: rgba(255, 255, 255, 0.49);
  font-size: 13px;
  font-weight: 650;
}

.discover-result-head strong {
  color: #d9ff63;
  font-size: 12px;
}

.discover-masonry {
  column-count: 4;
  column-gap: 16px;
}

.discover-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #121412;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
}

.discover-card-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #202220;
  color: #fff;
  cursor: pointer;
}

.discover-card-media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 260ms ease, filter 260ms ease;
}

.discover-card-media:hover img {
  filter: brightness(0.76);
  transform: scale(1.035);
}

.discover-card-badge,
.discover-card-hover {
  position: absolute;
  z-index: 1;
  opacity: 0;
  transition: opacity 180ms ease;
}

.discover-card-badge {
  top: 10px;
  left: 10px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(5, 6, 5, 0.62);
  color: rgba(255, 255, 255, 0.9);
  font-size: 10px;
  font-weight: 760;
}

.discover-card-hover {
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #d9ff63;
  color: #14221f;
  font-size: 11px;
  font-weight: 820;
}

.discover-card-media:hover .discover-card-badge,
.discover-card-media:hover .discover-card-hover {
  opacity: 1;
}

.discover-card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 13px 14px;
}

.discover-card-meta > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.discover-card-meta strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discover-card-meta span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 650;
}

.discover-favorite {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  cursor: pointer;
}

.discover-favorite:hover,
.discover-favorite.is-saved {
  border-color: rgba(217, 255, 99, 0.55);
  background: rgba(217, 255, 99, 0.12);
  color: #d9ff63;
}

.discover-empty {
  padding: 70px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.discover-drawer-root {
  position: fixed;
  z-index: 120;
  inset: 0;
}

.discover-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.68);
  cursor: pointer;
  animation: discoverDrawerBackdropIn 180ms ease-out both;
}

.discover-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(340px, 1.1fr);
  width: min(100vw - 24px, 1000px);
  height: 100%;
  overflow: auto;
  background: #f5f5ef;
  color: #14221f;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.38);
  animation: discoverDrawerIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.discover-drawer-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(20, 34, 31, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #14221f;
  font-size: 25px;
  cursor: pointer;
}

.discover-drawer-image {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.discover-drawer-content {
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 5vw, 70px);
}

.discover-drawer-eyebrow {
  color: #437158;
}

.discover-drawer h2 {
  margin: 16px 0 25px;
  font-size: clamp(40px, 4vw, 64px);
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.discover-drawer-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.discover-drawer-facts span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(20, 34, 31, 0.12);
  border-radius: 13px;
  color: #718078;
  font-size: 11px;
  font-weight: 760;
}

.discover-drawer-facts strong {
  overflow: hidden;
  color: #1c2e28;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discover-drawer-prompt {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  padding: 17px;
  border-radius: 16px;
  background: #eaf5d9;
}

.discover-drawer-prompt span {
  color: #55715e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.discover-drawer-prompt p {
  color: #274138;
  font-size: 14px;
  line-height: 1.6;
}

.discover-drawer-note {
  margin: 13px 0 0;
  color: #68766f;
  font-size: 12px;
  line-height: 1.55;
}

.discover-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: auto;
  padding: 17px 19px;
  border: 1px solid #14221f;
  border-radius: 15px;
  background: #14221f;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 780;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.discover-drawer-cta:hover {
  background: #d9ff63;
  color: #14221f;
  transform: translateY(-2px);
}

.discover-drawer-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 16px;
  color: #315b48;
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

@keyframes discoverDrawerBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes discoverDrawerIn {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1240px) {
  .discover-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .discover-sidebar {
    padding-right: 15px;
    padding-left: 15px;
  }

  .discover-masonry {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .discover-shell {
    display: block;
  }

  .discover-sidebar {
    display: none;
  }

  .discover-content {
    padding-top: 105px;
  }

  .discover-mobile-categories {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .discover-mobile-categories button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: #111310;
    color: rgba(255, 255, 255, 0.64);
    font: inherit;
    font-size: 12px;
    font-weight: 730;
    cursor: pointer;
  }

  .discover-mobile-categories button.is-active {
    border-color: rgba(217, 255, 99, 0.62);
    background: rgba(217, 255, 99, 0.11);
    color: #d9ff63;
  }

  .discover-masonry {
    column-count: 3;
  }
}

@media (max-width: 680px) {
  .discover-content {
    padding: 95px 12px 42px;
  }

  .discover-hero {
    display: grid;
    gap: 20px;
    margin: 0 8px 24px;
  }

  .discover-hero h1 {
    margin-top: 11px;
    font-size: 43px;
  }

  .discover-hero p {
    font-size: 14px;
  }

  .discover-random-button {
    width: fit-content;
  }

  .discover-toolbar {
    grid-template-columns: 1fr;
    padding: 8px;
    border-radius: 16px;
  }

  .discover-toolbar-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .discover-toolbar-selects select {
    width: 100%;
    max-width: none;
  }

  .discover-result-head {
    margin: 22px 8px 13px;
  }

  .discover-masonry {
    column-count: 2;
    column-gap: 10px;
  }

  .discover-card {
    margin-bottom: 10px;
    border-radius: 13px;
  }

  .discover-card-meta {
    padding: 10px;
  }

  .discover-card-meta strong {
    font-size: 12px;
  }

  .discover-card-meta span {
    font-size: 10px;
  }

  .discover-favorite {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .discover-card-badge,
  .discover-card-hover {
    opacity: 1;
  }

  .discover-card-badge {
    top: 7px;
    left: 7px;
    max-width: calc(100% - 14px);
    overflow: hidden;
    padding: 4px 6px;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .discover-card-hover {
    display: none;
  }

  .discover-drawer {
    top: auto;
    bottom: 0;
    display: block;
    width: 100%;
    max-height: 91vh;
    border-radius: 24px 24px 0 0;
  }

  .discover-drawer-image {
    display: block;
    width: 100%;
    min-height: 0;
    max-height: 310px;
    object-fit: cover;
  }

  .discover-drawer-content {
    display: block;
    padding: 24px 18px 22px;
  }

  .discover-drawer h2 {
    margin: 12px 0 20px;
    font-size: 39px;
  }

  .discover-drawer-facts {
    gap: 6px;
  }

  .discover-drawer-facts span {
    min-width: 0;
    padding: 10px 8px;
    font-size: 9px;
  }

  .discover-drawer-facts strong {
    font-size: 10px;
  }

  .discover-drawer-prompt {
    margin-top: 14px;
    padding: 14px;
  }

  .discover-drawer-cta {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discover-card-media img,
  .discover-random-button,
  .discover-drawer-cta,
  .discover-drawer,
  .discover-drawer-backdrop {
    transition: none;
    animation: none;
  }
}

/* MkImage parity: shared secondary-page shell, prompt detail, studio, history and credits */
.mk-page-topbar {
  position: sticky;
  top: 0;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 65px;
  padding: 0 22px;
  border-bottom: 1px solid var(--mk-line);
  background: color-mix(in srgb, var(--mk-bg) 94%, transparent);
  color: #fff;
  backdrop-filter: blur(18px);
}

.mk-page-topbar > strong {
  font-size: 16px;
  font-weight: 780;
}

.mk-page-back,
.mk-page-top-actions button,
.mk-page-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--mk-line);
  border-radius: 10px;
  background: var(--mk-panel);
  color: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

.mk-page-back {
  padding: 0;
  font-size: 18px;
}

.mk-page-top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.mk-history-filter-wrap {
  position: relative;
}

.mk-history-filter-menu {
  position: absolute;
  z-index: 32;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  width: 250px;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--mk-line);
  border-radius: 14px;
  background: #181917;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.48);
}

.mk-history-filter-menu > strong {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mk-history-filter-menu > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.mk-history-filter-menu button {
  min-width: 0;
  min-height: 32px;
  padding: 0 7px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  white-space: nowrap;
}

.mk-history-filter-menu button.is-active {
  border-color: rgba(217, 255, 99, 0.45);
  background: rgba(217, 255, 99, 0.1);
  color: var(--mk-accent);
}

.mk-page-top-actions button:hover,
.mk-page-top-actions button.is-active,
.mk-page-back:hover,
.mk-page-credit:hover {
  border-color: rgba(217, 255, 99, 0.45);
  color: var(--mk-accent);
}

.mk-page-credit {
  color: #f5ca3f;
}

.mk-detail-view {
  display: grid;
  grid-template-columns: 94px minmax(400px, 1fr) minmax(340px, 420px);
  gap: 22px;
  min-height: calc(100dvh - 65px);
  padding: 28px 30px 30px;
  background: #0b0c0b;
}

.mk-detail-filmstrip {
  display: grid;
  align-content: start;
  gap: 13px;
  max-height: calc(100dvh - 124px);
  overflow-y: auto;
  scrollbar-width: none;
}

.mk-detail-filmstrip button,
.mk-generate-filmstrip button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 13px;
  background: #20211f;
  cursor: pointer;
}

.mk-detail-filmstrip button::after {
  position: absolute;
  inset: 0;
  content: '';
  background: rgba(0, 0, 0, 0.42);
  transition: opacity 150ms ease;
}

.mk-detail-filmstrip button.is-active,
.mk-detail-filmstrip button:hover,
.mk-generate-filmstrip button:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

.mk-detail-filmstrip button.is-active::after,
.mk-detail-filmstrip button:hover::after {
  opacity: 0;
}

.mk-detail-filmstrip img,
.mk-generate-filmstrip img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
}

.mk-detail-canvas {
  position: sticky;
  top: 93px;
  align-self: start;
  display: grid;
  place-items: center;
  min-width: 0;
  height: calc(100dvh - 124px);
  overflow: hidden;
  border: 1px solid var(--mk-line);
  border-radius: 21px;
  background: radial-gradient(circle at 50% 30%, #242621, #131412 70%);
}

.mk-detail-canvas > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mk-detail-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(3, 4, 3, 0.78);
  color: #fff;
  font: inherit;
  font-size: 27px;
  cursor: pointer;
  transform: translateY(-50%);
}

.mk-detail-arrow:hover {
  border-color: var(--mk-accent);
  color: var(--mk-accent);
}

.mk-detail-arrow-left { left: 16px; }
.mk-detail-arrow-right { right: 16px; }

.mk-detail-count {
  position: absolute;
  bottom: 14px;
  left: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 760;
}

.mk-detail-info {
  align-self: stretch;
  display: flex;
  min-width: 0;
  max-height: calc(100dvh - 124px);
  flex-direction: column;
  gap: 17px;
  overflow-y: auto;
  padding: 1px 2px 0;
  scrollbar-width: thin;
}

.mk-detail-creator,
.mk-detail-stats,
.mk-detail-prompt-card header,
.mk-detail-facts span,
.mk-detail-actions {
  display: flex;
  align-items: center;
}

.mk-detail-creator {
  gap: 11px;
}

.mk-detail-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d9ff63, #86ab2d);
  color: #182016;
  font-size: 18px;
}

.mk-detail-creator > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.mk-detail-creator strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mk-detail-creator span,
.mk-detail-stats {
  color: var(--mk-muted);
  font-size: 11px;
}

.mk-detail-creator button {
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid var(--mk-line);
  border-radius: 9px;
  background: var(--mk-panel);
  color: #fff;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.mk-detail-stats {
  gap: 17px;
  min-height: 30px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--mk-line);
}

.mk-detail-prompt-card {
  overflow: hidden;
  border: 1px solid var(--mk-line);
  border-radius: 17px;
  background: #161715;
}

.mk-detail-prompt-card header {
  justify-content: space-between;
  gap: 10px;
  min-height: 47px;
  padding: 0 16px;
  border-bottom: 1px solid var(--mk-line);
}

.mk-detail-prompt-card header strong {
  font-size: 13px;
}

.mk-detail-prompt-card header div {
  display: flex;
  gap: 5px;
}

.mk-detail-prompt-card .mk-detail-prompt-heading {
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.mk-detail-prompt-heading > span {
  max-width: 150px;
  padding: 4px 7px;
  overflow: hidden;
  border: 1px solid rgba(217, 255, 99, 0.18);
  border-radius: 999px;
  background: rgba(217, 255, 99, 0.08);
  color: rgba(217, 255, 99, 0.82);
  font-size: 9px;
  font-weight: 740;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mk-detail-prompt-card button {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--mk-muted);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.mk-detail-prompt-card button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--mk-accent);
}

.mk-detail-prompt-card p {
  max-height: 280px;
  margin: 0;
  padding: 16px;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.75;
}

.mk-detail-fields {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 255, 99, 0.15);
  border-radius: 16px;
  background: rgba(217, 255, 99, 0.045);
}

.mk-detail-fields header,
.mk-detail-fields > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mk-detail-fields header {
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.mk-detail-fields header span {
  color: rgba(217, 255, 99, 0.72);
}

.mk-detail-fields > div > span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
}

.mk-detail-facts {
  display: grid;
  gap: 8px;
}

.mk-detail-facts span {
  justify-content: space-between;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mk-detail-facts strong {
  max-width: 68%;
  padding: 6px 9px;
  overflow: hidden;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  background: var(--mk-panel);
  color: rgba(255, 255, 255, 0.83);
  font-size: 11px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.mk-detail-actions {
  gap: 8px;
  margin-top: auto;
  padding-top: 3px;
}

.mk-detail-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 790;
  cursor: pointer;
}

.mk-detail-video-action {
  flex: 0 0 42%;
  border-color: rgba(167, 117, 255, 0.42) !important;
  background: rgba(144, 88, 255, 0.13);
  color: #cbb0ff;
}

.mk-detail-video-action:hover {
  background: #8e59ef;
  color: #fff;
}

.mk-detail-use-action {
  flex: 1;
  background: var(--mk-accent);
  color: #192018;
}

.mk-detail-use-action:hover {
  background: #efffb6;
}

.mk-generate-view {
  display: grid;
  grid-template-columns: 86px minmax(520px, 1fr) minmax(300px, 390px);
  align-items: start;
  gap: 20px;
  min-height: calc(100dvh - 65px);
  padding: 28px;
}

.mk-generate-filmstrip {
  position: sticky;
  top: 93px;
  display: grid;
  gap: 12px;
}

.mk-generate-filmstrip button {
  border-width: 1px;
}

.mk-generate-editor {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--mk-line);
  border-radius: 21px;
  background: #151614;
}

.mk-generate-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 14px;
  margin-bottom: 17px;
  padding: 0 2px 16px;
  border-bottom: 1px solid var(--mk-line);
}

.mk-generate-intro > span {
  grid-column: 1;
  color: var(--mk-accent);
  font-size: 9px;
  font-weight: 830;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mk-generate-intro h1 {
  grid-column: 1;
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.mk-generate-intro p {
  grid-column: 1 / -1;
  max-width: 680px;
  margin: 0;
  color: var(--mk-muted);
  font-size: 12px;
  line-height: 1.55;
}

.mk-video-badge {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  padding: 8px 10px;
  border: 1px solid rgba(172, 124, 255, 0.38);
  border-radius: 999px;
  background: rgba(151, 92, 255, 0.12);
  color: #ceb8ff;
  font-size: 10px;
  white-space: nowrap;
}

.mk-video-note {
  color: #bfa0ff !important;
}

.mk-composer-frame {
  align-self: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mk-composer-frame .hero-composer {
  margin: 0;
  padding: 0;
}

.mk-generation-preview {
  position: sticky;
  top: 93px;
  min-height: calc(100dvh - 121px);
  overflow: hidden;
  border: 1px solid var(--mk-line);
  border-radius: 21px;
  background: #151614;
}

.mk-generation-preview-stage {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 252px);
  margin: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  background: linear-gradient(145deg, #20221f, #181917);
  color: rgba(255, 255, 255, 0.25);
  font-size: 38px;
}

.mk-generation-preview-stage.has-task {
  min-height: 330px;
  overflow: hidden;
  border-style: solid;
  border-color: rgba(217, 255, 99, 0.16);
  background: radial-gradient(circle at 50% 36%, rgba(217, 255, 99, 0.09), transparent 44%), #181a17;
}

.mk-generation-preview-stage.has-task > img,
.mk-generation-preview-stage.has-task > video {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: contain;
}

.mk-generation-progress {
  display: grid;
  justify-items: center;
  width: min(260px, calc(100% - 30px));
  gap: 8px;
  text-align: center;
}

.mk-generation-progress-ring {
  width: 50px;
  height: 50px;
  margin-bottom: 7px;
  border: 3px solid rgba(217, 255, 99, 0.16);
  border-top-color: var(--mk-accent);
  border-radius: 50%;
  animation: generation-spinner 900ms linear infinite;
}

.mk-generation-preview-stage.is-failed .mk-generation-progress-ring,
.mk-generation-preview-stage.is-succeeded .mk-generation-progress-ring {
  display: grid;
  place-items: center;
  border-color: currentColor;
  animation: none;
}

.mk-generation-preview-stage.is-failed .mk-generation-progress-ring { color: #ff8181; }
.mk-generation-preview-stage.is-failed .mk-generation-progress-ring::after { content: '!'; font-weight: 900; }
.mk-generation-preview-stage.is-succeeded .mk-generation-progress-ring { color: #a8eb75; }
.mk-generation-preview-stage.is-succeeded .mk-generation-progress-ring::after { content: '✓'; font-weight: 900; }
.mk-generation-progress strong { color: #fff; font-size: 15px; }
.mk-generation-progress p { margin: 0; color: var(--mk-accent); font-size: 11px; }
.mk-generation-progress small { color: var(--mk-muted); font-size: 10px; line-height: 1.5; }

.mk-generation-session {
  min-height: 102px;
  padding: 19px 20px;
  border-top: 1px solid var(--mk-line);
}

.mk-generation-session > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mk-generation-session > header > span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(217, 255, 99, 0.12);
  color: var(--mk-accent);
  font-size: 10px;
  font-weight: 800;
}

.mk-generation-session-list {
  display: grid;
  gap: 7px;
  max-height: 230px;
  margin-top: 12px;
  overflow-y: auto;
}

.mk-generation-session-list article {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--mk-line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  animation: session-task-enter 220ms ease both;
}

.mk-generation-session-state {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mk-accent);
  box-shadow: 0 0 0 4px rgba(217, 255, 99, 0.09);
  animation: task-notification-pulse 1.5s ease-out infinite;
}

.mk-generation-session-list article.is-succeeded .mk-generation-session-state { background: #8bde5e; animation: none; }
.mk-generation-session-list article.is-failed .mk-generation-session-state { background: #ff7474; animation: none; }
.mk-generation-session-list article > div { min-width: 0; }
.mk-generation-session-list article strong,
.mk-generation-session-list article p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-generation-session-list article strong { display: block; color: #fff; font-size: 10px; }
.mk-generation-session-list article p { margin: 3px 0 0; font-size: 9px; }
.mk-generation-session-list article > small { display: grid; justify-items: end; gap: 3px; color: var(--mk-accent); font-size: 9px; }
.mk-generation-session-list article > small b { color: var(--mk-muted); font-size: 8px; font-weight: 600; }

@keyframes session-task-enter {
  from { opacity: 0.7; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.mk-generation-session strong {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.mk-generation-session p {
  margin: 8px 0 0;
  color: var(--mk-muted);
  font-size: 11px;
  line-height: 1.55;
}

.mk-history-empty {
  width: min(610px, calc(100% - 40px));
  min-height: 250px;
  margin: min(16vh, 155px) auto 50px;
  padding: 34px;
  border: 1px solid var(--mk-line);
  border-radius: 21px;
  background: #121311;
}

.mk-history-empty > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-size: 23px;
}

.mk-history-empty h1 {
  font-size: 25px;
  letter-spacing: -0.04em;
}

.mk-history-data {
  min-height: calc(100dvh - 65px);
  padding: 22px 26px 50px;
}

.mk-history-data .workspace-section {
  margin: 0;
}

.mk-credits-view {
  min-height: calc(100dvh - 65px);
  padding: 30px 30px 60px;
}

.mk-credits-view > header > span {
  color: var(--mk-accent);
  font-size: 10px;
  font-weight: 830;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mk-credits-view > header h1 {
  margin: 8px 0 5px;
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.065em;
}

.mk-credits-view > header p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 14px;
}

.mk-credit-summary-grid {
  display: grid;
  grid-template-columns: 0.85fr 0.85fr 1.3fr;
  gap: 14px;
  margin-top: 27px;
}

.mk-credit-summary-grid > article {
  display: flex;
  min-height: 155px;
  flex-direction: column;
  gap: 11px;
  padding: 21px;
  border: 1px solid var(--mk-line);
  border-radius: 17px;
  background: #171816;
}

.mk-credit-summary-grid article > span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 730;
}

.mk-credit-summary-grid article > strong {
  margin-top: auto;
  color: #fff;
  font-size: 38px;
  letter-spacing: -0.06em;
}

.mk-credit-summary-grid article > small {
  min-height: 16px;
  color: var(--mk-muted);
  font-size: 10px;
  line-height: 1.45;
}

.mk-credit-bonus button,
.mk-credit-packs button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: var(--mk-accent);
  color: #172016;
  font: inherit;
  font-size: 11px;
  font-weight: 790;
  cursor: pointer;
}

.mk-credit-bonus button:disabled,
.mk-credit-packs button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.mk-credit-bonus {
  border-color: rgba(245, 195, 37, 0.4) !important;
  background: linear-gradient(135deg, rgba(245, 195, 37, 0.15), rgba(245, 195, 37, 0.04)) !important;
}

.mk-credit-bonus > span,
.mk-credit-bonus > strong {
  color: #ffd960 !important;
}

.mk-credit-bonus button {
  width: fit-content;
  margin-top: auto;
  padding: 0;
  background: transparent;
  color: #ffd960;
}

.mk-credit-packs {
  margin-top: 24px;
  padding: 23px;
  border: 1px solid var(--mk-line);
  border-radius: 19px;
  background: #151614;
}

.mk-credit-packs > header strong {
  color: #fff;
  font-size: 17px;
}

.mk-credit-packs > header p {
  margin: 7px 0 0;
  color: var(--mk-muted);
  font-size: 12px;
}

.mk-credit-packs > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 19px;
}

.mk-credit-packs article {
  display: grid;
  gap: 13px;
  min-height: 220px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: #191a18;
}

.mk-credit-packs article > span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 780;
}

.mk-credit-packs article > strong {
  color: #fff;
  font-size: 30px;
  letter-spacing: -0.055em;
}

.mk-credit-packs article > p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 12px;
}

.mk-credit-packs article > small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.55;
}

.mk-credit-feedback {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mk-muted);
  font-size: 11px;
}

.mk-credit-feedback.is-error {
  border-color: rgba(255, 137, 91, 0.34);
  color: #ffb08f;
}

.mk-credit-packs article > button {
  align-self: end;
  width: 100%;
}

.mk-credit-packs article.is-green { border-color: rgba(0, 201, 136, 0.6); }
.mk-credit-packs article.is-blue { border-color: rgba(70, 137, 255, 0.62); }
.mk-credit-packs article.is-purple { border-color: rgba(159, 92, 255, 0.62); }
.mk-credit-packs article.is-blue button { background: #4689ff; color: #fff; }
.mk-credit-packs article.is-purple button { background: #9957f5; color: #fff; }

.mk-account-menu {
  position: fixed;
  z-index: 60;
  bottom: 72px;
  left: 15px;
  width: 245px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #191a18;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.52);
}

.mk-account-menu-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--mk-line);
}

.mk-account-menu-head > span:last-child {
  display: grid;
  gap: 2px;
}

.mk-account-menu-head strong {
  color: #fff;
  font-size: 12px;
}

.mk-account-menu-head small {
  color: var(--mk-muted);
  font-size: 10px;
}

.mk-account-menu > a,
.mk-account-menu > button,
.mk-account-menu summary,
.mk-account-menu details > div a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mk-account-menu > a:hover,
.mk-account-menu > button:hover,
.mk-account-menu summary:hover,
.mk-account-menu details > div a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mk-account-menu summary {
  justify-content: space-between;
  list-style: none;
}

.mk-account-menu summary::-webkit-details-marker {
  display: none;
}

.mk-account-menu details[open] summary span {
  transform: rotate(90deg);
}

.mk-account-menu details > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin: 0 5px 5px 20px;
  padding: 5px;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  background: #111210;
}

.mk-account-menu details > div a {
  justify-content: center;
  min-height: 30px;
  padding: 0 6px;
  font-size: 10px;
  text-align: center;
}

.mk-workspace.is-sidebar-collapsed .mk-account-menu {
  left: 72px;
}

@media (max-width: 1500px) {
  .mk-detail-view {
    grid-template-columns: 82px minmax(370px, 1fr) minmax(320px, 370px);
    gap: 16px;
    padding: 24px 22px;
  }

  .mk-generate-view {
    grid-template-columns: 76px minmax(480px, 1fr) minmax(280px, 335px);
    gap: 16px;
    padding: 22px;
  }

  .mk-credit-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mk-credit-summary-grid .mk-credit-bonus {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1240px) {
  .mk-generate-view {
    grid-template-columns: minmax(480px, 1fr) minmax(270px, 330px);
  }

  .mk-generate-filmstrip {
    display: none;
  }

  .mk-credit-packs > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .mk-detail-view {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .mk-detail-info {
    grid-column: 1 / -1;
    max-height: none;
    padding: 6px 0 24px;
  }

  .mk-detail-canvas {
    position: relative;
    top: auto;
    height: min(68vh, 720px);
  }

  .mk-detail-filmstrip {
    max-height: min(68vh, 720px);
  }
}

@media (max-width: 980px) {
  .mk-page-topbar {
    min-height: 61px;
    padding: 0 14px;
  }

  .mk-page-topbar .mk-mobile-menu {
    display: inline-flex;
  }

  .mk-account-menu,
  .mk-workspace.is-sidebar-collapsed .mk-account-menu {
    bottom: 72px;
    left: 15px;
  }

  .mk-generate-view {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - 61px);
  }

  .mk-generation-preview {
    position: relative;
    top: auto;
    min-height: 470px;
  }

  .mk-generation-preview-stage {
    min-height: 340px;
  }

  .mk-credits-view,
  .mk-history-data {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 720px) {
  .mk-page-topbar > strong {
    font-size: 14px;
  }

  .mk-page-top-actions button:first-child:not(.mk-theme) {
    display: none;
  }

  .mk-detail-view {
    display: flex;
    min-height: calc(100dvh - 61px);
    flex-direction: column;
    gap: 13px;
    padding: 13px;
  }

  .mk-detail-filmstrip {
    display: flex;
    order: 2;
    width: 100%;
    max-height: none;
    gap: 8px;
    overflow-x: auto;
  }

  .mk-detail-filmstrip button {
    width: 68px;
    flex: 0 0 68px;
    border-radius: 9px;
  }

  .mk-detail-canvas {
    order: 1;
    width: 100%;
    height: min(62vh, 520px);
    border-radius: 15px;
  }

  .mk-detail-arrow {
    width: 36px;
    height: 36px;
  }

  .mk-detail-info {
    order: 3;
    gap: 14px;
  }

  .mk-detail-prompt-card p {
    max-height: none;
  }

  .mk-detail-actions {
    position: sticky;
    z-index: 4;
    bottom: 8px;
    padding: 8px;
    border: 1px solid var(--mk-line);
    border-radius: 13px;
    background: rgba(15, 16, 14, 0.94);
    backdrop-filter: blur(14px);
  }

  .mk-detail-video-action {
    flex-basis: 44%;
  }

  .mk-generate-view {
    gap: 14px;
    padding: 13px;
  }

  .mk-generate-editor {
    padding: 12px;
    border-radius: 17px;
  }

  .mk-composer-frame .hero-composer-task-switch,
  .mk-composer-frame .hero-composer-panel {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .mk-composer-frame .hero-composer-panel {
    padding: 14px;
  }

  .mk-composer-frame .hero-composer-panel[data-task-type='video'][data-reference-count='1'] .hero-composer-stage-split {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 12px;
  }

  .mk-composer-frame .hero-composer-panel[data-task-type='video'][data-reference-count='1'] .hero-reference-grid-1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .mk-composer-frame .hero-composer-panel[data-generation-mode='image_to_video'] .hero-reference-tile,
  .mk-composer-frame .hero-composer-panel[data-generation-mode='video_edit'] .hero-reference-tile {
    min-height: 132px;
  }

  .mk-composer-frame .hero-composer-panel[data-task-type='video'][data-reference-count='1'] .hero-composer-textarea {
    width: 100%;
    height: 170px;
    min-height: 170px;
  }

  .mk-generate-intro {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .mk-generate-intro h1 {
    font-size: 27px;
  }

  .mk-video-badge {
    order: -1;
  }

  .mk-credit-summary-grid,
  .mk-credit-packs > div {
    grid-template-columns: 1fr;
  }

  .mk-credits-view {
    padding: 22px 13px 45px;
  }

  .mk-credit-packs {
    padding: 14px;
  }

  .mk-history-empty {
    margin-top: 90px;
  }
}

/* Unified route and workspace transitions */
.route-transition-stage {
  min-width: 0;
  min-height: inherit;
}

.mk-workspace-view-stage {
  min-width: 0;
  min-height: calc(100dvh - 65px);
  animation: workspace-view-enter 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mk-secondary-content-transition {
  animation: secondary-content-enter 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mk-context-bar-transition {
  animation: context-bar-enter 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mk-page-title-transition {
  display: inline-block;
  animation: page-title-enter 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mk-detail-active-media {
  animation: detail-media-enter 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mk-detail-prompt-transition {
  animation: detail-copy-enter 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mk-work-card {
  animation: workspace-card-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mk-work-card:nth-child(2n) { animation-delay: 20ms; }
.mk-work-card:nth-child(3n) { animation-delay: 40ms; }
.mk-work-card:nth-child(5n) { animation-delay: 60ms; }

@keyframes workspace-view-enter {
  from {
    opacity: 0.88;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes secondary-content-enter {
  from {
    opacity: 0.9;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes context-bar-enter {
  from {
    opacity: 0.9;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes page-title-enter {
  from {
    opacity: 0.78;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes detail-media-enter {
  from {
    opacity: 0.82;
    transform: scale(1.008);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes detail-copy-enter {
  from {
    opacity: 0.76;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes workspace-card-enter {
  from {
    opacity: 0.86;
    transform: translateY(5px) scale(0.996);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-workspace-view-stage,
  .mk-secondary-content-transition,
  .mk-context-bar-transition,
  .mk-page-title-transition,
  .mk-detail-active-media,
  .mk-detail-prompt-transition,
  .mk-work-card {
    animation: none;
  }
}

@media (max-width: 440px) {
  .mk-page-credit,
  .mk-page-top-actions .mk-theme {
    display: none;
  }

  .mk-detail-actions button {
    min-height: 43px;
    font-size: 10px;
  }

  .mk-credit-summary-grid > article {
    min-height: 140px;
  }
}

@media (max-width: 640px) {
  .task-notification-panel {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
    max-height: min(560px, calc(100dvh - 112px));
  }

  .task-toast-shell {
    top: 10px;
    width: calc(100vw - 20px);
  }

  .task-toast-card {
    min-height: 76px;
    padding: 14px;
  }

  .task-toast-actions {
    flex-direction: column-reverse;
    align-items: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-composer-feedback,
  .hero-composer-submit.is-submitting > span:first-child::before,
  .task-toast-status-icon,
  .task-notification-panel,
  .task-notification-state,
  .mk-generation-progress-ring,
  .mk-generation-session-state,
  .mk-generation-session-list article {
    animation: none;
  }
}

/* Unified secondary workspace chrome */
.mk-sidebar-filter-list a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 34px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--mk-muted);
  font-size: 12px;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.mk-sidebar-filter-list a > span:first-child {
  display: inline-flex;
  justify-content: center;
  width: 17px;
  flex: 0 0 17px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
}

.mk-sidebar-filter-list a:hover,
.mk-sidebar-filter-list a.is-active {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.085);
  color: #fff;
}

.mk-sidebar-filter-list button small,
.mk-sidebar-filter-list a small {
  margin-left: auto;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(217, 255, 99, 0.12);
  color: var(--mk-accent);
  font-size: 8px;
  font-style: normal;
  line-height: 1.3;
}

.mk-secondary-workspace {
  min-height: 100dvh;
}

.mk-secondary-content {
  min-height: calc(100dvh - 65px);
  padding: 28px clamp(18px, 2.7vw, 42px) 56px;
  background:
    radial-gradient(circle at 72% -15%, rgba(217, 255, 99, 0.045), transparent 29%),
    var(--mk-bg);
  color: var(--mk-text);
}

.mk-secondary-content .models-catalog-page,
.mk-secondary-content .model-page-shell,
.mk-secondary-content .pricing-page-shell,
.mk-secondary-content .resource-page,
.mk-secondary-content .account-page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.mk-secondary-content .account-page-shell {
  padding: 0;
}

.mk-secondary-content .account-page-back {
  display: none;
}

.mk-secondary-content .style-detail-page {
  min-height: auto;
  margin: -28px calc(clamp(18px, 2.7vw, 42px) * -1) -56px;
  background: transparent;
}

.mk-secondary-content .style-detail-shell {
  width: min(1440px, calc(100% - 56px));
  padding: 42px 0 64px;
}

.mk-secondary-content .panel,
.mk-secondary-content .resource-page-card,
.mk-secondary-content .resource-page-support,
.mk-secondary-content .account-page-card,
.mk-secondary-content .account-page-hero,
.mk-secondary-content .style-related-card {
  border: 1px solid var(--mk-line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.018));
  color: var(--mk-text);
  box-shadow: none;
}

.mk-secondary-content h1,
.mk-secondary-content h2,
.mk-secondary-content h3,
.mk-secondary-content strong {
  color: var(--mk-text);
}

.mk-secondary-content p,
.mk-secondary-content li,
.mk-secondary-content .helper-paragraph,
.mk-secondary-content .helper-inline,
.mk-secondary-content .helper-text {
  color: rgba(255, 255, 255, 0.66);
}

.mk-secondary-content .models-catalog-hero,
.mk-secondary-content .model-page-hero,
.mk-secondary-content .pricing-page-hero {
  overflow: hidden;
  padding: clamp(28px, 4vw, 54px);
  border-radius: 18px;
  background:
    linear-gradient(110deg, rgba(217, 255, 99, 0.1), transparent 48%),
    #151614;
}

.mk-secondary-content .models-catalog-hero h1,
.mk-secondary-content .model-page-hero h1,
.mk-secondary-content .pricing-page-hero h1,
.mk-secondary-content .resource-page-head h1 {
  max-width: 960px;
  margin-top: 12px;
  font-family: inherit;
  font-size: clamp(36px, 5vw, 70px);
  letter-spacing: -0.055em;
}

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

.model-catalog-card.is-featured {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-color: rgba(217, 255, 99, 0.22);
  background:
    radial-gradient(circle at 88% 10%, rgba(217, 255, 99, 0.14), transparent 36%),
    #161714;
}

.model-catalog-card-rank {
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(217, 255, 99, 0.14);
  font-size: 58px;
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 1;
}

.mk-secondary-content .ghost-button,
.mk-secondary-content .link-button {
  border-color: rgba(255, 255, 255, 0.13);
  background: #20211e;
  color: #fff;
}

.mk-secondary-content .ghost-button:hover,
.mk-secondary-content .link-button:hover,
.mk-secondary-content .ghost-button-accent {
  border-color: rgba(217, 255, 99, 0.44);
  background: var(--mk-accent);
  color: #18200f;
}

.mk-secondary-content .hero-stage {
  width: min(1440px, 100%);
  min-height: auto;
  margin: 0 auto 28px;
  border: 1px solid var(--mk-line);
  border-radius: 18px;
  overflow: hidden;
}

.mk-secondary-content .tool-section,
.mk-secondary-content .tool-detail-section,
.mk-secondary-content .showcase-panel {
  width: min(1440px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.mk-secondary-content .hero-composer-panel {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 10%, rgba(217, 255, 99, 0.07), transparent 28%),
    #151614;
  color: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.mk-secondary-content .hero-composer-mode-button,
.mk-secondary-content .hero-prompt-panel-head strong,
.mk-secondary-content .hero-prompt-panel-head.is-single strong,
.mk-secondary-content .hero-reference-tile strong,
.mk-secondary-content .hero-reference-tile.is-upload-card strong,
.mk-secondary-content .hero-reference-slot-label,
.mk-secondary-content .hero-composer-textarea {
  color: rgba(255, 255, 255, 0.9);
}

.mk-secondary-content .hero-prompt-panel-head span,
.mk-secondary-content .hero-reference-tile-meta,
.mk-secondary-content .hero-composer-textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.mk-secondary-content .hero-reference-tile {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
}

.mk-secondary-content .hero-reference-tile-icon,
.mk-secondary-content .hero-composer-mode-info {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--mk-accent);
}

.mk-secondary-content .hero-composer-chip,
.mk-secondary-content .hero-composer-chip:hover,
.mk-secondary-content .hero-composer-chip[aria-expanded='true'] {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #232420;
  color: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.mk-secondary-content .hero-composer-submit {
  background: var(--mk-accent);
  color: #17200f;
  box-shadow: 0 12px 34px rgba(217, 255, 99, 0.13);
}

.mk-secondary-content .resource-page {
  gap: 22px;
}

.mk-secondary-content .resource-page-card,
.mk-secondary-content .resource-page-support {
  border-radius: 14px;
  background: #151614;
}

.mk-secondary-content .account-page-hero,
.mk-secondary-content .account-page-card {
  padding: 28px;
}

.mk-secondary-content .account-auth-gate {
  padding: 74px 0;
}

.mk-secondary-content .account-auth-gate-card {
  border: 1px solid var(--mk-line);
  border-radius: 18px;
  background: #151614;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.mk-secondary-content .account-primary-button {
  background: var(--mk-accent);
  color: #17200f;
}

@media (max-width: 1080px) {
  .models-catalog-featured-grid,
  .models-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mk-secondary-content {
    padding: 18px 12px 42px;
  }

  .mk-secondary-content .models-catalog-page,
  .mk-secondary-content .model-page-shell,
  .mk-secondary-content .pricing-page-shell,
  .mk-secondary-content .resource-page,
  .mk-secondary-content .account-page-shell {
    width: 100%;
  }

  .models-catalog-featured-grid,
  .models-catalog-grid,
  .resource-page-grid,
  .model-page-summary-grid {
    grid-template-columns: 1fr;
  }

  .mk-secondary-content .style-detail-page {
    margin: -18px -12px -42px;
  }

  .mk-secondary-content .style-detail-shell {
    width: calc(100% - 24px);
    padding-top: 28px;
  }
}
