:root {
  color-scheme: light;
  --bg: #fbfaff;
  --surface: #ffffff;
  --ink: #17152b;
  --muted: #69657a;
  --purple: #7c3aed;
  --blue: #4f46e5;
  --cyan: #22b8cf;
  --line: #eae7f2;
  --soft: #f4f0ff;
  --shadow: 0 24px 70px rgba(62, 48, 109, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.09), transparent 25rem),
    radial-gradient(circle at 92% 22%, rgba(34, 184, 207, 0.11), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

main,
section,
div,
article {
  min-width: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
.site-footer,
.hero,
.auth-layout,
.examples,
.workflow,
.showcase,
.feature-list,
.setup-once,
.safety-band,
.publish-panel,
.final-cta,
.connect-hero,
.connection-flow,
.permissions,
.account-grid,
.section,
.page-hero,
.legal,
.block-heading {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  background: rgba(251, 250, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.24);
}

.brand-mark::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #fff;
}

.brand-mark i {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 9px solid var(--purple);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
}

.brand small,
.site-nav,
.site-footer p,
.site-footer nav,
.lede,
.reassurance,
.examples p,
.steps p,
.feature-list p,
.setup-once p,
.safety-band li,
.publish-fields label,
.connection-flow p,
.permissions p,
.page-hero p,
.faq-list p,
.sequence p,
.legal p,
.legal li,
.quiet,
.small-note,
.footer-contact {
  color: var(--muted);
}

.brand small {
  font-size: 0.76rem;
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 800;
}

.site-nav a,
.site-footer nav a,
.auth-links a,
.section-row a,
.sign-in {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-footer a:hover,
.sign-in:hover {
  color: var(--purple);
}

.header-actions,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-menu-button {
  display: none;
  width: 46px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(79, 70, 229, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  cursor: pointer;
}

.site-menu-button span {
  width: 18px;
  height: 2px;
  grid-area: 1 / 1;
  border-radius: 20px;
  background: currentColor;
}

.site-menu-button span:nth-child(1) {
  transform: translateY(-7px);
}

.site-menu-button span:nth-child(3) {
  transform: translateY(7px);
}

.site-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(12, 16, 45, 0.34);
}

.site-mobile-menu {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 72px);
  right: max(1rem, env(safe-area-inset-right, 0px));
  left: max(1rem, env(safe-area-inset-left, 0px));
  z-index: 51;
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(79, 70, 229, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.site-menu-backdrop[hidden],
.site-mobile-menu[hidden] {
  display: none !important;
}

.site-mobile-menu a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
  border-radius: 14px;
  color: var(--ink);
  font-weight: 900;
}

.site-mobile-menu a:hover,
.site-mobile-menu a:focus {
  background: rgba(238, 235, 255, 0.9);
}

body.site-menu-open {
  overflow: hidden;
}

.sign-in {
  color: var(--muted);
  font-weight: 900;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  background: var(--surface);
  color: var(--ink);
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(23, 21, 43, 0.05);
  cursor: pointer;
  text-align: center;
  white-space: normal;
}

.button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
}

.button.secondary {
  background: #fff;
}

button[disabled] {
  cursor: not-allowed;
  opacity: 0.66;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: 780px;
  padding: 3rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.15rem;
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 950;
}

h1 span,
.gradient-text {
  display: block;
  background: linear-gradient(135deg, var(--purple), var(--blue), var(--cyan));
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 1rem;
}

.lede {
  max-width: 58ch;
  font-size: 1.12rem;
}

.reassurance {
  margin: 1rem 0 0;
  font-weight: 800;
}

.workspace-preview,
.publish-panel,
.connect-hero > .publish-panel {
  overflow: hidden;
  border: 1px solid rgba(234, 231, 242, 0.9);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.browser-top {
  display: flex;
  align-items: center;
  gap: 0.44rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.2rem;
  color: var(--muted);
}

.browser-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d9d3e8;
}

.browser-top b {
  margin-left: 0.5rem;
  font-size: 0.85rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1rem;
  padding: 1.2rem;
}

.phone-preview {
  aspect-ratio: 9 / 16;
  min-height: 360px;
  border-radius: 28px;
  background: #17152b;
  padding: 0.7rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  display: grid;
  align-content: end;
  gap: 0.6rem;
  height: 100%;
  border-radius: 22px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.12), rgba(34, 184, 207, 0.28)),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.34), transparent 9rem),
    linear-gradient(160deg, #222044, #6d4bd7 50%, #1aa5ba);
  color: #fff;
}

.phone-screen .pill,
.status-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 950;
}

.caption-bubble {
  border-radius: 16px;
  padding: 0.7rem;
  background: rgba(255, 255, 255, 0.18);
}

.project-card,
.mini-card,
.controls-card,
.feature-list article,
.examples article,
.steps article,
.connection-flow article,
.permissions article,
.faq-list article,
.feature-grid article,
.sequence article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  padding: 1.1rem;
  box-shadow: 0 14px 36px rgba(62, 48, 109, 0.07);
}

.project-card {
  display: grid;
  align-content: center;
  min-height: 230px;
}

.mini-card b,
.mini-card span {
  display: block;
}

.mini-card span {
  margin-top: 0.25rem;
  color: var(--muted);
}

.micro,
.mini-label {
  margin-bottom: 0.45rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.meter,
.timeline {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.meter i,
.timeline span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan));
}

.status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.status-list span,
.approval-row span,
.processing-note {
  border-radius: 999px;
  padding: 0.46rem 0.68rem;
  background: var(--soft);
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 900;
}

.examples,
.workflow,
.showcase,
.feature-list,
.setup-once,
.safety-band,
.publish-panel,
.final-cta,
.connection-flow,
.permissions,
.section,
.page-hero,
.legal {
  padding: clamp(2.8rem, 7vw, 5.8rem) 0;
}

.examples {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.examples article {
  padding: 0.75rem;
}

.thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  margin-bottom: 0.85rem;
  border-radius: 20px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(155deg, var(--purple), var(--blue));
}

.t2 { background: linear-gradient(155deg, #2563eb, #22b8cf); }
.t3 { background: linear-gradient(155deg, #17152b, #7c3aed); }
.t4 { background: linear-gradient(155deg, #4f46e5, #8b5cf6); }
.t5 { background: linear-gradient(155deg, #0f766e, #22b8cf); }

.section-heading {
  max-width: 720px;
}

.block-heading {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.steps,
.feature-list,
.connection-flow,
.permissions,
.account-grid,
.feature-grid,
.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.steps article span,
.connection-flow article span,
.sequence article span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--soft);
  color: var(--purple);
  font-weight: 950;
}

.showcase {
  display: grid;
  grid-template-columns: minmax(260px, 390px) 1fr;
  gap: 1.5rem;
  align-items: center;
}

.controls-card {
  display: grid;
  gap: 0.85rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

label {
  display: grid;
  gap: 0.42rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.82rem 0.95rem;
  background: #fff;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.approval-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.setup-once,
.safety-band,
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  border-radius: 34px;
  background: var(--soft);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.safety-band {
  grid-template-columns: 0.8fr 1.2fr;
}

.safety-band ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety-band li {
  border-radius: 16px;
  background: #fff;
  padding: 0.8rem;
  font-weight: 850;
}

.publish-panel {
  display: grid;
  grid-template-columns: minmax(240px, 330px) 1fr;
  gap: 1.2rem;
  padding: 1.2rem;
}

.publish-video .phone-preview {
  min-height: 430px;
}

.publish-fields {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
}

.check input {
  width: auto;
  margin-top: 0.25rem;
}

.final-cta {
  margin-bottom: 4rem;
}

.final-cta h2 {
  max-width: none;
  overflow-wrap: anywhere;
}

.connect-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: 2rem;
  align-items: start;
  padding: clamp(3rem, 7vw, 5.8rem) 0;
}

.connect-hero h1,
.page-hero h1,
.legal h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.connect-hero > .publish-panel {
  width: 100%;
  padding: 1rem;
}

.connect-hero .publish-panel {
  grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
}

.connect-hero .publish-video .phone-preview {
  min-height: 330px;
}

.connect-hero .publish-fields h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.45rem);
}

.status-pill {
  margin: 0.5rem 0 1rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(34, 184, 207, 0.12));
}

code {
  border-radius: 8px;
  background: var(--soft);
  padding: 0.1rem 0.3rem;
}

.sequence {
  display: grid;
  gap: 0.9rem;
}

.sequence article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: start;
}

.legal {
  max-width: 900px;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.28rem;
}

.contact-missing,
.form-error {
  color: #9a3412;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
}

.footer-contact {
  grid-column: 1 / -1;
  font-weight: 850;
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.login-card {
  width: min(100%, 430px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.login-card form {
  display: grid;
  gap: 1rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: clamp(3rem, 7vw, 5.8rem) 0;
}

.auth-card,
.account-grid article {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.auth-card {
  display: grid;
  gap: 1rem;
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  min-height: 50px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #fff;
  color: #3c4043;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(23, 21, 43, 0.05);
  text-align: center;
}

.login-card .google-button {
  width: 100%;
}

.google-button[aria-disabled="true"] {
  opacity: 0.68;
  pointer-events: none;
}

.google-g {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #4285f4;
  font-weight: 950;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-weight: 850;
}

.auth-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .hero,
  .showcase,
  .setup-once,
  .safety-band,
  .final-cta,
  .publish-panel,
  .connect-hero,
  .connect-hero .publish-panel,
  .auth-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .examples,
  .steps,
  .feature-list,
  .connection-flow,
  .permissions,
  .account-grid,
  .feature-grid,
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header .site-nav,
  .site-header .header-actions {
    display: none;
  }

  .site-menu-button {
    display: grid;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .hero,
  .examples,
  .workflow,
  .showcase,
  .feature-list,
  .setup-once,
  .safety-band,
  .publish-panel,
  .final-cta,
  .connect-hero,
  .connection-flow,
  .permissions,
  .section,
  .page-hero,
  .legal,
  .block-heading {
    width: min(100% - 24px, 1160px);
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .button,
  .header-actions .sign-in {
    flex: 1;
  }

  h1,
  .connect-hero h1,
  .page-hero h1,
  .legal h1 {
    font-size: 3rem;
  }

  h2,
  .final-cta h2 {
    font-size: 2rem;
  }

  .workspace-grid,
  .examples,
  .steps,
  .feature-list,
  .connection-flow,
  .permissions,
  .feature-grid,
  .faq-list,
  .form-grid,
  .safety-band ul,
  .sequence article {
    grid-template-columns: 1fr;
  }

  .phone-preview {
    min-height: 320px;
  }

  .button,
  button {
    width: 100%;
  }
}

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

.customer-auth {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 220px);
  margin: 3rem auto 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 20% 18%, rgba(124, 58, 237, 0.18), transparent 18rem),
    radial-gradient(circle at 86% 80%, rgba(34, 184, 207, 0.16), transparent 18rem),
    linear-gradient(145deg, #fff, #f7f2ff 62%, #effbff);
  box-shadow: var(--shadow);
}

.showcase-copy h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.poster-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  margin-top: 3rem;
}

.poster-stack figure,
.style-card,
.project-card-public,
.empty-state,
.featured-hero,
.welcome-panel,
.flow-step,
.project-detail,
.account-hero,
.account-panels article,
.how-cards article,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(72, 52, 126, 0.1);
}

.poster-stack figure {
  margin: 0;
  padding: 0.7rem;
}

.poster-stack figure:nth-child(2) {
  transform: translateY(-2.2rem);
}

.poster-stack img,
.style-card img,
.project-card-public img,
.empty-state img,
.project-detail > img,
.poster-composition img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 18px;
  background: var(--soft);
}

.poster-stack figcaption {
  padding: 0.7rem 0.2rem 0.2rem;
  color: var(--ink);
  font-weight: 950;
}

.auth-proof {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.auth-proof span,
.status-badge,
.mobile-app-nav a,
.app-sidebar nav a {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.auth-proof span {
  padding: 0.55rem 0.85rem;
}

.auth-card {
  width: 100%;
  max-width: 580px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(1.35rem, 4vw, 2.4rem);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 1.2rem 0 0.7rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.98;
}

.auth-card .google-button,
.auth-card button,
.auth-card input {
  width: 100%;
  min-height: 48px;
}

.auth-switch a,
.section-row a,
.auth-links a {
  color: var(--purple);
  font-weight: 950;
}

.auth-switch a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.app-frame {
  width: min(1440px, calc(100% - 32px));
  margin: 1.2rem auto 5rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.5rem;
}

.app-sidebar {
  position: sticky;
  top: 5.5rem;
  height: calc(100vh - 7rem);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(62, 48, 109, 0.08);
}

.app-sidebar nav {
  display: grid;
  gap: 0.45rem;
}

.app-sidebar nav a {
  padding: 0.75rem 0.9rem;
}

.app-sidebar nav a.active,
.mobile-app-nav a.active {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  border-color: transparent;
}

.app-main {
  display: grid;
  gap: 1.2rem;
}

.app-topbar,
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-topbar h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.98;
}

.avatar-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem 0.35rem 0.35rem;
  background: #fff;
  font-weight: 950;
}

.avatar-link::first-letter,
.avatar-large {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
}

.avatar-link {
  color: var(--ink);
}

.welcome-panel,
.featured-hero,
.empty-state,
.project-detail,
.account-hero {
  padding: clamp(1rem, 3vw, 2rem);
}

.welcome-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background:
    radial-gradient(circle at 12% 5%, rgba(124, 58, 237, 0.12), transparent 18rem),
    #fff;
}

.welcome-panel h2,
.featured-hero h2,
.workspace-section h2,
.project-detail h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
}

.featured-hero,
.project-detail,
.empty-state,
.project-card-public {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.poster-composition {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.poster-composition img:nth-child(2) {
  transform: translateY(-1rem);
}

.workspace-section {
  display: grid;
  gap: 1rem;
}

.style-grid,
.project-grid,
.how-cards,
.account-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.style-card,
.project-card-public {
  overflow: hidden;
  padding: 0.8rem;
}

.style-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}

.style-card img {
  border-radius: 16px;
}

.style-card h3,
.project-card-public h3,
.how-cards h3,
.account-panels h3 {
  margin: 0 0 0.3rem;
}

.status-badge {
  display: inline-flex;
  width: max-content;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
}

.project-flow {
  display: grid;
  gap: 1rem;
}

.flow-step {
  padding: clamp(1rem, 3vw, 1.7rem);
}

.flow-step > span,
.how-cards span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--purple);
  font-weight: 950;
}

.flow-step h2 {
  margin: 0.7rem 0 1rem;
}

.flow-step label,
.auth-card label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 850;
}

.flow-step input,
.flow-step textarea,
.flow-step select,
.auth-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  background: #fff;
}

.flow-step textarea {
  min-height: 130px;
  resize: vertical;
}

.select-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.select-card {
  position: relative;
  display: grid;
  gap: 0.5rem;
  cursor: pointer;
}

.select-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.select-card img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 18px;
}

.select-card input:checked + img {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14);
}

.select-card span {
  font-weight: 950;
}

.review-step {
  background: linear-gradient(135deg, #fff, var(--soft));
}

.project-detail dl,
.account-panels p {
  display: grid;
  gap: 0.35rem;
}

.project-detail dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.2rem 0;
}

.project-detail dt,
.account-panels strong {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-detail dd {
  margin: 0;
  font-weight: 950;
}

.customer-app-page .project-detail {
  grid-template-columns: 1fr;
}

.customer-app-page .app-frame {
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

.timeline,
.activity-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.customer-app-page .timeline {
  height: auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.timeline article,
.how-cards article,
.account-panels article {
  padding: 1rem;
}

.activity-list li {
  display: grid;
  gap: 0.25rem;
  border-bottom: 1px solid var(--line);
  padding: 0.8rem 0;
}

.production-status-panel .status-check-list li.complete strong,
.production-timeline article.completed h3 {
  color: var(--ink);
}

.production-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.4rem 0.85rem;
}

.production-timeline article > span {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-weight: 950;
}

.production-timeline .timeline-state-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.production-timeline article.completed > span {
  background: rgba(34, 184, 207, 0.14);
  color: #0f766e;
}

.production-timeline article.current {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.34);
}

.production-timeline article.current > span {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
}

.production-timeline article.current .timeline-state-label {
  color: var(--purple);
}

.production-timeline article.current,
.production-timeline article.completed,
.status-check-list li.complete {
  border-left: 4px solid var(--accent);
}

.production-timeline article.pending,
.status-check-list li.pending {
  opacity: 0.72;
}

.approved-script-section summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 950;
  list-style: none;
}

.approved-script-section summary::-webkit-details-marker {
  display: none;
}

.script-list,
.asset-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.script-scene,
.asset-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.script-scene > span {
  display: grid;
  place-items: center;
  min-width: 74px;
  height: 44px;
  border-radius: 14px;
  background: var(--soft);
  font-weight: 950;
  font-size: 0.78rem;
}

.asset-card {
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
}

.compact-empty-state {
  display: grid;
  gap: 0.45rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px dashed rgba(105, 101, 122, 0.34);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.compact-empty-state h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.compact-empty-state p {
  margin: 0;
  color: var(--muted);
}

.asset-state-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.asset-state-grid span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.55rem 0.65rem;
  background: #fff;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.asset-media {
  min-height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--soft);
}

.asset-preview-button,
.asset-preview-button img,
.asset-empty {
  width: 100%;
  height: 100%;
}

.asset-preview-button {
  display: block;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  background: transparent;
}

.asset-preview-button img {
  display: block;
  object-fit: cover;
}

.asset-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 850;
}

.asset-card audio {
  width: 100%;
  margin-top: 0.75rem;
}

.revision-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.revision-form input,
.revision-form textarea {
  width: 100%;
}

.account-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-large {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 26px;
  font-size: 2rem;
  font-weight: 950;
}

.mobile-app-nav {
  display: none;
}

.customer-app-page > .site-header,
.customer-app-page > .site-mobile-menu,
.customer-app-page > .public-menu-backdrop,
.customer-app-page > .public-mobile-menu {
  display: none;
}

.customer-app-page #main {
  min-height: 100vh;
  min-height: 100dvh;
}

@media (max-width: 1120px) {
  .style-grid,
  .project-grid,
  .how-cards,
  .account-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  body.customer-app-page {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .customer-app-page #main {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .customer-auth,
  .app-frame {
    grid-template-columns: 1fr;
  }

  .auth-showcase {
    min-height: auto;
  }

  .app-sidebar {
    display: none;
  }

  .app-frame {
    box-sizing: border-box;
    width: min(100% - 28px, 900px);
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.75rem;
    margin-bottom: 0;
    padding-top: max(1rem, env(safe-area-inset-top, 0px));
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  .customer-app-page .app-main {
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 1rem;
    scrollbar-gutter: stable;
  }

  .customer-app-page .script-list,
  .customer-app-page .storyboard-list,
  .customer-app-page .production-timeline {
    gap: 0.55rem;
  }

  .customer-app-page .script-scene,
  .customer-app-page .storyboard-list article,
  .customer-app-page .production-timeline article {
    padding: 0.65rem;
    border-radius: 16px;
  }

  .customer-app-page .script-scene {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.55rem;
  }

  .customer-app-page .script-scene > span {
    min-width: 42px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.68rem;
  }

  .customer-app-page .script-scene h3,
  .customer-app-page .storyboard-list h3,
  .customer-app-page .production-timeline h3 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.15;
  }

  .customer-app-page .script-scene p,
  .customer-app-page .storyboard-list p,
  .customer-app-page .production-timeline p {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    line-height: 1.28;
  }

  .customer-app-page .storyboard-list .small-note:first-of-type {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .mobile-app-nav {
    position: static;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 0.4rem;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 46px rgba(62, 48, 109, 0.18);
    backdrop-filter: blur(18px);
  }

  .mobile-app-nav a {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 0.35rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 640px) {
  .customer-auth {
    width: min(100% - 32px, 600px);
    margin-top: 1.4rem;
  }

  .auth-showcase {
    display: none;
  }

  .auth-card {
    border-radius: 24px;
  }

  .featured-hero,
  .project-detail,
  .empty-state,
  .project-card-public,
  .welcome-panel {
    grid-template-columns: 1fr;
  }

  .welcome-panel,
  .app-topbar,
  .section-row {
    align-items: stretch;
    flex-direction: column;
  }

  .style-grid,
  .project-grid,
  .how-cards,
  .account-panels,
  .form-grid,
  .project-detail dl,
  .asset-card {
    grid-template-columns: 1fr;
  }

  .style-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .select-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-state-grid {
    grid-template-columns: 1fr;
  }

  .avatar-link span {
    display: none;
  }

  .customer-app-page .avatar-link {
    align-self: flex-start;
    padding: 0.55rem 0.85rem;
  }

  .customer-app-page .avatar-link span {
    display: inline;
  }
}

@media (max-width: 360px) {
  .mobile-app-nav a {
    font-size: 0.68rem;
  }

  .select-grid {
    grid-template-columns: 1fr;
  }
}

.customer-auth-page {
  /*
   * TASK211_AUTH_V2_GOLDEN_MASTER
   * Task 211 Auth V2 is the approved authentication visual design.
   * Do not visually alter these auth styles without:
   * UNLOCK TASK 211 AUTH V2 DESIGN
   */
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.18), transparent 19rem),
    radial-gradient(circle at 86% 74%, rgba(37, 55, 185, 0.34), transparent 24rem),
    linear-gradient(145deg, #7c2fe8 0%, #6d3fe7 48%, #405fe0 100%);
  font-family: Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
}

.customer-auth-page .site-header {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  padding: max(1rem, env(safe-area-inset-top)) 0 0.6rem;
  background: transparent;
}

.customer-auth-page .brand {
  min-height: 44px;
  gap: 0.65rem;
  color: #fff;
  font-weight: 950;
}

.customer-auth-page .brand small {
  margin-top: -0.2rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 800;
}

.customer-auth-page .brand-mark {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.customer-auth-page .brand-mark::before {
  width: 0;
  height: 0;
  border-left: 12px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-radius: 0;
  background: transparent;
  transform: translateX(2px);
}

.customer-auth-page .brand-mark i {
  display: none;
}

.customer-auth-page .brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.customer-auth-page .site-nav,
.customer-auth-page .header-actions {
  display: none;
}

.customer-auth-page .site-footer {
  display: none;
}

.customer-auth-page .site-menu-button {
  display: grid;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.customer-auth.auth-v2 {
  width: min(100% - 32px, 1180px);
  min-height: calc(100vh - 120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  align-items: center;
  padding: clamp(1.4rem, 4vh, 3.5rem) 0 max(1.5rem, env(safe-area-inset-bottom));
}

.auth-v2 .auth-card {
  width: min(100%, 560px);
  max-width: 560px;
  justify-self: center;
  gap: 0;
  border: 1px solid rgba(229, 225, 240, 0.92);
  border-radius: 22px;
  padding: clamp(1.45rem, 3vw, 2.35rem);
  background: #fff;
  box-shadow: 0 28px 80px rgba(31, 21, 84, 0.24);
}

.auth-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 1.1rem;
  border-radius: 18px;
  background: #f0edff;
}

.auth-icon svg {
  width: 36px;
  height: 36px;
}

.auth-v2 .auth-card h1 {
  max-width: none;
  margin: 0 0 1.45rem;
  color: #17152b;
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

.auth-intro {
  margin: -0.55rem 0 1.2rem;
  color: #737087;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 0.95rem;
}

.auth-field {
  gap: 0.42rem;
  color: #312d45;
  font-size: 0.95rem;
  font-weight: 900;
}

.input-wrap {
  position: relative;
  display: block;
}

.input-wrap > svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 20px;
  height: 20px;
  color: #8a86a0;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-v2 .auth-card input {
  min-height: 54px;
  border: 1px solid #e5e1f0;
  border-radius: 14px;
  padding: 0.9rem 3.1rem 0.9rem 2.8rem;
  background: #fff;
  color: #17152b;
  box-shadow: none;
}

.auth-v2 .auth-card input:focus {
  border-color: #5b45e8;
  box-shadow: 0 0 0 4px rgba(91, 69, 232, 0.13);
}

.password-toggle {
  position: absolute;
  right: 0.42rem;
  top: 50%;
  width: 44px;
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #737087;
  box-shadow: none;
  transform: translateY(-50%);
}

.auth-v2 .auth-card .password-toggle {
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.password-toggle svg {
  width: 21px;
  height: 21px;
  pointer-events: none;
}

.auth-row {
  display: flex;
  justify-content: flex-end;
  min-height: 26px;
  margin-top: -0.2rem;
}

.forgot-link,
.auth-switch a,
.auth-v2 .auth-links a {
  color: #5b45e8;
  font-weight: 950;
}

.forgot-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.auth-primary {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c2fe8, #405fe0);
  color: #fff;
  font-size: 0.98rem;
  letter-spacing: 0;
  box-shadow: 0 14px 28px rgba(91, 69, 232, 0.24);
}

.auth-v2 .auth-card .auth-primary {
  min-height: 54px;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.25rem 0;
  color: #8a86a0;
  font-weight: 850;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e1f0;
}

.auth-v2 .google-button {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  border-color: #e5e1f0;
  box-shadow: 0 10px 24px rgba(23, 21, 43, 0.05);
}

.auth-message {
  margin: 0 0 1rem;
  border: 1px solid #e5e1f0;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: #fbfaff;
  color: #5b5570;
  font-weight: 850;
}

.auth-switch {
  margin: 1rem 0 0.4rem;
  color: #737087;
  text-align: center;
  font-weight: 850;
}

.auth-v2 .auth-links {
  justify-content: center;
  gap: 0.45rem 1rem;
  font-size: 0.92rem;
}

.auth-v2 .auth-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.studio-auth .auth-card {
  max-width: 600px;
}

@media (min-width: 760px) {
  .customer-auth-page .site-menu-button {
    display: none;
  }
}

@media (max-width: 640px) {
  .customer-auth-page .site-header {
    width: min(100% - 32px, 1180px);
    margin-bottom: 0.15rem;
  }

  .customer-auth.auth-v2 {
    min-height: calc(100vh - 98px);
    align-items: start;
    padding-top: 1.25rem;
  }

  .auth-v2 .auth-card {
    border-radius: 20px;
    padding: 1.35rem;
  }

  .auth-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.85rem;
  }

  .auth-v2 .auth-card h1 {
    margin-bottom: 1.05rem;
    font-size: 1.9rem;
  }

  .auth-form {
    gap: 0.78rem;
  }
}

@media (max-width: 340px) {
  .auth-v2 .auth-card {
    padding: 1rem;
  }

  .auth-v2 .auth-card input,
  .auth-primary,
  .auth-v2 .google-button {
    min-height: 52px;
  }
}

/*
 * TASK237D_CUSTOMER_APP_REDESIGN
 * Authenticated VideoBot customer app only.
 */
.customer-app-page {
  --app-bg: #f6f4fb;
  --app-card: #ffffff;
  --app-ink: #111827;
  --app-muted: #647085;
  --app-line: #e5e7f1;
  --app-soft: #f1eefc;
  --app-purple: #7c3aed;
  --app-blue: #2563eb;
  --app-success: #16a34a;
  --app-warning: #d97706;
  --app-danger: #dc2626;
  min-height: 100dvh;
  background: var(--app-bg);
  color: var(--app-ink);
  font-family: Inter, Arial, Helvetica, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.customer-app-page .app-frame {
  width: min(1440px, calc(100% - 32px));
  min-height: calc(100dvh - 32px);
  margin: 16px auto;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
}

.customer-app-page .app-sidebar,
.customer-app-page .app-topbar,
.customer-app-page .workspace-section,
.customer-app-page .welcome-panel,
.customer-app-page .featured-hero,
.customer-app-page .empty-state,
.customer-app-page .project-detail,
.customer-app-page .account-hero,
.customer-app-page .style-card,
.customer-app-page .project-card-public,
.customer-app-page .flow-step,
.customer-app-page .how-cards article,
.customer-app-page .account-panels article,
.customer-app-page .pricing-card,
.customer-app-page .faq-card,
.customer-app-page .compact-empty-state,
.customer-app-page .script-scene,
.customer-app-page .asset-card,
.customer-app-page .production-timeline article,
.customer-app-page .storyboard-list article {
  border: 1px solid var(--app-line);
  border-radius: 22px;
  background: var(--app-card);
  box-shadow: 0 18px 46px rgba(31, 41, 55, 0.07);
}

.customer-app-page .app-sidebar {
  top: 16px;
  height: calc(100dvh - 32px);
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.app-sidebar-head {
  display: grid;
  gap: 12px;
}

.customer-app-page .app-sidebar nav,
.customer-app-page .mobile-app-nav {
  gap: 8px;
}

.customer-app-page .app-sidebar nav a,
.customer-app-page .mobile-app-nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 0.65rem 0.75rem;
  color: var(--app-muted);
  font-weight: 850;
}

.customer-app-page .app-sidebar nav a span,
.customer-app-page .mobile-app-nav a span {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: var(--app-soft);
  color: var(--app-purple);
  font-size: 0.78rem;
  font-weight: 950;
}

.customer-app-page .app-sidebar nav a.active,
.customer-app-page .mobile-app-nav a.active {
  background: linear-gradient(135deg, var(--app-purple), var(--app-blue));
  color: #fff;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.24);
}

.customer-app-page .app-sidebar nav a.active span,
.customer-app-page .mobile-app-nav a.active span {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.customer-app-page .app-main {
  align-content: start;
  gap: 18px;
}

.customer-app-page .app-topbar {
  position: sticky;
  top: 16px;
  z-index: 8;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.app-mobile-brand {
  display: none;
}

.app-title-block {
  min-width: 0;
}

.customer-app-page .app-topbar h1,
.customer-app-page .app-page-hero h2,
.customer-app-page .welcome-panel h2,
.customer-app-page .featured-hero h2,
.customer-app-page .workspace-section h2,
.customer-app-page .project-detail h2 {
  color: var(--app-ink);
  font-weight: 900;
  letter-spacing: 0;
}

.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-chip,
.app-menu-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  background: #fff;
  color: var(--app-ink);
  font-weight: 850;
}

.profile-chip span,
.app-menu-button {
  background: linear-gradient(135deg, var(--app-purple), var(--app-blue));
  color: #fff;
}

.profile-chip span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.app-menu-button {
  border: 0;
  padding-inline: 1rem;
}

.customer-app-page p,
.customer-app-page .small-note,
.customer-app-page dd,
.customer-app-page li span {
  color: var(--app-muted);
}

.customer-app-page .eyebrow {
  color: var(--app-purple);
  font-weight: 950;
}

.customer-app-page .button,
.customer-app-page button,
.customer-app-page input,
.customer-app-page select,
.customer-app-page textarea {
  min-height: 44px;
  border-radius: 14px;
}

.customer-app-page a:focus-visible,
.customer-app-page button:focus-visible,
.customer-app-page input:focus-visible,
.customer-app-page select:focus-visible,
.customer-app-page textarea:focus-visible,
.customer-app-page summary:focus-visible {
  outline: 3px solid #22b8cf;
  outline-offset: 3px;
}

.customer-app-page .button.primary,
.customer-app-page button[type="submit"] {
  border: 0;
  background: linear-gradient(135deg, var(--app-purple), var(--app-blue));
  color: #fff;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.22);
  font-weight: 900;
}

.customer-app-page .button.secondary,
.customer-app-page .actions .button.secondary {
  border: 1px solid var(--app-line);
  background: #fff;
  color: var(--app-ink);
}

.app-logout-form,
.app-logout-form button {
  width: 100%;
}

.customer-app-page .status-badge,
.customer-app-page .status-pill {
  border-color: rgba(124, 58, 237, 0.22);
  background: #f4f0ff;
  color: #5b21b6;
}

.customer-app-page .project-card-public img,
.customer-app-page .style-card img,
.customer-app-page .empty-state img,
.customer-app-page .poster-composition img {
  border-radius: 18px;
  box-shadow: none;
}

.customer-app-page .app-page-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 20%, rgba(37, 99, 235, 0.14), transparent 18rem),
    linear-gradient(135deg, #fff, #f4f1ff);
}

.billing-grid,
.customer-app-page .account-panels,
.customer-app-page .project-grid,
.customer-app-page .style-grid {
  gap: 16px;
}

.pricing-card {
  padding: clamp(1rem, 3vw, 1.5rem);
}

.pricing-card.featured {
  background:
    radial-gradient(circle at 92% 12%, rgba(124, 58, 237, 0.12), transparent 16rem),
    #fff;
}

.faq-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.faq-card details {
  border: 1px solid var(--app-line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  background: #fff;
}

.faq-card summary {
  cursor: pointer;
  font-weight: 900;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  min-height: 38px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: #fff;
  color: var(--app-muted);
  font-weight: 850;
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--app-purple), var(--app-blue));
  color: #fff;
}

.create-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}

.create-stepper li,
.autosave-note,
.settings-row,
.platform-card {
  border: 1px solid var(--app-line);
  border-radius: 16px;
  padding: 0.75rem;
  background: #fff;
  color: var(--app-muted);
  font-weight: 850;
}

.create-stepper li.active {
  background: linear-gradient(135deg, var(--app-purple), var(--app-blue));
  color: #fff;
}

.advanced-settings {
  border: 1px solid var(--app-line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: #fff;
}

.edit-video-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 16px;
}

.video-preview-card,
.safe-video-placeholder {
  min-height: 420px;
  border-radius: 24px;
}

.video-preview-card {
  border: 1px solid var(--app-line);
  padding: 12px;
  background: #fff;
}

.safe-video-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  color: var(--app-muted);
}

.safe-video-placeholder span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--app-purple), var(--app-blue));
  color: #fff;
  font-weight: 900;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.switch {
  position: relative;
  width: 54px;
  height: 30px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch i {
  display: block;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #e5e7eb;
}

.switch i::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 3px;
  border-radius: 999px;
  background: #fff;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.platform-card {
  display: grid;
  gap: 0.3rem;
}

.app-feature-card img {
  display: none;
}

.settings-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-grid article,
.guide-card {
  border: 1px solid var(--app-line);
  border-radius: 22px;
  padding: 1rem;
  background: #fff;
  box-shadow: var(--app-shadow);
}

.series-wizard details,
.series-settings-form details {
  border: 1px solid var(--app-line);
  border-radius: 18px;
  padding: 0.8rem 1rem;
  background: #fff;
  margin: 0.75rem 0;
}

.series-wizard summary,
.series-settings-form summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--app-navy);
}

.guide-detail {
  max-width: 820px;
  margin-inline: auto;
}

.help-search {
  display: grid;
  gap: 0.45rem;
  color: var(--app-muted);
  font-weight: 850;
}

.help-search input {
  width: 100%;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: #fff;
}

@media (max-width: 760px) {
  .create-stepper,
  .platform-grid,
  .edit-video-layout,
  .settings-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-app-page *,
  .customer-app-page *::before,
  .customer-app-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .customer-app-page .app-frame {
    width: min(100% - 24px, 720px);
    height: 100dvh;
    min-height: 0;
    margin: 0 auto;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .customer-app-page .app-main {
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 0.4rem;
  }

  .customer-app-page .app-topbar {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 12px;
  }

  .app-mobile-brand {
    display: block;
  }

  .app-title-block {
    grid-column: 1 / -1;
  }

  .profile-chip strong {
    display: none;
  }

  .customer-app-page .app-topbar h1 {
    font-size: 1.8rem;
  }

  .customer-app-page .mobile-app-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    border-radius: 24px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
  }

  .customer-app-page .mobile-app-nav a {
    min-height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 0.35rem 0.2rem;
    font-size: 0.7rem;
    line-height: 1;
  }

  .customer-app-page .mobile-app-nav a span {
    width: 24px;
    height: 24px;
  }

  .customer-app-page .app-page-hero,
  .customer-app-page .welcome-panel,
  .customer-app-page .section-row {
    align-items: stretch;
    flex-direction: column;
  }
}

.app-drawer-backdrop {
  display: none;
}

@media (max-width: 900px) {
  .customer-app-page .app-frame {
    grid-template-rows: minmax(0, 1fr);
  }

  .customer-app-page .mobile-app-nav {
    display: none;
  }

  .customer-app-page .app-sidebar {
    position: fixed;
    z-index: 40;
    inset: 12px auto 12px 12px;
    width: min(320px, calc(100vw - 32px));
    height: auto;
    display: flex;
    transform: translateX(calc(-100% - 28px));
    transition: transform 180ms ease;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.22);
  }

  .customer-app-page.app-drawer-open .app-sidebar {
    transform: translateX(0);
  }

  .customer-app-page .app-drawer-backdrop {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(17, 24, 39, 0.34);
    backdrop-filter: blur(4px);
  }

  .customer-app-page .app-drawer-backdrop[hidden] {
    display: none;
  }

  .customer-app-page .app-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Task 239A exact authenticated app visual-parity pass */
.customer-app-page {
  --app-bg: #f8f8fc;
  --app-card: #ffffff;
  --app-ink: #11153b;
  --app-muted: #6e7392;
  --app-line: #e7e7f2;
  --app-soft: #f1eeff;
  --app-purple: #7138f4;
  --app-blue: #356ff5;
  --app-success: #22a95a;
  --app-shadow: 0 18px 50px rgba(17, 21, 59, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.customer-app-page .app-topbar {
  min-height: 74px;
  border-radius: 0 0 24px 24px;
  border-bottom: 1px solid var(--app-line);
  box-shadow: 0 10px 30px rgba(17, 21, 59, 0.04);
}

.customer-app-page .brand {
  gap: 10px;
}

.customer-app-page .brand strong,
.customer-app-page h1,
.customer-app-page h2,
.customer-app-page h3 {
  color: var(--app-ink);
  letter-spacing: 0;
}

.customer-app-page p,
.customer-app-page .small-note,
.customer-app-page label {
  color: var(--app-muted);
}

.customer-app-page .button.primary,
.customer-app-page button:not(.app-menu-button):not(.secondary):not(.filter-pill),
.customer-app-page .vb-card button.primary {
  min-height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--app-purple), var(--app-blue));
  font-weight: 900;
}

.customer-app-page .button.secondary,
.customer-app-page button.secondary,
.customer-app-page .vb-tabs button,
.customer-app-page .vb-segmented button {
  min-height: 48px;
  border-radius: 15px;
  border: 1px solid var(--app-line);
  background: #fff;
  color: var(--app-ink);
  font-weight: 850;
}

.vb-page-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}

.vb-page-title h2 {
  margin: 0.25rem 0 0.45rem;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.04;
}

.vb-page-title p {
  max-width: 700px;
}

.vb-card,
.vb-plan-card,
.vb-metric,
.vb-preview-card {
  border: 1px solid var(--app-line);
  border-radius: 24px;
  background: var(--app-card);
  box-shadow: var(--app-shadow);
  padding: 22px;
}

.vb-tabs,
.vb-segmented {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--app-line);
  border-radius: 18px;
  background: #fff;
  margin-bottom: 18px;
  overflow-x: auto;
}

.vb-tabs button.active,
.vb-segmented button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--app-purple), var(--app-blue));
  border-color: transparent;
}

.vb-billing-grid,
.vb-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  margin-bottom: 18px;
}

.vb-plan-grid,
.vb-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.vb-plan-card h3,
.vb-current-plan h3 {
  font-size: 1.75rem;
  margin: 0.25rem 0;
}

.vb-metric {
  display: grid;
  gap: 4px;
  box-shadow: none;
  background: #fbfbff;
}

.vb-metric span,
.vb-metric small {
  color: var(--app-muted);
  font-weight: 750;
}

.vb-metric strong {
  color: var(--app-ink);
  font-size: 1.35rem;
}

.vb-progress {
  height: 12px;
  border-radius: 999px;
  background: #ececff;
  overflow: hidden;
  margin: 18px 0;
}

.vb-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--app-purple), var(--app-blue));
}

.vb-settings-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--app-line);
}

.vb-settings-row:last-child {
  border-bottom: 0;
}

.vb-row-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--app-soft);
  color: var(--app-purple);
  font-weight: 900;
}

.vb-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.vb-help-cta {
  background: linear-gradient(135deg, #ffffff, #f4f1ff);
}

.vb-edit-form {
  display: grid;
  gap: 14px;
}

.vb-edit-form input,
.vb-edit-form textarea,
.help-search input,
.customer-app-page select {
  min-height: 56px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  background: #fff;
  padding: 0.9rem 1rem;
  color: var(--app-ink);
  font: inherit;
}

.vb-edit-form textarea {
  min-height: 112px;
}

.vb-edit-form input:focus,
.vb-edit-form textarea:focus,
.help-search input:focus,
.customer-app-page select:focus {
  outline: 3px solid rgba(113, 56, 244, 0.22);
  border-color: var(--app-purple);
}

.vb-preview-card {
  min-height: 520px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.vb-empty-preview {
  border-radius: 22px;
  background: linear-gradient(135deg, #f1eeff, #eef5ff);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
}

.vb-empty-preview span {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--app-purple), var(--app-blue));
  margin-bottom: 12px;
}

.vb-toggle-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--app-line);
  border-radius: 16px;
  padding: 0.7rem 1rem;
  color: var(--app-ink);
  font-weight: 850;
}

.vb-toggle-row.disabled {
  opacity: 0.68;
}

.faq-card details {
  border: 1px solid var(--app-line);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: #fff;
  margin: 0 0 10px;
}

.faq-card summary {
  cursor: pointer;
  color: var(--app-ink);
  font-weight: 900;
  min-height: 44px;
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .vb-page-title,
  .vb-billing-grid,
  .vb-edit-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .vb-plan-grid,
  .vb-metric-grid,
  .vb-settings-row {
    grid-template-columns: 1fr;
  }

  .vb-card,
  .vb-plan-card,
  .vb-metric,
  .vb-preview-card {
    border-radius: 22px;
    padding: 18px;
  }

  .vb-preview-card {
    min-height: 420px;
  }
}
