:root {
  --studio-bg: #f7f5fb;
  --studio-ink: #1c1730;
  --studio-muted: #6d6780;
  --studio-line: rgba(88, 72, 140, 0.14);
  --studio-paper: rgba(255, 255, 255, 0.78);
  --studio-glass: rgba(255, 255, 255, 0.72);
  --studio-brand: #6d4dff;
  --studio-brand-2: #22c7d8;
  --studio-brand-from: #8b6cff;
  --studio-brand-via: #6d4dff;
  --studio-brand-to: #22c7d8;
  --studio-ambient-a: rgba(139, 108, 255, 0.16);
  --studio-ambient-b: rgba(34, 199, 216, 0.14);
  --studio-shadow: 0 1px 2px rgba(28, 23, 48, 0.05), 0 16px 36px -18px rgba(28, 23, 48, 0.18);
  --studio-space: 8px;
}

html[data-studio-theme="dark"] {
  --studio-bg: #0b0a12;
  --studio-ink: #f4f1ff;
  --studio-muted: #b7b0cb;
  --studio-line: rgba(244, 241, 255, 0.12);
  --studio-paper: rgba(24, 22, 38, 0.78);
  --studio-glass: rgba(24, 22, 38, 0.62);
  --studio-brand: #b39bff;
  --studio-brand-2: #67e8f9;
  --studio-brand-from: #b39bff;
  --studio-brand-via: #8b6cff;
  --studio-brand-to: #67e8f9;
  --studio-ambient-a: rgba(139, 108, 255, 0.2);
  --studio-ambient-b: rgba(34, 199, 216, 0.14);
  --studio-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 44px -20px rgba(0, 0, 0, 0.7);
}

/* moying-studio-skin-tokens */
html[data-studio-skin] {
  --studio-skin-ready: 1;
  --studio-cta: var(--studio-brand);
  --studio-cta-ink: #fff;
  --studio-radius: 22px;
  --studio-card-radius: 22px;
}

html[data-studio-skin="glass"] {
  --studio-skin-glass: 1;
  --studio-bg: #050607;
  --studio-ink: #f4f1ea;
  --studio-muted: rgba(244, 241, 234, 0.58);
  --studio-line: rgba(255, 255, 255, 0.1);
  --studio-paper: rgba(18, 18, 22, 0.34);
  --studio-glass: rgba(22, 22, 26, 0.28);
  --studio-brand: #d4b483;
  --studio-brand-2: #ece4d4;
  --studio-brand-from: #f3e9d4;
  --studio-brand-via: #d8bc8a;
  --studio-brand-to: #c4a46e;
  --studio-cta: linear-gradient(100deg, #f3e9d4, #d8bc8a 48%, #c4a46e);
  --studio-cta-ink: #1a1610;
  --studio-ambient-a: rgba(212, 150, 70, 0.18);
  --studio-ambient-b: rgba(212, 180, 131, 0.08);
  --studio-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
  --studio-radius: 20px;
  --studio-card-radius: 20px;
  --studio-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
}

html:active-view-transition-type(moying-skin-none)::view-transition-old(root),
html:active-view-transition-type(moying-skin-none)::view-transition-new(root) {
  animation: none;
}

html:active-view-transition-type(moying-skin-circle)::view-transition-old(root) {
  animation: none;
  z-index: 1;
}

html:active-view-transition-type(moying-skin-circle)::view-transition-new(root) {
  animation: none;
  z-index: 2;
  mix-blend-mode: normal;
}

html:active-view-transition-type(moying-skin-wipe)::view-transition-old(root) {
  animation: moying-skin-wipe-out 640ms cubic-bezier(.2, .8, .2, 1) both;
}

html:active-view-transition-type(moying-skin-wipe)::view-transition-new(root) {
  animation: moying-skin-wipe-in 640ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes moying-skin-wipe-out {
  to { clip-path: inset(0 100% 0 0); }
}

@keyframes moying-skin-wipe-in {
  from { clip-path: inset(0 0 0 100%); }
}

html:active-view-transition-type(moying-skin) [data-studio-header] {
  view-transition-name: moying-studio-header;
}

html:active-view-transition-type(moying-skin) [data-testid="moying-home-modules"] {
  view-transition-name: moying-studio-modules;
}

html:active-view-transition-type(moying-skin) [data-testid="moying-home-composer"] {
  view-transition-name: moying-studio-composer;
}

@media (prefers-reduced-motion: reduce) {
  html:active-view-transition-type(moying-skin)::view-transition-old(root),
  html:active-view-transition-type(moying-skin)::view-transition-new(root),
  html:active-view-transition-type(moying-theme)::view-transition-old(root),
  html:active-view-transition-type(moying-theme)::view-transition-new(root) {
    animation: none !important;
  }
}

html:has(body.moying-studio-body),
body.moying-studio-body {
  min-height: 100%;
  margin: 0;
  color: var(--studio-ink);
  background:
    radial-gradient(60rem 40rem at 12% -10%, var(--studio-ambient-a), transparent 60%),
    radial-gradient(52rem 38rem at 92% 4%, var(--studio-ambient-b), transparent 62%),
    var(--studio-bg);
  font-family: Inter, ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.moying-studio-body *,
body.moying-studio-body *::before,
body.moying-studio-body *::after {
  box-sizing: border-box;
}

.moying-studio-body a {
  color: inherit;
  text-decoration: none;
}

.moying-studio-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--studio-paper) 92%, var(--studio-bg));
  border-bottom: 1px solid var(--studio-line);
}

.moying-studio-header-inner,
.moying-studio-main,
.moying-studio-footer {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.moying-studio-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 16px;
}

.moying-studio-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
}

.moying-studio-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.06) 34%, transparent 56%),
    linear-gradient(135deg, var(--studio-brand-from) 0%, var(--studio-brand-via) 48%, var(--studio-brand-to) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(28, 23, 48, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 6px 14px -4px rgba(109, 77, 255, 0.58),
    0 0 18px -6px rgba(34, 199, 216, 0.48);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  padding-bottom: 1px;
  text-shadow: 0 1px 1px rgba(28, 23, 48, 0.22);
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.moying-studio-brand > .moying-studio-brand-copy,
.moying-studio-brand > span:not(.moying-studio-mark) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding-top: 1px;
}

.moying-studio-brand strong,
.moying-studio-brand small {
  display: block;
  line-height: 1;
}

.moying-studio-brand strong {
  white-space: nowrap;
  color: #1a1528;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.moying-studio-brand small {
  color: #7a748c;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

html[data-studio-theme="dark"] .moying-studio-brand strong,
html.dark .moying-studio-brand strong {
  color: #f7f5ff;
}

html[data-studio-theme="dark"] .moying-studio-brand small,
html.dark .moying-studio-brand small {
  color: rgba(226, 222, 240, 0.56);
}

html[data-studio-theme="dark"] .moying-studio-mark,
html.dark .moying-studio-mark {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 6px 14px -6px rgba(139, 108, 255, 0.62),
    0 0 20px -6px rgba(103, 232, 249, 0.38);
}

.moying-studio-brand:hover .moying-studio-mark {
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    inset 0 -1px 0 rgba(28, 23, 48, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 6px 16px -5px rgba(109, 77, 255, 0.58),
    0 0 22px -6px rgba(34, 199, 216, 0.5);
}

html[data-studio-theme="dark"] .moying-studio-brand:hover .moying-studio-mark,
html.dark .moying-studio-brand:hover .moying-studio-mark {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 7px 18px -5px rgba(139, 108, 255, 0.72),
    0 0 24px -5px rgba(103, 232, 249, 0.48);
}

.moying-studio-brand:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--studio-brand) 72%, #fff);
  outline-offset: 3px;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .moying-studio-mark {
    transition: none;
  }
}

.moying-studio-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.moying-studio-textlink {
  padding: 0 4px;
  color: var(--studio-muted);
  font-size: 13px;
}

.moying-studio-textlink:hover {
  color: var(--studio-ink);
}

.moying-studio-link,
.moying-studio-icon-btn,
.moying-studio-user-btn,
.moying-studio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: var(--studio-glass);
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.moying-studio-credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 5px 0 11px;
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  background: var(--studio-glass);
  font-variant-numeric: tabular-nums;
}

.moying-studio-credits a,
.moying-studio-btn.is-brand,
.moying-studio-go {
  color: #fff;
  background: linear-gradient(100deg, var(--studio-brand-from), var(--studio-brand-via), var(--studio-brand-to));
  border: 0;
}

.moying-studio-credits a {
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
}

header.moying-studio-header[data-studio-header] .moying-studio-header-tools:not(.is-compact) .moying-studio-credits > a {
  --moying-studio-credits-spend: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #1c1730;
  -webkit-text-fill-color: #1c1730;
  background:
    linear-gradient(#f4f2fa, #f4f2fa) padding-box,
    linear-gradient(90deg, var(--studio-brand-to), var(--studio-brand-from)) border-box;
  border: 1px solid transparent;
}

html.dark header.moying-studio-header[data-studio-header] .moying-studio-header-tools:not(.is-compact) .moying-studio-credits > a,
html[data-studio-theme="dark"] header.moying-studio-header[data-studio-header] .moying-studio-header-tools:not(.is-compact) .moying-studio-credits > a {
  color: #fafafa;
  -webkit-text-fill-color: #fafafa;
  background:
    linear-gradient(#3f3f46, #3f3f46) padding-box,
    linear-gradient(90deg, #22c7d8, #8b6cff) border-box;
}

.moying-studio-btn.is-outline {
  background: transparent;
  color: var(--studio-ink);
}

.moying-studio-icon-btn {
  position: relative;
  overflow: visible;
  width: 32px;
  min-width: 32px;
  padding: 0;
}

.moying-studio-notice-label {
  display: none;
}

.moying-studio-bell {
  display: block;
  width: 12px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 6px 6px 4px 4px;
  position: relative;
}

.moying-studio-bell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 6px;
  height: 3px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  transform: translateX(-50%);
}

.moying-studio-icon-btn em {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  line-height: 16px;
}

.moying-studio-user-btn {
  gap: 8px;
}

.moying-studio-user-btn i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--studio-brand-2) 22%, var(--studio-paper));
  color: var(--studio-brand);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

[hidden],
.moying-studio-pop[hidden],
.moying-studio-login-pop[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.moying-studio-notice,
.moying-studio-user {
  position: relative;
}

.moying-studio-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  width: 260px;
  padding: 10px;
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20, 21, 28, 0.12);
}

html[data-studio-theme="dark"] .moying-studio-pop {
  background: #171924;
}

.moying-studio-pop a,
.moying-studio-pop button {
  display: block;
  width: 100%;
  padding: 8px 6px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.moying-studio-pop p small {
  display: block;
  color: var(--studio-muted);
}

.moying-studio-pop article + article {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--studio-line);
}

.moying-studio-main {
  padding: 24px 0 48px;
}

.moying-studio-footer {
  padding: 0 0 28px;
  color: var(--studio-muted);
  font-size: 12px;
}

.moying-studio-pagehead,
.moying-studio-paybar,
.moying-studio-credit-card,
.moying-studio-card,
.moying-studio-composer,
.moying-studio-module,
.moying-studio-pack,
.moying-studio-pipeline li,
.moying-studio-auth {
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(var(--studio-glass), var(--studio-glass)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--studio-brand-from) 40%, transparent), color-mix(in srgb, var(--studio-line) 88%, transparent) 46%, color-mix(in srgb, var(--studio-brand-to) 34%, transparent)) border-box;
  box-shadow: var(--studio-shadow);
  backdrop-filter: blur(20px) saturate(1.4);
}

.moying-studio-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 0 0 8px;
}

.moying-studio-hero.has-credit {
  align-items: center;
}

.moying-studio-eyebrow {
  margin: 0 0 6px;
  color: var(--studio-muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.moying-studio-hero h1,
.moying-studio-pagehead h1,
.moying-studio-auth h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.moying-studio-hero p,
.moying-studio-pagehead p,
.moying-studio-auth > p {
  max-width: 34rem;
  margin: 8px 0 0;
  color: var(--studio-muted);
  line-height: 1.6;
}

.moying-studio-credit-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.moying-studio-credit-card.is-low {
  border-color: color-mix(in srgb, #f59e0b 40%, var(--studio-line));
}

.moying-studio-credit-card strong,
.moying-studio-balance {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.moying-studio-split {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 10px;
  color: var(--studio-muted);
  font-size: 12px;
}

.moying-studio-split p {
  margin: 0;
}

.moying-studio-split span {
  flex: 1;
  height: 1px;
  background: var(--studio-line);
}

.moying-studio-modules,
.moying-studio-packs,
.moying-studio-pipeline,
.moying-studio-profile-grid,
.moying-studio-profile-col,
.moying-studio-asset-grid {
  display: grid;
  gap: 24px;
}

.moying-studio-modules {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 12px;
}

.moying-studio-module,
.moying-studio-pack {
  position: relative;
  overflow: hidden;
  min-height: 13.5rem;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.moying-studio-module::after {
  content: "";
  position: absolute;
  top: -2.4rem;
  right: -1.6rem;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--mod, var(--studio-brand)) 55%, transparent), transparent 68%);
  pointer-events: none;
}

.moying-studio-module[data-module="script"] { --mod: #8b6cff; }
.moying-studio-module[data-module="image"] { --mod: #22c7d8; }
.moying-studio-module[data-module="storyboard"] { --mod: #6d4dff; }
.moying-studio-module[data-module="video"] { --mod: #67e8f9; }
.moying-studio-module[data-module="chat"] { --mod: #a78bfa; }
.moying-studio-module[data-module="review"] { --mod: #f59e0b; }

.moying-studio-module em {
  display: inline-block;
  margin-top: auto;
  color: var(--studio-brand);
  font-size: 12px;
  font-style: normal;
}

.moying-studio-module:hover,
.moying-studio-pack:hover {
  border-color: color-mix(in srgb, var(--studio-brand) 38%, var(--studio-line));
  transform: translateY(-1px);
}

.moying-studio-module span,
.moying-studio-pack em {
  color: var(--studio-muted);
  font-size: 12px;
}

.moying-studio-module h3,
.moying-studio-pack strong {
  display: block;
  margin: 10px 0 0;
  font-size: 16px;
}

.moying-studio-module p {
  margin: 6px 0 0;
  color: var(--studio-muted);
  font-size: 12px;
  line-height: 1.5;
}

.moying-studio-composer {
  margin-top: 10px;
  padding: 14px;
}

.moying-studio-composer textarea,
.moying-studio-auth input,
.moying-studio-card input,
.moying-studio-body textarea {
  width: 100%;
  border: 1px solid var(--studio-input-line, var(--studio-line));
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--studio-input-bg, rgba(255, 255, 255, 0.8));
  color: var(--studio-input-ink, inherit);
  font: inherit;
  resize: none;
}

html[data-studio-theme="dark"] .moying-studio-composer textarea,
html[data-studio-theme="dark"] .moying-studio-auth input,
html[data-studio-theme="dark"] .moying-studio-card input,
html[data-studio-theme="dark"] .moying-studio-body textarea {
  background: var(--studio-input-bg, rgba(12, 14, 22, 0.55));
}

.moying-studio-composer textarea {
  border: 0;
  background: transparent;
  min-height: 64px;
  outline: none;
}

.moying-studio-composer-bar,
.moying-studio-code-row,
.moying-studio-paybar,
.moying-studio-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.moying-studio-composer-tools,
.moying-studio-paybar > div {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
}

.moying-studio-composer-tools button,
.moying-studio-paybar button,
.moying-studio-code-row button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--studio-paper) 80%, transparent);
  color: var(--studio-ink);
  cursor: pointer;
}

.moying-studio-composer-tools button.is-on,
.moying-studio-pack.is-on,
.moying-studio-paybar button.is-on {
  border-color: color-mix(in srgb, var(--studio-brand) 45%, var(--studio-line));
  background: color-mix(in srgb, var(--studio-brand) 12%, var(--studio-paper));
  color: var(--studio-ink);
}

html[data-studio-theme="dark"] .moying-studio-composer-tools button.is-on,
html[data-studio-theme="dark"] .moying-studio-pack.is-on,
html[data-studio-theme="dark"] .moying-studio-paybar button.is-on {
  border-color: color-mix(in srgb, var(--studio-brand) 55%, #171924);
  background: color-mix(in srgb, var(--studio-brand) 22%, #171924);
}

.moying-studio-go {
  min-width: 8.8rem;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
}

.moying-studio-go:disabled {
  opacity: 0.42;
}

.moying-studio-tip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
  color: var(--studio-muted);
  font-size: 13px;
}

.moying-studio-tip span,
.moying-studio-tip a {
  color: var(--studio-ink);
}

.moying-studio-tip a {
  white-space: nowrap;
}

html:has(body.moying-home-page),
body.moying-home-page {
  height: 100%;
  max-height: 100%;
}

body.moying-home-page {
  --moying-home-fill: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.moying-home-page .moying-studio-header,
body.moying-home-page .moying-studio-footer {
  flex: 0 0 auto;
}

body.moying-home-page .moying-studio-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 18px 0 10px;
}

body.moying-home-page .moying-home-fill {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 16px;
}

body.moying-home-page .moying-studio-hero {
  --moying-home-hero-band: 1;
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 16px;
  background:
    linear-gradient(var(--studio-glass), var(--studio-glass)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--studio-brand-from) 40%, transparent), color-mix(in srgb, var(--studio-line) 88%, transparent) 46%, color-mix(in srgb, var(--studio-brand-to) 34%, transparent)) border-box;
  box-shadow: var(--studio-shadow);
  backdrop-filter: blur(20px) saturate(1.4);
}

body.moying-home-page .moying-studio-hero::after {
  content: "";
  position: absolute;
  inset: -8% 11.5rem -8% 40%;
  background: url("./studio/hero-still.png") right center / contain no-repeat;
  pointer-events: none;
}

body.moying-home-page .moying-studio-hero > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

body.moying-home-page .moying-studio-hero .moying-studio-eyebrow {
  margin: 0 0 4px;
}

body.moying-home-page .moying-studio-hero .moying-studio-credit-card {
  position: relative;
  z-index: 1;
  align-self: center;
  flex: 0 0 auto;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

body.moying-home-page .moying-studio-hero .moying-studio-credit-card.is-low {
  border-color: transparent;
}

body.moying-home-page .moying-studio-hero .moying-studio-credit-card.is-low strong {
  color: #f59e0b;
}

body.moying-home-page .moying-studio-hero .moying-studio-credit-card .moying-studio-btn {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
}

html[data-studio-theme="dark"] body.moying-home-page .moying-studio-hero {
  background:
    linear-gradient(var(--studio-paper), var(--studio-paper)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--studio-brand-from) 40%, transparent), color-mix(in srgb, var(--studio-line) 88%, transparent) 46%, color-mix(in srgb, var(--studio-brand-to) 34%, transparent)) border-box;
}

@media (max-width: 720px) {
  body.moying-home-page .moying-studio-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body.moying-home-page .moying-studio-hero::after {
    display: none;
  }

  body.moying-home-page .moying-studio-hero .moying-studio-credit-card {
    justify-content: space-between;
  }
}

body.moying-home-page .moying-studio-modules {
  margin-top: 0;
  gap: 16px;
}

body.moying-home-page .moying-studio-module {
  min-height: 15.25rem;
  padding: 22px 20px 18px;
}

body.moying-home-page .moying-studio-module::before {
  content: "";
  position: absolute;
  top: 14px;
  right: 12px;
  width: 4.5rem;
  height: 4.5rem;
  background: center / contain no-repeat;
  pointer-events: none;
  z-index: 1;
}

body.moying-home-page .moying-studio-module[data-module="script"]::before { background-image: url("./studio/icon-script.png"); }
body.moying-home-page .moying-studio-module[data-module="image"]::before { background-image: url("./studio/icon-image.png"); }
body.moying-home-page .moying-studio-module[data-module="storyboard"]::before { background-image: url("./studio/icon-storyboard.png"); }
body.moying-home-page .moying-studio-module[data-module="video"]::before { background-image: url("./studio/icon-video.png"); }
body.moying-home-page .moying-studio-module[data-module="chat"]::before { background-image: url("./studio/icon-chat.png"); }
body.moying-home-page .moying-studio-module[data-module="review"]::before { background-image: url("./studio/icon-review.png"); }

body.moying-home-page .moying-studio-module h3 {
  font-size: 17px;
}

body.moying-home-page .moying-studio-composer {
  margin-top: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

body.moying-home-page .moying-studio-composer textarea {
  flex: 1 1 auto;
  min-height: 0;
}

body.moying-home-page .moying-studio-composer-bar {
  flex: 0 0 auto;
  margin-top: 8px;
}

body.moying-home-page .moying-studio-tip {
  margin: 0;
}

body.moying-home-page .moying-studio-footer {
  padding-bottom: 14px;
}

html[data-studio-skin="glass"] body.moying-studio-body {
  background:
    radial-gradient(48rem 32rem at 85% 6%, rgba(255, 176, 72, 0.22), transparent 56%),
    radial-gradient(64rem 40rem at 75% 20%, rgba(220, 38, 38, 0.08), transparent 64%),
    radial-gradient(40rem 28rem at 12% 8%, rgba(212, 180, 131, 0.06), transparent 58%),
    #050607;
  color: var(--studio-ink);
}

html[data-studio-skin="glass"] body.moying-home-page {
  background: #070709;
  overflow-x: hidden;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-main,
html[data-studio-skin="glass"] body.moying-home-page .moying-home-fill {
  background: transparent;
  position: relative;
  z-index: 1;
}

/* ========================================================
   CINEMATIC HERO ART STAGE (PORTED FROM LOCALHOST:3000 HeroCinematicArt)
   ======================================================== */
.moying-hero-art-stage {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 520px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #070709;
  user-select: none;
  -webkit-user-select: none;
}

.moying-hero-art-stage::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 7, 9, 0.75) 45%, #070709 100%);
  z-index: 4;
  pointer-events: none;
}

.moying-hero-parallax-plate {
  position: absolute;
  inset: -20px;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.05);
}

.moying-hero-plate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.86) contrast(1.12);
  display: block;
}

/* Pulsing Red Studio Rim Light on Actress Profile */
.moying-rim-light-1 {
  position: absolute;
  top: 8%;
  right: 22%;
  width: 340px;
  height: 340px;
  background: rgba(245, 34, 45, 0.20);
  border-radius: 50%;
  filter: blur(85px);
  mix-blend-mode: screen;
  animation: moying-rim-pulse-1 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes moying-rim-pulse-1 {
  0% { opacity: 0.5; transform: scale(1.05); }
  100% { opacity: 0.9; transform: scale(1.05); }
}

/* Floating Cinematic Dust Particles */
.moying-particles-container {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  mix-blend-mode: screen;
  pointer-events: none;
  overflow: hidden;
}

.moying-particle {
  position: absolute;
  width: var(--sz, 3px);
  height: var(--sz, 3px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  animation: floatParticle var(--dur, 8s) ease-in-out infinite alternate;
  animation-delay: var(--del, 0s);
}

@keyframes floatParticle {
  0% { transform: translateY(0px) translateX(0px); opacity: 0.2; }
  50% { transform: translateY(-20px) translateX(10px); opacity: 0.85; }
  100% { transform: translateY(-45px) translateX(-8px); opacity: 0.3; }
}

/* Anamorphic Horizontal Red Light Flare Streak */
.moying-flare-streak {
  position: absolute;
  top: 28%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 34, 45, 0) 15%, rgba(245, 34, 45, 0.35) 45%, rgba(255, 120, 120, 0.6) 50%, rgba(245, 34, 45, 0.35) 55%, rgba(245, 34, 45, 0) 85%, transparent 100%);
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
}

/* Typography on Camera Rig: MORE STORIES BIGGER WORLDS */
.moying-camera-engraving {
  position: absolute;
  top: 18%;
  left: 42%;
  display: flex;
  flex-direction: column;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: rgba(212, 212, 216, 0.65);
  font-weight: 600;
  line-height: 1.55;
  z-index: 2;
  user-select: none;
  pointer-events: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
  will-change: transform;
}

@media (max-width: 1200px) {
  .moying-camera-engraving {
    display: none;
  }
}

/* Vignettes for Contrast and Readability */
.moying-vignette-left {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: min(55vw, 680px);
  background: linear-gradient(90deg, #070709 0%, rgba(7, 7, 9, 0.88) 55%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

.moying-vignette-top {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 120px;
  background: linear-gradient(180deg, #070709 0%, rgba(7, 7, 9, 0.72) 50%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

.moying-vignette-bottom {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 240px;
  background: linear-gradient(0deg, #070709 0%, rgba(7, 7, 9, 0.92) 55%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

html[data-studio-skin="glass"] .moying-studio-header {
  background: rgba(5, 6, 7, 0.34);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.15);
}

html[data-studio-skin="glass"] .moying-studio-brand strong {
  font-family: var(--studio-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

html[data-studio-skin="glass"] .moying-studio-brand small {
  display: none;
}

html[data-studio-skin="glass"] .moying-studio-mark {
  display: none !important;
}

html[data-studio-skin="glass"] .moying-studio-brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

html[data-studio-skin="glass"] .moying-studio-brand strong {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  display: inline-flex;
  align-items: center;
}

html[data-studio-skin="glass"] .moying-studio-brand .moying-brand-pro {
  color: #f5222d;
  font-style: italic;
  margin-left: 2px;
  text-shadow: 0 0 16px rgba(245, 34, 45, 0.65);
  -webkit-text-fill-color: #f5222d;
}

html[data-studio-skin="glass"] .moying-brand-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(127, 29, 29, 0.45);
  color: #fca5a5;
  border: 1px solid rgba(185, 28, 28, 0.45);
  margin-left: 8px;
  vertical-align: middle;
}

html[data-studio-skin="glass"] .moying-studio-brand-wrap {
  display: flex;
  align-items: center;
}

html[data-studio-skin="glass"] .moying-studio-credits,
html[data-studio-skin="glass"] .moying-studio-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f4f1ea;
}

html[data-studio-skin="glass"] .moying-studio-user-btn {
  border-radius: 999px;
  min-width: 4.5rem;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  font-weight: 500;
  transition: all 180ms ease;
}

html[data-studio-skin="glass"] .moying-studio-user-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

html[data-studio-skin="glass"] .moying-studio-user-btn.is-red-pill {
  background: linear-gradient(135deg, #ff3344, #e62e43) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 0 !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 18px rgba(230, 46, 67, 0.45) !important;
  padding: 6px 18px !important;
}

html[data-studio-skin="glass"] .moying-studio-user-btn.is-red-pill:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 24px rgba(230, 46, 67, 0.6) !important;
  transform: translateY(-1px);
}

html[data-studio-skin="glass"] .moying-studio-user-btn i {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

html[data-studio-skin="glass"] .moying-studio-btn.is-brand,
html[data-studio-skin="glass"] .moying-studio-go {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: linear-gradient(135deg, #ff3344, #e62e43) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 18px rgba(230, 46, 67, 0.45) !important;
  transition: all 180ms ease;
}

html[data-studio-skin="glass"] .moying-studio-btn.is-brand:hover,
html[data-studio-skin="glass"] .moying-studio-go:hover {
  filter: brightness(1.12);
  box-shadow: 0 6px 24px rgba(230, 46, 67, 0.6) !important;
  transform: translateY(-1px);
}

html[data-studio-skin="glass"] .moying-studio-credits a {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: linear-gradient(135deg, #ff3344, #e62e43);
  border: 0;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}

html[data-studio-skin="glass"] header.moying-studio-header[data-studio-header] .moying-studio-header-tools:not(.is-compact) .moying-studio-credits > a,
html[data-studio-skin="glass"][data-studio-theme="dark"] header.moying-studio-header[data-studio-header] .moying-studio-header-tools:not(.is-compact) .moying-studio-credits > a {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: linear-gradient(135deg, #ff3344, #e62e43);
  border: 0;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}

html[data-studio-skin="glass"] .moying-studio-go:disabled {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: linear-gradient(135deg, #ff3344, #e62e43) !important;
  opacity: 0.95;
  box-shadow: 0 4px 18px rgba(230, 46, 67, 0.45) !important;
}

.moying-studio-hero-lead,
.moying-studio-hero-still,
.moying-studio-module-still {
  display: none;
}

html[data-studio-skin="glass"] .moying-studio-hero-lead {
  display: block;
  max-width: 28rem;
  margin: 10px 0 0;
  color: rgba(244, 241, 234, 0.62);
  font-size: 15px;
  line-height: 1.7;
}

html[data-studio-skin="glass"] .moying-studio-hero-still,
html[data-studio-skin="glass"] .moying-studio-module-still {
  display: block;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-home-fill {
  position: relative;
  z-index: 1;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero {
  overflow: visible;
  min-height: 13.5rem;
  padding: 8px 4px 4px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  z-index: 2;
  align-items: flex-start !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero::before,
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero::after {
  display: none;
}

/* Full-bleed set already on body; do not overlay a second clipped still that steals hit-testing. */
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero-still {
  display: none !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero h1 {
  font-family: var(--studio-serif);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.7);
}

html[data-studio-skin="glass"] .moying-hero-red {
  color: #ff3344;
  font-weight: 800;
  text-shadow: 0 4px 28px rgba(255, 51, 68, 0.45), 0 0 40px rgba(255, 51, 68, 0.25);
  display: inline-block;
}

html[data-studio-skin="glass"] .moying-brand-pro {
  color: #ff3344;
  font-style: italic;
  font-weight: 700;
  margin-left: 2px;
}

html[data-studio-skin="glass"] .is-red-pill {
  background: linear-gradient(135deg, #ff4155, #e62e43) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-radius: 999px !important;
  padding: 5px 20px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border: 0 !important;
  box-shadow: 0 4px 16px rgba(230, 46, 67, 0.45) !important;
  transition: all 180ms ease !important;
}

html[data-studio-skin="glass"] .is-red-pill:hover {
  filter: brightness(1.12) !important;
  box-shadow: 0 6px 22px rgba(230, 46, 67, 0.6) !important;
  transform: translateY(-1px) !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-hero-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  position: relative;
  z-index: 3;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-credit-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: min(100%, 256px);
  padding: 16px 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(14, 15, 18, 0.62);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(36px) saturate(1.5);
  -webkit-backdrop-filter: blur(36px) saturate(1.5);
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-headphone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E") center / 18px no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-info {
  display: flex;
  flex-direction: column;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-info p {
  margin: 0;
  color: rgba(244, 241, 234, 0.6);
  font-size: 12px;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 2px 0 0;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-red {
  color: #ff3344;
  font-size: 24px;
  font-weight: 800;
  font-family: ui-monospace, sans-serif;
  letter-spacing: -0.02em;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-chevron {
  color: rgba(244, 241, 234, 0.4);
  font-size: 16px;
  font-weight: 400;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-credit-card small {
  display: block;
  margin: 4px 0 6px;
  color: rgba(244, 241, 234, 0.45);
  font-size: 11px;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-credit-card .moying-studio-btn {
  display: none !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-hero-slogan {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
  margin-top: 4px;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-hero-slogan span {
  color: #ff3344;
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.35;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 51, 68, 0.4);
}

html[data-studio-skin="glass"] body.moying-home-page .moying-slogan-line {
  display: block;
  width: 28px;
  height: 2px;
  background: #ff3344;
  margin-top: 4px;
  box-shadow: 0 0 8px rgba(255, 51, 68, 0.6);
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-credit-card {
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 220ms ease;
  cursor: pointer;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-credit-card:hover {
  transform: scale(1.05);
  border-color: rgba(245, 34, 45, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 34, 45, 0.2);
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-credit-card:hover .moying-credit-headphone-icon {
  border-color: rgba(245, 34, 45, 0.6);
  color: #ff3344;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-credit-card:hover .moying-credit-chevron {
  transform: translateX(3px);
  color: #ff3344;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module::before,
html[data-studio-skin="glass"] .moying-studio-module::after {
  display: none;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-modules {
  position: relative;
  z-index: 2;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  z-index: 1;
  min-height: 17.25rem;
  padding: 16px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(17, 17, 22, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 14px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  color: var(--studio-ink);
  animation: moying-glass-enter 760ms cubic-bezier(.16, 1, .3, 1) backwards;
  animation-delay: var(--enter, 80ms);
  transform: perspective(920px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module:hover {
  border-color: #f5222d;
  background: rgba(22, 22, 28, 0.92);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.65), 0 0 24px rgba(245, 34, 45, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: perspective(920px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-6px) scale(1.05);
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 51, 68, 0.16), rgba(255, 51, 68, 0.05) 46%, transparent 78%),
    radial-gradient(140% 90% at var(--spot-x, 50%) var(--spot-y, 40%), rgba(255, 255, 255, 0.16), transparent 72%);
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: 3;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module:hover::after {
  opacity: 1;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module > * {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module-still {
  order: 3;
  display: block;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  min-height: 7.25rem;
  margin: 8px 0 10px;
  border-radius: 12px;
  background: transparent center 45% / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  overflow: hidden;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1), filter 380ms ease;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module:hover .moying-studio-module-still {
  transform: scale(1.05);
  filter: brightness(1.06);
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module > span:not(.moying-studio-module-still) {
  order: 0;
  color: rgba(212, 180, 131, 0.72);
  letter-spacing: 0.08em;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module h3 {
  order: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ffffff;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module:hover h3 {
  color: #ffffff;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module p {
  order: 2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: rgba(244, 241, 234, 0.6);
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module em {
  order: 4;
  color: #ff3344;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: color 180ms ease;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module em::after {
  content: " →";
  display: inline-block;
  transition: transform 200ms ease;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module:hover em::after {
  transform: translateX(4px);
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module[data-module="script"] .moying-studio-module-still { background-image: url("./studio/cards/card_01_script.webp?v=20261027-home-webp-v1"); }
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module[data-module="image"] .moying-studio-module-still { background-image: url("./studio/cards/card_02_image.webp?v=20261027-home-webp-v1"); }
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module[data-module="storyboard"] .moying-studio-module-still { background-image: url("./studio/cards/card_03_storyboard.webp?v=20261027-home-webp-v1"); }
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module[data-module="video"] .moying-studio-module-still { background-image: url("./studio/cards/card_04_video.webp?v=20261027-home-webp-v1"); }
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module[data-module="chat"] .moying-studio-module-still { background-image: url("./studio/cards/card_05_chat.webp?v=20261027-home-webp-v1"); }
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module[data-module="review"] .moying-studio-module-still { background-image: url("./studio/cards/card_06_inspect.webp?v=20261027-home-webp-v1"); }


html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(18, 18, 23, 0.88);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(36px) saturate(1.55);
  -webkit-backdrop-filter: blur(36px) saturate(1.55);
  transition: border-color 200ms ease, box-shadow 200ms ease;
  animation: moying-glass-enter 760ms cubic-bezier(.16, 1, .3, 1) backwards;
  animation-delay: 520ms;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer.is-focus {
  border-color: rgba(245, 34, 45, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 34, 45, 0.35), 0 24px 52px rgba(0, 0, 0, 0.65);
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer textarea {
  color: var(--studio-ink);
  caret-color: #ece4d4;
  resize: none;
  min-height: 46px;
  line-height: 1.6;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer-tools button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(244, 241, 234, 0.7);
  font-size: 13px;
  transition: all 180ms ease;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer-tools button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer-tools button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer-tools button.is-on {
  background: rgba(245, 34, 45, 0.22) !important;
  color: #ff3344 !important;
  border-color: rgba(245, 34, 45, 0.6) !important;
  box-shadow: 0 0 14px rgba(245, 34, 45, 0.35) !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-go {
  min-height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, #ff4155, #e62e43) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 4px 18px rgba(230, 46, 67, 0.45) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 180ms ease;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-go:hover:not(:disabled) {
  filter: brightness(1.12);
  box-shadow: 0 6px 24px rgba(230, 46, 67, 0.6) !important;
  transform: translateY(-1px);
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-go:disabled {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(244, 241, 234, 0.35) !important;
  -webkit-text-fill-color: rgba(244, 241, 234, 0.35) !important;
  box-shadow: none !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-tip {
  display: none !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-footer {
  color: rgba(244, 241, 234, 0.38);
}

/* Match mock credit-card glass: light frost + heavy blur (fixed escapes header backdrop flatten). */
html[data-studio-skin="glass"] .moying-studio-user-pop {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(40px) saturate(1.55);
  -webkit-backdrop-filter: blur(40px) saturate(1.55);
  color: var(--studio-ink);
  z-index: 90;
}

html[data-studio-skin="glass"] .moying-studio-login-pop[data-studio-panel="user"] {
  position: fixed;
  top: 60px;
  right: max(12px, calc((100vw - min(100vw, 1180px)) / 2 + 12px));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  /* Dark frosted plate like mock cards — denser than modules so form stays readable. */
  background: rgba(18, 16, 14, 0.58);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(48px) saturate(1.6);
  -webkit-backdrop-filter: blur(48px) saturate(1.6);
  color: var(--studio-ink);
  z-index: 90;
}

/* Login pop sits over the hero credit card; hide the card while open (mock has only one glass plate). */
html[data-studio-skin="glass"] body:has(.moying-studio-login-pop:not([hidden])) .moying-studio-credit-card {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html[data-studio-skin="glass"] .moying-studio-user-id {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

html[data-studio-skin="glass"] .moying-studio-login-pop-form {
  background: transparent;
}

html[data-studio-skin="glass"] .moying-studio-login-pop-form input {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.32);
  color: var(--studio-ink);
}

html[data-studio-skin="glass"] .moying-studio-login-pop-form label {
  color: rgba(244, 241, 234, 0.78);
}

html[data-studio-skin="glass"] .moying-studio-login-pop-form .moying-studio-btn {
  color: #1a1610;
  -webkit-text-fill-color: #1a1610;
  background: linear-gradient(100deg, #f3e9d4, #d8bc8a 48%, #c4a46e);
  border: 0;
}

html[data-studio-skin="glass"] .moying-studio-login-pop-form .moying-studio-switch,
html[data-studio-skin="glass"] .moying-studio-login-pop-form .moying-studio-switch a {
  color: rgba(244, 241, 234, 0.62);
}

html[data-studio-skin="glass"] [data-studio-page="home"].is-static .moying-studio-module,
html[data-studio-skin="glass"] [data-studio-page="home"].is-static .moying-studio-composer {
  animation: none;
  transform: none;
}

@keyframes moying-glass-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module,
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer {
    animation: none;
    transform: none;
  }
}

@media (max-width: 720px) {
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero-still {
    display: none;
  }

  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-credit-card {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  html:has(body.moying-home-page),
  body.moying-home-page {
    height: auto;
    max-height: none;
  }

  body.moying-home-page {
    overflow: visible;
    display: block;
  }

  body.moying-home-page .moying-studio-main,
  body.moying-home-page .moying-home-fill {
    display: block;
    flex: none;
    min-height: 0;
    height: auto;
  }

  body.moying-home-page .moying-studio-composer {
    display: block;
  }

  body.moying-home-page .moying-studio-composer textarea {
    min-height: 64px;
  }

  body.moying-home-page .moying-studio-module {
    min-height: 13.5rem;
  }
}

.moying-studio-login {
  --studio-brand: #dc2626;
  --studio-brand-2: #e11d48;
  --studio-brand-from: #ff3344;
  --studio-brand-via: #f5222d;
  --studio-brand-to: #dc2626;
  --studio-cta: linear-gradient(135deg, var(--studio-brand-from), var(--studio-brand-to));
  --studio-cta-ink: #fff;
  --studio-input-bg: #fff;
  --studio-input-line: var(--studio-line);
  --studio-input-ink: var(--studio-ink);
  --studio-input-placeholder: var(--studio-muted);
  display: grid;
  min-height: 100dvh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 32px;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 28rem);
  align-items: center;
  gap: 48px;
  color: var(--studio-ink);
}

html:is([data-studio-skin="glass"], [data-studio-theme="dark"], .dark) .moying-studio-login {
  --studio-ink: #f4f4f5;
  --studio-muted: #a1a1aa;
  --studio-brand: #ff6674;
  --studio-brand-2: #fb7185;
  --studio-line: rgba(255, 255, 255, 0.1);
  --studio-paper: #141416;
  --studio-glass: #18181b;
  --studio-input-bg: #101012;
}

.moying-studio-login .moying-studio-auth,
.moying-studio-login .moying-studio-pipeline li {
  border-color: var(--studio-line);
  background: var(--studio-glass);
}

.moying-studio-login .moying-studio-auth input::placeholder {
  color: var(--studio-input-placeholder);
  opacity: 1;
}

.moying-studio-login .moying-studio-auth input:focus-visible {
  outline: 2px solid var(--studio-brand);
  outline-offset: 2px;
}

.moying-studio-login .moying-studio-switch a {
  color: var(--studio-brand);
}

.moying-studio-login .moying-studio-switch a:hover {
  text-decoration: underline;
}

.moying-studio-story,
.moying-studio-auth {
  padding: 32px;
}

.moying-studio-story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  gap: 24px;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.moying-studio-story h1 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.2;
}

.moying-studio-story h1 span {
  color: var(--studio-brand);
}

.moying-studio-pipeline {
  grid-template-columns: 1fr 1fr;
  max-width: 22rem;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  gap: 12px;
}

.moying-studio-pipeline li {
  padding: 16px;
}

.moying-studio-pipeline strong,
.moying-studio-pipeline span {
  display: block;
}

.moying-studio-pipeline strong {
  margin-bottom: 4px;
}

.moying-studio-pipeline span,
.moying-studio-fine,
.moying-studio-hint,
.moying-studio-switch {
  color: var(--studio-muted);
  font-size: 12px;
}

.moying-studio-auth {
  margin: 0;
  max-width: 26rem;
  width: 100%;
}

.moying-studio-auth form,
.moying-studio-card label {
  display: grid;
  gap: 8px;
}

.moying-studio-auth label,
.moying-studio-card label {
  font-size: 13px;
}

.moying-studio-label-row a {
  color: var(--studio-muted);
}

.moying-studio-btn.is-block {
  width: 100%;
}

.moying-studio-error {
  color: #dc2626;
}

.moying-studio-pagehead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
}

.moying-studio-pagehead h1 {
  font-size: 22px;
}

.moying-studio-profile-grid {
  grid-template-columns: 1.15fr 0.85fr;
  margin-top: 16px;
  align-items: start;
}

.moying-studio-card {
  padding: 16px;
}

.moying-studio-card h2 {
  margin: 0 0 10px;
  font-size: 15px;
}

.moying-studio-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.moying-studio-ledger {
  padding: 0;
  margin: 0;
  list-style: none;
}

.moying-studio-ledger li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) max-content;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 11px 0;
}

.moying-studio-ledger li + li {
  border-top: 1px solid var(--studio-line);
}

.moying-studio-ledger li.is-empty {
  display: block;
  min-height: 0;
  padding: 8px 0;
  color: var(--studio-muted);
  font-size: 13px;
}

.moying-studio-ledger em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--studio-line) 72%, var(--studio-paper));
  color: var(--studio-muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.moying-studio-ledger span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 2px;
  min-width: 0;
}

.moying-studio-ledger b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.moying-studio-ledger small {
  color: var(--studio-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.moying-studio-ledger small::before {
  content: "·";
  margin-right: 0.45em;
  opacity: 0.72;
}

.moying-studio-ledger strong {
  justify-self: end;
  color: var(--studio-ink);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.moying-studio-ledger strong[data-sign="credit"] {
  color: #15803d;
}

.moying-studio-ledger strong[data-sign="debit"] {
  color: #dc2626;
}

html[data-studio-theme="dark"] .moying-studio-ledger strong[data-sign="credit"],
html.dark .moying-studio-ledger strong[data-sign="credit"] {
  color: #4ade80;
}

html[data-studio-theme="dark"] .moying-studio-ledger strong[data-sign="debit"],
html.dark .moying-studio-ledger strong[data-sign="debit"] {
  color: #f87171;
}

.moying-studio-packs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0;
}

.moying-studio-pack {
  position: relative;
}

.moying-studio-pack.is-on {
  border-color: color-mix(in srgb, var(--studio-brand) 45%, var(--studio-line));
  background: color-mix(in srgb, var(--studio-brand) 10%, var(--studio-paper));
}

.moying-studio-pack em {
  position: absolute;
  top: 12px;
  right: 12px;
}

.moying-studio-pack b {
  display: block;
  margin: 12px 0 6px;
  font-size: 26px;
}

.moying-studio-paybar {
  padding: 12px 16px;
}

.moying-studio-empty,
.moying-studio-asset-grid {
  min-height: 14rem;
}

.moying-studio-asset-grid {
  grid-template-columns: repeat(auto-fill, 148px);
  justify-content: start;
  align-content: start;
  gap: 16px;
}

.moying-studio-asset-grid figure {
  margin: 0;
  width: 148px;
  padding: 8px;
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--studio-paper) 92%, #fff);
  box-shadow: 0 1px 2px rgba(28, 23, 48, 0.06), 0 8px 18px -12px rgba(28, 23, 48, 0.2);
}

.moying-studio-asset-grid img {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: cover;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
}

.moying-studio-asset-grid figcaption {
  margin-top: 8px;
  overflow: hidden;
  color: var(--studio-muted);
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-studio-page="assets"] .moying-studio-pagehead,
[data-testid="moying-assets"] .moying-studio-pagehead {
  --moying-assets-pagehead-type: 1;
  --moying-assets-layout: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 0;
  min-height: 56px;
  height: auto;
  padding: 12px 20px;
}

[data-studio-page="assets"] .moying-studio-pagehead > a,
[data-testid="moying-assets"] .moying-studio-pagehead > a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  color: var(--studio-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

[data-studio-page="assets"] .moying-studio-pagehead > a:hover,
[data-testid="moying-assets"] .moying-studio-pagehead > a:hover {
  color: var(--studio-ink);
}

[data-studio-page="assets"] .moying-studio-pagehead > div,
[data-testid="moying-assets"] .moying-studio-pagehead > div {
  display: flex;
  align-items: center;
  min-width: 0;
}

[data-studio-page="assets"] .moying-studio-pagehead h1,
[data-testid="moying-assets"] .moying-studio-pagehead h1 {
  color: #1a1528;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 32px;
  -webkit-font-smoothing: antialiased;
}

[data-studio-page="assets"] .moying-studio-pagehead p,
[data-testid="moying-assets"] .moying-studio-pagehead p {
  display: none;
}

[data-studio-page="assets"] .moying-studio-pagehead > .moying-studio-btn,
[data-testid="moying-assets"] .moying-studio-pagehead > .moying-studio-btn {
  align-self: center;
  height: 32px;
  min-height: 32px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
}

[data-studio-page="recharge"] .moying-studio-pagehead,
[data-testid="moying-recharge"] .moying-studio-pagehead {
  --moying-recharge-pagehead: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 16px;
  row-gap: 0;
  padding: 16px 20px;
}

[data-studio-page="recharge"] .moying-studio-pagehead > a,
[data-testid="moying-recharge"] .moying-studio-pagehead > a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  color: var(--studio-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

[data-studio-page="recharge"] .moying-studio-pagehead > a:hover,
[data-testid="moying-recharge"] .moying-studio-pagehead > a:hover {
  color: var(--studio-ink);
}

[data-studio-page="recharge"] .moying-studio-pagehead > div,
[data-testid="moying-recharge"] .moying-studio-pagehead > div {
  min-width: 0;
}

[data-studio-page="recharge"] .moying-studio-pagehead h1,
[data-testid="moying-recharge"] .moying-studio-pagehead h1 {
  color: #1a1528;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 32px;
  -webkit-font-smoothing: antialiased;
}

[data-studio-page="recharge"] .moying-studio-pagehead > div > p,
[data-testid="moying-recharge"] .moying-studio-pagehead > div > p {
  max-width: 42em;
  margin: 12px 0 0;
  color: #7a748c;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.65;
}

[data-studio-page="recharge"] .moying-studio-pagehead > .moying-studio-credit-card,
[data-testid="moying-recharge"] .moying-studio-pagehead > .moying-studio-credit-card {
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 32px;
  min-height: 32px;
  max-width: none;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: #f4f2fa;
  box-shadow: none;
  backdrop-filter: none;
  color: #1c1730;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

html[data-studio-theme="dark"] [data-studio-page="recharge"] .moying-studio-pagehead,
html.dark [data-studio-page="recharge"] .moying-studio-pagehead,
html[data-studio-theme="dark"] [data-testid="moying-recharge"] .moying-studio-pagehead,
html.dark [data-testid="moying-recharge"] .moying-studio-pagehead {
  background:
    linear-gradient(var(--studio-paper), var(--studio-paper)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--studio-brand-from) 40%, transparent), color-mix(in srgb, var(--studio-line) 88%, transparent) 46%, color-mix(in srgb, var(--studio-brand-to) 34%, transparent)) border-box;
}

html[data-studio-theme="dark"] [data-studio-page="recharge"] .moying-studio-pagehead h1,
html.dark [data-studio-page="recharge"] .moying-studio-pagehead h1,
html[data-studio-theme="dark"] [data-testid="moying-recharge"] .moying-studio-pagehead h1,
html.dark [data-testid="moying-recharge"] .moying-studio-pagehead h1 {
  color: #f7f5ff;
}

html[data-studio-theme="dark"] [data-studio-page="recharge"] .moying-studio-pagehead > div > p,
html.dark [data-studio-page="recharge"] .moying-studio-pagehead > div > p,
html[data-studio-theme="dark"] [data-testid="moying-recharge"] .moying-studio-pagehead > div > p,
html.dark [data-testid="moying-recharge"] .moying-studio-pagehead > div > p {
  color: rgba(226, 222, 240, 0.62);
}

html[data-studio-theme="dark"] [data-studio-page="recharge"] .moying-studio-pagehead > .moying-studio-credit-card,
html.dark [data-studio-page="recharge"] .moying-studio-pagehead > .moying-studio-credit-card,
html[data-studio-theme="dark"] [data-testid="moying-recharge"] .moying-studio-pagehead > .moying-studio-credit-card,
html.dark [data-testid="moying-recharge"] .moying-studio-pagehead > .moying-studio-credit-card {
  color: #fafafa;
  background: #3f3f46;
  border-color: rgba(244, 244, 245, 0.4);
}

@media (max-width: 720px) {
  [data-studio-page="recharge"] .moying-studio-pagehead,
  [data-testid="moying-recharge"] .moying-studio-pagehead {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  [data-studio-page="recharge"] .moying-studio-pagehead > a,
  [data-testid="moying-recharge"] .moying-studio-pagehead > a {
    grid-column: 1;
  }

  [data-studio-page="recharge"] .moying-studio-pagehead > div,
  [data-testid="moying-recharge"] .moying-studio-pagehead > div {
    grid-column: 1;
  }

  [data-studio-page="recharge"] .moying-studio-pagehead > .moying-studio-credit-card,
  [data-testid="moying-recharge"] .moying-studio-pagehead > .moying-studio-credit-card {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: end;
  }
}

[data-studio-page="assets"],
[data-testid="moying-assets"] {
  --moying-assets-layout: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 16px;
  padding-bottom: 8px;
}

[data-studio-page="assets"] .moying-studio-card,
[data-testid="moying-assets"] .moying-studio-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-top: 12px;
  overflow: hidden;
}

[data-studio-page="assets"] .moying-studio-asset-grid,
[data-testid="moying-assets"] .moying-studio-asset-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 16px;
}

[data-studio-page="assets"] .moying-studio-empty,
[data-testid="moying-assets"] .moying-studio-empty {
  display: grid;
  place-content: center;
  flex: 1 1 auto;
  min-height: 14rem;
  text-align: center;
  color: var(--studio-muted);
}

[data-studio-page="assets"] .moying-studio-empty p,
[data-testid="moying-assets"] .moying-studio-empty p {
  margin: 0 0 6px;
  color: var(--studio-ink);
  font-size: 14px;
  font-weight: 600;
}

[data-studio-page="assets"] .moying-studio-empty span,
[data-testid="moying-assets"] .moying-studio-empty span {
  font-size: 13px;
  line-height: 1.5;
}

[data-studio-page="assets"] .moying-studio-asset-grid figure,
[data-testid="moying-assets"] .moying-studio-asset-grid figure {
  display: flex;
  flex-direction: column;
  align-self: start;
  width: auto;
  height: auto;
  overflow: hidden;
  padding: 0;
  background: var(--studio-paper);
  box-shadow: 0 1px 2px rgba(28, 23, 48, 0.05), 0 8px 18px -12px rgba(28, 23, 48, 0.18);
}

[data-studio-page="assets"] .moying-studio-asset-thumb,
[data-testid="moying-assets"] .moying-studio-asset-thumb {
  position: relative;
  flex: 0 0 140px;
  height: 140px;
  min-height: 140px;
  overflow: hidden;
  background: #111;
}

[data-studio-page="assets"] .moying-studio-asset-grid img,
[data-testid="moying-assets"] .moying-studio-asset-grid img,
[data-studio-page="assets"] .moying-studio-asset-grid video,
[data-testid="moying-assets"] .moying-studio-asset-grid video {
  display: block;
  width: 100%;
  height: 140px;
  flex: 0 0 140px;
  object-fit: cover;
  border: 0;
  border-radius: 0;
  background: #111;
}

[data-studio-page="assets"] .moying-studio-asset-thumb img,
[data-testid="moying-assets"] .moying-studio-asset-thumb img,
[data-studio-page="assets"] .moying-studio-asset-thumb video,
[data-testid="moying-assets"] .moying-studio-asset-thumb video {
  width: 100%;
  height: 100%;
  flex: none;
}

[data-studio-page="assets"] .moying-studio-asset-grid figcaption,
[data-testid="moying-assets"] .moying-studio-asset-grid figcaption {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 10px;
  border-top: 1px solid var(--studio-line);
  background: var(--studio-paper);
  color: var(--studio-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  text-align: left;
}

[data-studio-page="assets"] .moying-studio-asset-grid figure[data-cloud-id] figcaption,
[data-testid="moying-assets"] .moying-studio-asset-grid figure[data-cloud-id] figcaption {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

[data-studio-page="assets"] .moying-studio-fine,
[data-testid="moying-assets"] .moying-studio-fine {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--studio-line);
  color: var(--studio-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

html[data-studio-theme="dark"] [data-studio-page="assets"] .moying-studio-asset-grid figure,
html.dark [data-studio-page="assets"] .moying-studio-asset-grid figure,
html[data-studio-theme="dark"] [data-testid="moying-assets"] .moying-studio-asset-grid figure,
html.dark [data-testid="moying-assets"] .moying-studio-asset-grid figure {
  background: var(--studio-paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 18px -14px rgba(0, 0, 0, 0.55);
}

html[data-studio-theme="dark"] [data-studio-page="assets"] .moying-studio-asset-grid figcaption,
html.dark [data-studio-page="assets"] .moying-studio-asset-grid figcaption,
html[data-studio-theme="dark"] [data-testid="moying-assets"] .moying-studio-asset-grid figcaption,
html.dark [data-testid="moying-assets"] .moying-studio-asset-grid figcaption {
  background: color-mix(in srgb, var(--studio-brand) 12%, var(--studio-paper));
}

[data-studio-page="assets"] .moying-studio-asset-tabs,
[data-testid="moying-assets"] .moying-studio-asset-tabs {
  --moying-assets-preview-lightbox: 1;
  --moying-assets-layout: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  width: 100%;
  margin: 12px 0 0;
}

[data-studio-page="assets"] .moying-studio-asset-tabs button,
[data-testid="moying-assets"] .moying-studio-asset-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  color: var(--studio-muted);
  background: var(--studio-paper);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

[data-studio-page="assets"] .moying-studio-asset-tabs button.is-on,
[data-testid="moying-assets"] .moying-studio-asset-tabs button.is-on {
  color: var(--studio-ink);
  border-color: color-mix(in srgb, var(--studio-brand) 45%, var(--studio-line));
  background: color-mix(in srgb, var(--studio-brand) 12%, var(--studio-paper));
}

[data-testid="moying-asset-sections"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

[data-studio-page="assets"] .moying-studio-asset-grid figcaption small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  color: #a16207;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
}

[data-studio-page="assets"] .moying-studio-asset-grid figure[data-cloud-id] figcaption > .moying-studio-btn,
[data-testid="moying-assets"] .moying-studio-asset-grid figure[data-cloud-id] figcaption > .moying-studio-btn,
[data-studio-page="assets"] .moying-studio-asset-grid figure[data-cloud-id] figcaption > .is-kept,
[data-testid="moying-assets"] .moying-studio-asset-grid figure[data-cloud-id] figcaption > .is-kept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

[data-studio-page="assets"] .moying-studio-asset-grid figure[data-cloud-id] figcaption > .is-kept,
[data-testid="moying-assets"] .moying-studio-asset-grid figure[data-cloud-id] figcaption > .is-kept {
  border: 1px solid var(--studio-line);
  color: var(--studio-muted);
  background: color-mix(in srgb, var(--studio-paper) 88%, #fff);
}

[data-studio-page="assets"] .moying-studio-asset-grid figcaption small a,
[data-testid="moying-assets"] .moying-studio-asset-grid figcaption small a {
  flex: 0 0 auto;
  color: var(--studio-ink);
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

[data-studio-page="assets"] .moying-studio-asset-grid figcaption small a:hover,
[data-testid="moying-assets"] .moying-studio-asset-grid figcaption small a:hover {
  color: var(--studio-brand);
}

[data-studio-page="assets"] .moying-studio-asset-grid figure[data-asset-id],
[data-testid="moying-assets"] .moying-studio-asset-grid figure[data-asset-id] {
  position: relative;
  cursor: zoom-in;
}

[data-studio-page="assets"] .moying-studio-asset-grid figure[data-cloud-id],
[data-testid="moying-assets"] .moying-studio-asset-grid figure[data-cloud-id] {
  position: relative;
  cursor: default;
}

[data-studio-page="assets"] .moying-studio-asset-grid figure[data-asset-id] figcaption button[data-asset-preview],
[data-testid="moying-assets"] .moying-studio-asset-grid figure[data-asset-id] figcaption button[data-asset-preview] {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

[data-studio-page="assets"] .moying-studio-asset-badge,
[data-testid="moying-assets"] .moying-studio-asset-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--studio-ink);
  background: color-mix(in srgb, var(--studio-paper) 88%, #fff);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

[data-studio-page="assets"] [data-asset-dropzone].is-drop,
[data-testid="moying-assets"] [data-asset-dropzone].is-drop {
  outline: 2px dashed color-mix(in srgb, var(--studio-brand) 55%, var(--studio-line));
  outline-offset: -2px;
}

.moying-studio-asset-lightbox[hidden] {
  display: none;
}

.moying-studio-asset-lightbox {
  --moying-assets-preview-lightbox: 1;
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(28, 23, 48, 0.42);
}

.moying-studio-asset-lightbox-dialog {
  width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--studio-line);
  border-radius: 16px;
  background: var(--studio-paper);
  box-shadow: 0 24px 72px rgba(28, 23, 48, 0.18);
}

.moying-studio-asset-lightbox-header {
  --moying-free-image-lightbox-opaque: 1;
  position: relative;
  z-index: 2;
  isolation: isolate;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid var(--studio-line);
  background: color-mix(in srgb, var(--studio-paper) 92%, #e8eef6);
}

.moying-studio-asset-lightbox-header p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--studio-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moying-studio-asset-lightbox-header button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  border: 1px solid var(--studio-line);
  border-radius: 6px;
  color: var(--studio-ink);
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.moying-studio-asset-lightbox-image-wrap {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: color-mix(in srgb, var(--studio-paper) 88%, #dfe3ef);
}

.moying-studio-asset-lightbox-image-wrap img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 220px);
  display: block;
  object-fit: contain;
}

.moying-studio-asset-lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--studio-line);
  background: color-mix(in srgb, var(--studio-paper) 94%, #e8eef6);
}

.moying-studio-asset-lightbox-tags > span {
  color: var(--studio-muted);
  font-size: 12px;
  font-weight: 650;
}

.moying-studio-asset-tag {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  color: var(--studio-ink);
  background: var(--studio-paper);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.moying-studio-asset-tag.is-on {
  border-color: color-mix(in srgb, var(--studio-brand) 50%, var(--studio-line));
  background: color-mix(in srgb, var(--studio-brand) 16%, var(--studio-paper));
}

body.moying-assets-lightbox-open {
  overflow: hidden;
}

html[data-studio-theme="dark"] .moying-studio-asset-lightbox-dialog,
html.dark .moying-studio-asset-lightbox-dialog {
  border-color: #3f3f46;
  background: #18181b;
}

html[data-studio-theme="dark"] .moying-studio-asset-lightbox-header,
html.dark .moying-studio-asset-lightbox-header,
html[data-studio-theme="dark"] .moying-studio-asset-lightbox-tags,
html.dark .moying-studio-asset-lightbox-tags {
  border-color: #3f3f46;
  background: #18181b;
}

html[data-studio-theme="dark"] .moying-studio-asset-lightbox-header p,
html.dark .moying-studio-asset-lightbox-header p,
html[data-studio-theme="dark"] .moying-studio-asset-lightbox-tags > span,
html.dark .moying-studio-asset-lightbox-tags > span {
  color: #a1a1aa;
}

html[data-studio-theme="dark"] .moying-studio-asset-lightbox-header button,
html.dark .moying-studio-asset-lightbox-header button,
html[data-studio-theme="dark"] .moying-studio-asset-tag,
html.dark .moying-studio-asset-tag {
  color: #fafafa;
  border-color: #3f3f46;
  background: #27272a;
}

html[data-studio-theme="dark"] .moying-studio-asset-lightbox-image-wrap,
html.dark .moying-studio-asset-lightbox-image-wrap {
  background: #111113;
}

html[data-studio-theme="dark"] .moying-studio-asset-tag.is-on,
html.dark .moying-studio-asset-tag.is-on {
  border-color: color-mix(in srgb, var(--studio-brand) 55%, #3f3f46);
  background: color-mix(in srgb, var(--studio-brand) 22%, #18181b);
}

html[data-studio-theme="dark"] [data-studio-page="assets"] .moying-studio-asset-badge,
html.dark [data-studio-page="assets"] .moying-studio-asset-badge {
  color: #fafafa;
  background: color-mix(in srgb, #18181b 80%, #000);
}

html[data-studio-theme="dark"] [data-studio-page="assets"] .moying-studio-pagehead,
html.dark [data-studio-page="assets"] .moying-studio-pagehead,
html[data-studio-theme="dark"] [data-testid="moying-assets"] .moying-studio-pagehead,
html.dark [data-testid="moying-assets"] .moying-studio-pagehead {
  background:
    linear-gradient(var(--studio-paper), var(--studio-paper)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--studio-brand-from) 40%, transparent), color-mix(in srgb, var(--studio-line) 88%, transparent) 46%, color-mix(in srgb, var(--studio-brand-to) 34%, transparent)) border-box;
}

html[data-studio-theme="dark"] [data-studio-page="assets"] .moying-studio-pagehead h1,
html.dark [data-studio-page="assets"] .moying-studio-pagehead h1,
html[data-studio-theme="dark"] [data-testid="moying-assets"] .moying-studio-pagehead h1,
html.dark [data-testid="moying-assets"] .moying-studio-pagehead h1 {
  color: #f7f5ff;
}

html[data-studio-theme="dark"] [data-studio-page="assets"] .moying-studio-pagehead p,
html.dark [data-studio-page="assets"] .moying-studio-pagehead p,
html[data-studio-theme="dark"] [data-testid="moying-assets"] .moying-studio-pagehead p,
html.dark [data-testid="moying-assets"] .moying-studio-pagehead p {
  display: none;
}

body.moying-studio-body:has([data-studio-page="assets"]) {
  --moying-assets-layout: 2;
  height: 100dvh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.moying-studio-body:has([data-studio-page="assets"]) .moying-studio-header,
body.moying-studio-body:has([data-studio-page="assets"]) .moying-studio-footer {
  flex: 0 0 auto;
}

body.moying-studio-body:has([data-studio-page="assets"]) .moying-studio-footer {
  padding-bottom: 12px;
}

@media (max-width: 720px) {
  [data-studio-page="assets"] .moying-studio-pagehead,
  [data-testid="moying-assets"] .moying-studio-pagehead {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 56px;
    padding: 10px 14px;
  }

  [data-studio-page="assets"] .moying-studio-pagehead > a,
  [data-testid="moying-assets"] .moying-studio-pagehead > a,
  [data-studio-page="assets"] .moying-studio-pagehead > div,
  [data-testid="moying-assets"] .moying-studio-pagehead > div,
  [data-studio-page="assets"] .moying-studio-pagehead > .moying-studio-btn,
  [data-testid="moying-assets"] .moying-studio-pagehead > .moying-studio-btn {
    grid-column: auto;
    grid-row: auto;
    align-self: center;
  }

  [data-studio-page="assets"] .moying-studio-pagehead > .moying-studio-btn,
  [data-testid="moying-assets"] .moying-studio-pagehead > .moying-studio-btn {
    justify-self: end;
  }
}

html.dark body.moying-video-page {
  color: var(--studio-ink);
}

.moying-chat-page .moying-studio-header {
  background: color-mix(in srgb, var(--studio-paper) 88%, transparent);
  color: var(--studio-ink);
  border-color: var(--studio-line);
}

.moying-studio-workspace-chip {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  width: auto;
  max-width: none;
}

body > .moying-studio-workspace-chip {
  position: fixed;
  top: 8px;
  right: 12px;
  z-index: 80;
  overflow: visible;
}

.moying-studio-workspace-chip .moying-studio-user-btn {
  gap: 6px;
  padding: 6px 10px;
  color: #334155;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 999px;
}

html.dark .moying-studio-workspace-chip .moying-studio-user-btn,
html[data-studio-theme="dark"] .moying-studio-workspace-chip .moying-studio-user-btn {
  color: #fafafa;
  background: #3f3f46;
  border-color: rgba(244, 244, 245, 0.4);
}

.moying-studio-workspace-chip .moying-studio-header-inner,
.moying-studio-workspace-chip .moying-studio-header-tools {
  width: auto;
  max-width: none;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.moying-studio-workspace-chip .moying-studio-brand {
  display: none;
}

.moying-studio-workspace-chip .moying-studio-link,
.moying-studio-workspace-chip .moying-studio-credits {
  color: #334155;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(148, 163, 184, 0.42);
}

html.dark .moying-studio-workspace-chip .moying-studio-link,
html.dark .moying-studio-workspace-chip .moying-studio-credits,
html[data-studio-theme="dark"] .moying-studio-workspace-chip .moying-studio-link,
html[data-studio-theme="dark"] .moying-studio-workspace-chip .moying-studio-credits {
  color: #fafafa;
  background: #3f3f46;
  border-color: rgba(244, 244, 245, 0.4);
}

@media (max-width: 1100px) {
  .moying-studio-packs,
  .moying-studio-profile-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .moying-studio-login {
    grid-template-columns: 1fr;
  }

  .moying-studio-story {
    display: none;
  }

  .moying-studio-auth {
    margin: 32px auto;
  }
}

@media (max-width: 980px) {
  .moying-studio-modules {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .moying-studio-header-inner,
  .moying-studio-main,
  .moying-studio-footer {
    width: calc(100% - 24px);
  }

  .moying-studio-modules,
  .moying-studio-packs,
  .moying-studio-profile-grid,
  .moying-studio-hero,
  .moying-studio-pagehead,
  .moying-studio-composer-bar,
  .moying-studio-paybar,
  .moying-studio-tip {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  [data-studio-page="assets"] .moying-studio-pagehead,
  [data-testid="moying-assets"] .moying-studio-pagehead {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .moying-studio-go {
    width: 100%;
  }

  .moying-studio-header-inner {
    gap: 8px;
  }

  .moying-studio-header-tools {
    flex-wrap: nowrap;
    min-width: 0;
    gap: 8px;
  }

  .moying-studio-link,
  .moying-studio-icon-btn,
  .moying-studio-credits,
  .moying-studio-user-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .moying-studio-brand > .moying-studio-brand-copy,
  .moying-studio-brand > span:not(.moying-studio-mark),
  .moying-studio-brand small,
  .moying-studio-user-btn span {
    display: none;
  }

  .moying-studio-textlink {
    display: none;
  }

  .moying-studio-brand strong {
    display: block;
  }

  .moying-studio-pagehead {
    grid-template-columns: 1fr;
  }
}

html:has(body.moying-video-page) {
  --moying-video-picker-gutter: 1;
}

html:has(body.moying-video-library-open) {
  box-sizing: border-box;
  overflow: hidden;
  padding-right: var(--moying-video-scrollbar, 0px);
}

body.moying-video-page .moying-studio-main {
  width: 100%;
  max-width: none;
  padding: 0;
  min-height: calc(100vh - 56px);
}

body.moying-video-page .moying-studio-footer {
  display: none;
}

.moying-video-pagehead {
  display: none;
}

.moying-video-pagehead:has(.moying-video-pills:not([hidden])) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 16px 0;
}

.moying-video-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: calc(100vh - 56px);
}

.moying-video-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  padding: 20px 12px 16px;
  background: color-mix(in srgb, #fff 92%, var(--studio-bg));
  border-right: 1px solid var(--studio-line);
}

.moying-video-rail-kicker {
  margin: 16px 4px 8px;
  color: var(--studio-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.moying-video-rail-kicker:first-child {
  margin-top: 0;
}

.moying-video-rail-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 4px 8px;
}

.moying-video-rail-recent-head .moying-video-rail-kicker {
  margin: 0;
}

.moying-video-rail-clear {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--studio-muted);
  padding: 2px 6px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.moying-video-rail-clear:hover:not(:disabled),
.moying-video-rail-clear:focus-visible:not(:disabled) {
  color: var(--studio-ink);
  background: color-mix(in srgb, var(--studio-ink) 6%, #fff);
}

.moying-video-rail-clear:disabled {
  opacity: 0.4;
  cursor: default;
}

.moying-video-rail-link {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--studio-ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.moying-video-rail-new {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  margin-bottom: 4px;
  padding: 0 10px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: #fff;
  color: var(--studio-ink);
  text-align: left;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.moying-video-rail-new::before {
  content: "+";
  width: 18px;
  margin-right: 8px;
  color: var(--studio-brand);
  font-size: 16px;
  font-weight: 700;
}

.moying-video-rail-link.is-active {
  color: var(--studio-brand);
  background: color-mix(in srgb, var(--studio-brand) 10%, #fff);
}

.moying-video-rail .moying-video-history {
  display: grid;
  gap: 6px;
  overflow: auto;
}

.moying-video-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.moying-video-workspace .moying-video-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.moying-video-workspace #video-batch-panel {
  padding: 16px 20px 24px;
}

.moying-video-pills {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.moying-video-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  color: var(--studio-muted);
  background: var(--studio-glass);
  font-size: 11px;
}

.moying-video-pill.is-good {
  color: #15803d;
  border-color: color-mix(in srgb, #16a34a 28%, var(--studio-line));
}

.moying-video-pill.is-warn {
  color: #b45309;
  border-color: color-mix(in srgb, #f59e0b 32%, var(--studio-line));
}

.moying-video-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 16px 0 14px;
  padding: 4px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--studio-paper) 88%, transparent);
  border: 1px solid var(--studio-line);
}

.moying-video-tab,
.moying-video-mode,
.moying-video-segmented button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--studio-muted);
  border-radius: 10px;
  cursor: pointer;
}

.moying-video-tab {
  min-height: 40px;
  font-size: 14px;
}

.moying-video-tab.is-active,
.moying-video-mode.is-active,
.moying-video-segmented button.is-active {
  color: var(--studio-ink);
  background:
    linear-gradient(color-mix(in srgb, var(--studio-brand) 10%, var(--studio-paper)), color-mix(in srgb, var(--studio-brand) 10%, var(--studio-paper))) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--studio-brand-from) 42%, var(--studio-line)), color-mix(in srgb, var(--studio-brand-to) 32%, var(--studio-line))) border-box;
  border: 1px solid transparent;
  box-shadow: var(--studio-shadow);
}

.moying-video-toolbar,
.moying-video-job,
.moying-video-empty,
.moying-video-modes,
.moying-video-controls,
.moying-video-field textarea,
.moying-video-field input,
.moying-video-field select,
.moying-video-dropzone,
.moying-video-history-item {
  border: 1px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(var(--studio-glass), var(--studio-glass)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--studio-brand-from) 40%, transparent), color-mix(in srgb, var(--studio-line) 88%, transparent) 46%, color-mix(in srgb, var(--studio-brand-to) 34%, transparent)) border-box;
  box-shadow: var(--studio-shadow);
  backdrop-filter: blur(20px) saturate(1.4);
}

.moying-video-toolbar,
.moying-video-job {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.moying-video-workspace #video-batch-panel .moying-video-toolbar {
  position: relative;
  z-index: 8;
  overflow: visible;
}

.moying-video-workspace #video-batch-panel .moying-video-job,
.moying-video-workspace #video-batch-panel .moying-video-empty,
.moying-video-workspace #video-batch-panel .moying-video-import-note {
  position: relative;
  z-index: 0;
}

.moying-video-retain-warn {
  margin: 6px 0 0;
  color: #a16207;
  font-size: 12px;
  line-height: 1.4;
}

.moying-video-duration-mismatch {
  margin: 6px 0 0;
  color: #b45309;
  font-size: 12px;
  line-height: 1.4;
}

.moying-video-job-player {
  flex: 1 1 100%;
}

.moying-video-job-player video {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(50vh, 360px);
  background: #111;
  border-radius: 8px;
}

.moying-video-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.moying-video-import-note {
  margin: 0 0 10px;
}

.moying-video-dock .moying-video-import-note,
.moying-video-create > .moying-video-import-note {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  white-space: normal;
}

.moying-video-job.is-selected {
  border-color: color-mix(in srgb, var(--studio-brand) 42%, transparent);
}

.moying-video-batch-name {
  font-size: 13px;
  font-weight: 650;
}

.moying-video-toolbar-actions,
.moying-video-job-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.moying-video-batch-model {
  position: relative;
}

.moying-video-batch-model[open] {
  z-index: 12;
}

.moying-video-page .moying-video-batch-model > summary {
  --moying-video-batch-model-label: 280px;
  justify-content: flex-start;
  list-style: none;
  min-width: 168px;
  max-width: min(var(--moying-video-batch-model-label), 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.moying-video-batch-model > summary::-webkit-details-marker {
  display: none;
}

.moying-video-page .moying-video-batch-model .moying-video-dock-pop {
  --moying-video-batch-model-pop: 300px;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  bottom: auto;
  left: auto;
  z-index: 24;
  display: grid;
  align-content: start;
  width: min(var(--moying-video-batch-model-pop), 78vw);
  min-width: 240px;
  max-width: min(var(--moying-video-batch-model-pop), calc(100vw - 24px));
  max-height: min(42vh, 280px);
  overflow: hidden;
  background: #fff;
}

.moying-video-batch-model #video-batch-model {
  width: 100%;
  min-height: 36px;
  margin: 0 0 8px;
  padding: 0 10px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--studio-bg) 40%, transparent);
  color: inherit;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.moying-video-batch-model #video-batch-model:focus,
.moying-video-batch-model #video-batch-model:focus-visible {
  border-color: color-mix(in srgb, var(--studio-brand) 36%, var(--studio-line));
  background: color-mix(in srgb, var(--studio-paper) 88%, transparent);
}

.moying-video-page .moying-video-batch-model-choices {
  display: grid;
  gap: 4px;
  min-height: 0;
  max-height: min(32vh, 220px);
  overflow-x: hidden;
  overflow-y: auto;
}

.moying-video-page .moying-video-batch-model-choices .moying-video-mode {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  flex: none;
  min-height: 34px;
  padding: 6px 10px;
  text-align: left;
  font-size: 12px;
  line-height: 1.3;
}

.moying-video-page .moying-video-batch-model-choices .moying-video-mode strong,
.moying-video-page .moying-video-batch-model-choices .moying-video-mode span {
  display: block;
  white-space: nowrap;
}

.moying-video-page .moying-video-batch-model-choices .moying-video-mode strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.moying-video-page .moying-video-batch-model-choices .moying-video-mode span {
  flex: 0 0 auto;
  color: var(--studio-muted);
  font-size: 11px;
}

.moying-video-thumb {
  width: 64px;
  height: 36px;
  overflow: hidden;
  border-radius: 8px;
  background: color-mix(in srgb, var(--studio-ink) 6%, transparent);
  border: 1px solid var(--studio-line);
}

.moying-video-preview video,
.moying-video-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--moying-video-preview-max-height, min(56vh, 520px));
  object-fit: contain;
  object-position: center;
  min-width: 0;
  min-height: 0;
}

.moying-video-thumb img,
.moying-video-slot img,
.moying-video-slot video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.moying-video-job-copy {
  min-width: 0;
  flex: 1;
}

.moying-video-job-copy p,
.moying-video-empty p,
.moying-video-mode span,
.moying-video-placeholder,
.moying-video-note {
  margin: 3px 0 0;
  color: var(--studio-muted);
  font-size: 12px;
  line-height: 1.5;
}

.moying-video-job-copy p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moying-video-empty {
  padding: 28px 20px;
  text-align: center;
}

.moying-video-create {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: visible;
  min-height: calc(100vh - 56px);
}

.moying-video-feed {
  flex: 1 1 auto;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 28px;
}

.moying-video-feed-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
}

.moying-video-feed-heading {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.moying-video-feed-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.moying-video-feed-tools input,
.moying-video-feed-tools select,
.moying-video-feed-assets {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1;
}

.moying-video-feed-tools input {
  width: 160px;
}

#moying-video-studio-app .moying-video-feed-tools .moying-studio-select {
  width: auto;
  flex: 0 0 auto;
}

#moying-video-studio-app .moying-video-feed-tools .moying-studio-select-button {
  box-sizing: border-box;
  min-height: 32px;
  height: 32px;
  padding: 0 28px 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.moying-video-feed-assets {
  --moying-video-assets-chip: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: max-content;
  white-space: nowrap;
  text-decoration: none;
}

.moying-video-feed-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 56px 16px 32px;
  color: var(--studio-muted);
  text-align: center;
}

.moying-video-feed-empty p {
  margin: 0;
  font-size: 13px;
}

.moying-video-card {
  margin-bottom: 20px;
  padding: 16px 16px 14px;
  border: 1px solid var(--studio-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px -20px rgba(28, 23, 48, 0.35);
}

.moying-video-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.moying-video-card-thumb,
.moying-video-history-thumb {
  --moying-video-first-frame: 1;
  flex: 0 0 auto;
  width: 44px;
  height: 28px;
  overflow: hidden;
  border-radius: 6px;
  background: color-mix(in srgb, var(--studio-ink) 8%, #fff);
}

.moying-video-card-thumb video,
.moying-video-card-thumb img,
.moying-video-history-thumb video,
.moying-video-history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.moying-video-card-prompt {
  --moying-video-card-prompt-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: var(--moying-video-card-prompt-clamp);
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.moying-video-card.is-open .moying-video-card-prompt {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.moying-video-card-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 6px 0 0;
  color: var(--studio-muted);
  font-size: 12px;
}

.moying-video-card-detail,
.moying-video-card-edit,
.moying-video-card-actions .moying-studio-btn {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--studio-brand);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.moying-video-card-extra {
  margin: 8px 0 0;
  color: var(--studio-muted);
  font-size: 12px;
}

.moying-video-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.moying-video-preview {
  --moying-video-preview-max-height: min(56vh, 520px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 760px);
  max-width: min(100%, 760px);
  height: auto;
  max-height: var(--moying-video-preview-max-height);
  min-height: 0;
  min-width: 0;
  margin: 14px auto 0;
  overflow: hidden;
  flex: none;
}

.moying-video-preview-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(15, 18, 28, 0.72);
  color: #fff;
  font-size: 12px;
  line-height: 24px;
}

.moying-video-dock {
  position: sticky;
  bottom: 18px;
  z-index: 30;
  overflow: visible;
  width: min(920px, calc(100% - 32px));
  margin: auto auto 18px;
  padding: 14px 16px 12px;
  border: 1px solid var(--studio-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px -18px rgba(28, 23, 48, 0.32), 0 2px 10px rgba(28, 23, 48, 0.06);
}

.moying-video-dock #video-prompt {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 88px;
  max-height: 168px;
  margin: 0;
  padding: 4px 58px 12px 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--studio-ink);
  caret-color: var(--studio-ink);
  font: inherit;
  font-size: 14px;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  font-variant-ligatures: none;
  font-kerning: none;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  scrollbar-gutter: stable;
  -webkit-text-fill-color: currentColor;
  outline: none;
  resize: none;
  overflow: auto;
}

.moying-video-dock #video-prompt.is-empty::before {
  content: attr(data-placeholder);
  position: absolute;
  top: 4px;
  left: 6px;
  right: 58px;
  color: var(--studio-muted);
  pointer-events: none;
}

.moying-video-dock #video-prompt::placeholder {
  color: var(--studio-muted);
  -webkit-text-fill-color: var(--studio-muted);
  opacity: 1;
}

.moying-video-dock.is-prompt-expanded {
  width: min(1080px, calc(100% - 24px));
}

.moying-video-dock.is-prompt-expanded #video-prompt {
  min-height: min(52vh, 520px);
  max-height: min(68vh, 720px);
}

.moying-video-prompt-expand {
  position: absolute;
  top: 2px;
  right: 2px;
  z-index: 3;
  min-width: 44px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: #fff;
  color: var(--studio-ink);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.moying-video-dock-bar,
.moying-free-image-dock-bar {
  --studio-dock-control-size: 40px;
  --studio-dock-control-padding: 0 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  overflow: visible;
}

.moying-video-dock .moying-video-modes,
.moying-video-dock .moying-video-dropzone {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.moying-video-dock .moying-video-modes {
  display: grid;
  flex: 0 0 auto;
  gap: 6px;
}

.moying-video-dock .moying-video-mode {
  display: grid;
  justify-items: start;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 12px;
}

.moying-video-dock .moying-video-mode span {
  color: var(--studio-muted);
  font-size: 11px;
}

.moying-video-page .moying-video-dock-model > summary {
  justify-content: flex-start;
  max-width: min(280px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.moying-video-dock-model .moying-video-dock-pop {
  min-width: 260px;
  max-width: min(360px, calc(100vw - 24px));
}

.moying-video-dock-model #video-model {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--studio-bg) 40%, transparent);
  color: inherit;
  font: inherit;
  font-size: 12px;
  outline: none;
  appearance: none;
  box-shadow: none;
}

.moying-video-dock-model #video-model:focus,
.moying-video-dock-model #video-model:focus-visible {
  border-color: color-mix(in srgb, var(--studio-brand) 36%, var(--studio-line));
  background: color-mix(in srgb, var(--studio-paper) 88%, transparent);
}

.moying-video-dock-model #video-model:-webkit-autofill,
.moying-video-dock-model #video-model:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--studio-ink);
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 99999s ease-out;
}

.moying-video-model-choices {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.moying-video-model-choices button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: transparent;
  color: var(--studio-ink);
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.moying-video-model-choices button.is-active {
  color: var(--studio-ink);
  background:
    linear-gradient(color-mix(in srgb, var(--studio-brand) 10%, var(--studio-paper)), color-mix(in srgb, var(--studio-brand) 10%, var(--studio-paper))) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--studio-brand-from) 42%, var(--studio-line)), color-mix(in srgb, var(--studio-brand-to) 32%, var(--studio-line))) border-box;
  border: 1px solid transparent;
}

.moying-video-dock details {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
}

.moying-video-dock details[open] {
  z-index: 50;
}

.moying-video-dock summary,
.moying-free-image-dock summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  height: var(--studio-dock-control-size);
  min-height: var(--studio-dock-control-size);
  padding: var(--studio-dock-control-padding);
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  background: transparent;
  color: var(--studio-ink);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.moying-video-dock summary:hover,
.moying-free-image-dock summary:hover,
.moying-video-dock details[open] > summary,
.moying-free-image-dock details[open] > summary {
  border-color: color-mix(in srgb, var(--studio-brand) 28%, var(--studio-line));
  background: color-mix(in srgb, var(--studio-brand) 6%, transparent);
}

.moying-video-dock summary::-webkit-details-marker,
.moying-video-dock summary::marker,
.moying-free-image-dock summary::-webkit-details-marker,
.moying-free-image-dock summary::marker {
  display: none;
  content: none;
}

.moying-video-dock-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 60;
  display: grid;
  gap: 8px;
  min-width: 196px;
  padding: 10px;
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--studio-shadow);
}

.moying-video-dock-pop.is-fixed-pop {
  position: fixed;
  right: auto;
  bottom: auto;
  z-index: 90;
}

.moying-video-dock-duration .moying-video-dock-pop {
  min-width: 228px;
}

.moying-video-duration-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--studio-muted);
  font-size: 11px;
}

.moying-video-duration-slider {
  display: block;
  min-width: 0;
}

.moying-video-duration-slider input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--studio-brand);
  cursor: pointer;
}

.moying-video-duration-value {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 650;
}

.moying-video-duration-ticks {
  position: relative;
  grid-column: 2;
  height: 18px;
  margin-top: -2px;
}

.moying-video-duration-tick {
  position: absolute;
  top: 0;
  left: var(--duration-tick-position);
  display: grid;
  justify-items: center;
  gap: 2px;
  transform: translateX(-50%);
  color: var(--studio-muted);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.moying-video-duration-tick i {
  display: block;
  width: 1px;
  height: 5px;
  background: var(--studio-line-strong, var(--studio-line));
}

.moying-video-dock-mode .moying-video-dock-pop {
  left: 0;
  right: auto;
  min-width: 248px;
}

.moying-video-dock #video-generate,
.moying-free-image-dock #free-image-generate {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 var(--studio-dock-control-size);
  width: var(--studio-dock-control-size);
  min-width: var(--studio-dock-control-size);
  height: var(--studio-dock-control-size);
  min-height: var(--studio-dock-control-size);
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.moying-video-dock-note {
  margin: 6px 6px 0;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moying-video-dock-note:empty,
#video-status:empty,
#video-model-status:empty {
  display: none;
}

.moying-video-create-tip {
  margin: 0;
  color: #b45309;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

.moying-video-placeholder.is-generating,
.moying-video-placeholder.is-canceled {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
}

.moying-video-placeholder.is-canceled {
  gap: 8px;
  padding: 16px 24px;
  text-align: center;
}

.moying-video-cancel {
  min-height: 32px;
  padding: 0 16px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.moying-video-cancel-warn[hidden] {
  display: none;
}

.moying-video-cancel-warn {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 24, 27, 0.42);
}

.moying-video-cancel-warn-dialog {
  width: min(360px, 100%);
  display: grid;
  gap: 10px;
  padding: 20px 20px 16px;
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: var(--studio-paper);
  box-shadow: 0 24px 72px rgba(24, 24, 27, 0.18);
}

.moying-video-cancel-warn-dialog p {
  margin: 0;
  color: var(--studio-ink);
  font-size: 13px;
  line-height: 1.55;
}

#video-cancel-warn-title {
  font-size: 16px;
  font-weight: 700;
}

.moying-video-cancel-warn-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.moying-video-cancel-warn-dialog footer button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  color: var(--studio-ink);
  background: var(--studio-paper);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.moying-video-cancel-warn-dialog footer button.is-danger {
  border-color: transparent;
  color: #fff;
  background: #b45309;
}

.moying-video-cancel:hover,
.moying-video-cancel:focus-visible {
  border-color: rgba(17, 24, 39, 0.28);
  background: #f8fafc;
}

.moying-video-dock-refs {
  margin: 0 0 8px;
}

.moying-video-dock-refs .moying-video-slots,
.moying-video-slots,
#video-references.moying-video-slots {
  --moying-video-ref-cover: 1;
  --moying-video-ref-stack: 1;
  --moying-video-ref-overlap: 32px;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  max-width: 100%;
  margin: 0;
}

.moying-video-dock-refs .moying-video-slot,
.moying-video-slot,
#video-references.moying-video-slots > .moying-video-slot {
  flex: 0 0 72px;
  flex-grow: 0;
  flex-shrink: 0;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: 72px;
  min-height: 72px;
  margin: 0;
}

.moying-video-slot figcaption,
.moying-video-slot-kind {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.moying-video-slot-kind {
  top: 4px;
  bottom: auto;
  right: auto;
  width: auto;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(15, 18, 28, 0.72);
  text-shadow: none;
}

.moying-video-slot-audio {
  font-size: 22px;
  color: var(--studio-ink);
}

.moying-video-slot.is-audio,
.moying-video-slot.is-add,
.moying-video-slot.is-empty {
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px dashed var(--studio-line);
  background: color-mix(in srgb, var(--studio-bg) 70%, #fff);
  color: var(--studio-muted);
  cursor: pointer;
}

.moying-video-slot.is-add span,
.moying-video-slot.is-empty span {
  font-size: 18px;
  line-height: 1;
  color: var(--studio-brand);
}

.moying-video-slot.is-add small,
.moying-video-slot.is-empty small {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.moying-video-modes,
.moying-video-controls {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 0;
}

.moying-video-modes {
  display: flex;
  flex-direction: row;
  gap: 8px;
}

.moying-video-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 0.9fr);
  gap: 10px;
}

.moying-video-mode {
  flex: 0 0 auto;
  text-align: center;
  padding: 8px 10px;
}

.moying-video-field {
  display: grid;
  gap: 6px;
}

.moying-video-field > span {
  color: var(--studio-muted);
  font-size: 12px;
}

.moying-video-field textarea,
.moying-video-field input,
.moying-video-field select {
  width: 100%;
  color: inherit;
  font: inherit;
  outline: none;
}

.moying-video-field input,
.moying-video-field select {
  min-height: 36px;
  padding: 0 10px;
}

.moying-video-field textarea {
  min-height: 112px;
  padding: 10px 12px;
  resize: vertical;
}

.moying-video-note,
.moying-video-dropzone {
  outline: 2px dashed transparent;
  outline-offset: 2px;
}

.moying-video-dropzone.is-dragover {
  outline-color: var(--studio-brand);
  background: color-mix(in srgb, var(--studio-brand) 8%, transparent);
}

.moying-video-dropzone {
  padding: 10px 12px;
}

.moying-video-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.moying-video-dropzone {
  position: relative;
}

.moying-video-slots {
  margin-bottom: 0;
  justify-content: flex-start;
}

#video-references.moying-video-slots > .moying-video-slot + .moying-video-slot:not(.is-add):not(.is-empty) {
  margin-left: calc(var(--moying-video-ref-overlap, 32px) * -1);
}

#video-references.moying-video-slots > .moying-video-slot.is-add,
#video-references.moying-video-slots > .moying-video-slot.is-empty {
  margin-left: 8px;
}

#video-references.moying-video-slots > .moying-video-slot.is-add:first-child,
#video-references.moying-video-slots > .moying-video-slot.is-empty:first-child {
  margin-left: 0;
}

.moying-video-library-picker[hidden] {
  display: none;
}

.moying-video-library-picker {
  --moying-video-library-picker: 1;
  position: fixed;
  z-index: 85;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 24, 27, 0.42);
}

.moying-video-library-dialog {
  width: min(420px, 100%);
  max-height: min(520px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: var(--studio-paper);
  box-shadow: 0 24px 72px rgba(24, 24, 27, 0.18);
}

.moying-video-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid var(--studio-line);
  background: color-mix(in srgb, var(--studio-bg) 70%, #fff);
}

.moying-video-library-header p {
  margin: 0;
  color: var(--studio-ink);
  font-size: 14px;
  font-weight: 650;
}

.moying-video-library-header button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  color: var(--studio-muted);
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.moying-video-library-header button:hover {
  color: var(--studio-ink);
  background: color-mix(in srgb, var(--studio-brand) 8%, #fff);
}

.moying-video-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding: 12px 14px;
}

.moying-video-library-item {
  appearance: none;
  width: 72px;
  height: 72px;
  display: grid;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--studio-bg) 70%, #fff);
  cursor: pointer;
}

.moying-video-library-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  grid-area: 1 / 1;
}

.moying-video-library-item span {
  grid-area: 1 / 1;
  align-self: end;
  padding: 2px 4px;
  color: #fff;
  background: rgba(24, 24, 27, 0.55);
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
}

.moying-video-library-item.is-selected {
  outline: 2px solid var(--studio-brand);
  outline-offset: 1px;
}

.moying-video-library-item.is-used {
  cursor: default;
  opacity: 0.55;
}

.moying-video-library-empty {
  margin: 0;
  padding: 28px 18px;
  color: var(--studio-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.moying-video-library-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--studio-line);
}

.moying-video-library-link {
  color: var(--studio-brand);
  font-size: 12px;
  text-decoration: none;
}

.moying-video-library-link:hover {
  text-decoration: underline;
}

.moying-video-library-actions {
  display: flex;
  gap: 8px;
}

.moying-video-library-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  color: var(--studio-ink);
  background: var(--studio-paper);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.moying-video-library-actions button:last-child {
  border-color: transparent;
  color: #fff;
  background: var(--studio-brand);
}

.moying-video-library-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}

html[data-studio-theme="dark"] .moying-video-library-dialog,
html.dark .moying-video-library-dialog {
  border-color: #3f3f46;
  background: #18181b;
}

html[data-studio-theme="dark"] .moying-video-library-header,
html.dark .moying-video-library-header,
html[data-studio-theme="dark"] .moying-video-library-footer,
html.dark .moying-video-library-footer {
  border-color: #3f3f46;
  background: #18181b;
}

html[data-studio-theme="dark"] .moying-video-library-header p,
html.dark .moying-video-library-header p,
html[data-studio-theme="dark"] .moying-video-library-empty,
html.dark .moying-video-library-empty {
  color: #e4e4e7;
}

html[data-studio-theme="dark"] .moying-video-library-header button,
html.dark .moying-video-library-header button {
  color: #a1a1aa;
}

html[data-studio-theme="dark"] .moying-video-library-header button:hover,
html.dark .moying-video-library-header button:hover,
html[data-studio-theme="dark"] .moying-video-library-actions button,
html.dark .moying-video-library-actions button {
  color: #fafafa;
  background: #27272a;
  border-color: #3f3f46;
}

html[data-studio-theme="dark"] .moying-video-library-actions button:last-child,
html.dark .moying-video-library-actions button:last-child {
  border-color: transparent;
  background: var(--studio-brand);
}

html[data-studio-theme="dark"] .moying-video-library-item,
html.dark .moying-video-library-item {
  border-color: #3f3f46;
  background: #27272a;
}

body.moying-video-library-open {
  overflow: hidden;
}

#video-references.moying-video-slots > .moying-video-slot:hover,
#video-references.moying-video-slots > .moying-video-slot:focus,
#video-references.moying-video-slots > .moying-video-slot:focus-within,
#video-references.moying-video-slots > .moying-video-slot:focus-visible {
  z-index: 24;
}

#video-references.moying-video-slots > .moying-video-slot:not(.is-add):hover {
  z-index: 5;
}

.moying-video-slot {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--studio-line);
  background: color-mix(in srgb, var(--studio-paper) 80%, transparent);
  color: var(--studio-muted);
  font-size: 12px;
  cursor: pointer;
}

.moying-video-slot img,
.moying-video-slot video {
  position: absolute;
  inset: 0;
  display: block;
}

.moying-video-slot button {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 6px;
  background: color-mix(in srgb, var(--studio-paper) 88%, transparent);
  cursor: pointer;
}

.moying-video-reference-preview {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 28px 24px 24px;
  background: rgba(24, 24, 27, 0.72);
}

.moying-video-reference-preview button {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 64px;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--studio-ink);
  cursor: pointer;
}

.moying-video-reference-preview-frame {
  display: grid;
  place-items: center;
}

.moying-video-reference-preview img,
.moying-video-reference-preview video {
  max-width: min(960px, 92vw);
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 12px;
  background: #111;
}

.moying-video-reference-preview p {
  margin: 10px 0 0;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.moying-video-segmented {
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
}

.moying-video-segmented button {
  min-height: 36px;
  border: 1px solid var(--studio-line);
}

.moying-studio-btn.is-ghost {
  min-height: 28px;
  padding: 0 8px;
  background: transparent;
  box-shadow: none;
}

.moying-video-status,
.moying-video-meta {
  font-size: 12px;
  white-space: nowrap;
}

.moying-video-meta {
  color: var(--studio-muted);
  width: 64px;
  text-align: right;
}

.moying-video-status.is-completed { color: #16a34a; }
.moying-video-status.is-failed { color: #dc2626; }
.moying-video-status.is-running,
.moying-video-status.is-queued { color: var(--studio-brand); }
.moying-video-status.is-draft { color: var(--studio-muted); }

.moying-video-history {
  display: grid;
  gap: 6px;
}

.moying-video-history-empty {
  margin: 0;
  padding: 8px 10px;
  color: var(--studio-muted);
  font-size: 12px;
}

.moying-video-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.moying-video-history-item:hover,
.moying-video-history-item:focus-visible {
  background: color-mix(in srgb, var(--studio-ink) 5%, #fff);
}

.moying-video-history-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.moying-video-history-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moying-video-history-copy small {
  color: var(--studio-muted);
  font-size: 11px;
}

.moying-video-job progress {
  width: 100%;
  height: 4px;
  margin-top: 6px;
  accent-color: var(--studio-brand);
}

@media (max-width: 980px) {
  .moying-video-shell {
    grid-template-columns: 1fr;
  }

  .moying-video-rail {
    border-right: 0;
    border-bottom: 1px solid var(--studio-line);
  }

  .moying-video-control-row,
  .moying-video-job,
  .moying-video-toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .moying-video-pills,
  .moying-video-toolbar-actions,
  .moying-video-job-actions {
    margin-left: 0;
  }

  .moying-video-meta {
    display: none;
  }
}


.moying-video-page .moying-video-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.moying-video-page .moying-video-mode strong,
.moying-video-page .moying-video-mode span {
  display: block;
  white-space: nowrap;
}

.moying-video-field-model #video-model-status {
  margin: 4px 0 0;
}

.moying-video-page .moying-video-preview {
  width: min(100%, 720px);
  min-height: 0;
  height: auto;
  max-height: var(--moying-video-preview-max-height, min(56vh, 520px));
  max-width: min(100%, 720px);
  border-radius: 14px;
  background: color-mix(in srgb, var(--studio-ink) 4%, #fff);
}

.moying-video-page .moying-video-preview video,
.moying-video-page .moying-video-preview img {
  max-width: 100%;
  max-height: var(--moying-video-preview-max-height, min(56vh, 520px));
  object-fit: contain;
}

.moying-video-card-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.moying-video-card-refs img,
.moying-video-card-refs video {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  background: color-mix(in srgb, var(--studio-ink) 8%, #fff);
}

.moying-video-feed-empty .moying-video-preview {
  margin-top: 28px;
}

html[data-studio-theme="dark"] .moying-video-dock,
html[data-studio-theme="dark"] .moying-video-card,
html[data-studio-theme="dark"] .moying-video-dock-pop {
  background: #171924;
}

html[data-studio-theme="dark"] .moying-video-rail,
html.dark .moying-video-rail {
  --moying-video-dark-rail: 1;
  color: #fafafa;
  background: #18181b;
  border-right-color: #3f3f46;
  border-bottom-color: #3f3f46;
}

html[data-studio-theme="dark"] .moying-video-rail-kicker,
html.dark .moying-video-rail-kicker,
html[data-studio-theme="dark"] .moying-video-rail-clear,
html.dark .moying-video-rail-clear,
html[data-studio-theme="dark"] .moying-video-history-empty,
html.dark .moying-video-history-empty,
html[data-studio-theme="dark"] .moying-video-history-copy small,
html.dark .moying-video-history-copy small {
  color: #a1a1aa;
}

html[data-studio-theme="dark"] .moying-video-rail-link,
html[data-studio-theme="dark"] .moying-video-rail-new,
html[data-studio-theme="dark"] .moying-video-history-item,
html.dark .moying-video-rail-link,
html.dark .moying-video-rail-new,
html.dark .moying-video-history-item {
  color: #fafafa;
  box-shadow: none;
  backdrop-filter: none;
}

html[data-studio-theme="dark"] .moying-video-rail-new,
html.dark .moying-video-rail-new,
html[data-studio-theme="dark"] .moying-video-history-item,
html.dark .moying-video-history-item {
  border-color: #3f3f46;
  background: #27272a;
}

html[data-studio-theme="dark"] .moying-video-rail-link.is-active,
html.dark .moying-video-rail-link.is-active {
  color: #d4c4ff;
  background: color-mix(in srgb, var(--studio-brand) 16%, #18181b);
}

html[data-studio-theme="dark"] .moying-video-rail-clear:hover:not(:disabled),
html[data-studio-theme="dark"] .moying-video-rail-clear:focus-visible:not(:disabled),
html.dark .moying-video-rail-clear:hover:not(:disabled),
html.dark .moying-video-rail-clear:focus-visible:not(:disabled) {
  color: #fafafa;
  background: #3f3f46;
}

html[data-studio-theme="dark"] .moying-video-history-item:hover,
html[data-studio-theme="dark"] .moying-video-history-item:focus-visible,
html.dark .moying-video-history-item:hover,
html.dark .moying-video-history-item:focus-visible {
  background: #3f3f46;
}

html[data-studio-theme="dark"] .moying-video-history-thumb,
html.dark .moying-video-history-thumb {
  background: #27272a;
}

html[data-studio-theme="dark"] .moying-video-preview,
html[data-studio-theme="dark"] .moying-video-page .moying-video-preview,
html.dark .moying-video-preview,
html.dark .moying-video-page .moying-video-preview {
  background: #18181b;
  color: #fafafa;
}

html[data-studio-theme="dark"] .moying-video-preview.is-failed,
html.dark .moying-video-preview.is-failed {
  background: #27272a;
}

html[data-studio-theme="dark"] .moying-video-preview .moying-video-placeholder,
html[data-studio-theme="dark"] .moying-video-preview.is-failed .moying-video-placeholder,
html.dark .moying-video-preview .moying-video-placeholder,
html.dark .moying-video-preview.is-failed .moying-video-placeholder {
  color: #e4e4e7;
  padding: 16px 20px;
  text-align: center;
  max-width: 92%;
}

html[data-studio-theme="dark"] .moying-video-create-tip,
html.dark .moying-video-create-tip {
  color: #fbbf24;
}

html[data-studio-theme="dark"] .moying-video-cancel,
html.dark .moying-video-cancel {
  border-color: rgba(250, 250, 250, 0.16);
  background: #27272a;
  color: #fafafa;
}

html[data-studio-theme="dark"] .moying-video-cancel:hover,
html[data-studio-theme="dark"] .moying-video-cancel:focus-visible,
html.dark .moying-video-cancel:hover,
html.dark .moying-video-cancel:focus-visible {
  border-color: rgba(250, 250, 250, 0.28);
  background: #3f3f46;
}

html[data-studio-theme="dark"] .moying-video-feed-tools,
html.dark .moying-video-feed-tools {
  --moying-video-dark-feed-tools: 1;
}

html[data-studio-theme="dark"] .moying-video-feed-tools input,
html[data-studio-theme="dark"] .moying-video-feed-tools select,
html[data-studio-theme="dark"] .moying-video-feed-assets,
html[data-studio-theme="dark"] .moying-video-feed-tools .moying-studio-select-button,
html.dark .moying-video-feed-tools input,
html.dark .moying-video-feed-tools select,
html.dark .moying-video-feed-assets,
html.dark .moying-video-feed-tools .moying-studio-select-button {
  color: #fafafa;
  border-color: #3f3f46;
  background: #27272a;
  color-scheme: dark;
}

html[data-studio-theme="dark"] .moying-video-feed-tools input::placeholder,
html.dark .moying-video-feed-tools input::placeholder {
  color: #a1a1aa;
  opacity: 1;
}

body.moying-free-image-page .moying-studio-main {
  width: 100%;
  max-width: none;
  padding: 0;
  min-height: calc(100vh - 56px);
}

body.moying-free-image-page .moying-free-image-shell {
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.moying-free-image-page .moying-free-image-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
}

body.moying-free-image-page .moying-free-image-composer {
  --moying-free-image-ref-size: 72px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 12px 16px;
  background: color-mix(in srgb, #fff 92%, var(--studio-bg));
  border-right: 1px solid var(--studio-line);
  overflow: hidden;
}

body.moying-free-image-page .moying-free-image-composer-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  overflow: auto;
  padding: 0;
}

.moying-free-image-rail-kicker {
  margin: 16px 4px 8px;
  color: var(--studio-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.moying-free-image-rail-kicker:first-child {
  margin-top: 0;
}

.moying-free-image-rail-link,
.moying-free-image-rail-new {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--studio-ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.moying-free-image-rail-new {
  min-height: 38px;
  margin-bottom: 4px;
  border: 1px solid var(--studio-line);
  background: #fff;
  font-weight: 650;
}

.moying-free-image-rail-new::before {
  content: "+";
  width: 18px;
  margin-right: 8px;
  color: var(--studio-brand);
  font-size: 16px;
  font-weight: 700;
}

.moying-free-image-rail-link.is-active {
  color: var(--studio-brand);
  background: color-mix(in srgb, var(--studio-brand) 10%, #fff);
}

.moying-free-image-history {
  display: grid;
  gap: 6px;
  overflow: auto;
}

.moying-free-image-history-empty {
  margin: 0;
  padding: 8px 10px;
  color: var(--studio-muted);
  font-size: 12px;
}

.moying-free-image-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.moying-free-image-history-item:hover,
.moying-free-image-history-item:focus-visible {
  background: color-mix(in srgb, var(--studio-ink) 5%, #fff);
}

.moying-free-image-history-item.is-active {
  color: var(--studio-brand);
  background: color-mix(in srgb, var(--studio-brand) 10%, #fff);
}

.moying-free-image-history-thumb {
  flex: 0 0 auto;
  width: 44px;
  height: 28px;
  overflow: hidden;
  border-radius: 6px;
  background: color-mix(in srgb, var(--studio-ink) 8%, #fff);
}

.moying-free-image-history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.moying-free-image-history-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.moying-free-image-history-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moying-free-image-history-copy small {
  color: var(--studio-muted);
  font-size: 11px;
}

html[data-studio-theme="dark"] .moying-free-image-composer,
html[data-studio-theme="dark"] body.moying-free-image-page .moying-free-image-composer,
html.dark .moying-free-image-composer,
html.dark body.moying-free-image-page .moying-free-image-composer,
html[data-studio-theme="dark"] .moying-free-image-composer-body,
html.dark .moying-free-image-composer-body {
  --moying-free-image-dark-rail: 1;
  color: #fafafa;
  background: #18181b;
  border-right-color: #3f3f46;
}

html[data-studio-theme="dark"] .moying-free-image-rail-kicker,
html.dark .moying-free-image-rail-kicker,
html[data-studio-theme="dark"] .moying-free-image-history-empty,
html.dark .moying-free-image-history-empty,
html[data-studio-theme="dark"] .moying-free-image-history-copy small,
html.dark .moying-free-image-history-copy small {
  color: #a1a1aa;
}

html[data-studio-theme="dark"] .moying-free-image-rail-link,
html[data-studio-theme="dark"] .moying-free-image-rail-new,
html[data-studio-theme="dark"] .moying-free-image-history-item,
html.dark .moying-free-image-rail-link,
html.dark .moying-free-image-rail-new,
html.dark .moying-free-image-history-item {
  color: #fafafa;
}

html[data-studio-theme="dark"] .moying-free-image-rail-new,
html.dark .moying-free-image-rail-new {
  border-color: #3f3f46;
  background: #27272a;
}

html[data-studio-theme="dark"] .moying-free-image-rail-link.is-active,
html[data-studio-theme="dark"] .moying-free-image-history-item.is-active,
html.dark .moying-free-image-rail-link.is-active,
html.dark .moying-free-image-history-item.is-active {
  color: #d4c4ff;
  background: color-mix(in srgb, var(--studio-brand) 16%, #18181b);
}

html[data-studio-theme="dark"] .moying-free-image-history-item:hover,
html[data-studio-theme="dark"] .moying-free-image-history-item:focus-visible,
html.dark .moying-free-image-history-item:hover,
html.dark .moying-free-image-history-item:focus-visible {
  background: #27272a;
}

html[data-studio-theme="dark"] .moying-free-image-history-thumb,
html.dark .moying-free-image-history-thumb {
  background: #27272a;
}

body.moying-free-image-page .moying-free-image-gallery {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.moying-free-image-create {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.moying-free-image-feed {
  flex: 1 1 auto;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 16px;
  overflow: auto;
  min-height: 0;
}

body.moying-free-image-page {
  --moying-free-image-scrollbar: 1;
}

@supports not selector(::-webkit-scrollbar) {
  body.moying-free-image-page,
  body.moying-free-image-page .moying-free-image-feed,
  body.moying-free-image-page .moying-free-image-composer-body,
  body.moying-free-image-page .moying-free-image-history {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--studio-ink) 22%, transparent) transparent;
  }
}

body.moying-free-image-page ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

body.moying-free-image-page ::-webkit-scrollbar-button,
body.moying-free-image-page ::-webkit-scrollbar-button:start:decrement,
body.moying-free-image-page ::-webkit-scrollbar-button:end:increment {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}

body.moying-free-image-page ::-webkit-scrollbar-track {
  background: transparent;
}

body.moying-free-image-page ::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--studio-ink) 22%, transparent);
  border-radius: 999px;
}

body.moying-free-image-page ::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--studio-ink) 34%, transparent);
}

body.moying-free-image-page ::-webkit-scrollbar-corner {
  background: transparent;
}

.moying-free-image-feed-head {
  --moying-free-image-feed-head: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--studio-ink) 20%, transparent);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 23, 48, 0.05), 0 12px 28px -18px rgba(28, 23, 48, 0.28);
}

.moying-free-image-feed-heading {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.moying-free-image-feed-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.moying-free-image-feed-tools .moying-chat-pill {
  background: #fff;
  border-color: var(--studio-line);
}

.moying-free-image-feed-tools button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

html[data-studio-theme="dark"] .moying-free-image-feed-head,
html.dark .moying-free-image-feed-head {
  border-color: #3f3f46;
  background: #18181b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html[data-studio-theme="dark"] .moying-free-image-feed-heading,
html.dark .moying-free-image-feed-heading {
  color: #fafafa;
}

html[data-studio-theme="dark"] .moying-free-image-feed-tools .moying-chat-pill,
html.dark .moying-free-image-feed-tools .moying-chat-pill {
  color: #a1a1aa;
  border-color: #3f3f46;
  background: #27272a;
}

html[data-studio-theme="dark"] .moying-free-image-feed-tools button,
html.dark .moying-free-image-feed-tools button {
  color: #fafafa;
  border-color: #3f3f46;
  background: #27272a;
}

body.moying-free-image-page .moying-free-image-task {
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px -20px rgba(28, 23, 48, 0.35);
}

body.moying-free-image-page .moying-free-image-task.is-focused {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--studio-brand) 55%, #fff), 0 10px 28px -20px rgba(28, 23, 48, 0.35);
}

body.moying-free-image-page .moying-free-image-result {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px -20px rgba(28, 23, 48, 0.35);
}

.moying-free-image-dock {
  --moying-free-image-ref-size: 72px;
  position: sticky;
  bottom: 18px;
  z-index: 30;
  overflow: visible;
  width: min(920px, calc(100% - 32px));
  margin: auto auto 18px;
  padding: 14px 16px 12px;
  border: 1px solid var(--studio-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px -18px rgba(28, 23, 48, 0.32), 0 2px 10px rgba(28, 23, 48, 0.06);
}

.moying-free-image-dock-refs {
  margin: 0 0 8px;
}

.moying-free-image-dock-refs .moying-free-image-slots,
.moying-free-image-slots,
#free-image-references.moying-free-image-slots {
  --moying-free-image-ref-cover: 1;
  --moying-free-image-ref-stack: 1;
  --moying-free-image-ref-overlap: 32px;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  width: max-content;
  max-width: 100%;
  margin: 0;
}

.moying-free-image-dock .moying-free-image-dropzone {
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.moying-free-image-dock .moying-free-image-references,
.moying-free-image-dock .moying-free-image-slots {
  margin-top: 0;
}

.moying-free-image-dock-refs .moying-free-image-reference,
#free-image-references.moying-free-image-slots > .moying-free-image-reference,
#free-image-references.moying-free-image-slots > .moying-free-image-slot,
#free-image-references.moying-free-image-slots > .moying-free-image-upload-button {
  flex: 0 0 72px;
  flex-grow: 0;
  flex-shrink: 0;
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: 72px;
  min-height: 72px;
  margin: 0;
}

#free-image-references.moying-free-image-slots > .moying-free-image-reference + .moying-free-image-reference {
  margin-left: calc(var(--moying-free-image-ref-overlap, 32px) * -1);
}

#free-image-references.moying-free-image-slots > .moying-free-image-slot.is-add,
#free-image-references.moying-free-image-slots > .moying-free-image-upload-button {
  margin-left: 8px;
}

#free-image-references.moying-free-image-slots > .moying-free-image-slot.is-add:first-child,
#free-image-references.moying-free-image-slots > .moying-free-image-upload-button:first-child {
  margin-left: 0;
}

#free-image-references.moying-free-image-slots > .moying-free-image-reference:hover,
#free-image-references.moying-free-image-slots > .moying-free-image-reference:focus-within,
#free-image-references.moying-free-image-slots > .moying-free-image-slot:hover,
#free-image-references.moying-free-image-slots > .moying-free-image-slot:focus,
#free-image-references.moying-free-image-slots > .moying-free-image-slot:focus-visible {
  z-index: 24;
}

.moying-free-image-dock .moying-free-image-upload-status {
  margin-top: 6px;
}

.moying-free-image-dock-prompt {
  position: relative;
}

.moying-free-image-dock #free-image-prompt,
.moying-free-image-dock .moying-free-image-prompt {
  width: 100%;
  min-height: 88px;
  max-height: 168px;
  margin: 0;
  padding: 4px 56px 12px 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  outline: none;
  resize: none;
}

.moying-free-image-dock-prompt .moying-script-counter {
  position: absolute;
  top: 4px;
  right: 6px;
  color: var(--studio-muted);
  font-size: 11px;
}

.moying-free-image-dock details {
  position: relative;
  flex: 0 0 auto;
  z-index: 1;
}

.moying-free-image-dock details[open] {
  z-index: 50;
}

.moying-free-image-dock .moying-free-image-advanced {
  margin-top: 0;
}

.moying-free-image-dock-model > summary {
  max-width: 168px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.moying-free-image-dock-pop {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 60;
  display: grid;
  gap: 8px;
  min-width: 196px;
  padding: 10px;
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--studio-shadow);
}

.moying-free-image-dock-pop.is-fixed-pop {
  position: fixed;
  right: auto;
  bottom: auto;
  z-index: 90;
}

.moying-free-image-dock-model .moying-free-image-dock-pop {
  min-width: 260px;
  max-width: min(360px, calc(100vw - 24px));
}

.moying-free-image-dock-format .moying-free-image-dock-pop {
  min-width: 248px;
}

.moying-free-image-dock-count .moying-free-image-dock-pop {
  min-width: 196px;
}

.moying-free-image-format-slider {
  --moying-free-image-format-slider: 1;
}

.moying-free-image-count-slider {
  --moying-free-image-count-slider: 1;
}

.moying-free-image-format-slider,
.moying-free-image-count-slider {
  gap: 8px;
}

.moying-free-image-dock .moying-free-image-format-slider input[type="range"],
.moying-free-image-dock .moying-free-image-count-slider input[type="range"] {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  accent-color: var(--studio-brand);
  cursor: pointer;
}

.moying-free-image-dock .moying-free-image-format-slider input[type="range"]:focus,
.moying-free-image-dock .moying-free-image-count-slider input[type="range"]:focus {
  border: 0;
  box-shadow: none;
}

.moying-free-image-slider-ticks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: var(--studio-muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
}

.moying-free-image-slider-ticks span:first-child {
  text-align: left;
}

.moying-free-image-slider-ticks span:not(:first-child):not(:last-child) {
  text-align: center;
}

.moying-free-image-slider-ticks span:last-child {
  text-align: right;
}

.moying-free-image-dock #free-image-model {
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--studio-bg) 40%, transparent);
  color: inherit;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.moying-free-image-model-choices {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
}

.moying-free-image-model-choices button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: transparent;
  color: var(--studio-ink);
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.moying-free-image-model-choices button.is-active {
  color: var(--studio-ink);
  background:
    linear-gradient(color-mix(in srgb, var(--studio-brand) 10%, var(--studio-paper)), color-mix(in srgb, var(--studio-brand) 10%, var(--studio-paper))) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--studio-brand-from) 42%, var(--studio-line)), color-mix(in srgb, var(--studio-brand-to) 32%, var(--studio-line))) border-box;
  border: 1px solid transparent;
}

.moying-free-image-dock .moying-free-image-segmented {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

#moying-free-image-app #free-image-aspect.moying-free-image-segmented {
  --moying-free-image-aspect-chips: 1;
  gap: 6px;
  min-height: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#moying-free-image-app #free-image-aspect.moying-free-image-segmented > button {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  min-height: 28px;
  padding: 0 4px;
  border: 1px solid rgba(88, 72, 140, 0.16);
  border-radius: 8px;
  background: #f4f2fa;
  color: #1c1730;
  -webkit-text-fill-color: #1c1730;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

#moying-free-image-app #free-image-aspect.moying-free-image-segmented > button:last-child {
  border-right-width: 1px;
}

#moying-free-image-app #free-image-aspect.moying-free-image-segmented > button.is-active {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-weight: 800;
  border-color: transparent;
  background: linear-gradient(90deg, #22c7d8, #8b6cff);
}

html.dark #moying-free-image-app #free-image-aspect.moying-free-image-segmented > button,
html[data-studio-theme="dark"] #moying-free-image-app #free-image-aspect.moying-free-image-segmented > button {
  color: #e4e4e7;
  -webkit-text-fill-color: #e4e4e7;
  background: #27272a;
  border-color: rgba(244, 244, 245, 0.18);
}

html.dark #moying-free-image-app #free-image-aspect.moying-free-image-segmented > button.is-active,
html[data-studio-theme="dark"] #moying-free-image-app #free-image-aspect.moying-free-image-segmented > button.is-active {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: linear-gradient(90deg, #22c7d8, #8b6cff);
  border-color: transparent;
}

.moying-free-image-dock .moying-free-image-field {
  margin-top: 0;
}

.moying-free-image-dock #free-image-generate {
  overflow: hidden;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.moying-free-image-dock #free-image-generate::after {
  content: "↑";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.moying-free-image-dock .moying-free-image-status {
  margin: 6px 6px 0;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-studio-theme="dark"] .moying-free-image-dock,
html[data-studio-theme="dark"] .moying-free-image-dock-pop,
html[data-studio-theme="dark"] body.moying-free-image-page .moying-free-image-task,
html[data-studio-theme="dark"] body.moying-free-image-page .moying-free-image-result {
  background: #171924;
}

@media (max-width: 980px) {
  body.moying-free-image-page .moying-free-image-layout {
    grid-template-columns: 1fr;
  }

  body.moying-free-image-page .moying-free-image-composer {
    max-height: 118px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--studio-line);
  }

  body.moying-free-image-page .moying-free-image-composer-body {
    flex-direction: row;
    flex-wrap: wrap;
    overflow: hidden;
  }

  .moying-free-image-rail-kicker,
  .moying-free-image-history {
    display: none;
  }

  .moying-free-image-rail-new,
  .moying-free-image-rail-link {
    width: auto;
    flex: 0 0 auto;
  }

  .moying-free-image-feed-heading {
    font-size: 15px;
  }

  .moying-free-image-dock {
    bottom: 10px;
    margin-bottom: 10px;
  }
}

.moying-studio-select {
  --moying-studio-select: 1;
  position: relative;
  display: block;
  width: 100%;
}

.moying-studio-select.is-open {
  z-index: 120;
}

.moying-studio-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.moying-studio-select-button {
  width: 100%;
  min-height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background:
    var(--studio-paper)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2364748b' d='M1.2 1.4 6 6.2 10.8 1.4'/></svg>")
    no-repeat right 12px center;
  color: var(--studio-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.moying-studio-select-button:hover,
.moying-studio-select.is-open .moying-studio-select-button {
  border-color: color-mix(in srgb, var(--studio-brand) 42%, var(--studio-line));
}

.moying-studio-select-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 80;
  display: grid;
  gap: 4px;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--studio-shadow);
}

.moying-studio-select-menu[hidden] {
  display: none !important;
}

.moying-studio-select-menu.is-fixed-menu {
  --moying-studio-select-fixed: 1;
  position: fixed;
  right: auto;
  z-index: 240;
}

.moying-free-image-dock .moying-studio-select-menu {
  max-height: 220px;
}

.moying-studio-select-option {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--studio-ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.moying-studio-select-option:hover {
  background: color-mix(in srgb, var(--studio-brand) 8%, #fff);
}

.moying-studio-select-option.is-on {
  background: color-mix(in srgb, var(--studio-brand) 14%, #fff);
  color: var(--studio-ink);
  font-weight: 700;
}

html[data-studio-theme="dark"] .moying-studio-select-button,
html[data-studio-theme="dark"] .moying-studio-select-menu {
  background: rgba(18, 20, 28, 0.96);
  color: #e2e8f0;
}

html[data-studio-theme="dark"] .moying-studio-select-option:hover,
html[data-studio-theme="dark"] .moying-studio-select-option.is-on {
  background: color-mix(in srgb, var(--studio-brand) 22%, #171924);
}

.moying-studio-user-pop {
  --moying-studio-user-pop: 1;
  right: 0;
  width: 260px;
  padding: 8px;
  border: 1px solid rgba(24, 24, 27, 0.1);
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(24, 24, 27, 0.06),
    0 12px 32px rgba(24, 24, 27, 0.12);
}

html.dark .moying-studio-user-pop,
html[data-studio-theme="dark"] .moying-studio-user-pop {
  border-color: rgba(255, 255, 255, 0.08);
  background: #18181b;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 16px 36px rgba(0, 0, 0, 0.42);
}

.moying-studio-user-id {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid rgba(24, 24, 27, 0.08);
}

html.dark .moying-studio-user-id,
html[data-studio-theme="dark"] .moying-studio-user-id {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.moying-studio-user-id i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--studio-brand-2) 22%, #fff);
  color: var(--studio-brand);
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

html.dark .moying-studio-user-id i,
html[data-studio-theme="dark"] .moying-studio-user-id i {
  background: color-mix(in srgb, var(--studio-brand-2) 28%, #18181b);
}

.moying-studio-user-id strong {
  display: block;
  color: var(--studio-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.moying-studio-user-id small {
  display: block;
  margin-top: 3px;
  color: var(--studio-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.moying-studio-user-nav,
.moying-studio-user-foot {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}

.moying-studio-user-foot {
  padding-top: 6px;
  border-top: 1px solid rgba(24, 24, 27, 0.08);
}

html.dark .moying-studio-user-foot,
html[data-studio-theme="dark"] .moying-studio-user-foot {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.moying-studio-user-pop a,
.moying-studio-user-pop button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--studio-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  text-align: left;
  cursor: pointer;
}

.moying-studio-user-pop a:hover,
.moying-studio-user-pop button:hover {
  background: #f4f4f5;
}

html.dark .moying-studio-user-pop a:hover,
html.dark .moying-studio-user-pop button:hover,
html[data-studio-theme="dark"] .moying-studio-user-pop a:hover,
html[data-studio-theme="dark"] .moying-studio-user-pop button:hover {
  background: #27272a;
}

.moying-studio-user-pop [data-studio-action="logout"] {
  color: #b42318;
}

html.dark .moying-studio-user-pop [data-studio-action="logout"],
html[data-studio-theme="dark"] .moying-studio-user-pop [data-studio-action="logout"] {
  color: #f2b8b5;
}

.moying-studio-user-pop [data-studio-action="logout"]:hover {
  background: #fef2f2;
}

html.dark .moying-studio-user-pop [data-studio-action="logout"]:hover,
html[data-studio-theme="dark"] .moying-studio-user-pop [data-studio-action="logout"]:hover {
  background: color-mix(in srgb, #f2b8b5 12%, #18181b);
}

.moying-studio-login-pop[data-studio-panel="user"] {
  width: 320px;
  pointer-events: auto;
}

.moying-studio-login-pop .moying-studio-user-id small {
  display: block;
  line-height: 1.4;
}

.moying-studio-login-pop-form {
  display: grid;
  gap: 8px;
  padding: 4px 12px 12px;
}

.moying-studio-login-pop-form label {
  display: grid;
  gap: 4px;
  padding: 0;
  color: var(--studio-muted);
  font-size: 12px;
}

.moying-studio-login-pop-form input {
  width: 100%;
  height: 34px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: #fff;
  color: var(--studio-ink);
  font: inherit;
}

html.dark .moying-studio-login-pop-form input,
html[data-studio-theme="dark"] .moying-studio-login-pop-form input {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
}

.moying-studio-login-pop-form .moying-studio-error {
  margin: 0;
  font-size: 12px;
}

.moying-studio-login-pop-form .moying-studio-btn,
.moying-studio-user-pop .moying-studio-login-pop-form .moying-studio-btn {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
}

.moying-studio-user-pop .moying-studio-login-pop-form .moying-studio-btn:hover {
  background: linear-gradient(100deg, var(--studio-brand-from), var(--studio-brand-via), var(--studio-brand-to));
}

.moying-studio-login-pop-form .moying-studio-switch {
  margin: 0;
  padding: 0 2px;
}

.moying-studio-user-pop .moying-studio-login-pop-form .moying-studio-switch a,
.moying-studio-login-pop-form .moying-studio-switch a {
  display: inline;
  width: auto;
  min-height: 0;
  padding: 0;
  color: var(--studio-brand);
}

.moying-studio-user-pop .moying-studio-login-pop-form .moying-studio-switch a:hover,
.moying-studio-login-pop-form .moying-studio-switch a:hover {
  background: transparent;
  text-decoration: underline;
}

.moying-video-composer {
  position: relative;
}

.moying-video-prompt-highlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  padding: 4px 58px 12px 6px;
  color: var(--studio-ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.55;
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  font-variant-ligatures: none;
  font-kerning: none;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  scrollbar-gutter: stable;
  pointer-events: none;
}

.moying-video-prompt-name {
  color: var(--studio-brand);
  font-weight: inherit;
  font-style: inherit;
  letter-spacing: inherit;
  font-variant-ligatures: none;
  font-kerning: none;
}

.moying-video-mention-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 180px;
  height: 1.35em;
  margin: 0 0.15em;
  padding: 0 0.35em 0 0.1em;
  border: 1px solid color-mix(in srgb, var(--studio-brand) 28%, var(--studio-line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--studio-brand) 12%, #fff);
  color: var(--studio-ink);
  vertical-align: middle;
  line-height: 1;
  font-size: inherit;
  user-select: none;
}

.moying-video-mention-chip img,
.moying-video-mention-chip i {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 1.05em;
  border-radius: 4px;
  object-fit: cover;
  background: color-mix(in srgb, var(--studio-brand) 18%, #fff);
  font-style: normal;
  font-size: 0.75em;
  line-height: 1.05em;
  text-align: center;
}

.moying-video-mention-chip b {
  overflow: hidden;
  font-weight: 600;
  font-size: inherit;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.moying-video-mention[hidden] {
  display: none;
}

.moying-video-mention {
  position: absolute;
  left: 0;
  bottom: calc(100% + 4px);
  z-index: 40;
  width: max-content;
  min-width: 128px;
  max-width: min(320px, calc(100vw - 16px));
  max-height: min(168px, 28vh);
  overflow: auto;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px -10px rgba(28, 23, 48, 0.28);
}

.moying-video-mention-list {
  display: grid;
  gap: 1px;
  padding: 4px;
}

.moying-video-mention-item {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 5px 8px;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--studio-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.moying-video-mention-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.moying-video-mention-kind {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eef0ff;
  color: #3d348b;
  font-size: 11px;
  line-height: 1.4;
}

.moying-video-mention-kind.is-audio {
  background: #fff4e5;
  color: #7a4e12;
}

.moying-video-mention-kind.is-video {
  background: #e8f1fb;
  color: #1d4e89;
}

.moying-video-mention-item:hover,
.moying-video-mention-item.is-active {
  background: color-mix(in srgb, var(--studio-brand) 10%, #fff);
}

.moying-video-mention-empty {
  margin: 0;
  padding: 8px 10px;
  color: var(--studio-muted);
  font-size: 12px;
}

html[data-studio-theme="dark"] .moying-video-prompt-highlight,
html.dark .moying-video-prompt-highlight {
  color: #fafafa;
}

html[data-studio-theme="dark"] .moying-video-dock #video-prompt,
html.dark .moying-video-dock #video-prompt {
  caret-color: #fafafa;
  color: #fafafa;
}

html[data-studio-theme="dark"] .moying-video-mention-chip,
html.dark .moying-video-mention-chip {
  background: color-mix(in srgb, var(--studio-brand) 22%, #18181b);
  border-color: color-mix(in srgb, var(--studio-brand) 40%, #3f3f46);
  color: #fafafa;
}

html[data-studio-theme="dark"] .moying-video-mention,
html.dark .moying-video-mention {
  border-color: #3f3f46;
  background: #18181b;
}

html[data-studio-theme="dark"] .moying-video-mention-item,
html.dark .moying-video-mention-item {
  color: #fafafa;
}

html[data-studio-theme="dark"] .moying-video-mention-item:hover,
html[data-studio-theme="dark"] .moying-video-mention-item.is-active,
html.dark .moying-video-mention-item:hover,
html.dark .moying-video-mention-item.is-active {
  background: #27272a;
}

.moying-credit-estimate {
  align-self: center;
  margin: 0 8px 0 0;
  font-size: 12px;
  line-height: 1.3;
  color: #8a7560;
  white-space: nowrap;
}

.moying-credit-estimate.is-prominent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0 10px 0 0;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff1df;
  color: #9a3412;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

html[data-studio-theme="dark"] .moying-credit-estimate.is-prominent,
html.dark .moying-credit-estimate.is-prominent {
  background: #3b2414;
  color: #fdba74;
}

.moying-video-dock-bar > .moying-credit-estimate,
.moying-free-image-dock-bar > .moying-credit-estimate {
  display: inline-flex;
  align-items: center;
  height: var(--studio-dock-control-size);
  min-height: var(--studio-dock-control-size);
  margin: 0;
  padding: var(--studio-dock-control-padding);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.moying-video-dock-bar > details > summary:focus-visible,
.moying-free-image-dock-bar > details > summary:focus-visible,
.moying-video-dock #video-generate:focus-visible,
.moying-free-image-dock #free-image-generate:focus-visible {
  outline: 2px solid #ff6674;
  outline-offset: 3px;
}

/* ==========================================================================
   MoYing Pro · Cinematic Dark Glass Design System & Unified Buttons
   ========================================================================== */

/* 1. Global Header & Unified Center Navigation */
html[data-studio-skin="glass"] .moying-studio-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 9, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  transition: background 240ms ease, border-color 240ms ease;
}

html[data-studio-skin="glass"] .moying-studio-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 16px;
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
}

html[data-studio-skin="glass"] .moying-studio-header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  flex: none;
  width: max-content;
  max-width: calc(100% - 520px);
  background: rgba(18, 18, 23, 0.92);
  padding: 4px 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 2;
}

html[data-studio-skin="glass"] .moying-studio-header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  color: rgba(244, 241, 234, 0.7);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

html[data-studio-skin="glass"] .moying-studio-header-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

html[data-studio-skin="glass"] .moying-studio-header-nav a.is-active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff3344, #dc2626) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 14px rgba(245, 34, 45, 0.5) !important;
}

@media (max-width: 1024px) {
  html[data-studio-skin="glass"] .moying-studio-header-nav {
    display: none;
  }
}

/* Home Page Transparent Header: Completely transparent floating bar */
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 20 !important;
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-header-nav {
  display: none !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-brand-badge {
  display: none !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-header-assets-link {
  display: inline-flex !important;
  align-items: center;
  color: rgba(244, 241, 234, 0.8) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  margin-right: 14px !important;
  transition: color 180ms ease !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-header-assets-link:hover {
  color: #ffffff !important;
}

body:not(.moying-home-page) .moying-studio-header-assets-link {
  display: none !important;
}

html[data-studio-skin="glass"] .moying-studio-credits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-studio-skin="glass"] .moying-studio-credits::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: moying-beacon-pulse 2s infinite ease-in-out;
}

@keyframes moying-beacon-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1.05); }
  50% { opacity: 1; transform: scale(1.05); box-shadow: 0 0 14px #22c55e; }
}

/* 2. Global Canvas — Pure Cinematic Dark Studio Canvas (#070709) */
html[data-studio-skin="glass"] body,
html[data-studio-skin="glass"] body.moying-studio-body,
html[data-studio-skin="glass"] body.moying-home-page {
  background-color: #070709 !important;
  background-image: none !important;
  color: #f4f1ea !important;
  min-height: 100vh;
}

/* 2. Global Canvas & 100vh Single-Screen Viewport Fit without Scrollbars */
html[data-studio-skin="glass"] body.moying-home-page {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: #070709 !important;
  color: #f4f1ea !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide artificial dark vignettes that destroyed background image */
html[data-studio-skin="glass"] .moying-vignette-left,
html[data-studio-skin="glass"] .moying-vignette-top,
html[data-studio-skin="glass"] .moying-vignette-bottom {
  display: none !important;
}

/* Anamorphic Horizontal Red Light Flare Streak across middle ("红线在反光的位置附近") */
html[data-studio-skin="glass"] .moying-flare-streak {
  display: block !important;
  position: absolute !important;
  top: 28.2% !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 51, 68, 0) 5%,
    rgba(255, 51, 68, 0.45) 15%,
    rgba(255, 140, 160, 0.98) 28%,
    rgba(255, 51, 68, 0.55) 38%,
    rgba(255, 51, 68, 0.15) 75%,
    transparent 100%
  ) !important;
  box-shadow: 0 0 16px rgba(255, 51, 68, 0.8), 0 0 32px rgba(255, 51, 68, 0.45) !important;
  mix-blend-mode: screen !important;
  z-index: 2 !important;
  pointer-events: none !important;
  opacity: 0.95 !important;
}

/* Fullscreen fixed cinematic background art stage */
html[data-studio-skin="glass"] body.moying-home-page .moying-hero-art-stage {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background: #070709 !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-hero-parallax-plate {
  position: absolute !important;
  inset: 0 !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-hero-plate-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  filter: brightness(0.98) contrast(1.1) !important;
  display: block !important;
}

/* Soft text protection wash on left only */
html[data-studio-skin="glass"] body.moying-home-page .moying-hero-art-stage::before {
  content: "" !important;
  position: absolute !important;
  inset-block: 0 !important;
  left: 0 !important;
  width: 44vw !important;
  max-width: 600px !important;
  background: linear-gradient(90deg, rgba(7, 7, 9, 0.75) 0%, rgba(7, 7, 9, 0.35) 55%, transparent 100%) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

/* Smooth fade at lower third behind cards down to pure dark canvas */
html[data-studio-skin="glass"] body.moying-home-page .moying-hero-art-stage::after {
  content: "" !important;
  position: absolute !important;
  inset-inline: 0 !important;
  bottom: 0 !important;
  height: 48vh !important;
  max-height: 480px !important;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 7, 9, 0.25) 20%, rgba(7, 7, 9, 0.8) 60%, #070709 95%) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

/* Top Transparent Floating Header */
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-header {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 20 !important;
  flex: 0 0 52px !important;
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-header-inner,
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-main {
  width: min(1760px, calc(100% - 64px)) !important;
  max-width: 1760px !important;
  margin: 0 auto !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 0 clamp(8px, 1.5vh, 20px) !important;
  position: relative !important;
  z-index: 5 !important;
}

/* Home Fill: Natural top-down flow, cards elevated into the middle space ("整体再上一点中间太空了") */
html[data-studio-skin="glass"] body.moying-home-page .moying-home-fill {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  gap: 0 !important;
}

/* 2. Hero Section: Anchored at top */
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero {
  flex: 0 0 auto !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: clamp(2px, 0.8vh, 6px) 0 clamp(2px, 0.8vh, 6px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  overflow: visible !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-eyebrow {
  color: #ff3344 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  margin: 0 0 6px !important;
  letter-spacing: 0.04em !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: clamp(34px, 4.4vw, 54px) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
  margin: 0 !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85) !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-hero-red {
  color: #ff3344 !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero-lead {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  color: rgba(244, 241, 234, 0.72) !important;
  font-size: 13.5px !important;
  margin-top: 10px !important;
  letter-spacing: 0.02em !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8) !important;
}

/* Top Right Column: Credit Card HUD + Glowing GOOD STORIES BETTER HUMAN Slogan */
html[data-studio-skin="glass"] body.moying-home-page .moying-hero-right-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 32px !important;
  position: relative !important;
  z-index: 3 !important;
  margin-top: 4px !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-credit-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 3px !important;
  width: 216px !important;
  max-width: 216px !important;
  padding: 10px 14px 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px !important;
  background: rgba(14, 15, 20, 0.72) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(24px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.4) !important;
  cursor: pointer !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-credit-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 34, 45, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 16px rgba(245, 34, 45, 0.2);
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-card-top {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-headphone-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E") center / 15px no-repeat !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  flex-shrink: 0 !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-info {
  display: flex !important;
  flex-direction: column !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-info p {
  margin: 0 !important;
  color: rgba(244, 241, 234, 0.65) !important;
  font-size: 11.5px !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-amount {
  display: flex !important;
  align-items: baseline !important;
  gap: 3px !important;
  margin: 1px 0 0 !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-red {
  color: #ff3344 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  font-family: ui-monospace, sans-serif !important;
  letter-spacing: -0.02em !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-credit-chevron {
  color: rgba(244, 241, 234, 0.4) !important;
  font-size: 14px !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-credit-card small {
  display: block !important;
  margin: 3px 0 0 !important;
  color: rgba(244, 241, 234, 0.45) !important;
  font-size: 10.5px !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-credit-card .moying-studio-btn {
  display: none !important;
}

/* GOOD STORIES BETTER HUMAN Slogan */
html[data-studio-skin="glass"] body.moying-home-page .moying-hero-slogan {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 2px !important;
  text-align: right !important;
  margin-top: 2px !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-hero-slogan span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #d02e3b !important;
  font-size: 12.5px !important;
  letter-spacing: 0.15em !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-slogan-line {
  display: block !important;
  width: 32px !important;
  height: 2px !important;
  background: #d02e3b !important;
  margin-top: 4px !important;
  box-shadow: none !important;
}

/* 3. Module Cards Grid: Positioned at golden height below hero without dead void ("整体再上一点中间太空了") */
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-modules {
  flex: 0 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: clamp(8px, 1vw, 14px) !important;
  width: 100% !important;
  margin: clamp(16px, 10vh, 120px) 0 clamp(10px, 1.6vh, 16px) !important;
  position: relative !important;
  z-index: 5 !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module {
  min-height: 0 !important;
  height: clamp(220px, 32vh, 320px) !important;
  padding: 14px 14px 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  background: rgba(16, 17, 22, 0.72) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  position: relative !important;
  text-decoration: none !important;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, box-shadow 200ms ease, background 200ms ease !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module:hover {
  transform: translateY(-4px) !important;
  background: rgba(22, 24, 32, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module span:not(.moying-studio-module-still) {
  display: block !important;
  color: rgba(244, 241, 234, 0.75) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: 1 !important;
  margin: 0 0 3px !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module h3,
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module:hover h3 {
  display: block !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.01em !important;
  line-height: 1.25 !important;
  margin: 0 0 3px !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module p {
  display: block !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: 12px !important;
  color: rgba(244, 241, 234, 0.62) !important;
  margin: 0 0 8px !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module-still {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  flex: none !important;
  border-radius: inherit !important;
  z-index: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow:
    inset 0 92px 48px -28px rgba(6, 6, 10, 0.92),
    inset 0 -64px 36px -18px rgba(6, 6, 10, 0.78) !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module em {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-style: normal !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ff3344 !important;
  position: absolute !important;
  left: 14px !important;
  bottom: 14px !important;
  z-index: 2 !important;
  margin: 0 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7) !important;
  transition: transform 180ms ease !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module:hover em {
  transform: translateX(3px) !important;
  color: #ff4d5a !important;
}

/* 4. Bottom Composer: Proportional to cards grid (~76.8% width as in reference), elegant compact height */
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer {
  flex: 0 0 auto !important;
  width: min(1200px, 78%) !important;
  max-width: min(1280px, calc(100% - 48px)) !important;
  margin: 0 auto 12px !important;
  padding: 16px 20px 13px !important;
  border-radius: 20px !important;
  background: rgba(14, 15, 20, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(28px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.4) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer textarea {
  flex: none !important;
  min-height: 26px !important;
  height: 26px !important;
  font-size: 14px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  padding: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.4 !important;
  color: #f4f1ea !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer textarea::placeholder {
  color: rgba(244, 241, 234, 0.42) !important;
  font-size: 14px !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 0 !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer-tools {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer-tools button {
  height: 28px !important;
  padding: 0 13px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(244, 241, 234, 0.85) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 180ms ease !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer-tools button:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-go,
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-go:disabled {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 20px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  background: linear-gradient(135deg, #ff3344, #e62035) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(245, 34, 45, 0.4) !important;
  opacity: 0.95 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 5. Footer: Elevated with clear visibility above bottom edge */
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-footer {
  flex: 0 0 auto !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  text-align: center !important;
  color: rgba(244, 241, 234, 0.45) !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
}

@media (max-height: 720px) {
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero h1 {
    font-size: clamp(26px, 3.6vw, 40px) !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-modules {
    margin: clamp(8px, 4vh, 24px) 0 clamp(6px, 1vh, 12px) !important;
    gap: 8px !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module {
    height: clamp(160px, 27vh, 210px) !important;
    padding: 8px 10px 10px !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module-still {
    top: 0 !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module h3 {
    font-size: 15px !important;
    margin-bottom: 1px !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module p {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer {
    width: min(960px, 84%) !important;
    margin: 0 auto 6px !important;
    padding: 10px 16px !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer textarea {
    min-height: 24px !important;
    height: 24px !important;
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer-tools button {
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-go,
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-go:disabled {
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 16px !important;
    font-size: 12.5px !important;
  }
}

@media (max-height: 540px) {
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero h1 {
    font-size: 22px !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero-lead {
    font-size: 11px !important;
    margin-top: 3px !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-hero .moying-studio-eyebrow {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-modules {
    margin: 6px 0 6px !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module {
    height: 145px !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module-still {
    top: 0 !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-composer {
    padding: 6px 14px !important;
    margin: 0 auto 4px !important;
  }
  html[data-studio-skin="glass"] body.moying-home-page .moying-studio-footer {
    margin: 0 0 4px !important;
    font-size: 10px !important;
  }
}

/* ==========================================================================
   UNIFIED BUTTON SYSTEM (Primary CTA, Secondary Glass, Upload Tile, Pills)
   ========================================================================== */

/* ── 1. PRIMARY CTA BUTTONS (Cinematic Red Capsule) ── */
html[data-studio-skin="glass"] .moying-studio-btn.is-brand,
html[data-studio-skin="glass"] #script-generate.is-primary,
html[data-studio-skin="glass"] .moying-workspace-current-shot,
html[data-studio-skin="glass"] [data-testid="moying-generate-current-shot"],
html[data-studio-skin="glass"] [data-testid="frame-image-generate"],
html[data-studio-skin="glass"] [data-testid="frame-video-prompt-generate"],
html[data-studio-skin="glass"] [data-testid="moying-prompt-actions"] > button,
html[data-studio-skin="glass"] .moying-prompt-actions > button,
html[data-studio-skin="glass"] .moying-send-to-video,
html[data-studio-skin="glass"] [data-testid="frame-send-to-video"],
html[data-studio-skin="glass"] [data-testid="moying-login-go"],
html[data-studio-skin="glass"] .moying-recharge-cta,
html[data-studio-skin="glass"] button[class*="from-red"],
html[data-studio-skin="glass"] [class*="bg-red-500"]:not(.shot-tc-chip),
html[data-studio-skin="glass"] [class*="bg-red-600"]:not(.shot-tc-chip) {
  background: linear-gradient(135deg, #ff3344, #dc2626) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(230, 46, 67, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

html[data-studio-skin="glass"] .moying-studio-btn.is-brand:hover,
html[data-studio-skin="glass"] #script-generate.is-primary:hover,
html[data-studio-skin="glass"] .moying-workspace-current-shot:hover,
html[data-studio-skin="glass"] [data-testid="moying-generate-current-shot"]:hover,
html[data-studio-skin="glass"] [data-testid="frame-image-generate"]:hover,
html[data-studio-skin="glass"] [data-testid="frame-video-prompt-generate"]:hover,
html[data-studio-skin="glass"] [data-testid="moying-prompt-actions"] > button:hover,
html[data-studio-skin="glass"] .moying-prompt-actions > button:hover,
html[data-studio-skin="glass"] .moying-send-to-video:hover,
html[data-studio-skin="glass"] [data-testid="frame-send-to-video"]:hover,
html[data-studio-skin="glass"] [data-testid="moying-login-go"]:hover,
html[data-studio-skin="glass"] .moying-recharge-cta:hover,
html[data-studio-skin="glass"] button[class*="from-red"]:hover {
  filter: brightness(1.12) !important;
  box-shadow: 0 6px 24px rgba(230, 46, 67, 0.65) !important;
  transform: translateY(-1px) scale(1.02) !important;
}

/* One submit treatment for both creation docks. */
html[data-studio-skin="glass"] .moying-video-dock #video-generate,
html[data-studio-skin="glass"] .moying-free-image-dock #free-image-generate {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(135deg, #ff3344, #dc2626);
  color: #fff;
  box-shadow: 0 4px 18px rgba(230, 46, 67, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

html[data-studio-skin="glass"] .moying-video-dock #video-generate {
  font-size: 20px;
}

html[data-studio-skin="glass"] .moying-video-dock #video-generate:hover:not(:disabled),
html[data-studio-skin="glass"] .moying-free-image-dock #free-image-generate:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(230, 46, 67, 0.6);
  filter: brightness(1.1);
}

.moying-video-dock #video-generate:disabled,
.moying-free-image-dock #free-image-generate:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* ── 2. SECONDARY GLASS BUTTONS (Frosted Glass Capsule) ── */
html[data-studio-skin="glass"] .glass-button,
html[data-studio-skin="glass"] [data-testid="frame-upload-image"],
html[data-studio-skin="glass"] .moying-studio-asset-tabs button,
html[data-studio-skin="glass"] .moying-script-actions .moying-chat-button:not(.is-primary):not(.is-danger),
html[data-studio-skin="glass"] [data-testid="moying-workspace-header-actions"] button,
html[data-studio-skin="glass"] [data-testid="moying-theme-header"],
html[data-studio-skin="glass"] [data-testid="moying-generate-all-header"],
html[data-studio-skin="glass"] .moying-free-image-feed-tools button,
html[data-studio-skin="glass"] #free-image-clear,
html[data-studio-skin="glass"] .action-btn-transport {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  transition: all 180ms ease !important;
  cursor: pointer !important;
  font-weight: 500 !important;
}

html[data-studio-skin="glass"] .glass-button:hover,
html[data-studio-skin="glass"] [data-testid="frame-upload-image"]:hover,
html[data-studio-skin="glass"] .moying-studio-asset-tabs button:hover,
html[data-studio-skin="glass"] .moying-script-actions .moying-chat-button:not(.is-primary):not(.is-danger):hover,
html[data-studio-skin="glass"] [data-testid="moying-workspace-header-actions"] button:hover,
html[data-studio-skin="glass"] [data-testid="moying-theme-header"]:hover,
html[data-studio-skin="glass"] [data-testid="moying-generate-all-header"]:hover,
html[data-studio-skin="glass"] .moying-free-image-feed-tools button:hover,
html[data-studio-skin="glass"] #free-image-clear:hover,
html[data-studio-skin="glass"] .action-btn-transport:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: #ffffff !important;
}

/* ── 3. UPLOAD TILE BUTTONS (64×64 Frosted Dashed Card) ── */
html[data-studio-skin="glass"] .moying-free-image-upload-button,
html[data-studio-skin="glass"] .moying-video-slot.is-add {
  width: 64px !important;
  min-width: 64px !important;
  height: 64px !important;
  min-height: 64px !important;
  padding: 8px 4px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px dashed rgba(255, 255, 255, 0.22) !important;
  border-radius: 12px !important;
  color: rgba(244, 241, 234, 0.75) !important;
  transition: all 180ms ease !important;
  cursor: pointer !important;
}

html[data-studio-skin="glass"] .moying-free-image-upload-button:hover,
html[data-studio-skin="glass"] .moying-video-slot.is-add:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 51, 68, 0.5) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(255, 51, 68, 0.2) !important;
}

html[data-studio-skin="glass"] .moying-free-image-upload-button span,
html[data-studio-skin="glass"] .moying-video-slot.is-add span {
  font-size: 18px !important;
  line-height: 1 !important;
  color: #ff3344 !important;
  font-weight: 700 !important;
}

html[data-studio-skin="glass"] .moying-free-image-upload-button small,
html[data-studio-skin="glass"] .moying-video-slot.is-add small {
  font-size: 11px !important;
  line-height: 1.2 !important;
  color: rgba(244, 241, 234, 0.6) !important;
}

/* ── 4. PARAMETER PILLS & BADGES ── */
html[data-studio-skin="glass"] .moying-free-image-dock-bar details summary,
html[data-studio-skin="glass"] .moying-video-dock details summary,
html[data-studio-skin="glass"] .moying-credit-estimate,
html[data-studio-skin="glass"] .moying-credit-estimate.is-prominent,
html[data-studio-skin="glass"] [data-video-credit-estimate] {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(244, 241, 234, 0.8) !important;
  border-radius: 999px !important;
  padding: var(--studio-dock-control-padding, 5px 14px) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px) !important;
  transition: all 180ms ease !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock-bar details summary:hover,
html[data-studio-skin="glass"] .moying-video-dock details summary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock-bar details[open] summary,
html[data-studio-skin="glass"] .moying-video-dock details[open] summary {
  background: rgba(255, 51, 68, 0.15) !important;
  border-color: rgba(255, 51, 68, 0.35) !important;
  color: #ff3344 !important;
}

html[data-studio-skin="glass"] .moying-video-segmented button,
html[data-studio-skin="glass"] .moying-video-mode,
html[data-studio-skin="glass"] .moying-video-model-choices button,
html[data-studio-skin="glass"] .moying-free-image-model-choices button,
html[data-studio-skin="glass"] .moying-script-model-choices button,
html[data-studio-skin="glass"] #moying-free-image-app #free-image-aspect.moying-free-image-segmented > button {
  color: rgba(244, 241, 234, 0.82) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

html[data-studio-skin="glass"] .moying-video-segmented button.is-active,
html[data-studio-skin="glass"] .moying-video-mode.is-active,
html[data-studio-skin="glass"] .moying-video-model-choices button.is-active,
html[data-studio-skin="glass"] .moying-free-image-model-choices button.is-active,
html[data-studio-skin="glass"] .moying-script-model-choices button.is-active,
html[data-studio-skin="glass"] #moying-free-image-app #free-image-aspect.moying-free-image-segmented > button.is-active {
  color: #ffffff !important;
  background: rgba(255, 51, 68, 0.22) !important;
  border-color: rgba(255, 51, 68, 0.55) !important;
  box-shadow: none !important;
}

html[data-studio-skin="glass"] .moying-video-duration-slider input[type="range"],
html[data-studio-skin="glass"] .moying-free-image-dock input[type="range"] {
  accent-color: #ff3344;
}

html[data-studio-skin="glass"] .moying-video-model-choices,
html[data-studio-skin="glass"] .moying-free-image-model-choices,
html[data-studio-skin="glass"] .moying-script-model-choices {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

html[data-studio-skin="glass"] .moying-video-model-choices::-webkit-scrollbar,
html[data-studio-skin="glass"] .moying-free-image-model-choices::-webkit-scrollbar,
html[data-studio-skin="glass"] .moying-script-model-choices::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

html[data-studio-skin="glass"] .moying-video-model-choices::-webkit-scrollbar-button,
html[data-studio-skin="glass"] .moying-free-image-model-choices::-webkit-scrollbar-button,
html[data-studio-skin="glass"] .moying-script-model-choices::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

html[data-studio-skin="glass"] .moying-video-model-choices::-webkit-scrollbar-track,
html[data-studio-skin="glass"] .moying-free-image-model-choices::-webkit-scrollbar-track,
html[data-studio-skin="glass"] .moying-script-model-choices::-webkit-scrollbar-track {
  background: transparent;
}

html[data-studio-skin="glass"] .moying-video-model-choices::-webkit-scrollbar-thumb,
html[data-studio-skin="glass"] .moying-free-image-model-choices::-webkit-scrollbar-thumb,
html[data-studio-skin="glass"] .moying-script-model-choices::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

/* 3. Storyboard Workbench Overrides */
html[data-studio-skin="glass"] header {
  background: rgba(7, 7, 9, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(28px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.4) !important;
}

html[data-studio-skin="glass"] .glass-panel {
  background:
    linear-gradient(rgba(17, 16, 28, 0.72), rgba(17, 16, 28, 0.72)) padding-box,
    linear-gradient(135deg, rgba(124, 92, 255, 0.38), rgba(255, 255, 255, 0.08) 46%, rgba(34, 199, 216, 0.28)) border-box !important;
  border: 1px solid transparent !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px -14px rgba(0, 0, 0, 0.6) !important;
  color: #f4f1ea !important;
}

html[data-studio-skin="glass"] .glass-panel-lighter {
  background: rgba(31, 41, 55, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f4f1ea !important;
}

html[data-studio-skin="glass"] .text-gradient-primary {
  background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-studio-skin="glass"] .storyboard-container,
html[data-studio-skin="glass"] .moying-studio-workspace,
html[data-studio-skin="glass"] main.moying-workspace {
  background: transparent !important;
  color: #f4f1ea !important;
}

html[data-studio-skin="glass"] [class*="bg-white/5"],
html[data-studio-skin="glass"] [class*="bg-white/[0.03]"],
html[data-studio-skin="glass"] [class*="bg-white/[0.04]"] {
  background: rgba(255, 255, 255, 0.05) !important;
}

html[data-studio-skin="glass"] [class*="bg-gray-50"],
html[data-studio-skin="glass"] [class*="bg-gray-100"],
html[data-studio-skin="glass"] [class*="bg-slate-50"],
html[data-studio-skin="glass"] [class*="bg-slate-100"] {
  background: rgba(18, 18, 23, 0.65) !important;
}

html[data-studio-skin="glass"] [class*="bg-gray-200"] {
  background: rgba(30, 30, 40, 0.7) !important;
}

html[data-studio-skin="glass"] [class*="bg-white"]:not([class*="bg-white/"]) {
  background: rgba(18, 18, 23, 0.85) !important;
}

html[data-studio-skin="glass"] [class*="text-gray-600"],
html[data-studio-skin="glass"] [class*="text-gray-500"],
html[data-studio-skin="glass"] [class*="text-gray-400"] {
  color: rgba(244, 241, 234, 0.6) !important;
}

html[data-studio-skin="glass"] [class*="text-gray-700"],
html[data-studio-skin="glass"] [class*="text-gray-800"],
html[data-studio-skin="glass"] [class*="text-gray-900"] {
  color: #f4f1ea !important;
}

html[data-studio-skin="glass"] [class*="border-gray-100"],
html[data-studio-skin="glass"] [class*="border-gray-200"],
html[data-studio-skin="glass"] [class*="border-gray-300"] {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-studio-skin="glass"] .aspect-video {
  background: rgba(14, 14, 18, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
}

html[data-studio-skin="glass"] .storyboard-card,
html[data-studio-skin="glass"] .canvas-card,
html[data-studio-skin="glass"] [data-role="shot-card"],
html[data-studio-skin="glass"] .moying-studio-card {
  position: relative;
  background: rgba(18, 18, 23, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(28px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.4) !important;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  overflow: hidden;
  color: #ffffff !important;
}

html[data-studio-skin="glass"] .storyboard-card:hover,
html[data-studio-skin="glass"] .canvas-card:hover,
html[data-studio-skin="glass"] [data-role="shot-card"]:hover,
html[data-studio-skin="glass"] .moying-studio-card:hover {
  border-color: rgba(245, 34, 45, 0.45) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 34, 45, 0.25) !important;
  transform: translateY(-2px);
}

html[data-studio-skin="glass"] .shot-tc-chip,
html[data-studio-skin="glass"] .timecode-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ff3344;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* 4. Script Generator Overrides */
html[data-studio-skin="glass"] body.moying-script-page {
  background: #070709 !important;
}

html[data-studio-skin="glass"] body.moying-script-page #moying-script-generator-app {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 24px;
}

html[data-studio-skin="glass"] body.moying-script-page .moying-chat-shell {
  background: transparent !important;
}

html[data-studio-skin="glass"] .moying-script-panel {
  background: rgba(18, 18, 23, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(28px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.4) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  overflow: hidden !important;
}

html[data-studio-skin="glass"] .moying-script-panel-header {
  background: rgba(22, 22, 28, 0.7) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 12px 18px !important;
  color: #ffffff !important;
}

html[data-studio-skin="glass"] .moying-script-counter {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-radius: 999px !important;
  padding: 3px 12px !important;
  font-family: ui-monospace, monospace !important;
  font-size: 11px !important;
}

html[data-studio-skin="glass"] .moying-script-source {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  color: #f4f1ea !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  padding: 16px !important;
  resize: none !important;
}

html[data-studio-skin="glass"] .moying-script-source:focus {
  border-color: #ff3344 !important;
  box-shadow: 0 0 0 1px rgba(255, 51, 68, 0.4) !important;
  outline: none !important;
}

/* 5. Free Image & Video Docks */
html[data-studio-skin="glass"] body.moying-free-image-page,
html[data-studio-skin="glass"] body.moying-video-page {
  background: #070709 !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock,
html[data-studio-skin="glass"] .moying-video-dock {
  background: rgba(18, 18, 24, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 22px !important;
  backdrop-filter: blur(36px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(36px) saturate(1.5) !important;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.35), 0 24px 56px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  padding: 16px 20px !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock-refs,
html[data-studio-skin="glass"] .moying-video-dock-refs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
}

html[data-studio-skin="glass"] .moying-free-image-prompt,
html[data-studio-skin="glass"] #video-prompt.moying-video-prompt {
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  color: #f4f1ea !important;
  font-size: 13px !important;
  padding: 12px 14px !important;
  resize: none !important;
  transition: border-color 180ms ease, box-shadow 180ms ease !important;
}

html[data-studio-skin="glass"] .moying-free-image-prompt:focus,
html[data-studio-skin="glass"] #video-prompt.moying-video-prompt:focus {
  border-color: rgba(255, 51, 68, 0.6) !important;
  box-shadow: 0 0 0 1px rgba(255, 51, 68, 0.3), 0 0 16px rgba(255, 51, 68, 0.08) !important;
  outline: none !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock-pop,
html[data-studio-skin="glass"] .moying-video-dock-pop {
  background: rgba(18, 18, 24, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(36px) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6) !important;
  color: #ffffff !important;
  padding: 12px !important;
}

/* 6. Footer */
html[data-studio-skin="glass"] .moying-studio-footer {
  color: rgba(244, 241, 234, 0.35) !important;
  background: transparent !important;
}

/* Glass on the tool pages. Home keeps its own plate rules. */
html[data-studio-skin="glass"] {
  color-scheme: dark;
  --chat-bg: #07080c;
  --chat-panel: rgba(16, 14, 12, 0.78);
  --chat-panel-soft: rgba(22, 20, 18, 0.66);
  --chat-border: rgba(255, 255, 255, 0.12);
  --chat-text: #f4f1ea;
  --chat-muted: rgba(244, 241, 234, 0.62);
  --chat-subtle: rgba(244, 241, 234, 0.42);
  --chat-accent: #d4b483;
  --chat-accent-strong: #f3e9d4;
  --chat-warn: #fbbf24;
  --chat-danger: #f87171;
}

html[data-studio-skin="glass"] body.moying-studio-body:not(.moying-home-page) {
  color: #f4f1ea;
  background-color: #07080c;
  background-image:
    linear-gradient(180deg, rgba(5, 6, 7, 0.72), rgba(5, 6, 7, 0.88)),
    url("./studio/classic-v17/bg-set.png?v=20260929-glass-plate-v11");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
}

html[data-studio-skin="glass"] body.moying-studio-body:not(.moying-home-page) .moying-script-panel,
html[data-studio-skin="glass"] body.moying-studio-body:not(.moying-home-page) .moying-chat-sidebar,
html[data-studio-skin="glass"] body.moying-studio-body:not(.moying-home-page) .moying-chat-main,
html[data-studio-skin="glass"] body.moying-studio-body:not(.moying-home-page) .moying-free-image-stage,
html[data-studio-skin="glass"] body.moying-studio-body:not(.moying-home-page) .moying-video-stage {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(14, 12, 10, 0.72);
  color: #f4f1ea;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

html[data-studio-skin="glass"] body.moying-studio-body:not(.moying-home-page) textarea,
html[data-studio-skin="glass"] body.moying-studio-body:not(.moying-home-page) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  color: var(--studio-input-ink, #f4f1ea);
  background: var(--studio-input-bg, rgba(0, 0, 0, 0.28));
  border-color: var(--studio-input-line, rgba(255, 255, 255, 0.14));
}

html[data-studio-skin="glass"] body.moying-studio-body:not(.moying-home-page) textarea::placeholder,
html[data-studio-skin="glass"] body.moying-studio-body:not(.moying-home-page) input::placeholder {
  color: var(--studio-input-placeholder, rgba(244, 241, 234, 0.42));
}

html[data-studio-skin="glass"] .moying-free-image-composer,
html[data-studio-skin="glass"] .moying-free-image-composer-body,
html[data-studio-skin="glass"] .moying-free-image-dock,
html[data-studio-skin="glass"] .moying-video-dock,
html[data-studio-skin="glass"] .moying-video-create {
  color: #f4f1ea;
  background: rgba(16, 14, 12, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

html[data-studio-skin="glass"].dark body.moying-free-image-page .moying-free-image-composer,
html[data-studio-skin="glass"][data-studio-theme="dark"] body.moying-free-image-page .moying-free-image-composer,
html[data-studio-skin="glass"].dark body.moying-free-image-page .moying-free-image-composer-body,
html[data-studio-skin="glass"][data-studio-theme="dark"] body.moying-free-image-page .moying-free-image-composer-body {
  color: #f4f1ea;
  background: transparent;
  border-right-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html[data-studio-skin="glass"].dark .moying-free-image-rail-new,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-free-image-rail-new,
html[data-studio-skin="glass"].dark .moying-free-image-rail-link,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-free-image-rail-link {
  color: #f4f1ea;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-studio-skin="glass"].dark .moying-free-image-rail-link.is-active,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-free-image-rail-link.is-active,
html[data-studio-skin="glass"].dark .moying-free-image-history-item.is-active,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-free-image-history-item.is-active {
  color: #f3e9d4;
  background: rgba(243, 233, 212, 0.16);
}

html[data-studio-skin="glass"] .moying-free-image-rail-new,
html[data-studio-skin="glass"] .moying-free-image-rail-link {
  color: #f4f1ea;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-studio-skin="glass"] .moying-free-image-rail-link.is-active {
  background: rgba(243, 233, 212, 0.16);
  color: #f3e9d4;
}

html[data-studio-skin="glass"].dark .moying-video-rail,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-video-rail {
  color: #f4f1ea;
  background: transparent;
  border-right-color: rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html[data-studio-skin="glass"].dark .moying-video-rail-kicker,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-video-rail-kicker,
html[data-studio-skin="glass"].dark .moying-video-rail-clear,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-video-rail-clear {
  color: rgba(244, 241, 234, 0.62);
  background: transparent;
}

html[data-studio-skin="glass"].dark .moying-video-rail-clear:hover:not(:disabled),
html[data-studio-skin="glass"].dark .moying-video-rail-clear:focus-visible:not(:disabled),
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-video-rail-clear:hover:not(:disabled),
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-video-rail-clear:focus-visible:not(:disabled) {
  color: #f3e9d4;
  background: rgba(255, 255, 255, 0.08);
}

html[data-studio-skin="glass"].dark .moying-video-rail-new,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-video-rail-new,
html[data-studio-skin="glass"].dark .moying-video-rail-link,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-video-rail-link {
  color: #f4f1ea;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-studio-skin="glass"].dark .moying-video-rail-link.is-active,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-video-rail-link.is-active {
  color: #f3e9d4;
  background: rgba(243, 233, 212, 0.16);
}

html[data-studio-skin="glass"] .moying-free-image-feed-head,
html[data-studio-skin="glass"] .moying-free-image-feed-tools .moying-chat-pill,
html[data-studio-skin="glass"] .moying-free-image-feed-tools button {
  color: #f4f1ea;
  background: rgba(16, 14, 12, 0.88);
  border-color: rgba(255, 255, 255, 0.14);
}
html[data-studio-skin="glass"] .moying-free-image-feed-heading {
  color: #f4f1ea;
}

/* Storyboard actions use the same primary/secondary hierarchy as video creation. */
html[data-studio-skin="glass"] body.moying-studio-body .moying-workspace-current-shot,
html[data-studio-skin="glass"] body.moying-studio-body [data-testid="frame-video-prompt-generate"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ff3344, #dc2626) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font: 700 11px/1 ui-sans-serif, system-ui, sans-serif !important;
  box-shadow: 0 4px 16px rgba(230, 46, 67, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease !important;
}

html[data-studio-skin="glass"] body.moying-studio-body .moying-workspace-current-shot:hover,
html[data-studio-skin="glass"] body.moying-studio-body [data-testid="frame-video-prompt-generate"]:hover {
  filter: brightness(1.12) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(230, 46, 67, 0.6) !important;
}

html[data-studio-skin="glass"] #chat-send.moying-chat-button.is-primary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: linear-gradient(135deg, #ff3344, #e62e43) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 16px rgba(230, 46, 67, 0.42) !important;
}

html[data-studio-skin="glass"] #chat-send.moying-chat-button.is-primary:hover:not(:disabled) {
  filter: brightness(1.08) !important;
  background: linear-gradient(135deg, #ff3344, #e62e43) !important;
}

html[data-studio-skin="glass"] #chat-send.moying-chat-button.is-primary:disabled {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: linear-gradient(135deg, #ff3344, #e62e43) !important;
  opacity: 0.45 !important;
}

html[data-studio-skin="glass"] .moying-studio-header-tools {
  position: relative;
  z-index: 3;
}

html[data-studio-skin="glass"] body.moying-studio-body .moying-send-to-video,
html[data-studio-skin="glass"] body.moying-studio-body [data-testid="frame-send-to-video"],
html[data-studio-skin="glass"] body.moying-studio-body [data-action="send-to-video"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: rgba(244, 241, 234, 0.88) !important;
  -webkit-text-fill-color: rgba(244, 241, 234, 0.88) !important;
  font: 600 11px/1 ui-sans-serif, system-ui, sans-serif !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease !important;
}

html[data-studio-skin="glass"] body.moying-studio-body .moying-send-to-video:hover,
html[data-studio-skin="glass"] body.moying-studio-body [data-testid="frame-send-to-video"]:hover,
html[data-studio-skin="glass"] body.moying-studio-body [data-action="send-to-video"]:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: translateY(-1px) !important;
}

html[data-studio-skin="glass"] .moying-studio-workspace-chip .moying-studio-brand-wrap,
html[data-studio-skin="glass"] .moying-workspace-header-actions .moying-studio-brand-wrap {
  display: none !important;
}

html[data-studio-skin="glass"] .moying-studio-workspace-chip .moying-studio-header-inner,
html[data-studio-skin="glass"] .moying-workspace-header-actions .moying-studio-header-inner,
html[data-studio-skin="glass"] .moying-studio-workspace-chip .moying-studio-header-tools,
html[data-studio-skin="glass"] .moying-workspace-header-actions .moying-studio-header-tools {
  min-height: 0 !important;
  height: 32px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

.moying-studio-page-switch {
  position: relative;
  flex: 0 0 auto;
  height: 32px;
}

.moying-studio-page-switch-button {
  list-style: none;
  cursor: pointer;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 32px;
  white-space: nowrap;
}

.moying-studio-page-switch-button::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.moying-studio-page-switch.is-open > .moying-studio-page-switch-button {
  background: linear-gradient(135deg, #ff3344, #dc2626);
  border-color: transparent;
}

.moying-studio-page-switch-menu[hidden] {
  display: none !important;
}

.moying-studio-page-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(18, 18, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.moying-studio-page-switch-menu a {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  color: rgba(244, 241, 234, 0.82);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.moying-studio-page-switch-menu a:hover,
.moying-studio-page-switch-menu a.is-active {
  color: #fff;
  background: rgba(255, 51, 68, 0.22);
}


/* Explicit reference insertion uses the same chip renderer as typing @. */
.moying-video-auto-mention {
  margin: 8px 0 0;
  padding: 6px 12px;
  border: 1px solid var(--studio-line);
  border-radius: 9px;
  background: transparent;
  color: var(--studio-ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.moying-video-auto-mention:disabled { opacity: .45; cursor: default; }
.moying-video-auto-mention:hover:not(:disabled) { border-color: var(--studio-brand); color: var(--studio-brand); }
.moying-video-mention-issues { padding: 8px; border: 1px solid var(--studio-brand); border-radius: 10px; font-size: 12px; }
.moying-video-mention-issues[hidden] { display: none; }
.moying-video-mention-issues p { margin: 0 0 6px; }
.moying-video-mention-issues button { margin: 3px; padding: 5px 8px; color: inherit; background: transparent; border: 1px solid var(--studio-line); border-radius: 6px; cursor: pointer; }
.moying-studio-asset-filename { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#moying-asset-lightbox-media video { display: block; max-width: 100%; max-height: 65vh; }
#moying-asset-lightbox-media audio { width: min(560px, 75vw); }
.moying-studio-asset-grid video { max-width: 100%; object-fit: contain; }

.moying-studio-upload-status[data-error="true"] { color: var(--studio-brand); }

/* Storyboard: centered studio navigation with one collapsed control surface. */
.moying-workspace-topbar {
  position: fixed;
  inset: 0 0 auto;
  height: 52px;
  z-index: 44;
  pointer-events: none;
}
.moying-workspace-topbar .moying-workspace-toolbar-toggle {
  position: absolute;
  top: 9px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--studio-line, #d1d5db);
  border-radius: 10px;
  color: var(--studio-ink, #1f2937);
  background: var(--studio-bg, #fff);
  font: 600 12px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  pointer-events: auto;
}
.moying-workspace-toolbar-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.moying-workspace-toolbar-toggle:focus-visible { outline: 2px solid var(--studio-brand, #ef4444); outline-offset: 3px; }
html .moying-workspace-topbar .moying-studio-header-nav {
  position: absolute !important;
  top: 26px !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center;
  gap: 2px;
  width: max-content !important;
  max-width: calc(100vw - 440px) !important;
  margin: 0;
  padding: 4px 6px;
  overflow-x: auto;
  white-space: nowrap;
  pointer-events: auto;
  scrollbar-width: thin;
}
.moying-workspace-topbar .moying-studio-header-nav a { flex: 0 0 auto; padding: 6px 8px; }
body.moying-workspace-header-ready .moying-studio-workspace-chip .moying-studio-page-switch { display: none !important; }
body.moying-workspace-header-ready > .moying-workspace-header-actions { right: 12px !important; }
html body header.moying-workspace-toolbar {
  top: 60px !important;
  left: 16px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(520px, calc(100vw - 32px)) !important;
  height: auto !important;
  padding: 12px !important;
  border: 1px solid var(--studio-line, #d1d5db) !important;
  border-radius: 14px !important;
  background: var(--studio-bg, #fff) !important;
  box-shadow: 0 16px 48px #0003 !important;
  pointer-events: auto !important;
  z-index: 46 !important;
}
html body header.moying-workspace-toolbar:not(.is-expanded) { display: none !important; }
html body header.moying-workspace-toolbar > div,
html body header.moying-workspace-toolbar > div > div:nth-child(2),
html body header.moying-workspace-toolbar > div > div:nth-child(3),
html body header.moying-workspace-toolbar [data-workspace-toolbar-extra] {
  display: contents !important;
}
html body header.moying-workspace-toolbar > div > div:nth-child(2) > div.relative {
  grid-column: span 2;
  width: auto !important;
  min-width: 0 !important;
}
html body header.moying-workspace-toolbar > div > div:nth-child(2) > div.relative > button,
html body header.moying-workspace-toolbar .moying-toolbar-menu > summary,
html body header.moying-workspace-toolbar > div > div:nth-child(3) > button,
html body header.moying-workspace-toolbar [data-workspace-toolbar-extra] > button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  box-sizing: border-box;
}
html body header.moying-workspace-toolbar [data-testid="moying-generation-mode-menu"] { display: block !important; }
html body header.moying-workspace-toolbar .moying-toolbar-value {
  display: inline-block !important;
  max-width: 64px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html body header.moying-workspace-toolbar [data-testid="fourstage-toolbar-button"] {
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
html body header.moying-workspace-toolbar [data-workspace-toolbar-extra] > button {
  position: static !important;
}
@media (max-width: 1000px) {
  .moying-workspace-topbar { height: 96px; }
  html .moying-workspace-topbar .moying-studio-header-nav {
    top: 73px !important;
    max-width: calc(100vw - 24px) !important;
  }
  body.moying-workspace-header-ready::before {
    content: "";
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    height: 44px;
    z-index: 41;
    background: var(--studio-bg, #fff);
  }
  html body header.moying-workspace-toolbar { top: 104px !important; }
  html body.moying-workspace-header-ready main.moying-workspace { padding-top: 108px !important; }
}

html body header.moying-workspace-toolbar button,
html body header.moying-workspace-toolbar summary {
  color: var(--studio-ink) !important;
  -webkit-text-fill-color: currentColor !important;
  border-color: var(--studio-line) !important;
  background: var(--studio-paper) !important;
}
html body header.moying-workspace-toolbar button:hover,
html body header.moying-workspace-toolbar details[open] > summary {
  color: var(--studio-brand) !important;
  border-color: var(--studio-brand) !important;
}
html body header.moying-workspace-toolbar .moying-toolbar-panel {
  background: var(--studio-bg) !important;
  color: var(--studio-ink) !important;
  border-color: var(--studio-line) !important;
}
html body header.moying-workspace-toolbar [data-testid="fourstage-toolbar-button"] span {
  display: inline !important;
}
@media (max-width: 640px) {
  html body header.moying-workspace-toolbar .moying-toolbar-panel {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    top: 194px !important;
    width: calc(100vw - 32px) !important;
    max-height: calc(100dvh - 210px) !important;
    overflow: auto !important;
  }
}

html .moying-workspace-topbar .moying-studio-header-nav {
  background: var(--studio-bg) !important;
}
.moying-workspace-topbar .moying-studio-header-nav a {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: var(--studio-muted);
  font: 500 13px/1.4 ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
}
html[data-studio-skin="classic"] .moying-workspace-topbar .moying-studio-header-nav a.is-active {
  color: var(--studio-cta-ink) !important;
  background: var(--studio-cta) !important;
  font-weight: 700;
}
.moying-workspace-topbar .moying-studio-header-nav a:focus-visible {
  outline: 2px solid var(--studio-brand);
  outline-offset: -2px;
}
