:root {
  --web-v2-gold: #ffc24f;
  --web-v2-gold-deep: #a77a2d;
  --web-v2-promo-height: 0px;
}

/* Membership pricing page: approved billing prototype. Keep these rules scoped to
   the active membership panel so the coin store and the rest of Web V2 are unchanged. */
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-film-hero {
  height: auto;
  min-height: 180px;
  margin-bottom: 36px;
}
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-film-rail { opacity: .48; }
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-film-content {
  min-height: 180px;
  padding: 18px 20px;
}
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-page-head h1 {
  font-size: clamp(26px,2.5vw,36px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-page-head p {
  margin-top: 10px;
  color: #b8b8ba;
  font-size: 14px;
  line-height: 1.6;
  text-wrap: balance;
}
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-switch {
  margin-top: 18px;
  border-color: rgba(255,255,255,.18);
  background: linear-gradient(180deg,#242425,#151516);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.08),0 5px 18px rgba(0,0,0,.18);
}
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-switch button.active {
  background: linear-gradient(180deg,#d1d6d8 0%,#f8f6ed 85%);
  color: #191919;
  box-shadow: inset 0 1px 2px rgba(255,255,255,.9);
}
.web-v2 #billing-view [data-billing-panel="membership"] .billing-plan-section .billing-section-head {
  display: flex;
}
.web-v2 #billing-view [data-billing-panel="membership"] .billing-section-head > div > span,
.web-v2 #billing-view [data-billing-panel="membership"] .billing-section-head > em { display: none; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-grid {
  gap: 20px;
  grid-template-columns: repeat(4,minmax(0,1fr));
  overflow: visible;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-card,
.web-v2 #billing-view [data-billing-panel="membership"] .plan-card.current,
.web-v2 #billing-view [data-billing-panel="membership"] .plan-card.recommended,
.web-v2 #billing-view [data-billing-panel="membership"] .plan-card.plan-card-annual {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 720px;
  padding: 28px 22px 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: #1b1c20;
  box-shadow: none;
  color: #f2f2f0;
  transition: transform .2s,border-color .2s,box-shadow .2s;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-card:hover,
.web-v2 #billing-view [data-billing-panel="membership"] .plan-card.plan-card-annual:hover {
  transform: translateY(-4px);
  border: 2px solid transparent;
  background: linear-gradient(#1b1c20,#1b1c20) padding-box,
    linear-gradient(110deg,#ffb338,#ff7a30,#9c6bff,#6e4dd7,#ffb338) border-box;
  background-size: 100% 100%,260% 100%;
  animation: coin-package-border-flow 1.35s linear infinite;
  box-shadow: 0 22px 55px rgba(0,0,0,.32),0 0 18px rgba(255,179,56,.12),0 0 24px rgba(156,107,255,.1);
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-card.current { border-color: rgba(255,179,56,.55); }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-promotion-badge {
  top: 22px;
  right: 22px;
  left: auto;
  min-height: 0;
  max-width: calc(100% - 44px);
  padding: 4px 10px;
  justify-content: center;
  transform: none;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: inset 0 1px rgba(255,247,220,.65),0 3px 12px rgba(255,179,56,.24);
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-card-head {
  min-height: 0;
  margin-top: 24px;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-name {
  width: auto;
  min-height: 0;
  padding: 0;
  font-size: 17px;
  font-weight: 800;
  white-space: normal;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-name img,
.web-v2 #billing-view [data-billing-panel="membership"] .plan-promotion-icon { display: none; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-name span {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-price-row {
  flex-wrap: wrap;
  align-items: baseline;
  margin-top: 18px;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-price {
  flex-wrap: wrap;
  align-items: baseline;
  font-size: clamp(36px,3vw,44px);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-price small {
  display: block;
  margin: 0 0 0 7px;
  color: #aaa;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: normal;
  white-space: normal;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-purchase-actions {
  margin: 8px 0 0;
  align-content: start;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-purchase-actions .plan-button {
  --membership-button-surface: linear-gradient(180deg,rgba(255,255,255,.14),transparent 52%,rgba(255,255,255,.035)),linear-gradient(90deg,#ffe784 0%,#f9b632 100%);
  border-color: rgba(255,232,163,.65);
  background: var(--membership-button-surface);
  color: #21180f;
  box-shadow: inset 0 2px 3px rgba(255,249,219,.6),inset 0 -1px 1px rgba(255,222,121,.6),0 4px 12px rgba(0,0,0,.18);
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-card[data-plan-period="week"] .plan-button {
  --membership-button-surface: linear-gradient(180deg,rgba(255,255,255,.42),transparent 50%,rgba(255,255,255,.12)),linear-gradient(110deg,#f5f6f6 0%,#d5d9dc 55%,#b9c0c5 100%);
  border-color: rgba(245,248,250,.8);
  color: #202428;
  box-shadow: inset 0 2px 3px rgba(255,255,255,.85),inset 0 -1px 1px rgba(139,150,158,.5),0 4px 12px rgba(0,0,0,.18);
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-purchase-actions .plan-button:hover:not(:disabled) {
  background: var(--membership-button-surface);
  filter: brightness(1.08);
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-paypal-button { min-height: 44px; }
.web-v2 #billing-view [data-billing-panel="membership"] .paypal-wordmark { font-size: 19px; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-price-note {
  min-height: 0;
  margin: 10px 0 14px;
  color: #aaa;
  line-height: 1.65;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-feature-group {
  flex: 0 0 auto;
  padding-top: 22px;
  border: 0;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-card-head { order: 1; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-price-row { order: 2; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-usage-benefits { display: contents; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-usage-benefits > h3 { display: none; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-coin-allowance { order: 3; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-price-note { order: 4; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-purchase-actions { order: 5; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-usage-benefits .plan-benefit-list { order: 6; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-access-benefits,
.web-v2 #billing-view [data-billing-panel="membership"] .plan-member-benefits {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-access-benefits { order: 7; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-member-benefits { order: 8; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-coin-allowance {
  min-width: 0;
  min-height: 44px;
  margin: 10px 0 0;
  padding: 6px 16px;
  overflow: hidden;
  border: 0;
  box-shadow: none;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-coin-allowance > img { width: 21px; height: 21px; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-coin-allowance > div {
  min-width: 0;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-coin-allowance strong,
.web-v2 #billing-view [data-billing-panel="membership"] .plan-coin-allowance span { font-size: inherit; font-weight: 600; }
.web-v2 #billing-view [data-billing-panel="membership"] :is(.plan-benefit-list,.plan-access-list) {
  gap: 8px;
  margin-top: 16px;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-usage-benefits .plan-benefit-list {
  gap: 7px;
  margin-top: 0;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-usage-benefits .plan-benefit-list li {
  display: block;
  padding: 5px 0;
  color: #c8c8c6;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-usage-benefits .plan-benefit-list li::before { display: none; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-access-list li {
  min-height: 28px;
  padding-left: 0;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-access-list .plan-model-logo { display: none; }
.web-v2 #billing-view [data-billing-panel="membership"] .plan-access-list li > span {
  padding-right: 10px;
  font-size: 13px;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-access-list em {
  height: auto;
  padding: 1px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: rgba(255,255,255,.05);
  color: #c7c7c5;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-feature-group h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-usage-benefits .plan-benefit-list li,
.web-v2 #billing-view [data-billing-panel="membership"] .plan-member-benefits .plan-benefit-list li {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-access-list li > span {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}
.web-v2 #billing-view [data-billing-panel="membership"] .plan-benefit-list small {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}
/* Share the summary rows across all four desktop cards. Content can wrap inside
   a row without pushing that card's purchase buttons below its neighbours. */
@media (min-width: 921px) {
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-grid {
    grid-template-rows: repeat(16,auto);
    row-gap: 0;
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card,
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card.current,
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card.recommended,
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card.plan-card-annual {
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card:nth-child(-n+2) { grid-row: 1 / span 8; }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card:nth-child(n+3) {
    grid-row: 9 / span 8;
    margin-top: 20px;
  }
}
@media (min-width: 1361px) {
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-grid { grid-template-rows: repeat(8,auto); }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card:nth-child(n) {
    grid-row: 1 / span 8;
    margin-top: 0;
  }
}
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-faq {
  width: min(1000px,100%);
  margin-top: clamp(46px,6vw,76px);
  padding-top: 0;
}
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-faq > h2 {
  margin-bottom: 24px;
  font-size: clamp(26px,2.5vw,36px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-align: center;
}
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-faq-list { border-top: 0; }
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-faq-item { border-bottom-color: rgba(255,255,255,.07); }
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-faq-item summary {
  min-height: 72px;
  padding: 20px 8px;
  grid-template-columns: 12px minmax(0,1fr);
  gap: 16px;
  color: #e2e2e2;
}
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-faq-item summary > span,
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-faq-item summary > i { display: none; }
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-faq-item summary::before {
  content: '';
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-faq-item[open] summary::before {
  transform: translateY(-2px) rotate(135deg);
}
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-faq-item summary strong {
  font-size: clamp(15px,1.5vw,18px);
  line-height: 1.6;
}
.web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-faq-content {
  padding: 0 8px 24px 36px;
  color: #bcbcbc;
  font-size: 14px;
  line-height: 1.8;
}
@media (max-width:1360px) {
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card { min-height: 0; padding: 24px 20px; }
  .web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-film-content { padding-inline: 12px; }
}
@media (prefers-reduced-motion:reduce) {
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card:hover { animation: none; }
}

body.web-v2 {
  background-color: #0d0e12;
  color: var(--text);
}

/* The shared studio shell locks the document viewport for the app's internal
   panes. Guest onboarding is a page-length mobile welcome screen, so it must
   hand vertical scrolling back to the document when its video and copy exceed
   the viewport. */
body.web-v2.on-landing.guest-mode:not(.auth-route) {
  overflow-x: hidden;
  overflow-y: auto;
}

/* Persistent launch promotion. Closing it is intentionally page-local. */
.web-v2-promo {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
  min-height: 66px;
  margin: 0;
  padding: 7px 18px 7px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M1180 100C1270 84 1290 18 1350 0H1440V100Z' fill='%236dd7f4' fill-opacity='.62'/%3E%3Cpath d='M1290 100C1350 66 1385 52 1440 58V100Z' fill='%2399e9fa' fill-opacity='.48'/%3E%3C/svg%3E") center / 100% 100% no-repeat,
    radial-gradient(ellipse at 48% 0%, rgba(255,255,255,.36), transparent 70%),
    linear-gradient(100deg, #ffb596 0%, #ffd7bd 34%, #c4edff 66%, #8acbff 100%);
  color: #12131a;
  box-shadow: none;
}
.web-v2-promo[hidden] { display: none !important; }

.web-v2-promo-copy {
  margin: 0;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  color: #372c28;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.web-v2-promo-copy strong {
  flex: 0 0 auto;
  max-width: 100%;
  color: #852c1d;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -.02em;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
  white-space: normal;
  overflow-wrap: anywhere;
}
.web-v2-promo-copy span { overflow: hidden; text-overflow: ellipsis; }
.web-v2-promo-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.web-v2-countdown { display: flex; align-items: center; gap: 7px; color: #39260f; font-variant-numeric: tabular-nums; }
.web-v2-countdown[hidden] { display: none; }
.web-v2-countdown > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.web-v2-countdown b {
  width: 34px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 8px;
  background: linear-gradient(180deg, #f6f7f5 0%, #e7e8e4 52%, #fffdf8 100%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -1px 2px rgba(145,145,145,.2), 0 2px 5px rgba(52,40,74,.2);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.web-v2-countdown i { color: #39260f; font-size: 11px; font-style: normal; font-weight: 750; }
.web-v2-promo-cta {
  min-width: 108px;
  min-height: 30px;
  padding: 0 18px;
  border: 1.5px solid rgba(255,238,192,.35);
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(73,57,33,.96), rgba(31,26,20,.98));
  color: #fff0bf;
  box-shadow: inset 0 1px 0 rgba(255,246,215,.2), inset 0 -1px 0 rgba(13,10,6,.35), 0 4px 10px rgba(99,59,7,.2);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s var(--ease-out), background .16s, box-shadow .16s;
}
.web-v2-promo-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(160deg, #57432a, #292117);
  box-shadow: inset 0 1px 0 rgba(255,246,215,.3), 0 6px 14px rgba(99,59,7,.25);
}
.web-v2-promo-close {
  width: 34px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #39260f;
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .16s, transform .16s var(--ease-out);
}
.web-v2-promo-close:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }

/* The launch offer is not shown on mobile pages. Reset the shared offset as
   well so mobile navigation and content start at their normal positions. */
@media (max-width: 920px) {
  :root { --web-v2-promo-height: 0px !important; }
  .web-v2-promo { display: none !important; }
}

/* The homepage track matcher is disabled while the direct track entry stays
   available in the track cards below. */
.web-v2-intent { display: none !important; }

.web-v2 .app-sidebar {
  top: calc(var(--web-v2-promo-height) + 12px);
  transition: width .2s var(--ease-out), transform .2s var(--ease-out), top .2s var(--ease-out);
}
.web-v2 .sidebar-brand-card {
  top: calc(var(--web-v2-promo-height) + 24px);
  transition: width .2s var(--ease-out), padding .2s var(--ease-out), top .2s var(--ease-out);
}

@media (min-width: 921px) {
  .web-v2 .site-actions { top: calc(var(--web-v2-promo-height) + 14px); }
}

/* Let translated sidebar actions wrap without shrinking their icons or clipping text. */
body.web-v2:not(.nav-collapsed) .web-v2-ugc-entry,
body.web-v2:not(.nav-collapsed) .web-v2-survey-entry {
  min-width: 0;
  height: auto;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  line-height: 1.4;
}
.web-v2 .web-v2-ugc-entry .sidebar-contact-label,
.web-v2 .web-v2-survey-entry .sidebar-contact-label {
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Survey is inserted directly before support to preserve the requested order. */
.web-v2 .web-v2-survey-entry {
  border-color: rgba(80, 199, 124, .56);
  background: linear-gradient(135deg, rgba(38, 143, 88, .25), rgba(255, 183, 48, .11));
  color: #ffd15b;
}
.web-v2-survey-entry .sidebar-contact-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.web-v2 .web-v2-ugc-entry {
  border-color: rgba(174, 118, 255, .62);
  background: linear-gradient(135deg, rgba(105, 62, 190, .28), rgba(255, 183, 48, .1));
  color: #dec8ff;
}
.web-v2-ugc-entry .sidebar-contact-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Homepage quick start mirrors the approved design, including focus and routing states. */
.web-v2 .track-view {
  display: block;
  padding-bottom: 80px;
}
.web-v2-intent.landing-quickstart {
  position: relative;
  width: min(820px, 100%);
  min-height: 0;
  margin: 0 auto 28px;
  padding: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(125deg, rgba(255,229,127,.72), rgba(255,179,56,.28), rgba(124,92,255,.38)) border-box;
  box-shadow: 0 20px 56px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out);
}
.web-v2-intent.landing-quickstart:focus-within {
  border-color: transparent;
  box-shadow: 0 22px 64px rgba(0,0,0,.34), 0 0 32px rgba(255,179,56,.1);
}
.web-v2-intent .landing-prompt {
  display: block;
  width: 100%;
  height: 118px;
  min-height: 118px;
  resize: none;
  overflow-y: auto;
  padding: 14px 24px;
  border: 0;
  border-radius: 18px 18px 0 0;
  outline: 0;
  background: rgba(18,18,24,.9);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.65;
}
.web-v2-intent .landing-prompt::placeholder { color: var(--meta); }
.web-v2-intent .landing-prompt:focus-visible { outline: 0; }
.web-v2-intent .landing-quickstart-actions {
  min-height: 52px;
  padding: 4px 10px 10px 17px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 0;
  background: rgba(18,18,24,.9);
}
.web-v2-intent .landing-quickstart-hint {
  position: static;
  color: var(--meta);
  font-size: 11.5px;
}
.web-v2-intent .landing-inspiration-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--meta);
  font: inherit;
  font-size: 11.5px;
  line-height: 1.5;
  cursor: pointer;
  transition: color .16s, background .16s, transform .16s var(--ease-out);
}
.web-v2-intent .landing-inspiration-btn:hover:not(:disabled) {
  color: var(--brand-2);
  background: rgba(255,179,56,.09);
  transform: translateY(-1px);
}
.web-v2-intent .landing-inspiration-btn:disabled { opacity: .35; cursor: default; transform: none; }
.web-v2-intent .landing-inspiration-btn span:first-child { color: var(--brand); font-size: 13px; }
.web-v2-intent .landing-quickstart-submit {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-brand, #1a1000);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 7px 20px rgba(255,179,56,.2);
  transition: transform .16s var(--ease-out), box-shadow .16s, opacity .16s;
}
.web-v2-intent .landing-quickstart-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 9px 25px rgba(255,179,56,.32);
}
.web-v2-intent .landing-quickstart-submit:active:not(:disabled) { transform: translateY(0); }
.web-v2-intent .landing-quickstart-submit:disabled { opacity: .34; cursor: default; box-shadow: none; }
.web-v2-intent .landing-quickstart-arrow { font-size: 18px; line-height: 1; }
.web-v2-intent.is-routing .landing-quickstart-submit { opacity: .8; }
.web-v2-intent.is-routing .landing-quickstart-arrow { animation: web-v2-intent-arrow-pulse .8s ease-in-out infinite alternate; }
@keyframes web-v2-intent-arrow-pulse { to { transform: translateX(4px); } }

/* Intent API results stay in the conversation until the user confirms a track. */
.web-v2 .msg-ai:has(.intent-chat-recommendation) { width: 100%; }
.web-v2 .msg-ai:has(.intent-chat-recommendation) .bubble {
  width: 100%;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.web-v2 .intent-chat-recommendation {
  box-sizing: border-box;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 8px;
  background: #1b1c20;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}
.web-v2 .intent-chat-heading { margin-bottom: 8px; }
.web-v2 .intent-chat-heading h2 {
  margin: 0;
  color: #f6f6f3;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}
.web-v2 .intent-chat-options { display: flex; flex-direction: column; }
.web-v2 .intent-chat-option {
  display: grid;
  grid-template-columns: 20px 96px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 12px 4px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .085);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .16s, box-shadow .16s;
}
.web-v2 .intent-chat-option:first-child { border-top: 0; }
.web-v2 .intent-chat-option:hover:not(:disabled) { background: rgba(255, 255, 255, .035); }
.web-v2 .intent-chat-option.is-selected { background: rgba(255, 185, 66, .075); }
.web-v2 .intent-chat-option:disabled { cursor: default; }
.web-v2 .intent-chat-radio {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(7, 8, 12, .24);
}
.web-v2 .intent-chat-option.is-selected .intent-chat-radio { border-color: #ffbd49; background: #ffbd49; }
.web-v2 .intent-chat-option.is-selected .intent-chat-radio::after {
  width: 6px;
  height: 10px;
  border: solid #24180b;
  border-width: 0 2px 2px 0;
  content: '';
  transform: translateY(-1px) rotate(45deg);
}
.web-v2 .intent-chat-option > img {
  display: block;
  width: 100%;
  height: 60px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: #15161a;
}
.web-v2 .intent-chat-option-copy {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 4px;
}
.web-v2 .intent-chat-option-copy > strong { color: #f5f5f2; font-size: 13px; }
.web-v2 .intent-chat-match-copy,
.web-v2 .intent-chat-free-description { color: rgba(255, 255, 255, .56); font-size: 10.5px; }
.web-v2 .intent-chat-match-copy b { color: #ffbd49; font-size: 14px; }
.web-v2 .intent-chat-option-heat {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  margin-top: 1px;
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
}
.web-v2 .intent-chat-option-heat b { color: #f2f2ef; font-size: 12px; }
.web-v2 .intent-chat-actions {
  display: flex;
  justify-content: flex-end;
  padding: 14px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, .085);
}
.web-v2 .intent-chat-confirm {
  width: min(210px, 100%);
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffe57f, #ffb338);
  color: #21180f;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}
.web-v2 .intent-chat-confirm:hover:not(:disabled) { filter: brightness(1.05); }
.web-v2 .intent-chat-confirm:disabled { cursor: default; opacity: .36; }
.web-v2 .intent-track-confirmed { display: flex; align-items: flex-start; gap: 11px; }
.web-v2 .intent-track-confirmed > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 185, 66, .14);
  color: #ffc45c;
  font-size: 12px;
  font-weight: 900;
}
.web-v2 .intent-track-confirmed p { margin: 2px 0 0; line-height: 1.55; }

/* Billing v2 mirrors the current approved cards while keeping every value API-driven. */
.web-v2 #billing-view .billing-plan-section,
.web-v2 #billing-view .web-v2-faq { width: min(1240px, 100%); margin-inline: auto; }
.web-v2 #billing-view .billing-plan-section .billing-section-head { display: none; }
.web-v2 #billing-view .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.web-v2 #billing-view .plan-card,
.web-v2 #billing-view .plan-card.current,
.web-v2 #billing-view .plan-card.recommended {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  padding: 28px 22px 30px;
  display: grid;
  align-content: start;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 22px;
  background: radial-gradient(120% 42% at 50% -8%,rgba(255,255,255,.075),transparent 68%),linear-gradient(180deg,#1d1d1f 0%,#171719 48%,#131315 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.07),inset 0 -24px 48px rgba(0,0,0,.12),0 16px 34px rgba(0,0,0,.22);
  color: #f2f2f0;
  transition: border-color .18s, transform .18s var(--ease-out), box-shadow .18s;
}
.web-v2 #billing-view .plan-card::before,
.web-v2 #billing-view .plan-card::after { display: none; }
.web-v2 #billing-view .plan-card.plan-card-annual {
  border-color: rgba(255,193,89,.42);
  background: radial-gradient(120% 330px at 100% 0%,rgba(255,179,56,.2),transparent 76%),radial-gradient(85% 48% at 0% 100%,rgba(123,74,18,.12),transparent 72%),linear-gradient(180deg,#282016 0%,#1b1917 42%,#151516 100%);
  box-shadow: inset 0 1px rgba(255,226,171,.18),inset 0 -24px 48px rgba(0,0,0,.16),0 18px 38px rgba(0,0,0,.3);
}
.web-v2 #billing-view .plan-card.current { border-color: rgba(255,220,126,.72); box-shadow: 0 0 0 1px rgba(255,201,91,.12),0 18px 38px rgba(0,0,0,.28); }
.web-v2 #billing-view .plan-card:hover { border-color: rgba(255,194,79,.62); transform: translateY(-2px); }
.web-v2 #billing-view .plan-promotion-badge {
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 50%;
  min-height: 24px;
  padding: 5px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: linear-gradient(110deg,#ffe3a0,#ffbd52);
  color: #392408;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: .04em;
  white-space: nowrap;
  transform: translateX(-50%);
}
.web-v2 #billing-view .plan-promotion-icon { width: 14px; height: 14px; flex: 0 0 auto; }
.web-v2 #billing-view .plan-card-head { min-height: 32px; display: block; }
.web-v2 #billing-view .plan-name {
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 0;
  background: transparent;
  color: #f7f7f5;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.web-v2 #billing-view .plan-name img { width: 16px; height: 16px; flex: 0 0 auto; }
.web-v2 #billing-view .plan-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-v2 #billing-view .plan-price-row { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.web-v2 #billing-view .plan-price { margin: 0; display: flex; align-items: flex-end; color: #fff; font-size: 46px; font-weight: 500; line-height: 1.15; letter-spacing: -.04em; }
.web-v2 #billing-view .plan-price small { margin: 0 0 5px 7px; color: #aaa; font-size: 13px; font-weight: 400; line-height: 1.15; letter-spacing: 0; white-space: nowrap; }
.web-v2 #billing-view .plan-discount-badge { padding: 6px 10px; flex: 0 0 auto; border-radius: 999px; background: linear-gradient(115deg,#b96000,#b44400); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.4; white-space: nowrap; }
.web-v2 #billing-view .plan-purchase-actions { margin: 18px 0 16px; display: grid; gap: 8px; }
.web-v2 #billing-view .plan-purchase-actions .plan-button,
.web-v2 #billing-view .plan-purchase-actions .plan-paypal-button { width: 100%; margin: 0; border-radius: 999px; font: inherit; cursor: pointer; }
.web-v2 #billing-view .plan-purchase-actions .plan-button {
  min-height: 48px;
  border: 1px solid rgba(245,248,250,.8);
  background: linear-gradient(rgba(255,255,255,.42),transparent 50%,rgba(255,255,255,.12)),linear-gradient(110deg,#f5f6f6 0%,#d5d9dc 55%,#b9c0c5 100%);
  color: #0f0f13;
  box-shadow: inset 0 2px 3px rgba(255,255,255,.85),inset 0 -1px 1px rgba(139,150,158,.5),0 4px 12px rgba(0,0,0,.18);
  font-size: 14px;
  font-weight: 600;
}
.web-v2 #billing-view .plan-card-annual .plan-button { border-color: rgba(255,232,163,.65); background: linear-gradient(rgba(255,255,255,.14),transparent 52%,rgba(255,255,255,.035)),linear-gradient(90deg,#ffe784 0%,#f9b632 100%); color: #21180f; box-shadow: inset 0 2px 3px rgba(255,249,219,.6),inset 0 -1px 1px rgba(255,222,121,.6),0 4px 12px rgba(0,0,0,.18); }
.web-v2 #billing-view .plan-purchase-actions .plan-button:hover:not(:disabled) { filter: brightness(1.05); }
.web-v2 #billing-view .plan-purchase-actions .plan-paypal-button { min-height: 42px; border: 1px solid rgba(255,255,255,.24); background: linear-gradient(#252526,#1b1b1c); color: #eef7ff; box-shadow: inset 0 1px rgba(255,255,255,.07); }
.web-v2 #billing-view .paypal-wordmark { font-size: 23px; font-style: italic; font-weight: 900; letter-spacing: -.06em; }
.web-v2 #billing-view .paypal-wordmark > span { color: #65b5e9; }
.web-v2 #billing-view .plan-purchase-actions button:disabled { cursor: default; opacity: .56; }
.web-v2 #billing-view .plan-price-note { min-height: 34px; margin: 0 0 24px; color: #aaa; font-size: 12px; line-height: 1.65; }
.web-v2 #billing-view .plan-feature-group { padding: 22px 0 2px; border-top: 1px solid rgba(255,255,255,.09); border-bottom: 0; }
.web-v2 #billing-view .plan-feature-group h3 { margin: 0; color: #ededeb; font-size: 13px; font-weight: 600; line-height: 1.5; }
.web-v2 #billing-view .plan-coin-allowance { min-height: 64px; margin-top: 14px; padding: 16px; display: flex; align-items: center; gap: 10px; border-radius: 10px; background: radial-gradient(at 0 0,rgba(255,223,153,.1),transparent 70%),linear-gradient(115deg,rgba(255,179,56,.19),rgba(255,179,56,.07)); color: #ffd17a; }
.web-v2 #billing-view .plan-coin-allowance > img { width: 24px; height: 24px; flex: 0 0 auto; object-fit: contain; }
.web-v2 #billing-view .plan-coin-allowance > div { display: flex; align-items: baseline; gap: 6px; }
.web-v2 #billing-view .plan-coin-allowance strong { color: #ffd17a; font-size: 16px; font-weight: 600; line-height: 1.5; }
.web-v2 #billing-view .plan-coin-allowance span { color: #f2cc80; font-size: 13px; font-weight: 600; }
.web-v2 #billing-view :is(.plan-benefit-list,.plan-access-list) { margin: 16px 0 0; padding: 0; display: grid; gap: 14px; list-style: none; }
.web-v2 #billing-view .plan-benefit-list li { position: relative; min-width: 0; padding-left: 21px; color: #d3d3d1; font-size: 12px; line-height: 1.65; }
.web-v2 #billing-view .plan-benefit-list li::before { position: absolute; left: 0; top: 0; content: '✓'; color: #ffd05c; font-weight: 900; }
.web-v2 #billing-view .plan-benefit-list small { display: block; margin-top: 2px; color: #8f938e; font-size: 10px; line-height: 1.45; }
.web-v2 #billing-view .plan-access-benefits,
.web-v2 #billing-view .plan-member-benefits { margin-top: 22px; }
.web-v2 #billing-view .plan-access-list li { min-width: 0; display: grid; grid-template-columns: 14px minmax(0,1fr) auto; align-items: center; gap: 6px; color: #d3d3d1; font-size: 12px; line-height: 1.65; }
.web-v2 #billing-view .plan-model-logo { width: 14px; height: 16px; display: block; object-fit: contain; }
.web-v2 #billing-view .plan-access-list li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.web-v2 #billing-view .plan-access-list em { padding: 3px 7px; border-radius: 4px; background: rgba(255,255,255,.07); color: #d8dad6; font-size: 9px; font-style: normal; line-height: 1.5; white-space: nowrap; }

/* CMS-driven FAQ. Details are deliberately closed by default. */
.web-v2-faq { padding: 56px 0 72px; }
.web-v2-faq > h2 { margin: 0 0 34px; color: #fff; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; text-align: center; }
.web-v2-faq-list { border-top: 1px solid rgba(255,255,255,.1); }
.web-v2-faq-item { border-bottom: 1px solid rgba(255,255,255,.1); }
.web-v2-faq-item summary {
  min-height: 60px;
  padding: 13px 10px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  color: #f1f2f4;
  cursor: pointer;
  list-style: none;
}
.web-v2-faq-item summary::-webkit-details-marker { display: none; }
.web-v2-faq-item summary > span { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #e7e8eb; border-radius: 50%; font-size: 10px; }
.web-v2-faq-item summary strong { font-size: 13px; }
.web-v2-faq-item summary > i { color: var(--web-v2-gold); font-style: normal; text-align: center; transform: rotate(0); }
.web-v2-faq-item[open] summary > i { transform: rotate(180deg); }
.web-v2-faq-content { padding: 0 48px 18px 54px; color: #a5aab4; font-size: 12px; line-height: 1.8; }
.web-v2-faq-content :is(ul, ol) { padding-left: 20px; }
.web-v2-faq-content a, .web-v2-disclaimer a { color: #ffd166; }
.web-v2-disclaimer { margin-top: 40px; padding-top: 2px; }
.web-v2-disclaimer h3 { color: #fff; font-size: 18px; }
.web-v2-disclaimer-body { margin-top: 10px; color: #8d93a0; font-size: 11px; line-height: 1.8; }
.web-v2-disclaimer-body p + p { margin-top: 7px; }

/* New conversation layout: chat stays central; generated resources open in a drawer. */
.web-v2 .workspace { position: relative; justify-content: center; overflow: hidden; }
.web-v2 .workspace .chat-pane {
  width: 100%;
  flex: 1 1 auto;
  border-right: 0;
}
.web-v2 .workspace .pane-cap,
.web-v2 .workspace .inspiration-bar { width: min(896px, calc(100% - 32px)); margin-inline: auto; }
.web-v2 .workspace:not(.web-v2-resources-open) .messages {
  padding: 88px max(28px, calc((100% - 840px) / 2)) 24px;
  gap: 26px;
}
.web-v2 .workspace.web-v2-resources-open .chat-pane { width: 42%; flex: 0 0 42%; }
.web-v2 .workspace .msg-ai:has(.chat-screenplay-artifact),
.web-v2 .workspace .msg-ai:has(.chat-image-artifact),
.web-v2 .workspace .msg-ai:has(.options-choice-list) { width: 100%; }
.web-v2 .workspace .msg-ai:has(.chat-screenplay-artifact) .bubble,
.web-v2 .workspace .msg-ai:has(.chat-image-artifact) .bubble,
.web-v2 .workspace .msg-ai:has(.options-choice-list) .bubble {
  width: 100%;
  max-width: 100%;
  padding: 13px;
  border-radius: 10px;
  background: #1a1b21;
}
.web-v2 .chat-screenplay-artifact { margin-top: 10px; }
.web-v2 .chat-screenplay-artifact:first-child { margin-top: 0; }
.web-v2 .chat-screenplay-artifact .screenplay-card {
  width: 100%;
  border-color: rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(20,21,27,.72);
}
.web-v2 .chat-screenplay-artifact .screenplay-preview { max-height: 300px; padding: 16px; line-height: 1.75; }
.web-v2 .chat-screenplay-artifact + .panel-chip {
  min-width: 0;
  height: auto;
  min-height: 30px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffc24f;
  box-shadow: none;
}
.web-v2 .chat-screenplay-artifact + .panel-chip:hover { background: transparent; color: #ffdb89; }
.web-v2 .chat-image-artifact { margin-top: 18px; }
.web-v2 .chat-image-artifact:first-child { margin-top: 0; }
.web-v2 .chat-image-artifact .asset-section { margin: 0; }
.web-v2 .chat-image-artifact .asset-grid {
  grid-template-columns: repeat(auto-fill, 342px);
  justify-content: start;
  gap: 24px;
}
.web-v2 .chat-image-artifact .asset-card { width: 100%; min-width: 0; }
/* The project ratio belongs to the generated asset, not to its conversation
   preview.  Keep the design's compact 342 x 256 card frame even when the
   selected generation ratio is 9:16. */
.web-v2 .chat-image-artifact .asset-img-wrap {
  width: 100%;
  height: 256px;
  aspect-ratio: auto !important;
  background: #111218;
}
.web-v2 .chat-image-artifact .asset-img-wrap .asset-img {
  width: 256px;
  max-width: 100%;
  height: 256px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
}
/* Character generations are portrait images (usually 9:16).  Do not crop
   their head/feet to fit the compact conversation card; scale the whole image
   into the frame and keep the letterbox background consistent with the card. */
.web-v2 .chat-image-artifact .asset-img-wrap.portrait .asset-img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
/* Keep the same rule for the image editor/library cards outside the chat. */
.web-v2 .asset-img-wrap.portrait .asset-img { object-fit: contain; object-position: center; }
.web-v2 .chat-image-artifact + .panel-chip { margin-top: 14px; }
.web-v2 .restored-media-result { padding: 14px; }
.web-v2 .restored-media-assets { display: grid; gap: 24px; }
.web-v2 .chat-generated-section .asset-section-hdr { margin-bottom: 12px; }
.web-v2 .chat-generated-preview {
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 10px 10px 0 0;
  background: #111218;
  cursor: zoom-in;
}
.web-v2 .chat-generated-preview.portrait { aspect-ratio: 3 / 2; }
.web-v2 .chat-generated-preview.landscape { aspect-ratio: 16 / 9; }
.web-v2 .chat-generated-preview .asset-img { width: 100%; height: 100%; display: block; object-fit: cover; }
.web-v2 .chat-generated-preview.portrait .asset-img { object-fit: contain; object-position: center; background:#111218; }
/* Failed images keep their status visible instead of exposing the image placeholder. */
.web-v2 .asset-card[data-asset-state="failed"] .asset-img-wrap { background:#111218; cursor:default; }
.web-v2 .asset-card[data-asset-state="failed"] .asset-img { opacity:0 !important; cursor:default; }
.web-v2 .asset-card[data-asset-state="failed"] .asset-img-placeholder { z-index:2; display:flex !important; background:#111218; color:#9ca3af; }
.web-v2 .asset-card[data-asset-state="failed"] .asset-img-placeholder::after { color:#f0555d; }
.web-v2 .asset-card[data-asset-state="loading"] .asset-img-wrap { background:#111218; }
.web-v2 .asset-card[data-asset-state="loading"] .asset-img { opacity:0 !important; }
.web-v2 .asset-card[data-asset-state="loading"] .asset-img-placeholder { z-index:2; display:flex !important; background:#111218; color:transparent; }
.web-v2 .asset-card[data-asset-state="loading"] .asset-img-placeholder:not(:has(.leona-loading))::before,
.web-v2-resource-loading:not(:has(.leona-loading))::after,
.web-v2 .leona-loading.is-fallback .leona-loading-stage::after {
  content:""; width:28px; height:28px; display:block; box-sizing:border-box; border:3px solid rgba(255,255,255,.13); border-top-color:#ffc34e; border-radius:50%; animation:web-v2-image-loading-spin .8s linear infinite;
}
.web-v2 .chat-generated-preview { position:relative; }
.web-v2 .chat-generated-preview.is-loading { cursor:wait; background:#111218; }
.web-v2 .chat-generated-preview.is-loading .asset-img { opacity:0; }
.web-v2 .chat-generated-preview > .leona-loading { position:absolute; z-index:2; inset:0; width:100%; height:100%; }
.web-v2 .chat-generated-preview > .leona-loading .leona-loading-stage { width:min(84px,42%); }
.web-v2 .leona-loading-stage:empty { display:grid; place-items:center; }
@keyframes web-v2-image-loading-spin { to { transform:rotate(360deg); } }
.web-v2 .quality-confirm-summary {
  padding:14px 0 0; display:none; border:0; background:transparent;
}
.web-v2 .quality-selector.quality-complete .quality-picker-body { display:block; }
.web-v2 .quality-selector.quality-complete .quality-confirm-summary { display:block; }
.web-v2 .quality-selector.quality-complete .quality-generate-btn:disabled { opacity:.72; }
.web-v2 .quality-generate-btn .quality-generate-divider {
  display:inline-block;
  margin:0 .72em;
  color:rgba(111,82,30,.62);
  font-weight:500;
}
.web-v2 .quality-generate-btn .quality-generate-cost { color:#2e2619; }
.web-v2 .quality-generation-result { width:100%; display:grid; gap:9px; }
.web-v2 .quality-generation-result-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; }
.web-v2 .quality-generation-result-head > div { display:grid; gap:3px; }
.web-v2 .quality-generation-result-head strong { color:#f3f3f5; font-size:13px; }
.web-v2 .quality-generation-result-head span { color:#7f838d; font-size:10px; }
.web-v2 .quality-generation-result-head em { overflow:hidden; color:#b1b4bc; font-size:10px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.web-v2 .quality-generation-open { width:fit-content; max-width:100%; padding:0; overflow:hidden; border:1px solid rgba(255,255,255,.1); border-radius:11px; background:#121319; color:inherit; text-align:left; cursor:pointer; transition:border-color .18s,transform .18s; }
.web-v2 .quality-generation-open:hover { border-color:rgba(255,194,79,.6); transform:translateY(-1px); }
.web-v2 .quality-generation-open-disabled,
.web-v2 .quality-generation-open-disabled:hover { cursor:default; pointer-events:none; border-color:rgba(255,116,111,.28); transform:none; }
.web-v2 .quality-generation-preview { position:relative; width:auto; max-width:100%; height:300px; display:grid; place-items:center; overflow:hidden; background:#08090c; }
.web-v2 .quality-generation-preview > img,
.web-v2 .quality-generation-preview > video { grid-area:1/1; width:100%; height:100%; display:block; object-fit:cover; background:transparent; }
.web-v2 .quality-generation-video { opacity:0; visibility:hidden; pointer-events:none; transition:opacity .12s ease; }
.web-v2 .quality-generation-video.is-active { opacity:1; visibility:visible; }
.web-v2 .quality-generation-preview-empty { width:100%; height:100%; display:grid; place-items:center; }
.web-v2 .quality-generation-preview-empty img { width:58px; max-height:58px; opacity:.82; }
.web-v2 .quality-generation-preview-empty > .leona-loading { width:100%; height:100%; }
.web-v2 .quality-generation-preview-empty .leona-loading-stage { width:min(84px,42%); }
.web-v2 .quality-generation-count { position:absolute; z-index:2; top:9px; right:9px; min-width:36px; padding:4px 8px; border:1px solid rgba(255,255,255,.16); border-radius:999px; background:rgba(8,9,12,.78); color:#fff; font-size:10px; font-weight:750; line-height:1; text-align:center; backdrop-filter:blur(8px); }
.web-v2 .quality-generation-progress { position:absolute; z-index:2; right:0; bottom:0; left:0; height:3px; background:rgba(255,255,255,.14); }
.web-v2 .quality-generation-progress i { height:100%; display:block; border-radius:0 99px 99px 0; background:linear-gradient(90deg,#f2ad34,#ffd46c); box-shadow:0 0 12px rgba(255,194,79,.48); transition:width .3s ease; }
.web-v2 .quality-generation-result-foot { min-height:38px; padding:9px 11px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.web-v2 .quality-generation-result-foot > span { overflow:hidden; color:#a8abb4; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.web-v2 .quality-generation-result-foot > strong { flex:0 0 auto; color:#ffc34e; font-size:10px; font-weight:650; }
.web-v2 .quality-generation-complete-player { display:table; width:fit-content; max-width:100%; overflow:hidden; border:1px solid rgba(255,255,255,.1); border-radius:11px; background:#121319; box-sizing:border-box; }
.web-v2 .quality-generation-complete-player.is-loading { display:table; }
.web-v2 .quality-generation-complete-player .quality-generation-preview { width:100%; max-width:100%; height:min(300px,52vh); display:grid; }
.web-v2 .quality-generation-complete-poster { position:absolute; inset:0; z-index:1; width:100%; height:100%; display:block; object-fit:cover; object-position:center; background:transparent; opacity:1; visibility:visible; transition:opacity .16s ease; }
.web-v2 .quality-generation-complete-poster.is-hidden { opacity:0; visibility:hidden; }
.web-v2 .quality-generation-complete-video { width:100%; height:100%; display:block; object-fit:cover; background:transparent; opacity:0; visibility:hidden; pointer-events:none; transition:opacity .16s ease; }
.web-v2 .quality-generation-complete-video.is-ready.is-active { opacity:1; visibility:visible; pointer-events:auto; }
.web-v2 .quality-generation-complete-loading { position:absolute; z-index:2; inset:0; display:none; place-content:center; justify-items:center; gap:9px; background:radial-gradient(circle at 50% 42%,#242630 0%,#111218 62%,#08090c 100%); color:#aeb2bc; font-size:11px; pointer-events:none; }
.web-v2 .quality-generation-complete-player.is-loading .quality-generation-complete-loading { display:grid; }
.web-v2 .quality-generation-complete-loading i { width:28px; height:28px; border:2px solid rgba(255,255,255,.18); border-top-color:#ffc34e; border-radius:50%; animation:v2-video-buffer-spin .8s linear infinite; }
.web-v2 .quality-generation-complete-player .quality-generation-result-foot { min-height:42px; padding:10px 12px; }
.web-v2 .quality-generation-view-shots { flex:0 0 auto; padding:0; border:0; background:transparent; color:#ffc34e; font:inherit; font-size:11px; cursor:pointer; }
.web-v2 .quality-generation-view-shots:hover { color:#ffe2a1; }
.web-v2 .quality-generation-result > .quality-generation-retry { justify-self:start; }
.web-v2 .quality-generation-animation { width:82px; height:82px; display:grid; place-items:center; border-radius:14px; background:#111218; color:#ffd16a; font-size:28px; font-weight:800; }
.web-v2 .quality-confirm-summary[data-status="ready"] .quality-generation-animation { color:var(--v2-green,#5fd09a); }
.web-v2 .quality-confirm-summary[data-status="failed"] .quality-generation-animation { color:var(--v2-red,#ff746f); }
.web-v2 .quality-generation-animation > .leona-loading { width:100%; height:100%; }
.web-v2 .quality-generation-animation .leona-loading-stage { width:64px; }
.web-v2 .quality-generation-animation { position:relative; overflow:hidden; background:radial-gradient(circle at 50% 18%,rgba(186,110,255,.18),transparent 58%),#25262b; }
.web-v2 .quality-generation-animation::before { content:""; position:absolute; inset:-60%; background:conic-gradient(from 180deg,transparent 0 35%,rgba(255,194,78,.08),transparent 50% 85%,rgba(171,82,255,.08)); animation:runtime-generation-ambient 9s linear infinite; }
.web-v2 .quality-generation-animation img { position:relative; z-index:1; width:68%; height:auto; opacity:.9; filter:drop-shadow(0 8px 20px rgba(0,0,0,.3)); animation:runtime-generation-logo 2.4s ease-in-out infinite; }
.web-v2 .quality-generation-animation.is-failed { background:radial-gradient(circle at 50% 18%,rgba(255,116,111,.15),transparent 58%),#25262b; }
.web-v2 .quality-generation-animation.is-failed img { width:52%; animation:none; }
.web-v2 .quality-generation-animation.is-ready { background:linear-gradient(145deg,rgba(95,208,154,.16),rgba(24,25,31,.96)); color:var(--v2-green,#5fd09a); }
.web-v2 .quality-generation-animation.is-ready::before { display:none; }
.web-v2 .quality-ready-mark { width:44px; height:44px; display:grid; place-items:center; border:2px solid currentColor; border-radius:50%; font-size:25px; font-weight:800; }
.web-v2 .runtime-generation-track { height:7px; max-width:560px; margin:10px auto 0; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.11); box-shadow:inset 0 1px 2px rgba(0,0,0,.25); }
.web-v2 .runtime-generation-track > span { display:block; width:var(--runtime-generation-start,4%); height:100%; border-radius:inherit; background:linear-gradient(90deg,#ad43f0 0%,#f0be4e 46%,#fff 100%); box-shadow:0 0 18px rgba(232,177,91,.34); animation:runtime-generation-progress var(--runtime-generation-duration,600s) linear forwards; }
.web-v2 .runtime-generation-copy { position:relative; height:24px; margin-top:12px; color:#d7d7da; font-size:13px; line-height:24px; text-align:center; }
.web-v2 .runtime-generation-copy > span { position:absolute; inset:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; opacity:0; animation:runtime-generation-copy 12s ease-in-out infinite; }
.web-v2 .runtime-generation-copy > span:nth-child(2) { animation-delay:3s; }
.web-v2 .runtime-generation-copy > span:nth-child(3) { animation-delay:6s; }
.web-v2 .runtime-generation-copy > span:nth-child(4) { animation-delay:9s; }
.web-v2 .runtime-generation-meta { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 14px; margin-top:4px; color:#99999f; font-size:11px; font-variant-numeric:tabular-nums; }
.web-v2 .runtime-generation-meta strong { color:#c9c9cd; font-weight:650; }
.web-v2 .runtime-generation-meta i { width:1px; height:14px; background:rgba(255,255,255,.14); }
.web-v2 .quality-generation-error { margin:0; color:#aeb2bc; font-size:11px; line-height:1.5; }
.web-v2 .quality-generation-retry { display:inline-flex; align-items:center; gap:6px; width:max-content; padding:6px 10px; border:1px solid rgba(255,116,111,.42); border-radius:8px; background:rgba(255,116,111,.12); color:#ffd0cc; font:inherit; font-size:11px; cursor:pointer; }
.web-v2 .quality-generation-retry img { width:13px; height:13px; }
.web-v2 .quality-confirm-summary[data-status="failed"] .runtime-generation-track { display:none; }
.web-v2 .quality-confirm-summary[data-status="ready"] .runtime-generation-track > span { animation:none; width:100%; }
.web-v2 .storyboard-card.is-ready .storyboard-video-spinner,
.web-v2 .storyboard-card.is-failed .storyboard-video-spinner,
.web-v2 .storyboard-card.is-pending .storyboard-video-spinner { display:none; }
.web-v2 .storyboard-card.is-failed .storyboard-video-state::before { content:"!"; display:grid; place-items:center; width:24px; height:24px; margin-right:7px; border:1px solid rgba(255,116,111,.55); border-radius:50%; color:#ff746f; font-size:14px; font-weight:800; }
.web-v2 .runtime-generation-mini { position:relative; display:grid; place-items:center; width:42px; height:42px; overflow:hidden; border-radius:12px; background:radial-gradient(circle at 50% 18%,rgba(186,110,255,.18),transparent 58%),#25262b; }
.web-v2 .runtime-generation-mini::before { content:""; position:absolute; inset:-80%; background:conic-gradient(from 180deg,transparent 0 35%,rgba(255,194,78,.08),transparent 50% 85%,rgba(171,82,255,.08)); animation:runtime-generation-ambient 9s linear infinite; }
.web-v2 .runtime-generation-mini img { position:relative; z-index:1; width:27px; animation:runtime-generation-logo 2.4s ease-in-out infinite; }
.web-v2 .runtime-generation-orbit { position:absolute; inset:4px; border:1px solid rgba(255,194,78,.22); border-top-color:#ffc34e; border-radius:50%; animation:runtime-generation-orbit 1.2s linear infinite; }
@keyframes runtime-generation-progress { from { width:var(--runtime-generation-start,4%); } to { width:94%; } }
@keyframes runtime-generation-copy { 0%,21% { opacity:1; transform:translateY(0); } 25%,100% { opacity:0; transform:translateY(-6px); } }
@keyframes runtime-generation-logo { 0%,100% { opacity:.72; transform:translateY(0) scale(.98); } 50% { opacity:1; transform:translateY(-3px) scale(1.025); } }
@keyframes runtime-generation-ambient { to { transform:rotate(360deg); } }
@keyframes runtime-generation-orbit { to { transform:rotate(360deg); } }
.web-v2 .quality-confirm-summary .runtime-film-generating {
  position:relative; box-sizing:border-box; width:min(100%,760px); min-height:clamp(320px,180px + 42vw,430px);
  display:grid; place-items:center; align-content:center; gap:clamp(18px,6%,36px); overflow:hidden;
  margin:12px 0 0; padding:clamp(12px,3.5%,27px) clamp(24px,7%,54px) clamp(24px,7%,54px);
  border:1px solid rgba(255,255,255,.08); border-radius:24px;
  background:radial-gradient(circle at 50% 12%,rgba(186,110,255,.12),transparent 34%),#25262b; color:#f3f3f4;
}
.web-v2 .quality-confirm-summary .runtime-film-generating::before {
  content:""; position:absolute; inset:-50%; pointer-events:none;
  background:conic-gradient(from 180deg,transparent 0 35%,rgba(255,194,78,.043),transparent 50% 85%,rgba(171,82,255,.05));
  animation:runtime-generation-ambient 9s linear infinite;
}
.web-v2 .quality-confirm-summary .runtime-generation-brand { position:relative; z-index:1; width:100%; display:grid; place-items:center; }
.web-v2 .quality-confirm-summary .runtime-generation-brand > .leona-loading { width:100%; }
.web-v2 .quality-confirm-summary .runtime-generation-brand .leona-loading-stage { width:clamp(112px,28%,168px); }
.web-v2 .quality-confirm-summary .runtime-generation-content { position:relative; z-index:1; width:100%; min-width:0; text-align:center; }
.web-v2 .quality-confirm-summary .runtime-film-generating .runtime-generation-track { max-width:560px; margin:0 auto; }
.web-v2 .quality-confirm-summary .runtime-film-generating .runtime-generation-copy {
  height:24px; margin-top:clamp(22px,6%,34px); color:#d7d7da; font-size:16px; font-weight:400; line-height:24px;
}
.web-v2 .quality-confirm-summary .runtime-film-generating .runtime-generation-meta {
  gap:12px 18px; margin-top:14px; color:#99999f; font-size:clamp(12px,2vw,15px);
}
.web-v2 .quality-confirm-summary .runtime-generation-meta svg {
  width:15px; height:15px; margin-right:6px; vertical-align:-2px; fill:none; stroke:currentColor; stroke-width:1.5;
}
@media (max-width:520px) {
  .web-v2 .quality-confirm-summary .runtime-film-generating { min-height:0; gap:12px; padding:18px 18px 20px; border-radius:14px; }
  .web-v2 .quality-confirm-summary .runtime-generation-brand .leona-loading-stage { width:104px; }
  .web-v2 .quality-confirm-summary .runtime-film-generating .runtime-generation-copy { height:22px; margin-top:9px; font-size:16px; line-height:22px; }
  .web-v2 .quality-confirm-summary .runtime-film-generating .runtime-generation-meta { gap:8px 12px; margin-top:6px; font-size:11.5px; }
}
@media (prefers-reduced-motion:reduce) {
  .web-v2 .quality-generation-animation::before,.web-v2 .quality-generation-animation img,.web-v2 .quality-generation-preview-empty img,.web-v2 .runtime-film-generating::before,.web-v2 .runtime-generation-track > span,.web-v2 .runtime-generation-copy > span,.web-v2 .runtime-generation-mini::before,.web-v2 .runtime-generation-mini img,.web-v2 .runtime-generation-orbit { animation:none; }
  .web-v2 .runtime-generation-copy > span:first-child { opacity:1; }
}
.web-v2 .quality-generation-copy { min-width:0; display:grid; gap:11px; }
.web-v2 .quality-generation-copy > strong { color:#ffd16a; font-size:13px; }
.web-v2 .quality-confirm-summary[data-status="ready"] .quality-generation-copy > strong { color:var(--v2-green,#5fd09a); }
.web-v2 .quality-confirm-summary[data-status="failed"] .quality-generation-copy > strong { color:var(--v2-red,#ff746f); }
.web-v2 .quality-generation-params { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.web-v2 .quality-generation-params span { min-width:0; display:grid; gap:2px; }
.web-v2 .quality-generation-params small { color:#777d89; font-size:9px; }
.web-v2 .quality-generation-params b { overflow:hidden; color:#d7d9df; font-size:11px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }
.web-v2 .quality-final-video { margin-top:14px; overflow:hidden; border:1px solid var(--v2-border,rgba(255,255,255,.09)); border-radius:15px; background:#111218; }
.web-v2 .quality-final-video[hidden] { display:none !important; }
.web-v2 .quality-final-video > header { padding:13px 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--v2-border,rgba(255,255,255,.09)); }
.web-v2 .quality-final-video > header div { display:grid; gap:2px; }
.web-v2 .quality-final-video > header span { color:var(--v2-green,#5fd09a); font-size:10px; }
.web-v2 .quality-final-video > header h3 { margin:0; color:#f1f2f4; font-size:14px; }
.web-v2 .quality-final-video > header em { padding:4px 8px; border-radius:999px; background:rgba(10,11,14,.78); color:#d4d7de; font-size:10px; font-style:normal; }
.web-v2 .quality-final-video-list { display:grid; gap:10px; padding:10px; }
.web-v2 .quality-final-video-item { overflow:hidden; border:1px solid rgba(255,255,255,.08); border-radius:12px; background:#0d0e12; }
.web-v2 .quality-final-video-item-head { min-height:34px; padding:8px 11px; display:flex; align-items:center; justify-content:space-between; gap:10px; color:#e9eaee; font-size:11px; }
.web-v2 .quality-final-video-item-head span { color:#858b96; font-variant-numeric:tabular-nums; }
.web-v2 .quality-final-video-segments { display:flex; gap:6px; padding:9px 10px 10px; overflow-x:auto; background:#15161c; border-top:1px solid rgba(255,255,255,.08); scrollbar-width:thin; }
.web-v2 .quality-final-video-segment { flex:1 0 150px; min-width:0; min-height:29px; padding:6px 9px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:7px; border:1px solid rgba(255,255,255,.1); border-radius:6px; background:#1b1c23; color:#aeb2bc; text-align:left; cursor:pointer; }
.web-v2 .quality-final-video-segment:hover { border-color:rgba(255,194,79,.6); color:#f1f2f4; }
.web-v2 .quality-final-video-segment.is-active { border-color:#8764ff; background:linear-gradient(90deg,rgba(119,84,255,.22),rgba(35,31,70,.55)); color:#f0edff; box-shadow:0 0 0 1px rgba(135,100,255,.18) inset; }
.web-v2 .quality-final-video-segment span { color:#d9cfff; font-family:"JetBrains Mono","Cascadia Code",Consolas,monospace; font-size:9px; }
.web-v2 .quality-final-video-segment small { min-width:0; overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.web-v2 .quality-final-video-segment em { color:#858b96; font-size:9px; font-style:normal; }
.web-v2 .quality-final-video-player,
.web-v2 .storyboard-preview-stage { position:relative; background:#08090c; }
.web-v2 .quality-final-video-player video { width:100%; max-height:min(52vh,520px); display:block; aspect-ratio:var(--video-aspect-ratio,var(--track-image-aspect-ratio,16/9)); object-fit:contain; background:#08090c; opacity:1; transition:opacity .18s ease; }
.web-v2 .quality-final-video-player.is-portrait video { height:auto; max-height:min(62vh,520px); object-fit:contain; }
.web-v2 .quality-final-video-player.is-first-frame-loading video { opacity:0; pointer-events:none; }
.web-v2 .quality-video-first-frame { position:absolute; z-index:2; inset:0; display:grid; place-items:center; overflow:hidden; background:radial-gradient(circle at 50% 38%,#242630 0%,#101116 58%,#08090c 100%); opacity:0; visibility:hidden; transition:opacity .18s ease; pointer-events:none; }
.web-v2 .is-first-frame-loading .quality-video-first-frame { opacity:1; visibility:visible; }
.web-v2 .quality-video-first-frame > img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#08090c; }
.web-v2 .quality-video-first-frame > span { position:relative; z-index:1; display:grid; justify-items:center; gap:10px; padding:12px 16px; border-radius:12px; background:rgba(8,9,12,.7); color:#b7bac3; font-size:11px; backdrop-filter:blur(7px); }
.web-v2 .quality-video-first-frame [data-video-loading-animation] { width:46px; height:46px; display:grid; place-items:center; }
.web-v2 .quality-video-first-frame [data-video-loading-animation] > .leona-loading { width:46px; height:46px; }
.web-v2 .quality-video-first-frame [data-video-loading-animation] .leona-loading-stage { width:46px; }
.web-v2 .quality-video-first-frame.has-poster > span { background:rgba(8,9,12,.52); }
.web-v2 .quality-final-video-player.is-buffering::after { content:attr(data-buffering-label); position:absolute; z-index:3; left:50%; top:50%; transform:translate(-50%,-50%); padding:7px 11px; border-radius:999px; background:rgba(8,9,12,.78); color:#fff; font-size:12px; pointer-events:none; }
.web-v2 .quality-final-video-player.is-buffering::before { content:''; position:absolute; z-index:3; left:calc(50% - 18px); top:calc(50% - 18px); width:36px; height:36px; border:2px solid rgba(255,255,255,.22); border-top-color:#ffc34e; border-radius:50%; animation:v2-video-buffer-spin .8s linear infinite; pointer-events:none; }
@keyframes v2-video-buffer-spin { to { transform:rotate(360deg); } }
.web-v2 .quality-final-video-download { position:absolute; z-index:2; top:12px; right:12px; width:36px; height:36px; border:1px solid rgba(255,255,255,.18); border-radius:50%; background:rgba(8,9,12,.74); color:#fff; font-size:19px; cursor:pointer; backdrop-filter:blur(8px); }
.web-v2 .quality-final-video > footer { min-height:42px; padding:9px 13px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.web-v2 .quality-final-video > footer span { overflow:hidden; color:#aeb2bc; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.web-v2 .quality-final-video > footer button { flex:0 0 auto; padding:0; border:0; background:transparent; color:#ffc34e; font:inherit; font-size:11px; cursor:pointer; }
.web-v2 .chat-generated-asset .asset-body { padding: 14px; }
.web-v2 .chat-generated-asset .asset-id { margin-top: 3px; color: #777c88; font-size: 11px; }
.web-v2 .chat-generated-prompt { max-height: 74px; margin-top: 10px; overflow: auto; color: #aeb2bc; font-size: 12px; line-height: 1.65; }
.web-v2 .chat-generated-copy { margin-top: 10px; padding: 8px 12px; border: 0; border-radius: 7px; background: #f4f1ea; color: #31291d; font: inherit; font-size: 12px; cursor: pointer; }
.web-v2 .chat-generated-note { margin: 10px 0 0; color: #827a6f; font-size: 11px; line-height: 1.5; }
.web-v2 .restored-media-result > .panel-resource-link { min-height: 30px; margin: 12px 0 0; padding: 0; border: 0; background: transparent; color: #ffc24f; box-shadow: none; }
.web-v2 .restored-media-result > .restored-media-continue { margin-top: 12px; }

/* Standard conversational choices follow the numbered card treatment. */
.web-v2 .options-group:has(.options-choices:not(.options-choice-list)) {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(17,18,23,.44);
}
.web-v2 .options-choices:not(.options-choice-list) { gap: 10px; padding: 2px; }
.web-v2 .options-choices:not(.options-choice-list) .opt-btn {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
  background: transparent;
  color: rgba(242,243,247,.76);
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}
.web-v2 .options-choices:not(.options-choice-list) .opt-btn:hover:not(:disabled) { background: rgba(255,255,255,.025); }
.web-v2 .options-choices:not(.options-choice-list) .opt-btn.selected {
  border-color: rgba(255,179,56,.46) !important;
  background: rgba(255,179,56,.075) !important;
  color: #f3f3ef !important;
  box-shadow: none !important;
}
.web-v2 .options-choice-list { gap: 0; margin-top: 10px; padding: 8px 10px 0; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(17,18,23,.44); }
.web-v2 .options-choice-list .opt-btn {
  min-height: 58px;
  padding: 8px 14px;
  gap: 11px;
  border: 0;
  border-top: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(242,243,247,.68);
  font-size: 13px;
  font-weight: 650;
}
.web-v2 .options-choice-list .opt-btn + .opt-btn { border-top-color: rgba(255,255,255,.035); }
.web-v2 .options-choice-list .opt-btn:hover:not(:disabled) { border-color: rgba(255,194,79,.36); background: rgba(255,194,79,.06); }
.web-v2 .options-choice-list .opt-btn.selected {
  border: 1px solid rgba(255,194,79,.42);
  background: rgba(255,183,56,.09);
  color: #f3f3ef;
}
.web-v2 .options-choice-list .opt-btn.has-track-cover { min-height: 76px; padding: 8px; }
.web-v2 .opt-track-cover {
  width: 92px;
  height: 58px;
  flex: 0 0 92px;
  border-radius: 8px;
  object-fit: cover;
  background: #25262d;
}
.web-v2 .opt-choice-copy { display: flex; min-width: 0; flex: 1 1 auto; flex-direction: column; gap: 4px; }
.web-v2 .opt-choice-copy strong {
  overflow: visible;
  color: #f2f3f7;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.web-v2 .opt-choice-copy small { color: rgba(242,243,247,.5); font-size: 11px; font-weight: 500; line-height: 1.45; }
.web-v2 .opt-index {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.34);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.web-v2 .options-choices:not(.options-choice-list) .opt-index { display: none; }
.web-v2 .options-choices:not(.options-choice-list) .opt-check { display: block; margin-left: 2px; color: transparent; font-style: normal; }
.web-v2 .options-choices:not(.options-choice-list) .opt-btn.selected .opt-check { color: #dda23a; }
.web-v2 .options-choices .opt-btn.selected:disabled { opacity: 1; }
.web-v2 .options-choice-list .opt-btn.selected .opt-index { background: #d99c2f; color: #1e160b; }
.web-v2 .options-choice-list .opt-check { margin-left: auto; color: transparent; font-style: normal; }
.web-v2 .options-choice-list .opt-btn.selected .opt-check { color: #dda23a; }
.web-v2 .options-footer {
  margin-top: 8px;
  padding: 13px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.web-v2 .options-footer small { color: rgba(255,255,255,.5); font-size: 11px; }
.web-v2 .options-footer .opts-confirm { width: auto; min-width: 112px; min-height: 42px; margin: 0; padding: 10px 22px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 12px; border-radius: 999px; background: #ffb338 !important; color: #211609 !important; white-space: nowrap; box-shadow: none !important; }
.web-v2 .options-footer .opts-confirm:disabled { background: rgba(255,255,255,.035) !important; color: rgba(255,255,255,.38) !important; opacity: 1; cursor: default; }
.web-v2 .clarification-question { padding: 4px 0 12px; color: #f5f5f2; font-size: 14px; font-weight: 600; }
.web-v2 .clarification-custom { display:flex; align-items:center; gap:10px; margin-top:12px; color:rgba(255,255,255,.58); font-size:12px; }
.web-v2 .clarification-custom-input { flex:1; min-width:0; border:1px solid rgba(255,255,255,.14); border-radius:8px; padding:9px 11px; background:rgba(255,255,255,.04); color:#f5f5f2; outline:none; }
.web-v2 .clarification-custom-input:focus { border-color:#ffbd49; }
.web-v2 .clarification-loading { min-height:54px; color:rgba(255,255,255,.68); font-size:18px; letter-spacing:2px; }

/* Intent-matched tracks are a conversational choice, not a full-width artifact. */
.web-v2 .workspace .msg-ai:has(.options-choice-list .has-track-cover) {
  width: min(620px, 100%);
}
.web-v2 .workspace .msg-ai:has(.options-choice-list .has-track-cover) .bubble {
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 4px 16px 16px 16px;
}
.web-v2 .options-choice-list:has(.has-track-cover) {
  padding: 6px 8px 0;
}
.web-v2 .options-choice-list .opt-btn.has-track-cover {
  min-height: 64px;
  padding: 7px 9px;
}
.web-v2 .options-choice-list .has-track-cover .opt-track-cover {
  width: 76px;
  height: 48px;
  flex-basis: 76px;
}
.web-v2 .options-choice-list .has-track-cover .opt-choice-copy small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.web-v2 .options-choice-list:has(.has-track-cover) .options-footer {
  padding: 11px 8px;
}
.web-v2 .workspace .input-area {
  margin-bottom: 10px;
  border: 1px solid rgba(155, 101, 255, .9);
  border-radius: 15px;
  background: rgba(20, 20, 26, .96);
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
.web-v2 .workspace .web-v2-resources-panel {
  position: relative;
  z-index: 2;
  width: auto;
  min-width: 0;
  height: 100%;
  flex: 1 1 auto;
  display: none;
  border-left: 1px solid rgba(255,255,255,.09);
  border-radius: 0;
  background: #0d0e12;
  box-shadow: none;
}
.web-v2 .workspace.web-v2-resources-open .web-v2-resources-panel { display: flex; }
.web-v2-resources-header {
  min-height: 88px;
  padding: 22px 28px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.web-v2-resources-header h2 { margin: 0 0 3px; color: #f2f3f7; font-size: 18px; }
.web-v2-resources-header p { margin: 0; color: #6c7280; font-size: 12px; }
.web-v2-resources-header button { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #a6abb8; font-size: 26px; cursor: pointer; }
.web-v2-resources-header button:hover { background: #171a21; color: #f2f3f7; }
.web-v2-resource-toggle {
  position: absolute;
  z-index: 3;
  top: 76px;
  right: 24px;
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(28, 29, 36, .94);
  color: #d8d9dd;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.24);
}
.web-v2-resource-toggle > span { color: var(--web-v2-gold); }
.web-v2-resource-toggle > span:first-child { font-size: 20px; }
.web-v2-resource-toggle b { font-weight: 650; }
.web-v2-resource-toggle i { color: #6c7280; font-size: 12px; font-style: normal; }
.web-v2 .workspace.web-v2-resources-open .web-v2-resource-toggle { display: none; }

@media (max-width: 1280px) {
  .web-v2 #billing-view .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .web-v2 #billing-view .plan-card { min-height: 0; }
}

@media (max-width: 920px) {
  .web-v2-promo { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 9px 12px; }
  .web-v2-promo-copy {
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 2px;
    font-size: 12.5px;
    text-align: left;
    white-space: normal;
  }
  .web-v2-promo-copy strong { font-size: 14px; }
  .web-v2-promo-copy span { overflow: visible; text-overflow: clip; }
  .web-v2-promo-actions { width: 100%; justify-content: space-between; gap: 10px; }
  .web-v2-promo-cta { min-width: 104px; min-height: 29px; padding-inline: 14px; font-size: 12px; }
  .web-v2-promo-close { width: 31px; height: 29px; font-size: 22px; }
  .web-v2 .app-sidebar { top: calc(var(--web-v2-promo-height) + 60px); }
  .web-v2.sidebar-mobile-open .sidebar-backdrop { inset: calc(var(--web-v2-promo-height) + 60px) 0 0; }
}

@media (max-width: 680px) {
  .web-v2 .intent-chat-recommendation { padding: 18px 14px; }
  .web-v2 .intent-chat-heading { padding-inline: 4px; }
  .web-v2 .intent-chat-heading h2 { font-size: 15px; }
  .web-v2 .intent-chat-option { grid-template-columns: 20px 94px minmax(0, 1fr); gap: 10px; padding: 13px 4px; }
  .web-v2 .intent-chat-option > img { height: 58px; }
  .web-v2 .intent-chat-actions { padding: 14px 4px 0; }
  .web-v2 .intent-chat-confirm { width: 100%; }
  .web-v2-countdown { gap: 4px; }
  .web-v2-countdown b { width: 31px; height: 31px; font-size: 13px; }
  .web-v2-countdown i { font-size: 10px; }
  .web-v2 #billing-view .plan-grid { grid-template-columns: 1fr; }
  .web-v2-faq { padding: 42px 0 56px; }
  .web-v2-faq-item summary { grid-template-columns: 25px minmax(0, 1fr) 18px; gap: 9px; padding-inline: 2px; }
  .web-v2-faq-content { padding: 0 28px 16px 36px; }
  .web-v2-resource-toggle b { display: none; }
  .web-v2 .workspace.web-v2-resources-open .chat-pane { width: 100%; flex: 1 1 auto; }
  .web-v2 .workspace .web-v2-resources-panel { position: absolute; inset: 0; width: auto; }
}

@media (max-width: 620px) {
  .web-v2 .chat-image-artifact .asset-grid { grid-template-columns: 1fr; }
  .web-v2-intent.landing-quickstart { margin-bottom: 24px; border-radius: 17px; }
  .web-v2-intent .landing-prompt { height: 116px; min-height: 116px; padding: 13px 18px; border-radius: 15px 15px 0 0; }
  .web-v2-intent .landing-quickstart-actions { min-height: 74px; padding: 2px 10px 9px; flex-wrap: wrap; gap: 2px; }
  .web-v2-intent .landing-quickstart-hint { margin-left: 1px; }
  .web-v2-intent .landing-quickstart-submit { width: 100%; min-height: 34px; }
}

@media (max-width: 520px) {
  .web-v2-promo-actions { flex-wrap: wrap; justify-content: flex-start; }
  .web-v2-countdown { width: 100%; }
  .web-v2-promo-close { margin-left: auto; }
}

/* --------------------------------------------------------------------------
   V2 visual refresh: presentation-only overrides. Existing media URLs,
   navigation, authentication, chat, project and payment handlers stay intact.
   -------------------------------------------------------------------------- */

body.web-v2 {
  --v2-surface: #111218;
  --v2-surface-raised: #18191f;
  --v2-surface-soft: #202128;
  --v2-border: rgba(255,255,255,.09);
  --v2-border-strong: rgba(255,255,255,.15);
  --v2-muted: #9297a3;
  --v2-blue: #68a8ff;
  --v2-green: #5fd09a;
  --v2-red: #ff746f;
  background:
    radial-gradient(circle at 20% 8%, rgba(255,179,56,.045), transparent 28%),
    radial-gradient(circle at 80% 24%, rgba(99,112,255,.045), transparent 25%),
    #0d0e12;
}

.web-v2 :is(button,a,input,textarea,select):focus-visible {
  outline: 2px solid rgba(255,194,79,.82);
  outline-offset: 2px;
}

/* Text fields expose their focus state through the component border. The
   global keyboard ring would sit outside that border and render as a second
   yellow frame around every input and textarea. */
.web-v2 :is(input,textarea):focus-visible {
  outline: none;
  outline-offset: 0;
}

/* Keep the duration focus indicator on the complete control, outside the input. */
.web-v2 .storyboard-duration-control:focus-within {
  border-color: rgba(255,194,79,.82);
}
.web-v2 .storyboard-duration-input:focus-visible {
  outline: none;
  outline-offset: 0;
}

/* The storyboard setting already exposes its focus state through the
   control border. Avoid drawing a second yellow ring from the global
   focus-visible treatment around the native select. */
.web-v2 .storyboard-setting:focus-visible {
  outline: none;
  outline-offset: 0;
}

.web-v2 :is(.portal-view,.profile-view,.track-view) {
  scrollbar-color: rgba(255,194,79,.42) transparent;
}

/* Guest hero keeps the project's existing welcome video. */
.web-v2 .guest-view {
  padding: clamp(28px, 4vw, 62px) 24px 72px;
  background:
    linear-gradient(rgba(13,14,18,.92),rgba(13,14,18,.98)),
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.18) 1px, transparent 0) 0 0/28px 28px;
}
.web-v2 .guest-onboarding { width: min(1120px,100%); margin-inline: auto; text-align: center; }
.web-v2 .guest-copy { width: min(860px,100%); margin-inline: auto; }
.web-v2 .guest-eyebrow { color: var(--web-v2-gold); font-weight: 800; letter-spacing: .16em; }
.web-v2 .guest-copy h1 { margin: 14px 0 10px; font-size: clamp(36px,5vw,66px); line-height: 1.04; letter-spacing: -.045em; }
.web-v2 .guest-copy p { max-width: 720px; margin-inline: auto; color: #afb3bd; font-size: clamp(14px,1.4vw,18px); }
.web-v2 .guest-video-frame {
  width: min(920px,100%);
  margin: 28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255,194,79,.22);
  border-radius: 24px;
  background: #090a0d;
  box-shadow: 0 34px 90px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.025) inset;
}
.web-v2 .guest-video-frame video { width: 100%; height: 100%; object-fit: cover; }
.web-v2 .guest-start-button {
  min-width: 176px;
  min-height: 48px;
  margin-top: 24px;
  border: 1px solid rgba(255,238,190,.65);
  border-radius: 999px;
  background: linear-gradient(110deg,#ffe37d,#ffad2f);
  color: #221606;
  box-shadow: 0 14px 34px rgba(255,173,47,.22);
}

/* Home track catalog. */
.web-v2 .track-view { padding: clamp(76px,8vw,118px) clamp(18px,4vw,52px) 72px; }
.web-v2 .track-hero { margin-bottom: 28px; }
.web-v2 .track-hero-title { font-size: clamp(34px,4vw,58px); letter-spacing: -.04em; }
.web-v2 .track-hero-sub { max-width: 720px; margin: 14px auto 0; color: #999eaa; font-size: 15px; }
.web-v2 .track-tags { gap: 9px; margin-bottom: 22px; }
.web-v2 .track-tags button {
  border: 1px solid var(--v2-border);
  border-radius: 999px;
  background: rgba(24,25,31,.8);
  color: #a8acb5;
}
.web-v2 .track-tags button:is(.active,:hover) { border-color: rgba(255,194,79,.52); background: rgba(255,194,79,.12); color: #ffd775; }
.web-v2 .track-grid { gap: 18px; }
.web-v2 .track-card {
  overflow: hidden;
  border: 1px solid var(--v2-border);
  border-radius: 18px;
  background: var(--v2-surface-raised);
  box-shadow: 0 15px 35px rgba(0,0,0,.18);
  transition: transform .22s var(--ease-out), border-color .22s, box-shadow .22s;
}
.web-v2 .track-card:hover { transform: translateY(-4px); border-color: rgba(255,194,79,.42); box-shadow: 0 22px 48px rgba(0,0,0,.32); }

/* Login presentation; existing video and authentication controls are untouched. */
.web-v2 .auth-modal { padding: 24px; background: rgba(3,4,7,.82); backdrop-filter: blur(14px); }
.web-v2 .auth-dialog {
  width: min(920px,calc(100vw - 40px));
  min-height: 570px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0,1.02fr) minmax(360px,.98fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: #15171e;
  box-shadow: 0 40px 120px rgba(0,0,0,.72);
}
.web-v2 .auth-media { min-height: 570px; border-radius: 0; }
.web-v2 .auth-panel { padding: 44px 36px; background: linear-gradient(160deg,#181a21,#14161c); }
.web-v2 .auth-close { top: 14px; right: 14px; border: 0; background: rgba(7,8,11,.46); color: #e8e9ed; }
.web-v2 .auth-close:hover { background: rgba(255,255,255,.08); color: var(--web-v2-gold); }
.web-v2 :is(.google-auth-button,.email-auth-button,.auth-submit,.auth-provider-button) { min-height: 48px; border-radius: 10px; }

/* Workspace shell and resizable resource split. */
.web-v2 .workspace {
  --v2-chat-width: 65%;
  overflow: hidden;
  background: #0b0c10;
}
.web-v2 .workspace .chat-pane {
  width: var(--v2-chat-width);
  flex: 0 0 var(--v2-chat-width);
  min-width: 34%;
  border-right: 0;
  background: linear-gradient(180deg,#111217,#0c0d11);
}
.web-v2 .workspace:not(.web-v2-resources-open) .chat-pane { width: 100%; flex-basis: 100%; }
.web-v2 .workspace.web-v2-resources-open .chat-pane { width: var(--v2-chat-width); flex-basis: var(--v2-chat-width); }
.web-v2 .workspace .pane-cap {
  min-height: 68px;
  width: 100%;
  margin-inline: 0;
  padding-inline: 20px;
  border-bottom: 1px solid var(--v2-border);
  background: rgba(17,18,24,.9);
  backdrop-filter: blur(14px);
}
.web-v2 .workspace .pane-cap .workspace-back {
  left: clamp(16px, 3vw, 34px);
}
.web-v2 .workspace .messages { padding: 26px clamp(28px,4vw,52px) 132px; }
.web-v2 .workspace .input-area {
  box-sizing: border-box;
  /* Keep the composer above inline video layers on mobile browsers. Some
     engines promote video to a composited layer that can otherwise paint
     over a sibling without an explicit stacking level. */
  position: relative;
  z-index: 20;
  width: auto;
  max-width: none;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0 calc(clamp(28px,4vw,52px) + 12px) 14px clamp(28px,4vw,52px);
  transform: none;
  border-color: rgba(255,194,79,.3);
  border-radius: 18px;
  background: rgba(24,25,31,.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.025) inset;
}
.web-v2 .workspace .input-area:has(.input-box:placeholder-shown):not(:focus-within) {
  background: rgba(24,25,31,.96);
  animation: none;
}
.web-v2 .workspace .input-area:focus-within {
  border-color: rgba(255,194,79,.72);
  box-shadow: 0 18px 50px rgba(0,0,0,.46);
}
.web-v2 .workspace .input-box:focus-visible {
  outline: none;
  outline-offset: 0;
}
.web-v2 .workspace .send-btn:not(:disabled) { background: linear-gradient(135deg,#ffe37d,#ffad2f); color: #211506; }
.web-v2-workspace-resizer {
  position: relative;
  z-index: 5;
  width: 8px;
  flex: 0 0 8px;
  cursor: col-resize;
  background: #0b0c10;
}
.web-v2-workspace-resizer::after { content:""; position:absolute; inset:0 3px; background:rgba(255,255,255,.09); transition:background .18s,box-shadow .18s; }
.web-v2-workspace-resizer:is(:hover,:focus-visible)::after { background:var(--web-v2-gold); box-shadow:0 0 16px rgba(255,194,79,.35); }
.web-v2 .workspace:not(.web-v2-resources-open) .web-v2-workspace-resizer { display:none; }

/* Resource library */
.web-v2 .workspace .web-v2-resources-panel {
  min-width: 360px;
  flex: 1 1 0;
  flex-direction: column;
  overflow: hidden;
  border-left: 0;
  background: #0f1015;
}
.web-v2-resources-header { min-height: 72px; padding: 16px 20px; align-items:center; justify-content:flex-start; background:rgba(17,18,24,.95); }
.web-v2-resources-header > div { min-width:0; flex:1 1 auto; }
.web-v2-resources-header h2 { display:flex; align-items:center; gap:9px; font-size:18px; }
.web-v2-resources-header h2 em { min-width:24px; height:24px; display:grid; place-items:center; border-radius:999px; background:rgba(255,194,79,.13); color:#ffd46c; font-size:11px; font-style:normal; }
.web-v2-resources-header button { order:-1; flex:0 0 36px; border-radius:999px; }
.web-v2-resource-library { min-height:0; flex:1; overflow:auto; padding:18px 20px 28px; }
.web-v2-resource-search { height:42px; padding:0 13px; display:flex; align-items:center; gap:9px; border:1px solid var(--v2-border); border-radius:11px; background:#17181e; color:#727885; }
.web-v2-resource-search:focus-within { border-color:rgba(255,194,79,.45); }
.web-v2-resource-search input { min-width:0; width:100%; border:0; outline:0; background:transparent; color:#f3f4f6; font:inherit; }
.web-v2 .web-v2-resource-search input:focus-visible { outline:none; outline-offset:0; }
.web-v2-resource-search input::-webkit-search-cancel-button { display:none; }
.web-v2-resource-search-clear { width:22px; height:22px; flex:0 0 22px; display:grid; place-items:center; padding:0; border:0; border-radius:50%; background:rgba(255,255,255,.12); color:#c8ccd4; font:inherit; font-size:18px; line-height:1; cursor:pointer; }
.web-v2-resource-search-clear:hover, .web-v2-resource-search-clear:focus-visible { background:rgba(255,194,79,.28); color:#fff; }
.web-v2 .web-v2-resource-search-clear:focus-visible { outline:none; outline-offset:0; }
.web-v2-resource-search-clear[hidden] { display:none; }
.web-v2-resource-filters { margin:14px -2px 16px; padding:2px; display:flex; gap:7px; overflow-x:auto; scrollbar-width:none; }
.web-v2-resource-filters::-webkit-scrollbar { display:none; }
.web-v2-resource-filters button { min-height:34px; padding:0 11px; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; border:1px solid var(--v2-border); border-radius:999px; background:#17181e; color:#9ca1ac; font:inherit; font-size:12px; cursor:pointer; }
.web-v2-resource-filters button i { font-style:normal; color:#666d79; }
.web-v2-resource-filters button.is-active { border-color:rgba(255,194,79,.5); background:rgba(255,194,79,.12); color:#ffd46c; }
.web-v2-resource-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.web-v2-resource-card { position:relative; min-width:0; padding:0 0 12px; overflow:hidden; display:flex; flex-direction:column; text-align:left; border:1px solid var(--v2-border); border-radius:14px; background:#17181e; color:#eff0f3; cursor:pointer; transition:transform .18s,border-color .18s,background .18s; }
.web-v2-resource-card:hover { transform:translateY(-2px); border-color:rgba(255,194,79,.35); background:#1b1c22; }
.web-v2-resource-card.is-disabled,
.web-v2-resource-card.is-disabled:hover { cursor:default; border-color:rgba(255,116,111,.3); background:#17181e; transform:none; }
.web-v2-resource-preview { height:112px; min-height:112px; max-height:112px; aspect-ratio:auto !important; display:grid; place-items:center; overflow:hidden; background:linear-gradient(145deg,#272933,#131419); color:#ffc75a; font-size:34px; }
.web-v2-resource-preview img { width:100%; height:112px; min-height:112px; max-height:112px; display:block; object-fit:cover; opacity:0; transition:opacity .16s ease; }
.web-v2-resource-card[data-resource-type="character"] .web-v2-resource-preview img { object-fit:contain; background:#111218; }
.web-v2-resource-preview img.is-loaded { opacity:1; }
.web-v2-resource-loading { width:100%; height:100%; display:grid; place-items:center; background:#111218; }
.web-v2-resource-loading > .leona-loading { width:100%; height:100%; }
.web-v2-resource-loading .leona-loading-stage { width:min(72px, 64%); }
.web-v2-resource-card-copy { min-width:0; padding:11px 12px 4px; display:grid; gap:4px; }
.web-v2-resource-card-copy strong { overflow:hidden; color:#f1f2f4; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.web-v2-resource-card-copy > span { color:#8b919d; font-size:11px; }
.web-v2-resource-card-copy small { min-height:30px; overflow:hidden; display:-webkit-box; color:#707683; font-size:10px; line-height:1.5; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.web-v2-resource-card > em { position:absolute; top:9px; right:9px; padding:4px 7px; border-radius:999px; background:rgba(10,11,14,.78); font-size:10px; font-style:normal; backdrop-filter:blur(8px); }
.web-v2-resource-card > em.is-complete { color:var(--v2-green); }
.web-v2-resource-card > em.is-generating { color:var(--v2-blue); }
.web-v2-resource-card > em.is-failed { color:var(--v2-red); }
.web-v2-resource-card > b { margin:7px 12px 0; color:#d8aa4a; font-size:11px; font-weight:650; }
.web-v2-resource-empty { min-height:260px; padding:28px; display:grid; place-content:center; justify-items:center; text-align:center; color:#737986; }
.web-v2-resource-empty > span { width:58px; height:58px; display:grid; place-items:center; border:1px solid var(--v2-border); border-radius:18px; background:#17181e; color:#d4a84c; font-size:28px; }
.web-v2-resource-empty strong { margin-top:15px; color:#c8cbd2; font-size:14px; }
.web-v2-resource-empty p { max-width:270px; margin:7px 0 0; font-size:12px; line-height:1.6; }
.web-v2-resource-back { margin:14px 20px 0; padding:0; align-self:flex-start; border:0; background:transparent; color:#e1b75c; font:inherit; font-size:12px; cursor:pointer; }
.web-v2-resource-editors { min-height:0; flex:1; display:none; overflow:hidden; }
.web-v2-resources-panel.is-editor-view .web-v2-resource-editors { display:flex; flex-direction:column; }
.web-v2-resources-panel.is-editor-view .web-v2-resource-library { display:none; }
.web-v2-resource-editors .panel-tabs { flex:0 0 auto; }
.web-v2-resource-editors .panel-body { min-height:0; flex:1; }

/* Conversation artifacts and video status */
.web-v2 .bubble {
  border-radius:16px;
  /* Keep long unbroken prompts (URLs, IDs, repeated characters) inside the bubble. */
  min-width:0;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.web-v2 .msg-ai .bubble { border:1px solid rgba(255,255,255,.07); background:#17181e; }
.web-v2 .msg-user .bubble { border:1px solid rgba(255,194,79,.2); background:linear-gradient(145deg,rgba(255,194,79,.17),rgba(255,160,37,.09)); }
.web-v2 .storyboard-card { border-color:var(--v2-border); border-radius:16px; background:#17181e; }
.web-v2 .storyboard-card.web-v2-video-generating { position:relative; overflow:hidden; border-color:rgba(104,168,255,.35); }
.web-v2 .storyboard-card.web-v2-video-generating::before { content:""; position:absolute; z-index:3; top:0; left:-45%; width:45%; height:2px; background:linear-gradient(90deg,transparent,#ffe17b,transparent); animation:v2-video-scan 2.8s linear infinite; }
.web-v2 .storyboard-card.web-v2-video-generating .storyboard-video-spinner { color:var(--web-v2-gold); filter:drop-shadow(0 0 8px rgba(255,194,79,.55)); }
.web-v2 .storyboard-card.web-v2-video-failed { border-color:rgba(255,116,111,.42); }
.web-v2 .storyboard-card.web-v2-video-ready { border-color:rgba(95,208,154,.3); }
@keyframes v2-video-scan { to { left:100%; } }

/* Projects and assets */
.web-v2 #projects-view .portal-page-head h1 { font-size:31.5px; font-weight:400; line-height:1.5; letter-spacing:0; }
.web-v2 #assets-view .portal-page-head h1,
.web-v2 #billing-view .portal-page-head h1 { letter-spacing:-.035em; }
.web-v2 .portal-stat-card { min-height:0; box-sizing:border-box; padding:16px 17px; border:0; border-radius:12px; background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.02)); box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 12px 28px rgba(0,0,0,.1); }
.web-v2 #project-stats .portal-stat-card > span { color:rgba(255,255,255,.48); font-size:13px; font-weight:500; line-height:1.5; }
.web-v2 #project-stats .portal-stat-card > strong { color:rgba(255,255,255,.92); font-size:21px; font-weight:500; line-height:1.2; }
.web-v2 .portal-toolbar { min-height:42px; padding:0; border:0; border-radius:0; background:transparent; }
.web-v2 .portal-search,
.web-v2 .portal-toolbar select { border-color:var(--v2-border); border-radius:10px; background:#1b1c22; }
.web-v2 .portal-search input:focus-visible { outline:none; outline-offset:0; }
.web-v2 .portal-project-grid { display:block; }
.web-v2 .project-date-group + .project-date-group { margin-top:28px; }
.web-v2 .project-date-group > h2 { margin:0 0 12px; color:#b5b9c2; font-size:14px; font-weight:700; }
.web-v2 .project-date-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.web-v2 .portal-project-card { overflow:hidden; border:1px solid var(--v2-border); border-radius:14px; background:#17181e; box-shadow:0 15px 34px rgba(0,0,0,.16); }
.web-v2 .portal-project-card:hover { transform:translateY(-3px); border-color:rgba(255,194,79,.34); box-shadow:0 22px 46px rgba(0,0,0,.3); }
.web-v2 .portal-project-card .project-cover { aspect-ratio:16/9; overflow:hidden; }
.web-v2 .portal-project-card .project-cover > img,
.web-v2 .portal-project-card .project-cover > video { width:100%; height:100%; object-fit:cover; }
.web-v2 .portal-project-card .project-cover.is-generating { background:#222329; }
.web-v2 .project-cover-placeholder { position:absolute; inset:0; display:grid; place-items:center; background:radial-gradient(circle at 50% 44%,rgba(255,255,255,.045),transparent 34%),linear-gradient(145deg,#24252b,#1d1e23); }
.web-v2 .project-cover-placeholder svg { width:42px; height:42px; overflow:visible; fill:none; stroke:#c8c9cd; stroke-width:2.25; stroke-linecap:round; stroke-linejoin:round; filter:drop-shadow(0 3px 5px rgba(0,0,0,.36)); opacity:.92; }
.web-v2 .project-cover-placeholder .project-placeholder-spark { stroke:#f2f2f3; animation:project-placeholder-spark 1.8s ease-in-out infinite; transform-origin:35px 8px; }
.web-v2 .project-cover-progress { --project-progress:0%; position:absolute; z-index:4; left:0; right:0; bottom:0; height:4px; overflow:hidden; background:rgba(8,9,12,.6); box-shadow:0 -1px 0 rgba(255,255,255,.06); }
.web-v2 .project-cover-progress i { width:var(--project-progress); height:100%; display:block; border-radius:0 999px 999px 0; background:linear-gradient(90deg,#f1b42c,#ffe276); box-shadow:0 0 12px rgba(255,195,68,.48); transition:width .35s ease; }
.web-v2 .project-cover-progress.is-indeterminate i { width:38%; animation:project-cover-progress 1.55s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes project-cover-progress { from { transform:translateX(-105%); } to { transform:translateX(270%); } }
@keyframes project-placeholder-spark { 0%,100% { opacity:.42; transform:scale(.88); } 50% { opacity:1; transform:scale(1.08); } }
.web-v2 .project-track-badge,.web-v2 .project-new-badge { position:absolute; z-index:2; top:10px; padding:5px 8px; border-radius:999px; font-size:10px; font-weight:750; backdrop-filter:blur(8px); }
.web-v2 .project-track-badge { left:10px; max-width:55%; overflow:hidden; background:rgba(10,11,14,.76); color:#e4e5e9; text-overflow:ellipsis; white-space:nowrap; }
.web-v2 .project-new-badge { right:10px; background:linear-gradient(120deg,#ffe27a,#ffad2f); color:#211506; box-shadow:0 5px 16px rgba(255,173,47,.32); }
.web-v2 .portal-project-card:has(.project-new-badge) .project-card-menu { top:42px; }
.web-v2 .portal-project-card .project-body { min-height:94px; padding:12px 14px 13px; display:block; box-sizing:border-box; }
.web-v2 .portal-project-card .project-title { overflow:hidden; color:rgba(255,255,255,.92); font-size:13.5px; font-weight:600; line-height:20.25px; letter-spacing:0; text-overflow:ellipsis; white-space:nowrap; }
.web-v2 .project-card-foot { width:100%; min-width:0; margin:0; padding:0; display:block; }
.web-v2 .project-status { min-width:0; height:auto; margin:8px 0 0; display:block; font-size:12px; font-weight:600; line-height:18px; white-space:nowrap; }
.web-v2 .project-status span { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.web-v2 .project-status i { display:none; }
.web-v2 .project-status.is-idle { color:#858b96; }
.web-v2 .project-status.is-generating { color:var(--v2-blue); }
.web-v2 .project-status.is-review { color:#e9b850; }
.web-v2 .project-status.is-completed { color:var(--v2-green); }
.web-v2 .project-status.is-failed { color:var(--v2-red); }
.web-v2 .project-status.is-cancelled { color:#c496ff; }
.web-v2 .project-card-foot .project-meta { height:auto; margin:6px 0 0; padding:0; display:block; color:rgba(255,255,255,.48); font-family:"JetBrains Mono","Cascadia Code",Consolas,monospace; font-size:11px; font-weight:400; font-variant-numeric:normal; line-height:16.5px; white-space:nowrap; }
.web-v2 .project-empty-state { min-height:300px; grid-column:1/-1; display:grid; place-content:center; justify-items:center; text-align:center; }
.web-v2 .project-empty-state > span { width:64px; height:64px; display:grid; place-items:center; border:1px solid var(--v2-border); border-radius:20px; color:#d4a84c; font-size:30px; }

/* Billing retains the current film assets and existing purchase actions. */
.web-v2 #billing-view { background:#0d0e12; }
.web-v2 #billing-view .billing-mobile-bg-video { display:none; }
.web-v2 #billing-view .billing-mobile-note { display:none; }
.web-v2 .billing-mobile-membership-continue { display:none; }
.web-v2 #billing-view .billing-mobile-back { display:none; }
.web-v2 #billing-view .billing-film-hero { overflow:hidden; border:1px solid var(--v2-border); border-radius:20px; }
.web-v2 #billing-view .billing-film-content { background:linear-gradient(90deg,rgba(10,11,14,.82),rgba(10,11,14,.42),rgba(10,11,14,.82)); }
.web-v2 #billing-view .billing-switch { padding:4px; border:1px solid rgba(255,255,255,.13); border-radius:999px; background:rgba(17,18,22,.88); }
.web-v2 #billing-view .billing-switch button { border-radius:999px; }
.web-v2 #billing-view .billing-switch button.active { background:linear-gradient(110deg,#fff3c7,#f1eadc); color:#17130b; }
.web-v2 #billing-view .plan-card { border-color:var(--v2-border); border-radius:20px; }
.web-v2 #billing-view .plan-card-annual { border-color:rgba(255,194,79,.5); box-shadow:0 20px 60px rgba(255,172,45,.08); }
.web-v2 #billing-view :is(.plan-button,.coin-buy) { border-radius:999px; }
.web-v2 #billing-view .plan-card-annual .plan-button { background:linear-gradient(110deg,#ffe37d,#ffad2f); color:#211506; }
.web-v2 #billing-view .coin-package-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.web-v2 #billing-view .coin-package { min-width:0; border:1px solid var(--v2-border); border-radius:18px; background:linear-gradient(145deg,#1a1b21,#14151a); }
@media (max-width:1360px) and (min-width:921px) {
  .web-v2 #billing-view .coin-package-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.web-v2-mobile-plan-controls,.web-v2-mobile-all { display:none; }

/* Profile and membership overlays */
.web-v2 .profile-card { border:1px solid var(--v2-border); border-radius:16px; background:#17181e; }
.web-v2 .settings-subtabs { display:flex; gap:6px; margin-bottom:2px; padding:4px; border:1px solid var(--v2-border); border-radius:10px; background:#17181e; }
.web-v2 .settings-subtab { padding:8px 14px; border:0; border-radius:7px; background:transparent; color:#a7aab5; font:inherit; font-size:11px; cursor:pointer; }
.web-v2 .settings-subtab.active, .web-v2 .settings-subtab:hover { background:#3a2d18; color:#ffd36a; }
.web-v2 .subscription-benefit-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:18px 0; }
.web-v2 .subscription-benefit-grid div { display:flex; align-items:center; gap:8px; padding:12px; border:1px solid var(--v2-border); border-radius:10px; color:var(--v2-muted); font-size:12px; }
.web-v2 .subscription-benefit-grid strong { color:#43d39e; font-size:15px; }
@media (max-width: 760px) { .web-v2 .subscription-benefit-grid { grid-template-columns:1fr; } }
.web-v2 .profile-tabs { padding:5px; border:1px solid var(--v2-border); border-radius:13px; background:#14151a; }
.web-v2 .membership-modal { background:rgba(3,4,7,.84); backdrop-filter:blur(14px); }
.web-v2 .membership-dialog { border:1px solid rgba(255,194,79,.23); border-radius:22px; background:linear-gradient(150deg,#1c1d23,#111217); box-shadow:0 40px 120px rgba(0,0,0,.72); }
body.web-v2-membership-open { overflow:hidden; }
.web-v2 .membership-modal { padding:22px; align-items:center; justify-content:center; overflow:hidden; }
.web-v2 .membership-backdrop { background:rgba(0,0,0,.88); cursor:default; }
.web-v2 .membership-full-dialog { width:min(920px,calc(100vw - 44px)); max-height:calc(100vh - 44px); margin:auto; padding:0; overflow:hidden auto; text-align:left; }
.web-v2 .membership-full-close { position:sticky; z-index:8; top:12px; float:right; width:34px; height:34px; margin:10px 12px -44px 0; display:grid; place-items:center; border:0; outline:0; border-radius:50%; background:rgba(16,17,21,.68); color:#8d9097; font:300 28px/1 Arial,sans-serif; cursor:pointer; backdrop-filter:blur(8px); }
.web-v2 .membership-full-close:hover { color:#fff; }
.web-v2 .membership-full-close:focus-visible { color:#ffd56e; }
.web-v2 .membership-full-film { position:relative; height:88px; overflow:hidden; border-bottom:1px solid rgba(255,255,255,.08); background:#101115; clear:both; }
.web-v2 .membership-full-film::before,.web-v2 .membership-full-film::after { content:""; position:absolute; z-index:4; top:0; bottom:0; width:90px; pointer-events:none; }
.web-v2 .membership-full-film::before { left:0; background:linear-gradient(90deg,#111216,transparent); }
.web-v2 .membership-full-film::after { right:0; background:linear-gradient(-90deg,#111216,transparent); }
.web-v2 .membership-full-film .billing-film-rail { position:absolute; top:8px; left:0; display:flex; width:max-content; height:72px; transform:translateX(0); animation:membership-film-scroll 42s linear infinite; will-change:transform; }
.web-v2 .membership-full-film .membership-film-sequence { display:flex; flex:0 0 auto; gap:7px; padding-right:7px; }
.web-v2 .membership-full-film .billing-film-frame { position:relative; width:1639px; height:88px; flex:0 0 1639px; overflow:hidden; }
.web-v2 .membership-full-film .billing-film-base { position:absolute; inset:0; width:1639px; height:88px; opacity:.48; object-fit:fill; }
.web-v2 .membership-full-film .billing-film-photos { position:absolute; inset:8px auto auto 0; display:grid; grid-template-columns:repeat(9,175px); gap:7px; padding-left:8px; transform:scaleX(.995143); transform-origin:left top; }
.web-v2 .membership-full-film .billing-film-photo { position:relative; width:175px; height:72px; overflow:hidden; border-radius:5px; }
.web-v2 .membership-full-film .billing-film-photo-image,.web-v2 .membership-full-film .billing-film-photos > img { width:175px; height:72px; display:block; border-radius:5px; object-fit:cover; }
.web-v2 .membership-full-film .billing-film-like { position:absolute; right:6px; bottom:5px; display:inline-flex; align-items:center; gap:3px; padding:2px 5px; border-radius:999px; background:rgba(7,8,10,.64); color:#fff; font-size:9px; font-weight:700; }
.web-v2 .membership-full-film .billing-film-like img { width:9px; height:9px; }
@keyframes membership-film-scroll { from { transform:translateX(0); } to { transform:translateX(-50%); } }
.web-v2 .membership-full-main { min-height:510px; display:grid; grid-template-columns:minmax(300px,42%) minmax(0,1fr); gap:22px; padding:14px; }
.web-v2 .membership-full-benefits { padding:24px; border-radius:15px; background:rgba(255,255,255,.045); }
.web-v2 .membership-full-benefits h2,.web-v2 .membership-models h3 { margin:0; color:#f3f3f5; font-size:17px; }
.web-v2 .membership-benefit-list { margin:18px 0 20px; padding:0 0 20px; display:grid; gap:13px; border-bottom:1px solid rgba(255,255,255,.1); list-style:none; }
.web-v2 .membership-benefit-list li { position:relative; padding-left:19px; color:#c7c9cf; font-size:12px; line-height:1.35; }
.web-v2 .membership-benefit-list li::before { content:"✓"; position:absolute; left:0; color:#ffd56e; font-weight:900; }
.web-v2 .membership-benefit-list li.is-highlight { color:#f8e8b4; font-weight:750; }
.web-v2 .membership-models { padding:17px 15px; border:1px solid rgba(255,255,255,.13); border-radius:14px; background:rgba(255,255,255,.045); }
.web-v2 .membership-models h3 { margin-bottom:13px; font-size:13px; }
.web-v2 .membership-models ul { margin:0; padding:0; display:grid; gap:10px; list-style:none; }
.web-v2 .membership-models li { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#d7d9dd; font-size:11px; }
.web-v2 .membership-models li span::first-letter { color:#ffd56e; }
.web-v2 .membership-models em { flex:0 0 auto; padding:4px 8px; border-radius:999px; background:rgba(255,193,58,.18); color:#ffd35f; font-size:9px; font-style:normal; }
.web-v2 .membership-full-plans { min-width:0; padding:18px 16px 0 0; display:flex; flex-direction:column; }
.web-v2 .membership-full-plans > header { text-align:center; }
.web-v2 .membership-full-plans .membership-title { margin:0; color:#f7f7f8; font-size:25px; font-weight:800; }
.web-v2 .membership-full-plans .membership-desc { margin:7px 0 0; color:#8c9099; font-size:11px; }
.web-v2 .membership-period-switch { width:max-content; margin:17px auto 16px; padding:4px; display:flex; border-radius:999px; background:#28292e; }
.web-v2 .membership-period-switch button { min-width:76px; height:34px; padding:0 16px; border:0; border-radius:999px; background:transparent; color:#8f929a; font:700 12px/1 inherit; cursor:pointer; }
.web-v2 .membership-period-switch button.is-active { background:#3b3c42; color:#fff; box-shadow:0 2px 8px rgba(0,0,0,.24); }
.web-v2 .membership-plan-options { display:grid; gap:12px; }
.web-v2 .membership-plan-option { position:relative; min-height:108px; padding:22px 18px 14px 62px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:5px 14px; border:1px solid transparent; border-radius:14px; background:#202125; color:#fff; text-align:left; cursor:pointer; font:inherit; }
.web-v2 .membership-plan-option:hover { background:#25262b; }
.web-v2 .membership-plan-option.is-selected { border-color:#f0b324; background:linear-gradient(110deg,rgba(240,179,36,.13),rgba(240,179,36,.04)); box-shadow:0 12px 30px rgba(237,173,31,.08); }
.web-v2 .membership-radio { position:absolute; left:23px; top:50%; width:23px; height:23px; display:grid; place-items:center; border:2px solid #f2f2f3; border-radius:50%; transform:translateY(-50%); color:#332305; font-size:13px; }
.web-v2 .membership-plan-option.is-selected .membership-radio { border-color:#ffbd2d; background:#ffbd2d; }
.web-v2 .membership-plan-name { font-size:17px; font-weight:800; }
.web-v2 .membership-plan-option > strong { justify-self:end; font-size:21px; }
.web-v2 .membership-plan-option > strong small { margin-left:4px; color:#b5b7bd; font-size:10px; font-weight:500; }
.web-v2 .membership-plan-quota { color:#a9abb2; font-size:10px; }
.web-v2 .membership-plan-option > b { justify-self:end; color:#ffd462; font-size:10px; }
.web-v2 .membership-plan-option > em { grid-column:1/-1; justify-self:end; color:#92959d; font-size:10px; font-style:normal; }
.web-v2 .membership-popular { position:absolute; left:-1px; top:-1px; padding:5px 12px; border-radius:14px 0 10px 0; background:linear-gradient(105deg,#ffe478,#f6b52f); color:#392506; font-size:9px; font-weight:850; }
.web-v2 .membership-plan-loading { min-height:210px; display:grid; place-items:center; color:#8c9098; font-size:12px; }
.web-v2 .membership-full-subscribe { margin-top:auto; min-height:48px; border-radius:0; background:linear-gradient(100deg,#ffe78d,#ffb62f); box-shadow:0 8px 24px rgba(245,180,42,.15); color:#241705; font-size:14px; }
.web-v2 .membership-full-subscribe:disabled { opacity:.55; cursor:wait; transform:none; }

@media (max-width: 1280px) {
  .web-v2 .project-date-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .web-v2-resource-grid { grid-template-columns:1fr; }
}

@media (max-width: 920px) {
  .web-v2 .auth-modal { overflow-x:hidden; }
  .web-v2 .auth-dialog { grid-template-columns:minmax(0,1fr); max-height:calc(100vh - 36px); overflow-x:hidden; overflow-y:auto; }
  .web-v2 .auth-media { width:auto; min-width:0; min-height:220px; aspect-ratio:16/8; }
  .web-v2 .auth-panel { width:auto; min-width:0; padding:28px 22px 30px; }
  .web-v2 .workspace .chat-pane { width:100%; flex:1 1 auto; min-width:0; }
  .web-v2 .workspace.web-v2-resources-open .chat-pane { display:none; }
  .web-v2 .workspace .web-v2-resources-panel { position:relative; inset:auto; width:100%; min-width:0; flex:1 1 auto; }
  /* Resource details contain the full image list on mobile. The editor
     wrapper used to clip the panel body, leaving only the selected image
     visible and preventing the remaining images from being swiped into view. */
  .web-v2 .workspace .web-v2-resource-editors { overflow-x:hidden; overflow-y:auto; -webkit-overflow-scrolling:touch; }
  .web-v2-workspace-resizer { display:none; }
  .web-v2-resource-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .web-v2 .project-date-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .web-v2 #billing-view { padding:0 16px 100px; }
  .web-v2 #billing-view .billing-film-hero { margin-inline:-16px; border-width:0 0 1px; border-radius:0; }
  .web-v2 #billing-view .plan-grid { grid-template-columns:1fr; }
  .web-v2 #billing-view .plan-card { min-height:0; }
  .web-v2-mobile-plan-controls { margin:0 0 18px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .web-v2-mobile-tier,.web-v2-mobile-period { padding:4px; display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--v2-border); border-radius:999px; background:#17181e; }
  .web-v2-mobile-plan-controls button { min-height:38px; border:0; border-radius:999px; background:transparent; color:#8f949f; font:inherit; font-size:12px; font-weight:700; cursor:pointer; }
  .web-v2-mobile-plan-controls button.is-active { background:rgba(255,194,79,.14); color:#ffd56e; box-shadow:inset 0 0 0 1px rgba(255,194,79,.38); }
  .web-v2-mobile-all { grid-column:1/-1; justify-self:end; min-height:30px !important; color:#d7bd82 !important; }
  .web-v2 #billing-view .plan-card[hidden] { display:none !important; }
  .web-v2 .membership-modal { padding:12px; align-items:center; }
  .web-v2 .membership-full-dialog { width:100%; max-height:calc(100vh - 24px); margin:auto; border-radius:18px; }
  .web-v2 .membership-full-main { min-height:0; grid-template-columns:1fr; padding:12px; }
  .web-v2 .membership-full-plans { order:1; padding:14px 8px 0; }
  .web-v2 .membership-full-benefits { order:2; padding:20px; }
  .web-v2 .membership-full-subscribe { position:sticky; z-index:4; bottom:0; margin-top:20px; }
}

@media (max-width: 680px) {
  body.web-v2 { overflow-x:hidden; }
  /* Keep the login promo video inside the first mobile viewport. The
     aspect-ratio-only rule can become too tall on browsers with an expanded
     CSS viewport, pushing the sign-in controls below the screen. */
  .web-v2 .auth-media {
    height: min(220px, 34dvh);
    min-height: 160px;
    aspect-ratio: auto;
  }
  .web-v2 .auth-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .web-v2 .guest-view { padding:24px 16px 48px; }
  .web-v2 .guest-copy h1 { font-size:clamp(34px,11vw,48px); }
  .web-v2 .guest-video-frame { border-radius:16px; }
  .web-v2 .guest-start-button { width:100%; max-width:420px; }
  .web-v2 .track-view { padding:84px 14px 48px; }
  /* Mobile track catalog follows the compact two-column reference layout. */
  .web-v2 .track-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
  }
  .web-v2 .track-choice-btn { border-radius:18px; }
  .web-v2 .track-poster { aspect-ratio:1.42 / 1; }
  .web-v2 .track-caption {
    min-height:64px;
    padding:14px 18px;
  }
  .web-v2 .track-choice-name { font-size:16px; font-weight:700; }
  .web-v2 .track-go img { width:20px; height:14px; }
  .web-v2 .track-tags button.active,
  .web-v2 .track-tags button.active:hover {
    border-color:#fff;
    background:#fff;
    color:#0f0f13;
    box-shadow:none;
  }
  .web-v2 .workspace .messages { padding:18px 12px 118px; }
  /* Keep portrait video cards inside the message viewport. Mobile browsers
     may promote the native video surface above sibling layers, so the card
     must end before the composer area instead of relying on z-index alone. */
  .web-v2 .quality-generation-preview,
  .web-v2 .quality-generation-complete-player .quality-generation-preview {
    height: 250px;
  }
  .web-v2 .quality-final-video-player video,
  .web-v2 .storyboard-preview-video {
    max-height: 250px;
  }
  .web-v2 .quality-final-video-player.is-portrait,
  .web-v2 .quality-final-video-player.is-portrait video {
    max-height: 250px;
  }
  .web-v2 .quality-generation-complete-player {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
  }
  /* Use one portrait canvas for every inline chat video. Landscape and
     unusual source ratios stay inside it with black letterboxing. */
  .web-v2 .quality-final-video-player,
  .web-v2 .quality-generation-complete-player .quality-generation-preview,
  .web-v2 .quality-generation-preview {
    width: min(100%, 202px);
    height: auto;
    aspect-ratio: 9 / 16 !important;
    margin-inline: auto;
    background: #000;
  }
  .web-v2 .quality-final-video-player video,
  .web-v2 .quality-generation-preview > video,
  .web-v2 .quality-generation-preview > img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    background: #000;
  }
  .web-v2 .workspace .msg-ai:has(.options-group) { width:100%; min-width:0; }
  .web-v2 .workspace .msg-ai:has(.options-group) .bubble { width:100%; max-width:100%; box-sizing:border-box; }
  .web-v2 .workspace .options-group { width:100%; min-width:0; box-sizing:border-box; }
  .web-v2 .workspace .options-choices:not(.options-choice-list) { display:grid; grid-template-columns:minmax(0,1fr); }
  .web-v2 .workspace .options-choices .opt-btn { width:100%; max-width:100%; min-width:0; box-sizing:border-box; justify-content:flex-start; text-align:left; white-space:normal; }
  .web-v2 .workspace .opt-choice-copy strong { overflow:visible; line-height:1.55; text-align:left; text-overflow:clip; white-space:normal; overflow-wrap:anywhere; word-break:break-word; }
  .web-v2 .workspace .options-choices .opt-check { flex:0 0 14px; }
  .web-v2 .workspace .input-area { width:calc(100% - 20px); max-width:calc(100% - 20px); left:auto; right:auto; bottom:auto; margin:0 10px max(8px,env(safe-area-inset-bottom)); box-sizing:border-box; transform:none; }
  .web-v2-resource-toggle { top:72px; right:12px; min-width:42px; padding:0 12px; }
  .web-v2-resource-library { padding:14px 12px 24px; }
  .web-v2-resource-grid { grid-template-columns:1fr; }
  .web-v2-resource-card { min-height:118px; padding:0; display:grid; grid-template-columns:112px minmax(0,1fr); grid-template-rows:1fr auto; }
  .web-v2-resource-preview { width:112px; height:118px; min-height:118px; max-height:118px; grid-row:1/3; }
  .web-v2-resource-preview img { height:118px; min-height:118px; max-height:118px; }
  .web-v2-resource-card-copy { padding:12px 10px 2px; }
  .web-v2-resource-card > em { top:8px; right:8px; }
  .web-v2-resource-card > b { margin:5px 10px 12px; }
  .web-v2 .portal-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .web-v2 .project-date-grid { grid-template-columns:1fr; }
  .web-v2 .portal-project-card .project-cover { aspect-ratio:16/9; }
  .web-v2 .portal-page,
  .web-v2 .projects-view,
  .web-v2 #projects-view { min-width:0; max-width:100%; box-sizing:border-box; overflow-x:hidden; }
  .web-v2 .project-date-grid { grid-template-columns:minmax(0,1fr); gap:13px; }
  .web-v2 .portal-project-card { width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
  .web-v2 .portal-project-card .project-cover { width:100%; max-width:100%; }
  .web-v2 #billing-view .billing-film-hero { min-height:230px; height:auto; }
  .web-v2 #billing-view .billing-film-content { min-height:230px; padding:24px 18px; justify-content:flex-end; }
  .web-v2 #billing-view .billing-page-head h1 { font-size:28px; }
  .web-v2 #billing-view .billing-section { padding-inline:0; }
  .web-v2 #billing-view .plan-card { padding:22px 18px; border-radius:16px; }
  .web-v2 #billing-view .plan-purchase-actions { position:sticky; bottom:8px; z-index:2; }
  .web-v2-mobile-plan-controls { grid-template-columns:1fr; }
  .web-v2-mobile-all { grid-column:1; }
  .web-v2 .profile-tabs { overflow-x:auto; }
  /* Keep the artwork rail and dialog visible together at the top of a phone viewport. */
  .web-v2 .membership-modal { align-items:flex-start; overflow-y:auto; padding:20px 10px 18px; }
  .web-v2 .membership-full-dialog { max-height:none; width:min(420px,100%); border:0; border-radius:0; background:#0d0d0e; box-shadow:none; }
  .web-v2 .membership-full-close { position:absolute; z-index:12; top:86px; right:16px; float:none; margin:0; background:transparent; }
  .web-v2 .membership-full-film { height:68px; }
  .web-v2 .membership-full-film .billing-film-rail { top:6px; left:0; width:max-content; height:56px; transform:translateX(0); animation:membership-film-scroll 34s linear infinite; }
  .web-v2 .membership-full-film .membership-film-sequence { gap:5px; padding-right:5px; }
  .web-v2 .membership-full-film .billing-film-frame { width:100%; height:68px; flex:0 0 100%; }
  .web-v2 .membership-full-film .billing-film-frame:not(:first-child) { display:none; }
  .web-v2 .membership-full-film .billing-film-base { width:100%; height:68px; }
  .web-v2 .membership-full-film .billing-film-photos { top:6px; left:0; display:flex; justify-content:center; width:100%; grid-template-columns:none; gap:5px; padding-left:0; transform:none; animation:none; }
  .web-v2 .membership-full-film .billing-film-photo,.web-v2 .membership-full-film .billing-film-photo-image,.web-v2 .membership-full-film .billing-film-photos > img { width:136px; height:56px; }
  .web-v2 .membership-full-film::before,.web-v2 .membership-full-film::after { width:45px; }
  .web-v2 .membership-full-main { gap:12px; padding:12px 9px 16px; }
  .web-v2 .membership-full-plans { padding:27px 12px 0; overflow:hidden; border:1px solid rgba(255,255,255,.18); border-radius:20px; background:#151414; }
  .web-v2 .membership-full-plans .membership-title { padding-inline:30px; font-size:25px; line-height:1.25; }
  .web-v2 .membership-full-plans .membership-desc { display:none; }
  .web-v2 .membership-period-switch { margin:16px auto 18px; padding:4px; }
  .web-v2 .membership-period-switch button { min-width:76px; height:34px; }
  .web-v2 .membership-period-switch button[data-membership-period="year"] { color:#f5c65d; }
  .web-v2 .membership-plan-options { gap:16px; }
  .web-v2 .membership-plan-option { min-height:116px; padding:21px 13px 13px 63px; gap:5px 8px; border-radius:14px; }
  .web-v2 .membership-radio { left:18px; }
  .web-v2 .membership-plan-name { font-size:16px; }
  .web-v2 .membership-plan-option > strong { font-size:23px; }
  .web-v2 .membership-plan-option > strong small { font-size:10px; }
  .web-v2 .membership-plan-option > b { font-size:12px; }
  .web-v2 .membership-plan-option > em { font-size:11px; }
  .web-v2 .membership-full-subscribe { width:calc(100% + 24px); margin:0 0 0 -12px; min-height:47px; border-radius:0; position:relative; }
  .web-v2 .membership-full-benefits { border-radius:14px; padding:25px 24px; }
  .web-v2 .membership-full-benefits h2 { font-size:18px; }
  .web-v2 .membership-benefit-list { gap:14px; margin-top:19px; }
}

/* Mobile application chrome. Keep the same 60px title bar on the home,
   project, asset and conversation routes so the content columns share one
   left/right edge. The legacy guest shell hides the whole header; v2 keeps it
   visible because language selection is part of the mobile home design. */
@media (max-width: 620px) {
  body.web-v2.guest-mode .site-header { display:flex !important; }
  body.web-v2.guest-mode .site-actions { display:flex !important; }
  body.web-v2.guest-mode .sidebar-toggle { display:none !important; }

  .web-v2 .site-header {
    width:100%;
    min-width:0;
    height:60px;
    min-height:60px;
    padding:0 14px;
    gap:10px;
    box-sizing:border-box;
  }
  .web-v2 .sidebar-brand-card { min-width:0; flex:1 1 auto; gap:10px; }
  .web-v2 .sidebar-brand-card .site-brand { min-width:0; }
  .web-v2 .sidebar-brand-card .brand-logo { width:136px; max-width:100%; }
  .web-v2 .site-actions { min-width:0; flex:0 0 auto; gap:8px; }
  .web-v2 .hdr-lang {
    display:block !important;
    width:94px;
    min-width:94px;
    height:34px;
  }
  .web-v2 .site-actions .hdr-btn-primary {
    min-width:90px;
    padding-inline:14px;
    white-space:nowrap;
  }

  .web-v2 .track-view { padding:36px 20px 64px; }
  .web-v2 .track-hero { margin-bottom:30px; }
  .web-v2 .track-hero-title { font-size:20px; line-height:1.2; letter-spacing:.02em; }
  .web-v2 .track-hero-sub { max-width:none; margin-top:12px; font-size:16px; line-height:1.5; }

  .web-v2 .workspace .pane-cap {
    width:100%;
    height:58px;
    min-height:58px;
    margin:0;
    padding-inline:12px;
    box-sizing:border-box;
  }
  .web-v2 .workspace .workspace-back { left:12px; }
  .web-v2-resource-toggle { top:8px; right:12px; min-width:42px; height:42px; padding:0 12px; }
  .web-v2-resource-toggle b { display:inline !important; }
}

@media (max-width: 390px) {
  .web-v2 .site-header { padding-inline:12px; gap:8px; }
  .web-v2 .sidebar-brand-card { gap:8px; }
  .web-v2 .sidebar-brand-card .brand-logo { width:116px; }
  .web-v2 .hdr-lang { width:76px; min-width:76px; padding-left:9px; padding-right:27px; background-position:right 10px center; }
  .web-v2 .site-actions .hdr-btn-primary { min-width:82px; padding-inline:10px; }
  .web-v2-resource-toggle b { display:none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .web-v2 *, .web-v2 *::before, .web-v2 *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .web-v2 #billing-view .billing-film-rail { animation:none !important; }
  .web-v2 .membership-full-film .billing-film-rail { animation:none !important; }
  .web-v2 .membership-full-film .billing-film-photos { animation:none !important; }
}

/* Direct mobile purchase page: keep this separate from the full-screen prompt. */
@media (max-width:620px) {
  .web-v2.on-portal:has(#billing-view:not(.hidden)) .site-header,
  .web-v2.on-portal:has(#billing-view:not(.hidden)) .app-sidebar,
  .web-v2.on-portal:has(#billing-view:not(.hidden)) .web-v2-promo { display:none !important; }
  .web-v2.on-portal:has(#billing-view:not(.hidden)) { padding-top:0 !important; }
  .web-v2.on-portal:has(#billing-view:not(.hidden)) #billing-view { margin-top:0 !important; }
  .web-v2 #billing-view { position:relative; width:100%; max-width:none; min-height:100vh; margin:0; padding:0 0 94px; background:#0d0e12; }
  .web-v2 #billing-view,
  .web-v2 #billing-view .billing-film-hero { box-shadow:none !important; filter:none !important; }
  .web-v2 #billing-view .billing-film-hero { height:302px; margin:0; border:0; border-radius:0; background:#0b0c10 url('../webimg/billing.webp') center/cover no-repeat; }
  .web-v2 #billing-view .billing-mobile-bg-video { position:absolute; inset:0; z-index:0; display:block; width:100%; height:302px; object-fit:cover; background:#0b0c10 url('../webimg/billing.webp') center/cover no-repeat; opacity:0; pointer-events:none; transition:opacity .24s ease; }
  .web-v2 #billing-view .billing-mobile-bg-video.is-ready { opacity:1; }
  .web-v2 #billing-view .billing-film-content { background:linear-gradient(180deg,rgba(10,11,14,.1),rgba(10,11,14,.34) 58%,#0d0e12 100%); }
  .web-v2 #billing-view .billing-film-rail { display:none; }
  .web-v2 #billing-view .billing-film-frame { width:100%; height:302px; }
  .web-v2 #billing-view .billing-film-frame:not(:first-child) { display:none; }
  .web-v2 #billing-view .billing-film-base { position:absolute; inset:0; z-index:0; display:block; width:100%; height:302px; object-fit:cover; }
  .web-v2 #billing-view .billing-film-photos { position:absolute; z-index:1; inset:0; display:block; width:100%; height:302px; padding:0; transform:none; }
  .web-v2 #billing-view .billing-film-photo:not(:first-child) { display:none; }
  .web-v2 #billing-view .billing-film-photo,.web-v2 #billing-view .billing-film-photo img { width:100%; height:302px; border-radius:0; object-fit:cover; }
  .web-v2 #billing-view .billing-film-hero::after { background:linear-gradient(180deg,rgba(5,8,12,.08),rgba(8,9,12,.35) 45%,#0d0e12 100%); }
  .web-v2 #billing-view .billing-film-content { height:100%; padding:78px 20px 16px; justify-content:flex-start; }
  .web-v2 #billing-view .billing-mobile-back { position:absolute; top:10px; left:14px; z-index:12; width:40px; height:40px; padding:0; display:grid; place-items:center; border:1px solid rgba(255,255,255,.12); border-radius:50%; background:rgba(16,29,40,.86); color:#fff; cursor:pointer; box-shadow:none; }
  .web-v2 #billing-view .billing-mobile-back svg { width:22px; height:22px; display:block; overflow:visible; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
  .web-v2 #billing-view .billing-page-head { order:2; width:100%; display:block; text-align:center; }
  .web-v2 #billing-view .billing-page-head > div { width:100%; display:block; }
  .web-v2 #billing-view .billing-page-head h1 { display:block; width:100%; margin:28px 0 0; font-size:30px; line-height:1.18; letter-spacing:-.04em; white-space:nowrap; }
  .web-v2 #billing-view .billing-page-head p { position:absolute; z-index:3; top:136px; left:20px; display:block; width:calc(100% - 40px); margin:0; font-size:13px; line-height:1.45; white-space:nowrap; }
  .web-v2 #billing-view .billing-page-head .portal-eyebrow,.web-v2 #billing-view .billing-page-head .local-prototype-badge { display:none; }
  .web-v2 #billing-view .billing-switch { order:1; width:190px; min-height:39px; margin:0 auto; padding:3px; background:rgba(22,22,27,.9); border-color:rgba(255,255,255,.2); }
  .web-v2 #billing-view .billing-switch button { min-height:33px; padding:0 15px; font-size:12px; }
  .web-v2 #billing-view .billing-switch button.active { background:linear-gradient(110deg,#ffe58b,#ffb12e); color:#21170a; }
  .web-v2 #billing-view .billing-panel { width:100%; padding:0 22px; box-sizing:border-box; }
  .web-v2 #billing-view .billing-section-head { display:none; }
  .web-v2 #billing-view .web-v2-mobile-plan-controls .sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
  .web-v2 #billing-view .web-v2-mobile-plan-controls { position:absolute; z-index:4; top:202px; left:20px; display:block; width:calc(100% - 40px); margin:0; }
  .web-v2 #billing-view .web-v2-mobile-tier { width:148px; margin:0 auto; display:grid; grid-template-columns:53px 1fr; padding:3px; border:1px solid rgba(255,255,255,.18); border-radius:99px; background:rgba(22,22,27,.8); }
  .web-v2 #billing-view .web-v2-mobile-tier button { min-height:30px; border:0; border-radius:99px; background:transparent; color:#b7b4b1; font-size:11px; }
  .web-v2 #billing-view .web-v2-mobile-tier button.is-active { background:rgba(255,179,56,.16); color:#ffd36c; box-shadow:inset 0 0 0 1px rgba(255,179,56,.62); }
  .web-v2 #billing-view .web-v2-mobile-period { display:none; }
  .web-v2 #billing-view .web-v2-mobile-all { display:block; width:max-content; min-height:0 !important; margin:15px 0 0 auto; padding:6px 0; border:0; background:transparent; color:#e9e4dc !important; font:inherit; font-size:12px; line-height:normal; text-decoration:underline; text-underline-offset:2px; white-space:nowrap; cursor:pointer; }
  .web-v2 #billing-view .billing-mobile-benefits { display:grid; gap:11px; margin:0 0 20px; padding:0; list-style:none; }
  .web-v2 #billing-view .billing-mobile-benefits li { position:relative; padding-left:28px; color:#dedee1; font-size:13px; line-height:1.45; }
  .web-v2 #billing-view .billing-mobile-benefits li::before { content:''; position:absolute; left:0; top:1px; width:17px; height:17px; border-radius:5px; background:linear-gradient(145deg,#ffe079,#f2a920); }
  .web-v2 #billing-view .plan-grid { display:grid; grid-template-columns:1fr; gap:12px; }
  .web-v2 #billing-view .plan-card { min-height:76px; padding:14px 15px 11px 47px; border-radius:15px; background:linear-gradient(110deg,rgba(255,255,255,.067),rgba(255,255,255,.024)); }
  .web-v2 #billing-view .plan-card:hover,.web-v2 #billing-view .plan-card:active { transform:none; }
  .web-v2 #billing-view .plan-card.plan-card-annual { min-height:76px; padding:14px 15px 11px 47px; border-color:rgba(255,255,255,.16); background:linear-gradient(110deg,rgba(255,255,255,.067),rgba(255,255,255,.024)); box-shadow:none; }
  .web-v2 #billing-view .plan-card.is-selected { border-color:#f9ca51; background:linear-gradient(110deg,rgba(255,206,82,.15),rgba(157,84,22,.24)); box-shadow:inset 0 0 0 1px rgba(255,226,127,.15); }
  .web-v2 #billing-view .plan-card-head { display:block; min-height:22px; }
  .web-v2 #billing-view .plan-name { display:block; font-size:17px; line-height:1.2; }
  .web-v2 #billing-view .plan-name img { display:none; }
  .web-v2 #billing-view .plan-card .plan-name span { display:block; overflow:visible; font-size:17px; }
  .web-v2 #billing-view .plan-name::before { content:''; position:absolute; left:-32px; top:50%; width:19px; height:19px; border:1px solid #9a9ba0; border-radius:50%; transform:translateY(-50%); }
  .web-v2 #billing-view .plan-card.is-selected .plan-name::before { border:6px solid #ffc13f; box-sizing:border-box; }
  .web-v2 #billing-view .plan-price-row { position:absolute; top:14px; right:15px; margin:0; }
  .web-v2 #billing-view .plan-price { font-size:21px; font-weight:800; }
  .web-v2 #billing-view .plan-price small { margin-left:4px; font-size:10px; }
  .web-v2 #billing-view .plan-discount-badge { position:absolute; right:0; top:-16px; padding:3px 8px; font-size:9px; background:#ff981a; }
  .web-v2 #billing-view .plan-purchase-actions { display:block !important; margin:0; }
  .web-v2 #billing-view .plan-purchase-actions .plan-paypal-button { display:none !important; }
  .web-v2 #billing-view .plan-card .plan-button { display:none !important; }
  .web-v2 #billing-view .plan-price-note { display:block; min-height:0; margin:3px 0 0; font-size:10px; line-height:1.25; }
  .web-v2 #billing-view .plan-feature-group,.web-v2 #billing-view .plan-promotion-badge { display:none !important; }
  .web-v2 #billing-view::after { content:none !important; }
  .web-v2 #billing-view .billing-mobile-note { display:block; position:fixed; z-index:21; left:0; right:0; bottom:8px; margin:0; color:rgba(255,255,255,.42); font-size:10px; line-height:14px; text-align:center; pointer-events:none; }
  .web-v2 #billing-view .web-v2-faq { display:none !important; }
  .web-v2 #billing-view.is-coins .billing-page-head .portal-eyebrow { position:absolute; top:35px; left:20px; display:block; width:calc(100% - 40px); color:#ffc33f; font-size:12px; font-weight:700; line-height:1.4; text-align:center; }
  .web-v2 #billing-view.is-coins .billing-page-head h1 { margin-top:61px; }
  .web-v2 #billing-view.is-coins .billing-page-head p { top:113px; width:calc(100% - 40px); white-space:normal; }
  .web-v2 #billing-view.is-coins .web-v2-mobile-plan-controls { display:none; }
  .web-v2 #billing-view.is-coins .billing-panel[data-billing-panel="coins"] { display:block; width:100%; padding:0 20px; box-sizing:border-box; }
  .web-v2 #billing-view.is-coins .coin-store-section { width:100%; margin:0; padding:0; }
  .web-v2 #billing-view.is-coins .coin-store-head { display:none; }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance { position:relative; width:100%; height:116px; margin:-8px 0 0; padding:18px 20px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; border:1px solid rgba(255,255,255,.18); border-radius:15px; background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025)); color:#fff; text-align:left; }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance > span { color:#aaa; font-size:13px; }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance > strong { margin-top:8px; color:#fff; font-size:36px; line-height:1; }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance > strong i { color:#ffc13e; font-size:23px; font-style:normal; vertical-align:5px; }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance > b { position:absolute; right:20px; color:#ddd; font-size:24px; font-weight:400; }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance::after { content:''; position:absolute; right:18px; bottom:-16px; width:46px; height:46px; border:1px solid rgba(255,194,79,.18); border-radius:50%; box-shadow:28px 10px 0 -1px rgba(0,0,0,0),28px 10px 0 0 rgba(255,194,79,.15); pointer-events:none; }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-title { margin:22px 0 14px; color:#f8f8f5; font-size:20px; line-height:1.3; }
  .web-v2 #billing-view.is-coins .coin-package-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; width:100%; margin:0; }
  .web-v2 #billing-view.is-coins .coin-package:nth-child(n+4) { display:none; }
  .web-v2 #billing-view.is-coins .coin-package { position:relative; min-width:0; height:126px; padding:27px 6px 8px; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; overflow:visible; border:1px solid rgba(255,255,255,.04); border-radius:16px; background:#2a2a2d; box-shadow:none; text-align:center; }
  .web-v2 #billing-view.is-coins .coin-package.is-selected { border-color:#ffc33f; background:linear-gradient(145deg,rgba(255,194,79,.18),rgba(35,30,24,.96)); box-shadow:inset 0 0 0 1px rgba(255,220,126,.14); }
  .web-v2 #billing-view.is-coins .coin-package-head { position:absolute; inset:auto 0 auto; top:-12px; height:24px; display:flex; justify-content:center; }
  .web-v2 #billing-view.is-coins .coin-package-head > span { display:none; }
  .web-v2 #billing-view.is-coins .coin-package-head > em { padding:5px 10px; border-radius:999px; background:#ff8c18; color:#fff; font-size:10px; font-style:normal; line-height:14px; white-space:nowrap; }
  .web-v2 #billing-view.is-coins .coin-package:not(:first-child) .coin-package-head > em:empty { display:none; }
  .web-v2 #billing-view.is-coins .coin-package-balance { display:flex; flex-direction:row; align-items:center; justify-content:center; gap:4px; margin:0; }
  .web-v2 #billing-view.is-coins .coin-package-mark { width:19px; height:19px; margin:0; }
  .web-v2 #billing-view.is-coins .coin-package-copy { display:block; }
  .web-v2 #billing-view.is-coins .coin-package-copy strong { color:#f8f8f5; font-size:23px; line-height:1.1; }
  .web-v2 #billing-view.is-coins .coin-package-copy span { display:none; }
  .web-v2 #billing-view.is-coins .coin-package-description { display:none; }
  .web-v2 #billing-view.is-coins .coin-package-head > span { position:absolute; top:88px; left:0; display:block; width:100%; overflow:hidden; color:#ffc83f; font-size:11px; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
  .web-v2 #billing-view.is-coins .coin-package:nth-child(-n+2)::before { content:'热门推荐'; position:absolute; top:-12px; z-index:2; padding:5px 10px; border-radius:999px; background:#ff8c18; color:#fff; font-size:10px; line-height:14px; white-space:nowrap; }
  .web-v2 #billing-view.is-coins .coin-package-reward { display:none; }
  .web-v2 #billing-view.is-coins .coin-package-footer { position:relative; top:19px; margin:2px 0 0; display:block; }
  .web-v2 #billing-view.is-coins .coin-package-price-line { display:block; }
  .web-v2 #billing-view.is-coins .coin-package-price { display:block; text-align:center; }
  .web-v2 #billing-view.is-coins .coin-package-price strong { color:#fff; font-size:14px; }
  .web-v2 #billing-view.is-coins .coin-package-price span,.web-v2 #billing-view.is-coins .coin-package-member-prices,.web-v2 #billing-view.is-coins .coin-buy { display:none; }
  .web-v2 #billing-view.is-coins .coin-vip-cta { margin:24px 0 0; padding:0; border:0; background:transparent; }
  .web-v2 #billing-view.is-coins .coin-vip-cta-copy { display:none; }
  .web-v2 #billing-view.is-coins .coin-vip-cta-actions { display:block; }
  .web-v2 #billing-view.is-coins .coin-vip-cta-primary { width:100%; min-height:54px; border:1px solid rgba(255,255,255,.55); border-radius:15px; background:linear-gradient(110deg,#7347ff,#9b5cff); color:#fff; font-size:13px; font-weight:750; }
  .web-v2 #billing-view.is-coins .coin-vip-cta-primary-label { color:#fff; }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-continue { position:fixed; z-index:20; left:5%; bottom:38px; width:90%; min-height:56px; border:0; border-radius:17px; background:linear-gradient(105deg,#ffe58b,#ffad2d); color:#201708; font:inherit; font-size:16px; font-weight:800; box-shadow:0 12px 32px rgba(255,174,43,.24); }
}

/* Final storyboard preview geometry. Keep the shot rail and actions in separate rows. */
.web-v2 .storyboard-preview-dialog { grid-template-rows:auto minmax(0,1fr) !important; }
.web-v2 .storyboard-preview-stage { grid-column:1 !important; grid-row:2 !important; }
.web-v2 .storyboard-preview-sidebar {
  grid-column:2 !important;
  grid-row:2 !important;
  display:grid !important;
  grid-template-rows:minmax(0,1fr) auto !important;
  height:100% !important;
  min-height:0 !important;
  overflow:hidden !important;
}
.web-v2 .storyboard-preview-list {
  grid-column:auto !important;
  grid-row:1 !important;
  display:block !important;
  height:auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  box-sizing:border-box !important;
}
.web-v2 .storyboard-preview-actions {
  grid-column:auto !important;
  grid-row:2 !important;
  display:grid !important;
  flex:none !important;
  width:100% !important;
  box-sizing:border-box !important;
}
@media (max-width:980px) {
  .web-v2 .storyboard-preview-dialog { grid-template-rows:auto auto auto !important; overflow:auto !important; }
  .web-v2 .storyboard-preview-stage { grid-column:1 !important; grid-row:2 !important; }
  .web-v2 .storyboard-preview-sidebar { grid-column:1 !important; grid-row:3 !important; height:auto !important; display:block !important; }
  .web-v2 .storyboard-preview-list { grid-row:auto !important; height:auto !important; overflow:visible !important; }
  .web-v2 .storyboard-preview-actions { grid-row:auto !important; }
}

/* Align download controls with the storyboard timeline content width. */
.web-v2 .storyboard-preview-sidebar .storyboard-preview-actions {
  width:auto !important;
  margin-left:28px !important;
  margin-right:28px !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
.web-v2 .storyboard-preview-sidebar .storyboard-preview-actions > button { width:100% !important; }
@media (max-width:980px) {
  .web-v2 .storyboard-preview-sidebar .storyboard-preview-actions {
    margin-left:34px !important;
    margin-right:34px !important;
  }
}

@media (max-width:980px) {
  .web-v2 .storyboard-preview-sidebar {
    display:flex !important;
    flex-direction:column !important;
    height:auto !important;
    overflow:visible !important;
  }
  .web-v2 .storyboard-preview-sidebar .storyboard-preview-list {
    flex:0 1 auto !important;
    height:auto !important;
    max-height:48vh !important;
    overflow-y:auto !important;
  }
  .web-v2 .storyboard-preview-sidebar .storyboard-preview-actions {
    position:static !important;
    flex:0 0 auto !important;
    width:auto !important;
    margin:16px 34px 34px !important;
    padding:0 !important;
  }
}

/* Keep the action buttons aligned with the timeline content on every viewport. */
.web-v2 .storyboard-preview-sidebar .storyboard-preview-actions {
  width:auto !important;
  margin:0 28px 28px !important;
  padding:0 !important;
}
@media (max-width:980px) {
  .web-v2 .storyboard-preview-sidebar .storyboard-preview-actions {
    margin:0 34px 40px !important;
  }
  .web-v2 .storyboard-preview-sidebar .storyboard-preview-list {
    max-height:min(48vh,420px) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
  }
}

/* V2 storyboard preview: responsive desktop / tablet / phone composition. */
.web-v2 .storyboard-preview-modal {
  padding:clamp(14px,3vw,48px);
}
.web-v2 .storyboard-preview-modal .storyboard-modal-backdrop {
  background:rgba(3,4,7,.82);
  backdrop-filter:blur(10px);
}
.web-v2 .storyboard-preview-dialog {
  width:min(1248px,calc(100vw - clamp(28px,6vw,96px)));
  max-height:calc(100dvh - clamp(28px,6vw,96px));
  display:grid;
  grid-template-columns:minmax(0,1fr) 254px;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
  border:1px solid #3b3d43;
  border-radius:20px;
  background:#202125;
  box-shadow:0 28px 90px rgba(0,0,0,.58);
}
.web-v2 .storyboard-preview-dialog > header {
  grid-column:1 / -1;
  min-height:112px;
  padding:28px 28px 24px;
  align-items:center;
  border-bottom:1px solid #393a3f;
  box-sizing:border-box;
}
.web-v2 .storyboard-preview-dialog header span {
  color:#ffb22c;
  font-size:13px;
  font-weight:700;
  letter-spacing:0;
}
.web-v2 .storyboard-preview-dialog h3 {
  margin:8px 0 0;
  color:#f6f6f7;
  font-size:20px;
  font-weight:750;
  line-height:1.25;
}
.web-v2 .storyboard-preview-dialog .storyboard-modal-close {
  width:44px;
  height:44px;
  flex:0 0 44px;
  display:grid;
  place-items:center;
  padding:0 0 3px;
  border:0;
  border-radius:50%;
  background:#303136;
  color:#f7f7f8;
  font-size:32px;
  font-weight:300;
  line-height:1;
}
.web-v2 .storyboard-preview-dialog .storyboard-modal-close:hover {
  background:#3a3b41;
}
.web-v2 .storyboard-preview-stage {
  grid-column:1;
  grid-row:2 / 4;
  align-self:start;
  width:100%;
  height:auto;
  aspect-ratio:16 / 9;
  background:#06070a;
}
.web-v2 .storyboard-preview-video {
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
}
.web-v2 .storyboard-preview-now,
.web-v2 .storyboard-preview-stage .storyboard-preview-download {
  display:none;
}
.web-v2 .storyboard-preview-download-all,
.web-v2 .quality-generation-download-all { padding:7px 12px; border:1px solid rgba(255,194,79,.42); border-radius:8px; background:linear-gradient(135deg,#ffe58a,#ffb52e); color:#211706; font:inherit; font-weight:700; cursor:pointer; }
.web-v2 .storyboard-preview-actions { grid-column:2; grid-row:2; display:flex; justify-content:flex-end; align-items:flex-start; min-width:0; padding:12px 24px 0; background:#202125; box-sizing:border-box; }
.web-v2 .storyboard-preview-download-all { position:static; }
.web-v2 .storyboard-preview-download-all:disabled,
.web-v2 .quality-generation-download-all:disabled { opacity:.45; cursor:not-allowed; }
.web-v2 .quality-generation-result-foot { flex-wrap:wrap; }
.web-v2 .storyboard-preview-list {
  grid-column:2;
  grid-row:2;
  min-width:0;
  min-width:0;
  padding:24px 24px 28px;
  overflow:auto;
  background:#202125;
  box-sizing:border-box;
}
.web-v2 .storyboard-preview-actions { grid-row:3; }
.web-v2 .storyboard-preview-list.hidden { display:none; }
.web-v2 .storyboard-preview-list-head {
  margin:0 0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.web-v2 .storyboard-preview-list-head strong {
  color:#f4f4f5;
  font-size:15px;
  font-weight:750;
}
.web-v2 .storyboard-preview-list-head span {
  color:#93949b;
  font-size:14px;
}
.web-v2 .storyboard-preview-timeline {
  padding:0;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:8px;
  background:transparent;
}
.web-v2 .storyboard-preview-timeline button {
  min-width:0;
  min-height:44px;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid transparent;
  border-radius:10px;
  background:#2d2e33;
  color:#e4e4e7;
  font-family:inherit;
  font-size:14px;
  cursor:pointer;
}
.web-v2 .storyboard-preview-timeline button.is-active {
  border-color:#f0a836;
  background:#3a3024;
  color:#fff;
  box-shadow:none;
}
.web-v2 .storyboard-preview-timeline button em {
  color:#999aa1;
  font-style:normal;
  opacity:1;
}

@media (max-width:980px) {
  .web-v2 .storyboard-preview-dialog {
    width:min(832px,calc(100vw - 28px));
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto;
    overflow:auto;
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  .web-v2 .storyboard-preview-dialog::-webkit-scrollbar { display:none; width:0; height:0; }
  .web-v2 .storyboard-preview-dialog > header {
    min-height:178px;
    padding:46px 34px 34px;
  }
  .web-v2 .storyboard-preview-dialog header span { font-size:18px; }
  .web-v2 .storyboard-preview-dialog h3 { margin-top:16px; font-size:29px; }
  .web-v2 .storyboard-preview-dialog .storyboard-modal-close {
    width:72px;
    height:72px;
    flex-basis:72px;
    font-size:48px;
  }
  .web-v2 .storyboard-preview-stage {
    grid-column:auto;
    grid-row:auto;
    width:auto;
    margin:34px 34px 0;
  }
  .web-v2 .storyboard-preview-list { padding:44px 34px 40px; overflow:visible; }
  .web-v2 .storyboard-preview-list-head { margin-bottom:26px; }
  .web-v2 .storyboard-preview-list-head strong { font-size:24px; }
  .web-v2 .storyboard-preview-list-head span { font-size:23px; }
  .web-v2 .storyboard-preview-timeline {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
  }
  .web-v2 .storyboard-preview-timeline button {
    min-height:84px;
    padding:0 20px;
    border-radius:14px;
    font-size:23px;
  }
  .web-v2 .storyboard-preview-timeline button em { font-size:19px; }
}

@media (max-width:620px) {
  .web-v2 .storyboard-preview-modal {
    padding:14px;
    place-items:center;
  }
  .web-v2 .storyboard-preview-dialog {
    width:100%;
    max-height:calc(100dvh - 28px);
    border-radius:24px;
  }
  .web-v2 .storyboard-preview-dialog > header {
    min-height:178px;
    padding:42px 32px 34px;
  }
  .web-v2 .storyboard-preview-dialog header span { font-size:18px; }
  .web-v2 .storyboard-preview-dialog h3 { font-size:28px; }
  .web-v2 .storyboard-preview-dialog .storyboard-modal-close {
    width:72px;
    height:72px;
    flex-basis:72px;
  }
  .web-v2 .storyboard-preview-stage { margin:34px 34px 0; }
  .web-v2 .storyboard-preview-list { padding:44px 34px 40px; }
  .web-v2 .storyboard-preview-timeline { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width:420px) {
  .web-v2 .storyboard-preview-dialog > header {
    min-height:120px;
    padding:25px 22px 22px;
  }
  .web-v2 .storyboard-preview-dialog header span { font-size:14px; }
  .web-v2 .storyboard-preview-dialog h3 { margin-top:9px; font-size:21px; }
  .web-v2 .storyboard-preview-dialog .storyboard-modal-close {
    width:48px;
    height:48px;
    flex-basis:48px;
    font-size:34px;
  }
  .web-v2 .storyboard-preview-stage { margin:24px 22px 0; }
  .web-v2 .storyboard-preview-list { padding:30px 22px 28px; }
  .web-v2 .storyboard-preview-list-head { margin-bottom:18px; }
  .web-v2 .storyboard-preview-list-head strong,
  .web-v2 .storyboard-preview-list-head span { font-size:17px; }
  .web-v2 .storyboard-preview-timeline { gap:10px; }
  .web-v2 .storyboard-preview-timeline button {
    min-height:58px;
    padding:0 14px;
    border-radius:11px;
    font-size:17px;
  }
  .web-v2 .storyboard-preview-timeline button em { font-size:15px; }
}

/* Mobile membership page: align the compact purchase flow with the approved design. */
@media (max-width:620px) {
  .web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-film-hero { height:344px; min-height:344px; }
  .web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-film-content {
    min-height:344px;
    padding:66px 20px 16px;
  }
  .web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-switch {
    width:min(300px,calc(100% - 40px));
    min-height:52px;
    margin:0 auto;
    padding:5px;
    gap:5px;
  }
  .web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-switch button {
    min-height:40px;
    padding:0 19px;
    font-size:12px;
    font-weight:700;
  }
  .web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-page-head h1 {
    margin:34px 0 0;
    font-size:clamp(26px,7vw,32px);
    font-weight:500;
    line-height:1.3;
    letter-spacing:-.025em;
    white-space:normal;
  }
  .web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-page-head p {
    position:static;
    width:min(335px,100%);
    margin:10px auto 0;
    font-size:14px;
    line-height:1.6;
    white-space:normal;
  }
  .web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-mobile-plan-controls {
    top:300px;
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .billing-section-head { display:none !important; }
  .web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-mobile-tier {
    width:max-content;
    grid-template-columns:repeat(2,auto);
    gap:2px;
    padding:3px;
    background:rgba(255,255,255,.055);
  }
  .web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-mobile-tier button {
    min-width:0;
    min-height:30px;
    padding:0 17px;
    font-size:12px;
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .billing-mobile-benefits {
    gap:10px;
    margin:16px 0 22px;
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .billing-mobile-benefits li {
    min-height:26px;
    padding-left:0;
    display:flex;
    align-items:center;
    gap:10px;
    color:#d4d1cc;
    font-size:13px;
    line-height:1.5;
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .billing-mobile-benefits li::before { display:none; }
  .web-v2 #billing-view [data-billing-panel="membership"] .billing-mobile-benefit-icon {
    width:26px;
    height:26px;
    flex:0 0 26px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,154,42,.75);
    border-radius:9px;
    background:rgba(255,154,42,.06);
    color:#ff9a2a;
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .billing-mobile-benefit-icon svg {
    width:14px;
    height:14px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-grid { gap:21px; }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card,
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card.plan-card-annual {
    min-height:76px;
    padding:14px 15px 11px 47px;
    border-radius:14px;
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card-head { min-height:22px; margin:0; }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-name,
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card .plan-name span {
    font-size:16px;
    font-weight:700;
    line-height:1.25;
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card.is-selected .plan-name::before {
    border:0;
    background:linear-gradient(135deg,#ffcf4d,#ff9d0a);
    box-shadow:0 2px 8px rgba(255,157,10,.45);
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-card.is-selected .plan-name::after {
    content:'✓';
    position:absolute;
    left:-28px;
    top:50%;
    color:#251605;
    font-size:13px;
    font-weight:900;
    line-height:1;
    transform:translateY(-50%);
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-price-row { top:14px; right:15px; }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-price {
    flex-direction:column;
    align-items:flex-end;
    font-size:18px;
    font-weight:700;
    line-height:1.25;
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-price small {
    margin:3px 0 0;
    font-size:11px;
    font-weight:400;
    line-height:1.4;
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-price-note {
    max-width:calc(100% - 92px);
    overflow:hidden;
    margin:3px 0 0;
    font-size:11px;
    line-height:1.4;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .web-v2 #billing-view [data-billing-panel="membership"] .plan-discount-badge {
    top:-11px;
    right:12px;
    padding:5px 12px;
    border-radius:999px;
    background:linear-gradient(100deg,#ff9d2e,#ff6a00);
    font-size:11px;
    font-style:italic;
    font-weight:800;
  }
  .web-v2 .billing-mobile-membership-continue {
    position:sticky;
    z-index:4;
    left:auto;
    bottom:max(7px,env(safe-area-inset-bottom));
    display:block;
    width:calc(100% - 44px);
    margin:24px auto max(8px,env(safe-area-inset-bottom));
    min-height:60px;
    border:0;
    border-radius:999px;
    background:linear-gradient(100deg,#ffeb88,#ffad31);
    color:#251605;
    font:inherit;
    font-size:17px;
    font-weight:900;
    box-shadow:none;
    cursor:pointer;
  }
  .web-v2 .billing-mobile-membership-continue[hidden],
  .web-v2:has(#billing-view.is-coins) .billing-mobile-membership-continue { display:none !important; }
  .web-v2 .billing-mobile-membership-continue:disabled { opacity:.55; cursor:default; }
  .web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-mobile-note { display:none; }

  html[lang^="zh"] .web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-film-hero {
    height:302px;
    min-height:302px;
  }
  html[lang^="zh"] .web-v2 #billing-view:has([data-billing-panel="membership"].active) .billing-film-content { min-height:302px; }
  html[lang^="zh"] .web-v2 #billing-view:has([data-billing-panel="membership"].active) .web-v2-mobile-plan-controls { top:258px; }
}

/* Mobile coin store: match the approved balance, package and upgrade-card layout. */
@media (max-width:620px) {
  .web-v2 #billing-view.is-coins .billing-film-hero {
    height:328px;
    min-height:328px;
  }
  .web-v2 #billing-view.is-coins .billing-film-content {
    min-height:328px;
    padding:66px 20px 16px;
    justify-content:flex-start;
  }
  .web-v2 #billing-view.is-coins .billing-switch {
    order:1;
    width:min(300px,calc(100% - 40px));
    min-height:52px;
    margin:0 auto;
    padding:5px;
    gap:5px;
    border-color:rgba(255,255,255,.18);
    background:linear-gradient(180deg,#242425,#151516);
  }
  .web-v2 #billing-view.is-coins .billing-switch button {
    min-height:40px;
    padding:0 19px;
    font-size:12px;
    font-weight:700;
  }
  .web-v2 #billing-view.is-coins .billing-switch button.active {
    background:linear-gradient(110deg,#ffe58b,#ffb12e);
    color:#21170a;
    box-shadow:inset 0 1px 2px rgba(255,245,190,.72);
  }
  .web-v2 #billing-view.is-coins .billing-page-head {
    order:2;
    width:100%;
    text-align:center;
  }
  .web-v2 #billing-view.is-coins .billing-page-head .portal-eyebrow,
  .web-v2 #billing-view.is-coins .billing-page-head .local-prototype-badge { display:none !important; }
  .web-v2 #billing-view.is-coins .billing-page-head h1 {
    margin:34px 0 0;
    font-size:clamp(26px,7vw,32px);
    font-weight:500;
    line-height:1.3;
    letter-spacing:-.025em;
    white-space:normal;
  }
  .web-v2 #billing-view.is-coins .billing-page-head p {
    position:static;
    width:min(335px,100%);
    margin:10px auto 0;
    color:#b8b8ba;
    font-size:14px;
    line-height:1.6;
    white-space:normal;
  }
  .web-v2 #billing-view.is-coins .billing-panel[data-billing-panel="coins"] {
    width:100%;
    padding:0 22px 190px;
    box-sizing:border-box;
  }
  .web-v2 #billing-view.is-coins .coin-store-section { width:100%; margin:0; padding:0; }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance {
    width:100%;
    height:116px;
    margin:12px 0 26px;
    padding:18px 116px 18px 20px;
    box-sizing:border-box;
    border:1px solid rgba(255,255,255,.12);
    border-radius:16px;
    background:linear-gradient(108deg,rgba(255,255,255,.11),rgba(255,255,255,.045));
    color:#aeadad;
  }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance > span {
    color:#aeadad;
    font-size:13px;
  }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance > strong {
    margin-top:12px;
    color:#fff;
    font-size:34px;
    line-height:1;
  }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance > strong i {
    width:30px;
    height:30px;
    display:inline-grid;
    place-items:center;
    border-radius:50%;
    background:radial-gradient(circle at 35% 30%,#ffe986,#ffbd2f 54%,#e89500 100%);
    color:transparent;
    font-size:0;
    vertical-align:2px;
    box-shadow:inset 0 0 0 1px rgba(255,244,177,.7),0 2px 7px rgba(255,178,29,.3);
  }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance > b { display:none; }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance::after {
    right:16px;
    top:50%;
    bottom:auto;
    width:70px;
    height:70px;
    border:1px solid rgba(255,235,185,.18);
    border-radius:20px 38px 24px 42px;
    box-shadow:none;
    transform:translateY(-50%) rotate(12deg);
  }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-title {
    margin:0 0 30px;
    color:#fff;
    font-size:18px;
    font-weight:700;
    line-height:1.2;
  }
  .web-v2 #billing-view.is-coins .coin-package-grid {
    width:100%;
    margin:0;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
  }
  .web-v2 #billing-view.is-coins .coin-package {
    position:relative;
    min-width:0;
    height:148px;
    padding:12px 6px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    overflow:visible;
    border:1px solid transparent;
    border-radius:20px;
    background:#29292a;
    box-shadow:none;
    text-align:center;
  }
  .web-v2 #billing-view.is-coins .coin-package.is-selected {
    border-color:#ffcc4f;
    background:radial-gradient(circle at 50% 0,rgba(255,194,60,.22),transparent 40%),linear-gradient(145deg,#31291b,#211d1a);
    box-shadow:inset 0 0 0 1px rgba(255,207,87,.18);
  }
  .web-v2 #billing-view.is-coins .coin-package-head { display:contents; }
  .web-v2 #billing-view.is-coins .coin-package-head > em,
  .web-v2 #billing-view.is-coins .coin-package:nth-child(-n+2)::before {
    position:absolute;
    z-index:2;
    top:-11px;
    min-height:23px;
    padding:4px 10px;
    border-radius:999px;
    background:#fb7e0a;
    color:#fff6dd;
    font-size:10px;
    font-style:normal;
    font-weight:900;
    line-height:15px;
    white-space:nowrap;
  }
  .web-v2 #billing-view.is-coins .coin-package:has(.coin-package-head > em:not(:empty))::before { display:none; }
  .web-v2 #billing-view.is-coins .coin-package-head > span {
    position:static;
    order:2;
    width:100%;
    max-width:100%;
    margin-top:10px;
    padding:0 2px;
    box-sizing:border-box;
    overflow:hidden;
    color:#ffbd43;
    font-size:11px;
    font-weight:500;
    line-height:14px;
    text-overflow:ellipsis;
    white-space:nowrap;
    flex-shrink:0;
  }
  .web-v2 #billing-view.is-coins .coin-package-balance {
    order:1;
    margin:0;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    gap:5px;
    flex-shrink:0;
  }
  .web-v2 #billing-view.is-coins .coin-package-mark { width:20px; height:20px; margin:0; }
  .web-v2 #billing-view.is-coins .coin-package-copy { display:block; }
  .web-v2 #billing-view.is-coins .coin-package-copy strong { color:#fff; font-size:23px; line-height:1.08; }
  .web-v2 #billing-view.is-coins .coin-package-copy span,
  .web-v2 #billing-view.is-coins .coin-package-description { display:none; }
  .web-v2 #billing-view.is-coins .coin-package-reward {
    order:3;
    margin-top:4px;
    width:auto;
    min-height:0;
    padding:0;
    display:block;
    flex-shrink:0;
    border:0;
    border-radius:0;
    background:none;
    color:#8f8b88;
    font-size:10px;
    line-height:14px;
    white-space:nowrap;
  }
  .web-v2 #billing-view.is-coins .coin-package-reward strong { display:none; }
  .web-v2 #billing-view.is-coins .coin-package-footer {
    position:static;
    order:4;
    margin:4px 0 0;
    padding:0;
    display:block;
    flex-shrink:0;
  }
  .web-v2 #billing-view.is-coins .coin-package-price-line,
  .web-v2 #billing-view.is-coins .coin-package-price { display:block; }
  .web-v2 #billing-view.is-coins .coin-package-price strong { color:#fff; font-size:13px; font-weight:700; }
  .web-v2 #billing-view.is-coins .coin-package-price span,
  .web-v2 #billing-view.is-coins .coin-package-member-prices,
  .web-v2 #billing-view.is-coins .coin-buy { display:none; }
  .web-v2 #billing-view.is-coins .coin-vip-cta {
    width:100%;
    min-height:54px;
    margin:24px 0 14px;
    padding:0;
    display:block;
    overflow:visible;
    box-sizing:border-box;
    border:0;
    border-radius:15px;
    background:transparent;
    box-shadow:none;
  }
  .web-v2 #billing-view.is-coins .coin-vip-cta-copy { display:none; }
  .web-v2 #billing-view.is-coins .coin-vip-cta-badge { display:none; }
  .web-v2 #billing-view.is-coins .coin-vip-cta-copy strong {
    display:block;
    color:#ffe6a8;
    font-size:15px;
    font-weight:700;
    line-height:1.3;
  }
  .web-v2 #billing-view.is-coins .coin-vip-cta-copy p {
    margin:4px 0 0;
    color:#b4a596;
    font-size:11px;
    line-height:1.4;
  }
  .web-v2 #billing-view.is-coins .coin-vip-cta-actions { display:block; width:100%; }
  .web-v2 #billing-view.is-coins .coin-vip-cta-primary {
    width:100%;
    min-height:54px;
    padding:0 14px;
    border:1px solid rgba(255,255,255,.45);
    border-radius:15px;
    background:linear-gradient(110deg,#7347ff 0%,#9b5cff 100%);
    color:#fff;
    font-size:13px;
    font-weight:800;
    white-space:nowrap;
    box-shadow:none;
  }
  .web-v2 #billing-view.is-coins .coin-vip-cta-primary-label { color:#fff; font-size:13px; }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-continue {
    position:fixed;
    z-index:20;
    left:22px;
    bottom:max(43px,calc(env(safe-area-inset-bottom) + 17px));
    width:calc(100% - 44px);
    min-height:60px;
    border:0;
    border-radius:999px;
    background:linear-gradient(100deg,#ffeb88,#ffad31);
    color:#251605;
    font-size:17px;
    font-weight:900;
    box-shadow:none;
  }
  .web-v2 #billing-view.is-coins .billing-mobile-note {
    display:block;
    bottom:8px;
  }
  html[lang^="zh"] .web-v2 #billing-view.is-coins .billing-film-hero {
    height:254px;
    min-height:254px;
  }
  html[lang^="zh"] .web-v2 #billing-view.is-coins .billing-film-content { min-height:254px; }
}

/* Coin recharge mobile card: match the compact promotional block in the
   approved 393px design. The primary purchase action remains the fixed
   bottom button while the card links to Pro membership. */
@media (max-width:620px) {
  .web-v2 #billing-view.is-coins .coin-vip-cta {
    min-height:110px;
    margin:10px 0 16px;
    padding:15px 14px 15px 18px;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    overflow:hidden;
    border:1px solid rgba(255,195,74,.25);
    border-radius:17px;
    background:radial-gradient(110% 160% at 100% 0,rgba(181,111,28,.25),transparent 66%),linear-gradient(112deg,#21180e,#2b1c0d 55%,#17130f);
    box-shadow:inset 0 1px rgba(255,238,187,.12),inset 0 -18px 28px rgba(0,0,0,.2);
  }
  .web-v2 #billing-view.is-coins .coin-vip-cta::before,
  .web-v2 #billing-view.is-coins .coin-vip-cta::after { display:none; }
  .web-v2 #billing-view.is-coins .coin-vip-cta-copy {
    min-width:0;
    flex:1 1 auto;
    display:block;
  }
  .web-v2 #billing-view.is-coins .coin-vip-cta-copy > div { min-width:0; }
  .web-v2 #billing-view.is-coins .coin-vip-cta-copy strong {
    display:block;
    color:#ffe4a1;
    font-size:15px;
    line-height:1.35;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .web-v2 #billing-view.is-coins .coin-vip-cta-copy p {
    display:block;
    max-width:185px;
    margin:7px 0 0;
    color:#ad9c86;
    font-size:10px;
    line-height:1.45;
    overflow-wrap:anywhere;
  }
  .web-v2 #billing-view.is-coins .coin-vip-cta-actions {
    width:auto;
    flex:0 0 116px;
    display:block;
  }
  .web-v2 #billing-view.is-coins .coin-vip-cta-primary {
    width:116px;
    height:auto;
    min-height:43px;
    padding:8px 10px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:13px;
    background:linear-gradient(110deg,#ffe89e,#ffb638);
    color:#21170a;
    font-size:12px;
    line-height:1.25;
    white-space:normal;
    overflow-wrap:anywhere;
    text-align:center;
    box-shadow:0 7px 16px rgba(255,178,50,.2),inset 0 1px rgba(255,251,219,.62);
  }
  .web-v2 #billing-view.is-coins .coin-vip-cta-primary-label {
    display:block;
    color:#21170a;
    font-size:12px;
    line-height:1.25;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-continue {
    left:22px;
    bottom:max(43px,calc(env(safe-area-inset-bottom) + 17px));
    width:calc(100% - 44px);
    min-height:60px;
    border-radius:999px;
    background:linear-gradient(100deg,#ffeb88,#ffad31);
    color:#251605;
    font-size:17px;
    font-weight:900;
    box-shadow:0 12px 32px rgba(255,174,43,.24);
  }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance > strong {
    display:flex;
    align-items:center;
    gap:8px;
    font-size:36px;
  }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance > strong img {
    width:30px;
    height:30px;
    flex:0 0 30px;
    object-fit:contain;
  }
  .web-v2 #billing-view.is-coins .billing-mobile-coin-balance::after {
    right:11px;
    top:24px;
    width:82px;
    height:76px;
    border:0;
    border-radius:0;
    background:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 82 76'%3E%3Cg fill='none' stroke='%23a98a51' stroke-opacity='.32' stroke-width='.8'%3E%3Cpath d='M4 4h40c16 0 29 12 34 29-18 3-25-2-34-17-8 17-16 22-32 18C5 28 4 18 4 4Z'/%3E%3Cpath d='M12 69c1-17 10-29 24-31 13-2 19 5 22 16 2-13 8-18 21-20-2 18-14 34-34 36Z'/%3E%3C/g%3E%3C/svg%3E");
    transform:none;
    box-shadow:none;
  }
  html:not([lang^="zh"]) .web-v2 #billing-view.is-coins .billing-panel[data-billing-panel="coins"] {
    padding-bottom:24px;
  }
  html:not([lang^="zh"]) .web-v2 #billing-view.is-coins .billing-mobile-coin-continue {
    position:relative;
    left:auto;
    bottom:auto;
    width:100%;
    margin:16px 0 0;
  }
}

/* Storyboard preview reference layout: video left, shots and downloads in a right rail. */
.web-v2 .storyboard-preview-dialog { grid-template-columns:minmax(0,1fr) 360px; grid-template-rows:auto minmax(0,1fr); }
.web-v2 .storyboard-preview-stage { grid-column:1; grid-row:2; align-self:start; width:100%; height:auto; aspect-ratio:16 / 9; min-height:0; }
.web-v2 .storyboard-preview-sidebar { grid-column:2; grid-row:2; min-width:0; min-height:0; height:100%; padding:0; box-sizing:border-box; display:grid; grid-template-rows:minmax(0,1fr) auto; overflow:hidden; background:#202125; }
.web-v2 .storyboard-preview-list { min-height:0; overflow-y:auto; overflow-x:hidden; padding:28px 28px 0; box-sizing:border-box; }
.web-v2 .storyboard-preview-sidebar .storyboard-preview-list { overflow-y:auto !important; scrollbar-width:auto; scrollbar-color:auto; }
.web-v2 .storyboard-preview-sidebar .storyboard-preview-list::-webkit-scrollbar { width:6px; }
.web-v2 .storyboard-preview-sidebar .storyboard-preview-list::-webkit-scrollbar-track { background:transparent; }
.web-v2 .storyboard-preview-sidebar .storyboard-preview-list::-webkit-scrollbar-thumb { background:rgba(255,255,255,.35); border-radius:3px; }
.web-v2 .storyboard-preview-sidebar .storyboard-preview-list::-webkit-scrollbar-button { display:none; width:0; height:0; }
.web-v2 .storyboard-preview-sidebar .storyboard-preview-timeline { max-height:none; overflow:visible !important; }
.web-v2 .storyboard-preview-actions { flex:0 0 auto; display:grid; width:100%; box-sizing:border-box; gap:12px; padding:24px 28px 28px; background:#202125; }
.web-v2 .storyboard-preview-actions .storyboard-preview-download,
.web-v2 .storyboard-preview-actions .storyboard-preview-download-all { position:static; align-self:stretch; width:100%; height:48px; min-height:48px; box-sizing:border-box; padding:0 15px; border-radius:10px; font:inherit; font-size:14px; font-weight:700; cursor:pointer; }
.web-v2 .storyboard-preview-actions .storyboard-preview-download { border:1px solid rgba(255,255,255,.16); background:transparent; color:#e4e4e7; }
.web-v2 .storyboard-preview-actions .storyboard-preview-download:hover { border-color:rgba(255,255,255,.3); background:rgba(255,255,255,.06); color:#fff; }
.web-v2 .storyboard-preview-actions .storyboard-preview-download-all { border:1px solid rgba(255,194,79,.42); background:linear-gradient(135deg,#ffe58a,#ffb52e); color:#211706; }
.web-v2 .storyboard-preview-sidebar .storyboard-preview-actions {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  width:100% !important;
  min-width:0 !important;
  align-items:stretch !important;
  justify-items:stretch !important;
}
.web-v2 .storyboard-preview-sidebar .storyboard-preview-actions > button {
  display:block !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  justify-self:stretch !important;
  box-sizing:border-box !important;
}
.web-v2 .storyboard-preview-sidebar .storyboard-preview-actions { padding-left:28px !important; padding-right:28px !important; }
@media (max-width:980px) {
  .web-v2 .storyboard-preview-dialog { grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto auto; }
  .web-v2 .storyboard-preview-stage { grid-column:1; grid-row:2; width:auto; aspect-ratio:16 / 9; margin:34px 34px 0; }
  .web-v2 .storyboard-preview-sidebar { grid-column:1; grid-row:3; }
  .web-v2 .storyboard-preview-list { flex:0 0 auto; height:auto; padding:44px 34px 0; overflow:visible; }
  .web-v2 .storyboard-preview-actions { padding:28px 34px 40px; }
}
@media (max-width:620px) {
  .web-v2 .storyboard-preview-stage { margin:34px 34px 0; }
  .web-v2 .storyboard-preview-list { padding:44px 34px 0; }
  .web-v2 .storyboard-preview-actions { padding:24px 34px 34px; }
}

/* Keep actions in the grid flow; legacy studio styles position them over the shot list. */
.web-v2 .storyboard-preview-sidebar .storyboard-preview-actions { position:static; width:auto !important; margin:0 !important; padding:24px 28px 28px !important; box-sizing:border-box !important; }
@media (max-width:980px) {
  .web-v2 .storyboard-preview-sidebar .storyboard-preview-actions { width:auto !important; margin:0 !important; padding:16px 34px 34px !important; }
}
