/*
 * SuiHeAI test 全站视觉层 v4
 * 冷色黑白灰 / Apple-like workspace
 * 仅覆盖视觉，不改变任何业务状态、接口或路由。
 */

html[data-test-premium-shell="1"] {
  --studio-bg: #0b0e12;
  --studio-surface: #11151a;
  --studio-surface-2: #171c22;
  --studio-surface-3: #20262e;
  --studio-line: rgba(226, 232, 240, .12);
  --studio-line-strong: rgba(226, 232, 240, .24);
  --studio-ink: #f5f7fa;
  --studio-muted: #a7b0bc;
  --studio-subtle: #727d8b;
  --studio-copper: #d7dde6;
  --studio-copper-soft: #f5f7fa;
  --studio-copper-bg: rgba(219, 227, 238, .10);
  --studio-green: #9bc7ae;
  --studio-red: #e49b9b;
  --studio-card-shadow: 0 24px 60px rgba(0, 0, 0, .26), 0 2px 10px rgba(0, 0, 0, .16);
  --studio-radius: 12px;
  --studio-ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* v61: Gooey top navigation. The route remains native Vue Router navigation;
   this layer only supplies the selected pill and click feedback. */
:root {
  --linear-ease: linear(
    0, .068, .19 2.7%, .804 8.1%, 1.037, 1.199 13.2%, 1.245,
    1.27 15.8%, 1.274, 1.272 17.4%, 1.249 19.1%, .996 28%,
    .949, .928 33.3%, .926, .933 36.8%, 1.001 45.6%, 1.013,
    1.019 50.8%, 1.018 54.4%, 1 63.1%, .995 68%, 1.001 85%, 1
  );
}
html[data-test-premium-shell="1"] .gooey-nav-container {
  width: min(600px, calc(100vw - 280px)) !important;
  min-width: 520px !important;
  isolation: isolate !important;
  position: absolute !important;
  display: block !important;
}
html[data-test-premium-shell="1"] .gooey-nav-container nav {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  transform: translate3d(0, 0, .01px);
}
html[data-test-premium-shell="1"] .gooey-nav-container nav ul {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  list-style: none;
  padding: 4px;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 3;
}
html[data-test-premium-shell="1"] .gooey-nav-container nav ul li {
  min-width: 0;
  height: 36px;
  flex: 1 1 auto;
  position: relative;
  border-radius: 999px;
  cursor: pointer;
  color: var(--studio-muted);
  box-shadow: 0 0 .5px 1.5px transparent;
  transition: color .3s ease, box-shadow .3s ease;
}
html[data-test-premium-shell="1"] .gooey-nav-container nav ul li::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: #fff;
  opacity: 0;
  transform: scale(.72);
  transition: opacity .3s ease, transform .45s var(--linear-ease);
}
html[data-test-premium-shell="1"] .gooey-nav-container nav ul li.active {
  color: #070a0f;
  text-shadow: none;
}
html[data-test-premium-shell="1"] .gooey-nav-container nav ul li.active::after {
  opacity: 1;
  transform: scale(1);
}
html[data-test-premium-shell="1"] .gooey-nav-container nav ul li:focus-within:has(:focus-visible) {
  box-shadow: 0 0 0 2px rgba(255,255,255,.82);
}
html[data-test-premium-shell="1"] .gooey-nav-container a,
html[data-test-premium-shell="1"] .gooey-nav-container .gooey-nav-action {
  width: 100% !important;
  height: 36px !important;
  min-width: 0 !important;
  padding: 0 9px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  font: 600 12px/1 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  cursor: pointer;
  transform: none !important;
  transition: color .2s ease, opacity .2s ease !important;
}
html[data-test-premium-shell="1"] .gooey-nav-container a:hover,
html[data-test-premium-shell="1"] .gooey-nav-container .gooey-nav-action:hover {
  color: var(--studio-ink) !important;
  background: transparent !important;
  opacity: .82;
}
html[data-test-premium-shell="1"] .gooey-nav-container li.active a,
html[data-test-premium-shell="1"] .gooey-nav-container li.active .gooey-nav-action {
  color: #070a0f !important;
  background: transparent !important;
}
html[data-test-premium-shell="1"] .gooey-nav-container .gooey-nav-account {
  width: 36px !important;
  padding: 0 !important;
  margin: 0 auto;
}
html[data-test-premium-shell="1"] .gooey-nav-container nav ul li:last-child {
  flex: 0 0 42px;
}
html[data-test-premium-shell="1"] .gooey-nav-container .effect {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 1;
  pointer-events: none;
  display: grid;
  place-items: center;
  z-index: 1;
}
html[data-test-premium-shell="1"] .gooey-nav-container .effect.filter {
  filter: blur(7px) contrast(100) blur(0);
  mix-blend-mode: lighten;
}
html[data-test-premium-shell="1"] .gooey-nav-container .effect.filter::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: #fff;
  transform: scale(0);
  opacity: 0;
}
html[data-test-premium-shell="1"] .gooey-nav-container .effect.active::after {
  animation: gooey-nav-pill .3s ease both;
}
@keyframes gooey-nav-pill {
  to { transform: scale(1); opacity: 1; }
}
html[data-test-premium-shell="1"] .gooey-nav-container .particle,
html[data-test-premium-shell="1"] .gooey-nav-container .point {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  transform-origin: center;
}
html[data-test-premium-shell="1"] .gooey-nav-container .particle {
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  opacity: 0;
  animation: gooey-nav-particle var(--time) ease 1 -80ms;
}
html[data-test-premium-shell="1"] .gooey-nav-container .point {
  background: var(--color);
  opacity: 1;
  animation: gooey-nav-point var(--time) ease 1 -80ms;
}
@keyframes gooey-nav-particle {
  0% { transform: rotate(0deg) translate(var(--start-x), var(--start-y)); opacity: 1; animation-timing-function: cubic-bezier(.55,0,1,.45); }
  70% { transform: rotate(calc(var(--rotate) * .5)) translate(calc(var(--end-x) * 1.2), calc(var(--end-y) * 1.2)); opacity: 1; animation-timing-function: ease; }
  85% { transform: rotate(calc(var(--rotate) * .66)) translate(var(--end-x), var(--end-y)); opacity: 1; }
  100% { transform: rotate(calc(var(--rotate) * 1.2)) translate(calc(var(--end-x) * .5), calc(var(--end-y) * .5)); opacity: 0; }
}
@keyframes gooey-nav-point {
  0% { transform: scale(0); opacity: 0; animation-timing-function: cubic-bezier(.55,0,1,.45); }
  25% { transform: scale(calc(var(--scale) * .25)); }
  38% { opacity: 1; }
  65%, 85% { transform: scale(var(--scale)); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}
html[data-test-premium-shell="1"][data-theme="light"] .gooey-nav-container nav ul li {
  color: #526071;
}
html[data-test-premium-shell="1"][data-theme="light"] .gooey-nav-container nav ul li::after,
html[data-test-premium-shell="1"][data-theme="light"] .gooey-nav-container .effect.filter::after {
  background: #172033;
}
html[data-test-premium-shell="1"][data-theme="light"] .gooey-nav-container nav ul li.active,
html[data-test-premium-shell="1"][data-theme="light"] .gooey-nav-container li.active a,
html[data-test-premium-shell="1"][data-theme="light"] .gooey-nav-container li.active .gooey-nav-action {
  color: #fff !important;
}
html[data-test-premium-shell="1"][data-theme="light"] .gooey-nav-container .effect.filter {
  mix-blend-mode: multiply;
}
@media (max-width: 980px) and (min-width: 681px) {
  html[data-test-premium-shell="1"] .gooey-nav-container {
    width: min(560px, calc(100vw - 185px)) !important;
    min-width: 0 !important;
  }
  html[data-test-premium-shell="1"] .gooey-nav-container a,
  html[data-test-premium-shell="1"] .gooey-nav-container .gooey-nav-action {
    padding: 0 6px !important;
    font-size: 11px !important;
  }
}
@media (max-width: 680px) {
  html[data-test-premium-shell="1"] .gooey-nav-container { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-test-premium-shell="1"] .gooey-nav-container .particle,
  html[data-test-premium-shell="1"] .gooey-nav-container .point,
  html[data-test-premium-shell="1"] .gooey-nav-container .effect.active::after { animation: none !important; }
  html[data-test-premium-shell="1"] .gooey-nav-container nav ul li::after { transition: none !important; }
}

html[data-test-premium-shell="1"][data-theme="light"] {
  --studio-bg: #f4f6f8;
  --studio-surface: #ffffff;
  --studio-surface-2: #f8fafc;
  --studio-surface-3: #eef2f6;
  --studio-line: rgba(15, 23, 42, .11);
  --studio-line-strong: rgba(15, 23, 42, .20);
  --studio-ink: #111827;
  --studio-muted: #5b6573;
  --studio-subtle: #8a94a2;
  --studio-copper: #1f2937;
  --studio-copper-soft: #111827;
  --studio-copper-bg: rgba(15, 23, 42, .065);
  --studio-green: #438466;
  --studio-red: #b65151;
  --studio-card-shadow: 0 20px 50px rgba(15, 23, 42, .09), 0 2px 8px rgba(15, 23, 42, .05);
}

html[data-test-premium-shell="1"] body {
  background: var(--studio-bg) !important;
  color: var(--studio-ink) !important;
  letter-spacing: -.005em;
}

/* Prototype-aligned top navigation. The legacy rail stays mounted for
   compatibility with existing controls, but is visually replaced by this
   calmer global navigation. */
html[data-test-premium-shell="1"] .side-nav,
html[data-test-premium-shell="1"] .side-nav-toggle,
html[data-test-premium-shell="1"] .side-nav-label-panel {
  display: none !important;
}

html[data-test-premium-shell="1"] body:not(.side-nav-collapsed) .app,
html[data-test-premium-shell="1"] body.side-nav-collapsed .app {
  margin-left: 0 !important;
  width: 100% !important;
}

html[data-test-premium-shell="1"] body:not(.side-nav-collapsed) .main-area,
html[data-test-premium-shell="1"] body.side-nav-collapsed .main-area {
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

html[data-test-premium-shell="1"] #mainArea > .panel,
html[data-test-premium-shell="1"] #mainArea > [id^="panel-"] {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 auto !important;
}

html[data-test-premium-shell="1"] .test-workspace-bar {
  display: none !important;
}

html[data-test-premium-shell="1"] .mono-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  border-bottom: 1px solid var(--studio-line);
  background: color-mix(in srgb, var(--studio-bg) 90%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-test-premium-shell="1"] .mono-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--studio-ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -.03em;
  white-space: nowrap;
}

html[data-test-premium-shell="1"] .mono-brand-mark {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: var(--studio-ink);
  color: var(--studio-bg);
  font-size: 12px;
}

html[data-test-premium-shell="1"] .mono-brand-context {
  color: var(--studio-subtle);
  font-weight: 400;
}

html[data-test-premium-shell="1"] .mono-topnav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
}

html[data-test-premium-shell="1"] .mono-topnav a {
  padding: 8px 14px;
  border-radius: 99px;
  color: var(--studio-muted);
  text-decoration: none;
  font-size: 13px;
  transition: background .2s var(--studio-ease), color .2s var(--studio-ease);
}

html[data-test-premium-shell="1"] .mono-topnav a:hover,
html[data-test-premium-shell="1"] .mono-topnav a.active {
  background: var(--studio-copper-bg);
  color: var(--studio-ink);
}

html[data-test-premium-shell="1"] .mono-topnav a {
  white-space: nowrap;
}

html[data-test-premium-shell="1"] .mono-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

html[data-test-premium-shell="1"] .mono-ghost {
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--studio-line);
  border-radius: 99px;
  background: var(--studio-surface-2);
  color: var(--studio-muted);
}

html[data-test-premium-shell="1"] .mono-ghost:hover {
  border-color: var(--studio-line-strong);
  color: var(--studio-ink);
}

html[data-test-premium-shell="1"] .mono-avatar {
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--studio-surface-3);
  color: var(--studio-ink);
  font-size: 11px;
}

html[data-test-premium-shell="1"] .mono-avatar:hover {
  background: var(--studio-ink);
  color: var(--studio-bg);
}

html[data-test-premium-shell="1"] body.home-page .home-root,
html[data-test-premium-shell="1"] body.create-page #panel-create,
html[data-test-premium-shell="1"] body.assets-page .asset-wrap,
html[data-test-premium-shell="1"] body.account-page .account-container {
  padding-top: 0;
}

/* The AeroShards field is shared by home and create; keep the workbench ground transparent so the geometry remains visible around the editor surfaces. */
html[data-test-premium-shell="1"] body.create-page #panel-create,
html[data-test-premium-shell="1"] body.create-page .main-area {
  background: transparent !important;
}

/* Home follows the prototype's spacious overview composition. */
html[data-test-premium-shell="1"] #panel-home .home-root {
  max-width: 1400px !important;
  width: auto !important;
  padding: 0 34px 90px !important;
}

html[data-test-premium-shell="1"] #panel-home .home-hero {
  padding: 34px 0 34px !important;
}

html[data-test-premium-shell="1"] #panel-home .home-hero-inner {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr) !important;
  gap: 48px !important;
  min-height: 390px !important;
}

html[data-test-premium-shell="1"] #panel-home .home-hero-h1 {
  font-size: clamp(42px, 5.4vw, 72px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.075em !important;
}

html[data-test-premium-shell="1"] #panel-home .home-hero-slogan {
  max-width: 400px !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

html[data-test-premium-shell="1"] #panel-home .home-hero-visual {
  border-radius: 22px !important;
  background: var(--studio-surface) !important;
  box-shadow: var(--studio-card-shadow) !important;
}

html[data-test-premium-shell="1"] #panel-home .home-showcase {
  padding: 0 0 42px !important;
}

html[data-test-premium-shell="1"] #panel-home .home-showcase-grid {
  gap: 16px !important;
}

html[data-test-premium-shell="1"] #panel-home .home-showcase-card {
  min-height: 220px;
  border-radius: 18px !important;
  background: var(--studio-surface) !important;
  box-shadow: var(--studio-card-shadow) !important;
}

html[data-test-premium-shell="1"] #panel-home .home-showcase-overlay {
  background: linear-gradient(to top, rgba(7, 10, 14, .86), transparent 74%) !important;
}

html[data-test-premium-shell="1"] #panel-home .home-access,
html[data-test-premium-shell="1"] #panel-home .home-features,
html[data-test-premium-shell="1"] #panel-home .home-steps {
  padding: 38px 0 22px !important;
}

html[data-test-premium-shell="1"] #panel-home .home-access-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html[data-test-premium-shell="1"] #panel-home .home-access-card {
  min-height: 176px !important;
  padding: 22px !important;
  border-radius: 18px !important;
  background: var(--studio-surface) !important;
}

html[data-test-premium-shell="1"] #panel-home .home-features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html[data-test-premium-shell="1"] #panel-home .home-feature-card,
html[data-test-premium-shell="1"] #panel-home .home-step-card {
  border-radius: 16px !important;
  background: var(--studio-surface) !important;
}

@media (max-width: 760px) {
  html[data-test-premium-shell="1"] #panel-home .home-root { padding: 0 16px 60px !important; }
  html[data-test-premium-shell="1"] #panel-home .home-hero-inner { grid-template-columns: 1fr !important; gap: 22px !important; }
  html[data-test-premium-shell="1"] #panel-home .home-access-grid,
  html[data-test-premium-shell="1"] #panel-home .home-features-grid { grid-template-columns: 1fr !important; }
}

html[data-test-premium-shell="1"] .app {
  background: var(--studio-bg) !important;
}

/* The monochrome prototype is a focused workspace, so promotional overlays
   and the decorative mascot are kept out of the main composition. Existing
   announcement state and close handlers remain intact for rollback. */
html[data-test-premium-shell="1"] .top-announcement,
html[data-test-premium-shell="1"] .seedance25-intro,
html[data-test-premium-shell="1"] .right-notice,
html[data-test-premium-shell="1"] #app-root > .maintenance-modal,
html[data-test-premium-shell="1"] #app-root > .contact-us-modal + .seedance25-intro {
  display: none !important;
}

html[data-test-premium-shell="1"] #app-root > .mascot,
html[data-test-premium-shell="1"] #app-root > [class*="mascot"] {
  display: none !important;
}

html[data-test-premium-shell="1"] .mascot-container,
html[data-test-premium-shell="1"] .mascot-img {
  display: none !important;
}

html[data-test-premium-shell="1"] .top-announcement {
  height: 36px;
  background: var(--studio-surface-2) !important;
  color: var(--studio-muted) !important;
  border-bottom: 1px solid var(--studio-line) !important;
  box-shadow: none !important;
}

html[data-test-premium-shell="1"] .top-announcement-icon::before {
  background: #b8c1cc !important;
  box-shadow: 0 0 0 4px rgba(184, 193, 204, .10) !important;
}

html[data-test-premium-shell="1"] .seedance25-intro {
  border: 1px solid var(--studio-line-strong) !important;
  border-radius: 16px !important;
  background: var(--studio-surface) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38) !important;
}

html[data-test-premium-shell="1"] .seedance25-intro-bg {
  background: radial-gradient(circle at 92% 22%, rgba(210, 219, 231, .12), transparent 52%) !important;
}

html[data-test-premium-shell="1"] .seedance25-intro-eyebrow,
html[data-test-premium-shell="1"] .seedance25-intro-btn-primary {
  background: var(--studio-ink) !important;
  color: var(--studio-bg) !important;
}

html[data-test-premium-shell="1"] .seedance25-intro-price strong,
html[data-test-premium-shell="1"] .seedance25-intro-eyebrow {
  color: var(--studio-ink) !important;
  text-shadow: none !important;
}

html[data-test-premium-shell="1"] .seedance25-intro-tag {
  background: var(--studio-copper-bg) !important;
  border-color: var(--studio-line) !important;
}

/* Global workspace chrome */
html[data-test-premium-shell="1"] .test-workspace-bar {
  min-height: 64px;
  background: color-mix(in srgb, var(--studio-bg) 92%, transparent) !important;
  border-bottom: 1px solid var(--studio-line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}

html[data-test-premium-shell="1"] .test-workspace-kicker {
  color: var(--studio-subtle) !important;
  font-size: 9px;
  letter-spacing: .18em;
}

html[data-test-premium-shell="1"] .test-workspace-title {
  color: var(--studio-ink) !important;
  font-size: 18px;
  letter-spacing: -.03em;
}

html[data-test-premium-shell="1"] .test-workspace-env,
html[data-test-premium-shell="1"] .test-workspace-balance {
  border-color: var(--studio-line) !important;
  background: var(--studio-surface-2) !important;
  color: var(--studio-muted) !important;
}

html[data-test-premium-shell="1"] .test-workspace-env::before {
  background: #9eabb9 !important;
  box-shadow: 0 0 0 3px rgba(158, 171, 185, .12) !important;
}

html[data-test-premium-shell="1"] .test-workspace-balance strong {
  color: var(--studio-ink) !important;
}

/* Navigation: quiet rail, clear active state */
html[data-test-premium-shell="1"] .side-nav {
  background: color-mix(in srgb, var(--studio-surface) 94%, transparent) !important;
  border-color: var(--studio-line) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18) !important;
}

html[data-test-premium-shell="1"] .side-nav-btn {
  color: var(--studio-muted) !important;
  border: 1px solid transparent;
}

html[data-test-premium-shell="1"] .side-nav-btn:hover {
  background: var(--studio-copper-bg) !important;
  color: var(--studio-ink) !important;
  transform: translateX(2px);
}

html[data-test-premium-shell="1"] .side-nav-btn.active {
  background: var(--studio-ink) !important;
  color: var(--studio-bg) !important;
  box-shadow: none !important;
}

html[data-test-premium-shell="1"] .side-nav-btn.active::after {
  color: var(--studio-bg) !important;
}

html[data-test-premium-shell="1"] .side-nav-toggle {
  border-color: var(--studio-line-strong) !important;
  background: var(--studio-surface-2) !important;
  color: var(--studio-muted) !important;
}

html[data-test-premium-shell="1"] .side-nav-toggle:hover {
  border-color: var(--studio-line-strong) !important;
  background: var(--studio-surface-3) !important;
  color: var(--studio-ink) !important;
}

/* Shared controls: every selectable surface has a visible boundary */
html[data-test-premium-shell="1"] .btn,
html[data-test-premium-shell="1"] .tb-select,
html[data-test-premium-shell="1"] .tb-input,
html[data-test-premium-shell="1"] .input,
html[data-test-premium-shell="1"] select,
html[data-test-premium-shell="1"] textarea,
html[data-test-premium-shell="1"] input[type="text"],
html[data-test-premium-shell="1"] input[type="number"] {
  border-color: var(--studio-line-strong) !important;
  border-radius: 9px !important;
  background: var(--studio-surface-2) !important;
  color: var(--studio-ink) !important;
}

html[data-test-premium-shell="1"] .btn:hover:not(:disabled),
html[data-test-premium-shell="1"] .tb-select:hover,
html[data-test-premium-shell="1"] select:hover,
html[data-test-premium-shell="1"] textarea:focus,
html[data-test-premium-shell="1"] input:focus {
  border-color: var(--studio-ink) !important;
  box-shadow: 0 0 0 3px var(--studio-copper-bg) !important;
}

html[data-test-premium-shell="1"] .btn-accent,
html[data-test-premium-shell="1"] .btn-primary,
html[data-test-premium-shell="1"] .home-btn--primary,
html[data-test-premium-shell="1"] .ai-generate-btn,
html[data-test-premium-shell="1"] .drama-btn-primary,
html[data-test-premium-shell="1"] .asset-btn-primary,
html[data-test-premium-shell="1"] .tools-row-submit {
  border-color: var(--studio-ink) !important;
  background: var(--studio-ink) !important;
  color: var(--studio-bg) !important;
  box-shadow: none !important;
}

html[data-test-premium-shell="1"] .btn-accent:hover:not(:disabled),
html[data-test-premium-shell="1"] .btn-primary:hover:not(:disabled),
html[data-test-premium-shell="1"] .home-btn--primary:hover,
html[data-test-premium-shell="1"] .ai-generate-btn:hover,
html[data-test-premium-shell="1"] .drama-btn-primary:hover:not(:disabled),
html[data-test-premium-shell="1"] .asset-btn-primary:hover,
html[data-test-premium-shell="1"] .tools-row-submit:hover:not(:disabled) {
  background: #cbd3dd !important;
  border-color: #cbd3dd !important;
  color: #0b0e12 !important;
}

html[data-test-premium-shell="1"] body.create-page .vid-center-magic-btn,
html[data-test-premium-shell="1"] body.create-page .vid-center-reverse-btn {
  border-color: var(--studio-line-strong) !important;
  background: var(--studio-surface-2) !important;
  color: var(--studio-muted) !important;
  box-shadow: none !important;
}

html[data-test-premium-shell="1"] body.create-page .vid-center-magic-btn:hover:not(:disabled),
html[data-test-premium-shell="1"] body.create-page .vid-center-reverse-btn:hover:not(:disabled) {
  border-color: var(--studio-ink) !important;
  background: var(--studio-copper-bg) !important;
  color: var(--studio-ink) !important;
}

html[data-test-premium-shell="1"] .global-toast {
  background: var(--studio-surface-3) !important;
  border-color: var(--studio-line-strong) !important;
  color: var(--studio-ink) !important;
}

/* Home */
html[data-test-premium-shell="1"] body.home-page .home-root {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

html[data-test-premium-shell="1"] body.home-page .home-hero {
  min-height: 500px;
  padding: 72px 0 56px;
}

html[data-test-premium-shell="1"] body.home-page .home-hero-h1 {
  color: var(--studio-ink) !important;
  font-size: clamp(44px, 6vw, 76px) !important;
  font-weight: 650 !important;
  letter-spacing: -.07em !important;
  line-height: 1.02 !important;
}

html[data-test-premium-shell="1"] body.home-page .home-hero-h1-accent {
  color: var(--studio-muted) !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

html[data-test-premium-shell="1"] body.home-page .home-hero-slogan,
html[data-test-premium-shell="1"] body.home-page .home-hero-note,
html[data-test-premium-shell="1"] body.home-page .home-section-sub {
  color: var(--studio-muted) !important;
}

html[data-test-premium-shell="1"] body.home-page .home-hero-img,
html[data-test-premium-shell="1"] body.home-page .home-showcase-card,
html[data-test-premium-shell="1"] body.home-page .home-access-card,
html[data-test-premium-shell="1"] body.home-page .home-feature-card,
html[data-test-premium-shell="1"] body.home-page .home-step-card {
  border-color: var(--studio-line) !important;
  border-radius: 14px !important;
  box-shadow: var(--studio-card-shadow) !important;
}

html[data-test-premium-shell="1"] body.home-page .home-showcase-card,
html[data-test-premium-shell="1"] body.home-page .home-access-card,
html[data-test-premium-shell="1"] body.home-page .home-feature-card,
html[data-test-premium-shell="1"] body.home-page .home-step-card {
  background: var(--studio-surface) !important;
}

html[data-test-premium-shell="1"] body.home-page .home-access-card:hover,
html[data-test-premium-shell="1"] body.home-page .home-feature-card:hover,
html[data-test-premium-shell="1"] body.home-page .home-showcase-card:hover {
  border-color: var(--studio-line-strong) !important;
  transform: translateY(-3px);
}

html[data-test-premium-shell="1"] body.home-page .home-access-icon,
html[data-test-premium-shell="1"] body.home-page .home-feature-icon {
  filter: grayscale(1);
}

/* Create / tools / assets / account cards */
html[data-test-premium-shell="1"] body.create-page .vid-center-wrap,
html[data-test-premium-shell="1"] body.create-page .create-feed-toolbar,
html[data-test-premium-shell="1"] body.create-page .crc-gallery,
html[data-test-premium-shell="1"] #panel-tools .tools-card,
html[data-test-premium-shell="1"] body.assets-page .asset-thumb-card,
html[data-test-premium-shell="1"] body.account-page .account-card {
  background: var(--studio-surface) !important;
  border-color: var(--studio-line) !important;
  box-shadow: var(--studio-card-shadow) !important;
}

html[data-test-premium-shell="1"] body.create-page .vid-center-prompt,
html[data-test-premium-shell="1"] body.create-page .vid-center-param-btn,
html[data-test-premium-shell="1"] body.create-page .vid-center-cost-est,
html[data-test-premium-shell="1"] #panel-tools .tools-source-row,
html[data-test-premium-shell="1"] body.assets-page .folder-bar {
  background: var(--studio-surface-2) !important;
  border-color: var(--studio-line-strong) !important;
}

html[data-test-premium-shell="1"] body.create-page .vid-center-prompt:focus,
html[data-test-premium-shell="1"] body.create-page .vid-center-param-btn:hover,
html[data-test-premium-shell="1"] #panel-tools .tools-source-row:hover,
html[data-test-premium-shell="1"] body.assets-page .folder-chip:hover,
html[data-test-premium-shell="1"] body.assets-page .folder-chip.active {
  border-color: var(--studio-ink) !important;
  background: var(--studio-copper-bg) !important;
}

html[data-test-premium-shell="1"] body.create-page .create-greeting::before,
html[data-test-premium-shell="1"] #panel-tools .tools-nav::before,
html[data-test-premium-shell="1"] body.assets-page .asset-wrap::before {
  color: var(--studio-subtle) !important;
}

html[data-test-premium-shell="1"] body.create-page .crc-stage {
  background: #090b0e !important;
}

/* Create is a dedicated workbench: prompt/materials stay on the left and
   model-specific controls stay directly beside them on the right.  The
   original Vue editor remains mounted inside the left surface, so all upload,
   preflight, pricing and submit behavior is unchanged. */
html[data-test-premium-shell="1"] body.create-page .test-create-workbench {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 12px;
  width: min(1240px, calc(100vw - 48px));
  max-height: min(620px, calc(100vh - 116px));
  transform: translateX(-50%);
  align-items: end;
}

html[data-test-premium-shell="1"] body.create-page .test-create-workbench > #vid-bar-center {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: auto !important;
  min-height: 0 !important;
  max-height: min(620px, calc(100vh - 116px));
  height: auto;
  min-height: 230px;
  align-self: end;
  overflow: visible !important;
  padding: 16px !important;
  border: 1px solid var(--studio-line-strong) !important;
  border-radius: 16px !important;
  background: var(--studio-surface) !important;
  box-shadow: var(--studio-card-shadow) !important;
  backdrop-filter: blur(22px);
}

html[data-test-premium-shell="1"] body.create-page .create-greeting {
  top: 128px !important;
  left: 24px !important;
  width: min(580px, calc(100vw - 48px)) !important;
  max-width: none !important;
  padding: 18px 10px !important;
  text-align: left !important;
  transform: none !important;
}

html[data-test-premium-shell="1"] body.create-page .create-greeting h2 {
  max-width: 560px;
}

html[data-test-premium-shell="1"] body.create-page .test-create-workbench .vid-center-input-area {
  min-height: 0;
}

html[data-test-premium-shell="1"] body.create-page .test-create-workbench .vid-center-params-group {
  display: none !important;
}

html[data-test-premium-shell="1"] body.create-page .test-create-workbench .vid-center-params-spacer {
  display: none !important;
}

html[data-test-premium-shell="1"] body.create-page .test-create-workbench #vid-gen-btn-center,
html[data-test-premium-shell="1"] body.create-page .test-create-workbench .vid-center-cost-est {
  display: none !important;
}

html[data-test-premium-shell="1"] body.create-page .test-create-workbench .vid-center-prompt {
  min-height: 132px;
  max-height: 280px;
  background: var(--studio-surface-2) !important;
  border-color: var(--studio-line-strong) !important;
}

html[data-test-premium-shell="1"] body.create-page .test-create-inspector {
  min-width: 0;
  height: min(480px, calc(100vh - 116px));
  max-height: min(480px, calc(100vh - 116px));
  align-self: end;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--studio-line-strong);
  border-radius: 16px;
  background: var(--studio-surface);
  color: var(--studio-ink);
  box-shadow: var(--studio-card-shadow);
  scrollbar-width: thin;
}

html[data-test-premium-shell="1"] body.create-page .test-create-inspector__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--studio-line);
}

/* Keep the settings context visible while the right rail is scrolled. The
   header owns its own surface so controls below it never show through. */
html[data-test-premium-shell="1"] body.create-page .test-create-inspector__head {
  position: sticky !important;
  top: -18px !important;
  z-index: 8 !important;
  margin: -18px -18px 0 !important;
  padding: 18px 18px 15px !important;
  background: var(--studio-surface) !important;
}

html[data-test-premium-shell="1"] body.create-page .test-create-eyebrow {
  display: block;
  color: var(--studio-subtle);
  font: 700 9px/1.2 var(--font);
  letter-spacing: .16em;
}

html[data-test-premium-shell="1"] body.create-page .test-create-inspector h2 {
  margin: 5px 0 0;
  color: var(--studio-ink);
  font-size: 19px;
  letter-spacing: -.04em;
}

html[data-test-premium-shell="1"] body.create-page .test-create-mode-pill {
  padding: 4px 8px;
  border: 1px solid var(--studio-line-strong);
  border-radius: 999px;
  color: var(--studio-muted);
  font-size: 11px;
}
html[data-test-premium-shell="1"] body.create-page .test-create-mode-select {
  flex: 0 0 82px !important;
  min-width: 82px !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-mode-select .param-select-trigger {
  min-height: 34px !important;
  padding: 0 9px !important;
  border: 1px solid var(--studio-line-strong) !important;
  border-radius: 999px !important;
  background: var(--studio-surface-2) !important;
  color: var(--studio-ink) !important;
  font-size: 12px !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-mode-select .param-select-dropdown {
  z-index: 10020 !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-inspector .dur-picker {
  z-index: 12 !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-inspector .dur-picker-panel {
  top: auto !important;
  bottom: calc(100% + 8px) !important;
  z-index: 10030 !important;
}

html[data-test-premium-shell="1"] body.create-page .test-create-field {
  min-width: 0;
  padding-top: 14px;
}

html[data-test-premium-shell="1"] body.create-page .test-create-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html[data-test-premium-shell="1"] body.create-page .test-create-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--studio-muted);
  font-size: 11px;
}

html[data-test-premium-shell="1"] body.create-page .test-create-select,
html[data-test-premium-shell="1"] body.create-page .test-create-duration {
  display: block;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--studio-line-strong) !important;
  border-radius: 9px !important;
  background: var(--studio-surface-2) !important;
  color: var(--studio-ink) !important;
}

html[data-test-premium-shell="1"] body.create-page .test-create-field-hint,
html[data-test-premium-shell="1"] body.create-page .test-create-note {
  margin: 6px 0 0;
  color: var(--studio-subtle);
  font-size: 10px;
  line-height: 1.45;
}

html[data-test-premium-shell="1"] body.create-page .test-create-inspector__divider {
  height: 1px;
  margin: 16px 0 13px;
  background: var(--studio-line);
}

html[data-test-premium-shell="1"] body.create-page .test-create-estimate {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: var(--studio-muted);
  font-size: 11px;
}

html[data-test-premium-shell="1"] body.create-page .test-create-estimate strong {
  color: var(--studio-ink);
  font-size: 18px;
  letter-spacing: -.03em;
}

html[data-test-premium-shell="1"] body.create-page .test-create-estimate small {
  color: var(--studio-muted);
  font-size: 10px;
  letter-spacing: 0;
}

html[data-test-premium-shell="1"] body.create-page .test-create-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  padding: 0 13px;
  border: 1px solid var(--studio-ink);
  border-radius: 9px;
  background: var(--studio-ink);
  color: var(--studio-bg);
  font-weight: 650;
  cursor: pointer;
  transition: transform .2s var(--studio-ease), background .2s var(--studio-ease);
}

html[data-test-premium-shell="1"] body.create-page .test-create-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #cbd3dd;
}

html[data-test-premium-shell="1"] body.create-page .test-create-submit:disabled {
  cursor: wait;
  opacity: .58;
}

@media (max-width: 900px) {
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench {
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    max-height: none;
    height: auto;
    margin: 18px 14px 24px;
    transform: none;
    grid-template-columns: 1fr;
  }
  html[data-test-premium-shell="1"] body.create-page .create-greeting {
    top: 112px !important;
    left: 16px !important;
    width: calc(100vw - 32px) !important;
  }
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > #vid-bar-center,
  html[data-test-premium-shell="1"] body.create-page .test-create-inspector {
    max-height: none;
    height: auto;
  }
}

/* Last-in-file fixes for the scrollable settings rail. The paired row's
   labels need room above their 42px controls; otherwise the next field's
   label is clipped when the panel is scrolled. Keep extra bottom scroll room
   so the sticky submit action never covers the final field or its hint. */
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field {
  height: auto !important;
  min-height: 58px !important;
  max-height: none !important;
  box-sizing: border-box !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field > .test-create-duration,
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field > .test-create-duration .dur-picker,
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field > .test-create-select {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-field-row + .test-create-field {
  padding-top: 26px !important;
}

/* Ensure the submit action remains above the duration trigger at the very end
   of the cascade, while the teleported duration panel can still float above
   both when explicitly opened. */
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field:first-child .test-create-duration,
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field:first-child .test-create-duration .dur-picker-trigger {
  position: relative !important;
  z-index: 1 !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-submit {
  position: relative !important;
  z-index: 20 !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-inspector {
  scroll-padding-bottom: 90px !important;
  padding-bottom: 90px !important;
}

/* Rare UI Folder Component port for the home workbench.
   The geometry follows the source component (321 × 270 folder, 321 × 241
   flap, spring-like hover/open poses); the cards remain real router links. */
html[data-test-premium-shell="1"] .mono-rare-folder {
  --rare-folder-w: min(620px, calc(100vw - 32px));
  --rare-folder-h: calc(var(--rare-folder-w) * .751);
  --rare-scale: calc(var(--rare-folder-w) / 321px);
  position: relative;
  display: flex;
  justify-content: center;
  margin: 2px 0 0;
  isolation: isolate;
}
html[data-test-premium-shell="1"] .mono-rare-folder-stage {
  position: relative;
  width: min(820px, 100%);
  height: clamp(460px, calc(var(--rare-folder-w) * .88), 680px);
  perspective: 800px;
  touch-action: manipulation;
}
html[data-test-premium-shell="1"] .mono-rare-folder-back {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 54%;
  width: var(--rare-folder-w);
  height: calc(var(--rare-folder-w) * .84);
  transform: translate(-50%, -50%);
  border-radius: 28px;
  background: #05070a;
  box-shadow: inset 0 0 6px 2px rgba(255,255,255,.18), 0 28px 70px rgba(0,0,0,.28);
}
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-back {
  background: #fff;
  box-shadow: inset 0 0 6px 2px rgba(15,23,42,.12), 0 24px 60px rgba(15,23,42,.12);
}
html[data-test-premium-shell="1"] .mono-rare-folder-cards {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
html[data-test-premium-shell="1"] .mono-rare-folder-card {
  position: absolute;
  left: 50%;
  top: 57%;
  display: flex;
  flex-direction: column;
  width: calc(var(--rare-folder-w) * .5109);
  height: calc(var(--rare-folder-w) * .665);
  box-sizing: border-box;
  padding: calc(var(--rare-folder-w) * .0685);
  overflow: hidden;
  border: 1px solid #d8dce1;
  border-radius: 20px;
  background: #f1f1f1;
  color: #15181d;
  text-decoration: none;
  box-shadow: 3px 5px 14px rgba(0,0,0,.16), inset 0 0 0 1px rgba(255,255,255,.8);
  pointer-events: auto;
  transform: translate(-50%, -50%) translate(0, calc(-8px * var(--rare-scale))) rotate(2deg);
  transform-origin: 50% 100%;
  transition: transform .68s cubic-bezier(.2,.75,.2,1), box-shadow .3s ease, border-color .2s ease;
  will-change: transform;
}
/* The first three are primary destinations and intentionally carry a little
   more visual weight than the utility documents. */
html[data-test-premium-shell="1"] .mono-rare-folder-card--create,
html[data-test-premium-shell="1"] .mono-rare-folder-card--workflow,
html[data-test-premium-shell="1"] .mono-rare-folder-card--assets {
  width: clamp(136px, calc(var(--rare-folder-w) * .315), 166px);
  height: clamp(178px, calc(var(--rare-folder-w) * .414), 220px);
}
html[data-test-premium-shell="1"] .mono-rare-folder-card--create { padding: clamp(15px, calc(var(--rare-folder-w) * .041), 21px); }
html[data-test-premium-shell="1"] .mono-rare-folder-card--workflow { padding: clamp(15px, calc(var(--rare-folder-w) * .041), 21px); }
html[data-test-premium-shell="1"] .mono-rare-folder-card--assets { padding: clamp(15px, calc(var(--rare-folder-w) * .041), 21px); }
html[data-test-premium-shell="1"] .mono-rare-folder-card--create { z-index: 3; }
html[data-test-premium-shell="1"] .mono-rare-folder-card--workflow { z-index: 4; transform: translate(-50%, -50%) translate(calc(-2px * var(--rare-scale)), calc(-19px * var(--rare-scale))) rotate(-2deg); }
html[data-test-premium-shell="1"] .mono-rare-folder-card--assets { z-index: 2; transform: translate(-50%, -50%) translate(calc(-5px * var(--rare-scale)), calc(-23px * var(--rare-scale))) rotate(-5deg); }
html[data-test-premium-shell="1"] .mono-rare-folder-card--tools { z-index: 1; transform: translate(-50%, -50%) translate(calc(4px * var(--rare-scale)), calc(-25px * var(--rare-scale))) rotate(4deg); }
html[data-test-premium-shell="1"] .mono-rare-folder-card--account { z-index: 0; transform: translate(-50%, -50%) translate(calc(9px * var(--rare-scale)), calc(-27px * var(--rare-scale))) rotate(7deg); }
html[data-test-premium-shell="1"] .mono-rare-folder-card .mono-eyebrow { color: #6b7480; }
html[data-test-premium-shell="1"] .mono-rare-folder-card .mono-rare-card-arrow { position: absolute; top: 10%; right: 10%; color: #6b7480; font-size: clamp(16px, calc(var(--rare-folder-w) * .056), 22px); }
html[data-test-premium-shell="1"] .mono-rare-folder-card .mono-destination-status { margin-top: 18%; color: #68717b; }
html[data-test-premium-shell="1"] .mono-rare-folder-card h2 { margin: 8% 0 0; font-size: clamp(19px, calc(var(--rare-folder-w) * .075), 30px); line-height: 1.1; letter-spacing: -.055em; font-weight: 650; }
html[data-test-premium-shell="1"] .mono-rare-folder-card p { margin: 6% 0 0; color: #626b76; font-size: clamp(11px, calc(var(--rare-folder-w) * .037), 15px); line-height: 1.55; }
html[data-test-premium-shell="1"] .mono-rare-folder-card .mono-destination-cta { position: absolute; left: 12%; bottom: 9%; color: #68717b; font-size: clamp(10px, calc(var(--rare-folder-w) * .034), 13px); }
html[data-test-premium-shell="1"] .mono-rare-folder-card .mono-line-icon { margin: 0 0 12%; color: #646d78; font-size: clamp(22px, calc(var(--rare-folder-w) * .084), 32px); }
html[data-test-premium-shell="1"] .mono-rare-folder-card h3 { margin: 0; font-size: 17px; letter-spacing: -.04em; font-weight: 650; }
html[data-test-premium-shell="1"] .mono-rare-folder-card .mono-quick-arrow { margin-top: auto; align-self: flex-end; color: #68717b; font-size: 18px; }
html[data-test-premium-shell="1"] .mono-rare-folder-card:hover { border-color: #8f98a3; box-shadow: 6px 12px 24px rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.9); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--create { transform: translate(-50%, -50%) translate(calc(112px * var(--rare-scale)), calc(-38px * var(--rare-scale))) rotate(14deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--workflow { transform: translate(-50%, -50%) translate(calc(4px * var(--rare-scale)), calc(-43px * var(--rare-scale))) rotate(-1deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--assets { transform: translate(-50%, -50%) translate(calc(-108px * var(--rare-scale)), calc(-50px * var(--rare-scale))) rotate(-9deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--tools { transform: translate(-50%, -50%) translate(calc(210px * var(--rare-scale)), calc(-29px * var(--rare-scale))) rotate(21deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--account { transform: translate(-50%, -50%) translate(calc(-207px * var(--rare-scale)), calc(-39px * var(--rare-scale))) rotate(-19deg); }
/* Once opened, bring each real router link above the translucent flap so the
   five documents are individually reachable with mouse and keyboard. */
html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card { z-index: 10 !important; }
html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--create { transform: translate(-50%, -50%) translate(calc(224px * var(--rare-scale)), calc(-184px * var(--rare-scale))) rotate(18deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--workflow { transform: translate(-50%, -50%) translate(0, calc(-224px * var(--rare-scale))) rotate(-3deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--assets { transform: translate(-50%, -50%) translate(calc(-224px * var(--rare-scale)), calc(-190px * var(--rare-scale))) rotate(-14deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--tools { transform: translate(-50%, -50%) translate(calc(110px * var(--rare-scale)), calc(-283px * var(--rare-scale))) rotate(9deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--account { transform: translate(-50%, -50%) translate(calc(-110px * var(--rare-scale)), calc(-278px * var(--rare-scale))) rotate(-9deg); }
html[data-test-premium-shell="1"] .mono-rare-folder-flap {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 56%;
  width: var(--rare-folder-w);
  height: var(--rare-folder-h);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--studio-ink);
  cursor: pointer;
  transform: translate(-50%, -50%) rotateX(-15deg);
  transform-origin: 50% 100%;
  transform-style: preserve-3d;
  transition: transform .72s cubic-bezier(.18,.86,.22,1), filter .25s ease;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.18));
  will-change: transform;
}
html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-flap { transform: translate(-50%, -50%) rotateX(-45deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-flap { transform: translate(-50%, -50%) rotateX(-55deg); }
html[data-test-premium-shell="1"] .mono-rare-folder-flap:focus-visible { outline: 2px solid var(--studio-ink); outline-offset: 8px; border-radius: 24px; }
html[data-test-premium-shell="1"] .mono-rare-folder-flap-svg,
html[data-test-premium-shell="1"] .mono-rare-folder-flap-blur { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
html[data-test-premium-shell="1"] .mono-rare-folder-flap-blur { clip-path: path('M0 25C0 11.1929 11.1929 0 25 0H136.084C143.044 0 149.689 2.90139 154.42 8.00608L178.08 33.5343C182.811 38.639 189.456 41.5404 196.416 41.5404H296C309.807 41.5404 321 52.7333 321 66.5404V216C321 229.807 309.807 241 296 241H25C11.1929 241 0 229.807 0 216V25Z'); clip-path: path('M0 25C0 11.1929 11.1929 0 25 0H136.084C143.044 0 149.689 2.90139 154.42 8.00608L178.08 33.5343C182.811 38.639 189.456 41.5404 196.416 41.5404H296C309.807 41.5404 321 52.7333 321 66.5404V216C321 229.807 309.807 241 296 241H25C11.1929 241 0 229.807 0 216V25Z'); background: rgba(255,255,255,.045); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transform: translateZ(0); }
html[data-test-premium-shell="1"] .mono-rare-folder-flap-fill { fill: rgba(41,45,52,.78); fill-opacity: .86; }
html[data-test-premium-shell="1"] .mono-rare-folder-flap-stroke { fill: none; stroke: rgba(226,232,240,.62); }
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-flap-fill { fill: #f5f5f5; fill-opacity: .9; }
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-flap-stroke { stroke: rgba(15,23,42,.24); }
html[data-test-premium-shell="1"] .mono-rare-folder-flap-copy { position: absolute; z-index: 2; left: 9%; right: 9%; bottom: 13%; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; text-align: left; pointer-events: none; }
html[data-test-premium-shell="1"] .mono-rare-folder-flap-copy .mono-eyebrow { color: var(--studio-subtle); }
html[data-test-premium-shell="1"] .mono-rare-folder-flap-copy strong { font-size: clamp(18px, 2.2vw, 26px); letter-spacing: -.05em; }
html[data-test-premium-shell="1"] .mono-rare-folder-flap-copy small { color: var(--studio-muted); font-size: 11px; }
html[data-test-premium-shell="1"] .mono-rare-folder + .mono-home-bottom { position: relative; z-index: 10; }
@media (max-width: 760px) {
  html[data-test-premium-shell="1"] .mono-rare-folder-stage { height: 430px; overflow: hidden; }
  html[data-test-premium-shell="1"] .mono-rare-folder-card { width: 142px; height: 190px; padding: 16px; border-radius: 16px; transform: translate(-50%, -50%) scale(.78) translate(0, -8px) rotate(2deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder-card--workflow { transform: translate(-50%, -50%) scale(.78) translate(-2px, -19px) rotate(-2deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder-card--assets { transform: translate(-50%, -50%) scale(.78) translate(-5px, -23px) rotate(-5deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder-card--tools { transform: translate(-50%, -50%) scale(.78) translate(4px, -25px) rotate(4deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder-card--account { transform: translate(-50%, -50%) scale(.78) translate(9px, -27px) rotate(7deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--create { transform: translate(-50%, -50%) scale(.78) translate(88px, -32px) rotate(14deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--workflow { transform: translate(-50%, -50%) scale(.78) translate(2px, -40px) rotate(-1deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--assets { transform: translate(-50%, -50%) scale(.78) translate(-88px, -41px) rotate(-9deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--tools { transform: translate(-50%, -50%) scale(.78) translate(164px, -23px) rotate(21deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--account { transform: translate(-50%, -50%) scale(.78) translate(-163px, -32px) rotate(-19deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--create { transform: translate(-50%, -50%) scale(.78) translate(160px, -154px) rotate(18deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--workflow { transform: translate(-50%, -50%) scale(.78) translate(0, -184px) rotate(-3deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--assets { transform: translate(-50%, -50%) scale(.78) translate(-160px, -155px) rotate(-14deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--tools { transform: translate(-50%, -50%) scale(.78) translate(78px, -230px) rotate(9deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--account { transform: translate(-50%, -50%) scale(.78) translate(-78px, -226px) rotate(-9deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder-flap { top: 59%; }
  html[data-test-premium-shell="1"] .mono-rare-folder-flap-copy { left: 10%; bottom: 11%; }
  html[data-test-premium-shell="1"] .mono-rare-folder-flap-copy strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-test-premium-shell="1"] .mono-rare-folder-card,
  html[data-test-premium-shell="1"] .mono-rare-folder-flap { transition-duration: .01ms !important; }
}

/* Five-document correction: keep the Rare UI proportions instead of scaling
   one document with the folder.  Every entry is its own 164:214 document and
   uses the same stacked / fan / lift poses as the source component. */
html[data-test-premium-shell="1"] .mono-rare-folder {
  --rare-folder-w: min(520px, calc(100vw - 48px));
  --rare-folder-h: calc(var(--rare-folder-w) * .751);
}
html[data-test-premium-shell="1"] .mono-rare-folder-stage {
  width: min(760px, 100%);
  height: clamp(430px, calc(var(--rare-folder-w) * .92), 560px);
}
html[data-test-premium-shell="1"] .mono-rare-folder-back {
  width: var(--rare-folder-w);
  height: calc(var(--rare-folder-w) * .84);
  top: 54%;
  border-radius: 25px;
}
html[data-test-premium-shell="1"] .mono-rare-folder-card {
  width: clamp(122px, calc(var(--rare-folder-w) * .285), 150px);
  height: clamp(159px, calc(var(--rare-folder-w) * .374), 198px);
  padding: clamp(13px, calc(var(--rare-folder-w) * .035), 18px);
  border-radius: 16px;
  transform: translate(-50%, -50%) translate(54px, -20px) rotate(10deg);
}
html[data-test-premium-shell="1"] .mono-rare-folder-card--workflow { transform: translate(-50%, -50%) translate(27px, -16px) rotate(5deg); }
html[data-test-premium-shell="1"] .mono-rare-folder-card--assets { transform: translate(-50%, -50%) translate(0, -12px) rotate(0deg); }
html[data-test-premium-shell="1"] .mono-rare-folder-card--tools { transform: translate(-50%, -50%) translate(-27px, -16px) rotate(-5deg); }
html[data-test-premium-shell="1"] .mono-rare-folder-card--account { transform: translate(-50%, -50%) translate(-54px, -20px) rotate(-10deg); }
html[data-test-premium-shell="1"] .mono-rare-folder-card .mono-eyebrow { font-size: 8px; letter-spacing: .12em; }
html[data-test-premium-shell="1"] .mono-rare-folder-card .mono-destination-status { margin-top: 18%; font-size: 10px; }
html[data-test-premium-shell="1"] .mono-rare-folder-card h2 { margin-top: 8%; font-size: clamp(16px, calc(var(--rare-folder-w) * .042), 22px); }
html[data-test-premium-shell="1"] .mono-rare-folder-card p { font-size: clamp(10px, calc(var(--rare-folder-w) * .023), 12px); line-height: 1.45; }
html[data-test-premium-shell="1"] .mono-rare-folder-card h3 { font-size: clamp(14px, calc(var(--rare-folder-w) * .032), 17px); }
html[data-test-premium-shell="1"] .mono-rare-folder-card .mono-line-icon { margin-bottom: 10%; font-size: clamp(20px, calc(var(--rare-folder-w) * .06), 28px); }
html[data-test-premium-shell="1"] .mono-rare-folder-card .mono-destination-cta { font-size: 9px; }
html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--create { transform: translate(-50%, -50%) translate(130px, -50px) rotate(18deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--workflow { transform: translate(-50%, -50%) translate(64px, -64px) rotate(10deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--assets { transform: translate(-50%, -50%) translate(0, -72px) rotate(0deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--tools { transform: translate(-50%, -50%) translate(-64px, -64px) rotate(-10deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--account { transform: translate(-50%, -50%) translate(-130px, -50px) rotate(-18deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--create { transform: translate(-50%, -50%) translate(230px, -170px) rotate(18deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--workflow { transform: translate(-50%, -50%) translate(115px, -210px) rotate(9deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--assets { transform: translate(-50%, -50%) translate(0, -230px) rotate(0deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--tools { transform: translate(-50%, -50%) translate(-115px, -210px) rotate(-9deg); }
html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--account { transform: translate(-50%, -50%) translate(-230px, -170px) rotate(-18deg); }
html[data-test-premium-shell="1"] .mono-rare-folder-flap {
  width: var(--rare-folder-w);
  height: var(--rare-folder-h);
  top: 50%;
}
html[data-test-premium-shell="1"] .mono-rare-folder-flap-copy { left: 10%; right: 10%; bottom: 12%; }
html[data-test-premium-shell="1"] .mono-rare-folder-flap-copy strong { font-size: clamp(17px, calc(var(--rare-folder-w) * .042), 23px); }
@media (max-width: 760px) {
  html[data-test-premium-shell="1"] .mono-rare-folder {
    --rare-folder-w: min(430px, calc(100vw - 28px));
  }
  html[data-test-premium-shell="1"] .mono-rare-folder-stage { height: 400px; }
  html[data-test-premium-shell="1"] .mono-rare-folder-card { width: 112px; height: 146px; padding: 11px; }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--create { transform: translate(-50%, -50%) translate(104px, -38px) rotate(18deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--workflow { transform: translate(-50%, -50%) translate(51px, -50px) rotate(10deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--assets { transform: translate(-50%, -50%) translate(0, -57px) rotate(0deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--tools { transform: translate(-50%, -50%) translate(-51px, -50px) rotate(-10deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-hovered .mono-rare-folder-card--account { transform: translate(-50%, -50%) translate(-104px, -38px) rotate(-18deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--create { transform: translate(-50%, -50%) translate(158px, -145px) rotate(18deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--workflow { transform: translate(-50%, -50%) translate(79px, -176px) rotate(9deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--assets { transform: translate(-50%, -50%) translate(0, -192px) rotate(0deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--tools { transform: translate(-50%, -50%) translate(-79px, -176px) rotate(-9deg); }
  html[data-test-premium-shell="1"] .mono-rare-folder.is-open .mono-rare-folder-card--account { transform: translate(-50%, -50%) translate(-158px, -145px) rotate(-18deg); }
}

/* Final size order (after the responsive base rules): primary documents are
   slightly larger, while Account and Tools remain compact utilities. */
html[data-test-premium-shell="1"] .mono-rare-folder-card--create,
html[data-test-premium-shell="1"] .mono-rare-folder-card--workflow,
html[data-test-premium-shell="1"] .mono-rare-folder-card--assets {
  width: clamp(136px, calc(var(--rare-folder-w) * .315), 166px);
  height: clamp(178px, calc(var(--rare-folder-w) * .414), 220px);
}
@media (max-width: 760px) {
  html[data-test-premium-shell="1"] .mono-rare-folder-card--create,
  html[data-test-premium-shell="1"] .mono-rare-folder-card--workflow,
  html[data-test-premium-shell="1"] .mono-rare-folder-card--assets {
    width: 124px;
    height: 162px;
  }
}

/* Keep focus targets and dropdown-triggered scroll positions clear of the
   sticky settings header and panel headers in the other workspaces. */
html[data-test-premium-shell="1"] body.create-page .test-create-inspector {
  scroll-padding-top: 76px !important;
}

/* Match the original Rare UI md footprint on the dashboard. */
html[data-test-premium-shell="1"] .mono-rare-folder {
  --rare-folder-w: min(420px, calc(100vw - 72px));
  --rare-folder-h: calc(var(--rare-folder-w) * .751);
}
html[data-test-premium-shell="1"] .mono-rare-folder-stage {
  height: clamp(390px, calc(var(--rare-folder-w) * .98), 480px);
}
html[data-test-premium-shell="1"] .mono-rare-folder-card--create,
html[data-test-premium-shell="1"] .mono-rare-folder-card--workflow,
html[data-test-premium-shell="1"] .mono-rare-folder-card--assets {
  width: clamp(146px, calc(var(--rare-folder-w) * .36), 164px);
  height: clamp(190px, calc(var(--rare-folder-w) * .445), 214px);
}
html[data-test-premium-shell="1"] .mono-rare-folder-card--create { padding: 18px; }
html[data-test-premium-shell="1"] .mono-rare-folder-card--workflow { padding: 18px; }
html[data-test-premium-shell="1"] .mono-rare-folder-card--assets { padding: 18px; }
html[data-test-premium-shell="1"] .mono-rare-folder-card--tools,
html[data-test-premium-shell="1"] .mono-rare-folder-card--account {
  width: clamp(122px, calc(var(--rare-folder-w) * .285), 136px);
  height: clamp(159px, calc(var(--rare-folder-w) * .374), 178px);
}
html[data-test-premium-shell="1"] .mono-rare-folder-flap { top: 50%; }
@media (max-width: 760px) {
  html[data-test-premium-shell="1"] .mono-rare-folder { --rare-folder-w: min(360px, calc(100vw - 32px)); }
  html[data-test-premium-shell="1"] .mono-rare-folder-stage { height: 350px; }
  html[data-test-premium-shell="1"] .mono-rare-folder-card--create,
  html[data-test-premium-shell="1"] .mono-rare-folder-card--workflow,
  html[data-test-premium-shell="1"] .mono-rare-folder-card--assets { width: 128px; height: 168px; padding: 12px; }
  html[data-test-premium-shell="1"] .mono-rare-folder-card--tools,
  html[data-test-premium-shell="1"] .mono-rare-folder-card--account { width: 104px; height: 136px; padding: 10px; }
}

/* Five independent Rare UI folders. They deliberately overlap with offsets
   rather than forming a rigid row, so each destination reads as its own
   physical folder and the composition keeps the original component's depth. */
html[data-test-premium-shell="1"] .mono-rare-folder-stack {
  position: relative;
  /* Keep the utility folders in a clearly separated second row.  The
     previous 318/366px offsets let their stages overlap the primary row. */
  height: 920px;
  margin: 0 -10px;
  isolation: isolate;
}
html[data-test-premium-shell="1"] .mono-rare-folder-stack > .mono-rare-folder {
  position: absolute;
  width: var(--folder-size, 320px);
  height: var(--folder-stage-height, 390px);
  margin: 0;
  display: block;
  transform: translate3d(0,0,0);
  transition: filter .3s ease, transform .55s var(--studio-ease);
}
html[data-test-premium-shell="1"] .mono-rare-folder-stack > .mono-rare-folder:hover { z-index: 20; }
html[data-test-premium-shell="1"] .mono-rare-folder-stack > .mono-rare-folder--create { --folder-size: 350px; --rare-folder-w: 350px; --rare-folder-h: 263px; --folder-stage-height: 430px; left: 1%; top: 0; z-index: 5; }
html[data-test-premium-shell="1"] .mono-rare-folder-stack > .mono-rare-folder--workflow { --folder-size: 330px; --rare-folder-w: 330px; --rare-folder-h: 248px; --folder-stage-height: 410px; left: 33%; top: -22px; z-index: 6; }
html[data-test-premium-shell="1"] .mono-rare-folder-stack > .mono-rare-folder--assets { --folder-size: 318px; --rare-folder-w: 318px; --rare-folder-h: 239px; --folder-stage-height: 396px; left: 64%; top: 11px; z-index: 4; }
html[data-test-premium-shell="1"] .mono-rare-folder-stack > .mono-rare-folder--account { --folder-size: 274px; --rare-folder-w: 274px; --rare-folder-h: 206px; --folder-stage-height: 350px; left: 20%; top: 500px; z-index: 3; }
html[data-test-premium-shell="1"] .mono-rare-folder-stack > .mono-rare-folder--tools { --folder-size: 266px; --rare-folder-w: 266px; --rare-folder-h: 200px; --folder-stage-height: 340px; left: 57%; top: 570px; z-index: 2; }
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder-stage {
  width: 100%;
  height: 100%;
  overflow: visible;
}
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder-back {
  width: var(--rare-folder-w);
  height: calc(var(--rare-folder-w) * .84);
  top: 54%;
  left: 50%;
  border-radius: 25px;
}
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder-cards { inset: 0; }
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder-card {
  left: 50%;
  top: 57%;
  width: calc(var(--rare-folder-w) * .511);
  height: calc(var(--rare-folder-w) * .665);
  padding: calc(var(--rare-folder-w) * .0685);
  transform: translate(-50%, -50%) translate(40px, -10px) rotate(10deg);
}
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder-card .mono-destination-status { margin-top: 18%; }
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder-card h2 { margin-top: 8%; font-size: clamp(17px, calc(var(--rare-folder-w) * .075), 27px); }
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder-card p { font-size: clamp(10px, calc(var(--rare-folder-w) * .037), 13px); }
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder-card .mono-destination-cta { left: 12%; bottom: 9%; }
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder.is-hovered .mono-rare-folder-card { transform: translate(-50%, -50%) translate(70px, -30px) rotate(14deg); }
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder.is-open .mono-rare-folder-card { transform: translate(-50%, -50%) translate(70px, -160px) rotate(18deg); z-index: 10; }
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder-flap {
  left: 50%;
  top: 50%;
  width: var(--rare-folder-w);
  height: var(--rare-folder-h);
}
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder-flap-copy { left: 10%; right: 10%; bottom: 12%; }
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder-flap-copy strong { font-size: clamp(15px, calc(var(--rare-folder-w) * .067), 23px); }
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder-flap-copy small { font-size: clamp(9px, calc(var(--rare-folder-w) * .034), 11px); }
html[data-test-premium-shell="1"] .mono-rare-folder-stack .mono-rare-folder-flap-copy .mono-eyebrow { font-size: clamp(7px, calc(var(--rare-folder-w) * .031), 10px); }

/* Light mode: keep the translucent flap, but restore enough contrast for the
   document underneath it to remain legible.  The source component uses a
   dark/white theme contrast pair; the previous pale-on-pale override erased
   that distinction. */
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-stack .mono-rare-folder-card {
  background: #ffffff;
  border-color: #aeb7c3;
  color: #111827;
  box-shadow: 3px 5px 14px rgba(15,23,42,.18), inset 0 0 0 1px rgba(255,255,255,.96);
}
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-stack .mono-rare-folder-card .mono-eyebrow,
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-stack .mono-rare-folder-card .mono-rare-card-arrow,
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-stack .mono-rare-folder-card .mono-destination-status,
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-stack .mono-rare-folder-card .mono-destination-cta {
  color: #334155;
}
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-stack .mono-rare-folder-card p { color: #475569; }
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-stack .mono-rare-folder-card h2,
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-stack .mono-rare-folder-card h3 { color: #0f172a; text-shadow: 0 1px 0 rgba(255,255,255,.8); }
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-stack .mono-rare-folder-card .mono-eyebrow { font-weight: 800; }
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-stack .mono-rare-folder-flap-fill { fill: #e7ebf0; fill-opacity: .62 !important; }
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-stack .mono-rare-folder-flap-stroke { stroke: rgba(15,23,42,.42); }
html[data-test-premium-shell="1"][data-theme="light"] .mono-rare-folder-stack .mono-rare-folder-flap-blur { background: rgba(255,255,255,.012); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
@media (max-width: 760px) {
  html[data-test-premium-shell="1"] .mono-rare-folder-stack { height: 1010px; margin: 0 -4px; }
  html[data-test-premium-shell="1"] .mono-rare-folder-stack > .mono-rare-folder { transform: scale(.82); transform-origin: top left; }
  html[data-test-premium-shell="1"] .mono-rare-folder-stack > .mono-rare-folder--create { left: 0; top: 0; }
  html[data-test-premium-shell="1"] .mono-rare-folder-stack > .mono-rare-folder--workflow { left: 27%; top: 78px; }
  html[data-test-premium-shell="1"] .mono-rare-folder-stack > .mono-rare-folder--assets { left: 7%; top: 244px; }
  html[data-test-premium-shell="1"] .mono-rare-folder-stack > .mono-rare-folder--account { left: 38%; top: 570px; }
  html[data-test-premium-shell="1"] .mono-rare-folder-stack > .mono-rare-folder--tools { left: 4%; top: 745px; }
}
/* The history toolbar scrolls inside .main-area, below the global 62px
   topbar. The legacy rule used top:0, which lets the toolbar slide beneath
   the navigation and makes it appear not to stick. */
html[data-test-premium-shell="1"] body.create-page .create-feed-toolbar {
  position: sticky !important;
  top: 62px !important;
  z-index: 35 !important;
  background: var(--studio-surface) !important;
  border-color: var(--studio-line-strong) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .18) !important;
  scroll-margin-top: 62px !important;
}
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .create-feed-toolbar {
  background: var(--studio-surface) !important;
}
html[data-test-premium-shell="1"] body.drama-page .drama-panel-body {
  scroll-padding-top: 16px !important;
  scroll-padding-bottom: 20px !important;
}
html[data-test-premium-shell="1"] body.canvas-page .canvas-workspace {
  scroll-padding-top: 48px !important;
}

/* Final stacking order: duration trigger stays below the submit action. */
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field:first-child .test-create-duration,
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field:first-child .test-create-duration .dur-picker-trigger {
  position: relative !important;
  z-index: 1 !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-submit {
  z-index: 20 !important;
}

/* Motion-web inspired state feedback for the home workbench: motion explains
   readiness and hierarchy, while reduced-motion users keep the same layout. */
html[data-test-premium-shell="1"] .mono-home-hero--workbench > *,
html[data-test-premium-shell="1"] .mono-destinations--workbench .mono-destination,
html[data-test-premium-shell="1"] .mono-quick-grid--compact .mono-quick-card,
html[data-test-premium-shell="1"] .mono-home-bottom--workbench > * {
  animation: mono-home-rise .55s var(--studio-ease) both;
}
html[data-test-premium-shell="1"] .mono-home-hero--workbench > :last-child { animation-delay: .08s; }
html[data-test-premium-shell="1"] .mono-destinations--workbench .mono-destination:nth-child(2) { animation-delay: .08s; }
html[data-test-premium-shell="1"] .mono-quick-grid--compact .mono-quick-card:nth-child(2) { animation-delay: .12s; }
html[data-test-premium-shell="1"] .mono-quick-grid--compact .mono-quick-card:nth-child(3) { animation-delay: .16s; }
html[data-test-premium-shell="1"] .mono-destination-mark { transition: transform .7s var(--studio-ease), opacity .35s; }
html[data-test-premium-shell="1"] .mono-destination:hover .mono-destination-mark { transform: rotate(-6deg) translate(12px,-8px) scale(1.04); opacity: 1; }
html[data-test-premium-shell="1"] .mono-destination-status i { animation: mono-status-pulse 2.2s ease-in-out infinite; }
html[data-test-premium-shell="1"] .mono-primary-action span { display: inline-block; transition: transform .25s var(--studio-ease); }
html[data-test-premium-shell="1"] .mono-primary-action:hover span { transform: translate(3px,-3px); }
@keyframes mono-home-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mono-status-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(155,199,174,.08); } 50% { box-shadow: 0 0 0 6px rgba(155,199,174,.02); } }
@media (prefers-reduced-motion: reduce) {
  html[data-test-premium-shell="1"] .mono-home-hero--workbench > *,
  html[data-test-premium-shell="1"] .mono-destinations--workbench .mono-destination,
  html[data-test-premium-shell="1"] .mono-quick-grid--compact .mono-quick-card,
  html[data-test-premium-shell="1"] .mono-home-bottom--workbench > * { animation: none !important; }
  html[data-test-premium-shell="1"] .mono-destination-status i { animation: none !important; }
}

/* The duration trigger must never sit above the submit action when the two
   boxes meet near the bottom of the scroll rail. Its teleported picker panel
   remains independently layered when opened. */
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field:first-child .test-create-duration,
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field:first-child .test-create-duration .dur-picker-trigger {
  position: relative !important;
  z-index: 1 !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-submit {
  z-index: 20 !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field {
  height: auto !important;
  min-height: 58px !important;
  max-height: none !important;
}

@media (max-width: 900px) {
  /* Sticky submit controls overlap fields inside the one-column, scrollable
     inspector on narrow screens. Keep the action in normal document flow. */
  html[data-test-premium-shell="1"] body.create-page .test-create-submit {
    position: relative !important;
    inset: auto !important;
    bottom: auto !important;
    margin-top: 12px !important;
    box-shadow: none !important;
  }
  html[data-test-premium-shell="1"] body.create-page .test-create-inspector {
    padding-bottom: 24px !important;
    scroll-padding-bottom: 24px !important;
  }
}

/* The paired duration/resolution fields contain a label plus a control. Keep
   the control height at 42px, but let the field itself include its label; a
   fixed 42px field clips the label and makes the following creative-mode
   selector appear glued to the row above. */
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field > .test-create-duration,
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field > .test-create-duration .dur-picker,
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field > .test-create-select {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-field-row + .test-create-field {
  padding-top: 26px !important;
}

/* Final create-panel polish: keep the context row in view while the settings
   rail scrolls, and give the first dynamic video field enough breathing room
   to read as a separate choice. */
html[data-test-premium-shell="1"] body.create-page .test-create-inspector__head {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  margin: 0 -18px !important;
  padding: 18px 18px 15px !important;
  background: var(--studio-surface) !important;
  border-bottom: 1px solid var(--studio-line) !important;
}

html[data-test-premium-shell="1"] body.create-page .test-create-inspector__head + .test-create-field + .test-create-field:has(.test-create-field-hint) {
  padding-top: 26px !important;
}

@media (max-width: 640px) {
  html[data-test-premium-shell="1"] body.create-page .test-create-inspector__head {
    margin-left: -14px !important;
    margin-right: -14px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Fit the two creation surfaces without overlap on compact desktop widths. */
@media (min-width: 901px) and (max-width: 1200px) {
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench {
    position: fixed !important;
    inset: auto 16px 24px 16px !important;
    width: auto !important;
    height: min(480px, calc(100vh - 116px)) !important;
    max-height: min(480px, calc(100vh - 116px)) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 304px !important;
    gap: 12px !important;
    transform: none !important;
    pointer-events: none !important;
  }
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > #vid-bar-center,
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > .test-create-inspector {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    max-height: 100% !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

/* On larger desktop widths the inspector moves slightly inward and the
   prompt reserves a real gutter, so neither surface can cover the other. */
@media (min-width: 1201px) {
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > #vid-bar-center {
    left: calc(50% - 48px) !important;
    width: min(600px, calc(100vw - 760px)) !important;
  }
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > .test-create-inspector {
    right: clamp(48px, 8vw, 128px) !important;
  }
}

html[data-test-premium-shell="1"] body.account-page .account-nav,
html[data-test-premium-shell="1"] #panel-tools .tools-nav {
  background: var(--studio-surface) !important;
  border-color: var(--studio-line) !important;
  box-shadow: none !important;
}

html[data-test-premium-shell="1"] body.account-page .account-nav-link.active,
html[data-test-premium-shell="1"] #panel-tools .tools-nav-link.active {
  background: var(--studio-ink) !important;
  color: var(--studio-bg) !important;
  box-shadow: none !important;
}

/* Drama and canvas */
html[data-test-premium-shell="1"] body.drama-page .drama-workspace,
html[data-test-premium-shell="1"] body.canvas-page .canvas-workspace {
  background: var(--studio-bg) !important;
}

html[data-test-premium-shell="1"] body.drama-page .drama-topbar,
html[data-test-premium-shell="1"] body.canvas-page .canvas-topbar,
html[data-test-premium-shell="1"] body.drama-page .drama-panel {
  background: var(--studio-surface) !important;
  border-color: var(--studio-line) !important;
  box-shadow: none !important;
}

html[data-test-premium-shell="1"] body.drama-page .drama-panel,
html[data-test-premium-shell="1"] body.drama-page .drama-launcher-card,
html[data-test-premium-shell="1"] body.drama-page .drama-asset-item,
html[data-test-premium-shell="1"] body.drama-page .drama-storyboard-card {
  border-radius: 12px !important;
}

html[data-test-premium-shell="1"] body.drama-page .drama-asset-item:hover,
html[data-test-premium-shell="1"] body.drama-page .drama-storyboard-card:hover,
html[data-test-premium-shell="1"] body.drama-page .drama-storyboard-card.selected {
  border-color: var(--studio-line-strong) !important;
  background: var(--studio-copper-bg) !important;
}

html[data-test-premium-shell="1"] body.canvas-page .canvas-tool-btn:hover,
html[data-test-premium-shell="1"] body.canvas-page .canvas-tool-btn.active {
  border-color: var(--studio-line-strong) !important;
  background: var(--studio-copper-bg) !important;
  color: var(--studio-ink) !important;
}

html[data-test-premium-shell="1"] body.canvas-page .ai-bar {
  background: var(--studio-surface) !important;
  border-color: var(--studio-line-strong) !important;
  box-shadow: var(--studio-card-shadow) !important;
}

/* Canvas is already an interaction surface; remove the legacy warning veil
   on the test environment so the empty state and import/drop targets remain
   usable. */
html[data-test-premium-shell="1"] body.canvas-page .contact-us-modal:has(.contact-us-modal-title) {
  display: none !important;
}

/* 漫剧目前仍处于调试阶段，但阻塞式首屏弹窗会遮住可用的创建/打开入口。
   保留组件和关闭按钮，只在测试站视觉层将它降为页面内提示。 */
html[data-test-premium-shell="1"] body.drama-page .drama-debug-notice {
  position: fixed !important;
  inset: auto 24px 24px auto !important;
  display: block !important;
  width: min(360px, calc(100vw - 48px)) !important;
  height: auto !important;
  pointer-events: none !important;
  background: transparent !important;
  z-index: 30 !important;
}
html[data-test-premium-shell="1"] body.drama-page .drama-debug-notice .contact-us-modal-dim {
  display: none !important;
}
html[data-test-premium-shell="1"] body.drama-page .drama-debug-notice .contact-us-modal-panel {
  width: 100% !important;
  max-width: none !important;
  pointer-events: auto !important;
  border: 1px solid var(--studio-line-strong) !important;
  border-radius: 14px !important;
  background: var(--studio-surface) !important;
  box-shadow: var(--studio-card-shadow) !important;
}
html[data-test-premium-shell="1"] body.drama-page .drama-debug-notice .contact-us-modal-body {
  padding: 16px 18px !important;
}
html[data-test-premium-shell="1"] body.drama-page .drama-debug-notice .contact-us-modal-body > div > div:first-child {
  display: none !important;
}
html[data-test-premium-shell="1"] body.drama-page .drama-debug-notice .contact-us-modal-body p:first-of-type {
  margin: 0 !important;
  color: var(--studio-ink) !important;
  font-size: 13px !important;
}
html[data-test-premium-shell="1"] body.drama-page .drama-debug-notice .contact-us-modal-body p:last-of-type {
  margin: 6px 0 0 !important;
  color: var(--studio-muted) !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}
html[data-test-premium-shell="1"] body.drama-page .drama-debug-notice .contact-us-modal-foot {
  justify-content: flex-end !important;
  padding: 0 18px 14px !important;
}

/* Workflow keeps Vue Flow's real canvas and interactions, but adopts the
   prototype's quiet charcoal surface and compact monochrome cards. */
html[data-test-premium-shell="1"] body.workflow-page .workflow-page {
  position: fixed !important;
  top: 62px !important;
  right: 0 !important;
  bottom: 24px !important;
  left: 0 !important;
  inset: 62px 0 0 0 !important;
  background: #0b0e12 !important;
  color: var(--studio-ink) !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-toolbar {
  min-height: 58px !important;
  height: 58px !important;
  padding: 0 20px !important;
  background: #11151a !important;
  border-bottom: 1px solid var(--studio-line) !important;
  box-shadow: none !important;
}

/* The page shell is fixed below the global topbar.  The Vue Flow viewport
   occupies the remaining height, avoiding the blank/zero-height canvas that
   appears when an absolute child inherits the old main-area constraints. */
html[data-test-premium-shell="1"] body.workflow-page .workflow-page > .wf-toolbar {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-tbtn {
  border-radius: 8px !important;
  border-color: var(--studio-line-strong) !important;
  background: transparent !important;
  color: var(--studio-muted) !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-tbtn:hover {
  background: var(--studio-copper-bg) !important;
  border-color: var(--studio-ink) !important;
  color: var(--studio-ink) !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-tbtn--accent,
html[data-test-premium-shell="1"] body.workflow-page .wf-tbtn--primary {
  background: var(--studio-ink) !important;
  border-color: var(--studio-ink) !important;
  color: var(--studio-bg) !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-canvas {
  position: absolute !important;
  top: 58px !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  height: auto !important;
  background: #0b0e12 !important;
  background-image: radial-gradient(rgba(226,232,240,.16) .7px, transparent .7px) !important;
  background-size: 24px 24px !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-node {
  border: 1px solid rgba(226,232,240,.18) !important;
  border-radius: 12px !important;
  background: #f5f7fa !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.30) !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-node:hover,
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__node.selected .wf-node {
  border-color: #f5f7fa !important;
  box-shadow: 0 22px 48px rgba(0,0,0,.42) !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-node__head {
  min-height: 44px !important;
  background: #e8ecf1 !important;
  border-bottom: 1px solid #d4dbe3 !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-node__title,
html[data-test-premium-shell="1"] body.workflow-page .wf-node__body,
html[data-test-premium-shell="1"] body.workflow-page .wf-node__label {
  color: #17202b !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-node input,
html[data-test-premium-shell="1"] body.workflow-page .wf-node textarea,
html[data-test-premium-shell="1"] body.workflow-page .wf-node select,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .param-select-trigger {
  border-color: #cdd5df !important;
  border-radius: 7px !important;
  background: #fbfcfd !important;
  color: #17202b !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-btn--primary {
  background: #17202b !important;
  border-radius: 8px !important;
  color: #f5f7fa !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-btn--ghost,
html[data-test-premium-shell="1"] body.workflow-page .wf-mini-btn {
  border-color: #cdd5df !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #45515f !important;
}

html[data-test-premium-shell="1"] body.workflow-page .vue-flow__edge-path {
  stroke: #9aa6b4 !important;
  stroke-width: 1.8 !important;
  filter: none !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-handle {
  background: #17202b !important;
  border-color: #f5f7fa !important;
  box-shadow: 0 0 0 2px rgba(23,32,43,.25) !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-handle--in {
  background: #9aa6b4 !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-empty-state h2,
html[data-test-premium-shell="1"] body.workflow-page .wf-empty-state p {
  text-shadow: none !important;
}

/* Reduce decorative noise while keeping status colors meaningful. */
html[data-test-premium-shell="1"] .home-access-badge,
html[data-test-premium-shell="1"] .home-showcase-tag,
html[data-test-premium-shell="1"] .drama-batch-progress,
html[data-test-premium-shell="1"] .seedance25-intro-tag,
html[data-test-premium-shell="1"] .chip.active {
  filter: grayscale(.7);
}

@media (max-width: 840px) {
  html[data-test-premium-shell="1"] .mono-topbar { padding: 0 16px; }
  html[data-test-premium-shell="1"] .mono-topnav { display: none; }
  html[data-test-premium-shell="1"] body.home-page .home-root {
    width: calc(100% - 28px);
  }
  html[data-test-premium-shell="1"] body.home-page .home-hero {
    padding-top: 48px;
  }
}

/* Keep the seven-item Gooey navigation authoritative over earlier capsule passes. */
html[data-test-premium-shell="1"] .mono-topbar > .mono-topnav.gooey-nav-container {
  width: min(600px, calc(100vw - 280px)) !important;
  min-width: 520px !important;
  padding: 0 !important;
  display: block !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-test-premium-shell="1"] .mono-topbar > .mono-topnav.gooey-nav-container nav ul {
  gap: 2px !important;
  padding: 4px !important;
}
@media (max-width: 980px) and (min-width: 681px) {
  html[data-test-premium-shell="1"] .mono-topbar > .mono-topnav.gooey-nav-container {
    width: min(560px, calc(100vw - 185px)) !important;
    min-width: 0 !important;
  }
}
@media (max-width: 680px) {
  html[data-test-premium-shell="1"] .mono-topbar > .mono-topnav.gooey-nav-container {
    display: none !important;
  }
}

/* v63: remove the legacy header sheet that crossed through the exposed nav. */
html[data-test-premium-shell="1"] .mono-topbar {
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-test-premium-shell="1"] .mono-topbar > .mono-topnav.gooey-nav-container {
  top: 50% !important;
}

/* v67: the account destination uses its full label like the other nav items. */
html[data-test-premium-shell="1"] .gooey-nav-container .gooey-nav-account {
  width: 100% !important;
  padding: 0 9px !important;
  margin: 0 !important;
}
html[data-test-premium-shell="1"] .gooey-nav-container nav ul li:last-child {
  flex: 1 1 auto !important;
}

/* v66: reserve visible space for the navigation itself after removing announcements. */
html[data-test-premium-shell="1"] .mono-topbar {
  height: 64px !important;
  min-height: 64px !important;
  flex: 0 0 64px !important;
  box-sizing: border-box !important;
}
html[data-test-premium-shell="1"] .mono-topbar > .mono-topnav.gooey-nav-container {
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* v65: announcements were removed from App.vue; clear their legacy layout reserve. */
html[data-test-premium-shell="1"] body,
html[data-test-premium-shell="1"] #app-root,
html[data-test-premium-shell="1"] .app,
html[data-test-premium-shell="1"] .main-area {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
html[data-test-premium-shell="1"] .mono-topbar {
  z-index: 2147483000 !important;
  isolation: isolate !important;
  overflow: visible !important;
}
html[data-test-premium-shell="1"] .mono-topbar > .mono-topnav.gooey-nav-container {
  z-index: 2147483001 !important;
}

/* Mobile browsers can delay the reveal observer while the first route and GPU layer load. Keep the hero readable immediately. */
@media (max-width: 600px) {
  html[data-test-premium-shell="1"] body.home-page .sh-hero.sh-reveal,
  html[data-test-premium-shell="1"] body.home-page .sh-hero .sh-eyebrow,
  html[data-test-premium-shell="1"] body.home-page .sh-hero .focus-container,
  html[data-test-premium-shell="1"] body.home-page .sh-hero .sh-intro,
  html[data-test-premium-shell="1"] body.home-page .sh-hero .sh-actions,
  html[data-test-premium-shell="1"] body.home-page .sh-hero .sh-art,
  html[data-test-premium-shell="1"] body.home-page .sh-hero .sh-capabilities {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

@media (min-width: 841px) and (max-width: 1180px) {
  html[data-test-premium-shell="1"] .mono-topbar { padding: 0 18px; }
  html[data-test-premium-shell="1"] .mono-topnav a { padding-left: 8px; padding-right: 8px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-test-premium-shell="1"] *,
  html[data-test-premium-shell="1"] *::before,
  html[data-test-premium-shell="1"] *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Structure for the real Vue home view, matching the approved prototype. */
html[data-test-premium-shell="1"] .mono-page { min-height: calc(100vh - 62px); background: var(--studio-bg); color: var(--studio-ink); }
html[data-test-premium-shell="1"] .mono-shell { max-width: 1400px; margin: 0 auto; padding: 0 34px 90px; }
html[data-test-premium-shell="1"] .mono-crumb { padding-top: 31px; color: var(--studio-subtle); font-size: 12px; }
html[data-test-premium-shell="1"] .mono-home-hero { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 23px 0 42px; }
html[data-test-premium-shell="1"] .mono-home-hero h1 { margin: 0; font-size: clamp(36px, 5vw, 70px); line-height: 1.02; letter-spacing: -.07em; font-weight: 650; }
html[data-test-premium-shell="1"] .mono-home-hero h1 span { color: var(--studio-muted); }
html[data-test-premium-shell="1"] .mono-home-hero p { max-width: 310px; margin: 0; color: var(--studio-muted); font-size: 14px; }
html[data-test-premium-shell="1"] .mono-home-hero--workbench { align-items: center; padding-bottom: 34px; }
html[data-test-premium-shell="1"] .mono-home-hero--workbench { justify-content: flex-start; }
html[data-test-premium-shell="1"] .mono-home-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 320px; }
html[data-test-premium-shell="1"] .mono-home-hero--workbench .mono-home-hero-copy { display: none; }
html[data-test-premium-shell="1"] .mono-primary-action { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--studio-ink); color: var(--studio-bg); font-size: 13px; font-weight: 650; text-decoration: none; transition: transform .25s var(--studio-ease), box-shadow .25s var(--studio-ease); }
html[data-test-premium-shell="1"] .mono-primary-action:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.22); }
html[data-test-premium-shell="1"] .mono-destination-status { display: inline-flex; align-items: center; gap: 7px; color: var(--studio-muted); font-size: 11px; }
html[data-test-premium-shell="1"] .mono-destination-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--studio-green); box-shadow: 0 0 0 4px rgba(155,199,174,.10); }
html[data-test-premium-shell="1"] .mono-destination--workflow .mono-destination-status i { background: var(--studio-copper); }
html[data-test-premium-shell="1"] .mono-destination-cta { position: absolute; left: 26px; bottom: 24px; color: var(--studio-muted); font-size: 12px; transition: color .2s; }
html[data-test-premium-shell="1"] .mono-destination:hover .mono-destination-cta { color: var(--studio-ink); }
html[data-test-premium-shell="1"] .mono-quick-grid--compact .mono-quick-card { display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 16px 18px; }
html[data-test-premium-shell="1"] .mono-quick-grid--compact .mono-line-icon { margin: 0; font-size: 21px; }
html[data-test-premium-shell="1"] .mono-quick-grid--compact .mono-quick-card h3 { margin: 0; }
html[data-test-premium-shell="1"] .mono-quick-grid--compact .mono-quick-card p { margin: 4px 0 0; }
html[data-test-premium-shell="1"] .mono-quick-arrow { margin-left: auto; color: var(--studio-subtle); font-size: 16px; transition: transform .2s, color .2s; }
html[data-test-premium-shell="1"] .mono-quick-card:hover .mono-quick-arrow { transform: translate(2px,-2px); color: var(--studio-ink); }
html[data-test-premium-shell="1"] .mono-home-bottom--workbench { margin-top: 28px; }
html[data-test-premium-shell="1"] .mono-tool-folder { margin-top: 22px; }
html[data-test-premium-shell="1"] .mono-tool-folder-trigger { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0 18px; border: 1px solid var(--studio-line); border-radius: 14px; background: var(--studio-surface); color: var(--studio-ink); cursor: pointer; text-align: left; transition: border-color .2s, background .2s; }
html[data-test-premium-shell="1"] .mono-tool-folder-trigger:hover, html[data-test-premium-shell="1"] .mono-tool-folder.is-open .mono-tool-folder-trigger { border-color: var(--studio-line-strong); background: var(--studio-copper-bg); }
html[data-test-premium-shell="1"] .mono-tool-folder-tab { width: 22px; height: 16px; border: 1px solid var(--studio-muted); border-radius: 3px; opacity: .75; }
html[data-test-premium-shell="1"] .mono-tool-folder-trigger strong { font-size: 14px; font-weight: 600; }
html[data-test-premium-shell="1"] .mono-tool-folder-trigger .mono-eyebrow { margin-left: auto; }
html[data-test-premium-shell="1"] .mono-folder-hint { display: inline-flex; align-items: center; gap: 7px; color: var(--studio-muted); font-size: 11px; }
html[data-test-premium-shell="1"] .mono-tool-folder-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-height: 0; margin-top: 0; overflow: hidden; opacity: 0; transform: translateY(-8px); transition: max-height .4s var(--studio-ease), margin-top .3s, opacity .25s, transform .4s var(--studio-ease); }
html[data-test-premium-shell="1"] .mono-tool-folder.is-open .mono-tool-folder-items { max-height: 140px; margin-top: 12px; opacity: 1; transform: translateY(0); }
html[data-test-premium-shell="1"] .mono-tool-folder-items .mono-quick-card { min-height: 92px; }
@media (max-width: 760px) {
  html[data-test-premium-shell="1"] .mono-tool-folder-trigger { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  html[data-test-premium-shell="1"] .mono-tool-folder-trigger .mono-eyebrow { margin-left: 0; }
  html[data-test-premium-shell="1"] .mono-folder-hint { margin-left: auto; }
  html[data-test-premium-shell="1"] .mono-tool-folder-items { grid-template-columns: 1fr; }
  html[data-test-premium-shell="1"] .mono-tool-folder.is-open .mono-tool-folder-items { max-height: 360px; }
}

/* Rare UI-style folder: the cover is the visible front flap; all workspace
   cards live behind it and fan into view as one cohesive container. */
html[data-test-premium-shell="1"] .mono-feature-folder { position: relative; margin-top: 22px; }
html[data-test-premium-shell="1"] .mono-feature-folder-cover { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 70px; padding: 0 22px; border: 1px solid var(--studio-line-strong); border-radius: 16px; background: var(--studio-surface-2); color: var(--studio-ink); cursor: pointer; text-align: left; box-shadow: 0 14px 28px rgba(0,0,0,.12); transition: transform .35s var(--studio-ease), border-color .2s, background .2s; }
html[data-test-premium-shell="1"] .mono-feature-folder-cover:hover, html[data-test-premium-shell="1"] .mono-feature-folder.is-open .mono-feature-folder-cover { border-color: var(--studio-ink); background: var(--studio-surface-3); }
html[data-test-premium-shell="1"] .mono-feature-folder.is-open .mono-feature-folder-cover { border-radius: 16px 16px 10px 10px; box-shadow: 0 18px 34px rgba(0,0,0,.22); }
html[data-test-premium-shell="1"] .mono-feature-folder-tab { width: 32px; height: 22px; border: 1px solid var(--studio-muted); border-radius: 5px 5px 3px 3px; opacity: .8; }
html[data-test-premium-shell="1"] .mono-feature-folder-cover strong { font-size: 15px; font-weight: 600; }
html[data-test-premium-shell="1"] .mono-feature-folder-cover .mono-eyebrow { margin-left: auto; }
html[data-test-premium-shell="1"] .mono-feature-folder-body { position: relative; z-index: 2; max-height: 0; padding: 0 16px; overflow: hidden; opacity: 0; transform: translateY(-24px) scale(.985); transform-origin: top center; transition: max-height .55s var(--studio-ease), padding .35s, opacity .3s, transform .55s var(--studio-ease); }
html[data-test-premium-shell="1"] .mono-feature-folder.is-open .mono-feature-folder-body { max-height: 620px; padding: 16px; opacity: 1; transform: translateY(0); }
@media (min-width: 761px) {
  html[data-test-premium-shell="1"] .mono-feature-folder:hover .mono-feature-folder-body { max-height: 620px; padding: 16px; opacity: 1; transform: translateY(0); }
  html[data-test-premium-shell="1"] .mono-feature-folder:hover .mono-feature-folder-cover { transform: translateY(-3px); }
  html[data-test-premium-shell="1"] .mono-feature-folder:hover .mono-destination:nth-child(1) { transform: translateY(-3px) rotate(-.35deg); }
  html[data-test-premium-shell="1"] .mono-feature-folder:hover .mono-destination:nth-child(2) { transform: translateY(-3px) rotate(.35deg); }
}
html[data-test-premium-shell="1"] .mono-feature-folder .mono-destinations { margin: 0; }
html[data-test-premium-shell="1"] .mono-feature-folder .mono-tool-folder { margin-top: 16px; }
html[data-test-premium-shell="1"] .mono-feature-folder .mono-tool-folder-trigger { display: none; }
html[data-test-premium-shell="1"] .mono-feature-folder .mono-tool-folder-items { max-height: none; margin-top: 0; opacity: 1; transform: none; }
html[data-test-premium-shell="1"] .mono-feature-folder-body::before { content: ''; position: absolute; inset: 8px 4px 4px; border: 1px solid var(--studio-line); border-radius: 14px; background: var(--studio-bg); opacity: .78; pointer-events: none; }
html[data-test-premium-shell="1"] .mono-feature-folder-body > * { position: relative; z-index: 1; }
@media (min-width: 761px) {
  html[data-test-premium-shell="1"] .mono-feature-folder-body .mono-destination,
  html[data-test-premium-shell="1"] .mono-feature-folder-body .mono-quick-card { transition: transform .5s var(--studio-ease), box-shadow .3s, border-color .2s; }
  html[data-test-premium-shell="1"] .mono-feature-folder.is-open .mono-destinations .mono-destination:first-child { transform: translateY(-5px) rotate(-1deg); }
  html[data-test-premium-shell="1"] .mono-feature-folder.is-open .mono-destinations .mono-destination:nth-child(2) { transform: translateY(-5px) rotate(1deg); }
  html[data-test-premium-shell="1"] .mono-feature-folder.is-open .mono-feature-folder-items .mono-quick-card:first-child { transform: translateY(3px) rotate(-.8deg); }
  html[data-test-premium-shell="1"] .mono-feature-folder.is-open .mono-feature-folder-items .mono-quick-card:nth-child(2) { transform: translateY(6px); }
  html[data-test-premium-shell="1"] .mono-feature-folder.is-open .mono-feature-folder-items .mono-quick-card:nth-child(3) { transform: translateY(3px) rotate(.8deg); }
}
@media (max-width: 760px) {
  html[data-test-premium-shell="1"] .mono-feature-folder-cover { min-height: 62px; padding: 0 16px; }
  html[data-test-premium-shell="1"] .mono-feature-folder-cover .mono-eyebrow { margin-left: 0; }
  html[data-test-premium-shell="1"] .mono-feature-folder-body { padding: 0; }
  html[data-test-premium-shell="1"] .mono-feature-folder.is-open .mono-feature-folder-body { padding: 10px 0; }
  html[data-test-premium-shell="1"] .mono-feature-folder .mono-destinations { grid-template-columns: 1fr; }
}
html[data-test-premium-shell="1"] .mono-destinations { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; }
html[data-test-premium-shell="1"] .mono-destination { position: relative; min-height: 265px; padding: 26px; overflow: hidden; border: 1px solid var(--studio-line); border-radius: 24px; background: var(--studio-surface); color: var(--studio-ink); text-decoration: none; transition: .3s var(--studio-ease); }
html[data-test-premium-shell="1"] .mono-destination--dark { background: #171b21; color: #f5f7fa; border-color: #171b21; }
html[data-test-premium-shell="1"] .mono-destination:hover { transform: translateY(-4px); border-color: var(--studio-line-strong); box-shadow: var(--studio-card-shadow); }
html[data-test-premium-shell="1"] .mono-eyebrow { color: var(--studio-subtle); font: 700 10px/1.2 var(--font); letter-spacing: .15em; }
html[data-test-premium-shell="1"] .mono-round-arrow { position: absolute; right: 24px; top: 24px; width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--studio-line-strong); border-radius: 50%; color: var(--studio-muted); }
html[data-test-premium-shell="1"] .mono-destination h2 { margin: 52px 0 0; font-size: 27px; letter-spacing: -.055em; font-weight: 600; }
html[data-test-premium-shell="1"] .mono-destination p { max-width: 330px; margin: 11px 0 0; color: var(--studio-muted); font-size: 13px; }
html[data-test-premium-shell="1"] .mono-destination-mark { position: absolute; right: 17%; bottom: -24px; width: 230px; height: 150px; border: 1px solid var(--studio-line); border-radius: 38px; transform: rotate(-10deg); opacity: .8; }
html[data-test-premium-shell="1"] .mono-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
html[data-test-premium-shell="1"] .mono-quick-card { min-height: 150px; padding: 20px 22px; border: 1px solid var(--studio-line); border-radius: 20px; background: var(--studio-surface); color: var(--studio-ink); text-decoration: none; transition: .2s var(--studio-ease); }
html[data-test-premium-shell="1"] .mono-quick-card:hover { transform: translateY(-2px); border-color: var(--studio-line-strong); box-shadow: var(--studio-card-shadow); }
html[data-test-premium-shell="1"] .mono-line-icon { display: block; margin-bottom: 18px; color: var(--studio-muted); font-size: 25px; }
html[data-test-premium-shell="1"] .mono-quick-card h3 { margin: 0; font-size: 15px; font-weight: 600; }
html[data-test-premium-shell="1"] .mono-quick-card p { margin: 8px 0 0; color: var(--studio-muted); font-size: 12px; }
html[data-test-premium-shell="1"] .mono-home-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 38px; }
html[data-test-premium-shell="1"] .mono-list-block, html[data-test-premium-shell="1"] .mono-usage-card { min-height: 180px; }
html[data-test-premium-shell="1"] .mono-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
html[data-test-premium-shell="1"] .mono-section-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
html[data-test-premium-shell="1"] .mono-section-head button, html[data-test-premium-shell="1"] .mono-section-head a { border: 0; background: transparent; color: var(--studio-muted); font-size: 12px; text-decoration: none; }
html[data-test-premium-shell="1"] .mono-section-head button:hover, html[data-test-premium-shell="1"] .mono-section-head a:hover { color: var(--studio-ink); }
html[data-test-premium-shell="1"] .mono-project-list { border-top: 1px solid var(--studio-line); }
html[data-test-premium-shell="1"] .mono-project { display: flex; align-items: center; gap: 11px; padding: 15px 0; border-bottom: 1px solid var(--studio-line); }
html[data-test-premium-shell="1"] .mono-project > div { min-width: 0; flex: 1; }
html[data-test-premium-shell="1"] .mono-project strong, html[data-test-premium-shell="1"] .mono-project small { display: block; }
html[data-test-premium-shell="1"] .mono-project strong { font-size: 13px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-test-premium-shell="1"] .mono-project small { margin-top: 2px; color: var(--studio-muted); font-size: 11px; }
html[data-test-premium-shell="1"] .mono-project a { color: var(--studio-muted); font-size: 12px; text-decoration: none; }
html[data-test-premium-shell="1"] .mono-project a:hover { color: var(--studio-ink); }
html[data-test-premium-shell="1"] .mono-project-thumb { width: 43px; height: 34px; flex: 0 0 auto; border-radius: 8px; background: linear-gradient(135deg,#d9dde3,#9ba2aa); }
html[data-test-premium-shell="1"] .mono-project-thumb--dark { background: linear-gradient(135deg,#4a535f,#161a20); }
html[data-test-premium-shell="1"] .mono-usage-card { padding: 20px; border: 1px solid var(--studio-line); border-radius: 18px; background: var(--studio-surface); }
html[data-test-premium-shell="1"] .mono-usage-num { margin-top: 18px; font-size: 34px; letter-spacing: -.07em; }
html[data-test-premium-shell="1"] .mono-usage-num small { margin-left: 4px; color: var(--studio-muted); font-size: 12px; letter-spacing: 0; }
html[data-test-premium-shell="1"] .mono-meter { height: 4px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: var(--studio-surface-3); }
html[data-test-premium-shell="1"] .mono-meter i { display: block; height: 100%; background: var(--studio-ink); }
html[data-test-premium-shell="1"] .mono-usage-note { display: flex; justify-content: space-between; margin-top: 8px; color: var(--studio-muted); font-size: 11px; }
@media (max-width: 760px) {
  html[data-test-premium-shell="1"] .mono-shell { padding: 0 16px 60px; }
  html[data-test-premium-shell="1"] .mono-home-hero { display: block; padding-top: 22px; }
  html[data-test-premium-shell="1"] .mono-home-hero p { margin-top: 14px; }
  html[data-test-premium-shell="1"] .mono-destinations, html[data-test-premium-shell="1"] .mono-quick-grid, html[data-test-premium-shell="1"] .mono-home-bottom { grid-template-columns: 1fr; }
  html[data-test-premium-shell="1"] .mono-home-hero-copy { align-items: flex-start; }
}
/* Impeccable targeted pass — preserves workflow and model logic while fixing hierarchy, reachability, and edge states. */
html[data-test-premium-shell="1"] body.workflow-page .workflow-page {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
html[data-test-premium-shell="1"] body.workflow-page .workflow-page > .wf-toolbar {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 auto !important;
  height: 58px !important;
  min-height: 58px !important;
  z-index: 20 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .workflow-page > .wf-canvas {
  position: relative !important;
  inset: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  width: 100% !important;
  z-index: 1 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-toolbar__left,
html[data-test-premium-shell="1"] body.workflow-page .wf-toolbar__right {
  min-width: 0 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-toolbar__right {
  overflow-x: auto !important;
  scrollbar-width: none;
  justify-content: flex-end;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-toolbar__right::-webkit-scrollbar { display: none; }
html[data-test-premium-shell="1"] body.workflow-page .wf-tbtn,
html[data-test-premium-shell="1"] body.workflow-page .wf-side-trigger,
html[data-test-premium-shell="1"] body.workflow-page .wf-node__del,
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__controls-button {
  min-width: 44px !important;
  min-height: 44px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node__del {
  width: 44px !important;
  height: 44px !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 18px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-side-panel--left:not(.is-open):not(:hover):not(:focus-within) .wf-side-trigger {
  min-height: 44px !important;
  height: 44px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-canvas .vue-flow__controls-button {
  width: 44px !important;
  height: 44px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node input,
html[data-test-premium-shell="1"] body.workflow-page .wf-node textarea,
html[data-test-premium-shell="1"] body.workflow-page .wf-node select,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .param-select-trigger {
  font-size: 12px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node__body,
html[data-test-premium-shell="1"] body.workflow-page .wf-node__head { font-size: 12px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-node__del:focus-visible,
html[data-test-premium-shell="1"] body.workflow-page .wf-tbtn:focus-visible,
html[data-test-premium-shell="1"] body.workflow-page .wf-side-trigger:focus-visible,
html[data-test-premium-shell="1"] body.workflow-page .wf-node input:focus-visible,
html[data-test-premium-shell="1"] body.workflow-page .wf-node textarea:focus-visible,
html[data-test-premium-shell="1"] body.workflow-page .wf-node select:focus-visible,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .param-select-trigger:focus-visible {
  outline: 3px solid #8bdcff !important;
  outline-offset: 2px !important;
}
/* Vue Flow's built-in controls render icon-only buttons without labels. Add a
   visible hover title via CSS while the runtime pass below supplies semantics. */
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__controls-button {
  position: relative !important;
}
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__controls-button:focus-visible {
  outline: 3px solid #8bdcff !important;
  outline-offset: 2px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-flow-guide {
  max-width: min(285px, calc(100vw - 32px)) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-empty-state { pointer-events: none !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-empty-action {
  pointer-events: auto !important;
  min-height: 44px !important;
}

/* Create: keep the parameter rail and submit action together in the viewport. */
html[data-test-premium-shell="1"] body.create-page .test-create-inspector {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  padding-bottom: 14px !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-inspector__divider { margin-top: auto !important; }
html[data-test-premium-shell="1"] body.create-page .test-create-submit {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 3 !important;
  flex: 0 0 auto !important;
  min-height: 46px !important;
  box-shadow: 0 -10px 18px rgba(17, 21, 26, .82) !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-note {
  position: relative !important;
  z-index: 2 !important;
  flex: 0 0 auto !important;
  padding-top: 6px !important;
  background: var(--studio-surface) !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-select,
html[data-test-premium-shell="1"] body.create-page .test-create-duration { min-height: 42px !important; }
html[data-test-premium-shell="1"] body.create-page .test-create-inspector::-webkit-scrollbar { width: 8px; }
html[data-test-premium-shell="1"] body.create-page .test-create-inspector::-webkit-scrollbar-thumb { background: var(--studio-line-strong); border-radius: 8px; }

/* Empty states: one clear action, no competing upload surfaces. */
html[data-test-premium-shell="1"] #panel-tools .tools-card[aria-label="画质增强待处理列表"]:empty::after { content: '添加本地视频或选择创作成片后，系统会自动探测时长'; }
html[data-test-premium-shell="1"] body.canvas-page .canvas-empty-state button,
html[data-test-premium-shell="1"] body.assets-page .assets-empty button { min-height: 44px !important; }

@media (max-width: 840px) {
  html[data-test-premium-shell="1"] body.workflow-page .wf-toolbar { padding: 0 10px !important; }
  html[data-test-premium-shell="1"] body.workflow-page .wf-toolbar__left { flex: 0 0 auto !important; }
  html[data-test-premium-shell="1"] body.workflow-page .wf-toolbar__right { flex: 1 1 auto !important; }
  html[data-test-premium-shell="1"] body.workflow-page .wf-brand__copy strong { font-size: 12px !important; }
  html[data-test-premium-shell="1"] body.workflow-page .wf-tbtn { padding: 0 8px !important; }
  html[data-test-premium-shell="1"] body.workflow-page .wf-tbtn--guide { font-size: 0 !important; }
  html[data-test-premium-shell="1"] body.workflow-page .wf-tbtn--guide::before { content: '指南'; font-size: 12px; }
}
@media (max-width: 640px) {
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench { margin: 12px !important; }
  html[data-test-premium-shell="1"] body.create-page .test-create-inspector { padding: 14px !important; }
  html[data-test-premium-shell="1"] body.workflow-page .wf-toolbar__left .wf-toolbar__divider { display: none !important; }
}


/* -------------------------------------------------------------------------
   Canonical create-page layout
   -------------------------------------------------------------------------
   The rules above are historical compatibility layers.  This final block is
   the single authority for placement: history occupies a centered reading
   column, the prompt is centered in the viewport, and settings stay on the
   right.  It deliberately changes no Vue state, option lists, or submit code.
*/
@media (min-width: 901px) {
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench {
    position: fixed !important;
    inset: auto 0 24px 0 !important;
    width: 100% !important;
    height: min(480px, calc(100vh - 116px)) !important;
    max-height: min(480px, calc(100vh - 116px)) !important;
    margin: 0 !important;
    display: block !important;
    transform: none !important;
    pointer-events: none !important;
    z-index: 100 !important;
  }

  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > #vid-bar-center {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    bottom: 0 !important;
    /* Leave a 24px gutter before the right inspector at every desktop width. */
    width: min(760px, calc(100vw - 680px)) !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 214px !important;
    max-height: min(480px, calc(100vh - 116px)) !important;
    transform: translateX(-50%) !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > .test-create-inspector {
    position: absolute !important;
    left: auto !important;
    right: clamp(24px, 6vw, 96px) !important;
    bottom: 0 !important;
    width: 304px !important;
    min-width: 304px !important;
    height: min(480px, calc(100vh - 116px)) !important;
    max-height: min(480px, calc(100vh - 116px)) !important;
    pointer-events: auto !important;
  }

  /* Keep the feed clear of the fixed right rail while centering its cards in
     the remaining reading area.  Extra bottom room keeps the last card clear
     of the prompt surface. */
  html[data-test-premium-shell="1"] body.create-page.has-results .create-feed-area {
    box-sizing: border-box !important;
    width: min(840px, calc(100vw - 400px)) !important;
    max-width: 840px !important;
    margin-left: max(24px, calc((100vw - 1192px) / 2)) !important;
    margin-right: 376px !important;
    padding: 12px 0 540px !important;
  }

  html[data-test-premium-shell="1"] body.create-page.has-results .create-result-cards {
    width: min(840px, calc(100% - 48px)) !important;
    max-width: 840px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Final control alignment and duration-panel containment. */
html[data-test-premium-shell="1"] body.create-page .test-create-select .param-select-trigger,
html[data-test-premium-shell="1"] body.create-page .test-create-mode-select .param-select-trigger,
html[data-test-premium-shell="1"] body.create-page .model-list-select-trigger {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 34px !important;
  line-height: 1 !important;
  overflow: hidden !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-select .param-select-value,
html[data-test-premium-shell="1"] body.create-page .test-create-mode-select .param-select-value,
html[data-test-premium-shell="1"] body.create-page .model-list-select-value {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: calc(100% - 56px) !important;
  max-width: calc(100% - 56px) !important;
  transform: translate(-50%, -50%) !important;
  text-align: center !important;
  line-height: 16px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-select .param-select-icon,
html[data-test-premium-shell="1"] body.create-page .test-create-mode-select .param-select-icon,
html[data-test-premium-shell="1"] body.create-page .model-list-trigger-icon {
  position: absolute !important;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-select .param-select-arrow,
html[data-test-premium-shell="1"] body.create-page .test-create-mode-select .param-select-arrow,
html[data-test-premium-shell="1"] body.create-page .model-list-trigger-arrow {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-select.model-list-select,
html[data-test-premium-shell="1"] body.create-page .test-create-select.model-list-select .model-list-select-trigger {
  display: block !important;
  width: 100% !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-duration .dur-picker-trigger {
  justify-content: center !important;
  text-align: center !important;
}
/* DurationPicker's internal root is 65px in the legacy stylesheet.  In the
   inspector's paired row it must use the same 42px control box as a select. */
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field,
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field > .test-create-duration,
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field > .test-create-duration .dur-picker {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  box-sizing: border-box !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field > .test-create-select {
  height: 42px !important;
  min-height: 42px !important;
}
html[data-test-premium-shell="1"] body.create-page .dur-picker-panel--portal {
  box-sizing: border-box !important;
  width: min(320px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 32px) !important;
  /* The component's legacy centered-panel rule uses translateX(-50%).
     Portal coordinates are already viewport coordinates, so cancel it. */
  transform: none !important;
  overflow: hidden !important;
  padding: 16px !important;
  border: 1px solid var(--studio-line-strong) !important;
  border-radius: 12px !important;
  background: var(--studio-surface-2) !important;
}
html[data-test-premium-shell="1"] body.create-page .dur-picker-panel--portal .dur-picker-range {
  width: 100% !important;
  max-width: 100% !important;
  accent-color: var(--studio-ink) !important;
}
html[data-test-premium-shell="1"] body.create-page .dur-picker-panel--portal .dur-picker-range::-webkit-slider-runnable-track {
  height: 8px !important;
  border-radius: 99px !important;
  background: linear-gradient(to right, var(--studio-ink) 0%, var(--studio-ink) var(--fill, 60%), var(--studio-line-strong) var(--fill, 60%), var(--studio-line-strong) 100%) !important;
}
html[data-test-premium-shell="1"] body.create-page .dur-picker-panel--portal .dur-picker-range::-moz-range-track {
  height: 8px !important;
  border-radius: 99px !important;
  background: var(--studio-line-strong) !important;
}
html[data-test-premium-shell="1"] body.create-page .dur-picker-panel--portal .dur-picker-range::-moz-range-progress {
  height: 8px !important;
  border-radius: 99px !important;
  background: var(--studio-ink) !important;
}
html[data-test-premium-shell="1"] body.create-page .dur-picker-panel--portal .dur-picker-range::-webkit-slider-thumb {
  width: 18px !important;
  height: 18px !important;
  margin-top: -6px !important;
  background: #fff !important;
  border: 2px solid #111827 !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,.72), 0 2px 8px rgba(0,0,0,.38) !important;
}
html[data-test-premium-shell="1"] body.create-page .dur-picker-panel--portal .dur-picker-range::-moz-range-thumb {
  width: 16px !important;
  height: 16px !important;
  background: #fff !important;
  border: 2px solid #111827 !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,.72), 0 2px 8px rgba(0,0,0,.38) !important;
}

@media (min-width: 1800px) {
  /* On wide screens the reading column can use the full 1080px measure and
     remains visually centered without touching the right inspector. */
  html[data-test-premium-shell="1"] body.create-page.has-results .create-feed-area {
    width: min(1080px, calc(100vw - 440px)) !important;
    max-width: 1080px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 900px) {
  /* A narrow viewport gets a normal one-column flow; nothing is fixed over
     the prompt or the task list. */
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    margin: 18px 14px 24px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    transform: none !important;
    pointer-events: auto !important;
  }
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > #vid-bar-center,
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > .test-create-inspector {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    transform: none !important;
  }
  html[data-test-premium-shell="1"] body.create-page.has-results .create-feed-area {
    width: calc(100% - 28px) !important;
    max-width: none !important;
    margin: 0 14px !important;
    padding: 12px 0 36px !important;
  }
  html[data-test-premium-shell="1"] body.create-page.has-results .create-result-cards {
    width: 100% !important;
    max-width: none !important;
  }
}

/* Final scroll containment for the settings rail. */
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field {
  height: auto !important;
  min-height: 58px !important;
  max-height: none !important;
  box-sizing: border-box !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field > .test-create-duration,
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field > .test-create-duration .dur-picker,
html[data-test-premium-shell="1"] body.create-page .test-create-field-row > .test-create-field > .test-create-select {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-field-row + .test-create-field {
  padding-top: 26px !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-inspector {
  scroll-padding-bottom: 90px !important;
  padding-bottom: 90px !important;
}

/* Compact the desktop result card without changing the submitted media ratio. */
@media (min-width: 901px) {
  html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards {
    width: min(560px, calc(100% - 24px)) !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card {
    width: 100% !important;
    max-width: 560px !important;
  }
}
/* Smaller desktop task cards for a compact workbench view. */
@media (min-width: 901px) {
  html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards,
  html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card {
    width: min(420px, calc(100% - 24px)) !important;
    max-width: 420px !important;
  }
}
/* Keep every submitted ratio intact while bounding the visual card height. */
@media (min-width: 901px) {
  html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card {
    width: min(420px, calc((100vh - 250px) * var(--task-card-ratio)), calc(100% - 24px)) !important;
    max-width: min(420px, calc((100vh - 250px) * var(--task-card-ratio))) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 9:16 portrait-safe result stage: fit the visible desktop workbench without cropping. */
@media (min-width: 901px) {
  html[data-test-premium-shell="1"] body.create-page.has-results .create-feed-area {
    padding-top: 64px !important;
  }

  html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list {
    box-sizing: border-box !important;
    padding-top: 0 !important;
    padding-bottom: 560px !important;
  }

  html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards {
    width: min(560px, calc(100% - 24px)) !important;
    max-width: 560px !important;
  }

  html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card {
    /* The stage height is the limiting dimension; width follows each task ratio. */
    width: min(
      560px,
      calc(clamp(320px, calc(100vh - 535px), 460px) * var(--task-card-ratio)),
      calc(100% - 24px)
    ) !important;
    max-width: min(
      560px,
      calc(clamp(320px, calc(100vh - 535px), 460px) * var(--task-card-ratio))
    ) !important;
  }

  html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-stage {
    max-height: clamp(320px, calc(100vh - 535px), 460px) !important;
  }
}

/* Portrait result cards: reserve space below the sticky history toolbar and
   keep the media plus its metadata above the fixed prompt workbench. */
@media (min-width: 901px) {
  html[data-test-premium-shell="1"] body.create-page.has-results .create-feed-area {
    padding-top: 12px !important;
  }

  html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list {
    padding-top: 64px !important;
    padding-bottom: 560px !important;
  }

  html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card {
    width: min(
      560px,
      calc(clamp(280px, calc(100vh - 580px), 420px) * var(--task-card-ratio)),
      calc(100% - 24px)
    ) !important;
    max-width: min(
      560px,
      calc(clamp(280px, calc(100vh - 580px), 420px) * var(--task-card-ratio))
    ) !important;
  }

  html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-stage {
    max-height: clamp(280px, calc(100vh - 580px), 420px) !important;
  }
}

/* -------------------------------------------------------------------------
   Ratio-aware history cards
   -------------------------------------------------------------------------
   Keep the submitted model ratio while bounding the media by the visible
   workbench height. The card width is derived from the ratio and the height
   budget, so portrait jobs no longer become screen-tall columns.
*/
html[data-test-premium-shell="1"] body.create-page.has-results {
  --history-card-max-h: clamp(240px, 52vh, 420px);
}

html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards {
  align-items: center !important;
}

html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card {
  box-sizing: border-box !important;
  width: min(
    calc(100% - 24px),
    calc(var(--history-card-max-h) * var(--task-card-ratio))
  ) !important;
  max-width: min(
    calc(100% - 24px),
    calc(var(--history-card-max-h) * var(--task-card-ratio))
  ) !important;
  min-width: 0 !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: hidden !important;
}

html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-stage {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: var(--task-card-ratio) !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-info {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-prompt,
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-meta,
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-actions {
  min-width: 0 !important;
  max-width: 100% !important;
}

html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-prompt-content {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}

html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

@media (min-width: 901px) {
  html[data-test-premium-shell="1"] body.create-page.has-results {
    --history-card-max-h: clamp(280px, calc(100vh - 300px), 420px);
  }

  html[data-test-premium-shell="1"] body.create-page.has-results .create-feed-area {
    padding-bottom: 600px !important;
  }
}

@media (max-width: 900px) {
  html[data-test-premium-shell="1"] body.create-page.has-results {
    --history-card-max-h: clamp(240px, 52vh, 420px);
  }

  html[data-test-premium-shell="1"] body.create-page.has-results .create-feed-area {
    padding-bottom: 48px !important;
  }
}

/* Readable outer card with ratio-preserving media inside. */
html[data-test-premium-shell="1"] body.create-page.has-results {
  --history-card-width: min(560px, calc(100% - 24px));
}

html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card {
  width: var(--history-card-width) !important;
  max-width: var(--history-card-width) !important;
  min-width: 0 !important;
}

html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-stage {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: var(--history-card-max-h) !important;
  aspect-ratio: auto !important;
  background: #090b0e !important;
}

html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-stage > .crc-grid-reveal-media,
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-stage > .crc-image,
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-stage > .crc-video {
  flex: 0 0 auto !important;
  width: auto !important;
  height: 100% !important;
  aspect-ratio: var(--task-card-ratio) !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-stage > .crc-grid-reveal-media {
  position: relative !important;
}

@media (max-width: 900px) {
  html[data-test-premium-shell="1"] body.create-page.has-results {
    --history-card-width: min(560px, calc(100vw - 28px));
  }
}

/* The task card already exposes status in the top badge and metadata below.
   Keep the Grid Reveal surface clean by removing its duplicate lower-left
   progress/caption pill. */
html[data-test-premium-shell="1"] body.create-page .crc-grid-reveal-caption {
  display: none !important;
}

/* -------------------------------------------------------------------------
   Frosted glass frames: history toolbar + prompt workbench
   ------------------------------------------------------------------------- */
html[data-test-premium-shell="1"] body.create-page .create-feed-toolbar,
html[data-test-premium-shell="1"] body.create-page .test-create-workbench > #vid-bar-center {
  background: linear-gradient(
    135deg,
    rgba(24, 29, 36, .58),
    rgba(12, 16, 22, .42)
  ) !important;
  border: 1px solid rgba(226, 232, 240, .20) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .24),
    0 8px 24px rgba(0, 0, 0, .16),
    inset 0 1px 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 rgba(255, 255, 255, .04) !important;
  -webkit-backdrop-filter: blur(26px) saturate(145%) !important;
  backdrop-filter: blur(26px) saturate(145%) !important;
}

html[data-test-premium-shell="1"] body.create-page .create-feed-toolbar {
  isolation: isolate;
}

html[data-test-premium-shell="1"] body.create-page .test-create-workbench > #vid-bar-center {
  background-color: rgba(16, 20, 26, .44) !important;
}

html[data-test-premium-shell="1"] body.create-page .test-create-workbench .vid-center-prompt {
  background: rgba(24, 29, 36, .52) !important;
  border-color: rgba(226, 232, 240, .22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .10),
    0 10px 28px rgba(0, 0, 0, .12) !important;
  -webkit-backdrop-filter: blur(20px) saturate(135%) !important;
  backdrop-filter: blur(20px) saturate(135%) !important;
}

html[data-test-premium-shell="1"][data-theme="light"] body.create-page .create-feed-toolbar,
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-workbench > #vid-bar-center {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, .68),
    rgba(244, 247, 250, .48)
  ) !important;
  border-color: rgba(148, 163, 184, .28) !important;
  box-shadow:
    0 24px 60px rgba(51, 65, 85, .14),
    0 8px 24px rgba(51, 65, 85, .08),
    inset 0 1px 0 rgba(255, 255, 255, .86) !important;
}

html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-workbench .vid-center-prompt {
  background: rgba(255, 255, 255, .56) !important;
  border-color: rgba(148, 163, 184, .30) !important;
}

/* High-contrast prompt actions in dark mode. */
html[data-test-premium-shell="1"][data-theme="dark"] body.create-page .vid-center-magic-btn,
html[data-test-premium-shell="1"][data-theme="dark"] body.create-page .vid-center-reverse-btn {
  color: #e8eef5 !important;
  border-color: rgba(226, 232, 240, .28) !important;
  background: rgba(255, 255, 255, .075) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .13),
    0 6px 16px rgba(0, 0, 0, .14) !important;
}

html[data-test-premium-shell="1"][data-theme="dark"] body.create-page .vid-center-magic-btn svg,
html[data-test-premium-shell="1"][data-theme="dark"] body.create-page .vid-center-reverse-btn svg {
  width: 16px !important;
  height: 16px !important;
  stroke: #f2f6fb !important;
  color: #f2f6fb !important;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, .18)) !important;
}

html[data-test-premium-shell="1"][data-theme="dark"] body.create-page .vid-center-magic-btn:hover:not(:disabled),
html[data-test-premium-shell="1"][data-theme="dark"] body.create-page .vid-center-reverse-btn:hover:not(:disabled) {
  color: #ffffff !important;
  border-color: rgba(226, 232, 240, .52) !important;
  background: rgba(226, 232, 240, .16) !important;
}

html[data-test-premium-shell="1"][data-theme="dark"] body.create-page .vid-center-magic-btn:hover:not(:disabled) svg,
html[data-test-premium-shell="1"][data-theme="dark"] body.create-page .vid-center-reverse-btn:hover:not(:disabled) svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* Portal parameter menus stay inside the settings rail on the create page. */
html[data-test-premium-shell="1"] body.create-page .param-select-dropdown--portal {
  box-sizing: border-box !important;
  max-width: calc(100vw - 24px) !important;
  z-index: 10040 !important;
}

/* -------------------------------------------------------------------------
   Capsule top navigation inspired by the supplied Uiverse navbody pattern.
   Router links stay unchanged; only the visual shell and active/hover states
   are replaced.
   ------------------------------------------------------------------------- */
html[data-test-premium-shell="1"] .mono-topnav {
  box-sizing: border-box !important;
  width: min(420px, calc(100vw - 240px)) !important;
  min-width: 300px !important;
  height: 46px !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 2px !important;
  border: 1px solid rgba(226, 232, 240, .14) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .045) !important;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .10) !important;
  -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
  backdrop-filter: blur(18px) saturate(135%) !important;
}

html[data-test-premium-shell="1"] .mono-topnav a {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 36px !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  color: var(--studio-muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition:
    color .18s var(--studio-ease),
    background .18s var(--studio-ease),
    transform .18s var(--studio-ease),
    box-shadow .18s var(--studio-ease) !important;
}

html[data-test-premium-shell="1"] .mono-topnav a:hover {
  color: var(--studio-ink) !important;
  background: rgba(255, 255, 255, .085) !important;
  transform: translateY(-1px) !important;
}

html[data-test-premium-shell="1"] .mono-topnav a.active {
  color: var(--studio-ink) !important;
  background: rgba(255, 255, 255, .12) !important;
  box-shadow:
    0 5px 14px rgba(0, 0, 0, .16),
    inset 0 1px 0 rgba(255, 255, 255, .13) !important;
  font-weight: 650 !important;
}

html[data-test-premium-shell="1"][data-theme="light"] .mono-topnav {
  border-color: rgba(100, 116, 139, .18) !important;
  background: rgba(255, 255, 255, .62) !important;
  box-shadow:
    0 10px 28px rgba(51, 65, 85, .10),
    inset 0 1px 0 rgba(255, 255, 255, .90) !important;
}

html[data-test-premium-shell="1"][data-theme="light"] .mono-topnav a:hover {
  color: #111827 !important;
  background: rgba(15, 23, 42, .06) !important;
}

html[data-test-premium-shell="1"][data-theme="light"] .mono-topnav a.active {
  color: #111827 !important;
  background: rgba(15, 23, 42, .10) !important;
  box-shadow:
    0 4px 12px rgba(51, 65, 85, .10),
    inset 0 1px 0 rgba(255, 255, 255, .78) !important;
}

@media (max-width: 900px) {
  html[data-test-premium-shell="1"] .mono-topnav {
    width: min(360px, calc(100vw - 190px)) !important;
    min-width: 0 !important;
  }

  html[data-test-premium-shell="1"] .mono-topnav a {
    padding-left: 7px !important;
    padding-right: 7px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 680px) {
  html[data-test-premium-shell="1"] .mono-topnav {
    display: none !important;
  }
}

/* v48 navigation correction: keep the capsule above page layers, show a clear
   active surface, and give home the requested house glyph. */
html[data-test-premium-shell="1"] .mono-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  overflow: visible !important;
  isolation: isolate !important;
}

html[data-test-premium-shell="1"] .mono-topnav {
  top: 50% !important;
  z-index: 1002 !important;
  transform: translate(-50%, -50%) !important;
  overflow: visible !important;
}

html[data-test-premium-shell="1"] .mono-topnav a {
  position: relative !important;
  z-index: 1 !important;
}

html[data-test-premium-shell="1"] .mono-nav-home-icon {
  width: 15px !important;
  height: 15px !important;
  margin-right: 5px !important;
  flex: 0 0 auto !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

html[data-test-premium-shell="1"] .mono-home-link {
  gap: 0 !important;
}

html[data-test-premium-shell="1"] .mono-topnav a.active {
  color: #071018 !important;
  background: linear-gradient(135deg, #dceeff 0%, #a9cae2 100%) !important;
  box-shadow:
    0 6px 18px rgba(116, 168, 204, .30),
    inset 0 1px 0 rgba(255, 255, 255, .82) !important;
  font-weight: 700 !important;
}

html[data-test-premium-shell="1"] .mono-topnav a.active .mono-nav-home-icon {
  stroke: #071018 !important;
}

html[data-test-premium-shell="1"][data-theme="light"] .mono-topnav a.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #334155 0%, #64748b 100%) !important;
  box-shadow:
    0 6px 16px rgba(51, 65, 85, .28),
    inset 0 1px 0 rgba(255, 255, 255, .26) !important;
}

html[data-test-premium-shell="1"][data-theme="light"] .mono-topnav a.active .mono-nav-home-icon {
  stroke: #ffffff !important;
}

@media (max-width: 900px) and (min-width: 681px) {
  html[data-test-premium-shell="1"] .mono-topnav {
    width: min(420px, calc(100vw - 220px)) !important;
  }
}
/* v49: the legacy global announcement layer uses z-index: 9000. Keep the
   redesigned navigation above that layer so its upper arc is never clipped. */
html[data-test-premium-shell="1"] .mono-topbar {
  position: sticky !important;
  z-index: 10050 !important;
  isolation: isolate !important;
}

html[data-test-premium-shell="1"] .mono-topnav {
  z-index: 10051 !important;
}
/* v50: move the capsule below the legacy top edge so the full upper arc is
   visible even when the global header surface is present. */
html[data-test-premium-shell="1"] .mono-topnav {
  top: calc(50% + 8px) !important;
}
/* v51: center the tools workspace on wide screens. The legacy tools panel
   stretched from the left edge, leaving the whole work area visually pinned
   left even though the top navigation is centered. */
html[data-test-premium-shell="1"] #panel-tools {
  width: 100% !important;
  max-width: none !important;
  align-items: stretch !important;
}

html[data-test-premium-shell="1"] #panel-tools .tools-page {
  width: min(1280px, calc(100% - 48px)) !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 28px 0 64px !important;
  gap: 32px !important;
  box-sizing: border-box !important;
}

html[data-test-premium-shell="1"] #panel-tools .tools-main {
  min-width: 0 !important;
  width: 100% !important;
}

@media (max-width: 680px) {
  html[data-test-premium-shell="1"] #panel-tools .tools-page {
    width: calc(100% - 24px) !important;
    padding-top: 18px !important;
    gap: 16px !important;
  }
}
/* v52: scope the tools layout to its view. The router also adds the
   `tools-page` class to body, and the legacy unscoped .tools-page rule was
   applying flex/padding to body itself, shrinking the app and pinning it left. */
html[data-test-premium-shell="1"] body.tools-page {
  display: block !important;
  width: 100vw !important;
  min-width: 0 !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
}

html[data-test-premium-shell="1"] body.tools-page > #app {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html[data-test-premium-shell="1"] body.tools-page #app-root,
html[data-test-premium-shell="1"] body.tools-page .app {
  width: 100% !important;
  min-width: 0 !important;
}
/* v53 — workflow studio hierarchy pass. Visual-only: preserves Vue Flow and node behavior. */
html[data-test-premium-shell="1"] body.workflow-page .workflow-page {
  --wf-bg: #101214;
  --wf-surface: rgba(28, 30, 33, .92);
  --wf-surface-strong: rgba(35, 37, 40, .96);
  --wf-line: rgba(255,255,255,.14);
  --wf-line-strong: rgba(255,255,255,.24);
  --wf-text: #f5f4ef;
  --wf-muted: #a9a9a4;
  background: var(--wf-bg) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-toolbar {
  height: 60px !important;
  min-height: 60px !important;
  padding: 0 22px !important;
  background: rgba(19, 20, 22, .88) !important;
  border-bottom: 1px solid var(--wf-line) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.16) !important;
  backdrop-filter: blur(18px) saturate(90%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(90%) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-toolbar__right { gap: 7px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-live-status { color: #bcbcb7 !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-live-status i { background: #d5d4ce !important; box-shadow: 0 0 10px rgba(255,255,255,.48) !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-tbtn { min-height: 34px !important; height: 34px !important; padding: 0 11px !important; border-radius: 7px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-canvas {
  top: 60px !important;
  background-color: #101214 !important;
  background-image: radial-gradient(rgba(255,255,255,.13) .7px, transparent .7px) !important;
  background-size: 28px 28px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-side-panel--left {
  top: 0 !important;
  bottom: 0 !important;
  width: 238px !important;
  padding: 20px 16px !important;
  border-right: 1px solid var(--wf-line) !important;
  background: rgba(20, 22, 24, .86) !important;
  box-shadow: 18px 0 42px rgba(0,0,0,.16) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-side-panel--left:not(.is-open) { width: 44px !important; padding: 0 !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-side-panel--left:not(.is-open) .wf-side-trigger { width: 44px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-side-trigger { min-height: 44px !important; border-radius: 8px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-side-panel--left.is-open ~ .wf-canvas { }
html[data-test-premium-shell="1"] body.workflow-page .wf-node {
  width: 356px !important;
  min-width: 356px !important;
  box-sizing: border-box !important;
  border: 1px solid var(--wf-line-strong) !important;
  border-radius: 14px !important;
  background: var(--wf-surface) !important;
  color: var(--wf-text) !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.08) !important;
  backdrop-filter: blur(16px) saturate(85%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(85%) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node--script { width: 520px !important; min-width: 520px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-node--board { width: 420px !important; min-width: 420px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-node--media,
html[data-test-premium-shell="1"] body.workflow-page .wf-node--compose { width: 420px !important; min-width: 420px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-node--tool { width: 320px !important; min-width: 320px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-node:hover { transform: translateY(-1px) !important; border-color: rgba(255,255,255,.45) !important; box-shadow: 0 22px 46px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.12) !important; }
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__node.selected .wf-node { border-color: rgba(255,255,255,.75) !important; box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 22px 48px rgba(0,0,0,.44) !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-node__head { min-height: 48px !important; padding: 0 14px !important; gap: 9px !important; background: rgba(255,255,255,.11) !important; border-bottom: 1px solid var(--wf-line) !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-node__title { font-size: 13px !important; letter-spacing: .02em !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-node__body { padding: 14px !important; gap: 10px !important; color: #d9d8d3 !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-node__icon--tool svg { width: 17px !important; height: 17px !important; fill: none !important; stroke: currentColor !important; stroke-width: 1.7 !important; stroke-linecap: round !important; stroke-linejoin: round !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-node__icon--tool { color: #e5e4df !important; opacity: .88 !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-node__del { width: 36px !important; height: 36px !important; min-width: 36px !important; min-height: 36px !important; border-radius: 8px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-handle { width: 14px !important; height: 14px !important; border-width: 3px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-handle-label { font-size: 10px !important; opacity: .8 !important; }
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__edge-path { stroke: #bbb9b2 !important; stroke-width: 2.1 !important; filter: drop-shadow(0 0 2px rgba(255,255,255,.16)) !important; }
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__edge.animated .vue-flow__edge-path { stroke: #fff !important; stroke-dasharray: 7 5 !important; }
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__controls { right: 18px !important; bottom: 18px !important; border: 1px solid var(--wf-line) !important; border-radius: 10px !important; background: rgba(24,26,28,.88) !important; box-shadow: 0 12px 28px rgba(0,0,0,.3) !important; backdrop-filter: blur(12px) !important; }
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__controls-button { width: 36px !important; height: 36px !important; background: transparent !important; fill: #dddcd7 !important; border-bottom-color: var(--wf-line) !important; }
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__controls-button:hover { background: rgba(255,255,255,.1) !important; }
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__minimap { right: 18px !important; bottom: 164px !important; width: 168px !important; height: 112px !important; border: 1px solid var(--wf-line) !important; border-radius: 10px !important; background: rgba(22,24,26,.84) !important; box-shadow: 0 12px 28px rgba(0,0,0,.28) !important; opacity: .88 !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-flow-guide { left: 252px !important; bottom: 18px !important; background: rgba(24,26,28,.92) !important; border-color: var(--wf-line) !important; }
@media (max-width: 840px) {
  html[data-test-premium-shell="1"] body.workflow-page .wf-toolbar { padding: 0 12px !important; }
  html[data-test-premium-shell="1"] body.workflow-page .wf-node { width: 300px !important; min-width: 300px !important; }
  html[data-test-premium-shell="1"] body.workflow-page .wf-node--script { width: 400px !important; min-width: 400px !important; }
  html[data-test-premium-shell="1"] body.workflow-page .wf-side-panel--left.is-open { width: 210px !important; }
  html[data-test-premium-shell="1"] body.workflow-page .vue-flow__minimap { width: 140px !important; height: 92px !important; bottom: 150px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-test-premium-shell="1"] body.workflow-page .wf-node { transition: none !important; }
}
/* v53.1 — Vue Flow controls must remain a compact floating stack. */
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__controls {
  left: auto !important;
  top: auto !important;
  width: max-content !important;
  max-width: max-content !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* v53.2 — override Vue Flow panel positioning; controls stay a narrow right stack. */
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__panel.vue-flow__controls,
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__controls.left.bottom {
  inset: auto 18px 18px auto !important;
  margin: 0 !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__panel.vue-flow__controls .vue-flow__controls-button,
html[data-test-premium-shell="1"] body.workflow-page .vue-flow__controls.left.bottom .vue-flow__controls-button {
  flex: 0 0 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  box-sizing: border-box !important;
}

/* v53.3 — hard bounds for Vue Flow utility panels at the bottom edge. */
html[data-test-premium-shell="1"] body.workflow-page .wf-canvas > .vue-flow__panel.vue-flow__controls,
html[data-test-premium-shell="1"] body.workflow-page .wf-canvas .vue-flow__controls {
  position: absolute !important;
  inset: auto 18px 18px auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 150px !important;
  flex: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-canvas > .vue-flow__panel.vue-flow__minimap,
html[data-test-premium-shell="1"] body.workflow-page .wf-canvas .vue-flow__minimap {
  position: absolute !important;
  inset: auto 18px 164px auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 168px !important;
  min-width: 168px !important;
  max-width: 168px !important;
  height: 112px !important;
  min-height: 112px !important;
  max-height: 112px !important;
  flex: none !important;
  overflow: hidden !important;
}

/* v55 — consistent contrast for every workflow form and select surface. */
html[data-test-premium-shell="1"] body.workflow-page .wf-node input,
html[data-test-premium-shell="1"] body.workflow-page .wf-node textarea,
html[data-test-premium-shell="1"] body.workflow-page .wf-node select,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-textarea,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-select,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-table-input,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-table-editor,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-asset-ref input,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-picker__control input,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-picker__search,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .param-select-trigger {
  border-color: rgba(255,255,255,.24) !important;
  background: #17191b !important;
  color: #f5f4ef !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
  color-scheme: dark !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node input::placeholder,
html[data-test-premium-shell="1"] body.workflow-page .wf-node textarea::placeholder,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-table-editor::placeholder {
  color: #8f908d !important;
  opacity: 1 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node input:focus,
html[data-test-premium-shell="1"] body.workflow-page .wf-node textarea:focus,
html[data-test-premium-shell="1"] body.workflow-page .wf-node select:focus,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .param-select-trigger:focus-visible {
  border-color: rgba(255,255,255,.62) !important;
  outline: 2px solid rgba(255,255,255,.12) !important;
  outline-offset: 1px !important;
  box-shadow: none !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node select option {
  background: #1b1d1f !important;
  color: #f5f4ef !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .param-select-value,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .param-select-icon,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .param-select-arrow {
  color: #f0efea !important;
}
html[data-test-premium-shell="1"] body.workflow-page .param-select-dropdown,
html[data-test-premium-shell="1"] body.workflow-page .param-select-dropdown--portal,
html[data-test-premium-shell="1"] body.workflow-page .wf-picker__menu {
  border: 1px solid rgba(255,255,255,.24) !important;
  background: rgba(24,26,28,.98) !important;
  color: #f5f4ef !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.52) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .param-select-option,
html[data-test-premium-shell="1"] body.workflow-page .wf-picker__option {
  color: #deddd8 !important;
  background: transparent !important;
}
html[data-test-premium-shell="1"] body.workflow-page .param-select-option:hover,
html[data-test-premium-shell="1"] body.workflow-page .wf-picker__option:hover {
  color: #fff !important;
  background: rgba(255,255,255,.10) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .param-select-option.is-active,
html[data-test-premium-shell="1"] body.workflow-page .wf-picker__option.is-selected {
  color: #111315 !important;
  background: #f0efea !important;
}
html[data-test-premium-shell="1"] body.workflow-page .param-select-option.is-active .param-select-option-desc,
html[data-test-premium-shell="1"] body.workflow-page .wf-picker__option.is-selected small {
  color: #555754 !important;
}

/* v56 — node headers stay legible over the dark workflow canvas. */
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-node__head,
html[data-test-premium-shell="1"] body.workflow-page .wf-node--script .wf-node__head,
html[data-test-premium-shell="1"] body.workflow-page .wf-node--board .wf-node__head,
html[data-test-premium-shell="1"] body.workflow-page .wf-node--image .wf-node__head,
html[data-test-premium-shell="1"] body.workflow-page .wf-node--compose .wf-node__head,
html[data-test-premium-shell="1"] body.workflow-page .wf-node--video .wf-node__head,
html[data-test-premium-shell="1"] body.workflow-page .wf-node--tool .wf-node__head {
  background: #2b2d30 !important;
  border-bottom-color: rgba(255,255,255,.18) !important;
  color: #f7f6f2 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-node__head .wf-node__title {
  color: #f7f6f2 !important;
  opacity: 1 !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-node__head .wf-node__icon,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-node__head .wf-icon {
  color: #deddd8 !important;
  opacity: 1 !important;
  filter: none !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-node__head .wf-node__del {
  color: #c8c7c2 !important;
  opacity: 1 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-node__head .wf-node__del:hover {
  color: #fff !important;
  background: rgba(255,255,255,.10) !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-btn--primary,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-btn--primary:hover:not(:disabled),
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-btn--primary:focus-visible {
  background: #f5f4ef !important;
  color: #141618 !important;
  -webkit-text-fill-color: #141618 !important;
  border-color: #f5f4ef !important;
  opacity: 1 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-btn--primary:hover:not(:disabled) {
  background: #ffffff !important;
  border-color: #ffffff !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-btn--primary:disabled {
  background: rgba(255,255,255,.12) !important;
  color: #8f908d !important;
  -webkit-text-fill-color: #8f908d !important;
  border-color: rgba(255,255,255,.14) !important;
}

/* v57 — the three script settings share one control surface. */
html[data-test-premium-shell="1"] body.workflow-page .wf-node--script .wf-script-setting__static,
html[data-test-premium-shell="1"] body.workflow-page .wf-node--script .wf-picker__control input,
html[data-test-premium-shell="1"] body.workflow-page .wf-node--script .wf-picker__value {
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: 8px !important;
  background: #17191b !important;
  color: #f5f4ef !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node--script .wf-picker__control input {
  padding: 0 32px 0 11px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node--script .wf-picker__value {
  padding: 0 11px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node--script .wf-picker__value span {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  word-break: normal !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node--script .wf-picker__toggle {
  top: 1px !important;
  right: 1px !important;
  bottom: 1px !important;
  height: auto !important;
  border-radius: 0 7px 7px 0 !important;
  color: #c9c8c3 !important;
}

/* v58 — shared form system for every workflow node type. */
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-node__body > * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-row {
  width: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
  gap: 10px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-row > label {
  flex: 0 0 48px !important;
  width: 48px !important;
  color: #b9b8b3 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-row > :not(label),
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-row .param-select,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-ratio-select {
  min-width: 0 !important;
  max-width: 100% !important;
  flex: 1 1 auto !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .param-select-trigger,
html[data-test-premium-shell="1"] body.workflow-page .wf-node select,
html[data-test-premium-shell="1"] body.workflow-page .wf-node input:not([type="file"]),
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-media-status,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-tool-fixed-param {
  min-height: 38px !important;
  height: 38px !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .param-select-trigger {
  width: 100% !important;
  padding: 0 10px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node textarea {
  min-width: 0 !important;
  max-width: 100% !important;
  border-radius: 8px !important;
  line-height: 1.5 !important;
  resize: vertical !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-btn {
  min-height: 38px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-btn--ghost,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-btn--open,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-btn--upload,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-mini-btn {
  border-color: rgba(255,255,255,.22) !important;
  background: #202225 !important;
  color: #e4e3de !important;
  -webkit-text-fill-color: #e4e3de !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-btn--ghost:hover:not(:disabled),
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-btn--open:hover:not(:disabled),
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-btn--upload:hover:not(:disabled),
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-mini-btn:hover:not(:disabled) {
  border-color: rgba(255,255,255,.38) !important;
  background: #2a2c2f !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-frame-slot,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-tool-source,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-media-preview,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-voice-upload,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-section,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-summary-item,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-generation-progress,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-recovery {
  border-color: rgba(255,255,255,.16) !important;
  background: #17191b !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-tool-source.is-ready,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-media-status,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-voice-result {
  border-color: rgba(255,255,255,.22) !important;
  background: #202225 !important;
  color: #e8e7e2 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-frame-slot__tag,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-tool-badge {
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.10) !important;
  color: #e1e0db !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-hint,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-frame-slot__ph,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-tool-intro,
html[data-test-premium-shell="1"] body.workflow-page .wf-node .wf-tool-source__state {
  color: #aaa9a4 !important;
  opacity: 1 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node button:disabled,
html[data-test-premium-shell="1"] body.workflow-page .wf-node input:disabled,
html[data-test-premium-shell="1"] body.workflow-page .wf-node select:disabled {
  cursor: not-allowed !important;
  opacity: .62 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-node audio,
html[data-test-premium-shell="1"] body.workflow-page .wf-node video,
html[data-test-premium-shell="1"] body.workflow-page .wf-node img {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* v59 — one visual language for canvas menus, libraries, dialogs and icons. */
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu {
  width: 276px !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100vh - 24px) !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 8px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px !important;
  background: rgba(25,27,29,.96) !important;
  color: #f3f2ed !important;
  box-shadow: 0 22px 56px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.06) !important;
  backdrop-filter: blur(18px) saturate(90%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(90%) !important;
  overflow: hidden !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu__head {
  padding: 10px 10px 11px !important;
  border-bottom-color: rgba(255,255,255,.12) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu__head strong { color: #fff !important; font-size: 13px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu__head small,
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu__section > span,
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu__upload-head { color: #969792 !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu__section { padding: 10px 4px 3px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu__grid { gap: 5px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu button {
  min-height: 38px !important;
  box-sizing: border-box !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #dcdbd6 !important;
  font-size: 11px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu button:hover,
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu button:focus-visible {
  border-color: rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.09) !important;
  color: #fff !important;
  outline: none !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu__grid i {
  width: 22px !important;
  height: 22px !important;
  margin-right: 6px !important;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 6px !important;
  background: rgba(255,255,255,.06) !important;
  color: #d6d5d0 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu__section--media,
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu__upload-head { border-color: rgba(255,255,255,.10) !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu__upload-row { gap: 5px !important; padding: 3px 4px 5px !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu__upload-row button {
  border-color: rgba(255,255,255,.14) !important;
  background: #202225 !important;
  color: #d8d7d2 !important;
  font-size: 10px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu button.is-danger { color: #ffc1ba !important; }
html[data-test-premium-shell="1"] body.workflow-page .wf-context-menu button.is-danger:hover { background: rgba(255,116,104,.12) !important; border-color: rgba(255,145,136,.24) !important; }

html[data-test-premium-shell="1"] body.workflow-page .wf-side-panel--left {
  border-color: rgba(255,255,255,.14) !important;
  background: rgba(25,27,29,.94) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-library-search {
  height: 38px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 8px !important;
  background: #17191b !important;
  color: #f3f2ed !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-library-group button {
  min-height: 38px !important;
  border-radius: 8px !important;
  color: #d7d6d1 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-library-group button:hover {
  background: rgba(255,255,255,.09) !important;
  color: #fff !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-modal {
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px !important;
  background: rgba(27,29,31,.97) !important;
  color: #efeee9 !important;
  box-shadow: 0 28px 72px rgba(0,0,0,.58) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-guide-step,
html[data-test-premium-shell="1"] body.workflow-page .wf-guide-card,
html[data-test-premium-shell="1"] body.workflow-page .wf-guide-note,
html[data-test-premium-shell="1"] body.workflow-page .wf-saveitem {
  border-color: rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
  background: #202225 !important;
  color: #d7d6d1 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-flow-guide {
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 10px !important;
  background: rgba(27,29,31,.94) !important;
  color: #deddd8 !important;
}

html[data-test-premium-shell="1"] body.workflow-page .wf-icon--board,
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--image,
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--video,
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--audio,
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--voice {
  position: relative !important;
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
  box-sizing: border-box !important;
  color: #deddd8 !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--board {
  border: 1.5px solid currentColor !important;
  border-radius: 3px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--board::before {
  content: '' !important;
  position: absolute !important;
  left: -1px !important;
  right: -1px !important;
  top: 4px !important;
  border-top: 1.5px solid currentColor !important;
  transform: skewY(-18deg) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--image {
  border: 1.5px solid currentColor !important;
  border-radius: 3px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--image::before {
  content: '' !important;
  position: absolute !important;
  left: 3px !important;
  bottom: 3px !important;
  width: 9px !important;
  height: 7px !important;
  border-left: 1.5px solid currentColor !important;
  border-top: 1.5px solid currentColor !important;
  transform: rotate(45deg) !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--image::after {
  content: '' !important;
  position: absolute !important;
  right: 3px !important;
  top: 3px !important;
  width: 3px !important;
  height: 3px !important;
  border-radius: 50% !important;
  background: currentColor !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--video {
  border: 1.5px solid currentColor !important;
  border-radius: 3px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--video::before {
  content: '' !important;
  position: absolute !important;
  left: 6px !important;
  top: 4px !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 4px solid transparent !important;
  border-bottom: 4px solid transparent !important;
  border-left: 6px solid currentColor !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--audio::before,
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--voice::before {
  content: '' !important;
  position: absolute !important;
  left: 5px !important;
  top: 2px !important;
  width: 6px !important;
  height: 10px !important;
  border: 1.5px solid currentColor !important;
  border-radius: 5px !important;
}
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--audio::after,
html[data-test-premium-shell="1"] body.workflow-page .wf-icon--voice::after {
  content: '' !important;
  position: absolute !important;
  left: 3px !important;
  top: 7px !important;
  width: 10px !important;
  height: 7px !important;
  border: 1.5px solid currentColor !important;
  border-top: 0 !important;
  border-radius: 0 0 7px 7px !important;
}
@media (max-width: 840px) {
  html[data-test-premium-shell="1"] body.workflow-page .wf-canvas > .vue-flow__panel.vue-flow__minimap,
  html[data-test-premium-shell="1"] body.workflow-page .wf-canvas .vue-flow__minimap {
    inset: auto 12px 150px auto !important;
    width: 140px !important; min-width: 140px !important; max-width: 140px !important;
    height: 92px !important; min-height: 92px !important; max-height: 92px !important;
  }
}

/* v64 final cascade: no header sheet and no legacy eight-pixel nav offset. */
html[data-test-premium-shell="1"] .mono-topbar {
  border-bottom: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html[data-test-premium-shell="1"] .mono-topbar > .mono-topnav.gooey-nav-container {
  top: 50% !important;
}

/* v68 final cascade: one submit action, placed inside the prompt surface. */
html[data-test-premium-shell="1"] body.create-page .test-create-workbench .vid-center-actions {
  position: absolute !important;
  right: 16px !important;
  bottom: 10px !important;
  width: min(320px, calc(100% - 32px)) !important;
  height: 44px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 132px !important;
  align-items: center !important;
  gap: 12px !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-workbench .test-create-estimate--composer {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  white-space: nowrap !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-workbench .test-create-estimate--composer strong {
  font-size: 17px !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-workbench #vid-gen-btn-center.test-create-submit--composer {
  display: flex !important;
  width: 132px !important;
  min-height: 42px !important;
  height: 42px !important;
  margin: 0 !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-inspector {
  padding-bottom: 18px !important;
  scroll-padding-bottom: 18px !important;
}
@media (min-width: 901px) {
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > #vid-bar-center {
    left: calc(50% - 48px) !important;
  }
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > .test-create-inspector {
    right: clamp(72px, calc(6vw + 48px), 144px) !important;
  }
}

/* v72: match the prompt and settings cards to the prompt agent glass. */
html[data-test-premium-shell="1"] body.create-page .test-create-workbench > #vid-bar-center,
html[data-test-premium-shell="1"] body.create-page .test-create-workbench > .test-create-inspector {
  background: rgba(18, 20, 23, .70) !important;
  border: 1px solid rgba(230, 235, 242, .18) !important;
  box-shadow:
    0 28px 80px rgba(14, 21, 31, .20),
    inset 0 1px 0 rgba(255, 255, 255, .16) !important;
  -webkit-backdrop-filter: blur(30px) saturate(155%) !important;
  backdrop-filter: blur(30px) saturate(155%) !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-inspector__head {
  background: rgba(18, 20, 23, .72) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-workbench .vid-center-prompt,
html[data-test-premium-shell="1"] body.create-page .test-create-inspector .param-select-trigger,
html[data-test-premium-shell="1"] body.create-page .test-create-inspector .model-list-select-trigger,
html[data-test-premium-shell="1"] body.create-page .test-create-inspector .dur-picker-trigger {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(230, 235, 242, .18) !important;
}
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-workbench > #vid-bar-center,
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-workbench > .test-create-inspector {
  background: rgba(226, 233, 242, .68) !important;
  border-color: rgba(103, 126, 153, .46) !important;
  box-shadow:
    0 28px 80px rgba(14, 21, 31, .14),
    inset 0 1px 0 rgba(255, 255, 255, .68) !important;
}
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector__head {
  background: rgba(226, 233, 242, .74) !important;
}
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-workbench .vid-center-prompt,
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector .param-select-trigger,
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector .model-list-select-trigger,
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector .dur-picker-trigger {
  background: rgba(255, 255, 255, .26) !important;
  border-color: rgba(255, 255, 255, .58) !important;
}
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector .param-select-trigger,
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector .model-list-select-trigger,
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector .dur-picker-trigger,
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector .param-select-value,
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector .model-list-select-value,
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector .dur-picker-value,
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector .dur-picker-unit {
  color: #172033 !important;
}
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector .param-select-trigger svg,
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector .model-list-select-trigger svg,
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .test-create-inspector .dur-picker-trigger svg {
  color: #334155 !important;
  stroke: currentColor !important;
}

/* v70: portal menus must use their measured width, not the body's width. */
html[data-test-premium-shell="1"] body.create-page > .param-select-dropdown--portal {
  right: auto !important;
  min-width: 0 !important;
}

/* v71: long prompts scroll above a reserved footer instead of covering submit. */
html[data-test-premium-shell="1"] body.create-page .test-create-workbench .vid-center-prompt {
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
}
html[data-test-premium-shell="1"] body.create-page .test-create-workbench .vid-center-actions {
  z-index: 3 !important;
}
@media (min-width: 901px) {
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > #vid-bar-center {
    padding-bottom: 68px !important;
  }
}
@media (max-width: 900px) {
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench .vid-center-actions {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin-top: 12px !important;
  }
}

/* v69: center the prompt and anchor settings directly to its right edge. */
@media (min-width: 901px) {
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > #vid-bar-center {
    left: 50% !important;
  }
  html[data-test-premium-shell="1"] body.create-page .test-create-workbench > .test-create-inspector {
    left: calc(50% + min(380px, calc(50vw - 340px)) + 10px) !important;
    right: auto !important;
  }
}

/* 2026-09-15: image preview ratio and light-theme download contrast, appended without rebuilding the approved shell. */
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card.crc-is-image {
  width: min(560px, calc(var(--history-card-max-h) * var(--task-card-ratio)), calc(100% - 24px)) !important;
  max-width: min(560px, calc(var(--history-card-max-h) * var(--task-card-ratio))) !important;
}
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card.crc-is-image .crc-stage {
  width: 100% !important;
  height: auto !important;
  max-height: var(--history-card-max-h) !important;
  aspect-ratio: var(--task-card-ratio) !important;
  display: block !important;
  overflow: hidden !important;
}
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card.crc-is-image .crc-stage > .crc-grid-reveal-media {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
}
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .crc-btn-primary {
  background: #172033 !important;
  border-color: #172033 !important;
  color: #fff !important;
}
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .crc-btn-primary svg {
  color: #fff !important;
  stroke: currentColor !important;
}
html[data-test-premium-shell="1"][data-theme="light"] body.create-page .crc-btn-primary:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #fff !important;
}
/* Keep create-page confirmation dialogs above panel layout overrides. */
html[data-test-premium-shell="1"] body.create-page #panel-create > .contact-us-modal,
html[data-test-premium-shell="1"] body.create-page .create-precheck-modal,
html[data-test-premium-shell="1"] body.create-page .create-subtitle-modal,
html[data-test-premium-shell="1"] body.create-page .create-reverse-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px !important;
  box-sizing: border-box !important;
}

/* Center the empty-state greeting against the create-page viewport. */
html[data-test-premium-shell="1"] body.create-page .create-greeting {
  left: 50% !important;
  width: min(680px, calc(100vw - 48px)) !important;
  text-align: center !important;
  transform: translateX(-50%) !important;
}

html[data-test-premium-shell="1"] body.create-page .create-greeting h2 {
  max-width: none !important;
  margin-inline: auto !important;
}

@media (max-width: 900px) {
  html[data-test-premium-shell="1"] body.create-page .create-greeting {
    left: 50% !important;
    width: calc(100vw - 32px) !important;
  }
}

/* v88: unified image/video history card frame. Keep the outer card and stage
   identical; preserve each result's own ratio inside the shared stage. */
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards {
  --history-card-width: min(560px, calc(100vw - 32px));
  --history-stage-height: clamp(260px, 52vh, 420px);
  width: var(--history-card-width) !important;
  max-width: var(--history-card-width) !important;
  align-items: stretch !important;
}
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card,
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card.crc-is-image {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-stage,
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card.crc-is-image .crc-stage {
  width: 100% !important;
  height: var(--history-stage-height) !important;
  min-height: var(--history-stage-height) !important;
  max-height: var(--history-stage-height) !important;
  aspect-ratio: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-stage > .crc-grid-reveal-media,
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-stage > .crc-image,
html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards .create-result-card .crc-stage > .crc-video {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}
@media (max-width: 900px) {
  html[data-test-premium-shell="1"] body.create-page.has-results #create-feed-list #create-feed-unified.create-result-cards {
    --history-card-width: min(560px, calc(100vw - 24px));
    --history-stage-height: clamp(240px, 48vh, 380px);
  }
}

/* Restore failed-task guidance contrast for the light-mode result stage. */
html[data-test-premium-shell="1"] body.create-page .crc-error {
  color: #fff !important;
}
html[data-test-premium-shell="1"] body.create-page .crc-error-hint-title {
  color: #fff !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}
html[data-test-premium-shell="1"] body.create-page .crc-error-hint-msg,
html[data-test-premium-shell="1"] body.create-page .crc-error-reason {
  color: rgba(255, 255, 255, 0.84) !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere !important;
}
html[data-test-premium-shell="1"] body.create-page .crc-error-hint-action {
  color: rgba(255, 209, 102, 0.96) !important;
  line-height: 1.55 !important;
  overflow-wrap: anywhere !important;
}
/* Keep create-page confirmation dialogs above panel layout overrides. */
html[data-test-premium-shell="1"] body.create-page #panel-create > .contact-us-modal,
html[data-test-premium-shell="1"] body.create-page .create-precheck-modal,
html[data-test-premium-shell="1"] body.create-page .create-subtitle-modal,
html[data-test-premium-shell="1"] body.create-page .create-reverse-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px !important;
  box-sizing: border-box !important;
}
