:root {
  --txm-bg: #060608;
  --txm-rail: #050506;
  --txm-surface: #0d0e12;
  --txm-raised: #121318;
  --txm-ink: #f4f5f7;
  --txm-muted: #9da1aa;
  --txm-faint: #6f737d;
  --txm-line: rgb(255 255 255 / 10%);
  --txm-line-strong: rgb(255 255 255 / 20%);
  --txm-orange: #ff6b35;
  --txm-blue: #9fbfe8;
  --txm-danger: #ff8279;
  --txm-success: #91cfb2;
  --txm-radius: 10px;
  --txm-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --txm-rail-width: 184px;
  --txm-header-height: 60px;
}

html {
  min-width: 280px;
  background: var(--txm-bg);
  scroll-behavior: smooth;
}

html body {
  min-width: 280px;
  min-height: 100dvh;
  overflow-x: clip;
  background:
    radial-gradient(ellipse at 73% -8%, rgb(67 97 150 / 17%), transparent 34%),
    radial-gradient(ellipse at 100% 24%, rgb(35 64 108 / 10%), transparent 30%),
    var(--txm-bg) !important;
  color: var(--txm-ink);
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html body::before,
html body::after {
  display: none !important;
}

html body *::selection {
  background: rgb(255 107 53 / 78%);
  color: #fff;
}

html body button:focus-visible,
html body a:focus-visible,
html body input:focus-visible,
html body textarea:focus-visible,
html body select:focus-visible,
html body [tabindex]:focus-visible {
  outline: 3px solid var(--txm-blue) !important;
  outline-offset: 3px !important;
}

html body [hidden] {
  display: none !important;
}

html body .txSkipLink {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--txm-ink);
  color: var(--txm-bg);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms var(--txm-ease);
}

html body .txSkipLink:focus {
  transform: none;
}

/* Shared shell */
html body > header#siteHeader {
  position: fixed !important;
  z-index: 90 !important;
  top: 0 !important;
  right: 0 !important;
  left: var(--txm-rail-width) !important;
  display: flex !important;
  height: var(--txm-header-height) !important;
  min-height: var(--txm-header-height) !important;
  align-items: center !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--txm-line) !important;
  background: rgb(6 6 8 / 92%) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

html body > header#siteHeader .pearl-brand {
  position: fixed !important;
  z-index: 95 !important;
  top: 20px !important;
  left: 20px !important;
  display: flex !important;
  width: 176px !important;
  height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html body > header#siteHeader .pearl-brand img {
  width: 168px !important;
  max-height: 28px !important;
  object-fit: contain;
  filter: invert(1) brightness(1.18) saturate(0.75);
}

html body > header#siteHeader .txTopbarTitle {
  min-width: 110px;
  color: var(--txm-muted);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.02em;
}

html body > header#siteHeader .globalStudioSearch {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  display: flex !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  margin-left: auto !important;
  padding: 0 10px !important;
  border: 1px solid var(--txm-line) !important;
  border-radius: 7px !important;
  background: rgb(255 255 255 / 3%) !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: hidden !important;
  transition: width 180ms var(--txm-ease), border-color 160ms ease !important;
}

html body > header#siteHeader .globalStudioSearch input {
  position: absolute;
  width: 0;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  background: transparent !important;
  color: var(--txm-ink) !important;
  font-size: 13px;
}

html body > header#siteHeader .globalStudioSearch input::placeholder {
  color: var(--txm-faint) !important;
}

html body > header#siteHeader .globalStudioSearch:focus-within {
  width: min(420px, 38vw) !important;
  min-width: 220px !important;
  max-width: 420px !important;
  border-color: var(--txm-line-strong) !important;
  background: #0d0e12 !important;
}

html body > header#siteHeader .globalStudioSearch:focus-within input {
  position: static;
  width: 100%;
  opacity: 1;
  pointer-events: auto;
}

html body > header#siteHeader .account {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: 0 !important;
}

html body > header#siteHeader .points-pill {
  min-height: 38px !important;
  border: 1px solid var(--txm-line) !important;
  border-radius: 7px !important;
  background: rgb(255 255 255 / 3%) !important;
  color: var(--txm-muted) !important;
  padding: 0 11px !important;
}

html body > header#siteHeader .points-pill i {
  background: var(--txm-orange) !important;
  box-shadow: none !important;
}

html body > header#siteHeader .points-pill strong {
  color: var(--txm-ink) !important;
  font-variant-numeric: tabular-nums;
}

html body > header#siteHeader .badge,
html body > header#siteHeader #profileTrigger,
html body > header#siteHeader #notificationButton,
html body > header#siteHeader .guestLoginButton,
html body > header#siteHeader .menuToggle {
  min-height: 38px !important;
  border: 1px solid var(--txm-line) !important;
  border-radius: 7px !important;
  background: rgb(255 255 255 / 3%) !important;
  color: var(--txm-muted) !important;
  box-shadow: none !important;
}

html body > header#siteHeader .guestLoginButton {
  padding: 0 13px !important;
  color: var(--txm-ink) !important;
}

html body > header#siteHeader .txQueueButton {
  display: inline-flex;
  height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--txm-line);
  border-radius: 7px;
  background: rgb(255 255 255 / 3%);
  color: var(--txm-muted);
  font-size: 10px;
}

html body > header#siteHeader .txQueueButton:hover {
  border-color: var(--txm-line-strong);
  color: var(--txm-ink);
}

html body > header#siteHeader .txQueueButton strong {
  color: var(--txm-ink);
  font-variant-numeric: tabular-nums;
}

html body > header#siteHeader .txQueueDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--txm-orange);
  box-shadow: 0 0 12px rgb(255 107 53 / 34%);
}

html body #workspace.pearl-workspace {
  min-height: 100dvh;
  max-width: none !important;
  margin: 0 0 0 var(--txm-rail-width) !important;
  padding: calc(var(--txm-header-height) + 28px) 34px 72px !important;
  background: transparent !important;
}

html body #workspace > nav#primaryNavigation {
  position: fixed !important;
  z-index: 88 !important;
  top: var(--txm-header-height) !important;
  bottom: 0 !important;
  left: 0 !important;
  display: flex !important;
  width: var(--txm-rail-width) !important;
  flex-direction: column !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 20px 14px 18px !important;
  border: 0 !important;
  border-right: 1px solid var(--txm-line) !important;
  border-radius: 0 !important;
  background: var(--txm-rail) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  transform: none !important;
}

html body #workspace > nav#primaryNavigation .navTitle {
  padding: 1px 11px 14px !important;
  color: #858a94 !important;
  font-size: 9px !important;
  font-weight: 650 !important;
  letter-spacing: 0.16em !important;
}

html body #workspace > nav#primaryNavigation > button {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  height: 43px !important;
  min-height: 43px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 11px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: var(--txm-muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: left !important;
}

html body #workspace > nav#primaryNavigation > button[data-page="commerce"],
html body #workspace > nav#primaryNavigation > button[data-page="plans"] {
  display: none !important;
}

html body #workspace > nav#primaryNavigation .navTitle {
  display: none !important;
}

html body #workspace > nav#primaryNavigation > button:hover {
  background: rgb(255 255 255 / 4%) !important;
  color: var(--txm-ink) !important;
}

html body #workspace > nav#primaryNavigation > button[aria-current="page"] {
  background: rgb(255 255 255 / 7%) !important;
  color: var(--txm-ink) !important;
  box-shadow: inset 2px 0 var(--txm-orange) !important;
}

html body #workspace > nav#primaryNavigation .navCount,
html body #workspace > nav#primaryNavigation .navBadge {
  border-color: var(--txm-line) !important;
  background: rgb(255 255 255 / 3%) !important;
  color: var(--txm-muted) !important;
}

html body #workspace#workspace > nav#primaryNavigation#primaryNavigation .pearl-sidebar-brand {
  position: fixed !important;
  z-index: 96 !important;
  top: 14px !important;
  left: 20px !important;
  display: flex !important;
  width: 144px !important;
  height: 32px !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

html body #workspace#workspace > nav#primaryNavigation#primaryNavigation .pearl-sidebar-brand img {
  display: block !important;
  width: 136px !important;
  max-height: 24px !important;
  object-fit: contain;
  filter: invert(1) brightness(1.14) saturate(0.7);
}

html body #workspace > nav#primaryNavigation .txNavDivider {
  width: calc(100% - 22px);
  height: 1px;
  margin: 18px 11px;
  background: var(--txm-line);
}

html body #workspace > nav#primaryNavigation .txNavSecondary {
  display: grid;
  gap: 4px;
}

html body #workspace > nav#primaryNavigation .txNavSecondary button {
  position: relative;
  display: flex;
  width: 100%;
  height: 43px;
  min-height: 43px;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9da1aa;
  font-size: 13px;
  text-align: left;
}

html body #workspace > nav#primaryNavigation .txNavSecondary button:hover {
  background: rgb(255 255 255 / 4%);
  color: var(--txm-ink);
}

html body #workspace > nav#primaryNavigation .txNavSecondary svg {
  width: 17px;
  height: 17px;
  flex: none;
}

html body #workspace > nav#primaryNavigation .txv21-sidebar-credit {
  display: none !important;
}

html body #workspace > nav#primaryNavigation .txRailFoot {
  display: grid;
  gap: 3px;
  margin-top: auto;
  padding: 16px 11px 0;
  color: #80858f;
  font-size: 9px;
  line-height: 1.5;
}

html body #workspace > nav#primaryNavigation .txRailFoot small {
  color: #858a94;
  font-size: 8px;
  letter-spacing: 0.08em;
}

html body #workspace > .createModeSwitch,
html body #workspace > .intro,
html body #workspace > .chatThread,
html body #workspace > .composer,
html body #workspace > .examples {
  display: none !important;
}

/* Home */
html body #homeView {
  width: min(1540px, 100%) !important;
  max-width: 1540px !important;
  margin: 0 auto !important;
  padding: 0 0 64px !important;
}

html body #homeView > :not(.pearl-home-v3) {
  display: none !important;
}

html body #homeView .pearl-home-v3 {
  background: transparent !important;
  color: var(--txm-ink) !important;
}

html body #homeView .pearl-home-v3::before,
html body #homeView .pearl-home-v3::after {
  display: none !important;
}

html body #homeView .pearl-home-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #homeView .txMasterHomeIntro {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 60px 0 64px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: auto !important;
  animation: txMasterRise 700ms var(--txm-ease) both;
}

html body #homeView .txMasterHomeIntro::before {
  position: absolute;
  z-index: -1;
  top: -120px;
  left: 24%;
  width: min(760px, 70vw);
  height: 390px;
  background: radial-gradient(ellipse, rgb(145 177 225 / 13%), transparent 68%);
  filter: blur(12px);
  content: "";
  pointer-events: none;
}

html body #homeView .txMasterHomeMeta {
  position: absolute;
  top: 30px;
  right: 0;
  display: flex;
  gap: 16px;
  color: var(--txm-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

html body #homeView .txMasterHomeMeta span + span::before {
  margin-right: 16px;
  color: rgb(255 255 255 / 20%);
  content: "/";
}

html body #homeView .txMasterHomeIntro h1 {
  display: block !important;
  max-width: 1080px;
  color: transparent;
  font-family: "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(64px, 7.6vw, 112px);
  font-weight: 230;
  line-height: 0.98;
  letter-spacing: -0.055em;
  background: linear-gradient(180deg, #fff 0%, #e3e8ee 31%, #788390 47%, #f7f9fa 56%, #b5bec8 71%, #687381 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 22px 48px rgb(74 108 166 / 13%));
}

html body #homeView .txMasterHomeIntro h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-fill-color: transparent;
}

html body #homeView .txMasterHomeIntro > p {
  max-width: 700px;
  margin-top: 20px;
  color: var(--txm-muted);
  font-size: 15px;
  line-height: 1.75;
}

html body #homeView .txMasterHomeWorkbench {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(380px, 0.86fr);
  gap: 24px;
  align-items: stretch;
  animation: txMasterRise 820ms var(--txm-ease) 90ms both;
}

html body #homeView .pearl-composer.txMasterComposer {
  display: flex !important;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  gap: 0 !important;
  margin: 0 !important;
  padding: 24px 26px 18px !important;
  border: 1px solid var(--txm-line) !important;
  border-radius: 12px !important;
  background: linear-gradient(152deg, #111218, #0c0d11 74%) !important;
  box-shadow: 0 22px 70px rgb(0 0 0 / 36%) !important;
  backdrop-filter: none !important;
}

html body #homeView .pearl-composer.txMasterComposer::after {
  display: none !important;
}

html body #homeView .txMasterComposerTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

html body #homeView .pearl-mode-switch {
  display: inline-flex !important;
  gap: 3px !important;
  padding: 3px !important;
  border: 1px solid var(--txm-line) !important;
  border-radius: 7px !important;
  background: #08090c !important;
}

html body #homeView .pearl-mode-switch button {
  min-height: 32px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: var(--txm-muted) !important;
  font-size: 11px !important;
}

html body #homeView .pearl-mode-switch button[aria-pressed="true"] {
  background: var(--txm-ink) !important;
  color: var(--txm-bg) !important;
}

html body #homeView .pearl-guest-hint {
  color: var(--txm-faint) !important;
  font-size: 10px !important;
}

html body #homeView .pearl-reference-zone {
  border: 1px solid var(--txm-line) !important;
  border-radius: 8px !important;
  background: #08090c !important;
}

html body #homeView .pearl-prompt-shell {
  display: flex !important;
  min-height: 168px;
  flex: 1;
  flex-direction: column;
  margin: 14px 0 10px !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--txm-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html body #homeView .pearl-prompt-title {
  color: var(--txm-ink) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: 0.03em;
}

html body #homeView #pearlHomePrompt {
  width: 100%;
  min-height: 106px;
  flex: 1;
  margin-top: 9px;
  padding: 0 !important;
  resize: vertical;
  border: 0 !important;
  background: transparent !important;
  color: var(--txm-ink) !important;
  font: 19px/1.7 "Noto Sans SC", "Microsoft YaHei UI", sans-serif !important;
  outline: 0;
}

html body #homeView #pearlHomePrompt::placeholder {
  color: #777b85 !important;
}

html body #homeView #pearlPromptHint {
  color: var(--txm-faint) !important;
  font-size: 10px !important;
}

html body #homeView .txMasterPromptSuggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 4px 0 14px;
}

html body #homeView .txMasterPromptSuggestions button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--txm-line);
  border-radius: 999px;
  background: transparent;
  color: var(--txm-muted);
  font-size: 10px;
}

html body #homeView .pearl-composer-controls {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--txm-line) !important;
}

html body #homeView .pearl-control,
html body #homeView .pearl-count-option,
html body #homeView .pearl-count-options {
  min-height: 38px !important;
  border: 1px solid var(--txm-line) !important;
  border-radius: 6px !important;
  background: #08090c !important;
  color: var(--txm-muted) !important;
  box-shadow: none !important;
}

html body #homeView .pearl-count-options {
  display: inline-flex !important;
  padding: 3px !important;
}

html body #homeView .pearl-count-option {
  width: 32px !important;
  min-width: 32px !important;
  min-height: 30px !important;
  border: 0 !important;
  background: transparent !important;
}

html body #homeView .pearl-count-option[aria-pressed="true"] {
  background: var(--txm-ink) !important;
  color: var(--txm-bg) !important;
}

html body #homeView .pearl-spacer {
  flex: 1;
}

html body #homeView .pearl-cost {
  display: grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--txm-line);
  border-radius: 6px;
  color: var(--txm-ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

html body #homeView .pearl-cta {
  min-width: 132px;
  min-height: 40px !important;
  border: 1px solid var(--txm-ink) !important;
  border-radius: 6px !important;
  background: var(--txm-ink) !important;
  color: var(--txm-bg) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

html body #homeView .pearl-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgb(255 255 255 / 10%);
}

html body #homeView .pearl-composer-message {
  min-height: 17px;
  margin-top: 8px;
  color: var(--txm-muted) !important;
  font-size: 10px;
}

html body #homeView .txMasterNowShowing {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--txm-line);
  border-radius: 12px;
  background: #090a0e;
  color: var(--txm-ink);
  box-shadow: 0 24px 84px rgb(0 0 0 / 46%);
}

html body #homeView .txMasterNowMedia {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #050607;
  color: #fff;
  text-align: left;
}

html body #homeView .txMasterNowMedia::after {
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(to bottom, transparent, rgb(5 6 8 / 90%));
  content: "";
  pointer-events: none;
}

html body #homeView #pearlNowPoster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--txm-ease), filter 220ms ease;
}

html body #homeView .txMasterNowMedia:hover #pearlNowPoster {
  transform: scale(1.025);
  filter: brightness(0.88);
}

html body #homeView .txMasterFrameIndex,
html body #homeView .txMasterNowStamp {
  position: absolute;
  z-index: 2;
  color: rgb(255 255 255 / 72%);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

html body #homeView .txMasterFrameIndex {
  top: 14px;
  left: 15px;
}

html body #homeView .txMasterNowStamp {
  right: 15px;
  bottom: 13px;
}

html body #homeView .txMasterPlayGate {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 15px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  background: rgb(5 6 8 / 52%);
  color: #fff;
  font-size: 15px;
  backdrop-filter: blur(8px);
}

html body #homeView .txMasterNowCopy {
  display: grid;
  flex: 1;
  gap: 10px;
  padding: 22px 24px 20px;
}

html body #homeView .txMasterNowKicker {
  color: var(--txm-faint);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.11em;
}

html body #homeView .txMasterNowCopy h2 {
  margin: 2px 0 0;
  font-size: 28px;
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

html body #homeView .txMasterNowMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--txm-muted);
  font-size: 10px;
}

html body #homeView .txMasterNowMeta span {
  padding: 4px 7px;
  border: 1px solid var(--txm-line);
  border-radius: 4px;
}

html body #homeView .txMasterNowPrompt {
  max-width: 52ch;
  color: var(--txm-muted);
  font-size: 12px;
  line-height: 1.7;
}

html body #homeView .txMasterNowRemix {
  width: max-content;
  min-height: 38px;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--txm-ink);
  font-size: 12px;
  font-weight: 650;
}

html body #homeView .txMasterNowRemix:hover {
  color: #ff9679;
}

html body #homeView .pearl-curated {
  width: 100% !important;
  max-width: none !important;
  margin-top: 56px;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
}

html body #homeView .pearl-curated-head {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: flex !important;
  height: auto !important;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  width: 100% !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: auto !important;
}

html body #homeView .pearl-curated-head h2 {
  flex: none;
  color: var(--txm-ink) !important;
  font-size: 30px;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

html body #homeView .pearl-curated-line {
  display: none;
}

html body #homeView .pearl-curated-more {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--txm-muted) !important;
  font-size: 11px;
}

html body #homeView .pearl-curated-head .pearl-curated-status,
html body #homeView .pearl-curated-head .pearl-curated-loadmore {
  display: none !important;
}

html body #homeView .section-heading {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: flex;
  height: auto !important;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: auto !important;
}

html body #homeView .section-heading h2 {
  color: var(--txm-ink);
  font-size: 30px;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

html body #homeView .section-heading p {
  margin-top: 6px;
  color: var(--txm-muted);
  font-size: 12px;
}

html body #homeView .section-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

html body #homeView .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

html body #homeView .filter-row button {
  position: relative;
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--txm-muted);
  font-size: 11px;
}

html body #homeView .filter-row button:hover {
  color: var(--txm-ink);
}

html body #homeView .filter-row button[aria-pressed="true"] {
  background: transparent !important;
  background-image: none !important;
  color: var(--txm-ink);
  box-shadow: none !important;
}

html body #homeView .filter-row button[aria-pressed="true"]::after {
  position: absolute;
  right: 11px;
  bottom: 1px;
  left: 11px;
  height: 1px;
  background: var(--txm-ink);
  content: "";
}

html body #homeView .result-count {
  color: var(--txm-faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

html body #homeView .pearl-curated-grid {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 26px 12px !important;
  columns: auto !important;
  column-gap: 12px !important;
  align-items: start !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body #homeView .pearl-curated-grid .communityCard {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  break-inside: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--txm-ink) !important;
  text-align: left;
  transform: none;
  transition: transform 180ms var(--txm-ease);
}

html body #homeView .pearl-curated-grid .communityCard:hover {
  transform: translateY(-2px);
}

html body #homeView .pearl-curated-grid .communityMedia {
  position: relative;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden;
  border: 1px solid var(--txm-line);
  border-radius: 10px;
  background: #030304;
}

html body #homeView .pearl-curated-grid .communityMedia::after {
  inset: 42% 0 0;
  background: linear-gradient(to bottom, transparent, rgb(4 5 7 / 74%));
}

html body #homeView .pearl-curated-grid .communityPoster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--txm-ease), filter 200ms ease;
}

html body #homeView .pearl-curated-grid .communityCard:hover .communityPoster {
  transform: scale(1.025);
  filter: brightness(0.9);
}

html body #homeView .pearl-curated-grid .communityBody {
  display: grid !important;
  gap: 3px;
  padding: 9px 1px 0 !important;
}

html body #homeView .pearl-curated-grid .communityBody strong {
  overflow: hidden;
  color: var(--txm-ink) !important;
  font-size: 14px !important;
  font-weight: 620;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #homeView .pearl-curated-grid .communityBody p {
  display: none;
}

html body #homeView .pearl-curated-grid .communityMeta {
  justify-content: flex-start !important;
  color: var(--txm-faint) !important;
  font-size: 9px !important;
}

html body #homeView .pearl-curated-grid .featuredPill {
  border-radius: 4px;
  background: rgb(244 245 247 / 92%);
  color: #090a0d;
  font-size: 8px;
}

html body #homeView .pearl-curated-grid .communityCardSkeleton {
  min-height: 176px;
  border: 1px solid var(--txm-line);
  border-radius: 10px;
  background:
    linear-gradient(105deg, transparent 25%, rgb(255 255 255 / 5%) 42%, transparent 60%),
    var(--txm-surface);
  background-size: 220% 100%, auto;
  animation: txMasterShimmer 1.7s linear infinite;
}

html body #homeView .pearl-guest-collection {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--txm-line);
  border-radius: 10px;
  color: var(--txm-muted);
  text-align: center;
}

html body #homeView .pearl-guest-collection strong {
  color: var(--txm-ink);
}

html body #homeView .pearl-guest-collection button {
  min-height: 40px;
  margin-top: 14px;
  border: 1px solid var(--txm-line);
  border-radius: 6px;
  background: var(--txm-surface);
  color: var(--txm-ink);
}

/* Works library */
html body .library {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 72px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .library .sectionHead {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 24px;
  padding: 22px 0 28px;
  border-bottom: 1px solid var(--txm-line);
}

html body .library .sectionHead h1 {
  color: transparent !important;
  font-family: "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(52px, 5.4vw, 78px);
  font-weight: 240;
  line-height: 1;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fff, #d8e0e8 36%, #798491 49%, #f5f7f9 57%, #707b88);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html body .library .sectionHead .sub {
  max-width: 680px;
  margin-top: 11px;
  color: var(--txm-muted);
  font-size: 14px;
  line-height: 1.7;
}

html body .library .countCard {
  border: 1px solid var(--txm-line) !important;
  border-radius: 8px !important;
  background: var(--txm-surface) !important;
  color: var(--txm-muted) !important;
  box-shadow: none;
}

html body .library .countCard strong {
  color: var(--txm-ink);
  font-variant-numeric: tabular-nums;
}

html body .libraryToolsRow {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 18px 0 24px !important;
  padding: 0 !important;
}

html body .libraryTools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

html body .libraryTools .filterBtn,
html body .librarySearchWrap {
  min-height: 38px !important;
  border: 1px solid var(--txm-line) !important;
  border-radius: 6px !important;
  background: var(--txm-surface) !important;
  color: var(--txm-muted) !important;
}

html body .libraryTools .filterBtn {
  position: relative;
  padding: 0 12px !important;
}

html body .libraryTools .filterBtn[aria-pressed="true"] {
  border-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--txm-ink) !important;
  box-shadow: none !important;
}

html body .libraryTools .filterBtn[aria-pressed="true"]::after {
  position: absolute;
  right: 12px;
  bottom: 2px;
  left: 12px;
  height: 1px;
  background: var(--txm-ink);
  content: "";
}

html body .librarySearchWrap {
  width: min(360px, 34vw) !important;
}

html body .librarySearch {
  color: var(--txm-ink) !important;
}

html body .jobs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px 14px !important;
  margin: 0 !important;
}

html body .jobCard {
  min-width: 0;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .jobCover {
  overflow: hidden;
  border: 1px solid var(--txm-line) !important;
  border-radius: 10px !important;
  background-color: #030304 !important;
}

html body .jobCard:hover .jobCover {
  border-color: var(--txm-line-strong) !important;
}

html body .jobCard:hover .jobCover > img,
html body .jobCard:hover .jobCover > video {
  transform: scale(1.02);
}

html body .jobCover > img,
html body .jobCover > video {
  transition: transform 500ms var(--txm-ease);
}

html body .jobCard .jobBody,
html body .jobCard .jobMeta,
html body .jobCard h2,
html body .jobCard h3 {
  background: transparent !important;
}

html body .jobCard h2,
html body .jobCard h3,
html body .jobCard b {
  color: var(--txm-ink) !important;
}

html body .jobCard p,
html body .jobCard small,
html body .jobCard .jobMeta {
  color: var(--txm-muted) !important;
}

html body .jobAction {
  min-height: 38px;
  border-color: var(--txm-line) !important;
  border-radius: 6px !important;
  background: var(--txm-surface) !important;
  color: var(--txm-ink) !important;
}

html body .jobAction:hover {
  border-color: var(--txm-line-strong) !important;
  background: var(--txm-raised) !important;
}

/* Explore */
html body #exploreView {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 72px !important;
}

html body #exploreView > :not(.pearl-explore-v3) {
  display: none !important;
}

html body #exploreView .pearl-explore-v3 {
  width: 100%;
  max-width: none;
}

html body #exploreView .pearl-explore-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0 28px;
  border-bottom: 1px solid var(--txm-line);
}

html body #exploreView .pearl-kicker {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--txm-orange) !important;
  font-family: inherit !important;
  font-size: 10px !important;
  font-weight: 650 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
}

html body #exploreView .pearl-explore-head h1 {
  margin: 8px 0 0;
  color: transparent;
  font-size: clamp(52px, 5.4vw, 78px);
  font-weight: 240;
  line-height: 1;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fff, #d8e0e8 36%, #798491 49%, #f5f7f9 57%, #707b88);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html body #exploreView .pearl-explore-head p {
  max-width: 680px;
  margin-top: 11px;
  color: var(--txm-muted);
  font-size: 14px;
}

html body #exploreView .pearl-explore-note {
  color: var(--txm-faint);
  font-size: 10px;
}

html body #exploreView .exploreToolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 16px 0 4px;
}

html body #exploreView .exploreToolbar button {
  position: relative;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--txm-muted);
  padding: 0 11px;
  font-size: 11px;
}

html body #exploreView .exploreToolbar button[aria-pressed="true"] {
  background: transparent !important;
  background-image: none !important;
  color: var(--txm-ink);
  box-shadow: none !important;
}

html body #exploreView .exploreToolbar button[aria-pressed="true"]::after {
  position: absolute;
  right: 11px;
  bottom: 1px;
  left: 11px;
  height: 1px;
  background: var(--txm-ink);
  content: "";
}

html body #exploreView .exploreToolbar > span {
  margin-left: auto;
  color: var(--txm-faint);
  font-size: 10px;
}

html body #exploreView .pearl-curated-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 26px 12px !important;
  columns: auto !important;
}

html body #exploreView .pearl-curated-grid .communityCard {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--txm-ink) !important;
  transform: none;
}

html body #exploreView .pearl-curated-grid .communityMedia {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden;
  border: 1px solid var(--txm-line);
  border-radius: 10px;
  background: #030304;
}

html body #exploreView .pearl-curated-grid .communityPoster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html body #exploreView .pearl-curated-grid .communityBody {
  display: grid !important;
  gap: 3px;
  padding: 9px 1px 0;
}

html body #exploreView .pearl-curated-grid .communityBody strong {
  color: var(--txm-ink) !important;
  font-size: 14px !important;
  font-weight: 620;
}

html body #exploreView .pearl-curated-grid .communityBody p {
  display: none;
}

html body #exploreView .pearl-curated-grid .communityMeta {
  justify-content: flex-start !important;
  color: var(--txm-faint) !important;
  font-size: 9px !important;
}

/* Login */
html body #auth.pearl-auth-overlay {
  position: fixed !important;
  z-index: 300 !important;
  inset: 0 !important;
  display: grid !important;
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: none !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
  margin: 0 !important;
  overflow: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #08090c !important;
  box-shadow: none !important;
}

html body #auth.pearl-auth-overlay .authVisual {
  position: relative;
  min-height: 100dvh !important;
  padding: 56px !important;
  background:
    linear-gradient(0deg, rgb(5 6 8 / 96%), rgb(8 9 13 / 26%) 72%),
    radial-gradient(ellipse at 72% 18%, rgb(200 222 255 / 25%), transparent 34%),
    url("./editorial-coat-v1.jpg") center 24% / cover !important;
}

html body #auth.pearl-auth-overlay .authVisual::after {
  position: absolute;
  right: 16%;
  bottom: 15%;
  left: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 107 53 / 85%), transparent);
  box-shadow: 0 12px 40px rgb(255 107 53 / 25%);
  content: "";
}

html body #auth.pearl-auth-overlay .authVisual h2 {
  max-width: 620px;
  color: var(--txm-ink);
  font-size: clamp(42px, 4.7vw, 72px);
  font-weight: 260;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

html body #auth.pearl-auth-overlay .authVisual p {
  max-width: 560px;
  color: var(--txm-muted);
  font-size: 14px;
}

html body #auth.pearl-auth-overlay .authFeatures span {
  border-color: var(--txm-line);
  background: rgb(5 6 8 / 45%);
  color: var(--txm-ink);
}

html body #auth.pearl-auth-overlay #authForm {
  width: min(540px, 100%);
  margin: auto;
  padding: 44px !important;
  color: var(--txm-ink);
  background: transparent !important;
}

html body #auth.pearl-auth-overlay #authForm h1 {
  color: var(--txm-ink);
  font-size: 34px;
  font-weight: 430;
  letter-spacing: -0.035em;
}

html body #auth.pearl-auth-overlay .authLead,
html body #auth.pearl-auth-overlay .authFootnote {
  color: var(--txm-muted);
}

html body #auth.pearl-auth-overlay .field,
html body #auth.pearl-auth-overlay .field input,
html body #auth.pearl-auth-overlay .emailTabs button,
html body #auth.pearl-auth-overlay .authProviderButton,
html body #auth.pearl-auth-overlay .emailBack {
  color: var(--txm-ink);
}

html body #auth.pearl-auth-overlay .field input {
  min-height: 46px;
  border: 1px solid var(--txm-line) !important;
  border-radius: 7px !important;
  background: #0c0d11 !important;
}

html body #auth.pearl-auth-overlay .emailTabs,
html body #auth.pearl-auth-overlay .emailTabs button,
html body #auth.pearl-auth-overlay .authProviderButton,
html body #auth.pearl-auth-overlay .emailBack {
  border-color: var(--txm-line) !important;
  background: #0c0d11 !important;
}

html body #auth.pearl-auth-overlay .emailTabs button[aria-pressed="true"],
html body #auth.pearl-auth-overlay .primary {
  border-color: var(--txm-ink) !important;
  background: var(--txm-ink) !important;
  color: var(--txm-bg) !important;
}

html body #auth.pearl-auth-overlay .pearlAuthClose {
  position: fixed;
  z-index: 310;
  top: 20px;
  right: 22px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--txm-line);
  border-radius: 50%;
  background: rgb(5 6 8 / 62%);
  color: var(--txm-ink);
}

/* Image generation shell */
html body #shortfilmView #image-generation {
  color: var(--txm-ink);
}

html body #shortfilmView #image-generation .tx22-image-results {
  border-color: var(--txm-line) !important;
  border-radius: 10px !important;
  background: var(--txm-surface) !important;
  box-shadow: none !important;
}

html body #shortfilmView #image-generation .tx22-column-head h2 {
  color: var(--txm-ink) !important;
  font-size: 24px;
  font-weight: 450;
}

html body #shortfilmView #image-generation .tx22-image-panel {
  border-color: var(--txm-line) !important;
  border-radius: 10px !important;
  background: var(--txm-surface) !important;
}

html body #shortfilmView #image-generation .sfModeBar,
html body #shortfilmView #image-generation .tx22-field-block,
html body #shortfilmView #image-generation .sfPromptWrap,
html body #shortfilmView #image-generation .image-reference-grid,
html body #shortfilmView #image-generation .tx22-multi-upload {
  border-color: var(--txm-line) !important;
  background: #08090c !important;
  color: var(--txm-muted) !important;
}

html body #shortfilmView #image-generation #imagePrompt {
  color: var(--txm-ink) !important;
}

html body #shortfilmView #image-generation .sfModeBar button[aria-pressed="true"],
html body #shortfilmView #image-generation .tx22-image-aspects button[aria-pressed="true"],
html body #shortfilmView #image-generation .sfCount button[aria-pressed="true"],
html body #shortfilmView #image-generation #imageGenerate:not(:disabled) {
  border-color: var(--txm-ink) !important;
  background: var(--txm-ink) !important;
  color: var(--txm-bg) !important;
}

@keyframes txMasterRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes txMasterShimmer {
  to {
    background-position: -220% 0, 0 0;
  }
}

@media (max-width: 1180px) {
  html body #homeView .txMasterHomeWorkbench {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr);
  }

  html body .jobs,
  html body #homeView .pearl-curated-grid,
  html body #exploreView .pearl-curated-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 920px) {
  html body {
    padding-top: 60px;
  }

  html body > header#siteHeader {
    right: 0 !important;
    left: 0 !important;
    height: 60px !important;
    min-height: 60px !important;
    padding: 0 14px !important;
  }

  html body > header#siteHeader .pearl-brand {
    position: static !important;
    width: 112px !important;
    min-width: 112px !important;
    height: 28px !important;
  }

  html body > header#siteHeader .pearl-brand img {
    width: 112px !important;
  }

  html body > header#siteHeader .txTopbarTitle {
    display: none;
  }

  html body > header#siteHeader .globalStudioSearch {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 36px !important;
    flex: 1;
    margin-left: 6px !important;
    padding: 0 9px !important;
  }

  html body > header#siteHeader .account {
    margin-left: 0 !important;
  }

  html body > header#siteHeader .badge {
    display: none !important;
  }

  html body #workspace.pearl-workspace {
    margin-left: 0 !important;
    padding: 24px 16px 54px !important;
  }

  html body #workspace > nav#primaryNavigation {
    top: 60px !important;
    bottom: 0 !important;
    width: min(280px, calc(100vw - 44px)) !important;
    transform: translateX(calc(-100% - 20px)) !important;
    transition: transform 220ms var(--txm-ease) !important;
  }

  html body[data-nav-open="true"] #workspace > nav#primaryNavigation {
    transform: none !important;
  }

  html body #homeView .txMasterHomeMeta {
    position: static;
    margin-bottom: 14px;
  }

  html body #homeView .txMasterHomeIntro {
    padding-top: 8px;
  }

  html body #homeView .txMasterHomeIntro h1 {
    font-size: clamp(44px, 10vw, 68px);
  }

  html body #homeView .txMasterHomeWorkbench {
    grid-template-columns: 1fr;
  }

  html body #homeView .pearl-composer.txMasterComposer,
  html body #homeView .txMasterNowShowing {
    min-height: 0;
  }

  html body #homeView .txMasterNowShowing {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  }

  html body #homeView .txMasterNowMedia {
    height: 100%;
    min-height: 300px;
    aspect-ratio: auto;
  }

  html body .jobs,
  html body #homeView .pearl-curated-grid,
  html body #exploreView .pearl-curated-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body .library .sectionHead,
  html body #exploreView .pearl-explore-head {
    align-items: flex-start;
    flex-direction: column;
  }

  html body .libraryToolsRow {
    align-items: stretch !important;
    flex-direction: column;
  }

  html body .librarySearchWrap {
    width: 100% !important;
  }

  html body #auth.pearl-auth-overlay {
    display: block !important;
  }

  html body #auth.pearl-auth-overlay .authVisual {
    min-height: 240px !important;
    padding: 34px 26px !important;
  }

  html body #auth.pearl-auth-overlay .authVisual h2 {
    font-size: 38px;
  }

  html body #auth.pearl-auth-overlay #authForm {
    padding: 32px 26px 44px !important;
  }
}

@media (min-width: 921px) and (max-width: 1180px) {
  html body #shortfilmView .txMasterBViewport {
    min-height: 340px !important;
    padding: 10px 64px !important;
  }

  html body #shortfilmView .txMasterBViewport.is-focus[data-aspect="9:16"] .txMasterBMedia.is-selected {
    width: 200px !important;
  }

  html body #shortfilmView .txMasterBInfo {
    padding: 9px 16px 10px;
  }
}

@media (max-width: 620px) {
  html body > header#siteHeader {
    gap: 6px !important;
    padding-inline: 10px !important;
  }

  html body > header#siteHeader .pearl-brand {
    width: 84px !important;
    min-width: 84px !important;
  }

  html body > header#siteHeader .pearl-brand img {
    width: 84px !important;
  }

  html body > header#siteHeader .globalStudioSearch {
    min-width: 0 !important;
    padding: 0 8px !important;
  }

  html body > header#siteHeader .globalStudioSearch input {
    font-size: 11px !important;
  }

  html body > header#siteHeader .points-pill {
    min-width: 52px;
    min-height: 34px !important;
    padding: 0 7px !important;
  }

  html body > header#siteHeader .points-pill > span:last-child {
    display: none;
  }

  html body > header#siteHeader #profileTrigger {
    min-width: 36px !important;
    padding: 0 !important;
  }

  html body #homeView .pearl-home-inner,
  html body .library,
  html body #exploreView {
    width: 100%;
  }

  html body #homeView .txMasterHomeIntro h1 {
    font-size: clamp(38px, 12vw, 52px);
    line-height: 1.02;
  }

  html body #homeView .txMasterHomeIntro > p {
    font-size: 13px;
  }

  html body #homeView .pearl-composer.txMasterComposer {
    padding: 18px 16px 15px !important;
  }

  html body #homeView #pearlHomePrompt {
    min-height: 120px;
    font-size: 16px !important;
  }

  html body #homeView .pearl-control,
  html body #homeView .pearl-count-option,
  html body #homeView .pearl-cta {
    min-height: 42px !important;
  }

  html body #homeView .pearl-cta {
    width: 100%;
  }

  html body #homeView .txMasterNowShowing {
    display: flex;
  }

  html body #homeView .txMasterNowMedia {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  html body #homeView .pearl-curated {
    margin-top: 38px;
  }

  html body #homeView .pearl-curated-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
  }

  html body #homeView .pearl-curated-head h2 {
    font-size: 24px;
  }

  html body #homeView .pearl-curated-line {
    display: none;
  }

  html body #homeView .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  html body #homeView .section-tools {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
  }

  html body #homeView .filter-row {
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  html body #homeView .filter-row::-webkit-scrollbar {
    display: none;
  }

  html body #homeView .pearl-curated-more {
    min-height: 34px;
  }

  html body #homeView .pearl-curated-grid,
  html body #exploreView .pearl-curated-grid {
    gap: 20px 8px !important;
  }

  html body #homeView .pearl-curated-grid .communityBody strong,
  html body #exploreView .pearl-curated-grid .communityBody strong {
    font-size: 12px;
  }

  html body #homeView .pearl-curated-grid .communityMeta,
  html body #exploreView .pearl-curated-grid .communityMeta {
    font-size: 8px;
  }

  html body .jobs {
    grid-template-columns: 1fr !important;
  }

  html body .library .sectionHead h1,
  html body #exploreView .pearl-explore-head h1 {
    font-size: 46px;
  }

  html body #exploreView .pearl-explore-note {
    display: none;
  }

  html body #exploreView .exploreToolbar {
    flex-wrap: wrap;
  }

  html body #exploreView .exploreToolbar > span {
    width: 100%;
    margin-left: 0;
  }

  html body #auth.pearl-auth-overlay .authVisual {
    min-height: 210px !important;
    padding: 30px 20px !important;
  }

  html body #auth.pearl-auth-overlay .authVisual h2 {
    font-size: 32px;
  }

  html body #auth.pearl-auth-overlay .authVisual p,
  html body #auth.pearl-auth-overlay .authFeatures {
    display: none;
  }

  html body #auth.pearl-auth-overlay #authForm {
    padding: 26px 18px 40px !important;
  }
}

@media (max-width: 359px) {
  html body > header#siteHeader .pearl-brand,
  html body > header#siteHeader .pearl-brand img {
    width: 70px !important;
    min-width: 70px !important;
  }

  html body > header#siteHeader .globalStudioSearch input::placeholder {
    color: transparent !important;
  }

  html body #homeView .pearl-curated-grid,
  html body #exploreView .pearl-curated-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html body *,
  html body *::before,
  html body *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* The approved login reference is a protected modal over the dimmed studio. */
html body #auth.pearl-auth-overlay {
  position: fixed !important;
  z-index: 300 !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  display: block !important;
  isolation: isolate;
  width: min(500px, calc(100vw - 32px)) !important;
  max-width: 500px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 40px) !important;
  margin: 0 !important;
  overflow: auto !important;
  border: 1px solid var(--txm-line) !important;
  border-radius: 12px !important;
  background: #0d0e12 !important;
  box-shadow: 0 34px 100px rgb(0 0 0 / 74%) !important;
  transform: translate(-50%, -50%) !important;
}

html body #auth.pearl-auth-overlay::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: rgb(2 3 5 / 74%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  content: "";
}

html body #auth.pearl-auth-overlay .authVisual {
  display: none !important;
}

html body #auth.pearl-auth-overlay .authModalBrand {
  display: none !important;
}

html body #auth.pearl-auth-overlay #authForm {
  width: 100% !important;
  margin: 0 !important;
  padding: 30px 30px 26px !important;
}

html body #auth.pearl-auth-overlay #authForm h1 {
  font-size: 29px;
  font-weight: 430;
  line-height: 1.2;
}

html body #auth.pearl-auth-overlay .authLead {
  margin: 9px 0 20px;
  color: var(--txm-muted);
  font-size: 12px;
}

html body #auth.pearl-auth-overlay .authProviders {
  grid-template-columns: 1fr 1fr;
}

html body #auth.pearl-auth-overlay .emailTabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

html body #auth.pearl-auth-overlay .authFootnote {
  margin-top: 15px;
}

@media (max-width: 520px) {
  html body #auth.pearl-auth-overlay {
    width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
    border-radius: 10px !important;
  }

  html body #auth.pearl-auth-overlay #authForm {
    padding: 26px 20px 24px !important;
  }

  html body #auth.pearl-auth-overlay .pearlAuthClose {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }
}

/* Final shell specificity: production has older duplicated-ID overrides. */
html body > header#siteHeader#siteHeader {
  right: 0 !important;
  left: var(--txm-rail-width) !important;
  width: calc(100% - var(--txm-rail-width)) !important;
  max-width: calc(100% - var(--txm-rail-width)) !important;
  margin: 0 !important;
  height: var(--txm-header-height) !important;
  min-height: var(--txm-header-height) !important;
  padding: 0 28px !important;
  background: rgb(6 6 8 / 94%) !important;
}

html body > header#siteHeader#siteHeader .globalStudioSearch {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  padding: 0 10px !important;
}

html body > header#siteHeader#siteHeader .globalStudioSearch input {
  position: absolute !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html body > header#siteHeader#siteHeader .globalStudioSearch:focus-within {
  width: min(420px, 38vw) !important;
  min-width: 220px !important;
  max-width: 420px !important;
  padding: 0 12px !important;
}

html body > header#siteHeader#siteHeader .globalStudioSearch:focus-within input {
  position: static !important;
  width: 100% !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

html body #workspace#workspace.pearl-workspace.pearl-shell {
  width: calc(100% - var(--txm-rail-width)) !important;
  max-width: calc(100% - var(--txm-rail-width)) !important;
  min-width: 0 !important;
  margin-left: var(--txm-rail-width) !important;
  padding: calc(var(--txm-header-height) + 28px) 34px 72px !important;
}

html body #workspace#workspace > nav#primaryNavigation#primaryNavigation {
  top: var(--txm-header-height) !important;
  bottom: 0 !important;
  left: 0 !important;
  width: var(--txm-rail-width) !important;
  transform: none !important;
}

html body #workspace#workspace > nav#primaryNavigation#primaryNavigation > button[data-page="commerce"],
html body #workspace#workspace > nav#primaryNavigation#primaryNavigation > button[data-page="plans"] {
  display: none !important;
}

@media (max-width: 920px) {
  html body {
    padding-top: 0 !important;
  }

  html body > header#siteHeader#siteHeader {
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 60px !important;
    min-height: 60px !important;
    padding: 0 14px !important;
  }

  html body > header#siteHeader#siteHeader .globalStudioSearch {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  html body #workspace#workspace.pearl-workspace.pearl-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 84px 16px 54px !important;
  }

  html body #workspace#workspace > nav#primaryNavigation#primaryNavigation {
    top: 60px !important;
    transform: translateX(calc(-100% - 20px)) !important;
  }

  html body[data-nav-open="true"] #workspace#workspace > nav#primaryNavigation#primaryNavigation {
    transform: none !important;
  }
}

/* Wallet: production data in the approved two-pane studio layout. */
html body[data-page="wallet"] .walletLayout.txMasterWalletLayout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: none !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 0 24px !important;
}

html body[data-page="wallet"] .txw-wallet-heading {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 24px 0 30px !important;
  border-bottom: 1px solid var(--txm-line) !important;
  text-align: left !important;
}

html body[data-page="wallet"] .txw-wallet-heading h1 {
  margin: 0 !important;
  color: transparent !important;
  font-size: clamp(52px, 5.4vw, 78px) !important;
  font-weight: 240 !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
  background: linear-gradient(180deg, #fff, #d8e0e8 36%, #798491 49%, #f5f7f9 57%, #707b88) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html body[data-page="wallet"] .txw-wallet-heading p {
  max-width: 680px !important;
  margin: 12px 0 0 !important;
  color: var(--txm-muted) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

html body[data-page="wallet"] .walletLayout .balanceCard {
  position: relative !important;
  display: flex !important;
  min-height: 168px !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 28px 34px !important;
  border: 1px solid var(--txm-line) !important;
  border-radius: 12px !important;
  background:
    radial-gradient(ellipse at 82% 0%, rgb(159 191 232 / 21%), transparent 30%),
    linear-gradient(112deg, #101218, #090a0d 74%) !important;
  box-shadow: 0 22px 68px rgb(0 0 0 / 34%) !important;
}

html body[data-page="wallet"] .walletLayout .balanceCard::before {
  position: absolute;
  right: 9%;
  bottom: 0;
  left: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--txm-orange), transparent);
  box-shadow: 0 10px 36px rgb(255 107 53 / 22%);
  content: "";
}

html body[data-page="wallet"] .walletLayout .balanceCard > .eyebrow {
  color: var(--txm-faint) !important;
  font-size: 9px !important;
  font-weight: 650 !important;
  letter-spacing: 0.13em !important;
}

html body[data-page="wallet"] .walletLayout .balanceLine {
  display: flex !important;
  align-items: baseline !important;
  gap: 10px !important;
  margin-top: 10px !important;
}

html body[data-page="wallet"] .walletLayout .balanceLine strong {
  color: var(--txm-ink) !important;
  font-size: clamp(54px, 6vw, 78px) !important;
  font-weight: 240 !important;
  line-height: 0.92 !important;
  letter-spacing: -0.055em !important;
  font-variant-numeric: tabular-nums;
}

html body[data-page="wallet"] .walletLayout .balanceLine span,
html body[data-page="wallet"] .walletLayout .balanceSub,
html body[data-page="wallet"] .walletLayout .balanceCard .hint {
  color: var(--txm-muted) !important;
  font-size: 11px !important;
}

html body[data-page="wallet"] .walletLayout .balanceDivider {
  display: none !important;
}

html body[data-page="wallet"] .walletLayout .balanceSub {
  margin-top: 15px !important;
}

html body[data-page="wallet"] .walletLayout .rechargeCard {
  display: none !important;
}

html body[data-page="wallet"] #rechargeCodeCard.txMasterWalletBoard {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.42fr) !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--txm-line) !important;
  border-radius: 12px !important;
  background: #0c0d11 !important;
  box-shadow: 0 26px 90px rgb(0 0 0 / 42%) !important;
}

html body[data-page="wallet"] #rechargeCodeCard.txMasterWalletBoard::before,
html body[data-page="wallet"] #rechargeCodeCard.txMasterWalletBoard::after {
  display: none !important;
  content: none !important;
}

html body[data-page="wallet"] .txMasterWalletQrPane {
  min-width: 0;
  padding: 30px;
  border-right: 1px solid var(--txm-line);
  background:
    radial-gradient(ellipse at 12% 4%, rgb(255 255 255 / 4%), transparent 34%),
    #0d0e12;
}

html body[data-page="wallet"] .txMasterWalletPackages {
  min-width: 0;
  padding: 30px 32px;
  background:
    radial-gradient(ellipse at 100% 0%, rgb(143 179 225 / 8%), transparent 32%),
    #090a0d;
}

html body[data-page="wallet"] .txMasterWalletKicker {
  display: block;
  color: var(--txm-orange);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

html body[data-page="wallet"] .txMasterWalletPaneHead h2,
html body[data-page="wallet"] .txMasterWalletPackagesHead h2 {
  margin: 8px 0 0;
  color: var(--txm-ink);
  font-size: 24px;
  font-weight: 480;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

html body[data-page="wallet"] .txMasterWalletPaneHead p {
  margin: 8px 0 0;
  color: var(--txm-muted);
  font-size: 11px;
  line-height: 1.7;
}

html body[data-page="wallet"] .txMasterWalletQrPane .rechargeCodeQr {
  display: grid;
  width: min(226px, 100%);
  min-height: 0;
  aspect-ratio: 888 / 1131;
  place-items: center;
  overflow: hidden;
  margin: 24px auto 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body[data-page="wallet"] #rechargeCodeCard .txMasterWalletQrPane .rechargeCodeQr {
  width: min(288px, 100%) !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  background: transparent !important;
}

html body[data-page="wallet"] .txMasterWalletQrPane .rechargeCodeQr.hasImage {
  width: min(288px, 100%);
}

html body[data-page="wallet"] .txMasterWalletQrPane .rechargeCodeQr img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

html body[data-page="wallet"] .txMasterWalletQrPane .rechargeCodeQrEmpty {
  display: grid;
  width: 100%;
  min-height: 180px;
  place-content: center;
  padding: 18px;
  border: 1px dashed var(--txm-line);
  color: var(--txm-muted);
  text-align: center;
}

html body[data-page="wallet"] .txMasterWalletQrPane .rechargeCodeQrEmpty small {
  margin-top: 5px;
  color: var(--txm-faint);
}

html body[data-page="wallet"] .txMasterWalletQrPane .rechargeCodeQrNote {
  margin: 12px 0 0;
  color: var(--txm-faint);
  font-size: 10px;
  text-align: center;
}

html body[data-page="wallet"] .txMasterWalletRedeem {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--txm-line);
}

html body[data-page="wallet"] .txMasterWalletRedeemHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

html body[data-page="wallet"] .txMasterWalletRedeemHead h2 {
  margin: 0;
  color: var(--txm-ink);
  font-size: 14px;
  font-weight: 550;
}

html body[data-page="wallet"] .txMasterWalletRedeemHead span {
  color: var(--txm-faint);
  font-size: 9px;
}

html body[data-page="wallet"] .txMasterWalletRedeem .rechargeRedeemRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 12px;
}

html body[data-page="wallet"] .txMasterWalletRedeem input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--txm-line) !important;
  border-radius: 6px !important;
  background: #060709 !important;
  color: var(--txm-ink) !important;
  font: 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

html body[data-page="wallet"] .txMasterWalletRedeem button {
  min-width: 104px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--txm-ink) !important;
  border-radius: 6px !important;
  background: var(--txm-ink) !important;
  color: var(--txm-bg) !important;
  font-size: 11px;
  font-weight: 700;
}

html body[data-page="wallet"] .txMasterWalletRedeem button:disabled {
  border-color: var(--txm-line) !important;
  background: #16171b !important;
  color: var(--txm-faint) !important;
}

html body[data-page="wallet"] .rechargeRedeemStatus {
  min-height: 18px;
  margin: 8px 0 0 !important;
  color: var(--txm-faint) !important;
  font-size: 9px !important;
  line-height: 1.55;
}

html body[data-page="wallet"] .rechargeRedeemStatus[data-tone="success"] {
  color: var(--txm-success) !important;
}

html body[data-page="wallet"] .rechargeRedeemStatus[data-tone="error"] {
  color: var(--txm-danger) !important;
}

html body[data-page="wallet"] .txMasterWalletPackagesHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

html body[data-page="wallet"] .txMasterWalletSecure {
  padding: 5px 8px;
  border: 1px solid var(--txm-line);
  border-radius: 5px;
  color: var(--txm-faint);
  font-size: 9px;
}

html body[data-page="wallet"] .txMasterWalletTierGrid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 22px !important;
}

html body[data-page="wallet"] .txMasterWalletTier {
  position: relative;
  display: grid;
  min-height: 108px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 5px 16px;
  padding: 18px;
  border: 1px solid var(--txm-line) !important;
  border-radius: 8px !important;
  background: rgb(255 255 255 / 2.2%) !important;
  color: var(--txm-ink) !important;
  text-align: left;
}

html body[data-page="wallet"] .txMasterWalletTier:hover,
html body[data-page="wallet"] .txMasterWalletTier[aria-pressed="true"] {
  border-color: var(--txm-line-strong) !important;
  background: rgb(255 255 255 / 4.4%) !important;
}

html body[data-page="wallet"] .txMasterWalletTier[aria-pressed="true"] {
  box-shadow: inset 0 1px var(--txm-orange) !important;
}

html body[data-page="wallet"] .txMasterWalletTier strong {
  align-self: end;
  color: var(--txm-ink);
  font-size: 13px;
  font-weight: 550;
}

html body[data-page="wallet"] .txMasterWalletTier b {
  align-self: end;
  justify-self: end;
  color: var(--txm-ink);
  font-size: 24px;
  font-weight: 330;
  font-variant-numeric: tabular-nums;
}

html body[data-page="wallet"] .txMasterWalletTier span {
  color: var(--txm-muted);
  font-size: 10px;
}

html body[data-page="wallet"] .txMasterWalletTier i {
  justify-self: end;
  align-self: center;
  color: var(--txm-faint);
  font-size: 14px;
  font-style: normal;
}

html body[data-page="wallet"] .txMasterWalletNotice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--txm-line);
  border-radius: 7px;
  background: rgb(255 255 255 / 2%);
  color: var(--txm-muted);
  font-size: 10px;
  line-height: 1.65;
}

html body[data-page="wallet"] .txMasterWalletNotice strong {
  color: var(--txm-ink);
  font-weight: 550;
}

html body[data-page="wallet"] section.paylog[data-view="wallet"] {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 14px 0 0 !important;
  padding: 24px 28px !important;
  border: 1px solid var(--txm-line) !important;
  border-radius: 10px !important;
  background: #0c0d11 !important;
  box-shadow: none !important;
}

html body[data-page="wallet"] section.paylog:has(#invoiceList),
html body[data-page="wallet"] #openInvoiceDialog {
  display: none !important;
}

html body[data-page="wallet"] .paylog .sectionHead {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--txm-line);
}

html body[data-page="wallet"] .paylog h2 {
  color: var(--txm-ink);
  font-size: 20px;
  font-weight: 500;
}

@media (max-width: 920px) {
  html body[data-page="wallet"] #rechargeCodeCard.txMasterWalletBoard {
    grid-template-columns: 1fr !important;
  }

  html body[data-page="wallet"] .txMasterWalletQrPane {
    border-right: 0;
    border-bottom: 1px solid var(--txm-line);
  }

  html body[data-page="wallet"] .txMasterWalletTierGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  html body[data-page="wallet"] .txw-wallet-heading {
    padding: 12px 0 24px !important;
  }

  html body[data-page="wallet"] .txw-wallet-heading h1 {
    font-size: 46px !important;
  }

  html body[data-page="wallet"] .walletLayout .balanceCard {
    min-height: 150px;
    padding: 22px 20px !important;
  }

  html body[data-page="wallet"] .txMasterWalletQrPane,
  html body[data-page="wallet"] .txMasterWalletPackages {
    padding: 22px 18px;
  }

  html body[data-page="wallet"] .txMasterWalletTierGrid {
    grid-template-columns: 1fr !important;
  }

  html body[data-page="wallet"] .txMasterWalletTier {
    min-height: 92px;
    padding: 15px;
  }

  html body[data-page="wallet"] .txMasterWalletRedeem .rechargeRedeemRow {
    grid-template-columns: 1fr;
  }

  html body[data-page="wallet"] .txMasterWalletRedeem button {
    width: 100%;
  }

  html body[data-page="wallet"] .txMasterWalletPackagesHead {
    align-items: flex-start;
    flex-direction: column;
  }

  html body[data-page="wallet"] section.paylog[data-view="wallet"] {
    padding: 20px 18px !important;
  }
}

/* Short-film B: one real focused result stage, no hidden "all results" grid. */
html body #shortfilmView {
  padding-bottom: 146px !important;
  animation: none !important;
  transform: none !important;
}

html body #shortfilmView [hidden],
html body #shortfilmView .txb-shortfilm-workspace[hidden],
html body #shortfilmView #image-generation[hidden] {
  display: none !important;
}

html body #shortfilmView #image-generation {
  scroll-margin-top: calc(var(--txm-header-height) + 12px);
}

html body #shortfilmView > .shortfilmHero,
html body #shortfilmView > .pearl-sf-stats {
  display: none !important;
}

html body #shortfilmView > .pearl-shortfilm-head {
  display: flex !important;
  align-items: end !important;
  justify-content: space-between !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 26px 0 22px !important;
  border: 0 !important;
  background: transparent !important;
}

html body #shortfilmView > .pearl-shortfilm-head .pearl-shortfilm-title h1 {
  margin: 0 !important;
  color: transparent !important;
  font-size: clamp(48px, 5vw, 68px) !important;
  font-weight: 250 !important;
  line-height: 1 !important;
  letter-spacing: -0.05em !important;
  background: linear-gradient(180deg, #fff, #d8e0e8 36%, #798491 49%, #f5f7f9 57%, #707b88) !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html body #shortfilmView > .pearl-shortfilm-head .pearl-shortfilm-title p {
  margin: 9px 0 0 !important;
  color: var(--txm-muted) !important;
  font-size: 12px !important;
}

html body #shortfilmView > .pearl-shortfilm-head .pearl-shortfilm-head-actions {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

html body #shortfilmView .tx22-creation-switch {
  display: inline-flex !important;
  width: max-content !important;
  gap: 3px !important;
  margin: 0 4px 0 0 !important;
  padding: 3px !important;
  border: 1px solid var(--txm-line) !important;
  border-radius: 7px !important;
  background: #0a0b0f !important;
}

html body #shortfilmView .tx22-creation-switch button {
  min-height: 32px;
  padding: 0 15px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: var(--txm-muted) !important;
  font-size: 10px !important;
}

html body #shortfilmView .tx22-creation-switch button[aria-pressed="true"] {
  background: var(--txm-ink) !important;
  color: var(--txm-bg) !important;
}

html body #shortfilmView .txb-results-shell {
  overflow: hidden !important;
  border: 1px solid var(--txm-line) !important;
  border-radius: 12px !important;
  background: #090a0d !important;
  box-shadow: 0 24px 84px rgb(0 0 0 / 34%) !important;
}

html body #shortfilmView .txb-shell-head {
  position: relative !important;
  z-index: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border-bottom-color: var(--txm-line) !important;
}

html body #shortfilmView .txb-shell-head h2 {
  color: var(--txm-ink) !important;
  font-size: 24px !important;
  font-weight: 430 !important;
  letter-spacing: -0.03em !important;
}

html body #shortfilmView .txb-shell-head p,
html body #shortfilmView .txb-shell-note {
  color: var(--txm-muted) !important;
  font-size: 10px !important;
}

html body #shortfilmView .txMasterBatch {
  scroll-margin-top: calc(var(--txm-header-height) + 12px);
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--txm-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

html body #shortfilmView .txMasterBatch:first-child {
  border-top: 0 !important;
}

html body #shortfilmView .txMasterBatchHead {
  position: relative !important;
  z-index: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  display: flex !important;
  width: 100% !important;
  height: auto !important;
  min-height: 66px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 12px 20px !important;
  border: 0 !important;
}

html body #shortfilmView .txMasterBatchHead > div:first-child {
  min-width: 0;
}

html body #shortfilmView .txMasterBatchHead h2 {
  overflow: hidden;
  margin: 0 !important;
  color: var(--txm-ink) !important;
  font-size: 18px !important;
  font-weight: 480 !important;
  letter-spacing: -0.02em !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #shortfilmView .txMasterBatchHead p {
  overflow: hidden;
  max-width: min(64vw, 760px);
  margin: 4px 0 0 !important;
  color: var(--txm-muted) !important;
  font-size: 10px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #shortfilmView .txMasterBatchTools {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px !important;
  padding: 0 !important;
}

html body #shortfilmView .txMasterBCounter {
  min-width: 48px;
  color: var(--txm-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

html body #shortfilmView .pearl-sf-batch-status {
  border: 1px solid var(--txm-line) !important;
  border-radius: 999px !important;
  background: #101116 !important;
  color: #b9d6c2 !important;
  box-shadow: none !important;
}

html body #shortfilmView .pearl-sf-batch-status[data-tone="failed"] {
  color: var(--txm-danger) !important;
}

html body #shortfilmView .txMasterBStage {
  border-top: 1px solid var(--txm-line);
  outline: 0;
}

html body #shortfilmView .txMasterBViewport {
  position: relative;
  display: flex;
  min-height: 432px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  padding: 12px 72px;
  background:
    radial-gradient(ellipse at 50% 45%, rgb(116 148 190 / 10%), transparent 42%),
    #07080b;
}

html body #shortfilmView .txMasterBViewport.is-focus {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(230px, 1.65fr) minmax(120px, 0.8fr);
}

html body #shortfilmView .txMasterBMedia {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: 7px;
  background: #030304;
  color: var(--txm-ink);
  font: inherit;
  box-shadow: 0 16px 46px rgb(0 0 0 / 34%);
  cursor: pointer;
  opacity: 0.52;
  filter: saturate(0.68) brightness(0.7);
  transform: scale(0.93);
  transition: opacity 200ms var(--txm-ease), filter 200ms var(--txm-ease), transform 200ms var(--txm-ease), border-color 160ms ease;
}

html body #shortfilmView .txMasterBMedia.is-selected {
  z-index: 2;
  border-color: rgb(232 237 243 / 40%);
  opacity: 1;
  filter: none;
  transform: none;
  box-shadow: 0 22px 62px rgb(0 0 0 / 52%);
}

html body #shortfilmView .txMasterBMedia:hover {
  opacity: 0.82;
  filter: saturate(0.84) brightness(0.86);
}

html body #shortfilmView .txMasterBMedia.is-selected:hover {
  opacity: 1;
  filter: brightness(0.96);
}

html body #shortfilmView .txMasterBMedia[data-aspect="9:16"] {
  aspect-ratio: 9 / 16;
}

html body #shortfilmView .txMasterBMedia[data-aspect="16:9"] {
  aspect-ratio: 16 / 9;
}

html body #shortfilmView .txMasterBViewport.is-row[data-count="1"] .txMasterBMedia[data-aspect="9:16"] {
  width: min(220px, 22vw);
}

html body #shortfilmView .txMasterBViewport.is-row[data-count="1"] .txMasterBMedia[data-aspect="16:9"] {
  width: min(720px, 72vw);
}

html body #shortfilmView .txMasterBViewport.is-row[data-count="2"] .txMasterBMedia[data-aspect="9:16"] {
  width: min(240px, 21vw);
}

html body #shortfilmView .txMasterBViewport.is-row[data-count="2"] .txMasterBMedia[data-aspect="16:9"] {
  width: min(420px, 36vw);
}

html body #shortfilmView .txMasterBViewport.is-row[data-count="3"] .txMasterBMedia[data-aspect="9:16"] {
  width: min(200px, 17vw);
}

html body #shortfilmView .txMasterBViewport.is-row[data-count="3"] .txMasterBMedia[data-aspect="16:9"] {
  width: min(300px, 25vw);
}

html body #shortfilmView .txMasterBViewport.is-focus[data-aspect="9:16"] .txMasterBMedia.is-selected {
  width: 230px;
}

html body #shortfilmView .txMasterBViewport.is-focus[data-aspect="9:16"] .txMasterBMedia.is-side {
  width: 158px;
}

html body #shortfilmView .txMasterBViewport.is-focus[data-aspect="16:9"] .txMasterBMedia.is-selected {
  width: min(640px, 49vw);
}

html body #shortfilmView .txMasterBViewport.is-focus[data-aspect="16:9"] .txMasterBMedia.is-side {
  width: min(190px, 15vw);
}

html body #shortfilmView .txMasterBMedia img,
html body #shortfilmView .txMasterBMedia video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #030304;
}

html body #shortfilmView .txMasterBMedia img {
  transition: transform 500ms var(--txm-ease), filter 180ms ease;
}

html body #shortfilmView .txMasterBMedia:hover img {
  transform: scale(1.018);
}

html body #shortfilmView .txMasterBMediaFallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--txm-faint);
  font-size: clamp(36px, 6vw, 84px);
  font-weight: 220;
}

html body #shortfilmView .txMasterBIndex,
html body #shortfilmView .txMasterBState {
  position: absolute;
  z-index: 2;
  top: 9px;
  padding: 3px 7px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  background: rgb(3 4 6 / 76%);
  color: rgb(255 255 255 / 74%);
  font-size: 8px;
  backdrop-filter: blur(7px);
}

html body #shortfilmView .txMasterBIndex {
  left: 9px;
}

html body #shortfilmView .txMasterBState {
  right: 9px;
}

html body #shortfilmView .txMasterBState[data-state="failed"],
html body #shortfilmView .txMasterBState[data-state="canceled"] {
  color: var(--txm-danger);
}

html body #shortfilmView .txMasterBPlay {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 42%);
  border-radius: 50%;
  background: rgb(3 4 6 / 46%);
  color: #fff;
  font-size: 13px;
  transform: translate(-50%,-50%);
  backdrop-filter: blur(7px);
}

html body #shortfilmView .txMasterBMedia.is-selected .txMasterBPlay {
  opacity: 1;
}

html body #shortfilmView .txMasterBMedia.is-side .txMasterBPlay,
html body #shortfilmView .txMasterBMedia:not(.is-selected) .txMasterBPlay {
  opacity: 0;
}

html body #shortfilmView .txMasterBMedia.is-playing .txMasterBPlay,
html body #shortfilmView .txMasterBMedia.is-playing .txMasterBState {
  opacity: 0;
  pointer-events: none;
}

html body #shortfilmView .txMasterBSideSlot {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

html body #shortfilmView .txMasterBArrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--txm-line-strong);
  border-radius: 50%;
  background: rgb(7 8 10 / 88%);
  color: var(--txm-ink);
  font-size: 22px;
  transform: translateY(-50%);
}

html body #shortfilmView .txMasterBArrow.is-prev {
  left: 16px;
}

html body #shortfilmView .txMasterBArrow.is-next {
  right: 16px;
}

html body #shortfilmView .txMasterBArrow:disabled {
  opacity: 0.24;
}

html body #shortfilmView .txMasterBInfo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 11px 18px 12px;
  border-top: 1px solid var(--txm-line);
  background: #0a0b0f;
}

html body #shortfilmView .txMasterBKicker {
  color: var(--txm-orange);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

html body #shortfilmView .txMasterBCopy h3 {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--txm-ink);
  font-size: 20px;
  font-weight: 470;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body #shortfilmView .txMasterBCopy > p {
  display: none;
}

html body #shortfilmView .txMasterBMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

html body #shortfilmView .txMasterBMeta span {
  padding: 4px 7px;
  border: 1px solid var(--txm-line);
  border-radius: 4px;
  color: var(--txm-muted);
  font-size: 9px;
}

html body #shortfilmView .txMasterBActions {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

html body #shortfilmView .txMasterBActions button,
html body #shortfilmView .txMasterBActions a {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  padding: 0 13px;
  border: 1px solid var(--txm-line) !important;
  border-radius: 6px !important;
  background: #111217 !important;
  color: var(--txm-ink) !important;
  font-size: 10px;
  text-decoration: none;
}

html body #shortfilmView .txMasterBActions .primary {
  border-color: var(--txm-ink) !important;
  background: var(--txm-ink) !important;
  color: var(--txm-bg) !important;
  font-weight: 700;
}

html body #shortfilmView .txMasterBProgress {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--txm-line);
  border-radius: 6px;
  color: var(--txm-muted);
  font-size: 10px;
}

html body #shortfilmView .txMasterBError {
  margin: 8px 0 0 !important;
  color: var(--txm-danger) !important;
  font-size: 10px !important;
}

html body #shortfilmView #image-generation .tx22-prototype-note,
html body #shortfilmView #image-generation .tx22-composer-head > span,
html body #shortfilmView #image-generation .tx22-field-label,
html body #shortfilmView #image-generation .tx22-field-block > span {
  color: #858b96 !important;
}

html body #shortfilmView #shortfilmForm.txb-composer {
  position: fixed !important;
  z-index: 96 !important;
  bottom: 12px !important;
  left: calc(var(--txm-rail-width) + (100vw - var(--txm-rail-width)) / 2) !important;
  display: grid !important;
  width: min(1100px, calc(100vw - var(--txm-rail-width) - 68px)) !important;
  height: 78px !important;
  min-height: 78px !important;
  max-height: 78px !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  overflow: visible !important;
  border: 1px solid var(--txm-line-strong) !important;
  border-radius: 16px !important;
  background: rgb(12 13 17 / 97%) !important;
  box-shadow: 0 24px 80px rgb(0 0 0 / 60%) !important;
  transform: translateX(-50%) !important;
}

html body[data-page="shortfilm"] #shortfilmView {
  min-height: calc(100dvh - var(--txm-header-height) - 28px);
}

@media (max-width: 860px) {
  html body #shortfilmView .txb-mobile-nav {
    position: fixed !important;
    z-index: 72 !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    display: grid !important;
    width: 100% !important;
    height: auto !important;
    min-height: calc(58px + env(safe-area-inset-bottom)) !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: column !important;
    padding: 5px 8px env(safe-area-inset-bottom) !important;
    border: 0 !important;
    border-top: 1px solid var(--txm-line) !important;
    border-radius: 0 !important;
    background: rgb(6 7 9 / 98.5%) !important;
    box-shadow: 0 -16px 42px rgb(0 0 0 / 32%) !important;
    backdrop-filter: blur(16px) !important;
  }

  html body #shortfilmView .txb-mobile-nav button {
    display: grid !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 48px !important;
    place-items: center !important;
    gap: 3px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: var(--txm-muted) !important;
    font-size: 10px !important;
  }

  html body #shortfilmView .txb-mobile-nav button[aria-current="page"] {
    background: var(--txm-ink) !important;
    color: var(--txm-bg) !important;
  }
}

@media (max-width: 920px) {
  html body #shortfilmView {
    padding-bottom: calc(186px + env(safe-area-inset-bottom)) !important;
  }

  html body #shortfilmView .txMasterBViewport {
    min-height: 410px;
    gap: 6px;
    padding: 18px 34px;
  }

  html body #shortfilmView .txMasterBViewport.is-focus {
    grid-template-columns: minmax(42px, 0.5fr) minmax(190px, 1.8fr) minmax(42px, 0.5fr);
  }

  html body #shortfilmView .txMasterBViewport.is-focus[data-aspect="9:16"] .txMasterBMedia.is-selected {
    width: min(220px, 58vw);
  }

  html body #shortfilmView .txMasterBViewport.is-focus[data-aspect="16:9"] .txMasterBMedia.is-selected {
    width: min(340px, 72vw);
  }

  html body #shortfilmView .txMasterBViewport.is-focus .txMasterBMedia.is-side {
    width: 128px;
  }

  html body #shortfilmView .txMasterBInfo {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
  }

  html body #shortfilmView .txMasterBCopy,
  html body #shortfilmView .txMasterBActions {
    min-width: 0;
    max-width: 100%;
  }

  html body #shortfilmView .txMasterBActions {
    justify-content: flex-start;
  }

  html body #shortfilmView #shortfilmForm.txb-composer {
    right: 8px !important;
    bottom: calc(68px + env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    width: auto !important;
    transform: none !important;
  }
}

@media (max-width: 620px) {
  html body > header#siteHeader .txQueueButton {
    display: none !important;
  }

  html body #shortfilmView > .pearl-shortfilm-head .pearl-sf-queue-chip,
  html body #shortfilmView > .pearl-shortfilm-head .pearl-sf-points {
    display: none !important;
  }

  html body #shortfilmView > .pearl-shortfilm-head .pearl-shortfilm-head-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  html body #shortfilmView > .pearl-shortfilm-head {
    align-items: flex-start !important;
    flex-direction: column !important;
    padding-top: 12px !important;
  }

  html body #shortfilmView > .pearl-shortfilm-head .pearl-shortfilm-title h1 {
    font-size: 46px !important;
  }

  html body #shortfilmView .txMasterBatchHead {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 8px !important;
    padding: 14px 14px 10px !important;
  }

  html body #shortfilmView .txMasterBatchHead p {
    max-width: 100%;
  }

  html body #shortfilmView .txMasterBViewport,
  html body #shortfilmView .txMasterBViewport.is-focus {
    display: flex;
    min-height: 390px;
    padding: 14px 8px;
  }

  html body #shortfilmView .txMasterBViewport[data-aspect="16:9"] {
    min-height: 176px;
  }

  html body #shortfilmView .txMasterBViewport.is-row {
    gap: 6px;
    padding-inline: 8px;
  }

  html body #shortfilmView .txMasterBViewport.is-row[data-count="2"] .txMasterBMedia[data-aspect="9:16"],
  html body #shortfilmView .txMasterBViewport.is-row[data-count="3"] .txMasterBMedia[data-aspect="9:16"] {
    width: min(42vw, 150px);
  }

  html body #shortfilmView .txMasterBViewport.is-row[data-count="1"] .txMasterBMedia[data-aspect="9:16"] {
    width: min(220px, 70vw);
  }

  html body #shortfilmView .txMasterBViewport.is-row .txMasterBMedia[data-aspect="16:9"] {
    width: min(42vw, 260px);
  }

  html body #shortfilmView .txMasterBViewport.is-row[data-count="1"] .txMasterBMedia[data-aspect="16:9"] {
    width: min(84vw, 360px);
  }

  html body #shortfilmView .txMasterBViewport.is-focus[data-aspect="9:16"] .txMasterBMedia.is-selected {
    width: min(220px, 60vw);
  }

  html body #shortfilmView .txMasterBViewport.is-focus .txMasterBMedia.is-side {
    width: 72px;
  }

  html body #shortfilmView .txMasterBViewport.is-focus[data-aspect="16:9"] .txMasterBMedia.is-selected {
    width: min(70vw, 280px);
  }

  html body #shortfilmView .txMasterBArrow {
    width: 36px;
    height: 36px;
  }

  html body #shortfilmView .txMasterBArrow.is-prev {
    left: 3px;
  }

  html body #shortfilmView .txMasterBArrow.is-next {
    right: 3px;
  }

  html body #shortfilmView .txMasterBInfo {
    gap: 16px;
    padding: 18px 14px 22px;
  }

  html body #shortfilmView .txMasterBCopy h3 {
    font-size: 22px;
  }

  html body #shortfilmView .txMasterBActions button,
  html body #shortfilmView .txMasterBActions a {
    min-height: 42px;
  }
}

@media (max-width: 420px) {
  html body > header#siteHeader .globalStudioSearch {
    display: none !important;
  }

  html body > header#siteHeader .points-pill {
    margin-left: auto;
  }
}

/* Final cascade guards for the production page's legacy duplicated selectors. */
html body #workspace#workspace > nav#primaryNavigation#primaryNavigation .navTitle {
  display: none !important;
}

html body #workspace#workspace > nav#primaryNavigation#primaryNavigation .txNavSecondary button {
  color: #a3a7b0 !important;
}

html body[data-page="wallet"] .paylog h2,
html body[data-page="wallet"] .paylog .orderAmount {
  color: var(--txm-ink) !important;
}

html body[data-page="wallet"] #workspace#workspace section.paylog[data-view="wallet"] .sectionHead h2 {
  color: #f4f5f7 !important;
}

html body[data-page="wallet"] .paylog .orderCount {
  color: var(--txm-muted) !important;
  background: transparent !important;
}

html body[data-page="wallet"] .paylog .row,
html body[data-page="wallet"] .paylog .sub {
  color: var(--txm-muted) !important;
}

html body[data-page="wallet"] .paylog .txLedgerDelta[data-tone="positive"] {
  color: var(--txm-success) !important;
}

html body[data-page="wallet"] .paylog .txLedgerDelta[data-tone="negative"] {
  color: #e4c684 !important;
}

html body[data-page="wallet"] .paylog .txLedgerDelta[data-tone="neutral"] {
  color: var(--txm-ink) !important;
}

/* Desktop reference stack and in-place asset tray. Mobile keeps the legacy
 * controls until its separate design round. */
@media (min-width: 921px) {
  html body #shortfilmView .txRefDock {
    position: relative;
    z-index: 12;
    width: 62px;
    min-width: 62px;
    align-self: stretch;
  }

  html body #shortfilmForm.txb-composer > .txRefDock {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  html body #shortfilmForm.txb-composer > .txb-compose-field {
    grid-column: 2 !important;
  }

  html body #shortfilmForm.txb-composer > .txb-generate {
    grid-column: 3 !important;
  }

  html body #shortfilmView .txRefLegacyTrigger,
  html body #shortfilmView .txRefLegacyGrid {
    display: none !important;
  }

  html body #shortfilmView #imageForm {
    position: relative !important;
  }

  html body #shortfilmView #imageForm > .txRefDock {
    width: 100%;
    min-width: 0;
    margin: 0 0 14px;
  }

  html body #shortfilmView .txRefStackButton {
    position: relative;
    width: 62px;
    height: 56px;
    padding: 0;
    border: 1px solid var(--txm-line);
    border-radius: 9px;
    background: #111217;
    color: var(--txm-ink);
  }

  html body #shortfilmView #imageForm .txRefStackButton {
    width: 88px;
  }

  html body #shortfilmView .txRefStackButton:hover,
  html body #shortfilmView .txRefStackButton:focus-visible {
    border-color: var(--txm-line-strong);
    background: #17191f;
  }

  html body #shortfilmView .txRefFan {
    position: absolute;
    inset: 7px 7px 15px;
    display: block;
  }

  html body #shortfilmView .txRefFan img {
    position: absolute;
    top: 0;
    left: 50%;
    width: 30px;
    height: 36px;
    object-fit: cover;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 3px;
    box-shadow: 0 4px 10px rgb(0 0 0 / 38%);
    transform: translateX(calc(-50% + (var(--ref-index) - 1) * 7px)) rotate(calc((var(--ref-index) - 1) * 5deg));
    transition: transform 180ms var(--txm-ease);
  }

  html body #shortfilmView .txRefStackButton:hover .txRefFan img,
  html body #shortfilmView .txRefStackButton:focus-visible .txRefFan img {
    transform: translateX(calc(-50% + (var(--ref-index) - 1) * 13px)) rotate(calc((var(--ref-index) - 1) * 8deg));
  }

  html body #shortfilmView .txRefFallback {
    position: absolute;
    top: 8px;
    left: 50%;
    color: var(--txm-muted);
    font-size: 22px;
    transform: translateX(-50%);
  }

  html body #shortfilmView .txRefViewAll {
    position: absolute;
    z-index: 8;
    bottom: calc(100% + 8px);
    left: 0;
    width: max-content;
    padding: 5px 8px;
    border: 1px solid var(--txm-line);
    border-radius: 5px;
    background: #16171c;
    color: var(--txm-ink);
    box-shadow: 0 8px 24px rgb(0 0 0 / 38%);
    font-size: 9px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(3px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  html body #shortfilmView .txRefStackButton:hover .txRefViewAll,
  html body #shortfilmView .txRefStackButton:focus-visible .txRefViewAll {
    opacity: 1;
    transform: none;
  }

  html body #shortfilmView .txRefCount {
    position: absolute;
    right: 3px;
    bottom: 3px;
    display: grid;
    min-width: 20px;
    height: 16px;
    place-items: center;
    border-radius: 999px;
    background: #050608;
    color: var(--txm-muted);
    font-size: 7px;
    font-variant-numeric: tabular-nums;
  }

  html body #shortfilmView .txRefTray {
    position: absolute;
    z-index: 98;
    right: auto;
    bottom: calc(100% + 10px);
    left: 0;
    width: min(900px, calc(100vw - var(--txm-rail-width) - 80px));
    padding: 14px;
    border: 1px solid var(--txm-line-strong);
    border-radius: 13px;
    background: rgb(12 13 17 / 98.5%);
    box-shadow: 0 24px 72px rgb(0 0 0 / 58%);
    backdrop-filter: blur(18px);
  }

  html body #shortfilmView #imageForm .txRefTray {
    width: 100%;
  }

  html body #shortfilmView .txRefTrayHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 11px;
  }

  html body #shortfilmView .txRefTrayHead > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 9px;
  }

  html body #shortfilmView .txRefTrayHead strong {
    color: var(--txm-ink);
    font-size: 13px;
    font-weight: 560;
  }

  html body #shortfilmView .txRefLimit {
    color: var(--txm-faint);
    font-size: 9px;
  }

  html body #shortfilmView .txRefTrayActions {
    display: flex;
    gap: 6px;
  }

  html body #shortfilmView .txRefTrayActions button {
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--txm-line);
    border-radius: 5px;
    background: transparent;
    color: var(--txm-muted);
    font-size: 9px;
  }

  html body #shortfilmView .txRefTrayActions button:hover:not(:disabled) {
    border-color: var(--txm-line-strong);
    color: var(--txm-ink);
  }

  html body #shortfilmView .txRefTrayList {
    display: flex;
    min-width: 0;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 1px 7px;
  }

  html body #shortfilmView .txRefTile,
  html body #shortfilmView .txRefAddTile {
    position: relative;
    display: grid;
    width: 74px;
    min-width: 74px;
    height: 86px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--txm-line);
    border-radius: 7px;
    background: #08090c;
  }

  html body #shortfilmView .txRefTile > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  html body #shortfilmView .txRefTileIndex {
    position: absolute;
    top: 5px;
    left: 5px;
    display: grid;
    min-width: 20px;
    height: 17px;
    place-items: center;
    border-radius: 3px;
    background: rgb(3 4 6 / 76%);
    color: #fff;
    font-size: 7px;
  }

  html body #shortfilmView .txRefTileRemove {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 50%;
    background: rgb(3 4 6 / 76%);
    color: #fff;
    font-size: 12px;
  }

  html body #shortfilmView .txRefTileMention {
    position: absolute;
    right: 4px;
    bottom: 4px;
    left: 4px;
    min-height: 22px;
    padding: 0 4px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 4px;
    background: rgb(3 4 6 / 82%);
    color: #fff;
    font-size: 7px;
  }

  html body #shortfilmView .txRefTileMention:hover {
    background: var(--txm-ink);
    color: var(--txm-bg);
  }

  html body #shortfilmView .txRefAddTile {
    border-style: dashed;
    color: var(--txm-muted);
  }

  html body #shortfilmView .txRefAddTile span {
    font-size: 23px;
    font-weight: 250;
  }

  html body #shortfilmView .txRefAddTile small {
    margin-top: -22px;
    font-size: 8px;
  }

  html body #shortfilmView .txRefAddTile:hover {
    border-color: var(--txm-line-strong);
    color: var(--txm-ink);
  }

  html body #shortfilmView .txRefHelp {
    margin: 8px 1px 0;
    color: var(--txm-faint);
    font-size: 9px;
    line-height: 1.55;
  }

  html body #shortfilmView .txRefHelp b,
  html body #shortfilmView .txRefHelp span {
    color: #c3c7cf;
    font-weight: 550;
  }
}

@media (max-width: 920px) {
  html body #shortfilmView .txRefDock {
    display: none !important;
  }

  html body #shortfilmView .txRefLegacyTrigger {
    display: grid !important;
  }

  html body #shortfilmView .txRefLegacyGrid:not([hidden]) {
    display: grid !important;
  }
}
