:root {
  --bg: #0b0b0b;
  --card-bg: #141414;
  --card-border: #2a2a2a;
  --text-main: #e0e0e0;
  --text-dim: #888888;
  --accent: #7f7f7f;
  --card-radius: 4px;
  --font-mono: 'JetBrains Mono', monospace;
  --ascii-size: clamp(4px, 0.45vw, 6px);
  --cell-width: calc(var(--ascii-size) * 0.57);
  --line-height: calc(var(--ascii-size) * 0.98);
  --page-width: 1680px;
  --page-gutter: 32px;
  --asset-card-min: 272px;
  --asset-card-gap: 20px;
}

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

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-mono);
  padding: 0;
  background-image: linear-gradient(180deg, #0b0b0b, #0a0a0a 40%, #090909);
}

a {
  color: inherit;
}

main {
  transition: opacity 0.26s ease, transform 0.26s ease;
}

main.is-leaving {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

main.is-entering {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}

main.auth-shell.is-leaving,
main.auth-shell.is-entering,
main.art-shell.is-leaving,
main.art-shell.is-entering {
  transform: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  background: transparent;
  mix-blend-mode: difference;
}

.site-header__inner {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  padding: 20px var(--page-gutter) 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand,
.site-nav__link {
  text-decoration: none;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.16em;
  -webkit-text-stroke: 0.5px currentColor;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-weight: 700;
  text-transform: none;
}

.site-brand__text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.site-nav__link {
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__link {
  color: #ffffff;
  transition: color 0.2s ease;
}

.site-nav__link:hover {
  color: #ffffff;
}

.site-nav__link[aria-current="page"] {
  color: #ffffff;
}

html.auth-state-loading.auth-session-hint .site-header .site-nav {
  visibility: hidden;
}

#ascii-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}


.site-header {
  z-index: 31;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  mix-blend-mode: difference;
}

.site-footer__inner {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  padding: 22px var(--page-gutter) 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-shell {
  position: relative;
  z-index: 1;
}

.page-shell {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  padding: 0 var(--page-gutter) 48px;
}

.page-copy {
  padding: 72px 0 40px;
  max-width: 880px;
}

.page-copy--wide {
  width: calc(100% * 3 / 4);
  margin-inline: auto;
}

.page-copy--hero-wide {
  width: min(100%, 1320px);
  max-width: 1320px;
}

.page-copy--compact {
  padding-top: 40px;
}

.page-copy--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-copy--center .page-copy__title,
.page-copy--center .page-copy__body {
  margin-left: auto;
  margin-right: auto;
}

.page-copy--center .page-copy__body {
  max-width: 60ch;
}

.page-copy--hero-wide .page-copy__body {
  max-width: 88ch;
}

.page-copy__eyebrow,
.info-card__eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 18px;
}

.page-copy__title,
.info-card__title {
  font-size: clamp(34px, 6vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #ffffff;
  max-width: 12ch;
}

.page-copy__title--wide {
  max-width: none;
}

.info-card__title--small {
  max-width: 16ch;
}

.page-copy__body {
  margin-top: 22px;
  max-width: none;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.legal-layout {
  width: min(100%, 960px);
  margin: 0 auto;
}

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

.legal-card {
  position: relative;
  min-height: 100%;
  padding: 24px 28px;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
}

.legal-card__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.legal-card__body {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.legal-stack {
  padding-top: 40px;
}

.legal-section {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px 0 0;
}

.legal-section + .legal-section {
  margin-top: 28px;
}

.legal-section__title {
  font-size: 24px;
  line-height: 1.2;
  color: #ffffff;
}

.legal-section__body {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.legal-section__body p + p,
.legal-section__body ul + p,
.legal-section__body p + ul {
  margin-top: 14px;
}

.legal-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
  background: rgba(20, 20, 20, 0.72);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.65;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-table th {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.03);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-note {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
}

.legal-list {
  padding-left: 18px;
}

.legal-list li + li {
  margin-top: 10px;
}

.info-card__body {
  margin-top: 22px;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.info-card__bundles {
  display: block;
  text-align: center;
}

.info-card__free-lines {
  display: block;
  text-align: center;
}

.api-portal {
  padding-bottom: 72px;
  margin-inline: auto;
  max-width: 1440px;
}

.api-overview {
  padding-bottom: 28px;
  text-align: center;
}

.api-overview-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.api-overview-links--start {
  justify-content: flex-start;
}

.api-section {
  margin: 64px auto 0;
  width: calc(100% * 3 / 4);
}

.api-section--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  width: 100%;
}

.api-two-col__pane {
  min-width: 0;
}

.api-limit-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  height: 100%;
}

.api-two-col__divider {
  grid-column: 1 / -1;
}

.api-section-grid,
.api-workflow-list {
  display: grid;
  gap: 20px;
}

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

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

.api-value-card__heading {
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-top: 10px;
}

.api-simple-card,
.api-workflow-item,
.api-key-row {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  position: relative;
}

.api-simple-card,
.api-workflow-item {
  padding: 24px;
}

.api-two-col__pane > .api-simple-card,
.api-limit-stack > .api-simple-card {
  height: 100%;
}

.api-simple-card--cta {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.api-simple-card--cta .api-simple-card__title {
  max-width: none;
}

.api-simple-card--cta .api-overview-links {
  justify-content: center;
}

.api-simple-card__title {
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #ffffff;
  max-width: 16ch;
}

.api-simple-card__body,
.api-workflow-item__body,
.api-key-row__meta,
.api-empty-state,
.api-simple-card__note {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.api-simple-card__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 16px;
}

.api-code-block {
  margin-top: 18px;
  padding: 16px 18px;
  overflow-x: auto;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}

.qs-step {
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.qs-step__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.qs-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.qs-step__label {
  flex: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.qs-step__label code {
  font: inherit;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
}

.qs-copy-btn {
  margin-left: auto;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--card-radius);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.qs-copy-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

.qs-step__code {
  margin-top: 0;
  border: none;
  border-radius: 0;
}

.api-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

.api-workflow-item__top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.api-workflow-item__path,
.api-key-row__token {
  display: inline-block;
  color: rgba(255, 255, 255, 0.92);
}

.api-workflow-item__title,
.api-key-row__title {
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.api-error-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.api-error-item {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.api-error-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.api-error-item__code {
  color: #ffffff;
}

.api-error-item__text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

.api-key-create-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.api-key-create-row .field__input {
  flex: 1;
  min-width: 0;
}

.api-key-create-row .button-link {
  flex-shrink: 0;
  margin-top: 0;
}

.api-key-table {
  margin-top: 24px;
}

.api-key-table__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.api-key-table__table thead th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.api-key-table__table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  vertical-align: middle;
}

.api-key-table__table tbody tr:last-child td {
  border-bottom: none;
}

.api-key-table__name {
  color: #ffffff;
  font-weight: 500;
}

.api-key-table__meta {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.api-key-table__action {
  text-align: right;
  white-space: nowrap;
}

.button-link--sm {
  font-size: 12px;
  padding: 4px 12px;
}

.api-empty-state {
  margin-top: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  padding: 16px 0 0;
}

.api-key-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #141414;
  color: var(--text-main);
  font-family: var(--font-mono);
  max-width: 520px;
  width: calc(100% - 48px);
  padding: 0;
  border-radius: var(--card-radius);
  z-index: 100;
}

.api-key-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.api-key-modal__content {
  padding: 32px;
}

.api-key-modal__title {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.api-key-modal__body {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

.api-key-modal__secret {
  margin-top: 20px;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
}

.api-key-modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.api-key-modal__actions .button-link {
  margin-top: 0;
}

.api-method,
.api-auth-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.api-method--get {
  color: #a5e3c4;
}

.api-method--post {
  color: #f6d17b;
}

.api-method--delete {
  color: #ff9d9d;
}

.api-auth-chip {
  color: #9fd3ff;
}

.hero-layout {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 64px;
  padding: 96px 0 72px;
}

#hero-planet {
  position: absolute;
  right: 23%;
  top: 50%;
  transform: translateY(-40%);
  width: 780px;
  height: 780px;
  pointer-events: none;
  z-index: 0;
}

body.is-authenticated #hero-planet {
  right: 8%;
}

html.auth-state-loading.auth-session-hint #hero-planet {
  right: 8%;
  opacity: 0;
}

.hero {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 0.95;
  letter-spacing: 0;
  color: #ffffff;
  font-weight: 700;
}

.hero__body {
  margin-top: 28px;
  max-width: 72ch;
  margin-left: 0;
  margin-right: auto;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-main);
}

.hero__actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.workflow-switch {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.workflow-switch__eyebrow,
.workflow-switch__label {
  display: none;
}

.workflow-switch__controls {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.04);
}

.workflow-switch__button {
  appearance: none;
  min-width: 0;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: var(--card-radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.workflow-switch__button:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
}

.workflow-switch__button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.workflow-switch__button[aria-selected="true"],
.workflow-switch__button.is-active {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.workflow-switch__button-title {
  display: block;
  color: inherit;
}

.workflow-switch--hero {
  margin-bottom: 18px;
}

.workflow-switch--compact {
  margin-bottom: 18px;
}

.workflow-switch--left {
  justify-content: flex-end;
}


.section-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.section-divider__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.section-divider__link {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  transition: color 0.2s;
}

.section-divider__link:hover {
  color: #ffffff;
}

.section-divider__button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.66);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s;
}

.section-divider__button:hover {
  color: #ffffff;
}

.section-divider[data-toggleable] {
  cursor: pointer;
}

.section-divider__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-divider__count {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
  font-variant-numeric: tabular-nums;
}

.section-divider__count[hidden] {
  display: none;
}

.section-divider--centered {
  justify-content: space-between;
  padding-left: clamp(24px, 5.7vw, 96px);
  padding-right: clamp(24px, 5.7vw, 96px);
}

.section-divider--centered .section-divider__label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  -webkit-text-stroke: 0.5px currentColor;
  color: #ffffff;
}

.section-divider--centered .section-divider__link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.5px currentColor;
  color: #ffffff;
}

.gallery-section {
  padding-bottom: 56px;
}

.gallery-section--full {
  padding-bottom: 88px;
}

.gallery-toolbar {
  display: grid;
  grid-template-columns: 1fr 480px 1fr;
  align-items: end;
  gap: 16px 24px;
  padding-bottom: 24px;
}

.gallery-toolbar__filters {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.gallery-filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-filter-group__label {
  width: 60px; /* Consistent width to align following buttons */
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.gallery-search {
  grid-column: 2;
  display: grid;
  gap: 8px;
}

.gallery-toolbar__meta {
  grid-column: 3;
  justify-self: end;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  text-align: right;
}

.gallery-search__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.gallery-search__input {
  min-height: 46px;
  border-radius: var(--card-radius);
}

.gallery-source-filter__btn {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  border-radius: var(--card-radius);
}

.gallery-source-filter__btn:hover {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.24);
}

.gallery-source-filter__btn.is-active {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.gallery-source-filter__btn.is-empty {
  opacity: 0.4;
}

.gallery-source-filter__btn-count {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.04em;
  min-width: 18px;
  text-align: center;
}

.gallery-source-filter__btn-count:empty {
  display: none;
}

.gallery-source-filter__btn.is-active .gallery-source-filter__btn-count {
  background: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.95);
}

.gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 28px;
}

.gallery-pagination__button {
  min-width: 42px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--card-radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.gallery-pagination__button:hover {
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff;
}

.gallery-pagination__button[disabled] {
  opacity: 0.38;
  cursor: default;
}

.gallery-pagination__button--active {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

#app {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--asset-card-min)), 1fr));
  gap: var(--asset-card-gap);
}

#app.export-mode {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

body.export-mode {
  background-color: #0b0b0b;
  background-image: none;
}

body.export-mode .site-header,
body.export-mode .page-copy,
body.export-mode .info-section {
  display: none;
}

body.export-mode .page-shell {
  width: auto;
  padding: 60px;
}

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.card--fresh {
  animation: card-enter 0.42s ease;
}

.card--failed {
  border-color: rgba(173, 89, 89, 0.45);
}

.card-corners {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 10;
}

.card-corners::before,
.card-corners::after,
.card-corners span::before,
.card-corners span::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #ffffff;
  border-style: solid;
}

.card-corners::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
  border-top-left-radius: 4px;
}

.card-corners::after {
  top: -1px;
  right: -1px;
  border-width: 2px 2px 0 0;
  border-top-right-radius: 4px;
}

.card-corners span::before {
  bottom: -1px;
  left: -1px;
  border-width: 0 0 2px 2px;
  border-bottom-left-radius: 4px;
}

.card-corners span::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
  border-bottom-right-radius: 4px;
}

.card:hover {
  border-color: #444;
}

.card-video-container {
  width: 100%;
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}


.card-media-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--card-radius);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #f0f0f0;
  pointer-events: none;
  z-index: 1;
}

.card-video-container--interactive {
  cursor: zoom-in;
}

.card-video-container--interactive:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: -2px;
}

.card-video-container--placeholder {
  min-height: 220px;
  align-items: flex-start;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%),
    #101010;
}

/* ── Skeleton loading placeholders ──────────────────────────────────────── */

.card--skeleton {
  pointer-events: none;
}

.card-video-container--skeleton {
  min-height: 220px;
  position: relative;
  overflow: hidden;
  background: #0c0c0c;
}

.skeleton-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.skeleton-bar {
  border-radius: 2px;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.04) 30%,
      rgba(255, 255, 255, 0.09) 50%,
      rgba(255, 255, 255, 0.04) 70%,
      rgba(255, 255, 255, 0.04) 100%);
  background-size: 300% 100%;
  animation: skeleton-scan 1.8s linear infinite;
}

.skeleton-bar--title {
  height: 14px;
  width: 58%;
}

.skeleton-bar--desc {
  height: 10px;
  width: 82%;
  margin-top: 10px;
}

.skeleton-bar--short {
  width: 44%;
  margin-top: 6px;
}

@keyframes skeleton-scan {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.card--skeleton-exit {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

/* ── End skeleton ────────────────────────────────────────────────────────── */

.ascii-canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #000000;
  border: 1px solid #1f1f1f;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.job-card__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.job-card__title {
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.card-content {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

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

.card-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

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

.card-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--card-radius);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.card-tag--loop {
  background: rgba(120, 220, 180, 0.15);
  color: #79e6b8;
  border: 1px solid rgba(120, 220, 180, 0.3);
}

.card-tag--ai {
  background: rgba(140, 160, 255, 0.15);
  color: #9ab4ff;
  border: 1px solid rgba(140, 160, 255, 0.3);
}

.card-description {
  font-size: 13px;
  color: #b0b0b0;
  line-height: 1.6;
  font-weight: 400;
}

.card-description--muted {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.job-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.job-progress__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), #ffffff);
  transition: width 0.24s ease;
}

.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--card-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  align-items: stretch;
}

.card-action {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

button.card-action {
  appearance: none;
  font-family: inherit;
}

.card-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.card-permalink {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card-permalink:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.card-action--danger {
  color: #ffd0d0;
  border-color: rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.14);
  text-shadow: none;
}

.card-action--danger:hover {
  color: #ffffff;
  border-color: rgba(255, 107, 107, 0.58);
  background: rgba(255, 107, 107, 0.2);
}

.card-action--delete:hover {
  color: #ffd0d0;
  border-color: rgba(255, 107, 107, 0.34);
  background: rgba(255, 107, 107, 0.1);
  text-shadow: none;
}

.card-action:disabled {
  opacity: 0.58;
  cursor: default;
}

.card-footer__row {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}

.card-attribution {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.card-overflow {
  display: none;
  flex-basis: 100%;
  justify-content: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px dashed var(--card-border);
}

.card-overflow--open {
  display: flex;
}

.public-asset-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.public-asset-page__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-asset-page__breadcrumbs a {
  text-decoration: none;
}

.public-asset-page__back-button {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-asset-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.public-asset-page__copy,
.public-asset-page__preview-card,
.public-asset-page__facts {
  border: 1px solid var(--card-border);
  background: rgba(20, 20, 20, 0.82);
  border-radius: var(--card-radius);
  padding: 24px;
}

.public-asset-page__lede {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  font-size: 14px;
}

.public-asset-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.public-asset-page__fact-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.public-asset-page__fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.public-asset-page__fact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.public-asset-page__fact-list strong {
  color: #ffffff;
}

.public-asset-page__preview-stage {
  min-height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%),
    #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow: hidden;
}

.public-asset-page__preview-stage .ascii-canvas {
  max-width: min(100%, 760px);
  max-height: 420px;
  width: auto !important;
  height: auto !important;
}

.public-asset-page__preview-header,
.public-asset-page__preview-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.public-asset-page__preview-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.public-asset-page__preview-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.public-asset-page__preview-hint,
.public-asset-page__preview-readout {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.7;
}

.public-asset-page__preview-controls {
  margin-top: 16px;
  flex-wrap: wrap;
}

.public-asset-page__preview-control-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-asset-page__downloads {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.public-asset-page__downloads-label {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.public-asset-page__download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-asset-page__downloads-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.6;
}

.public-asset-page__preview-status,
.public-asset-page__preview-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.7;
}

.public-asset-page__preview-note {
  margin-top: 14px;
}

.public-asset-page__detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.public-asset-page__related-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.public-asset-page__related-list a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
}

.public-asset-page__related-list a:hover {
  color: #ffffff;
}

.gallery-top-panel {
  padding: 32px 0 20px;
}

.gallery-top-panel--rail-only {
  padding: 18px 0 18px;
}

.gallery-top-panel--rail-only .gallery-top-panel__hero {
  display: none;
}

.gallery-top-panel--rail-only .gallery-top-panel__rail-header {
  padding-top: 0;
}

.gallery-top-panel--rail-only .gallery-top-panel__rail-controls {
  display: none;
}

.gallery-top-panel__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-bg);
}

.gallery-top-panel__copy {
  display: grid;
  gap: 16px;
}

.gallery-top-panel__eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.gallery-top-panel__eyebrow,
.gallery-top-panel__rail-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.gallery-top-panel__rank {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.gallery-top-panel__title {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #ffffff;
  max-width: none;
}

.gallery-top-panel__body {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.gallery-top-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-top-panel__tag {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-top-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-top-panel__actions .button-link {
  margin-top: 0;
}

.gallery-top-panel__playback {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.gallery-top-panel__playback-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

.gallery-top-panel__playback-time {
  color: rgba(255, 255, 255, 0.88);
}

.gallery-top-panel__progress {
  position: relative;
  overflow: hidden;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.gallery-top-panel__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #ffffff;
}

.gallery-top-panel__visual-shell {
  width: min(100%, 720px);
  height: 420px;
  margin-left: auto;
}

.gallery-top-panel__stage-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-top-panel__media-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--card-radius);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #f0f0f0;
  pointer-events: none;
}

.gallery-top-panel__visual {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-top-panel__visual:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.gallery-top-panel__visual .ascii-canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  box-shadow: none;
}

.gallery-top-panel__stage-empty {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-top-panel__rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 12px;
}

.gallery-top-panel__rail-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-top-panel__rail-position {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
}

.gallery-top-panel__rail-control {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
}

.gallery-top-panel__rail-control:hover,
.gallery-top-panel__rail-control:focus-visible {
  border-color: #555555;
  color: #ffffff;
}

.gallery-top-panel__rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 0 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.leaderboard-rail-card {
  position: relative;
  min-width: 0;
  flex: 0 0 max(220px, calc((100% - 64px) / 5));
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--card-bg);
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  scroll-snap-align: start;
}

.leaderboard-rail-card:hover,
.leaderboard-rail-card:focus-visible {
  border-color: #444444;
  outline: none;
}

.leaderboard-rail-card.is-active {
  border-color: rgba(255, 255, 255, 0.7);
  background: #1e1e1e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.leaderboard-rail-card.is-active:hover {
  border-color: rgba(255, 255, 255, 0.85);
}

.leaderboard-rail-card__visual {
  position: relative;
  height: 150px;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.leaderboard-rail-card__visual .ascii-canvas {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  box-shadow: none;
}

.leaderboard-rail-card__copy {
  display: grid;
  gap: 6px;
}

.leaderboard-rail-card__eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.leaderboard-rail-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.leaderboard-rail-card__meta {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.52);
}


.leaderboard-rail-card__media-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--card-radius);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #f0f0f0;
  pointer-events: none;
}

.leaderboard-rail-card__placeholder {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34);
}

.export-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 24px);
  background: rgba(0, 0, 0, 0.72);
  overflow: auto;
  overscroll-behavior: contain;
}

.export-modal__panel {
  width: min(520px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111111;
  padding: clamp(18px, 2vw, 28px);
  display: grid;
  gap: 20px;
}

.export-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.export-modal__title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.export-modal__formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.export-modal__format-btn {
  padding: 10px 8px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-align: center;
}

.export-modal__format-btn:hover,
.export-modal__format-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.export-modal__format-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.app-error {
  grid-column: 1 / -1;
  padding: 20px 24px;
  border: 1px solid #533;
  background: #1d1010;
  color: #f0d7d7;
  line-height: 1.6;
}

.info-section {
  padding: 24px 0 0;
}

.info-section--center {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.info-section--center .info-card__body {
  max-width: 100%;
}

.info-section--center .info-card {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px 0 0;
  background: transparent;
}

.info-section--center .info-card__title {
  font-size: 24px;
  line-height: 1.15;
  max-width: none;
}

.info-card {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 32px 0 56px;
}

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

.pricing-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.plan-card {
  position: relative;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
  padding: 28px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.plan-card--featured {
  border-color: rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%),
    rgba(20, 20, 20, 0.96);
}

.plan-card__label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.plan-card__title {
  margin-top: 16px;
  font-size: 24px;
  line-height: 1.15;
  color: #ffffff;
}

.plan-card__price {
  margin-top: 28px;
  font-size: 42px;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.plan-card__features {
  list-style: none;
  margin-top: 24px;
  margin-bottom: auto;
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.7;
}

.plan-card .button-link {
  width: 100%;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--card-radius);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  color: #ffffff;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.button-link:hover {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.button-link--solid {
  background: #ffffff;
  color: #111111;
}

.button-link--solid:hover {
  background: rgba(255, 255, 255, 0.88);
  color: #111111;
}

.button-link.button-link--locked,
.button-link.button-link--locked:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.12);
  cursor: not-allowed;
  opacity: 0.85;
}

.button-link.button-link--locked svg {
  opacity: 0.85;
}

.button-link--danger {
  border-color: rgba(255, 93, 93, 0.5);
  color: #ff8a8a;
}

.button-link--danger:hover {
  border-color: rgba(255, 120, 120, 0.85);
  color: #ffffff;
}

.button-link--oauth {
  gap: 10px;
  justify-content: center;
  text-transform: none;
  letter-spacing: 0.06em;
}

.oauth-provider-mark {
  flex: 0 0 auto;
  display: block;
}

.not-found-page {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1 / 1;
  min-height: auto;
  margin: 96px auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 36px;
  text-align: center;
}

.not-found-page__code {
  font-size: clamp(72px, 16vw, 180px);
  line-height: 0.82;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.16);
}

.not-found-page__title {
  margin-top: 18px;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
  color: #ffffff;
  max-width: none;
}

.not-found-page__body {
  margin-top: 24px;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.68);
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.8fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 72px;
}

.login-shell {
  --auth-art-left: 0;
  --auth-art-top: 68%;
  --auth-art-width: clamp(430px, 36vw, 620px);
  --auth-art-opacity: 0.72;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: start;
  padding-top: 72px;
}

.signup-shell {
  --auth-art-left: 96px;
  --auth-art-top: 68%;
  --auth-art-width: clamp(430px, 36vw, 620px);
  --auth-art-opacity: 0.72;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: start;
  padding-top: 72px;
}

.auth-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.auth-shell > .signup-layout {
  position: relative;
  z-index: 1;
}

.auth-art {
  position: absolute;
  top: 50%;
  z-index: 0;
  display: block;
  width: clamp(420px, 34vw, 640px);
  height: auto;
  aspect-ratio: 475 / 504;
  pointer-events: none;
  image-rendering: pixelated;
  opacity: 0.72;
  filter: saturate(1.04);
  transform: translate(var(--auth-art-x, 0), -50%);
}

.auth-art--login,
.auth-art--signup {
  position: fixed;
  top: var(--auth-art-top);
  left: var(--auth-art-left);
  z-index: 20;
  width: var(--auth-art-width);
  opacity: var(--auth-art-opacity);
  transform: translateY(-50%);
}

.auth-art--canvas.auth-art--login,
.auth-art--canvas.auth-art--signup {
  z-index: 0;
  opacity: 1;
}

img[data-auth-art],
img[data-page-art] {
  visibility: hidden;
}

.art-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --page-art-left: clamp(16px, 6vw, 96px);
  --page-art-top: 38vh;
  --page-art-width: clamp(360px, 36vw, 620px);
  --page-art-opacity: 0.46;
  --page-art-aspect: 713 / 756;
}

.art-shell > :not(.page-art) {
  position: relative;
  z-index: 2;
}

.page-art {
  position: absolute;
  top: var(--page-art-top);
  left: var(--page-art-left);
  z-index: 1;
  display: block;
  width: var(--page-art-width);
  height: auto;
  aspect-ratio: var(--page-art-aspect);
  pointer-events: none;
  image-rendering: pixelated;
  opacity: 1;
  filter: saturate(1.04);
  transform: translateY(-50%);
}

.gallery-art-shell {
  --page-art-left: calc(100vw - var(--page-art-width) - clamp(24px, 6vw, 120px) - 288px);
  --page-art-top: calc(34vh + 192px);
  --page-art-width: clamp(390px, 38vw, 660px);
  --page-art-opacity: 0.42;
}

.api-art-shell {
  --page-art-left: calc(clamp(16px, 5vw, 84px) - 96px);
  --page-art-top: calc(34vh + 96px);
  --page-art-width: clamp(390px, 40vw, 680px);
  --page-art-opacity: 0.38;
  --page-art-matte-scale: 0.006;
}

.pricing-art-shell {
  --page-art-left: calc(100vw - var(--page-art-width) - clamp(16px, 5vw, 96px) - 96px);
  --page-art-top: calc(36vh + 96px);
  --page-art-width: clamp(360px, 35vw, 600px);
  --page-art-opacity: 0.44;
  --page-art-matte-scale: 0.006;
}

.page-art--pricing-left {
  top: calc(38vh + 212px);
  left: calc(clamp(0px, 4vw, 72px) - 192px);
  width: clamp(330px, 32vw, 540px);
  --page-art-opacity: 0.42;
}

.my-gallery-art-shell {
  --page-art-left: calc(100vw - var(--page-art-width) - clamp(8px, 4vw, 76px) - 96px);
  --page-art-top: 43vh;
  --page-art-width: clamp(270px, 26vw, 430px);
  --page-art-opacity: 0.48;
  --page-art-matte-scale: 0.006;
  --page-art-aspect: 634 / 1008;
}

.account-art-shell {
  --page-art-left: clamp(12px, 7vw, 120px);
  --page-art-top: 48vh;
  --page-art-width: clamp(330px, 34vw, 560px);
  --page-art-opacity: 0.42;
}

.login-layout {
  width: 100%;
  align-items: start;
  padding-bottom: 0;
}

.signup-layout--centered {
  width: 100%;
  align-items: start;
  padding-bottom: 0;
}

.login-layout .page-copy {
  padding-top: 0;
  padding-bottom: 0;
}

.signup-layout--centered .page-copy {
  padding-top: 0;
  padding-bottom: 0;
}

.login-layout .signup-panel {
  margin-top: 0;
}

.signup-layout--centered .signup-panel {
  margin-top: 0;
}

.signup-panel {
  position: relative;
  margin-top: 72px;
  background: rgba(20, 20, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px;
}

.signup-form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 10px;
}

.field__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.field__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.02);
  color: #ffffff;
  font: inherit;
}

.field__input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.field__input--select {
  appearance: auto;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field__input--color {
  min-height: 52px;
  padding: 8px;
}

.field__input--textarea {
  min-height: 140px;
  padding-top: 14px;
  resize: vertical;
}

.form-status {
  padding: 12px 14px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.6;
  min-height: 48px;
}

.form-status--empty {
  visibility: hidden;
  pointer-events: none;
}

.form-status--error {
  border-color: rgba(173, 89, 89, 0.45);
  background: rgba(86, 20, 20, 0.42);
  color: #f0d7d7;
}

.form-status--success {
  border-color: rgba(125, 173, 129, 0.4);
  background: rgba(19, 52, 23, 0.4);
  color: #d6ead7;
}

.auth-meta {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.auth-meta a {
  color: #ffffff;
}

.account-shell {
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 96px;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 48px;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 24px;
}

.account-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #7094c0, #6fd8ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}

.account-identity {
  display: grid;
  gap: 4px;
}

.account-name {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
}

.account-handle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}

.handle-edit-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.handle-prefix {
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  flex-shrink: 0;
}

.handle-availability {
  font-size: 11px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.handle-availability[data-state="available"] {
  color: #7ad8a0;
}

.handle-availability[data-state="taken"] {
  color: #f09090;
}

.handle-availability[data-state="invalid"] {
  color: #f09090;
}

.handle-availability[data-state="error"] {
  color: #f09090;
}

.handle-availability[data-state="checking"] {
  color: rgba(255, 255, 255, 0.3);
}

.handle-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.handle-action-btn {
  font-size: 11px;
}

.handle-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.22);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.account-section {
  padding: 48px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.account-section--compact {
  padding: 32px 0;
}

.account-section:last-child {
  border-bottom: none;
}

.account-section__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 18px;
}

.account-section__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}

.account-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.account-setting-row:last-child {
  border-bottom: none;
}

.account-setting-row__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2px;
}

.account-setting-row .account-copy {
  margin-top: 0;
  font-size: 12px;
}

.account-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}

.account-card--plan {
  background: linear-gradient(135deg, rgba(112, 148, 192, 0.14), rgba(111, 216, 255, 0.09));
  border-color: rgba(111, 216, 255, 0.22);
  align-items: flex-start;
}

.account-card__info {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.account-card__benefits {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  max-width: 52ch;
}

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

.account-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.account-stat {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 32px;
  display: grid;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.account-stat:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.14);
}

.account-stat__value {
  font-size: 32px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
}

.account-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.account-title {
  font-size: 32px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.04em;
  text-transform: capitalize;
}

.account-copy {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.account-detail-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.account-detail-list div {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.account-detail-list dt {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
}

.account-detail-list dd {
  margin: 0;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.account-sub-status[data-sub-state="active"] {
  color: #7ad8a0;
}

.account-sub-status[data-sub-state="trialing"] {
  color: #7ad8a0;
}

.account-sub-status[data-sub-state="past_due"] {
  color: #f0b070;
}

.account-sub-status[data-sub-state="canceled"] {
  color: rgba(255, 255, 255, 0.38);
}

.account-sub-status[data-sub-state="unpaid"] {
  color: #f09090;
}

.account-pastdue-warning {
  margin-top: 10px;
  color: #f0b070;
}

.perk-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.account-card__benefits .perk-list {
  margin-top: 0;
}

.perk-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 12px;
}

.perk-list li::before {
  content: '→';
  color: #6fd8ff;
  font-size: 12px;
}

.credit-pack-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.billing-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.billing-consent input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
}

.billing-consent a {
  color: #ffffff;
}

.billing-consent-status {
  margin-top: 12px;
}

.account-actions {
  margin-top: 32px;
}

.editable-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: text;
}

.editable-input-wrapper:hover .edit-indicator {
  opacity: 1;
}

.editable-input-field {
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  padding: 2px 0;
  width: auto;
  max-width: 200px;
  outline: none;
  transition: border-color 0.2s, color 0.2s;
}

.editable-input-field:focus {
  border-bottom: 1px solid #6fd8ff;
  color: #fff;
}

.edit-indicator {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.empty-panel {
  display: grid;
  gap: 14px;
}

.empty-panel__body {
  max-width: 54ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.68);
}

.my-gallery-shell {
  padding-bottom: 64px;
}

.my-gallery-shell .page-copy--wide {
  width: min(100%, 1120px);
  max-width: 1120px;
}

.my-gallery-shell .page-copy {
  padding-bottom: 28px;
}

.my-gallery-shell .page-copy__title {
  font-size: clamp(22px, 7vw, 58px);
  white-space: nowrap;
}

.my-gallery-shell .page-copy__body {
  max-width: none;
}

.generation-panel {
  margin-top: 0;
  margin-bottom: 24px;
  width: min(100%, 1120px);
  margin-left: auto;
  margin-right: auto;
  padding: 14px 20px 20px;
  border-radius: var(--card-radius);
}

.generation-panel .signup-form {
  gap: 12px;
}

.generation-panel .workflow-switch--compact {
  margin-bottom: 10px;
}

.generation-upload-panel {
  display: grid;
  gap: 14px;
  padding: 10px 0 4px;
}

.generation-upload-panel__eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.generation-upload-panel__title {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #ffffff;
  max-width: none;
}

.generation-upload-panel__copy {
  max-width: 72ch;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.68);
}

.generation-upload-panel__note {
  display: block;
}

.generation-upload-panel__actions {
  display: flex;
  justify-content: flex-end;
}

.generation-upload-panel__actions .button-link {
  white-space: nowrap;
}

.generation-panel .field {
  gap: 6px;
}

.generation-panel .field__input--textarea {
  min-height: 92px;
}

.generation-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 10px;
}

.generation-panel__summary {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.generation-panel__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.generation-panel__meta-toggle {
  appearance: none;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.15s ease;
}

.generation-panel__meta-toggle:hover,
.generation-panel__meta-toggle:focus-visible {
  color: rgba(255, 255, 255, 0.82);
}

hr.generation-panel__divider {
  border: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
  margin: 10px 0;
}

hr.generation-panel__divider + .section-divider {
  border-top: 0;
}

#favourites-section .section-divider {
  border-top-style: dashed;
  border-top-color: rgba(255, 255, 255, 0.22);
}

.my-gallery-shell .section-divider__label,
.my-gallery-shell .section-divider__button {
  color: #ffffff;
}

.generation-panel__upload-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.generation-panel__copy {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
}

.generation-panel__meta {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.generation-panel__meta p {
  margin: 0;
}

.generation-animation-options {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.02);
}

.generation-animation-options[hidden] {
  display: none;
}

.generation-animation-options__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.generation-animation-options__hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
  line-height: 1.5;
}

.generation-base-image {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.generation-base-image:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.05);
}

.generation-base-image--attached {
  border-style: solid;
  border-color: rgba(120, 220, 180, 0.5);
  background: rgba(120, 220, 180, 0.06);
  color: #79e6b8;
}

.generation-base-image__icon {
  display: inline-flex;
  align-items: center;
}

.generation-base-image__label {
  letter-spacing: 0.04em;
}

.generation-base-image__remove {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
  opacity: 0.7;
}

.generation-base-image__remove:hover {
  opacity: 1;
}

.generation-loop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.generation-loop-toggle input[type="checkbox"] {
  accent-color: #79e6b8;
}

.generation-panel__actions {
  display: flex;
  justify-content: flex-end;
}

.generation-panel__actions .button-link {
  margin-top: 0;
}

.generation-panel .button-link {
  min-height: 40px;
}

.generation-panel__upload-row .button-link {
  margin-top: 0;
}

.generation-mode {
  border: none;
  padding: 0;
  margin: 0 0 2px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.generation-mode legend {
  padding: 0;
  margin-bottom: 4px;
  width: 100%;
  color: rgba(255, 255, 255, 0.46);
}

.generation-mode__option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
  user-select: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.generation-mode__option:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.generation-mode__option:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: 2px;
}

.generation-mode__option:has(input:checked) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.generation-mode__option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  pointer-events: none;
}

.billing-actions,
.credit-pack-actions,
.upgrade-panel__actions,
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.billing-actions .button-link,
.credit-pack-actions .button-link,
.upgrade-panel__actions .button-link,
.account-actions .button-link {
  margin-top: 0;
}

.credit-pack-actions {
  padding-top: 6px;
}

.credit-pack-actions--pricing {
  margin-top: 12px;
}

.upgrade-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.upgrade-panel__title {
  font-size: 16px;
  color: #ffffff;
}

.upgrade-panel__body {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.66);
}

.my-gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
}

#favourites-section+.section-divider,
.my-gallery-toolbar {
  margin-top: 0;
}

.my-gallery-toolbar__copy {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.my-gallery-toolbar .button-link,
.empty-panel .button-link,
.upload-modal__header .button-link,
.upload-dropzone .button-link {
  margin-top: 0;
}

#my-gallery-grid,
[data-favourites-grid] {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--asset-card-min)), 1fr));
  gap: var(--asset-card-gap);
}

:is(.upload-modal, .editor-modal, .asset-preview-modal, .details-modal),
.art-shell > :is(.upload-modal, .editor-modal, .asset-preview-modal, .details-modal) {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 24px);
  overflow: auto;
  overscroll-behavior: contain;
}

.details-modal {
  z-index: 55;
  background: rgba(0, 0, 0, 0.82);
}

.details-modal__panel {
  width: min(480px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--card-radius);
  background: #111111;
  padding: 24px;
  display: grid;
  gap: 20px;
}

.details-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.details-modal__title {
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
}

.details-modal__form {
  display: grid;
  gap: 16px;
}

.details-modal__field {
  display: grid;
  gap: 8px;
}

.details-modal__field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.details-modal__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.details-modal__counter {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.details-modal__counter--limit {
  color: #ff8a8a;
}

.details-modal__input,
.details-modal__textarea {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
  color: #ffffff;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.details-modal__input:focus,
.details-modal__textarea:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: #222222;
}

.details-modal__textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.details-modal__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.details-modal__actions .button-link {
  margin-top: 0;
}

.onboarding-modal {
  z-index: 65;
  background: transparent;
  pointer-events: none;
}

.onboarding-modal__panel {
  width: min(520px, calc(100vw - 28px));
  position: fixed;
  margin: 0;
  pointer-events: auto;
  border-color: rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(18, 18, 18, 0.96);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.58);
}

.onboarding-modal__panel::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: #141414;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  transform: rotate(45deg);
}

.onboarding-modal__panel[data-side='right']::after {
  left: -8px;
  top: 28px;
}

.onboarding-modal__panel[data-side='left']::after {
  right: -8px;
  top: 28px;
  transform: rotate(225deg);
}

.onboarding-modal__panel[data-side='top']::after {
  left: 28px;
  bottom: -8px;
  transform: rotate(225deg);
}

.onboarding-modal__panel[data-side='bottom']::after {
  left: 28px;
  top: -8px;
  transform: rotate(45deg);
}

.onboarding-modal__panel[data-side='center']::after {
  display: none;
}

.onboarding-modal__title-wrap {
  display: grid;
  gap: 6px;
}

.onboarding-modal .details-modal__header {
  align-items: flex-start;
}

.onboarding-modal .details-modal__title {
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.onboarding-modal__eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.onboarding-modal__body {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.onboarding-modal__progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22px, 1fr));
  gap: 6px;
}

.onboarding-modal__progress-dot {
  width: 100%;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-block;
}

.onboarding-modal__progress-dot.is-active {
  background: rgba(255, 255, 255, 0.92);
}

.onboarding-modal__progress-dot.is-complete {
  background: rgba(255, 255, 255, 0.46);
}

.onboarding-modal .details-modal__actions {
  justify-content: space-between;
  flex-wrap: wrap;
}

.onboarding-target--active {
  position: relative;
  z-index: 60;
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 10px;
  border-radius: 8px;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.18),
    0 18px 48px rgba(0, 0, 0, 0.28);
  transition: outline-offset 0.18s ease, box-shadow 0.18s ease, border-radius 0.18s ease;
}

@media (max-width: 760px) {
  .onboarding-modal__panel {
    width: calc(100vw - 28px);
  }

  .onboarding-modal__panel::after {
    left: 22px;
  }

  .onboarding-modal .details-modal__actions {
    gap: 10px;
  }
}

.upload-modal {
  z-index: 40;
  background: rgba(0, 0, 0, 0.72);
}

.upload-modal__panel {
  width: min(720px, 100%);
  max-width: 100%;
  max-height: min(90dvh, calc(100vh - 24px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #111111;
  padding: clamp(18px, 2vw, 28px);
  display: grid;
  gap: 18px;
  overflow: auto;
  min-height: 0;
}

.upload-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.upload-modal__title {
  font-size: 28px;
  line-height: 1.1;
  color: #ffffff;
}

.upload-dropzone {
  padding: clamp(24px, 5vw, 42px) clamp(18px, 4vw, 28px);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 14px;
  justify-items: start;
}

.upload-dropzone--active {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.upload-dropzone__title {
  font-size: 20px;
  color: #ffffff;
}

.upload-dropzone__body {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.upload-dropzone__button {
  position: relative;
  overflow: hidden;
}

.upload-dropzone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-loop-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.upload-loop-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.upload-loop-option__hint {
  max-width: 360px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Editor Modal (framed customize UI) ─────────────────────────────── */

.editor-modal {
  z-index: 50;
  inset: 0;
  place-items: center;
  padding: clamp(14px, 6.25vw, 88px);
  background: rgba(4, 4, 4, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: auto;
}

.editor-modal__panel {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.52);
  background: #0c0c0c;
  display: grid;
  overflow: hidden;
  grid-template-rows: 48px minmax(0, 1fr);
}

/* Top bar */
.editor-topbar {
  display: flex;
  align-items: center;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0c0c;
}

.editor-topbar__title {
  flex: 0 0 auto;
  padding-right: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.editor-topbar__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.editor-topbar__actions--exports {
  flex: 1 1 0;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
  padding: 0 8px;
}

.editor-topbar__actions--exports::-webkit-scrollbar {
  display: none;
}

.editor-topbar__actions--exports .editor-prop-row {
  min-height: 28px;
  padding: 0 0 0 6px;
  border-bottom: 0;
  gap: 8px;
  flex-shrink: 0;
}

.editor-topbar__actions--exports .editor-prop-row__label {
  min-width: 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-topbar__actions--save {
  flex: 0 0 auto;
  padding-left: 12px;
  justify-content: flex-end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.editor-save-cta {
  display: inline-block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-right: 8px;
  white-space: nowrap;
}

.editor-save-cta a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.editor-save-cta a:hover {
  color: #ffffff;
}

.editor-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--card-radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s, color 0.12s;
  text-decoration: none;
}

.editor-action-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.editor-action-btn--primary {
  background: #ffffff;
  border-color: #ffffff;
  color: #0c0c0c;
}

.editor-action-btn--primary:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
  color: #0c0c0c;
}

.editor-topbar__close {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-left: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}

.editor-topbar__close:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

/* Preview footer: summary + animation controls in one row */
.editor-preview__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  height: 36px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-anim-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.editor-anim-controls__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}

.editor-anim-controls__play:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.editor-anim-controls__time,
.editor-anim-controls__duration {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.editor-anim-controls__scrubber {
  flex: 1;
  min-width: 0;
  height: 2px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  border-radius: 2px;
  outline: none;
}

.editor-anim-controls__scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.1s;
}

.editor-anim-controls__scrubber::-webkit-slider-thumb:hover {
  background: #ffffff;
}

.editor-anim-controls__scrubber::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

/* Workspace */
.editor-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) minmax(280px, 340px);
  min-height: 0;
  overflow: hidden;
}

/* Preview area */
.editor-preview {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  min-width: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 52%),
    #090909;
}

.editor-preview__stage {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
  position: relative;
}

.model-viewer__surface {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: grab;
  touch-action: none;
}

.model-viewer__surface:active {
  cursor: grabbing;
}

.editor-prop-row--toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-prop-row--toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.editor-preview__canvas {
  display: block;
  width: auto;
  height: auto;
  border: 1px solid #1a1a1a;
  background: #000000;
}

.editor-preview__summary {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.32);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sidebar */
.editor-sidebar {
  overflow-y: auto;
  overflow-x: hidden;
  background: #0e0e0e;
}

.editor-sidebar--left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-sidebar--right {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* Property groups */
.editor-prop-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.editor-prop-group--bottom {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-prop-group__header {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}

/* Property rows */
.editor-prop-row {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.editor-prop-row__label {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 82px;
}

/* Compact number input */
.editor-prop-input {
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 12px;
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}

.editor-prop-input::-webkit-outer-spin-button,
.editor-prop-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.editor-prop-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
}

/* Compact select */
.editor-prop-select {
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0 22px 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1L5 5L9 1' stroke='rgba(255,255,255,0.35)' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 12px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color-scheme: dark;
}

.editor-prop-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
}

.editor-prop-select option {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.85);
}

.editor-prop-select option:checked {
  background: #2a2a2a;
  color: #ffffff;
}

/* Color input */
.editor-prop-color {
  height: 26px;
  width: 52px;
  margin-left: auto;
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  flex-shrink: 0;
}

.editor-prop-color:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.22);
}

/* Preset chips row */
.editor-prop-row--chips {
  flex-wrap: wrap;
  padding: 8px 14px;
  gap: 5px;
  min-height: unset;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--card-radius);
}

.editor-chip {
  height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--card-radius);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.editor-chip:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.9);
}

.asset-preview-modal {
  z-index: 45;
  background: rgba(0, 0, 0, 0.88);
}

.asset-preview-modal__panel {
  width: min(1100px, 92vw);
  max-width: 100%;
  height: min(86dvh, calc(100vh - 56px));
  overflow: hidden;
  border: 0;
  background: transparent;
  padding: clamp(14px, 1.75vw, 20px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
}

.asset-preview-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.asset-preview-modal__header .button-link {
  margin-top: 0;
}

.asset-preview-modal__title {
  flex: 1;
  min-width: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
  color: #ffffff;
  max-width: none;
  margin-left: 18px;
}

.asset-preview-modal__stage {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-width: 0;
}

.asset-preview-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  position: relative;
  min-width: 0;
  min-height: 0;
}

.asset-preview-modal__frame .ascii-canvas {
  width: auto;
  height: auto;
  display: block;
}

.asset-preview-modal__meta {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.68);
  min-width: 0;
  margin-top: 6px;
  padding-left: 18px;
}

.asset-preview-modal__downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  padding-left: 18px;
}

.asset-preview-modal__downloads .button-link {
  min-height: 40px;
  margin-top: 0;
  padding: 0 14px;
  white-space: nowrap;
}


body.modal-open {
  overflow: hidden;
}

body.modal-open .site-header {
  visibility: hidden;
}

/* ── Editor prop-row variants ───────────────────────────────────────── */

.editor-prop-row--slider {
  flex-direction: column;
  align-items: stretch;
  padding: 8px 14px 11px;
  gap: 6px;
  min-height: unset;
}

.editor-prop-row__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editor-prop-row__value {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
}

.editor-prop-row--stack {
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 14px 10px;
  gap: 7px;
  min-height: unset;
}

.editor-chip-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255, 255, 255, 0.1);
  margin: 2px 4px;
}

.editor-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
}

.editor-prop-group__note {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.2);
  text-transform: none;
  margin-left: 4px;
}

.editor-prop-group__reset {
  margin-left: auto;
  font: inherit;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.12s;
}

.editor-prop-group__reset:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Range slider ───────────────────────────────────────────────────── */

.editor-prop-slider {
  width: 100%;
  height: 2px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
  cursor: pointer;
  border-radius: 0;
  padding: 0;
  border: none;
}

.editor-prop-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  margin-top: 0;
}

.editor-prop-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.editor-prop-slider::-webkit-slider-runnable-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.editor-prop-slider::-moz-range-track {
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}

/* ── Toggle switch ──────────────────────────────────────────────────── */

.editor-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

.editor-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.editor-toggle__track {
  position: relative;
  width: 32px;
  height: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.editor-toggle__track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transition: transform 0.15s, background 0.15s;
}

.editor-toggle__input:checked+.editor-toggle__track {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
}

.editor-toggle__input:checked+.editor-toggle__track::after {
  transform: translateX(14px);
  background: #ffffff;
}

.editor-chip--active {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

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

@media (max-width: 1120px) {
  .site-header__inner {
    padding-top: 16px;
  }

  .site-footer {
    margin-top: 56px;
  }

  .page-copy {
    padding-top: 56px;
  }

  .gallery-top-panel__hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-top-panel__title {
    max-width: none;
  }

  .gallery-top-panel__visual-shell {
    width: 100%;
    height: 360px;
    margin-left: 0;
  }

  .gallery-toolbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gallery-toolbar__filters {
    grid-column: 1;
    gap: 16px;
  }

  .gallery-search {
    grid-column: 1;
    width: 100%;
  }

  .gallery-toolbar__meta {
    grid-column: 1;
    justify-self: start;
    text-align: left;
  }

  .signup-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .login-shell,
  .signup-shell {
    min-height: auto;
    display: block;
  }

  .login-layout,
  .signup-layout--centered {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .signup-panel {
    margin-top: 0;
  }

  .api-section-grid--two,
  .api-section-grid--three {
    grid-template-columns: 1fr;
  }

  .api-section--two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 40px 0 40px;
  }

  .guest-upload-section {
    width: 100%;
  }

  :root {
    --page-gutter: 16px;
  }

  .page-shell {
    padding-bottom: 32px;
  }

  .site-header__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 14px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-brand,
  .site-nav__link {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .site-brand {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .site-nav__link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .art-shell {
    --page-art-top: 38vh;
    --page-art-width: clamp(240px, 72vw, 380px);
    --page-art-opacity: 0.26;
  }

  .gallery-art-shell,
  .pricing-art-shell,
  .my-gallery-art-shell {
    --page-art-left: calc(100vw - var(--page-art-width) - 8px);
  }

  .api-art-shell,
  .account-art-shell {
    --page-art-left: 8px;
  }

  .my-gallery-art-shell {
    --page-art-width: clamp(180px, 52vw, 300px);
    --page-art-top: 42vh;
  }

  .login-shell,
  .signup-shell {
    --auth-art-top: 66%;
    --auth-art-width: clamp(300px, 68vw, 430px);
    --auth-art-opacity: 0.34;
  }

  .signup-shell {
    --auth-art-left: 32px;
  }

  .auth-art {
    width: clamp(320px, 72vw, 460px);
    opacity: 0.34;
  }

  .auth-art--login,
  .auth-art--signup {
    top: var(--auth-art-top);
    left: var(--auth-art-left);
    z-index: 20;
    width: var(--auth-art-width);
    opacity: var(--auth-art-opacity);
  }

  #hero-planet {
    top: 28px;
    right: -20px;
    transform: none;
    width: clamp(180px, 46vw, 260px);
    height: auto;
    opacity: 0.42;
  }

  .hero {
    max-width: 100%;
  }

  .hero__body {
    margin-top: 18px;
    max-width: 42ch;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero__actions {
    margin-top: 24px;
    gap: 10px;
  }

  .guest-panel__segment {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .guest-panel__footer {
    gap: 16px;
    margin-top: 16px;
  }

  .api-section {
    width: 100%;
    margin-top: 48px;
  }

  .api-key-create-row {
    flex-direction: column;
    align-items: stretch;
  }

  .api-key-create-row .button-link {
    width: 100%;
    justify-content: center;
  }

  .legal-meta {
    grid-template-columns: 1fr;
  }

  .api-key-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 0;
    margin-bottom: 32px;
  }

  .account-header-actions,
  .account-card,
  .account-setting-row {
    width: 100%;
  }

  .account-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

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

  .page-copy__title,
  .info-card__title,
  .page-copy__title--wide,
  .info-card__title--small {
    max-width: none;
  }

  #app,
  #my-gallery-grid,
  [data-favourites-grid],
  [data-community-grid],
  [data-community-picks-grid] {
    gap: 16px;
  }

  .gallery-top-panel {
    padding-top: 32px;
  }

  .gallery-top-panel__hero {
    padding: 22px;
    gap: 24px;
    border-radius: 8px;
  }

  .gallery-top-panel__visual-shell {
    height: 300px;
  }

  .gallery-top-panel__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-top-panel__actions .button-link {
    width: 100%;
  }

  .not-found-page {
    width: min(100%, 420px);
    aspect-ratio: 1 / 1;
    margin: 72px auto 56px;
    padding: 38px 18px;
  }

  .gallery-top-panel__rail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-top-panel__rail-controls {
    width: 100%;
    justify-content: space-between;
  }

  .gallery-top-panel__rail {
    padding-bottom: 10px;
  }

  .leaderboard-rail-card {
    flex-basis: min(250px, calc(100vw - 32px));
  }

  .gallery-pagination {
    justify-content: flex-start;
  }

  .my-gallery-toolbar,
  .billing-actions,
  .credit-pack-actions,
  .upgrade-panel__actions,
  .upload-modal__header,
  .asset-preview-modal__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(320px, 44dvh) minmax(0, auto) minmax(0, auto);
  }

  .editor-modal {
    padding: 12px;
  }

  .editor-sidebar {
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .editor-sidebar--left {
    order: 2;
    display: block;
  }

  .editor-sidebar--right {
    order: 3;
    border-left: none;
  }

  .editor-preview {
    order: 1;
  }
}

/* ─── Community grid (matches #app layout) ─────────────────────────────── */
[data-community-grid] {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--asset-card-min)), 1fr));
  gap: var(--asset-card-gap);
}

[data-community-picks-grid] {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--asset-card-min)), 1fr));
  gap: var(--asset-card-gap);
}

/* ─── Step-by-step progress indicators ─────────────────────────────────── */
.job-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 8px;
}

.job-step {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

.job-step+.job-step::before {
  content: ' → ';
  color: rgba(255, 255, 255, 0.1);
}

.job-step--active {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.job-step--done {
  color: rgba(255, 255, 255, 0.38);
}

/* ─── Similar animations row ────────────────────────────────────────────── */
.similar-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
}

.similar-row__label {
  grid-column: 1 / -1;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Guest generate panel ──────────────────────────────────────────────── */
.guest-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.guest-panel__view {
  display: grid;
  gap: 12px;
}

.guest-panel__segment {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 0;
}

.guest-panel__segment:first-child {
  padding-top: 0;
  gap: 14px;
}

.guest-panel__segment:last-child {
  padding-bottom: 0;
}

.guest-panel__divider {
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-panel__divider span {
  position: absolute;
  background: #0b0b0b;
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.guest-panel__eyebrow {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
}

.guest-trial-count {
  color: rgba(255, 255, 255, 0.62);
}

.guest-panel__subtext {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-top: -8px;
}

.guest-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.guest-presets__label {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
  margin-right: 2px;
}

.guest-preset-chip {
  height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.guest-preset-chip:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.guest-prompt-input {
  width: 100%;
  min-height: 120px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: var(--card-radius);
  color: var(--text-main);
  font: inherit;
  font-size: 18px;
  line-height: 1.6;
  outline: none;
  resize: none;
  transition: border-color 0.12s;
}

.guest-prompt-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.guest-prompt-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

.guest-turnstile {
  display: flex;
  justify-content: flex-start;
  min-height: 66px;
}

.guest-attachment {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.12);
  margin-top: 4px;
}

.guest-attachment__filename {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.guest-attachment__loop {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.guest-attachment__loop input[type="checkbox"] {
  cursor: pointer;
  accent-color: rgba(255, 255, 255, 0.7);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.guest-attachment__remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0 4px;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.1s;
}

.guest-attachment__remove:hover {
  color: rgba(255, 255, 255, 0.85);
}

.guest-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
  margin-top: 20px;
}

.guest-panel__footer--single {
  justify-content: flex-end;
}

.guest-attach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, transform 0.12s;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.guest-attach-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.guest-panel__footer .button-link {
  margin-top: 0;
  min-height: 52px;
  font-size: 15px;
  padding: 0 24px;
}

.guest-panel__footer--single .button-link {
  width: auto;
}

.guest-panel--drag-over .guest-prompt-input {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.guest-panel--drag-over.guest-panel {
  background: rgba(255, 255, 255, 0.02);
}

.guest-generate-gate {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
}

.guest-generate-gate a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guest-generate-gate a:hover {
  color: #ffffff;
}

.guest-panel--gated [data-guest-mode-panel="generate"] {
  opacity: 0.3;
  pointer-events: none;
}

/* ─── Guest upload section ──────────────────────────────────────────────── */
.guest-upload-section {
  display: grid;
  gap: 18px;
  flex-shrink: 0;
  width: min(540px, 100%);
  margin-bottom: 0;
}

html.auth-state-loading.auth-session-hint [data-guest-upload] {
  visibility: hidden;
}

body.is-authenticated [data-guest-upload] {
  display: none;
}

.guest-result {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  width: min(100%, 560px);
  margin-inline: auto;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.03);
}

.guest-result__summary {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.guest-result__note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
}

.guest-result__note a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guest-result__note a:hover {
  color: #ffffff;
}

.guest-result__footer {
  margin-top: 4px;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
}

.guest-result__footer .button-link--solid {
  flex: 1 1 auto;
  justify-content: center;
}

.guest-result__footer .button-link:not(.button-link--solid) {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .account-profile,
  .account-header-actions,
  .account-card__actions,
  .credit-pack-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .account-avatar {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .account-name {
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .handle-edit-row {
    flex-wrap: wrap;
  }

  .account-grid,
  .account-detail-list {
    grid-template-columns: 1fr;
  }

  .account-stat {
    padding: 24px;
  }

  .account-stat__value {
    font-size: 28px;
  }

  .account-setting-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-setting-row .button-link,
  .account-header-actions .button-link,
  .credit-pack-actions .button-link {
    width: 100%;
    justify-content: center;
  }

  .guest-result {
    width: 100%;
  }

  .guest-result__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .guest-result__footer .button-link,
  .guest-result__footer .button-link--solid {
    width: 100%;
    justify-content: center;
  }
}

.admin-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.admin-header,
.admin-panel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: .92;
}

.admin-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-range {
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-range select {
  min-width: 140px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  text-transform: none;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .76rem;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-search input {
  width: min(280px, 42vw);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  text-transform: none;
}

.admin-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.admin-grid--metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.admin-metric,
.admin-panel {
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, .78);
  border-radius: 8px;
}

.admin-metric {
  padding: 16px;
}

.admin-metric__label,
.admin-metric__detail,
.admin-panel__header p,
.admin-event p {
  margin: 0;
  color: var(--muted);
}

.admin-metric__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
}

.admin-metric__value {
  margin: 8px 0 6px;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
}

.admin-panel {
  padding: 18px;
  overflow: hidden;
}

.admin-panel--wide {
  margin-top: 18px;
}

.admin-panel__header {
  margin-bottom: 14px;
}

.admin-panel__header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-chart {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: block;
}

.admin-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.admin-list-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  font-family: var(--font-mono);
  font-size: .82rem;
}

.admin-list-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-row strong {
  color: var(--text);
}

.admin-list-row i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  opacity: .7;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: .82rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .7rem;
}

.admin-event-list {
  display: grid;
  gap: 10px;
  max-height: 480px;
  overflow: auto;
  padding-right: 6px;
}

.admin-event {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  background: rgba(0, 0, 0, .28);
}

.admin-event__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: .78rem;
}

.admin-event__top strong {
  color: var(--accent);
}

.admin-event__top span {
  color: var(--muted);
  white-space: nowrap;
}

.admin-event pre {
  margin: 8px 0 0;
  max-height: 170px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: .72rem;
  color: var(--text);
}

@media (max-width: 960px) {
  .admin-grid--metrics,
  .admin-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 28px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-grid--metrics,
  .admin-grid--two {
    grid-template-columns: 1fr;
  }

  .admin-event__top {
    display: grid;
  }
}

/* ── Admin v2 enhancements ──────────────────────────────────────────────────── */

.admin-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  margin-top: 14px;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
  transition: border-color .2s, background .2s;
}

.admin-statusbar--ok {
  border-color: rgba(111,207,151,.35);
  background: rgba(111,207,151,.06);
}

.admin-statusbar--error {
  border-color: rgba(255,107,107,.35);
  background: rgba(255,107,107,.06);
  color: #ff9999;
}

.admin-section {
  margin-top: 32px;
}

.admin-section-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 600;
}

.admin-grid--alltime {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.admin-metric--accent .admin-metric__value {
  color: #ffbf69;
}

.admin-panel__header h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-refresh-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: .78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, background .15s;
}

.admin-btn:hover {
  border-color: var(--accent);
  background: rgba(240,228,198,.06);
}

.admin-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.admin-btn--icon {
  padding: 9px 10px;
}

.admin-btn--toggle {
  min-width: 72px;
  justify-content: center;
}

.admin-btn--paused {
  color: var(--muted);
  border-color: transparent;
}

.admin-btn--sm {
  padding: 6px 10px;
  font-size: .72rem;
}

.admin-btn--active {
  background: rgba(240,228,198,.12);
  border-color: var(--accent);
  color: var(--accent);
}

.admin-muted {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .78rem;
  margin: 0;
}

.admin-chart-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.admin-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
}

.admin-legend-item i {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Feed toolbar */

.admin-feed-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.admin-feed-filters,
.admin-feed-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-filter-label {
  display: grid;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-filter-label--check {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  display: flex;
  margin-bottom: 2px;
}

.admin-filter-label select,
.admin-filter-label input[type="search"] {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-size: .8rem;
  text-transform: none;
  min-width: 120px;
}

.admin-filter-label input[type="search"] {
  min-width: 160px;
}

.admin-feed-summary {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-event-list--feed {
  max-height: 600px;
}

.admin-event--error {
  border-color: rgba(255,107,107,.35);
  background: rgba(255,107,107,.05);
}

.admin-event__type {
  font-family: var(--font-mono);
  font-size: .8rem;
}

.admin-event__time {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
}

.admin-event__meta {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
}

.admin-event__data {
  margin: 8px 0 0;
  max-height: 140px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: .7rem;
  color: var(--text);
  opacity: .75;
}

/* Pagination */

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.admin-page-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.admin-table__check {
  text-align: center;
}

.admin-toggle {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}

@media (max-width: 1100px) {
  .admin-grid--alltime {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-grid--alltime,
  .admin-grid--three {
    grid-template-columns: 1fr;
  }
  .admin-feed-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  .public-asset-page__hero,
  .public-asset-page__detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-layout {
    gap: 20px;
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .hero__title {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 0.94;
    max-width: 10.2ch;
  }

  .hero__body {
    font-size: 14px;
    line-height: 1.58;
    margin-top: 14px;
  }

  .hero__actions {
    width: 100%;
    margin-top: 18px;
  }

  .hero__actions .button-link {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    min-width: 0;
  }

  .workflow-switch {
    margin-bottom: 12px;
  }

  .workflow-switch__controls {
    gap: 4px;
    padding: 3px;
  }

  .workflow-switch__button {
    padding: 6px 11px;
    font-size: 10px;
    letter-spacing: 0.11em;
  }

  #hero-planet {
    top: 54px;
    right: -34px;
    width: 156px;
    opacity: 0.28;
  }

  .guest-panel__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .generation-panel__row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .generation-panel__actions .button-link {
    width: 100%;
    justify-content: center;
  }

  .guest-attach-btn,
  .guest-panel__footer .button-link {
    width: 100%;
    justify-content: center;
  }

  .login-layout,
  .signup-layout--centered {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .page-copy--compact {
    padding-top: 20px;
  }

  .signup-panel {
    padding: 24px 18px;
  }

  .login-shell,
  .signup-shell {
    --auth-art-opacity: 0;
  }

  .auth-art--login,
  .auth-art--signup {
    display: none;
  }
}

@media (max-width: 720px) {
  .public-asset-page__copy,
  .public-asset-page__preview-card,
  .public-asset-page__facts {
    padding: 18px;
  }

  .public-asset-page__preview-header,
  .public-asset-page__preview-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-asset-page__preview-stage {
    min-height: 220px;
    padding: 14px;
  }

  .public-asset-page__preview-stage .ascii-canvas {
    max-height: 300px;
  }

  .public-asset-page__fact-list li {
    flex-direction: column;
    gap: 6px;
  }
}
