: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: #0a0b0f;
  --studio-ink: #f4f4f6;
  --studio-muted: rgba(244, 244, 246, 0.58);
  --studio-line: rgba(255, 255, 255, 0.1);
  --studio-paper: rgba(18, 20, 28, 0.82);
  --studio-glass: rgba(16, 18, 26, 0.86);
  --studio-brand: #ff3b4e;
  --studio-brand-2: #ff6674;
  --studio-brand-from: #ff4757;
  --studio-brand-via: #f5222d;
  --studio-brand-to: #d91b2c;
  --studio-cta: linear-gradient(135deg, #ff3b4e 0%, #e11d34 100%);
  --studio-cta-ink: #ffffff;
  --studio-ambient-a: rgba(255, 51, 68, 0.1);
  --studio-ambient-b: rgba(148, 163, 184, 0.05);
  --studio-shadow: 0 20px 44px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --studio-radius: 16px;
  --studio-card-radius: 16px;
  --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-main,
.moying-studio-footer {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.moying-studio-header-inner {
  width: calc(100% - 48px);
  max-width: none;
  margin: 0 auto;
  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 {
  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 {
  border-color: color-mix(in srgb, var(--studio-brand) 38%, var(--studio-line));
  transform: translateY(-1px);
}

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

.moying-studio-module h3 {
  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-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.moying-studio-composer-tools 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 {
  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 {
  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?ch=a772909ebe") 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?ch=f1c5c94332"); }
body.moying-home-page .moying-studio-module[data-module="image"]::before { background-image: url("./studio/icon-image.png?ch=82eac75a12"); }
body.moying-home-page .moying-studio-module[data-module="storyboard"]::before { background-image: url("./studio/icon-storyboard.png?ch=d068e1a6c8"); }
body.moying-home-page .moying-studio-module[data-module="video"]::before { background-image: url("./studio/icon-video.png?ch=10991f7818"); }
body.moying-home-page .moying-studio-module[data-module="chat"]::before { background-image: url("./studio/icon-chat.png?ch=73d6935be3"); }
body.moying-home-page .moying-studio-module[data-module="review"]::before { background-image: url("./studio/icon-review.png?ch=ca82016c36"); }

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: 10px;
  background: rgba(255, 59, 78, 0.14) 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='%23ff5263' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") center / 17px no-repeat;
  border: 1px solid rgba(255, 59, 78, 0.3);
  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&ch=b078860288"); }
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&ch=c20a985958"); }
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&ch=760e0ac5f6"); }
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&ch=16db0b37f5"); }
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&ch=1ef2d4b13f"); }
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&ch=9b3284072c"); }


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: 64px;
  right: max(12px, calc((100vw - min(100vw, 1180px)) / 2 + 12px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(14, 16, 24, 0.94);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(36px) saturate(1.4);
  -webkit-backdrop-filter: blur(36px) saturate(1.4);
  color: var(--studio-ink);
  z-index: 110;
}

/* 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.1);
}

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.14);
  border-radius: 10px;
  background: rgba(8, 10, 16, 0.72);
  color: var(--studio-ink);
}

html[data-studio-skin="glass"] .moying-studio-login-pop-form input:focus {
  border-color: rgba(255, 59, 78, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 59, 78, 0.2);
  outline: none;
}

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

html[data-studio-skin="glass"] .moying-studio-login-pop-form .moying-studio-btn {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  background: linear-gradient(135deg, #ff3b4e 0%, #e11d34 100%);
  border: 0;
  border-radius: 10px !important;
  box-shadow: 0 6px 18px rgba(225, 29, 52, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

html[data-studio-skin="glass"] .moying-studio-login-pop-form .moying-studio-btn:hover {
  filter: brightness(1.08);
}

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, 244, 246, 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: 18px 22px;
}

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

.moying-studio-profile-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  margin-top: 20px;
  gap: 20px;
  align-items: start;
}

.moying-studio-profile-col {
  gap: 20px;
}

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

.moying-studio-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.moying-studio-card-head h2 {
  margin: 0;
}

.moying-studio-card-head .moying-studio-eyebrow {
  margin-bottom: 4px;
}

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

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

.moying-profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.moying-profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--studio-brand-from) 28%, transparent), color-mix(in srgb, var(--studio-brand-to) 24%, transparent));
  border: 1px solid color-mix(in srgb, var(--studio-brand) 36%, var(--studio-line));
  color: var(--studio-ink);
  font-size: 17px;
  font-weight: 700;
}

html[data-studio-skin="glass"] .moying-profile-avatar {
  background: linear-gradient(135deg, rgba(255, 59, 78, 0.24), rgba(225, 29, 52, 0.12));
  border-color: rgba(255, 59, 78, 0.36);
  color: #fff;
}

.moying-profile-identity h1 {
  font-size: 22px;
  line-height: 1.25;
}

.moying-profile-identity p {
  margin: 4px 0 0;
  font-size: 13px;
}

.moying-profile-guest-card {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.moying-profile-guest-copy strong {
  display: block;
  font-size: 16px;
  color: var(--studio-ink);
}

.moying-profile-guest-copy .moying-studio-fine {
  margin: 6px 0 0;
  font-size: 13px;
}

.moying-profile-balance-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 10px;
}

.moying-profile-balance-row .moying-studio-balance {
  margin: 0;
  font-size: 38px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--studio-ink);
}

.moying-profile-balance-unit {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--studio-line);
  background: color-mix(in srgb, var(--studio-brand) 10%, var(--studio-paper));
  color: var(--studio-muted);
  font-size: 11px;
  font-weight: 600;
}

.moying-profile-recharge-cta {
  min-height: 36px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.moying-profile-form-card {
  display: grid;
  gap: 14px;
}

.moying-profile-form-card h2 {
  margin: 0 0 2px;
}

.moying-profile-form-card label {
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--studio-muted);
}

.moying-profile-form-card label > span:first-child {
  color: var(--studio-ink);
}

.moying-profile-form-card input {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.moying-profile-form-card input:focus-visible {
  outline: none;
  border-color: var(--studio-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--studio-brand) 22%, transparent);
}

html[data-studio-skin="glass"] .moying-profile-form-card input:focus-visible {
  border-color: #ff4d5a;
  box-shadow: 0 0 0 3px rgba(255, 51, 68, 0.22);
}

.moying-profile-form-card input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.moying-profile-form-card .moying-studio-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.moying-profile-form-card .moying-studio-code-row button {
  min-width: 72px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.moying-profile-form-card .moying-studio-code-row button:hover {
  border-color: color-mix(in srgb, var(--studio-brand) 48%, var(--studio-line));
  background: color-mix(in srgb, var(--studio-brand) 12%, var(--studio-paper));
}

.moying-profile-form-card .moying-studio-btn.is-block {
  height: 42px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
}

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

.moying-studio-field-note {
  color: var(--studio-muted);
  font-size: 11px;
}

.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: 46px;
  padding: 12px 4px;
  border-radius: 8px;
  transition: background 0.14s ease;
}

.moying-studio-ledger li:not(.is-empty):hover {
  background: color-mix(in srgb, var(--studio-line) 32%, transparent);
}

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

.moying-studio-ledger li.is-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 0;
  padding: 16px 12px;
  border: 1px dashed var(--studio-line);
  border-radius: 12px;
  color: var(--studio-muted);
  font-size: 13px;
}

.moying-studio-ledger li.is-empty small::before {
  content: none;
}

.moying-ledger-empty-title {
  color: var(--studio-ink);
  font-weight: 600;
}

.moying-studio-ledger em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  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 em[data-kind="recharge"] {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.28);
  color: #059669;
}

.moying-studio-ledger em[data-kind="gift"] {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
  color: #d97706;
}

.moying-studio-ledger em[data-kind="reserve"] {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.28);
  color: #0284c7;
}

.moying-studio-ledger em[data-kind="release"] {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.28);
  color: #7c3aed;
}

.moying-studio-ledger em[data-kind="consume"] {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.24);
  color: #dc2626;
}

html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark) .moying-studio-ledger em[data-kind="recharge"] {
  color: #34d399;
}

html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark) .moying-studio-ledger em[data-kind="gift"] {
  color: #fbbf24;
}

html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark) .moying-studio-ledger em[data-kind="reserve"] {
  color: #38bdf8;
}

html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark) .moying-studio-ledger em[data-kind="release"] {
  color: #c084fc;
}

html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark) .moying-studio-ledger em[data-kind="consume"] {
  color: #f87171;
}

.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"],
html[data-studio-skin="glass"] .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"],
html[data-studio-skin="glass"] .moying-studio-ledger strong[data-sign="debit"] {
  color: #f87171;
}

.moying-studio-packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.moying-studio-pack {
  position: relative;
  min-height: 196px;
  padding: 22px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  color: var(--studio-ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.moying-studio-pack::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 90% at 88% 0%, color-mix(in srgb, var(--studio-brand) 16%, transparent), transparent 62%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

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

.moying-studio-pack:hover::before,
.moying-studio-pack.is-on::before {
  opacity: 1;
}

.moying-studio-pack.is-on {
  border-color: color-mix(in srgb, var(--studio-brand) 72%, var(--studio-line));
  background:
    linear-gradient(color-mix(in srgb, var(--studio-brand) 12%, var(--studio-paper)), color-mix(in srgb, var(--studio-brand) 6%, var(--studio-paper))) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--studio-brand-from) 68%, transparent), color-mix(in srgb, var(--studio-brand-to) 52%, transparent)) border-box;
  box-shadow: 0 18px 38px -18px color-mix(in srgb, var(--studio-brand) 55%, transparent);
}

html[data-studio-skin="glass"] .moying-studio-pack {
  background: rgba(18, 18, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-studio-skin="glass"] .moying-studio-pack::before {
  background: radial-gradient(110% 80% at 92% 4%, rgba(255, 51, 68, 0.22), transparent 60%);
}

html[data-studio-skin="glass"] .moying-studio-pack:hover {
  border-color: rgba(255, 51, 68, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.56), 0 0 22px rgba(255, 51, 68, 0.18);
}

html[data-studio-skin="glass"] .moying-studio-pack.is-on {
  border-color: rgba(255, 51, 68, 0.78);
  background: linear-gradient(160deg, rgba(36, 18, 24, 0.92), rgba(18, 18, 24, 0.9));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 28px rgba(230, 46, 67, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.moying-pack-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.moying-studio-pack strong {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--studio-ink);
  line-height: 1.35;
}

.moying-pack-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.moying-studio-pack em {
  position: static;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--studio-brand) 38%, transparent);
  background: color-mix(in srgb, var(--studio-brand) 16%, transparent);
  color: var(--studio-brand);
  font-style: normal;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

html[data-studio-skin="glass"] .moying-studio-pack em {
  border-color: rgba(212, 180, 131, 0.42);
  background: rgba(212, 180, 131, 0.16);
  color: #f3e9d4;
}

.moying-pack-check {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1.5px solid var(--studio-line);
  background: transparent;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.moying-pack-check::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 0.16s ease;
}

.moying-studio-pack.is-on .moying-pack-check {
  border-color: var(--studio-brand);
  background: var(--studio-brand);
}

html[data-studio-skin="glass"] .moying-studio-pack.is-on .moying-pack-check {
  border-color: #ff3344;
  background: linear-gradient(135deg, #ff3344, #e62e43);
}

.moying-studio-pack.is-on .moying-pack-check::after {
  transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

.moying-pack-credits {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.moying-studio-pack b {
  display: inline-block;
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.moying-pack-credits small {
  color: var(--studio-muted);
  font-size: 13px;
  font-weight: 600;
}

.moying-pack-breakdown {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 24px;
}

.moying-pack-bonus,
.moying-pack-base {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.moying-pack-bonus {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #059669;
}

html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark) .moying-pack-bonus {
  color: #34d399;
}

.moying-pack-base {
  background: color-mix(in srgb, var(--studio-line) 46%, transparent);
  color: var(--studio-muted);
}

.moying-pack-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--studio-line);
}

.moying-pack-price {
  font-size: 20px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--studio-ink);
}

.moying-pack-rate {
  color: var(--studio-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.moying-studio-empty-card {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 36px 24px;
  border: 1px dashed var(--studio-line);
  border-radius: 18px;
  background: var(--studio-glass);
  text-align: center;
}

.moying-studio-empty-card svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--studio-muted);
  stroke-width: 1.6;
}

.moying-studio-empty-card strong {
  font-size: 15px;
  color: var(--studio-ink);
}

.moying-studio-empty-card p {
  margin: 0;
}

.moying-studio-paybar {
  position: sticky;
  bottom: 16px;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 18px;
}

html[data-studio-skin="glass"] .moying-studio-paybar {
  background: rgba(16, 16, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.moying-studio-paybar .moying-paybar-methods,
.moying-studio-paybar .moying-paybar-checkout {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  overflow: visible;
}

.moying-paybar-label {
  color: var(--studio-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.moying-pay-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.moying-studio-paybar .moying-pay-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--studio-paper) 72%, transparent);
  color: var(--studio-ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.moying-studio-paybar .moying-pay-option:hover {
  border-color: color-mix(in srgb, var(--studio-brand) 44%, var(--studio-line));
}

.moying-studio-paybar .moying-pay-option.is-on {
  border-color: color-mix(in srgb, var(--studio-brand) 72%, var(--studio-line));
  background: color-mix(in srgb, var(--studio-brand) 14%, var(--studio-paper));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--studio-brand) 36%, transparent);
}

html[data-studio-skin="glass"] .moying-studio-paybar .moying-pay-option.is-on {
  border-color: rgba(255, 51, 68, 0.72);
  background: rgba(255, 51, 68, 0.14);
  box-shadow: 0 0 0 1px rgba(255, 51, 68, 0.25);
}

.moying-pay-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.moying-pay-icon svg {
  width: 15px;
  height: 15px;
}

.moying-pay-icon.is-wxpay {
  background: rgba(16, 185, 129, 0.16);
  color: #10b981;
}

.moying-pay-icon.is-alipay {
  background: rgba(14, 165, 233, 0.16);
  color: #0ea5e9;
}

.moying-pay-check {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1.5px solid var(--studio-line);
  position: relative;
}

.moying-pay-option.is-on .moying-pay-check {
  border-color: var(--studio-brand);
  background: var(--studio-brand);
}

html[data-studio-skin="glass"] .moying-pay-option.is-on .moying-pay-check {
  border-color: #ff3344;
  background: #ff3344;
}

.moying-pay-option.is-on .moying-pay-check::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}

.moying-paybar-summary {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.moying-paybar-pack {
  color: var(--studio-muted);
  font-size: 12px;
}

.moying-paybar-summary strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--studio-ink);
}

.moying-paybar-price {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

.moying-studio-paybar .moying-paybar-submit {
  min-width: 128px;
  min-height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
}

.moying-studio-paybar .moying-paybar-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.moying-recharge-error {
  margin: 12px 0 0;
  font-size: 13px;
}

.moying-studio-notice-banner {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, #10b981 36%, var(--studio-line));
  background: color-mix(in srgb, #10b981 10%, var(--studio-paper));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--studio-ink);
}

.moying-redirect-card {
  max-width: 520px;
  margin: 56px auto;
  padding: 32px 28px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 12px;
}

.moying-redirect-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2.5px solid var(--studio-line);
  border-top-color: var(--studio-brand);
  animation: moying-redirect-spin 0.9s linear infinite;
}

html[data-studio-skin="glass"] .moying-redirect-spinner {
  border-top-color: #ff3344;
}

@keyframes moying-redirect-spin {
  to { transform: rotate(360deg); }
}

.moying-redirect-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.moying-redirect-links a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--studio-line);
  font-size: 12px;
  color: var(--studio-muted);
}

.moying-redirect-links a:hover {
  color: var(--studio-ink);
  border-color: color-mix(in srgb, var(--studio-brand) 45%, var(--studio-line));
}

.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;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 20px;
  row-gap: 12px;
  padding: 22px 24px;
}

[data-studio-page="recharge"] .moying-studio-pagehead::after,
[data-testid="moying-recharge"] .moying-studio-pagehead::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 240px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--studio-brand) 22%, transparent), transparent 68%);
  pointer-events: none;
}

html[data-studio-skin="glass"] [data-studio-page="recharge"] .moying-studio-pagehead::after,
html[data-studio-skin="glass"] [data-testid="moying-recharge"] .moying-studio-pagehead::after {
  background: radial-gradient(circle, rgba(245, 34, 45, 0.22), transparent 68%);
}

[data-studio-page="recharge"] .moying-studio-pagehead > a,
[data-testid="moying-recharge"] .moying-studio-pagehead > a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  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 .moying-studio-eyebrow,
[data-testid="moying-recharge"] .moying-studio-pagehead .moying-studio-eyebrow {
  margin: 0 0 6px;
}

[data-studio-page="recharge"] .moying-studio-pagehead h1,
[data-testid="moying-recharge"] .moying-studio-pagehead h1 {
  color: var(--studio-ink);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
}

[data-studio-page="recharge"] .moying-studio-pagehead > div > p:not(.moying-studio-eyebrow),
[data-testid="moying-recharge"] .moying-studio-pagehead > div > p:not(.moying-studio-eyebrow) {
  max-width: 42em;
  margin: 8px 0 0;
  color: var(--studio-muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.65;
}

.moying-recharge-uses {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.moying-recharge-uses li {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--studio-line);
  background: color-mix(in srgb, var(--studio-paper) 70%, transparent);
  color: var(--studio-ink);
  font-size: 11px;
  font-weight: 600;
}

.moying-recharge-uses li.is-note {
  border-style: dashed;
  background: transparent;
  color: var(--studio-muted);
  font-weight: 500;
}

[data-studio-page="recharge"] .moying-studio-pagehead > .moying-studio-credit-card,
[data-testid="moying-recharge"] .moying-studio-pagehead > .moying-studio-credit-card {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  justify-items: end;
  gap: 4px;
  height: auto;
  min-height: 0;
  max-width: none;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--studio-paper) 82%, transparent);
  box-shadow: none;
  backdrop-filter: blur(16px);
  color: var(--studio-ink);
  white-space: nowrap;
}

.moying-recharge-account {
  color: var(--studio-muted);
  font-size: 11px;
  font-weight: 600;
}

.moying-recharge-balance-val {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.moying-recharge-balance-val small,
.moying-recharge-balance-val span {
  color: var(--studio-muted);
  font-size: 12px;
  font-weight: 500;
}

.moying-recharge-balance-val strong {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

html[data-studio-skin="glass"] [data-studio-page="recharge"] .moying-studio-pagehead,
html[data-studio-skin="glass"] [data-testid="moying-recharge"] .moying-studio-pagehead {
  background: rgba(18, 18, 24, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-studio-skin="glass"] [data-studio-page="recharge"] .moying-studio-pagehead > .moying-studio-credit-card,
html[data-studio-skin="glass"] [data-testid="moying-recharge"] .moying-studio-pagehead > .moying-studio-credit-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

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

  [data-studio-page="recharge"] .moying-studio-pagehead > .moying-studio-credit-card,
  [data-testid="moying-recharge"] .moying-studio-pagehead > .moying-studio-credit-card {
    justify-self: stretch;
    justify-items: start;
  }
}

[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],
[data-studio-page="assets"] .moying-studio-asset-grid figure[data-cloud-id] figcaption button[data-asset-preview],
[data-testid="moying-assets"] .moying-studio-asset-grid figure[data-cloud-id] figcaption button[data-asset-preview] {
  width: 100%;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--studio-line);
  border-radius: 999px;
  color: var(--studio-ink);
  background: color-mix(in srgb, var(--studio-paper) 88%, #fff);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

[data-studio-page="assets"] .moying-studio-asset-grid figure figcaption button[data-asset-preview]:hover,
[data-testid="moying-assets"] .moying-studio-asset-grid figure figcaption button[data-asset-preview]:hover {
  border-color: color-mix(in srgb, var(--studio-brand) 42%, var(--studio-line));
  color: var(--studio-brand);
}

[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 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moying-studio-profile-grid {
    grid-template-columns: 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;
  }

  .moying-studio-paybar {
    position: static;
  }

  .moying-studio-paybar .moying-paybar-checkout {
    justify-content: space-between;
  }

  .moying-paybar-summary {
    justify-items: start;
    text-align: left;
  }

  .moying-studio-paybar .moying-paybar-submit {
    width: 100%;
  }

  .moying-profile-guest-card {
    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:is(.dark, [data-studio-theme="dark"], [data-studio-skin="glass"]):has(body.moying-video-page) {
  color-scheme: dark;
}

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

@media (min-width: 981px) {
  html:has(body.moying-video-page),
  body.moying-video-page {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }

  html:has(body.moying-video-library-open) {
    padding-right: 0;
  }

  body.moying-video-page {
    display: flex;
    flex-direction: column;
  }

  body.moying-video-page .moying-studio-header {
    flex: 0 0 auto;
  }

  body.moying-video-page .moying-studio-main {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow: hidden;
  }

  body.moying-video-page .moying-video-shell {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.moying-video-page .moying-video-workspace {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
  }

  body.moying-video-page .moying-video-create {
    min-height: 100%;
  }
}

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

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

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

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

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

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

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 10px 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: 10px;
  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: static;
  top: auto;
  right: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 46px;
  height: 26px;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: #fff;
  color: var(--studio-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.moying-video-prompt-expand:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.24);
}

.moying-video-composer > .moying-video-prompt-expand {
  position: absolute;
  top: 4px;
  right: 20px;
  z-index: 3;
}

html:is(.dark, [data-studio-theme="dark"]) .moying-video-prompt-expand {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(244, 244, 246, 0.88);
  -webkit-text-fill-color: rgba(244, 244, 246, 0.88);
}

html:is(.dark, [data-studio-theme="dark"]) .moying-video-prompt-expand:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.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-card-thumb,
html.dark .moying-video-card-thumb,
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;
}

/* Style picker: one sample picture per preset, grouped; the summary shows the chosen name. */
.moying-free-image-dock-style > summary {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.moying-free-image-dock-style .moying-free-image-dock-pop {
  width: min(452px, calc(100vw - 24px));
  max-height: min(460px, calc(100vh - 120px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  gap: 10px;
}

/* A style sample shown large while the mouse rests on its card (自由生图's picker, the storyboard 画风 menu).
   It hangs off <body>, beside the open list, so no toolbar, sidebar or floating button covers it. */
.moying-style-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483000;
  display: grid;
  gap: 6px;
  box-sizing: border-box;
  width: min(416px, calc(100vw - 24px), calc(100vh - 150px));
  padding: 8px 8px 10px;
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  background: #fff;
  color: var(--studio-ink);
  box-shadow: 0 18px 48px rgba(28, 23, 48, 0.28);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0s linear 0.12s;
}

.moying-style-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.12s ease;
}

/* Square like every sample; until the 512px picture arrives the card's small one stands in. */
.moying-style-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: var(--studio-line) center / cover no-repeat;
}

.moying-style-preview strong {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

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

.moying-style-preview p[hidden] {
  display: none;
}

html[data-studio-theme="dark"] .moying-style-preview {
  background: #171924;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

html[data-studio-skin="glass"] .moying-style-preview {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(18, 18, 24, 0.97);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .moying-style-preview,
  .moying-style-preview.is-visible {
    transition: none;
  }
}

.moying-free-image-style-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.moying-free-image-style-head strong {
  font-size: 13px;
}

.moying-free-image-style-note {
  margin: 0;
  color: var(--studio-muted);
  font-size: 11px;
  line-height: 1.5;
}

.moying-free-image-style-group h4 {
  margin: 2px 0 6px;
  color: var(--studio-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.moying-free-image-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
}

.moying-free-image-style-none,
.moying-free-image-style-card {
  border: 1px solid var(--studio-line);
  background: transparent;
  color: var(--studio-ink);
  cursor: pointer;
}

.moying-free-image-style-none {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
}

.moying-free-image-style-card {
  display: grid;
  gap: 4px;
  padding: 4px 4px 5px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.moying-free-image-style-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
  background: color-mix(in srgb, var(--studio-line) 55%, transparent);
}

.moying-free-image-style-none:hover,
.moying-free-image-style-card:hover {
  border-color: color-mix(in srgb, var(--studio-brand) 45%, var(--studio-line));
}

.moying-free-image-style-none.is-active,
.moying-free-image-style-card.is-active {
  border-color: var(--studio-brand);
  box-shadow: inset 0 0 0 1px var(--studio-brand);
  color: var(--studio-brand);
  font-weight: 650;
}

.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;
}

/* An <optgroup> label above its options: plain text, not choosable. */
.moying-studio-select-group {
  padding: 8px 10px 2px;
  color: var(--studio-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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 10px 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 .moying-dock-submit,
.moying-free-image-dock-bar .moying-dock-submit {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
  max-width: 100%;
  min-width: 0;
}

.moying-video-dock-bar .moying-dock-submit > .moying-credit-estimate,
.moying-free-image-dock-bar .moying-dock-submit > .moying-credit-estimate {
  margin-left: 0;
  margin-right: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.moying-video-dock-bar .moying-dock-submit > #video-generate,
.moying-free-image-dock-bar .moying-dock-submit > #free-image-generate {
  margin-left: 0;
}

.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;
  min-height: 56px;
  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);
}

html[data-studio-skin="glass"] .moying-studio-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 16px;
  width: calc(100% - 48px);
  max-width: none;
  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 {
  width: calc(100% - 48px) !important;
  max-width: none !important;
  margin: 0 auto !important;
}

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: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: rgba(255, 59, 78, 0.14) 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='%23ff5263' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E") center / 15px no-repeat !important;
  border: 1px solid rgba(255, 59, 78, 0.3) !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: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
  font-size: 12px !important;
  color: rgba(244, 244, 246, 0.78) !important;
  margin: 0 0 8px !important;
  line-height: 1.38 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85) !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 118px 54px -20px rgba(6, 7, 12, 0.96),
    inset 0 -72px 38px -18px rgba(6, 7, 12, 0.84) !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 {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #ff3b4e, #e11d34) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(225, 29, 52, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  opacity: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: filter 160ms ease, transform 160ms ease, background 160ms ease, border-color 160ms ease !important;
}

html[data-studio-skin="glass"] body.moying-home-page .moying-studio-go:disabled {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(244, 244, 246, 0.56) !important;
  -webkit-text-fill-color: rgba(244, 244, 246, 0.56) !important;
  box-shadow: none !important;
  opacity: 0.9 !important;
  cursor: not-allowed !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: background-color 180ms ease, border-color 180ms ease, color 180ms ease, filter 180ms ease, box-shadow 180ms ease, transform 180ms 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-free-image-style-none,
html[data-studio-skin="glass"] .moying-free-image-style-card {
  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-free-image-style-none.is-active,
html[data-studio-skin="glass"] .moying-free-image-style-card.is-active {
  color: #ffffff !important;
  background: rgba(255, 51, 68, 0.22) !important;
  border-color: rgba(255, 51, 68, 0.55) !important;
}

html[data-studio-skin="glass"] .moying-free-image-style-note,
html[data-studio-skin="glass"] .moying-free-image-style-group h4 {
  color: rgba(244, 241, 234, 0.55) !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock-style .moying-free-image-dock-pop {
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

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 (scoped to top headers so inner card <header> elements stay transparent) */
html[data-studio-skin="glass"] header.fixed.top-0,
html[data-studio-skin="glass"] header.moying-studio-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: rgba(16, 18, 26, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: #f4f4f6 !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"] [data-studio-page="profile"] .moying-studio-card:hover,
html[data-studio-skin="glass"] .moying-redirect-card:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  transform: none;
}

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 */
.moying-script-actions .moying-credit-estimate.is-prominent {
  flex: 0 0 auto;
  min-height: 32px;
  height: 32px;
  margin: 0;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

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 {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 24px;
  box-sizing: border-box;
}

html[data-studio-skin="glass"] body.moying-script-page .moying-chat-shell {
  width: 100%;
  box-sizing: border-box;
  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 {
  min-height: 60px !important;
  background: rgba(22, 22, 28, 0.7) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 12px 16px !important;
  color: #ffffff !important;
}

html[data-studio-skin="glass"] .moying-script-actions .moying-credit-estimate.is-prominent {
  min-height: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  line-height: 1 !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,
html[data-studio-skin="glass"] .moying-script-result {
  background: #0d0f17 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #f4f4f6 !important;
  font-size: 13.5px !important;
  line-height: 1.72 !important;
  padding: 16px 18px !important;
}

html[data-studio-skin="glass"] .moying-script-source {
  resize: none !important;
}

html[data-studio-skin="glass"] .moying-script-source:focus {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* 5. Free Image & Video Docks + Dark-Cinema Video Studio */
html[data-studio-skin="glass"] body.moying-free-image-page,
html[data-studio-skin="glass"] body.moying-video-page {
  background-color: #090a0f !important;
  background-image:
    radial-gradient(ellipse 72% 42% at 55% -6%, rgba(255, 59, 78, 0.065) 0%, rgba(148, 163, 184, 0.03) 44%, transparent 74%),
    radial-gradient(ellipse 96% 88% at 54% 40%, transparent 52%, rgba(3, 4, 7, 0.56) 100%) !important;
  background-repeat: no-repeat, no-repeat !important;
  background-size: 100% 100%, 100% 100% !important;
  background-position: center top, center !important;
  background-attachment: fixed, fixed !important;
}

html[data-studio-skin="glass"] body.moying-video-page .moying-studio-main,
html[data-studio-skin="glass"] body.moying-video-page .moying-video-shell,
html[data-studio-skin="glass"] body.moying-video-page .moying-video-workspace,
html[data-studio-skin="glass"] body.moying-video-page .moying-video-panel,
html[data-studio-skin="glass"] body.moying-video-page .moying-video-create {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock,
html[data-studio-skin="glass"] .moying-video-dock {
  background:
    linear-gradient(180deg, rgba(28, 30, 40, 0.88) 0%, rgba(16, 17, 23, 0.94) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.03) 100%) border-box !important;
  border: 1px solid transparent !important;
  border-radius: 20px !important;
  backdrop-filter: blur(28px) saturate(1.35) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.35) !important;
  box-shadow:
    0 -24px 48px -8px rgba(14, 15, 19, 0.78),
    0 28px 64px -10px rgba(0, 0, 0, 0.78),
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  padding: 18px 20px 16px !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: 14px !important;
  margin-bottom: 14px !important;
}

html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar {
  --studio-dock-control-size: 36px;
  --studio-dock-control-padding: 0 13px;
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  gap: 10px !important;
}

html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar details summary,
html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar .moying-credit-estimate,
html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar [data-video-credit-estimate] {
  border-radius: 10px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 13px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  color: rgba(244, 241, 234, 0.88) !important;
  font-size: 12px !important;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar details summary:hover,
html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar details[open] summary {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(255, 51, 68, 0.45) !important;
  color: #ffffff !important;
}

html[data-studio-skin="glass"] .moying-video-dock #video-generate {
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #ff3344, #dc2626) !important;
  box-shadow: 0 6px 18px rgba(230, 46, 67, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

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

html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-note {
  margin: 12px 2px 0 !important;
  color: rgba(244, 241, 234, 0.5) !important;
  line-height: 1.5;
}

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: #0a0b0f;
  --chat-panel: rgba(16, 18, 26, 0.88);
  --chat-panel-soft: rgba(22, 24, 34, 0.78);
  --chat-border: rgba(255, 255, 255, 0.1);
  --chat-text: #f4f4f6;
  --chat-muted: rgba(244, 244, 246, 0.62);
  --chat-subtle: rgba(244, 244, 246, 0.42);
  --chat-accent: #ff3b4e;
  --chat-accent-strong: #ff6674;
  --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&ch=dd2f9b7366");
  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"] body.moying-free-image-page .moying-free-image-composer {
  color: #f4f4f6 !important;
  background: #0d0f15 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-bottom-color: rgba(255, 255, 255, 0.07) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

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,
html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-composer-body {
  color: #f4f4f6;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

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"] .moying-free-image-rail-new {
  min-height: 38px;
  margin-bottom: 6px;
  padding: 0 12px;
  border-radius: 10px;
  color: #f4f4f6 !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

html[data-studio-skin="glass"] .moying-free-image-rail-new::before {
  color: #ff4757;
}

html[data-studio-skin="glass"] .moying-free-image-rail-new:hover,
html[data-studio-skin="glass"] .moying-free-image-rail-new:focus-visible {
  color: #ffffff !important;
  border-color: rgba(255, 59, 78, 0.42) !important;
  background: rgba(255, 59, 78, 0.1) !important;
  box-shadow: none !important;
}

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,
html[data-studio-skin="glass"] .moying-free-image-rail-link {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  color: rgba(244, 244, 246, 0.68) !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

html[data-studio-skin="glass"] .moying-free-image-rail-link:hover,
html[data-studio-skin="glass"] .moying-free-image-rail-link:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: transparent !important;
}

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"] .moying-free-image-rail-link.is-active {
  color: #ffffff !important;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.075) !important;
  box-shadow: inset 3px 0 0 #ff3b4e !important;
}

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: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.075) !important;
  box-shadow: inset 3px 0 0 #ff3b4e !important;
}

@media (min-width: 981px) {
  .moying-video-rail {
    position: static;
    top: auto;
    align-self: stretch;
    height: 100%;
    max-height: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .moying-video-rail .moying-video-history {
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

html[data-studio-skin="glass"] .moying-video-rail,
html[data-studio-skin="glass"].dark .moying-video-rail,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-video-rail {
  color: #f4f4f6;
  gap: 6px;
  padding: 20px 14px 18px;
  background: #0d0f15 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-bottom-color: rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

html[data-studio-skin="glass"] .moying-video-rail-kicker,
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"] .moying-video-rail-clear,
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.54);
  background: transparent;
}

html[data-studio-skin="glass"] .moying-video-rail-recent-head {
  margin: 14px 4px 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

html[data-studio-skin="glass"] .moying-video-rail-clear:hover:not(:disabled),
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: #fff;
  background: rgba(255, 255, 255, 0.08);
}

html[data-studio-skin="glass"] .moying-video-rail-new,
html[data-studio-skin="glass"].dark .moying-video-rail-new,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-video-rail-new {
  min-height: 38px;
  margin-bottom: 6px;
  padding: 0 12px;
  border-radius: 10px;
  color: #f4f4f6 !important;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

html[data-studio-skin="glass"] .moying-video-rail-new::before {
  color: #ff4757;
}

html[data-studio-skin="glass"] .moying-video-rail-new:hover,
html[data-studio-skin="glass"] .moying-video-rail-new:focus-visible {
  color: #ffffff !important;
  border-color: rgba(255, 59, 78, 0.42) !important;
  background: rgba(255, 59, 78, 0.1) !important;
  box-shadow: none !important;
}

html[data-studio-skin="glass"] .moying-video-rail-link,
html[data-studio-skin="glass"].dark .moying-video-rail-link,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-video-rail-link {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  color: rgba(244, 244, 246, 0.68) !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

html[data-studio-skin="glass"] .moying-video-rail-link:hover,
html[data-studio-skin="glass"] .moying-video-rail-link:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: transparent !important;
}

html[data-studio-skin="glass"] .moying-video-rail-link.is-active,
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: #ffffff !important;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.075) !important;
  box-shadow: inset 3px 0 0 #ff3b4e !important;
}

html[data-studio-skin="glass"] .moying-video-history-item,
html[data-studio-skin="glass"].dark .moying-video-history-item,
html[data-studio-skin="glass"][data-studio-theme="dark"] .moying-video-history-item {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #f4f1ea !important;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

html[data-studio-skin="glass"] .moying-video-history-item:hover,
html[data-studio-skin="glass"] .moying-video-history-item:focus-visible {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 51, 68, 0.34) !important;
}

html[data-studio-skin="glass"] .moying-video-history-item.is-active {
  background: linear-gradient(135deg, rgba(255, 51, 68, 0.16), rgba(99, 102, 241, 0.1)) !important;
  border-color: rgba(255, 51, 68, 0.42) !important;
}

/* Video feed header, glass cards, thumb placeholder & dark-cinema preview stage */
html[data-studio-skin="glass"] .moying-video-feed-heading {
  color: #f4f1ea;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

html[data-studio-skin="glass"] .moying-video-feed-tools input,
html[data-studio-skin="glass"] .moying-video-feed-tools select,
html[data-studio-skin="glass"] .moying-video-feed-assets,
html[data-studio-skin="glass"] .moying-video-feed-tools .moying-studio-select-button {
  color: #f4f1ea !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  background: rgba(18, 19, 28, 0.72) !important;
  backdrop-filter: blur(18px) saturate(1.3);
  transition: border-color 160ms ease, background 160ms ease;
}

html[data-studio-skin="glass"] .moying-video-feed-tools input:focus,
html[data-studio-skin="glass"] .moying-video-feed-assets:hover,
html[data-studio-skin="glass"] .moying-video-feed-tools .moying-studio-select-button:hover {
  border-color: rgba(255, 51, 68, 0.48) !important;
  background: rgba(24, 25, 36, 0.86) !important;
  outline: none;
}

html[data-studio-skin="glass"] .moying-video-card {
  padding: 16px 18px 16px;
  border: 1px solid transparent !important;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(27, 29, 39, 0.84) 0%, rgba(16, 17, 23, 0.92) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 52%, rgba(255, 255, 255, 0.03) 100%) border-box !important;
  box-shadow:
    0 26px 60px -14px rgba(0, 0, 0, 0.78),
    0 8px 24px -6px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  color: #f4f1ea;
}

html[data-studio-skin="glass"] .moying-video-card-meta {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-studio-skin="glass"] .moying-video-card-meta > div:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

html[data-studio-skin="glass"] .moying-video-card-thumb,
html[data-studio-skin="glass"] .moying-video-history-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 51, 68, 0.16), rgba(99, 102, 241, 0.14)) !important;
}

html[data-studio-skin="glass"] .moying-video-card-thumb:empty::after,
html[data-studio-skin="glass"] .moying-video-history-thumb:empty::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 2px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent rgba(244, 241, 234, 0.65);
}

html[data-studio-skin="glass"] .moying-video-card-prompt {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

html[data-studio-skin="glass"] .moying-video-card.is-open .moying-video-card-meta > div:last-child {
  flex-wrap: wrap;
}

html[data-studio-skin="glass"] .moying-video-card.is-open .moying-video-card-prompt {
  white-space: normal;
}

html[data-studio-skin="glass"] .moying-video-card-sub {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  color: rgba(244, 241, 234, 0.72);
  font-size: 11px;
}

html[data-studio-skin="glass"] .moying-video-card-sub > span {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 241, 234, 0.8);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

html[data-studio-skin="glass"] .moying-video-card-detail,
html[data-studio-skin="glass"] .moying-video-card-edit {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid rgba(212, 180, 131, 0.26);
  background: rgba(212, 180, 131, 0.1);
  color: #e8cfa0;
  font-size: 11px;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

html[data-studio-skin="glass"] .moying-video-card-detail:hover,
html[data-studio-skin="glass"] .moying-video-card-edit:hover {
  background: rgba(212, 180, 131, 0.18);
  border-color: rgba(212, 180, 131, 0.45);
  color: #fff3da;
}

@media (max-width: 720px) {
  html[data-studio-skin="glass"] .moying-video-card-meta > div:last-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  html[data-studio-skin="glass"] .moying-video-card-sub {
    flex-wrap: wrap;
  }
}

html[data-studio-skin="glass"] .moying-video-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 2px 0 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-studio-skin="glass"] .moying-video-card-actions:empty {
  display: none;
}

html[data-studio-skin="glass"] .moying-video-card-actions .moying-studio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 241, 234, 0.9);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

html[data-studio-skin="glass"] .moying-video-card-actions .moying-studio-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

html[data-studio-skin="glass"] .moying-video-card-actions a[data-video-download] {
  border-color: rgba(255, 51, 68, 0.36);
  background: rgba(255, 51, 68, 0.14);
  color: #ffd7dc;
}

html[data-studio-skin="glass"] .moying-video-card-actions a[data-video-download]:hover {
  border-color: rgba(255, 51, 68, 0.56);
  background: rgba(255, 51, 68, 0.24);
  color: #ffffff;
}

html[data-studio-skin="glass"] .moying-video-card-actions .moying-video-retain-warn {
  margin: 0 0 0 auto;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(212, 180, 131, 0.08);
  border: 1px solid rgba(212, 180, 131, 0.2);
  color: rgba(232, 207, 160, 0.85);
  font-size: 11px;
  line-height: 1.4;
}

.moying-video-duration-mismatch {
  display: none !important;
}

html[data-studio-skin="glass"] .moying-video-preview,
html[data-studio-skin="glass"] .moying-video-page .moying-video-preview {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(60% 70% at 50% 42%, rgba(255, 51, 68, 0.08), transparent 72%),
    radial-gradient(50% 60% at 24% 80%, rgba(99, 102, 241, 0.08), transparent 70%),
    rgba(9, 10, 16, 0.86) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-studio-skin="glass"] .moying-video-preview-badge {
  border: 1px solid rgba(255, 51, 68, 0.38);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(15, 16, 26, 0.82);
  color: #ffd7dc;
  backdrop-filter: blur(12px);
}

html[data-studio-skin="glass"] .moying-video-cancel {
  border-radius: 999px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #f4f1ea !important;
  transition: background 160ms ease, border-color 160ms ease;
}

html[data-studio-skin="glass"] .moying-video-cancel:hover {
  border-color: rgba(255, 51, 68, 0.48) !important;
  background: rgba(255, 51, 68, 0.18) !important;
}

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: settings at the top left, one standing toolbar row under the navigation
   (生图模型 / 画面 / 画风 / 生成模式 / 操作). Only applies once the shell has taken the header. */
.moying-workspace-topbar {
  position: fixed;
  inset: 0 0 auto;
  height: 57px;
  box-sizing: border-box;
  z-index: 44;
  pointer-events: none;
}
html[data-studio-skin="glass"] .moying-workspace-topbar {
  background: rgba(7, 7, 9, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body:has(> .moying-workspace-topbar) .moying-studio-workspace-chip .moying-studio-page-switch,
.moying-workspace-header-actions .moying-studio-page-switch {
  display: none !important;
}
body:not(.moying-workspace-header-ready):has(> .moying-workspace-topbar) > .moying-studio-workspace-chip {
  top: 12px !important;
  right: 92px !important;
}
.moying-workspace-topbar .moying-studio-brand-wrap {
  position: absolute;
  top: 28px;
  left: 24px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
}
.moying-workspace-topbar .moying-workspace-settings-button {
  position: absolute;
  top: 12px;
  right: 16px;
  left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  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;
}
html[data-studio-skin="glass"] .moying-workspace-topbar .moying-workspace-settings-button {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(244, 244, 246, 0.92);
}
.moying-workspace-header-actions > .moying-workspace-settings-button {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 9px !important;
  color: inherit !important;
  background: rgba(255, 255, 255, 0.06) !important;
  font: 600 12px/1 ui-sans-serif, system-ui, sans-serif !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
html[data-studio-skin="glass"] .moying-workspace-header-actions > .moying-workspace-settings-button {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(244, 244, 246, 0.92) !important;
  border-radius: 10px !important;
}
html[data-studio-skin="glass"] .moying-workspace-header-actions > .moying-workspace-settings-button:hover {
  background: rgba(255, 59, 78, 0.16) !important;
  border-color: rgba(255, 59, 78, 0.45) !important;
  color: #ffffff !important;
}
.moying-workspace-settings-button svg,
.moying-workspace-style-button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.moying-workspace-settings-button:hover { color: var(--studio-brand, #ef4444); border-color: var(--studio-brand, #ef4444); }
.moying-workspace-settings-button:focus-visible { outline: 2px solid var(--studio-brand, #ef4444); outline-offset: 3px; }
html .moying-workspace-topbar .moying-studio-header-nav {
  position: absolute !important;
  top: 28px !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: 24px !important; }

html body header.moying-workspace-toolbar {
  position: fixed !important;
  top: 56px !important;
  left: 16px !important;
  right: 16px !important;
  width: auto !important;
  height: auto !important;
  min-height: 40px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
  z-index: 46 !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:first-child { display: none !important; }
html body header.moying-workspace-toolbar > div > div:nth-child(2) > div.relative {
  order: 1;
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center !important;
  height: 34px !important;
  width: auto !important;
  min-width: 0 !important;
}
html body header.moying-workspace-toolbar .moying-toolbar-menu {
  display: inline-flex !important;
  align-items: center !important;
  height: 34px !important;
}
@media (min-width: 1024px) {
  html:not(.moying-text-video-mode) body.moying-workspace-header-ready header.moying-workspace-toolbar > div > div:nth-child(2) > div.relative {
    width: clamp(160px, 15vw, 300px) !important;
    margin-right: 4px !important;
  }
  html:not(.moying-text-video-mode) body.moying-workspace-header-ready header.moying-workspace-toolbar > div > div:nth-child(2) > div.relative > button {
    width: 100% !important;
    justify-content: space-between !important;
    gap: 4px !important;
    padding: 0 8px !important;
    font-size: 11.5px !important;
  }
}
html.moying-text-video-mode body header.moying-workspace-toolbar [data-testid="moying-generation-mode-menu"] > summary {
  color: #ff6b7a !important;
  border-color: rgba(255, 59, 78, 0.55) !important;
  background: rgba(255, 59, 78, 0.14) !important;
}
/* The legacy phone header moves 工具 forward and pushes it right (order 2 / margin-left auto): keep the row order. */
html body header.moying-workspace-toolbar [data-testid="moying-canvas-menu"] { order: 2 !important; }
html body header.moying-workspace-toolbar [data-testid="workspace-style-menu"] { order: 3 !important; }
html body header.moying-workspace-toolbar [data-testid="moying-generation-mode-menu"] { order: 4 !important; display: block !important; }
html body header.moying-workspace-toolbar [data-testid="moying-project-tools-menu"] { order: 5 !important; margin-left: 0 !important; }
html body header.moying-workspace-toolbar [data-testid="fourstage-toolbar-button"] {
  order: 6 !important;
  position: static !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
/* FourStage and the video mode stay in local state: they only show while on, so they can be turned off. */
html body header.moying-workspace-toolbar [data-testid="fourstage-toolbar-button"]:not(.bg-amber-50),
html body header.moying-workspace-toolbar .moying-mode-grid > button[title^="视频模式"]:not(.bg-purple-50),
html body header.moying-workspace-toolbar [data-workspace-toolbar-extra] > .moying-storyboard-handoff-action {
  display: none !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 [data-testid="workspace-style-button"],
html body header.moying-workspace-toolbar [data-testid="fourstage-toolbar-button"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 6px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 320px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 10px !important;
  box-sizing: border-box;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  cursor: pointer;
}
html body header.moying-workspace-toolbar .moying-toolbar-value {
  display: inline-block !important;
  max-width: 168px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
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 {
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  padding: 12px !important;
  border-radius: 12px !important;
  background: var(--studio-bg) !important;
  color: var(--studio-ink) !important;
  border-color: var(--studio-line) !important;
}

/* 画面: 常用 first (比例 · 分辨率 · 质量 · 项目画风), then 更多设置 folded (审核 · 背景 · 格式 · 光影). */
html body header.moying-workspace-toolbar .moying-toolbar-menu[open] > .moying-canvas-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: min(380px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - var(--moying-toolbar-bottom, 96px) - 24px) !important;
}
html body header.moying-workspace-toolbar .moying-canvas-panel > div:first-child,
html body header.moying-workspace-toolbar .moying-canvas-panel [data-testid="moying-gpt-image-sizes"],
html body header.moying-workspace-toolbar .moying-canvas-panel [data-testid="moying-gpt-image-params"],
html body header.moying-workspace-toolbar .moying-canvas-panel [data-testid="moying-canvas-lighting-row"] {
  display: contents !important;
}
html body header.moying-workspace-toolbar .moying-canvas-panel > div:first-child::before,
html body header.moying-workspace-toolbar .moying-canvas-panel > div:first-child::after {
  order: 10;
  display: block;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: #94a3b8;
}
html body header.moying-workspace-toolbar .moying-canvas-panel > div:first-child::before { content: "比例"; }
html body header.moying-workspace-toolbar .moying-canvas-panel > div:first-child::after { content: "分辨率"; order: 12; }
html body header.moying-workspace-toolbar .moying-canvas-panel > div:first-child:has(> div.overflow-hidden:empty)::after,
html body header.moying-workspace-toolbar .moying-canvas-panel > div:first-child > div.overflow-hidden:empty {
  display: none !important;
}
html body header.moying-workspace-toolbar .moying-canvas-panel > div:first-child > div:first-child {
  order: 11;
  margin-top: -6px;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
  justify-content: flex-start !important;
}
html body header.moying-workspace-toolbar .moying-canvas-panel > div:first-child > div.overflow-hidden { order: 13; margin-top: -6px; }
html body header.moying-workspace-toolbar .moying-canvas-panel [data-testid="moying-gpt-image-sizes"] > .moying-canvas-param { order: 13; }
html body header.moying-workspace-toolbar .moying-canvas-panel .moying-canvas-param:has([data-testid="moying-gpt-image-quality"]) { order: 14; }
html body header.moying-workspace-toolbar .moying-canvas-panel [data-testid="canvas-script-style"] { order: 15; }
html body header.moying-workspace-toolbar .moying-canvas-panel [data-testid="canvas-style-follow"] { order: 16; margin: -4px 0 0; font-size: 11px; color: var(--studio-muted, #64748b); }
html body header.moying-workspace-toolbar .moying-canvas-panel [data-canvas-more-toggle] { order: 30; }
html body header.moying-workspace-toolbar .moying-canvas-panel .moying-canvas-param:has([data-testid="moying-gpt-image-moderation"]) { order: 31; }
html body header.moying-workspace-toolbar .moying-canvas-panel [data-testid="moying-gpt-image-extras"] { order: 32; }
html body header.moying-workspace-toolbar .moying-canvas-panel .moying-lighting-cell { order: 33; }
html:not([data-moying-canvas-more="open"]) body header.moying-workspace-toolbar .moying-canvas-panel .moying-canvas-param:has([data-testid="moying-gpt-image-moderation"]),
html:not([data-moying-canvas-more="open"]) body header.moying-workspace-toolbar .moying-canvas-panel [data-testid="moying-gpt-image-extras"],
html:not([data-moying-canvas-more="open"]) body header.moying-workspace-toolbar .moying-canvas-panel .moying-lighting-cell {
  display: none !important;
}
html body header.moying-workspace-toolbar .moying-canvas-panel [data-canvas-more-toggle] {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  height: 32px !important;
  padding: 0 10px !important;
  border-width: 1px 0 0 !important;
  border-style: solid !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
.moying-canvas-more-toggle small { font-size: 10px; font-weight: 500; color: var(--studio-muted, #94a3b8); }
.moying-canvas-more-toggle i { margin-left: auto; font-style: normal; transition: transform .16s ease; }
html[data-moying-canvas-more="open"] .moying-canvas-more-toggle i { transform: rotate(180deg); }

/* 画风: the image style presets (one setting with the pipeline's global style), the cards 自由生图 uses. */
html body header.moying-workspace-toolbar .moying-workspace-style-menu[open] > .moying-workspace-style-panel {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: min(460px, calc(100vw - 32px)) !important;
  max-height: calc(100dvh - var(--moying-toolbar-bottom, 96px) - 24px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
/* The legacy `header button` / `header span` rules (index.html) make every header button a 30px single line;
   the cards sit inside the toolbar header, so give them their own box back. */
html body header.moying-workspace-toolbar .moying-workspace-style-panel .moying-free-image-style-card {
  display: grid !important;
  align-items: normal !important;
  justify-content: normal !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 4px 4px 5px !important;
  white-space: normal !important;
  line-height: 1.25 !important;
}
html body header.moying-workspace-toolbar .moying-workspace-style-panel .moying-free-image-style-card span {
  white-space: normal !important;
  line-height: 1.25 !important;
}
html body header.moying-workspace-toolbar .moying-workspace-style-panel :is(.moying-free-image-style-card, .moying-free-image-style-none) {
  color: var(--studio-ink) !important;
  border: 1px solid var(--studio-line) !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body header.moying-workspace-toolbar .moying-workspace-style-panel :is(.moying-free-image-style-card, .moying-free-image-style-none):hover {
  border-color: color-mix(in srgb, var(--studio-brand) 50%, var(--studio-line)) !important;
}
html body header.moying-workspace-toolbar .moying-workspace-style-panel :is(.moying-free-image-style-card, .moying-free-image-style-none).is-active {
  color: var(--studio-brand) !important;
  border-color: var(--studio-brand) !important;
  background: color-mix(in srgb, var(--studio-brand) 14%, transparent) !important;
  box-shadow: inset 0 0 0 1px var(--studio-brand) !important;
  font-weight: 650;
}
.moying-workspace-style-warn {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  font-size: 11px;
  line-height: 1.5;
}
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) .moying-workspace-style-warn { color: #fcd34d; }
html body header.moying-workspace-toolbar .moying-toolbar-value.is-overridden { text-decoration: line-through; opacity: 0.7; }

/* 生成模式: 批量 / 连贯 / 并发 / 文生. */
html body header.moying-workspace-toolbar .moying-mode-panel { width: 286px !important; }
html body header.moying-workspace-toolbar .moying-mode-grid > button span.hidden { display: inline !important; }
html body header.moying-workspace-toolbar [data-workspace-mode-extra] { display: contents !important; }
html body header.moying-workspace-toolbar [data-workspace-mode-extra] > button,
html body header.moying-workspace-toolbar .moying-mode-grid > button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
/* One look for the legacy mode buttons and 文生模式 (the glass skin tints the legacy ones by their gray classes). */
html body header.moying-workspace-toolbar .moying-toolbar-panel.moying-mode-panel button {
  color: var(--studio-muted) !important;
  border-color: var(--studio-line) !important;
  background: var(--studio-paper) !important;
}
html body header.moying-workspace-toolbar .moying-toolbar-panel.moying-mode-panel button:hover,
html body header.moying-workspace-toolbar .moying-toolbar-panel.moying-mode-panel .moying-mode-grid > button:not(.bg-white),
html body header.moying-workspace-toolbar .moying-toolbar-panel.moying-mode-panel [data-workspace-mode-extra] > button[aria-pressed="true"] {
  color: var(--studio-brand) !important;
  border-color: var(--studio-brand) !important;
}
html body header.moying-workspace-toolbar [data-workspace-mode-extra] > button::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 6h14M12 6v13M8.5 19h7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5 6h14M12 6v13M8.5 19h7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 操作: 导入 · 保存 · 导出剪映工程 · 送到视频页 / 画布 · 一键生成视频提示词 · 生成历史. */
html body header.moying-workspace-toolbar .moying-project-tools-panel { width: 228px !important; }
html body header.moying-workspace-toolbar .moying-project-tools-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}
html body header.moying-workspace-toolbar .moying-project-tools-grid > div,
html body header.moying-workspace-toolbar [data-workspace-actions-extra] {
  display: contents !important;
}
html body header.moying-workspace-toolbar .moying-project-tools-grid > div:first-child > :not([title="历史记录"]),
html body header.moying-workspace-toolbar [data-testid="moying-tools-download-images"],
html body header.moying-workspace-toolbar [data-workspace-actions-extra] > [data-testid="text-video-mode"] {
  display: none !important;
}
html body header.moying-workspace-toolbar .moying-project-tools-grid > div:nth-child(2) > button:first-of-type { order: 1; }
html body header.moying-workspace-toolbar .moying-project-tools-grid > div:nth-child(2) > button:last-of-type { order: 2; }
html body header.moying-workspace-toolbar [data-testid="moying-tools-export-jianying"] { order: 3; }
html body header.moying-workspace-toolbar [data-testid="import-all-to-video"] { order: 4; }
html body header.moying-workspace-toolbar [data-testid="import-all-to-canvas"] { order: 5; }
html body header.moying-workspace-toolbar [data-testid="generate-all-video-prompts"] { order: 6; }
html body header.moying-workspace-toolbar .moying-project-tools-grid button[title="历史记录"] {
  order: 7;
  margin-top: 4px !important;
}
html body header.moying-workspace-toolbar .moying-project-tools-grid button[title="历史记录"]::after { content: "生成历史"; }
html body header.moying-workspace-toolbar .moying-project-tools-grid > div:nth-child(2) > button,
html body header.moying-workspace-toolbar .moying-project-tools-grid button[title="历史记录"],
html body header.moying-workspace-toolbar [data-testid="moying-tools-export-jianying"],
html body header.moying-workspace-toolbar [data-workspace-actions-extra] > button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: none !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-width: 1px !important;
  border-style: solid !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}
html body header.moying-workspace-toolbar .moying-project-tools-grid button svg { width: 15px !important; height: 15px !important; flex: 0 0 15px; }
/* Same ink for 导入/保存 (gray in the legacy markup) and the shell's actions; text lines up past the icons. */
html body header.moying-workspace-toolbar .moying-toolbar-panel.moying-project-tools-panel button {
  color: var(--studio-ink) !important;
  border-color: var(--studio-line) !important;
  background: var(--studio-paper) !important;
}
html body header.moying-workspace-toolbar .moying-toolbar-panel.moying-project-tools-panel button:hover {
  color: var(--studio-brand) !important;
  border-color: var(--studio-brand) !important;
}
html body header.moying-workspace-toolbar .moying-toolbar-panel.moying-project-tools-panel button:not(:has(svg)) { padding-left: 33px !important; }

/* The workspace starts under the toolbar (its height is measured: it can wrap on narrow screens). */
html body.moying-workspace-header-ready main {
  padding-top: calc(var(--moying-toolbar-bottom, 96px) + 8px) !important;
}
/* The page caps the workspace at 1440px and centres it; under the full-width toolbar it fills the width. */
html body.moying-workspace-header-ready main.moying-workspace {
  height: 100dvh !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  grid-template-columns: 220px minmax(0, 1fr) !important;
}
/* Layout A (11-19): on a wide window the frame list grows with it (about 15%, 160–300px), so the left
   column is filled while the shot stays centred on the window. */
@media (min-width: 1024px) {
  html body.moying-workspace-header-ready main.moying-workspace {
    grid-template-columns: clamp(160px, 15vw, 300px) minmax(0, 1fr) !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;
  }
  /* The page scrolls here: the toolbar row carries its own background under the navigation band. */
  html body header.moying-workspace-toolbar {
    top: 96px !important;
    left: 0 !important;
    right: 0 !important;
    padding: 4px 16px 8px !important;
    background: var(--studio-bg, #fff) !important;
  }
  body.moying-workspace-header-ready::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 96px;
    z-index: 41;
    background: var(--studio-bg, #fff);
  }
}
@media (max-width: 1023px) {
  html body.moying-workspace-header-ready main.moying-workspace { height: auto !important; }
}
@media (max-width: 640px) {
  html body header.moying-workspace-toolbar .moying-toolbar-value { display: none !important; }
  /* The legacy phone header keeps only the model button; this layout shows the whole row. */
  html body header.moying-workspace-toolbar details.moying-toolbar-menu[data-testid="moying-canvas-menu"] { display: block !important; }
  html body header.moying-workspace-toolbar .moying-toolbar-panel {
    position: fixed !important;
    left: 16px !important;
    right: 16px !important;
    top: calc(var(--moying-toolbar-bottom, 140px) + 8px) !important;
    width: auto !important;
    max-height: calc(100dvh - var(--moying-toolbar-bottom, 140px) - 24px) !important;
    overflow: auto !important;
  }
  html body header.moying-workspace-toolbar [data-testid="moying-generation-mode-menu"],
  html body header.moying-workspace-toolbar [data-testid="moying-project-tools-menu"],
  html body header.moying-workspace-toolbar [data-testid="workspace-style-menu"],
  html body header.moying-workspace-toolbar [data-testid="moying-canvas-menu"] {
    position: static !important;
  }
}

/* Settings dialog: 出图 / 提示词 / 高级 (folded). Items are tagged by the shell. */
[data-moying-settings-body] {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}
[data-moying-settings-body] [data-moying-set-flat] { display: contents !important; }
[data-moying-settings-body] [data-moying-set-item] { order: 26; margin: 0 !important; }
[data-moying-settings-dialog] [data-moying-set-item="hidden"],
[data-moying-settings-dialog]:not([data-moying-advanced-open]) [data-moying-set-group="adv"] {
  display: none !important;
}
[data-moying-settings-body] [data-moying-set-item="head-image"] { order: 10; }
[data-moying-settings-body] [data-moying-set-item="upscale-model"] { order: 11; }
[data-moying-settings-body] [data-moying-set-item="upscale-ref"] { order: 12; }
[data-moying-settings-body] [data-moying-set-item="head-prompt"] { order: 20; }
[data-moying-settings-body] [data-moying-set-item="custom-prompt"] { order: 21; }
[data-moying-settings-body] [data-moying-set-item="video-style"] { order: 22; }
.moying-settings-target-model {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.moying-settings-target-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--studio-ink, #1c1730);
}
.moying-settings-target-model select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--studio-line, rgba(88, 72, 140, 0.22));
  background: var(--studio-paper, #ffffff);
  color: var(--studio-ink, #1c1730);
  font-size: 13px;
}
html[data-studio-theme="dark"] .moying-settings-target-model select option,
html[data-studio-skin="glass"] .moying-settings-target-model select option {
  background: #14161f;
  color: #f4f4f6;
}
.moying-settings-target-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--studio-muted, #6d6780);
}
.moying-video-prompt-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Inline storyboard video shot-segment rows ([x-y秒] capsule + editable shot body) */
[data-testid="moying-resident-prompt"].moying-has-shot-segments > [data-testid="frame-prompt-editor"],
html body .moying-workspace-selected-card [data-testid="moying-resident-prompt"].moying-has-shot-segments > [data-testid="frame-prompt-editor"],
html body.moying-workspace-header-ready .moying-workspace-selected-card.moying-shot-split [data-testid="moying-resident-prompt"].moying-has-shot-segments > [data-testid="frame-prompt-editor"] {
  display: none !important;
}

.moying-shot-segments-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  order: 2;
  flex: 1 1 0%;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.moying-shot-segments-editor[hidden] {
  display: none !important;
}

.moying-workspace-selected-card:not(.moying-shot-split) .moying-shot-segments-editor {
  border-radius: 8px;
  padding: 8px;
  gap: 6px;
}

html[data-studio-theme="dark"] .moying-shot-segments-editor,
html[data-studio-skin="glass"] .moying-shot-segments-editor,
html.dark .moying-shot-segments-editor {
  background: #0b0d14;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.moying-shot-segment-row {
  position: relative;
  display: block;
  flex: 0 0 auto;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.moying-shot-segment-row:focus-within {
  border-color: rgba(220, 38, 38, 0.48);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

html[data-studio-theme="dark"] .moying-shot-segment-row,
html[data-studio-skin="glass"] .moying-shot-segment-row,
html.dark .moying-shot-segment-row {
  background: rgba(255, 255, 255, 0.032);
  border-color: rgba(255, 255, 255, 0.085);
}

html[data-studio-theme="dark"] .moying-shot-segment-row:focus-within,
html[data-studio-skin="glass"] .moying-shot-segment-row:focus-within,
html.dark .moying-shot-segment-row:focus-within {
  background: rgba(255, 255, 255, 0.048);
  border-color: rgba(255, 71, 87, 0.52);
  box-shadow: 0 0 0 2px rgba(255, 59, 78, 0.14);
}

.moying-shot-segment-row > .moying-studio-select.is-shot-range {
  position: absolute;
  top: 9px;
  left: 10px;
  z-index: 3;
  display: inline-block;
  width: auto;
}

.moying-video-shot-head .moying-studio-select.is-shot-range {
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
}

.moying-shot-range-select {
  position: absolute;
  top: 9px;
  left: 10px;
  z-index: 2;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  appearance: auto;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.moying-studio-select-button.moying-shot-range-pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0 22px 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(220, 38, 38, 0.34);
  background:
    linear-gradient(180deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05))
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23b91c1c' d='M1.2 1.1 5 4.9 8.8 1.1'/></svg>")
    no-repeat right 8px center;
  background-color: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 120ms ease;
}

.moying-studio-select-button.moying-shot-range-pill-btn:hover,
.moying-studio-select.is-open > .moying-studio-select-button.moying-shot-range-pill-btn {
  border-color: rgba(220, 38, 38, 0.62);
  background-color: rgba(254, 226, 226, 0.95);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

html[data-studio-theme="dark"] .moying-studio-select-button.moying-shot-range-pill-btn,
html[data-studio-skin="glass"] .moying-studio-select-button.moying-shot-range-pill-btn,
html.dark .moying-studio-select-button.moying-shot-range-pill-btn {
  border-color: rgba(255, 92, 108, 0.42);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23ff9aa4' d='M1.2 1.1 5 4.9 8.8 1.1'/></svg>"),
    linear-gradient(180deg, rgba(255, 59, 78, 0.2), rgba(255, 59, 78, 0.1));
  background-position: right 8px center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: 9px 6px, 100% 100%;
  background-color: rgba(34, 15, 22, 0.88);
  color: #ffd5da;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.24);
}

html[data-studio-theme="dark"] .moying-studio-select-button.moying-shot-range-pill-btn:hover,
html[data-studio-skin="glass"] .moying-studio-select-button.moying-shot-range-pill-btn:hover,
html.dark .moying-studio-select-button.moying-shot-range-pill-btn:hover,
html[data-studio-theme="dark"] .moying-studio-select.is-open > .moying-studio-select-button.moying-shot-range-pill-btn,
html[data-studio-skin="glass"] .moying-studio-select.is-open > .moying-studio-select-button.moying-shot-range-pill-btn,
html.dark .moying-studio-select.is-open > .moying-studio-select-button.moying-shot-range-pill-btn {
  border-color: rgba(255, 107, 122, 0.78);
  background-color: rgba(58, 19, 30, 0.94);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 59, 78, 0.18), 0 4px 12px rgba(255, 59, 78, 0.2);
}

.moying-studio-select-menu.is-shot-range-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: max-content;
  min-width: 102px;
  max-height: none;
  overflow: hidden;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px) saturate(145%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-studio-theme="dark"] .moying-studio-select-menu.is-shot-range-menu,
html[data-studio-skin="glass"] .moying-studio-select-menu.is-shot-range-menu,
html.dark .moying-studio-select-menu.is-shot-range-menu {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(15, 17, 26, 0.95);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.moying-shot-range-grid {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 3px;
  max-height: var(--shot-range-grid-max, 172px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  scroll-behavior: auto;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.moying-shot-range-grid.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.moying-shot-range-grid::-webkit-scrollbar {
  width: 4px;
}

.moying-shot-range-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
}

.moying-studio-select-menu.is-shot-range-menu .moying-studio-select-option {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 100%;
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.025);
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.moying-studio-select-menu.is-shot-range-menu .moying-studio-select-option:hover {
  border-color: rgba(220, 38, 38, 0.36);
  background: rgba(220, 38, 38, 0.08);
  color: #b91c1c;
}

.moying-studio-select-menu.is-shot-range-menu .moying-studio-select-option.is-on {
  border-color: rgba(220, 38, 38, 0.65);
  background: rgba(220, 38, 38, 0.14);
  color: #b91c1c;
  font-weight: 700;
}

html[data-studio-theme="dark"] .moying-studio-select-menu.is-shot-range-menu .moying-studio-select-option,
html[data-studio-skin="glass"] .moying-studio-select-menu.is-shot-range-menu .moying-studio-select-option,
html.dark .moying-studio-select-menu.is-shot-range-menu .moying-studio-select-option {
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(244, 244, 246, 0.84);
}

html[data-studio-theme="dark"] .moying-studio-select-menu.is-shot-range-menu .moying-studio-select-option:hover,
html[data-studio-skin="glass"] .moying-studio-select-menu.is-shot-range-menu .moying-studio-select-option:hover,
html.dark .moying-studio-select-menu.is-shot-range-menu .moying-studio-select-option:hover {
  border-color: rgba(255, 92, 108, 0.48);
  background: rgba(255, 59, 78, 0.16);
  color: #ffffff;
}

html[data-studio-theme="dark"] .moying-studio-select-menu.is-shot-range-menu .moying-studio-select-option.is-on,
html[data-studio-skin="glass"] .moying-studio-select-menu.is-shot-range-menu .moying-studio-select-option.is-on,
html.dark .moying-studio-select-menu.is-shot-range-menu .moying-studio-select-option.is-on {
  border-color: rgba(255, 107, 122, 0.84);
  background: linear-gradient(135deg, rgba(255, 59, 78, 0.34), rgba(220, 38, 38, 0.24));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 59, 78, 0.26);
}

.moying-studio-select-menu.is-shot-range-menu.is-ic-theme .moying-studio-select-option:hover {
  border-color: rgba(192, 132, 252, 0.56);
  background: rgba(168, 85, 247, 0.18);
  color: #ffffff;
}

.moying-studio-select-menu.is-shot-range-menu.is-ic-theme .moying-studio-select-option.is-on {
  border-color: rgba(216, 180, 254, 0.86);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.36), rgba(126, 34, 206, 0.26));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.28);
}

.moying-shot-range-select:hover,
.moying-shot-range-select:focus {
  border-color: rgba(220, 38, 38, 0.55);
  background: rgba(220, 38, 38, 0.14);
}

.moying-shot-range-select option {
  background: #ffffff;
  color: #1e293b;
}

html[data-studio-theme="dark"] .moying-shot-range-select,
html[data-studio-skin="glass"] .moying-shot-range-select,
html.dark .moying-shot-range-select {
  border-color: rgba(255, 59, 78, 0.36);
  background: rgba(255, 59, 78, 0.13);
  color: #ff8e99;
}

html[data-studio-theme="dark"] .moying-shot-range-select:hover,
html[data-studio-theme="dark"] .moying-shot-range-select:focus,
html[data-studio-skin="glass"] .moying-shot-range-select:hover,
html[data-studio-skin="glass"] .moying-shot-range-select:focus,
html.dark .moying-shot-range-select:hover,
html.dark .moying-shot-range-select:focus {
  border-color: rgba(255, 59, 78, 0.62);
  background: rgba(255, 59, 78, 0.22);
  color: #ffb4bc;
}

html[data-studio-theme="dark"] .moying-shot-range-select option,
html[data-studio-skin="glass"] .moying-shot-range-select option,
html.dark .moying-shot-range-select option {
  background: #14161f;
  color: #f4f4f6;
}

html body [data-testid="storyboard-shot-segments"] .moying-shot-body-input,
.moying-workspace-selected-card [data-testid="moying-resident-prompt"] [data-testid="storyboard-shot-segments"] .moying-shot-body-input {
  display: block !important;
  flex: none !important;
  min-width: 0 !important;
  width: 100% !important;
  height: auto;
  min-height: 48px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 13px !important;
  line-height: 24px !important;
  text-indent: var(--shot-pill-indent, 84px) !important;
  resize: none !important;
  overflow-y: hidden !important;
  box-sizing: border-box !important;
}

html:not(.dark):not([data-studio-theme="dark"]):not([data-studio-skin="glass"]) body [data-testid="storyboard-shot-segments"] .moying-shot-body-input,
html:not(.dark):not([data-studio-theme="dark"]):not([data-studio-skin="glass"]) .moying-workspace-selected-card [data-testid="moying-resident-prompt"] [data-testid="storyboard-shot-segments"] .moying-shot-body-input {
  color: #1e293b !important;
  -webkit-text-fill-color: #1e293b !important;
}

html body [data-testid="storyboard-shot-segments"] .moying-shot-body-input:focus,
html.dark main [data-testid="storyboard-shot-segments"] .moying-shot-body-input:focus,
html[data-studio-skin="glass"] body.moying-studio-body [data-testid="storyboard-shot-segments"] .moying-shot-body-input:focus,
.moying-workspace-selected-card [data-testid="moying-resident-prompt"] [data-testid="storyboard-shot-segments"] .moying-shot-body-input:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark) body [data-testid="storyboard-shot-segments"] .moying-shot-body-input,
html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark) body.moying-studio-body [data-testid="storyboard-shot-segments"] .moying-shot-body-input,
html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark) body .moying-workspace-selected-card [data-testid="moying-resident-prompt"] [data-testid="storyboard-shot-segments"] .moying-shot-body-input,
html[data-studio-skin="glass"] body.moying-studio-body .moying-workspace-selected-card [data-testid="moying-resident-prompt"] [data-testid="storyboard-shot-segments"] .moying-shot-body-input {
  color: #f4f4f6 !important;
  -webkit-text-fill-color: #f4f4f6 !important;
  caret-color: #ff6b7a !important;
}

html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark) body [data-testid="storyboard-shot-segments"] .moying-shot-body-input::placeholder,
html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark) body.moying-studio-body [data-testid="storyboard-shot-segments"] .moying-shot-body-input::placeholder,
html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark) body .moying-workspace-selected-card [data-testid="moying-resident-prompt"] [data-testid="storyboard-shot-segments"] .moying-shot-body-input::placeholder {
  color: rgba(244, 244, 246, 0.4) !important;
  -webkit-text-fill-color: rgba(244, 244, 246, 0.4) !important;
}

html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark).moying-text-video-mode [data-testid="storyboard-card-grid"] [data-testid="moying-resident-prompt"] [data-testid="storyboard-shot-segments"] .moying-shot-body-input,
html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark).moying-text-video-mode body [data-testid="storyboard-card-grid"] [data-testid="moying-resident-prompt"] [data-testid="storyboard-shot-segments"] .moying-shot-body-input,
html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark).moying-text-video-mode body.moying-studio-body .moying-workspace-selected-card [data-testid="moying-resident-prompt"] [data-testid="storyboard-shot-segments"] .moying-shot-body-input {
  color: #f4f4f6 !important;
  -webkit-text-fill-color: #f4f4f6 !important;
  caret-color: #ff6b7a !important;
  line-height: 24px !important;
  text-indent: var(--shot-pill-indent, 84px) !important;
}

html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark).moying-text-video-mode [data-testid="storyboard-card-grid"] [data-testid="moying-resident-prompt"] [data-testid="storyboard-shot-segments"] .moying-shot-body-input::placeholder,
html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark).moying-text-video-mode body [data-testid="storyboard-card-grid"] [data-testid="moying-resident-prompt"] [data-testid="storyboard-shot-segments"] .moying-shot-body-input::placeholder,
html:is([data-studio-theme="dark"], [data-studio-skin="glass"], .dark).moying-text-video-mode body.moying-studio-body .moying-workspace-selected-card [data-testid="moying-resident-prompt"] [data-testid="storyboard-shot-segments"] .moying-shot-body-input::placeholder {
  color: rgba(244, 244, 246, 0.4) !important;
  -webkit-text-fill-color: rgba(244, 244, 246, 0.4) !important;
}
[data-moying-settings-body] [data-moying-set-item="head-adv"] { order: 30; }
[data-moying-settings-body] [data-moying-set-item="console"] { order: 31; }
[data-moying-settings-body] [data-moying-set-item="timeout"] { order: 32; }
[data-moying-settings-body] [data-moying-set-item="text-stream"] { order: 33; }
[data-moying-settings-body] [data-moying-set-item="polish-model"] { order: 34; }
[data-moying-settings-body] [data-moying-set-item="adv-clear"] { order: 39; }
.moying-settings-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--studio-ink, #374151);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}
[data-moying-set-item="head-image"].moying-settings-group { padding-top: 0; border-top: 0; }
.moying-settings-group::before {
  content: "";
  flex: 0 0 4px;
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: var(--studio-brand, #ff3b4e);
}
/* Only 保存并关闭 is left in the footer once 清除本机数据 moves into 高级. */
[data-moying-settings-dialog] > div:last-child { justify-content: flex-end !important; }
.moying-settings-group.is-toggle { width: 100%; cursor: pointer; }
.moying-settings-group.is-toggle small {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  color: var(--studio-muted, #9ca3af);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.moying-settings-group.is-toggle i { font-style: normal; transition: transform .16s ease; }
[data-moying-advanced-open] .moying-settings-group.is-toggle i { transform: rotate(180deg); }
.moying-settings-clear button {
  padding: 8px 16px;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.moying-settings-clear button:hover { background: #fee2e2; }
.moying-settings-clear p { margin: 6px 0 0; font-size: 11px; color: var(--studio-muted, #9ca3af); }
html.dark .moying-settings-clear button { border-color: rgba(239, 68, 68, 0.3); color: #fca5a5; background: rgba(239, 68, 68, 0.1); }
/* The dark studio skins run without Tailwind's dark class: give the title and the two tinted notes their dark look. */
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) [data-moying-settings-dialog] h3 {
  background-image: linear-gradient(to right, #f3f4f6, #9ca3af) !important;
}
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) .moying-settings-clear button { border-color: rgba(239, 68, 68, 0.3); color: #fca5a5; background: rgba(239, 68, 68, 0.1); }
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) .moying-settings-clear button:hover { background: rgba(239, 68, 68, 0.18); }
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) [data-moying-settings-dialog] [data-moying-set-item="console"] section.bg-blue-50 {
  border-color: rgba(255, 59, 78, 0.28) !important;
  background: rgba(255, 59, 78, 0.09) !important;
}
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) [data-moying-settings-dialog] [data-moying-set-item="console"] section.bg-blue-50 p { color: rgba(244, 244, 246, 0.78) !important; }
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) [data-moying-settings-dialog] [data-moying-set-item="console"] section.bg-blue-50 p:first-child { color: #ff8a95 !important; }
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) [data-moying-settings-dialog] [data-moying-set-item="console"] section.bg-blue-50 button,
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) [data-moying-settings-dialog] [data-moying-set-item="timeout"] button {
  border-color: currentColor !important;
  background: transparent !important;
}
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) [data-moying-settings-dialog] [data-moying-set-item="console"] section.bg-blue-50 button { color: #ff8a95 !important; }
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) [data-moying-settings-dialog] [data-moying-set-item="timeout"] {
  border-color: rgba(16, 185, 129, 0.25) !important;
  background: rgba(16, 185, 129, 0.1) !important;
}
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) [data-moying-settings-dialog] [data-moying-set-item="timeout"] :is(span, p) { color: rgba(110, 231, 183, 0.75) !important; }
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) [data-moying-settings-dialog] [data-moying-set-item="timeout"] :is(span.font-bold, button) { color: #6ee7b7 !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;
}

/* ==========================================================================
   Obsidian Crimson Studio Polish (2026-11-22)
   Scoped to glass / dark studio skins; classic skin stays untouched.
   ========================================================================== */

html[data-studio-skin="glass"] body.moying-studio-body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* --- 1. Home & Login Popover --- */
html[data-studio-skin="glass"] .moying-studio-login-pop .moying-studio-avatar,
html[data-studio-skin="glass"] .moying-studio-user-pop .moying-studio-avatar {
  background: linear-gradient(135deg, rgba(255, 59, 78, 0.24), rgba(225, 29, 52, 0.14)) !important;
  border: 1px solid rgba(255, 59, 78, 0.38) !important;
  color: #ffffff !important;
}

/* --- 2. Profile & Recharge: clean Obsidian Hero + flush-left breadcrumb --- */
html[data-studio-skin="glass"] body.moying-studio-body:not(.moying-home-page):not(.moying-video-page):not(.moying-free-image-page) {
  background-color: #090a0f;
  background-image:
    radial-gradient(ellipse 68% 42% at 50% -6%, rgba(255, 59, 78, 0.06) 0%, rgba(148, 163, 184, 0.025) 45%, transparent 74%),
    radial-gradient(ellipse 96% 88% at 50% 42%, transparent 52%, rgba(3, 4, 7, 0.56) 100%);
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, 100% 100%;
  background-position: center top, center;
  background-attachment: fixed, fixed;
}

html[data-studio-skin="glass"] .moying-studio-pagehead,
html[data-studio-skin="glass"] .moying-studio-paybar,
html[data-studio-skin="glass"] .moying-studio-card,
html[data-studio-skin="glass"] .moying-studio-pack,
html[data-studio-skin="glass"] .moying-studio-auth {
  background: rgba(16, 18, 26, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-pagehead,
html[data-studio-skin="glass"] [data-studio-page="recharge"] .moying-studio-pagehead {
  grid-template-columns: minmax(0, 1fr) auto !important;
  row-gap: 10px !important;
  column-gap: 16px !important;
  padding: 18px 24px 20px !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-pagehead > a:first-child,
html[data-studio-skin="glass"] [data-studio-page="recharge"] .moying-studio-pagehead > a:first-child {
  grid-column: 1 / -1;
  justify-self: start;
  height: 24px;
  padding: 0 8px 0 0;
  color: rgba(244, 244, 246, 0.56);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-pagehead > a:first-child:hover,
html[data-studio-skin="glass"] [data-studio-page="recharge"] .moying-studio-pagehead > a:first-child:hover {
  color: #ffffff;
}

/* --- 3. Video Studio: hide empty ghost preview, fix 390px overflow, polish batch & popovers --- */
.moying-video-feed-empty .moying-video-preview {
  display: none !important;
}

.moying-video-pop-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--studio-muted, rgba(244, 244, 246, 0.56));
  margin: 2px 2px 6px;
}

.moying-video-pop-label:not(:first-child) {
  margin-top: 12px;
}

.moying-video-empty-actions {
  justify-content: center;
}

html[data-studio-skin="glass"] .moying-video-toolbar,
html[data-studio-skin="glass"] .moying-video-job,
html[data-studio-skin="glass"] .moying-video-empty {
  background: rgba(16, 18, 26, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
}

html[data-studio-skin="glass"] #video-batch-panel .moying-video-empty {
  padding: 36px 24px !important;
  text-align: center;
}

html[data-studio-skin="glass"] #video-batch-panel .moying-video-toolbar button:disabled,
html[data-studio-skin="glass"] #video-batch-panel [data-video-batch-start]:disabled,
html[data-studio-skin="glass"] #video-batch-panel:has(.moying-video-empty) #video-start-batch {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(244, 244, 246, 0.48) !important;
  -webkit-text-fill-color: rgba(244, 244, 246, 0.48) !important;
  box-shadow: none !important;
  opacity: 0.78 !important;
}

html[data-studio-skin="glass"] .moying-video-prompt-expand,
html[data-studio-skin="glass"] .moying-video-dock.is-prompt-expanded .moying-video-prompt-expand {
  position: static !important;
  top: auto !important;
  right: auto !important;
  min-width: 48px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  background: rgba(20, 22, 32, 0.9) !important;
  color: rgba(244, 244, 246, 0.86) !important;
  -webkit-text-fill-color: rgba(244, 244, 246, 0.86) !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html[data-studio-skin="glass"] .moying-video-composer > .moying-video-prompt-expand,
html[data-studio-skin="glass"] .moying-video-dock.is-prompt-expanded .moying-video-composer > .moying-video-prompt-expand {
  position: absolute !important;
  top: 6px !important;
  right: 20px !important;
}

html[data-studio-skin="glass"] .moying-video-prompt-expand:hover,
html[data-studio-skin="glass"] .moying-video-dock.is-prompt-expanded .moying-video-prompt-expand:hover {
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(34, 38, 52, 0.96) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Mobile 390px video overflow prevention */
body.moying-video-page,
body.moying-video-page .moying-studio-main,
body.moying-video-page .moying-video-shell,
body.moying-video-page .moying-video-workspace {
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 720px) {
  body.moying-video-page .moying-video-shell,
  body.moying-video-page .moying-video-workspace,
  body.moying-video-page .moying-video-panel,
  body.moying-video-page .moying-video-create,
  body.moying-video-page .moying-video-dock {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.moying-video-page .moying-video-dock {
    padding: 12px !important;
    margin-inline: 0 !important;
  }

  body.moying-video-page .moying-video-dock-bar {
    gap: 6px !important;
    max-width: 100% !important;
  }

  body.moying-video-page .moying-video-dock-bar details {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.moying-video-page .moying-video-dock-bar details summary {
    max-width: 100% !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
  }
}

/* --- 4. Free Image Studio: clean matte rail, airy feed head, 10px dock controls & popovers --- */
html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-composer,
html[data-studio-skin="glass"].dark body.moying-free-image-page .moying-free-image-composer {
  background: #0d0f15 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-studio-main,
html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-shell,
html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-stage {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html[data-studio-skin="glass"] .moying-free-image-feed-head {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 0 !important;
  padding: 6px 2px 12px !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar {
  --studio-dock-control-size: 36px;
  --studio-dock-control-padding: 0 13px;
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  gap: 8px !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar details summary,
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar .moying-credit-estimate,
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar > button:not(#free-image-generate) {
  border-radius: 10px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 13px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  color: rgba(244, 244, 246, 0.88) !important;
  font-size: 12px !important;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar details summary:hover,
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar details[open] summary {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(255, 59, 78, 0.48) !important;
  color: #ffffff !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock #free-image-generate {
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #ff3b4e, #dc2626) !important;
  box-shadow: 0 6px 18px rgba(230, 46, 67, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock-params .moying-free-image-dock-pop,
html[data-studio-skin="glass"] [data-testid="free-image-params"] .moying-free-image-dock-pop,
html[data-studio-skin="glass"] .moying-free-image-dock-pop[aria-label="高级参数"] {
  width: min(360px, calc(100vw - 32px)) !important;
  min-width: 330px !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock-params input::placeholder,
html[data-studio-skin="glass"] [data-testid="free-image-params"] input::placeholder,
html[data-studio-skin="glass"] .moying-free-image-dock-pop[aria-label="高级参数"] input::placeholder {
  font-size: 12px !important;
  color: rgba(244, 244, 246, 0.44) !important;
}

html[data-studio-skin="glass"] .moying-asset-picker-dialog button:disabled,
html[data-studio-skin="glass"] [data-testid*="asset-picker"] button:disabled {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(244, 244, 246, 0.4) !important;
  -webkit-text-fill-color: rgba(244, 244, 246, 0.4) !important;
  box-shadow: none !important;
}

/* --- 5. Storyboard Workbench: opaque dropdown, dark toast, crimson modals & aligned icons --- */

/* 5a. 100% Opaque Obsidian Model Selector Dropdown */
html[data-studio-skin="glass"] header.moying-workspace-toolbar > div > div:nth-child(2) > div.relative > div {
  background: #0e1018 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.84), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  z-index: 120 !important;
}

html[data-studio-skin="glass"] header.moying-workspace-toolbar > div > div:nth-child(2) > div.relative > div > div {
  background: #0e1018 !important;
}

html[data-studio-skin="glass"] header.moying-workspace-toolbar > div > div:nth-child(2) > div.relative > div button {
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 8px !important;
}

html[data-studio-skin="glass"] header.moying-workspace-toolbar > div > div:nth-child(2) > div.relative > div button:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* 5b. Style Panel bounded height + sleek thin scrollbar */
html body header.moying-workspace-toolbar .moying-workspace-style-menu[open] > .moying-workspace-style-panel {
  max-height: min(560px, calc(100dvh - var(--moying-toolbar-bottom, 96px) - 28px)) !important;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

html[data-studio-skin="glass"] header.moying-workspace-toolbar .moying-toolbar-panel {
  background: rgba(14, 16, 24, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.76), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(28px) !important;
}

/* 5c. 操作 Menu: aligned 15px SVG mask icons for all 4 handoff/export items */
html body header.moying-workspace-toolbar .moying-toolbar-panel.moying-project-tools-panel :is(
  [data-testid="moying-tools-export-jianying"],
  [data-testid="import-all-to-video"],
  [data-testid="import-all-to-canvas"],
  [data-testid="generate-all-video-prompts"]
) {
  padding-left: 10px !important;
}

html body header.moying-workspace-toolbar .moying-toolbar-panel.moying-project-tools-panel :is(
  [data-testid="moying-tools-export-jianying"],
  [data-testid="import-all-to-video"],
  [data-testid="import-all-to-canvas"],
  [data-testid="generate-all-video-prompts"]
)::before {
  content: "";
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  background: currentColor;
}

html body header.moying-workspace-toolbar .moying-toolbar-panel.moying-project-tools-panel [data-testid="moying-tools-export-jianying"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M7 4v16M17 4v16M2 9h5M2 15h5M17 9h5M17 15h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M7 4v16M17 4v16M2 9h5M2 15h5M17 9h5M17 15h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

html body header.moying-workspace-toolbar .moying-toolbar-panel.moying-project-tools-panel [data-testid="import-all-to-video"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

html body header.moying-workspace-toolbar .moying-toolbar-panel.moying-project-tools-panel [data-testid="import-all-to-canvas"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
}

html body header.moying-workspace-toolbar .moying-toolbar-panel.moying-project-tools-panel [data-testid="generate-all-video-prompts"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2L12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2L12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 5d. Dark Obsidian react-hot-toast shifted cleanly below 57px top nav (single border) */
html[data-studio-skin="glass"] div[style*="z-index: 9999"][style*="pointer-events: none"] {
  top: 66px !important;
}

html[data-studio-skin="glass"] .go2072408551 {
  background: rgba(16, 18, 28, 0.96) !important;
  color: #f4f4f6 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.68) !important;
  backdrop-filter: blur(24px) !important;
}

html[data-studio-skin="glass"] .go2072408551 [role="status"] {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f4f4f6 !important;
}

/* 5e. 全局设置 Modal: Obsidian backdrop + Crimson primary buttons (no Tailwind blue leak) */
html[data-studio-skin="glass"] div.fixed.inset-0:has([data-moying-settings-dialog]) {
  background: rgba(5, 6, 10, 0.74) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 140 !important;
}

html[data-studio-skin="glass"] [data-moying-settings-dialog] {
  background: rgba(14, 16, 24, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html[data-studio-skin="glass"] [data-moying-settings-dialog] .bg-blue-600,
html[data-studio-skin="glass"] [data-moying-settings-dialog] .bg-blue-500,
html[data-studio-skin="glass"] [data-moying-settings-dialog] button[class*="from-blue-"],
html[data-studio-skin="glass"] [data-moying-settings-dialog] button[class*="bg-indigo-"] {
  background: linear-gradient(135deg, #ff3b4e, #e11d34) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(225, 29, 52, 0.36) !important;
}

html[data-studio-skin="glass"] [data-moying-settings-dialog] input:focus,
html[data-studio-skin="glass"] [data-moying-settings-dialog] select:focus,
html[data-studio-skin="glass"] [data-moying-settings-dialog] textarea:focus {
  border-color: rgba(255, 59, 78, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(255, 59, 78, 0.2) !important;
  outline: none !important;
}

/* 5f. Storyboard workspace Tailwind blue/teal/indigo/purple/emerald overrides -> Obsidian Crimson */
html[data-studio-skin="glass"] body:not(.moying-home-page) button[class*="from-blue-600"][class*="to-indigo-"],
html[data-studio-skin="glass"] body:not(.moying-home-page) button[class*="from-teal-"],
html[data-studio-skin="glass"] body:not(.moying-home-page) button[class*="from-emerald-"],
html[data-studio-skin="glass"] body:not(.moying-home-page) button[class*="bg-teal-"],
html[data-studio-skin="glass"] body:not(.moying-home-page) button[class*="bg-emerald-500"],
html[data-studio-skin="glass"] body:not(.moying-home-page) button.bg-indigo-600,
html[data-studio-skin="glass"] body:not(.moying-home-page) button.bg-indigo-500,
html[data-studio-skin="glass"] body:not(.moying-home-page) button.bg-purple-600,
html[data-studio-skin="glass"] body:not(.moying-home-page) button.bg-purple-500 {
  background: linear-gradient(135deg, #ff3b4e, #e11d34) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(225, 29, 52, 0.38) !important;
}

html[data-studio-skin="glass"] body:not(.moying-home-page) [class*="text-indigo-400"],
html[data-studio-skin="glass"] body:not(.moying-home-page) [class*="text-indigo-500"],
html[data-studio-skin="glass"] body:not(.moying-home-page) [class*="text-purple-400"],
html[data-studio-skin="glass"] body:not(.moying-home-page) [class*="text-purple-500"] {
  color: #ff6b7a !important;
}

html[data-studio-skin="glass"] body:not(.moying-home-page) input[type="range"] {
  accent-color: #ff3b4e !important;
}

html[data-studio-skin="glass"] body:not(.moying-home-page) div[class*="border-emerald-"][class*="bg-emerald-"] {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(255, 255, 255, 0.11) !important;
}

html[data-studio-skin="glass"] body:not(.moying-home-page) div[class*="border-emerald-"][class*="bg-emerald-"] [class*="text-emerald-"] {
  color: #d6dae6 !important;
}

html[data-studio-skin="glass"] body:not(.moying-home-page) [class*="border-blue-500"],
html[data-studio-skin="glass"] body:not(.moying-home-page) [class*="border-blue-600"],
html[data-studio-skin="glass"] body:not(.moying-home-page) [class*="ring-blue-500"],
html[data-studio-skin="glass"] body:not(.moying-home-page) [class*="ring-blue-600"] {
  border-color: rgba(255, 59, 78, 0.68) !important;
  --tw-ring-color: rgba(255, 59, 78, 0.42) !important;
}

html[data-studio-skin="glass"] body:not(.moying-home-page) span.bg-blue-500,
html[data-studio-skin="glass"] body:not(.moying-home-page) div.bg-blue-500 {
  background-color: #ff3b4e !important;
}

html[data-studio-skin="glass"] body:not(.moying-home-page) [class*="text-blue-600"],
html[data-studio-skin="glass"] body:not(.moying-home-page) [class*="text-blue-500"],
html[data-studio-skin="glass"] body:not(.moying-home-page) [class*="text-blue-400"] {
  color: #ff6674 !important;
}

html[data-studio-skin="glass"] body:not(.moying-home-page) [class*="bg-blue-500/"],
html[data-studio-skin="glass"] body:not(.moying-home-page) [class*="bg-blue-50"] {
  background-color: rgba(255, 59, 78, 0.12) !important;
}

/* 5g. Center all prompt-action buttons including 生成视频提示词 (excluding 文生无图模式 hidden shot-image buttons) */
html[data-studio-skin="glass"]:not(.moying-text-video-mode) [data-testid="moying-prompt-actions"] > button:not(.moying-shot-grid-crop):not([hidden]),
html[data-studio-skin="glass"] [data-testid="frame-video-prompt-generate"]:not([hidden]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

[data-testid="moying-prompt-actions"] > [hidden],
html[data-studio-skin="glass"] body.moying-studio-body [data-testid="moying-prompt-actions"] > [hidden] {
  display: none !important;
}

html.moying-text-video-mode body [data-testid="moying-generate-current-shot"],
html.moying-text-video-mode body [data-testid="moying-shot-send-to-canvas"],
html.moying-text-video-mode body .moying-shot-send-to-canvas {
  display: none !important;
}

html body [data-testid="moying-prompt-actions"] > .moying-shot-grid-crop,
html body .moying-shot-grid-crop,
html body [data-testid="moying-shot-grid-crop"],
html body button[title^="网格裁剪"] {
  display: none !important;
}

/* 5h. Storyboard bottom 本镜资源 bar: uniform >=32px height & radius across 复制资源 / + 添加资源 / 素材库 */
html[data-studio-skin="glass"] [data-moying-shot-part="resources"] button:not(.group\/chip),
html[data-studio-skin="glass"] .moying-workspace-assets-toggle {
  height: 32px !important;
  min-height: 32px !important;
  padding-inline: 10px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 5i. Storyboard left rail active frame border -> Obsidian Crimson */
html[data-studio-skin="glass"] aside [class*="border-blue-"],
html[data-studio-skin="glass"] aside [class*="border-sky-"],
html[data-studio-skin="glass"] aside [class*="border-indigo-"],
html[data-studio-skin="glass"] aside [class*="ring-blue-"] {
  border-color: rgba(255, 59, 78, 0.68) !important;
  --tw-ring-color: rgba(255, 59, 78, 0.36) !important;
}

/* --- 6. Mobile <= 720px Header Fix: keep 炽影Pro brand wordmark & 登录 label visible in glass skin --- */
@media (max-width: 720px) {
  html[data-studio-skin="glass"] .moying-studio-header .moying-studio-brand > .moying-studio-brand-copy,
  html[data-studio-skin="glass"] .moying-studio-header .moying-studio-brand > span:not(.moying-studio-mark) {
    display: inline-flex !important;
    align-items: baseline !important;
  }

  html[data-studio-skin="glass"] .moying-studio-header .moying-studio-user-btn span {
    display: inline !important;
  }
}

/* ==========================================================================
   Iconography, Interactive Empty Stages & Micro-Motion System (2026-11-22)
   ========================================================================== */

@keyframes moying-emblem-breathe {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.18); opacity: 0.9; }
}

@keyframes moying-pop-up {
  from { opacity: 0; transform: translateY(8px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes moying-pop-down {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes moying-card-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes moying-dock-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0.55), 0 28px 64px -10px rgba(0, 0, 0, 0.78); }
  45% { box-shadow: 0 0 0 4px rgba(255, 59, 78, 0.28), 0 0 36px rgba(255, 59, 78, 0.26), 0 28px 64px -10px rgba(0, 0, 0, 0.78); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0), 0 28px 64px -10px rgba(0, 0, 0, 0.78); }
}

@keyframes moying-sheen {
  0% { transform: translateX(-140%) skewX(-22deg); }
  100% { transform: translateX(240%) skewX(-22deg); }
}

/* --- A. Top Navigation Bar: 100% unified geometry across ALL 7 pages + crisp 13px icons --- */
html[data-studio-skin="glass"] .moying-studio-header-nav {
  display: flex;
  align-items: center !important;
  gap: 2px !important;
  padding: 4px 6px !important;
  border-radius: 14px !important;
  background: rgba(18, 18, 24, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

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

@media (max-width: 1024px) {
  html[data-studio-skin="glass"] .moying-studio-header-nav {
    display: none !important;
  }
}

html[data-studio-skin="glass"] .moying-studio-header-nav a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 30px !important;
  min-height: 30px !important;
  line-height: 30px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: color 180ms ease, background 180ms ease, transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms ease;
}

html[data-studio-skin="glass"] .moying-studio-header-nav a::before {
  content: "";
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  background: currentColor;
  opacity: 0.74;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 180ms ease;
}

html[data-studio-skin="glass"] .moying-studio-header-nav a:hover::before,
html[data-studio-skin="glass"] .moying-studio-header-nav a.is-active::before {
  opacity: 1;
  transform: scale(1.1);
}

html[data-studio-skin="glass"] .moying-studio-header-nav a:active {
  transform: scale(0.96);
}

html[data-studio-skin="glass"] .moying-studio-header-nav a[href*="script-generator"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3Cline x1='8' y1='17' x2='13' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='8' y1='13' x2='16' y2='13'/%3E%3Cline x1='8' y1='17' x2='13' y2='17'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] .moying-studio-header-nav a[href*="free-image"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2.5'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2.5'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] .moying-studio-header-nav a[href*="infinite-canvas"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] .moying-studio-header-nav a[href*="storyboard"]::before,
html[data-studio-skin="glass"] .moying-studio-header-nav a[href*="index.html"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M7 4v16M17 4v16M2 10h5M17 10h5M2 14h5M17 14h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M7 4v16M17 4v16M2 10h5M17 10h5M2 14h5M17 14h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] .moying-studio-header-nav a[href*="video.html"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] .moying-studio-header-nav a[href*="chat.html"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] .moying-studio-header-nav a[href*="inspect"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cpath d='M8.5 11.2l1.7 1.7 3.5-3.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cpath d='M8.5 11.2l1.7 1.7 3.5-3.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- B. Sidebar Icons + Rotating + Button + Tactile Press --- */
html[data-studio-skin="glass"] .moying-free-image-rail-new::before,
html[data-studio-skin="glass"] .moying-video-rail-new::before {
  display: inline-grid;
  place-items: center;
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[data-studio-skin="glass"] .moying-free-image-rail-new:hover::before,
html[data-studio-skin="glass"] .moying-video-rail-new:hover::before {
  transform: rotate(90deg) scale(1.12);
}

html[data-studio-skin="glass"] .moying-free-image-rail-new:active,
html[data-studio-skin="glass"] .moying-video-rail-new:active,
html[data-studio-skin="glass"] .moying-free-image-rail-link:active,
html[data-studio-skin="glass"] .moying-video-rail-link:active {
  transform: scale(0.98);
}

html[data-studio-skin="glass"] .moying-free-image-rail-link,
html[data-studio-skin="glass"] .moying-video-rail-link {
  gap: 9px;
}

html[data-studio-skin="glass"] .moying-free-image-rail-link::before,
html[data-studio-skin="glass"] .moying-video-rail-link::before {
  content: "";
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  background: currentColor;
  opacity: 0.72;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

html[data-studio-skin="glass"] .moying-free-image-rail-link.is-active::before,
html[data-studio-skin="glass"] .moying-video-rail-link.is-active::before {
  background: #ff4757;
  opacity: 1;
}

html[data-studio-skin="glass"] .moying-free-image-rail-link:hover::before,
html[data-studio-skin="glass"] .moying-video-rail-link:hover::before {
  opacity: 1;
  transform: translateX(1px);
}

html[data-studio-skin="glass"] [data-free-image-tab="queue"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] [data-free-image-tab="results"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] [data-video-tab="create"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] [data-video-tab="batch"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M7 4v16M17 4v16M2 10h5M17 10h5M2 14h5M17 14h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M7 4v16M17 4v16M2 10h5M17 10h5M2 14h5M17 14h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --- C. Dock Control Pill Icons + Spring Popovers + Focus Aura --- */
html[data-studio-skin="glass"] .moying-free-image-dock-bar details > summary,
html[data-studio-skin="glass"] .moying-video-dock-bar details > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

html[data-studio-skin="glass"] .moying-free-image-dock-bar details > summary::before,
html[data-studio-skin="glass"] .moying-video-dock-bar details > summary::before {
  content: "";
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  background: currentColor;
  opacity: 0.72;
  transition: transform 180ms ease, opacity 180ms ease;
}

html[data-studio-skin="glass"] .moying-free-image-dock-bar details[open] > summary::before,
html[data-studio-skin="glass"] .moying-video-dock-bar details[open] > summary::before,
html[data-studio-skin="glass"] .moying-free-image-dock-bar details > summary:hover::before,
html[data-studio-skin="glass"] .moying-video-dock-bar details > summary:hover::before {
  opacity: 1;
  transform: scale(1.1);
}

html[data-studio-skin="glass"] .moying-free-image-dock-model > summary::before,
html[data-studio-skin="glass"] .moying-video-dock-model > summary::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2L12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.9 5.8L20 11l-6.1 2.2L12 19l-1.9-5.8L4 11l6.1-2.2L12 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] .moying-free-image-dock-format > summary::before,
html[data-studio-skin="glass"] .moying-video-dock-format > summary::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M7 9h2v2M17 15h-2v-2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M7 9h2v2M17 15h-2v-2'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] .moying-free-image-dock-count > summary::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M4 16V6a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M4 16V6a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] .moying-free-image-dock-style > summary::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='.5' fill='black'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5' fill='black'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5' fill='black'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5' fill='black'/%3E%3Cpath d='M12 2a10 10 0 0 0 0 20 2 2 0 0 0 2-2c0-.5-.2-1-.5-1.3-.3-.3-.5-.8-.5-1.3a2 2 0 0 1 2-2h2.4a4.6 4.6 0 0 0 4.6-4.6C22 5.9 17.5 2 12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13.5' cy='6.5' r='.5' fill='black'/%3E%3Ccircle cx='17.5' cy='10.5' r='.5' fill='black'/%3E%3Ccircle cx='8.5' cy='7.5' r='.5' fill='black'/%3E%3Ccircle cx='6.5' cy='12.5' r='.5' fill='black'/%3E%3Cpath d='M12 2a10 10 0 0 0 0 20 2 2 0 0 0 2-2c0-.5-.2-1-.5-1.3-.3-.3-.5-.8-.5-1.3a2 2 0 0 1 2-2h2.4a4.6 4.6 0 0 0 4.6-4.6C22 5.9 17.5 2 12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] .moying-free-image-dock-advanced > summary::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='21' x2='4' y2='14'/%3E%3Cline x1='4' y1='10' x2='4' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12' y2='3'/%3E%3Cline x1='20' y1='21' x2='20' y2='16'/%3E%3Cline x1='20' y1='12' x2='20' y2='3'/%3E%3Cline x1='1' y1='14' x2='7' y2='14'/%3E%3Cline x1='9' y1='8' x2='15' y2='8'/%3E%3Cline x1='17' y1='16' x2='23' y2='16'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] .moying-video-dock-mode > summary::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='23 7 16 12 23 17 23 7'/%3E%3Crect x='1' y='5' width='15' height='14' rx='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

html[data-studio-skin="glass"] .moying-video-dock-duration > summary::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15.5 14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15.5 14'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Spring pop-in for popovers, menus, and modals */
html[data-studio-skin="glass"] .moying-free-image-dock details[open] > .moying-free-image-dock-pop,
html[data-studio-skin="glass"] .moying-video-dock details[open] > .moying-video-dock-pop {
  animation: moying-pop-up 200ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: bottom center;
}

html[data-studio-skin="glass"] header.moying-workspace-toolbar details[open] > .moying-toolbar-panel,
html[data-studio-skin="glass"] .moying-studio-login-pop:not([hidden]) {
  animation: moying-pop-down 190ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

/* Composer focus aura & inspire flash */
html[data-studio-skin="glass"] .moying-free-image-dock,
html[data-studio-skin="glass"] .moying-video-dock {
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

html[data-studio-skin="glass"] .moying-free-image-dock:focus-within,
html[data-studio-skin="glass"] .moying-video-dock:focus-within {
  background:
    linear-gradient(180deg, rgba(30, 32, 44, 0.92) 0%, rgba(16, 18, 25, 0.96) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 59, 78, 0.42) 0%, rgba(255, 255, 255, 0.1) 52%, rgba(255, 255, 255, 0.04) 100%) border-box !important;
  box-shadow:
    0 -18px 44px -10px rgba(255, 59, 78, 0.12),
    0 28px 64px -10px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock.is-inspire-flash,
html[data-studio-skin="glass"] .moying-video-dock.is-inspire-flash {
  animation: moying-dock-pulse 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Primary send & CTA kinetic press + glossy hover sheen */
html[data-studio-skin="glass"] #free-image-generate,
html[data-studio-skin="glass"] #video-generate,
html[data-studio-skin="glass"] .moying-studio-header .moying-studio-btn.is-brand,
html[data-studio-skin="glass"] .moying-studio-go:not(:disabled) {
  position: relative;
  overflow: hidden;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), filter 160ms ease, box-shadow 200ms ease !important;
}

html[data-studio-skin="glass"] #free-image-generate::before,
html[data-studio-skin="glass"] #video-generate::before,
html[data-studio-skin="glass"] .moying-studio-header .moying-studio-btn.is-brand::after,
html[data-studio-skin="glass"] .moying-studio-go:not(:disabled)::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-160%) skewX(-22deg);
  pointer-events: none;
}

html[data-studio-skin="glass"] #free-image-generate:hover::before,
html[data-studio-skin="glass"] #video-generate:hover::before,
html[data-studio-skin="glass"] .moying-studio-header .moying-studio-btn.is-brand:hover::after,
html[data-studio-skin="glass"] .moying-studio-go:not(:disabled):hover::after {
  animation: moying-sheen 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-studio-skin="glass"] #free-image-generate:hover,
html[data-studio-skin="glass"] #video-generate:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 26px rgba(255, 59, 78, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

html[data-studio-skin="glass"] #free-image-generate:active,
html[data-studio-skin="glass"] #video-generate:active {
  transform: scale(0.93) !important;
}

/* Home module card image subtle zoom on hover */
html[data-studio-skin="glass"] body.moying-home-page .moying-studio-module .moying-studio-module-still {
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

/* --- D. Bespoke Dark-Cinema Editorial Empty-State Artworks --- */
@keyframes moying-art-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.moying-studio-empty-art {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 560px !important;
  margin: 0 auto !important;
  padding: 8px 16px 12px !important;
  gap: 6px !important;
}

.moying-empty-artwork {
  position: relative;
  margin: 0 0 4px;
  width: min(300px, 68vw);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
  animation: moying-art-float 6.4s ease-in-out infinite;
}

.moying-empty-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 46%, rgba(0, 0, 0, 0.55) 72%, transparent 95%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 46%, rgba(0, 0, 0, 0.55) 72%, transparent 95%);
}

.moying-studio-empty-art > strong,
.moying-studio-empty-art > p:first-of-type,
.moying-studio-empty-art h2 {
  margin: 0 !important;
  font-size: 17px !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em;
  color: rgba(244, 244, 246, 0.92) !important;
}

.moying-studio-empty-art > span,
.moying-studio-empty-art > p:nth-of-type(2),
.moying-studio-empty-art .moying-chat-empty-inner > p {
  margin: 0 !important;
  font-size: 13px !important;
  color: rgba(244, 244, 246, 0.5) !important;
  max-width: 440px;
  line-height: 1.6;
}

html[data-studio-skin="classic"] .moying-empty-artwork {
  width: min(260px, 60vw);
  border-radius: 18px;
  overflow: hidden;
  background: #090a0f;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

html[data-studio-skin="classic"] .moying-empty-artwork img {
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
}

html[data-studio-skin="classic"] .moying-studio-empty-art > strong,
html[data-studio-skin="classic"] .moying-studio-empty-art > p:first-of-type,
html[data-studio-skin="classic"] .moying-studio-empty-art h2 {
  color: #0f172a !important;
}

html[data-studio-skin="classic"] .moying-studio-empty-art > span,
html[data-studio-skin="classic"] .moying-studio-empty-art > p:nth-of-type(2),
html[data-studio-skin="classic"] .moying-studio-empty-art .moying-chat-empty-inner > p {
  color: #64748b !important;
}

@media (prefers-reduced-motion: reduce) {
  .moying-empty-artwork,
  .moying-free-image-dock details[open] > .moying-free-image-dock-pop,
  .moying-video-dock details[open] > .moying-video-dock-pop {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================================================
   JIMENG-INSPIRED FLAGSHIP STUDIO OVERHAUL (2026-11-22 LOCAL PREVIEW)
   - 3-Card Curated Cinema Showcase Stage (aligned 820px with composer dock)
   - Unified Horizontal-Top Floating Composer Capsule + Fanned Polaroid Cards
   - Visual Proportional Aspect-Ratio Frame Icons + Segmented Resolution Track
   - Enriched Left Sidebar ("创作联动" shortcuts + empty history studio card)
   - Homepage "精选灵感画廊" Visual Discovery Section
   ============================================================================ */

/* --- 1. Shared 3-Card Showcase Stage (.moying-jimeng-stage) & 820px Architectural Column Alignment --- */
html[data-studio-skin="glass"] .moying-video-feed-head,
html[data-studio-skin="glass"] .moying-free-image-feed-head {
  width: 100% !important;
  max-width: 820px !important;
  margin-inline: auto !important;
  min-height: 44px !important;
  padding-inline: 0 !important;
  box-sizing: border-box !important;
}

html[data-studio-skin="glass"] .moying-free-image-feed-tools > *,
html[data-studio-skin="glass"] .moying-video-feed-tools > * {
  height: 32px !important;
  min-height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

html[data-studio-skin="glass"] .moying-free-image-feed:has(.moying-jimeng-stage),
html[data-studio-skin="glass"] .moying-video-feed:has(.moying-jimeng-stage) {
  display: flex !important;
  flex-direction: column !important;
}

.moying-free-image-results:has(.moying-jimeng-stage),
.moying-video-feed-list:has(.moying-jimeng-stage) {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.moying-jimeng-stage,
.moying-free-image-empty.moying-jimeng-stage,
.moying-video-feed-empty.moying-jimeng-stage {
  grid-column: 1 / -1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 820px !important;
  min-height: auto !important;
  margin: auto !important;
  padding: 12px 0 !important;
  gap: 22px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: center !important;
}

.moying-jimeng-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 0;
}

html[data-studio-skin="glass"] .moying-jimeng-hero::before {
  content: "";
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 90vw);
  height: 150px;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 59, 78, 0.13) 0%, rgba(99, 102, 241, 0.05) 48%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.moying-jimeng-hero > h2,
.moying-jimeng-hero > h3 {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  font-size: 26px !important;
  font-weight: 680 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.25 !important;
  color: #f5f6fa !important;
}

.moying-jimeng-hero > p {
  position: relative;
  z-index: 1;
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: rgba(244, 244, 246, 0.52) !important;
  max-width: 520px;
}

.moying-jimeng-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  text-align: left;
}

.moying-jimeng-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #14161f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 260ms ease;
}

.moying-jimeng-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 78, 0.36);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 59, 78, 0.14);
}

.moying-jimeng-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d0f16;
}

.moying-jimeng-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.moying-jimeng-card:hover .moying-jimeng-media > img {
  transform: scale(1.06);
}

.moying-jimeng-play {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(12, 14, 20, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}

.moying-jimeng-play::before {
  content: "";
  display: block;
  margin-left: 2px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8.5px;
  border-color: transparent transparent transparent rgba(255, 255, 255, 0.94);
}

.moying-jimeng-card:hover .moying-jimeng-play {
  transform: scale(1.08);
  background: rgba(255, 59, 78, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
}

.moying-jimeng-scrim {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px 13px 11px;
  background: linear-gradient(180deg, rgba(12, 14, 20, 0.04) 22%, rgba(15, 17, 24, 0.62) 68%, #14161f 100%);
  z-index: 1;
}

.moying-jimeng-tag {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: rgba(244, 244, 248, 0.88);
  background: rgba(11, 13, 19, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.moying-jimeng-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.moying-jimeng-row > strong {
  font-size: 14.5px !important;
  font-weight: 650 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.moying-jimeng-try {
  flex: 0 0 auto;
  height: 26px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(18, 20, 29, 0.68);
  color: rgba(255, 255, 255, 0.94);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 150ms ease, box-shadow 180ms ease;
}

.moying-jimeng-try:hover {
  background: linear-gradient(135deg, #ff3b4e, #dc2626);
  border-color: rgba(255, 130, 145, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 59, 78, 0.42);
}

.moying-jimeng-try:active {
  transform: scale(0.95);
}

.moying-jimeng-desc {
  margin: 0 !important;
  padding: 9px 13px 13px !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  color: rgba(244, 244, 246, 0.56) !important;
  text-align: left !important;
  max-width: none !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Classic (light mode ONLY) skin adaptation for showcase cards; dark classic keeps crisp dark surfaces */
html[data-studio-skin="classic"][data-studio-theme="light"] .moying-jimeng-hero > h2,
html[data-studio-skin="classic"][data-studio-theme="light"] .moying-jimeng-hero > h3 {
  color: #0f172a !important;
}

html[data-studio-skin="classic"][data-studio-theme="light"] .moying-jimeng-hero > p {
  color: #64748b !important;
}

html[data-studio-skin="classic"][data-studio-theme="light"] .moying-jimeng-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

html[data-studio-skin="classic"][data-studio-theme="light"] .moying-jimeng-scrim {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 25%, rgba(15, 23, 42, 0.58) 72%, rgba(15, 23, 42, 0.86) 100%);
}

html[data-studio-skin="classic"][data-studio-theme="light"] .moying-jimeng-desc {
  color: #475569 !important;
}

/* --- 2. Signature Jimeng Unified Horizontal-Top Floating Composer Dock --- */
@keyframes moying-dock-pulse {
  0% { box-shadow: 0 24px 56px -10px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 59, 78, 0.55), 0 0 32px rgba(255, 59, 78, 0.28); }
  100% { box-shadow: 0 -18px 42px -10px rgba(9, 10, 15, 0.72), 0 24px 56px -10px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.09); }
}

html[data-studio-skin="glass"] .moying-free-image-lightbox-header {
  background: rgba(7, 7, 9, 0.92) !important;
  backdrop-filter: blur(28px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.4) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* ============================================================================
   ADAPTIVE JIMENG DOCK ARCHITECTURE:
   - 0 Refs (Empty): Signature Jimeng Fanned Polaroid Deck on Left + Prompt on Right
   - >=1 Ref Uploaded: Expands to Two-Layer Full-Width Reference Shelf + Prompt Below
   ============================================================================ */
html[data-studio-skin="glass"] .moying-video-dock,
html[data-studio-skin="glass"] .moying-free-image-dock {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  column-gap: 16px !important;
  row-gap: 0 !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 820px !important;
  margin-inline: auto !important;
  padding: 15px 18px 12px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(180deg, rgba(27, 29, 39, 0.94) 0%, rgba(18, 20, 27, 0.97) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 60%, rgba(255, 255, 255, 0.03) 100%) border-box !important;
  border: 1px solid transparent !important;
  box-shadow:
    0 -18px 42px -10px rgba(9, 10, 15, 0.72),
    0 24px 56px -10px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
  transition: box-shadow 240ms ease, background 220ms ease !important;
}

/* When >=1 reference is uploaded, switch dock to 1-column Two-Layer mode */
html[data-studio-skin="glass"] .moying-video-dock:has(.moying-video-slot:not(.is-add)),
html[data-studio-skin="glass"] .moying-free-image-dock:has(.moying-free-image-reference) {
  grid-template-columns: minmax(0, 1fr) !important;
  column-gap: 0 !important;
  padding: 14px 18px 12px !important;
}

html[data-studio-skin="glass"] .moying-video-dock.is-showcase-pulse,
html[data-studio-skin="glass"] .moying-free-image-dock.is-showcase-pulse {
  animation: moying-dock-pulse 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-studio-skin="glass"] .moying-video-dock:focus-within,
html[data-studio-skin="glass"] .moying-free-image-dock:focus-within {
  background:
    linear-gradient(180deg, rgba(29, 31, 42, 0.96) 0%, rgba(19, 21, 29, 0.98) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 59, 78, 0.44) 0%, rgba(255, 255, 255, 0.1) 60%, rgba(255, 255, 255, 0.05) 100%) border-box !important;
  box-shadow:
    0 -18px 42px -10px rgba(9, 10, 15, 0.72),
    0 26px 60px -10px rgba(0, 0, 0, 0.82),
    0 0 28px rgba(255, 59, 78, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

/* Default (0 refs): Top-Left Column Fanned Polaroid Reference Card Deck */
html[data-studio-skin="glass"] .moying-video-dock-refs,
html[data-studio-skin="glass"] .moying-free-image-dock-refs {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: auto !important;
  max-width: 240px !important;
  border: 0 !important;
  padding: 2px 4px 0 2px !important;
  margin: 0 !important;
  align-self: start !important;
}

/* Populated (>=1 ref): Layer 1 Full-Width Top Reference Shelf */
html[data-studio-skin="glass"] .moying-video-dock-refs:has(.moying-video-slot:not(.is-add)),
html[data-studio-skin="glass"] .moying-free-image-dock-refs:has(.moying-free-image-reference) {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;
  padding: 0 0 10px !important;
  margin: 0 0 8px !important;
}

html[data-studio-skin="glass"] .moying-video-dropzone,
html[data-studio-skin="glass"] .moying-free-image-dropzone {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  gap: 10px !important;
}

html[data-studio-skin="glass"] .moying-video-dock-refs:has(.moying-video-slot:not(.is-add)) .moying-video-dropzone,
html[data-studio-skin="glass"] .moying-free-image-dock-refs:has(.moying-free-image-reference) .moying-free-image-dropzone {
  width: 100% !important;
}

html[data-studio-skin="glass"] #video-references.moying-video-slots,
html[data-studio-skin="glass"] #free-image-references.moying-free-image-slots {
  --moying-video-ref-overlap: 22px;
  --moying-free-image-ref-overlap: 22px;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 4px 6px 6px 4px !important;
}

html[data-studio-skin="glass"] #video-references.moying-video-slots:has(.moying-video-slot:not(.is-add)),
html[data-studio-skin="glass"] #free-image-references.moying-free-image-slots:has(.moying-free-image-reference) {
  width: auto !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding: 8px 12px 8px 4px !important;
  scrollbar-width: thin;
}

/* Distinct Photo-Card Cutout Rim + Left Drop-Shadow for Stacked Uploaded References */
html[data-studio-skin="glass"] #video-references.moying-video-slots > .moying-video-slot:not(.is-add):not(.is-empty),
html[data-studio-skin="glass"] #free-image-references.moying-free-image-slots > .moying-free-image-reference {
  flex: 0 0 72px !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  height: 66px !important;
  min-height: 66px !important;
  border-radius: 12px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    -6px 0 14px rgba(0, 0, 0, 0.8),
    0 6px 14px rgba(0, 0, 0, 0.55),
    0 0 0 1.5px rgba(11, 13, 19, 0.94) !important;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 200ms ease !important;
}

html[data-studio-skin="glass"] #video-references.moying-video-slots > .moying-video-slot:not(.is-add):not(.is-empty):hover,
html[data-studio-skin="glass"] #free-image-references.moying-free-image-slots > .moying-free-image-reference:hover {
  transform: translateY(-4px) scale(1.04) !important;
  border-color: rgba(255, 59, 78, 0.82) !important;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.72),
    0 0 0 1.5px rgba(255, 59, 78, 0.38) !important;
  z-index: 26 !important;
}

html[data-studio-skin="glass"] #video-references.moying-video-slots > .moying-video-slot:not(.is-add) figcaption {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 10px 5px 4px !important;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0) 0%, rgba(10, 12, 18, 0.86) 100%) !important;
  border-radius: 0 0 10px 10px !important;
}

/* Sculpted Jimeng Fanned Polaroid Upload Cards (kept consistent across 0 refs AND >=1 ref on desktop) */
html[data-studio-skin="glass"] .moying-free-image-upload-button,
html[data-studio-skin="glass"] .moying-video-slot.is-add {
  position: relative !important;
  flex: 0 0 56px !important;
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  height: 70px !important;
  min-height: 70px !important;
  padding: 8px 4px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: linear-gradient(165deg, rgba(44, 48, 64, 0.92) 0%, rgba(27, 30, 41, 0.96) 100%) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  color: rgba(244, 244, 246, 0.82) !important;
  gap: 4px !important;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 220ms ease, background 180ms ease !important;
}

/* Signature Jimeng Fanned Tilt — Card 1 (-6deg) & Card 2 (+6deg) in BOTH empty and populated desktop states */
html[data-studio-skin="glass"] #free-image-references label.moying-free-image-upload-button,
html[data-studio-skin="glass"] #video-references button[data-video-add-ref].moying-video-slot.is-add {
  transform: rotate(-6deg) !important;
  margin-left: 0 !important;
  z-index: 2 !important;
}

html[data-studio-skin="glass"] #free-image-references:has(.moying-free-image-reference) label.moying-free-image-upload-button,
html[data-studio-skin="glass"] #video-references:has(.moying-video-slot:not(.is-add)) button[data-video-add-ref].moying-video-slot.is-add {
  margin-left: 14px !important;
}

html[data-studio-skin="glass"] #free-image-references #free-image-library-button.moying-free-image-upload-button,
html[data-studio-skin="glass"] #video-references #video-library-button.moying-video-slot.is-add {
  transform: rotate(6deg) translateY(2px) !important;
  margin-left: -14px !important;
  z-index: 1 !important;
  background: linear-gradient(165deg, rgba(35, 38, 52, 0.9) 0%, rgba(22, 24, 34, 0.96) 100%) !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;
  font-weight: 500 !important;
  color: rgba(244, 244, 246, 0.88) !important;
  transition: color 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1) !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: 10.5px !important;
  font-weight: 500 !important;
  color: rgba(244, 244, 246, 0.56) !important;
  white-space: nowrap !important;
}

html[data-studio-skin="glass"] .moying-free-image-upload-button:hover,
html[data-studio-skin="glass"] .moying-video-slot.is-add:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.06) !important;
  z-index: 6 !important;
  border-color: rgba(255, 59, 78, 0.55) !important;
  background: linear-gradient(165deg, rgba(56, 40, 48, 0.92) 0%, rgba(30, 25, 35, 0.96) 100%) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 59, 78, 0.24) !important;
}

html[data-studio-skin="glass"] .moying-free-image-upload-button:hover span,
html[data-studio-skin="glass"] .moying-video-slot.is-add:hover span {
  color: #ff4d5f !important;
  transform: scale(1.1) !important;
}

html[data-studio-skin="glass"] .moying-free-image-upload-button:hover small,
html[data-studio-skin="glass"] .moying-video-slot.is-add:hover small {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* Hide dead empty helper lines inside dock when 0 refs are attached */
html[data-studio-skin="glass"] #video-auto-mention:disabled,
html[data-studio-skin="glass"] #free-image-auto-mention:disabled {
  display: none !important;
}

html[data-studio-skin="glass"] #video-auto-mention:not(:disabled),
html[data-studio-skin="glass"] #free-image-auto-mention:not(:disabled) {
  flex: 0 0 auto !important;
  margin: 0 !important;
  height: 28px !important;
  padding: 0 11px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  border-radius: 8px !important;
  background: rgba(255, 59, 78, 0.13) !important;
  border: 1px solid rgba(255, 59, 78, 0.32) !important;
  color: #ff8a96 !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock-refs:not(:has(.moying-free-image-reference)) #free-image-reference-status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock-refs:has(.moying-free-image-reference) #free-image-reference-status {
  flex: 0 0 auto !important;
  margin: 0 !important;
  font-size: 11px !important;
  white-space: nowrap !important;
  color: rgba(244, 244, 246, 0.52) !important;
}

/* Default (0 refs): Top-Right Column Prompt Surface */
html[data-studio-skin="glass"] .moying-video-dock > :is(.moying-video-composer, .moying-video-prompt-box),
html[data-studio-skin="glass"] .moying-free-image-dock > .moying-free-image-dock-prompt {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

/* Populated (>=1 ref): Layer 2 Full-Width Prompt Surface Below Shelf */
html[data-studio-skin="glass"] .moying-video-dock:has(.moying-video-slot:not(.is-add)) > :is(.moying-video-composer, .moying-video-prompt-box),
html[data-studio-skin="glass"] .moying-free-image-dock:has(.moying-free-image-reference) > .moying-free-image-dock-prompt {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-prompt,
html[data-studio-skin="glass"] .moying-video-dock #video-prompt.moying-video-prompt {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 5px 10px 6px 2px !important;
  min-height: 78px !important;
  font-size: 14px !important;
  line-height: 1.62 !important;
  color: #f4f5f9 !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-prompt:focus,
html[data-studio-skin="glass"] .moying-video-dock #video-prompt.moying-video-prompt:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

html[data-studio-skin="glass"] .moying-video-dock .moying-video-prompt-highlight {
  padding: 5px 10px 6px 2px !important;
  font-size: 14px !important;
  line-height: 1.62 !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock #free-image-prompt-counter {
  top: 4px !important;
  right: 2px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: rgba(244, 244, 246, 0.45) !important;
  font-size: 11px !important;
  border-radius: 7px !important;
  padding: 2px 7px !important;
}

/* Full-Width Bottom Rows inside Dock */
html[data-studio-skin="glass"] .moying-video-dock > .moying-video-import-note,
html[data-studio-skin="glass"] .moying-video-dock > #video-mention-issues,
html[data-studio-skin="glass"] .moying-video-dock > .moying-video-dock-bar,
html[data-studio-skin="glass"] .moying-video-dock > .moying-video-dock-note,
html[data-studio-skin="glass"] .moying-free-image-dock > .moying-free-image-dock-bar,
html[data-studio-skin="glass"] .moying-free-image-dock > #free-image-status {
  grid-column: 1 / -1 !important;
}

/* Low-Chrome Jimeng Bottom Control Bar */
html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar,
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar {
  margin-top: 10px !important;
  padding-top: 11px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.065) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
}

html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar details summary,
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar details summary {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: rgba(244, 244, 246, 0.84) !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  backdrop-filter: none !important;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease !important;
}

html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar details summary:hover,
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar details summary:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

/* Signature Tinted Brand Anchor on Primary Mode & Active Style */
html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar .moying-video-dock-mode > summary,
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar .moying-free-image-dock-style > summary.is-set,
html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar details[open] > summary,
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar details[open] > summary {
  background: rgba(255, 59, 78, 0.14) !important;
  border-color: rgba(255, 59, 78, 0.32) !important;
  color: #ff949f !important;
}

html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar .moying-credit-estimate,
html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar [data-video-credit-estimate],
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar .moying-credit-estimate {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  color: rgba(244, 244, 246, 0.48) !important;
  font-size: 11.5px !important;
  margin-left: auto !important;
}

/* Circular Luminous Crimson Generate CTA (Jimeng Signature Bottom-Right Circle) */
html[data-studio-skin="glass"] .moying-video-dock #video-generate,
html[data-studio-skin="glass"] .moying-free-image-dock #free-image-generate {
  flex: 0 0 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  border-radius: 999px !important;
  margin-left: 4px !important;
  background: linear-gradient(135deg, #ff3b4e 0%, #dc2626 100%) !important;
  box-shadow: 0 6px 18px rgba(255, 59, 78, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
}

/* Calm Dock Notes (less visually jarring inside capsule) */
html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-note,
html[data-studio-skin="glass"] .moying-free-image-dock #free-image-status {
  margin: 8px 2px 0 !important;
  padding: 0 !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  color: rgba(244, 244, 246, 0.5) !important;
}

html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-note[data-tone="error"],
html[data-studio-skin="glass"] .moying-free-image-dock #free-image-status.is-error {
  color: rgba(255, 148, 158, 0.84) !important;
}

/* --- 3. Visual Proportional Aspect-Ratio Frame Icons & Segmented Track (Jimeng Popover) --- */
html[data-studio-skin="glass"] .moying-video-dock-format .moying-video-dock-pop {
  min-width: 248px !important;
}

html[data-studio-skin="glass"] #moying-free-image-app #free-image-aspect.moying-free-image-segmented,
html[data-studio-skin="glass"] .moying-video-dock-format .moying-video-segmented:has([data-video-aspect]) {
  display: grid !important;
  grid-auto-flow: row !important;
  grid-template-columns: repeat(3, minmax(64px, 1fr)) !important;
  gap: 6px !important;
}

html[data-studio-skin="glass"] #moying-free-image-app #free-image-aspect.moying-free-image-segmented > button,
html[data-studio-skin="glass"] .moying-video-dock-format .moying-video-segmented > button[data-video-aspect] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-height: 54px !important;
  padding: 7px 4px 6px !important;
  border-radius: 10px !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
}

html[data-studio-skin="glass"] [data-aspect]::before,
html[data-studio-skin="glass"] [data-video-aspect]::before {
  content: "";
  display: block;
  width: var(--rg-w, 14px);
  height: var(--rg-h, 14px);
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.82;
  box-sizing: border-box;
}

html[data-studio-skin="glass"] [data-aspect="1:1"]::before,
html[data-studio-skin="glass"] [data-video-aspect="1:1"]::before { --rg-w: 14px; --rg-h: 14px; }
html[data-studio-skin="glass"] [data-aspect="16:9"]::before,
html[data-studio-skin="glass"] [data-video-aspect="16:9"]::before { --rg-w: 19px; --rg-h: 11px; }
html[data-studio-skin="glass"] [data-aspect="9:16"]::before,
html[data-studio-skin="glass"] [data-video-aspect="9:16"]::before { --rg-w: 11px; --rg-h: 19px; }
html[data-studio-skin="glass"] [data-aspect="4:3"]::before,
html[data-studio-skin="glass"] [data-video-aspect="4:3"]::before { --rg-w: 16px; --rg-h: 12px; }
html[data-studio-skin="glass"] [data-aspect="3:4"]::before,
html[data-studio-skin="glass"] [data-video-aspect="3:4"]::before { --rg-w: 12px; --rg-h: 16px; }
html[data-studio-skin="glass"] [data-aspect="3:2"]::before,
html[data-studio-skin="glass"] [data-video-aspect="3:2"]::before { --rg-w: 17px; --rg-h: 11px; }
html[data-studio-skin="glass"] [data-aspect="2:3"]::before,
html[data-studio-skin="glass"] [data-video-aspect="2:3"]::before { --rg-w: 11px; --rg-h: 17px; }
html[data-studio-skin="glass"] [data-aspect="21:9"]::before,
html[data-studio-skin="glass"] [data-video-aspect="21:9"]::before { --rg-w: 22px; --rg-h: 10px; }
html[data-studio-skin="glass"] [data-aspect="4:5"]::before,
html[data-studio-skin="glass"] [data-video-aspect="4:5"]::before { --rg-w: 12px; --rg-h: 15px; }
html[data-studio-skin="glass"] [data-aspect="5:4"]::before,
html[data-studio-skin="glass"] [data-video-aspect="5:4"]::before { --rg-w: 15px; --rg-h: 12px; }
html[data-studio-skin="glass"] [data-aspect="1:4"]::before,
html[data-studio-skin="glass"] [data-video-aspect="1:4"]::before { --rg-w: 7px; --rg-h: 19px; }
html[data-studio-skin="glass"] [data-aspect="4:1"]::before,
html[data-studio-skin="glass"] [data-video-aspect="4:1"]::before { --rg-w: 22px; --rg-h: 7px; }
html[data-studio-skin="glass"] [data-aspect="1:8"]::before,
html[data-studio-skin="glass"] [data-video-aspect="1:8"]::before { --rg-w: 6px; --rg-h: 19px; }
html[data-studio-skin="glass"] [data-aspect="8:1"]::before,
html[data-studio-skin="glass"] [data-video-aspect="8:1"]::before { --rg-w: 22px; --rg-h: 6px; }

/* Recessed Resolution Segmented Bar in Video Format Popover */
html[data-studio-skin="glass"] .moying-video-dock-format .moying-video-segmented:has([data-video-resolution]) {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: 1fr !important;
  gap: 3px !important;
  padding: 3px !important;
  border-radius: 11px !important;
  background: rgba(8, 9, 14, 0.86) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-studio-skin="glass"] .moying-video-dock-format .moying-video-segmented > button[data-video-resolution] {
  height: 30px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: rgba(244, 244, 246, 0.62) !important;
}

html[data-studio-skin="glass"] .moying-video-dock-format .moying-video-segmented > button[data-video-resolution].is-active {
  background: rgba(255, 59, 78, 0.22) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

/* --- 4. Enriched Left Sidebar ("创作联动" + Empty History Card) & Search Input --- */
.moying-rail-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.065);
  margin: 10px 0 8px;
}

html[data-studio-skin="classic"][data-studio-theme="light"] .moying-rail-divider {
  background: rgba(15, 23, 42, 0.08);
}

.moying-rail-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.moying-rail-shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: rgba(244, 244, 246, 0.72);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.moying-rail-shortcut::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background-color: currentColor;
  opacity: 0.72;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.moying-rail-shortcut[data-shortcut="canvas"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
}

.moying-rail-shortcut[data-shortcut="storyboard"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M7 5v14M17 5v14M3 10h4M17 10h4M3 14h4M17 14h4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M7 5v14M17 5v14M3 10h4M17 10h4M3 14h4M17 14h4'/%3E%3C/svg%3E");
}

.moying-rail-shortcut[data-shortcut="video"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3Cpath d='m16 10 6-3v10l-6-3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='14' height='12' rx='2'/%3E%3Cpath d='m16 10 6-3v10l-6-3z'/%3E%3C/svg%3E");
}

.moying-rail-shortcut[data-shortcut="assets"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}

.moying-rail-shortcut:hover {
  background: rgba(255, 255, 255, 0.065);
  color: #ffffff;
}

.moying-rail-shortcut:hover::before {
  opacity: 1;
  background-color: #ff4d5f;
}

.moying-rail-shortcut-label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.moying-rail-badge {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 59, 78, 0.14);
  color: #ff8a96;
  letter-spacing: 0.02em;
}

.moying-rail-empty-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 11px !important;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.065);
  text-align: left;
}

.moying-rail-empty-card > strong {
  font-size: 12px;
  font-weight: 600;
  color: rgba(244, 244, 246, 0.72);
}

.moying-rail-empty-card > span {
  font-size: 11px;
  line-height: 1.5;
  color: rgba(244, 244, 246, 0.42);
}

html[data-studio-skin="classic"][data-studio-theme="light"] .moying-rail-shortcut {
  color: #334155;
}

html[data-studio-skin="classic"][data-studio-theme="light"] .moying-rail-shortcut:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

html[data-studio-skin="classic"][data-studio-theme="light"] .moying-rail-empty-card {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-studio-skin="classic"][data-studio-theme="light"] .moying-rail-empty-card > strong {
  color: #334155;
}

html[data-studio-skin="classic"][data-studio-theme="light"] .moying-rail-empty-card > span {
  color: #64748b;
}

/* Refined Search Input Icon & Stage Header Polish on Video Page */
html[data-studio-skin="glass"] #video-feed-search {
  padding-left: 30px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='rgba(244,244,246,0.48)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 10px center !important;
  background-size: 13px 13px !important;
  border-radius: 10px !important;
}

/* --- 6. Mobile & Narrow Responsive Safeguards (<= 720px: Zero Overflow!) --- */
@media (max-width: 900px) {
  .moying-jimeng-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .moying-jimeng-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .moying-jimeng-hero > h2,
  .moying-jimeng-hero > h3 {
    font-size: 21px !important;
  }

  html[data-studio-skin="glass"] .moying-video-dock,
  html[data-studio-skin="glass"] .moying-free-image-dock {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  html[data-studio-skin="glass"] .moying-video-dock-refs,
  html[data-studio-skin="glass"] .moying-free-image-dock-refs {
    grid-column: 1 !important;
    grid-row: 1 !important;
    max-width: 100% !important;
    padding-bottom: 6px !important;
  }

  html[data-studio-skin="glass"] .moying-video-dock > :is(.moying-video-composer, .moying-video-prompt-box),
  html[data-studio-skin="glass"] .moying-free-image-dock > .moying-free-image-dock-prompt {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  html[data-studio-skin="glass"] #free-image-references .moying-free-image-upload-button,
  html[data-studio-skin="glass"] #free-image-references label.moying-free-image-upload-button,
  html[data-studio-skin="glass"] #free-image-references #free-image-library-button.moying-free-image-upload-button,
  html[data-studio-skin="glass"] #video-references .moying-video-slot.is-add,
  html[data-studio-skin="glass"] #video-references button[data-video-add-ref].moying-video-slot.is-add,
  html[data-studio-skin="glass"] #video-references #video-library-button.moying-video-slot.is-add {
    transform: none !important;
    margin-left: 8px !important;
    flex: 0 0 72px !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    height: 64px !important;
    min-height: 64px !important;
  }

  html[data-studio-skin="glass"] #free-image-references > .moying-free-image-upload-button:first-child,
  html[data-studio-skin="glass"] #video-references > .moying-video-slot.is-add:first-child {
    margin-left: 0 !important;
  }
}

/* ============================================================================
   WAVE 2 POLISH: ASSETS VAULT, PROFILE BENEFITS & RECHARGE PRICING (2026-11-22)
   ============================================================================ */

/* Override 820px showcase cap on Free Chat so 3 starter cards match the 960px composer edge-to-edge */
.moying-chat-empty.moying-chat-jimeng-empty.moying-jimeng-stage {
  max-width: 960px !important;
  padding-inline: 0 !important;
}

.moying-chat-empty.moying-chat-jimeng-empty .moying-chat-empty-inner {
  max-width: 960px !important;
}

/* --- 7. Assets Library Segmented Tabs & Vault Empty Cards --- */
html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-tabs {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 5px !important;
  border-radius: 14px !important;
  background: rgba(16, 18, 26, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  width: fit-content !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-tabs button {
  flex: 0 0 auto !important;
  width: auto !important;
  height: 34px !important;
  min-width: 96px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: rgba(244, 244, 246, 0.64) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  transition: background 160ms ease, color 160ms ease, box-shadow 180ms ease !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-tabs button:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-tabs button.is-on {
  background: linear-gradient(135deg, #ff3b4e 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(255, 59, 78, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-upload-status[data-error="true"] {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 10px;
  background: rgba(255, 59, 78, 0.1);
  border: 1px solid rgba(255, 59, 78, 0.26);
  color: #ff949f !important;
  font-size: 12.5px;
  width: fit-content;
}

.moying-assets-vault-empty {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 22px !important;
  padding: 44px 20px 38px !important;
  text-align: center !important;
}

.moying-assets-vault-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.moying-assets-vault-pill {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #ff8a96;
  background: rgba(255, 59, 78, 0.12);
  border: 1px solid rgba(255, 59, 78, 0.25);
}

.moying-assets-vault-head > p {
  margin: 4px 0 0 !important;
  font-size: 19px !important;
  font-weight: 650 !important;
  color: #f5f6fa !important;
}

.moying-assets-vault-head > span {
  font-size: 13px !important;
  color: rgba(244, 244, 246, 0.52) !important;
}

.moying-assets-vault-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 780px;
  text-align: left;
}

.moying-assets-vault-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 7px !important;
  padding: 16px 16px 18px !important;
  border-radius: 15px !important;
  background: linear-gradient(180deg, rgba(24, 27, 37, 0.9) 0%, rgba(16, 18, 26, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 220ms ease !important;
}

.moying-assets-vault-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 59, 78, 0.42) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(255, 59, 78, 0.14) !important;
}

.moying-assets-vc-tag {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  justify-self: start !important;
  width: fit-content !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: #ff8a96 !important;
  background: rgba(255, 59, 78, 0.13) !important;
  border: 1px solid rgba(255, 59, 78, 0.24) !important;
}

.moying-assets-vault-card > strong {
  font-size: 14px;
  font-weight: 650;
  color: #ffffff;
}

.moying-assets-vault-card > small {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244, 244, 246, 0.52);
}

/* --- 8. Profile Studio Benefits Grid --- */
.moying-profile-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.moying-profile-pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 20px 20px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 22, 31, 0.92) 0%, rgba(14, 16, 23, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease;
}

.moying-profile-pillar:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 59, 78, 0.34);
}

.moying-profile-pillar-tag {
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #ff8a96;
  background: rgba(255, 59, 78, 0.13);
  border: 1px solid rgba(255, 59, 78, 0.24);
}

.moying-profile-pillar h3 {
  margin: 2px 0 0;
  font-size: 15.5px;
  font-weight: 650;
  color: #f5f6fa;
}

.moying-profile-pillar p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(244, 244, 246, 0.54);
  flex: 1 1 auto;
}

.moying-profile-pillar a {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ff6b7a;
  text-decoration: none;
  transition: color 150ms ease;
}

.moying-profile-pillar a:hover {
  color: #ff949f;
}

/* --- 9. Recharge Page Stripe/Vercel Dark Pricing Polish --- */
html[data-studio-skin="glass"] .moying-studio-pack {
  background: linear-gradient(180deg, rgba(20, 22, 31, 0.92) 0%, rgba(14, 16, 23, 0.96) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  border-radius: 18px !important;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 220ms ease !important;
}

html[data-studio-skin="glass"] .moying-studio-pack:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5) !important;
}

html[data-studio-skin="glass"] .moying-studio-pack.is-on {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 59, 78, 0.16) 0%, transparent 72%),
    linear-gradient(180deg, rgba(24, 21, 30, 0.96) 0%, rgba(15, 16, 23, 0.98) 100%) !important;
  border-color: rgba(255, 59, 78, 0.55) !important;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(255, 59, 78, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

html[data-studio-skin="glass"] .moying-pack-badges em {
  background: rgba(255, 59, 78, 0.14) !important;
  border: 1px solid rgba(255, 59, 78, 0.3) !important;
  color: #ff949f !important;
}

html[data-studio-skin="glass"] .moying-pack-bonus {
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.28) !important;
  color: #6ee7b7 !important;
}

html[data-studio-skin="classic"][data-studio-theme="light"] .moying-assets-vault-head > p,
html[data-studio-skin="classic"][data-studio-theme="light"] .moying-assets-vault-card > strong,
html[data-studio-skin="classic"][data-studio-theme="light"] .moying-profile-pillar h3 { color: #0f172a !important; }
html[data-studio-skin="classic"][data-studio-theme="light"] .moying-assets-vault-head > span,
html[data-studio-skin="classic"][data-studio-theme="light"] .moying-assets-vault-card > small,
html[data-studio-skin="classic"][data-studio-theme="light"] .moying-profile-pillar p { color: #64748b !important; }
html[data-studio-skin="classic"][data-studio-theme="light"] .moying-assets-vault-card,
html[data-studio-skin="classic"][data-studio-theme="light"] .moying-profile-pillar {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

@media (max-width: 760px) {
  .moying-assets-vault-actions,
  .moying-profile-pillars {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   LOGGED-IN RESULT SURFACES, GENERATE PILL CTA & ASSETS VAULT POLISH (2026-11-22)
   ============================================================================ */

/* --- A. Flagship Crimson Generate Pill CTA (#free-image-generate & #video-generate) --- */
html[data-studio-skin="glass"] .moying-video-dock #video-generate,
html[data-studio-skin="glass"] .moying-free-image-dock #free-image-generate {
  position: relative !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 84px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  margin-left: 6px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 138, 150, 0.34) !important;
  background: linear-gradient(135deg, #ff3b4e 0%, #dc2626 100%) !important;
  box-shadow: 0 8px 20px rgba(255, 59, 78, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.26) !important;
  font-size: 0 !important;
  line-height: 1 !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

html[data-studio-skin="glass"] .moying-video-dock #video-generate::after,
html[data-studio-skin="glass"] .moying-free-image-dock #free-image-generate::after {
  content: "✦ 生成" !important;
  position: absolute !important;
  inset: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: Inter, ui-sans-serif, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  letter-spacing: 0.03em !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

/* Keep dock controls & right-side [estimate + generate] grouped so CTA never orphans to the left */
html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar,
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar {
  row-gap: 8px !important;
  column-gap: 5px !important;
}

html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar details summary,
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar details summary {
  padding: 0 9px !important;
}

html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-model > summary,
html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-model > summary {
  justify-content: flex-start !important;
  max-width: min(220px, 40vw) !important;
  overflow: hidden !important;
}

.moying-dock-model-text {
  display: block;
  min-width: 0;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar .moying-dock-submit,
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar .moying-dock-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  margin-left: auto !important;
  flex: 0 0 auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar .moying-dock-submit > .moying-credit-estimate,
html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar .moying-dock-submit > [data-video-credit-estimate],
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar .moying-dock-submit > .moying-credit-estimate {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 10px !important;
  font-size: 11.5px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html[data-studio-skin="glass"] .moying-video-dock .moying-video-dock-bar .moying-dock-submit > #video-generate,
html[data-studio-skin="glass"] .moying-free-image-dock .moying-free-image-dock-bar .moying-dock-submit > #free-image-generate {
  margin-left: 0 !important;
}

/* --- B. Free Image 820px Column Alignment, Obsidian Task/Result Cards & Dark Media Wells --- */
html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-feed {
  width: 100% !important;
  max-width: none !important;
  padding: 20px 24px 44px !important;
  box-sizing: border-box !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-tasks,
html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-results:not(:has(.moying-jimeng-stage)) {
  width: 100% !important;
  max-width: 820px !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-tasks {
  margin-top: 14px !important;
  margin-bottom: 16px !important;
  gap: 12px !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-results:not(:has(.moying-jimeng-stage)) {
  margin-top: 14px !important;
  padding-bottom: 32px !important;
  gap: 14px !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-results:has(> .moying-free-image-result:only-child) {
  grid-template-columns: minmax(0, 380px) !important;
  justify-content: start !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-results:has(> .moying-free-image-result:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-task {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(22, 24, 34, 0.94) 0%, rgba(16, 18, 26, 0.97) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-task[data-status="running"] {
  border-color: rgba(255, 59, 78, 0.4) !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-task-title strong {
  color: #f4f5f9 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-task p,
html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-task-meta {
  color: rgba(244, 244, 246, 0.62) !important;
  font-size: 12px !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-task-title span[data-task-status] {
  display: inline-flex !important;
  align-items: center !important;
  height: 22px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(244, 244, 248, 0.82) !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-task-title span[data-task-status="running"] {
  background: rgba(255, 59, 78, 0.15) !important;
  border-color: rgba(255, 59, 78, 0.36) !important;
  color: #ff949f !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-task-title span[data-task-status="failed"],
html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-task-title span[data-task-status="partial"] {
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(239, 68, 68, 0.36) !important;
  color: #fca5a5 !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-task-progress {
  height: 4px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-task-progress span {
  background: linear-gradient(90deg, #dc2626 0%, #ff4d5f 100%) !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-task-actions button {
  border-radius: 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: rgba(244, 244, 248, 0.88) !important;
  font-size: 11.5px !important;
}

html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-task-actions button:hover {
  border-color: rgba(255, 59, 78, 0.44) !important;
  background: rgba(255, 59, 78, 0.14) !important;
  color: #ffffff !important;
}

/* Eliminate white image wells & style graceful broken-image fallback */
html[data-studio-skin="glass"] body.moying-free-image-page .moying-free-image-result {
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(21, 23, 33, 0.95) 0%, rgba(15, 17, 25, 0.98) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html[data-studio-skin="glass"] .moying-free-image-preview,
html[data-studio-skin="glass"] .moying-free-image-task-thumb,
html[data-studio-skin="glass"] .moying-free-image-history-thumb {
  position: relative !important;
  background: #0d0f17 !important;
  color: rgba(244, 244, 248, 0.45) !important;
}

html[data-studio-skin="glass"] .moying-free-image-task-thumb,
html[data-studio-skin="glass"] .moying-free-image-history-thumb {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.moying-free-image-preview.is-media-broken,
.moying-free-image-task-thumb.is-media-broken,
.moying-free-image-history-thumb.is-media-broken {
  display: grid !important;
  place-items: center !important;
}

.moying-free-image-preview.is-media-broken::after {
  content: "预览暂不可用";
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(244, 244, 248, 0.52);
  font-size: 11.5px;
  font-weight: 500;
}

.moying-free-image-task-thumb.is-media-broken::after,
.moying-free-image-history-thumb.is-media-broken::after {
  content: "—";
  color: rgba(244, 244, 248, 0.36);
  font-size: 12px;
}

html[data-studio-skin="glass"] .moying-free-image-result-meta strong {
  color: #f3f4f8 !important;
  font-size: 12px !important;
}

html[data-studio-skin="glass"] .moying-free-image-result-meta span {
  color: rgba(244, 244, 248, 0.5) !important;
  font-size: 11px !important;
}

html[data-studio-skin="glass"] .moying-free-image-retain-warn {
  color: rgba(244, 244, 248, 0.52) !important;
  font-size: 11px !important;
}

html[data-studio-skin="glass"] .moying-free-image-result-actions {
  border-top: 1px solid rgba(255, 255, 255, 0.075) !important;
}

/* Eliminate 3+1 orphan button wrap when "加入资产库" is present (legacy grid only; unified task detail uses its own single-row flex bar) */
html[data-studio-skin="glass"] .moying-free-image-results .moying-free-image-result-actions:has(> button:nth-child(4)) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html[data-studio-skin="glass"] .moying-free-image-results:has(> .moying-free-image-result:only-child) .moying-free-image-result-actions:has(> button:nth-child(4)),
html[data-studio-skin="glass"] .moying-free-image-results:has(> .moying-free-image-result:nth-child(2):last-child) .moying-free-image-result-actions:has(> button:nth-child(4)) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

html[data-studio-skin="glass"] .moying-free-image-results .moying-free-image-result-actions:has(> button:nth-child(4)) > button:nth-child(2) {
  border-right: 0 !important;
}

html[data-studio-skin="glass"] .moying-free-image-results:has(> .moying-free-image-result:only-child) .moying-free-image-result-actions:has(> button:nth-child(4)) > button:nth-child(2),
html[data-studio-skin="glass"] .moying-free-image-results:has(> .moying-free-image-result:nth-child(2):last-child) .moying-free-image-result-actions:has(> button:nth-child(4)) > button:nth-child(2) {
  border-right: 1px solid rgba(255, 255, 255, 0.075) !important;
}

html[data-studio-skin="glass"] .moying-free-image-results .moying-free-image-result-actions:has(> button:nth-child(4)) > button:nth-child(1),
html[data-studio-skin="glass"] .moying-free-image-results .moying-free-image-result-actions:has(> button:nth-child(4)) > button:nth-child(2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;
}

html[data-studio-skin="glass"] .moying-free-image-results:has(> .moying-free-image-result:only-child) .moying-free-image-result-actions:has(> button:nth-child(4)) > button:nth-child(1),
html[data-studio-skin="glass"] .moying-free-image-results:has(> .moying-free-image-result:only-child) .moying-free-image-result-actions:has(> button:nth-child(4)) > button:nth-child(2),
html[data-studio-skin="glass"] .moying-free-image-results:has(> .moying-free-image-result:nth-child(2):last-child) .moying-free-image-result-actions:has(> button:nth-child(4)) > button:nth-child(1),
html[data-studio-skin="glass"] .moying-free-image-results:has(> .moying-free-image-result:nth-child(2):last-child) .moying-free-image-result-actions:has(> button:nth-child(4)) > button:nth-child(2) {
  border-bottom: 0 !important;
}

html[data-studio-skin="glass"] .moying-free-image-results .moying-free-image-result-actions button {
  border-right-color: rgba(255, 255, 255, 0.075) !important;
  color: rgba(244, 244, 248, 0.78) !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

html[data-studio-skin="glass"] .moying-free-image-results .moying-free-image-result-actions button:hover {
  color: #ffffff !important;
  background: rgba(255, 59, 78, 0.14) !important;
}

/* Unified task detail card action bar (skin glass) */
html[data-studio-skin="glass"] .moying-fi-detail-media .moying-free-image-result-actions {
  display: flex !important;
  align-items: stretch !important;
  gap: 6px !important;
  padding: 8px 10px !important;
  background: rgba(14, 16, 24, 0.94) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.075) !important;
}

html[data-studio-skin="glass"] .moying-fi-detail-media .moying-free-image-result-actions > button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(244, 244, 248, 0.84) !important;
  font-size: 11.5px !important;
  font-weight: 550 !important;
  white-space: nowrap !important;
}

html[data-studio-skin="glass"] .moying-fi-detail-media .moying-free-image-result-actions > button:hover {
  background: rgba(255, 255, 255, 0.095) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

html[data-studio-skin="glass"] .moying-fi-detail-media.is-multi .moying-free-image-result-actions {
  gap: 5px !important;
  padding: 7px 8px !important;
}

html[data-studio-skin="glass"] .moying-fi-detail-media.is-multi .moying-free-image-result-actions > button {
  flex: 1 1 auto !important;
  height: 28px !important;
  padding: 0 7px !important;
  font-size: 10.5px !important;
}

/* --- C. Video Studio 820px Column Alignment, Cohesive Card Pills & Batch Pipeline Hub --- */
.moying-video-dock [data-video-workflow-hint] {
  display: none !important;
}

html[data-studio-skin="glass"] .moying-video-feed-list:not(:has(.moying-jimeng-stage)) {
  width: 100% !important;
  max-width: 820px !important;
  margin-inline: auto !important;
  padding-bottom: 44px !important;
  box-sizing: border-box !important;
}

html[data-studio-skin="glass"] .moying-video-card-thumb,
html[data-studio-skin="glass"] .moying-video-history-thumb {
  background: linear-gradient(145deg, rgba(255, 59, 78, 0.16), rgba(255, 255, 255, 0.04)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-studio-skin="glass"] .moying-video-history-item.is-active {
  background: linear-gradient(135deg, rgba(255, 59, 78, 0.16), rgba(255, 255, 255, 0.05)) !important;
  border-color: rgba(255, 59, 78, 0.42) !important;
}

html[data-studio-skin="glass"] .moying-video-card-detail,
html[data-studio-skin="glass"] .moying-video-card-edit {
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(244, 244, 248, 0.86) !important;
  border-radius: 7px !important;
}

html[data-studio-skin="glass"] .moying-video-card-detail:hover,
html[data-studio-skin="glass"] .moying-video-card-edit:hover {
  border-color: rgba(255, 59, 78, 0.45) !important;
  background: rgba(255, 59, 78, 0.15) !important;
  color: #ffffff !important;
}

html[data-studio-skin="glass"] .moying-video-card-actions .moying-video-retain-warn {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  color: rgba(244, 244, 248, 0.58) !important;
  border-radius: 8px !important;
}

/* Batch Production 3-Step Empty Hub */
#video-batch-panel:has(.moying-video-batch-hub) {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 132px);
}

#video-batch-panel .moying-video-batch-hub {
  margin: auto !important;
  width: min(760px, 100%);
  padding: 38px 32px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.moying-video-batch-kicker {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 59, 78, 0.13);
  border: 1px solid rgba(255, 59, 78, 0.3);
  color: #ff8e99;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.moying-video-batch-hub > strong {
  font-size: 20px !important;
  font-weight: 680 !important;
  color: #f5f6fa;
}

.moying-video-batch-hub > p {
  max-width: 520px;
  margin: 0 !important;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244, 244, 248, 0.56);
}

.moying-video-batch-steps {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 6px;
  text-align: left;
}

.moying-video-batch-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.moying-video-batch-step > span {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 59, 78, 0.14);
  border: 1px solid rgba(255, 59, 78, 0.28);
  color: #ff8a96;
  font-size: 11px;
  font-weight: 700;
}

.moying-video-batch-step div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.moying-video-batch-step b {
  font-size: 12.5px;
  font-weight: 650;
  color: #f3f4f8;
}

.moying-video-batch-step small {
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(244, 244, 248, 0.5);
}

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

/* --- D. Assets Vault ("我的资产") Obsidian Cards & Capsule Preview CTA --- */
html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-card[data-asset-dropzone] {
  background: rgba(15, 17, 24, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-grid figure {
  background: #131621 !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38) !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-grid figure:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5) !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-grid figcaption {
  background: #131621 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.075) !important;
  color: rgba(244, 244, 248, 0.78) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  padding: 10px 10px 11px !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-filename {
  color: rgba(244, 244, 248, 0.88) !important;
  font-size: 11.5px !important;
  font-weight: 550 !important;
  text-align: left !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-grid figure figcaption button[data-asset-preview] {
  width: 100% !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(244, 244, 248, 0.9) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-grid figure figcaption button[data-asset-preview]:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-grid figure[data-cloud-id] figcaption > .moying-studio-btn.is-brand,
html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-grid figure[data-cloud-id] figcaption > .is-kept {
  height: 30px !important;
  min-height: 30px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-grid figure[data-cloud-id] figcaption > .is-kept {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(244, 244, 248, 0.58) !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-grid figcaption small {
  margin-top: 1px !important;
  color: rgba(244, 244, 248, 0.48) !important;
  font-size: 11px !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-grid figcaption small span {
  color: rgba(244, 244, 248, 0.48) !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-grid figcaption small a {
  color: rgba(244, 244, 248, 0.84) !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-grid figcaption small a:hover {
  color: #ff7b89 !important;
}

html[data-studio-skin="glass"] [data-studio-page="assets"] .moying-studio-asset-badge {
  background: rgba(11, 13, 20, 0.76) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: rgba(244, 244, 248, 0.92) !important;
  backdrop-filter: blur(8px) !important;
}

/* --- E. Storyboard Global Settings Active Scope Pill (Dark Obsidian/Crimson) --- */
html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) [data-moying-settings-dialog] :is([data-testid="settings-upscale-reference-scope"], [data-testid="settings-script-style"]) button {
  padding: 4px 10px !important;
  border-radius: 8px !important;
  font-size: 11.5px !important;
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: rgba(244, 244, 248, 0.68) !important;
}

html:is([data-studio-skin="glass"], [data-studio-theme="dark"]) [data-moying-settings-dialog] :is([data-testid="settings-upscale-reference-scope"], [data-testid="settings-script-style"]) button[class*="bg-blue-100"] {
  background: rgba(255, 59, 78, 0.18) !important;
  border-color: rgba(255, 59, 78, 0.5) !important;
  color: #ff9aa5 !important;
}

/* --- F. Storyboard Shot-Switch Zero-Jump Action Guard --- */
html[data-studio-skin="glass"] body.moying-workspace-header-ready .moying-workspace-selected-card,
html[data-studio-skin="glass"] body.moying-workspace-header-ready .moying-workspace-selected-card.moying-shot-split {
  transition: none !important;
}

html[data-studio-skin="glass"] body.moying-workspace-header-ready .moying-workspace-selected-card.moying-shot-split [data-testid="moying-prompt-actions"] > button,
html[data-studio-skin="glass"] body.moying-studio-body .moying-workspace-selected-card.moying-shot-split [data-testid="frame-send-to-video"] {
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  font-size: 12px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, filter 150ms ease, box-shadow 150ms ease !important;
}

html[data-studio-skin="glass"] body.moying-workspace-header-ready .moying-workspace-selected-card.moying-shot-split [data-testid="moying-prompt-actions"] > button:hover,
html[data-studio-skin="glass"] body.moying-studio-body .moying-workspace-selected-card.moying-shot-split [data-testid="frame-send-to-video"]:hover {
  transform: none !important;
}

/* --- G. Native Studio Caret & Cursor Hygiene (Zero stray | input caret on UI chrome) --- */
html,
body {
  caret-color: transparent;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="file"]):not([type="color"]):not([type="hidden"]),
textarea,
[contenteditable="true"],
[contenteditable="true"] *,
[contenteditable=""],
[contenteditable=""] * {
  caret-color: auto;
  user-select: text;
  -webkit-user-select: text;
  cursor: text;
}

[contenteditable="false"] {
  caret-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}

header,
nav,
footer,
button,
summary,
label,
[role="tab"],
[role="tablist"],
[role="button"],
.moying-studio-header,
.moying-studio-pagehead,
.moying-studio-eyebrow,
.moying-studio-footer,
.moying-studio-rail,
.moying-chat-sidebar,
.moying-video-feed-head,
.moying-free-image-feed-head,
.moying-workspace-preview,
.moying-workspace-preview-rail,
.moying-shot-prompt-header,
[data-moying-shot-part="header"],
[data-moying-shot-part="resources"],
.moying-video-dock-bar,
.moying-free-image-dock-bar,
.moying-video-ref-strip,
.moying-free-image-ref-strip,
.moying-empty-stage,
.moying-jimeng-stage,
.moying-chat-welcome,
.moying-home-page .moying-studio-hero,
.moying-home-page .moying-studio-modules,
.moying-home-page .moying-studio-tip,
.moying-ic-empty-hub,
.moying-ic-empty-head,
.moying-ic-rail,
.moying-ic-project-bar,
.moying-ic-zoom-bar,
.moying-ic-drawer-head,
.moying-review-page .ticket-head,
.moying-review-page .lightbox-head,
.moying-review-page .field-name,
.moying-review-page .hint,
.moying-review-page .status-line,
.moying-review-page .progress-meta,
.moying-review-page .tabs,
.moying-review-page .drop,
.moying-review-page .segmented,
.moying-review-page .inspect-empty-blueprint {
  user-select: none;
  -webkit-user-select: none;
}

.moying-studio-pagehead,
.moying-studio-eyebrow,
.moying-studio-footer,
.moying-video-feed-head,
.moying-free-image-feed-head,
.moying-shot-prompt-header,
.moying-empty-stage,
.moying-jimeng-hero,
.moying-chat-welcome,
.moying-home-page .moying-studio-hero,
.moying-ic-empty-hub,
.moying-ic-empty-head,
.moying-review-page .ticket-head,
.moying-review-page .lightbox-head,
.moying-review-page .field-name,
.moying-review-page .hint,
.moying-review-page .status-line,
.moying-review-page .progress-meta,
.moying-review-page .inspect-empty-blueprint {
  cursor: default;
}

/* --- H. Hide Legacy Theme & Skin Switchers in User Menu & Glass Header --- */
[data-studio-panel="user"] [data-studio-action="theme"],
[data-studio-panel="user"] [data-studio-action="skin"],
html[data-studio-skin="glass"] [data-testid="moying-theme-header"] {
  display: none !important;
}

/* --- I. Flagship Profile Center (/profile.html): Balanced 2-Card Executive Layout --- */
html[data-studio-skin="glass"] [data-studio-page="profile"] {
  width: min(1020px, calc(100% - 32px)) !important;
  max-width: 1020px !important;
  margin: 0 auto !important;
  padding: 20px 0 36px !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-bar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 14px 20px !important;
  margin-bottom: 18px !important;
  border-radius: 16px !important;
  background: rgba(16, 18, 26, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-back {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 244, 248, 0.72);
  font-size: 12px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-back:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-bar-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  flex: 0 0 1px;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-identity h1 {
  font-size: 17px !important;
  font-weight: 680 !important;
  margin: 0 !important;
  line-height: 1.25 !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-identity p {
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  color: rgba(244, 244, 248, 0.52) !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-logout {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 14px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(244, 244, 248, 0.78) !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-logout:hover {
  border-color: rgba(255, 59, 78, 0.45) !important;
  background: rgba(255, 59, 78, 0.12) !important;
  color: #ff8c98 !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-workspace {
  display: grid !important;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.88fr) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-ledger-shell,
html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-settings-shell {
  display: flex !important;
  flex-direction: column !important;
  padding: 22px 24px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, rgba(19, 21, 30, 0.92) 0%, rgba(13, 15, 22, 0.96) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-balance-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-balance-copy .moying-studio-eyebrow {
  margin: 0 0 4px !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-balance-row {
  margin: 0 0 6px !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-balance {
  font-size: 36px !important;
  font-variant-numeric: tabular-nums;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-balance-copy .moying-studio-fine {
  margin: 0 !important;
  font-size: 12px !important;
  color: rgba(244, 244, 248, 0.5) !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-ledger-section {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding-top: 16px;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-ledger-section .moying-studio-card-head {
  margin-bottom: 10px !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-ledger-section h2,
html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-block-head h2 {
  font-size: 14.5px !important;
  font-weight: 650 !important;
  margin: 0 !important;
  color: #f4f5f9 !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-count-pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(244, 244, 248, 0.6);
  font-size: 11px;
  font-weight: 550;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-ledger-scroll {
  max-height: 356px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger li {
  min-height: 44px !important;
  padding: 9px 8px !important;
  gap: 12px !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger li:not(.is-empty):hover {
  background: rgba(255, 255, 255, 0.035) !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger b {
  font-size: 13px;
  font-weight: 550;
  color: rgba(244, 244, 248, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger small {
  font-size: 11.5px;
  color: rgba(244, 244, 248, 0.44);
  white-space: nowrap;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger strong {
  font-size: 13.5px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger strong[data-sign="credit"] {
  color: #34d399;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger strong[data-sign="debit"] {
  color: #ff7b88;
}

/* Restrained Obsidian Semantic Ledger Pills (Zero clashing neon purple/cyan) */
html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger em {
  min-width: 44px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(244, 244, 248, 0.78);
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger em[data-kind="release"],
html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger em[data-kind="recharge"] {
  background: rgba(16, 185, 129, 0.11);
  border-color: rgba(16, 185, 129, 0.26);
  color: #34d399;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger em[data-kind="reserve"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(226, 232, 240, 0.84);
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger em[data-kind="debit"],
html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-studio-ledger em[data-kind="consume"] {
  background: rgba(255, 59, 78, 0.12);
  border-color: rgba(255, 59, 78, 0.28);
  color: #ff8c98;
}

/* Right Unified Settings Card (账号资料 + 安全与密码) */
html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-settings-shell {
  justify-content: flex-start !important;
  gap: 20px !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-settings-block {
  display: grid;
  gap: 12px;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-settings-block.is-security {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-block-head .moying-studio-fine {
  margin: 0 !important;
  font-size: 11.5px !important;
  color: rgba(244, 244, 248, 0.44) !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-settings-block label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: rgba(244, 244, 248, 0.72);
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-settings-block input {
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(8, 10, 16, 0.72) !important;
  color: #f4f5f9 !important;
  font-size: 13px !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-settings-block input:focus-visible {
  outline: none !important;
  border-color: rgba(255, 59, 78, 0.56) !important;
  box-shadow: 0 0 0 3px rgba(255, 59, 78, 0.16) !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-settings-block input:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-settings-block .moying-studio-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-settings-block .moying-studio-code-row button {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f5f9;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-settings-block .moying-studio-code-row button:hover {
  border-color: rgba(255, 59, 78, 0.48);
  background: rgba(255, 59, 78, 0.15);
  color: #ffffff;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-password-btn {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 18px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 59, 78, 0.42) !important;
  background: rgba(255, 59, 78, 0.14) !important;
  color: #ff949f !important;
  font-size: 12.5px !important;
  font-weight: 650 !important;
}

html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-password-btn:hover {
  background: linear-gradient(135deg, #ff3b4e, #dc2626) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

@media (max-width: 820px) {
  html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-workspace {
    grid-template-columns: 1fr !important;
  }

  html[data-studio-skin="glass"] [data-studio-page="profile"] .moying-profile-bar {
    flex-wrap: wrap;
  }
}

[data-video-credit-estimate][hidden],
#free-image-credit-estimate[hidden],
#chat-credit-estimate[hidden],
#script-credit-estimate[hidden] {
  display: none !important;
}

/* 减少玻璃模糊（右上角用户菜单开关，默认关，2026-11-24）：去掉所有毛玻璃背景模糊，减轻显卡负担；
   玻璃面板换成更不透明的底色，免得没了模糊以后透出后面的内容。 */
html[data-studio-reduce-blur] *,
html[data-studio-reduce-blur] *::before,
html[data-studio-reduce-blur] *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html[data-studio-reduce-blur][data-studio-skin="glass"] .glass-panel {
  background: rgba(16, 18, 26, 0.97) !important;
}

html[data-studio-reduce-blur][data-studio-skin="glass"] .glass-panel-lighter {
  background: rgba(31, 41, 55, 0.95) !important;
}
