:root {
  /* Flyer Fly premium poster studio palette */
  --bg: #fafafb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-blue: #eff6ff;
  --surface-pink: #fff1f2;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --pink: #f43f5e;
  --green: #16a34a;
  --amber: #f59e0b;
  --danger: #e11d48;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --radius: 24px;
  --radius-pill: 99px;
  --sidebar-width: 236px;
  --header-height: 72px;
  --font-display: 'Nunito', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Nunito', 'Avenir Next', 'Segoe UI', sans-serif;
  --red: #f43f5e;
  --red-dark: #e11d48;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --yellow: #f59e0b;
  --surface-rgb: 255, 255, 255;
  --bg-rgb: 250, 250, 251;
  --header-glass-start: rgba(250, 250, 251, 0.98);
  --header-glass-mid: rgba(250, 250, 251, 0.88);
  --panel-glass: rgba(255, 255, 255, 0.92);
  --panel-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  --history-menu-bg: rgba(255, 255, 255, 0.98);
  --history-menu-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  --status-success-bg: #ecfdf5;
  --status-success-ink: #047857;
  --danger-soft-bg: rgba(225, 29, 72, 0.08);
  --danger-soft-border: rgba(225, 29, 72, 0.28);
  --tile-muted-bg: #f8fafc;
  --app-backdrop-a: rgba(37, 99, 235, 0.08);
  --app-backdrop-b: rgba(244, 63, 94, 0.08);
  --app-backdrop-c: #fafafb;
  --app-backdrop-d: #f8fafc;
}

.public-mode h1,
.public-mode h2,
.public-mode .brand-lockup strong {
  font-family: var(--font-display);
  font-weight: 400;
}

body.public-mode,
.public-mode button,
.public-mode input,
.public-mode select,
.public-mode textarea {
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  font-family: var(--font-body);
}

.text-red {
  color: var(--red);
  font-style: italic;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.public-header-shell {
  min-height: 76px;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--bg-rgb), 0.85);
  box-shadow: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.public-nav {
  gap: 12px;
}

.public-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.public-nav-button:hover {
  color: var(--ink);
  transform: none;
  box-shadow: none;
  background: transparent;
}

.public-mode .brand-mark {
  border-radius: 0;
  background: transparent;
  font-size: 1.2rem;
}

.public-mode .brand-tagline {
  font-size: 0.78rem;
}

.landing-page {
  gap: 0;
}

.landing-page > section {
  position: relative;
  overflow: hidden;
}

.landing-hero-shell {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 120px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  overflow: visible;
}

.landing-page > .landing-hero-shell {
  overflow: visible;
}

.hero-copy h1 {
  font-size: clamp(3.5rem, 6vw, 5.8rem);
  margin-bottom: 24px;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 90%;
  font-weight: 500;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-primary-button {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.hero-primary-button:hover {
  background: var(--blue-dark);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
}

.hero-secondary-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-secondary-button:hover {
  border-color: var(--ink);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: none;
  background: transparent;
  border-radius: 28px;
}

.hero-visual::before,
.hero-visual::after {
  content: none;
}

.landing-hero-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(7deg);
  transition: opacity 1800ms ease;
  will-change: opacity;
  backface-visibility: hidden;
  transform-origin: center center;
}

.landing-hero-image.is-active {
  opacity: 1;
}

.villain-section {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 120px 0;
  overflow: hidden;
}

.villain-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.4), transparent 50%),
    radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.4), transparent 50%);
}

.villain-content {
  position: relative;
  z-index: 2;
}

.villain-section h2 {
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  margin-bottom: 24px;
  color: #fff;
}

.villain-section p {
  font-size: 1.25rem;
  max-width: 720px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.orbit-section {
  padding: 140px 0;
  overflow: hidden;
  background: var(--app-backdrop-c);
}

.orbit-section::before {
  background: var(--app-backdrop-c);
}

.orbit-stage {
  position: relative;
  width: 100%;
  min-height: 620px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  padding: 80px 64px;
}

.orbit-center {
  position: relative;
  z-index: 10;
  width: min(560px, calc(100% - 32px));
  text-align: center;
  padding: 12px 24px;
}

.orbit-center h2 {
  color: var(--blue);
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.orbit-center h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

@keyframes orbit-spin {
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbit-spin-reverse {
  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes icon-counter-spin {
  100% {
    transform: rotate(-360deg);
  }
}

@keyframes icon-counter-spin-reverse {
  100% {
    transform: rotate(360deg);
  }
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px dashed rgba(37, 99, 235, 0.15);
  border-radius: 50%;
}

.ring-1 {
  width: min(660px, 78vw);
  height: min(660px, 78vw);
  animation: orbit-spin 34s linear infinite;
}

.ring-2 {
  width: min(860px, 96vw);
  height: min(860px, 96vw);
  animation: orbit-spin-reverse 48s linear infinite;
  border-color: rgba(244, 63, 94, 0.15);
}

.orbit-icon {
  position: absolute;
  width: 58px;
  height: 58px;
  background: var(--surface);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
  border: 2px solid;
  color: var(--blue);
}

.ring-1 .orbit-icon {
  animation: icon-counter-spin 34s linear infinite;
}

.ring-2 .orbit-icon {
  animation: icon-counter-spin-reverse 48s linear infinite;
}

.orbit-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-phone {
  top: 2%;
  left: calc(50% - 29px);
  border-color: var(--blue);
}

.icon-picture {
  bottom: 2%;
  left: calc(50% - 29px);
  border-color: var(--yellow);
  color: var(--yellow);
}

.icon-home {
  top: 16%;
  right: 14%;
  border-color: var(--blue);
}

.icon-location {
  top: 58%;
  left: 8%;
  border-color: var(--red);
  color: var(--red);
}

.icon-mail {
  bottom: 16%;
  right: 14%;
  border-color: var(--yellow);
  color: var(--yellow);
}

.core-features-section {
  padding-top: 0;
}

.section-title-centered,
.gallery-section h2,
.pricing-section h2,
.final-cta h2 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  text-align: center;
  color: var(--ink);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.08);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 800;
  font-family: var(--font-body);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

.gallery-section {
  text-align: center;
  background: var(--surface);
  padding-top: 100px;
  border-top: 1px solid var(--line);
}

.gallery-section::before {
  background: var(--surface);
}

.gallery-section > .container > p {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 64px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(15, 23, 42, 0.9));
  z-index: 1;
}

.gallery-item-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.gallery-item-content h4 {
  font-size: 1.8rem;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
}

.gallery-item-content p {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 600;
}

.g-1 { background: linear-gradient(135deg, #f43f5e 0%, #f59e0b 100%); }
.g-2 { background: linear-gradient(120deg, #3b82f6 0%, #8b5cf6 100%); }
.g-3 { background: linear-gradient(to top, #10b981 0%, #3b82f6 100%); }
.g-4 { background: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%); }

.pricing-section {
  text-align: center;
  background: var(--bg);
}

.pricing-section::before {
  background: var(--bg);
}

.pricing-lead {
  color: var(--muted);
  font-size: 1.15rem;
  margin-top: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 860px;
  margin: 64px auto 0;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.pricing-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.08);
  position: relative;
  transform: scale(1.02);
}

.pricing-card h3 {
  font-size: 1.5rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 800;
}

.pricing-card.featured h3 {
  color: var(--blue);
}

.pricing-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.price {
  font-size: 4rem;
  font-family: var(--font-display);
  margin: 16px 0 8px;
  color: var(--ink);
  line-height: 1;
}

.price-subcopy {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 600;
}

.pricing-card ul {
  text-align: left;
  margin: 32px 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.pricing-card ul li {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.pricing-card ul li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.pricing-button {
  width: 100%;
}

.final-cta {
  text-align: center;
  padding: 120px 0;
  background: var(--ink);
  color: #fff;
}

.final-cta h2 {
  margin-bottom: 24px;
  color: #fff;
}

.landing-final-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 18px 40px;
  border: none;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.4);
}

.landing-footer {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.landing-footer p {
  font-weight: 600;
}

.landing-footer-actions,
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.landing-footer a,
.legal-page a {
  color: var(--accent-dark);
  text-decoration: none;
}

.landing-footer a:hover,
.legal-page a:hover {
  text-decoration: underline;
}

.legal-page {
  padding-top: 56px;
  padding-bottom: 120px;
}

.legal-card {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.legal-intro {
  max-width: 70ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-copy h2 {
  margin: 28px 0 10px;
  font-size: 1.3rem;
}

.legal-copy p {
  max-width: 72ch;
  color: var(--ink);
}

.legal-copy h2:first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  .container,
  .landing-hero-shell {
    width: min(100% - 20px, 760px);
  }

  .landing-hero-shell {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 60px;
  }

  .hero-visual {
    order: -1;
    max-width: min(74vw, 360px);
    margin: 0 auto;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 22px !important;
    overflow: visible;
  }

  .landing-hero-image {
    border-radius: 22px !important;
    width: 84%;
  }

  .hero-copy h1 {
    font-size: 3.5rem;
  }

  .orbit-stage {
    min-height: 520px;
    padding: 64px 28px;
  }

  .ring-1 {
    width: min(520px, 84vw);
    height: min(520px, 84vw);
  }

  .ring-2 {
    width: min(680px, 104vw);
    height: min(680px, 104vw);
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .villain-section {
    padding: 80px 24px;
  }
}

@media (max-width: 600px) {
  .public-nav-button {
    display: none;
  }

  .container,
  .landing-hero-shell {
    width: calc(100% - 20px);
  }

  .hero-copy h1 {
    font-size: 2.9rem;
  }

  .orbit-center {
    padding: 34px 28px;
    width: min(360px, calc(100% - 24px));
  }

  .orbit-center h2 {
    font-size: 2.8rem;
  }

  .orbit-center h3 {
    font-size: 0.96rem;
  }

  .orbit-icon {
    width: 48px;
    height: 48px;
  }

  .orbit-icon svg {
    width: 23px;
    height: 23px;
  }

  .icon-phone,
  .icon-picture {
    left: calc(50% - 24px);
  }

  .icon-phone {
    top: 2%;
  }

  .icon-picture {
    bottom: 2%;
  }

  .icon-location {
    top: 58%;
    left: 8%;
  }
}

html[data-theme="dark"] {
  --bg: #101522;
  --surface: #1a1f2a;
  --surface-soft: #222734;
  --surface-blue: #262c39;
  --surface-pink: #2b2430;
  --ink: #f2f2ec;
  --muted: #9ea7b8;
  --line: #31384a;
  --line-strong: #434a5d;
  --accent: #f7e588;
  --accent-dark: #e7ce63;
  --pink: #ff8cab;
  --green: #4ade80;
  --amber: #f7e588;
  --danger: #ff8cab;
  --shadow: 0 24px 54px rgba(2, 6, 23, 0.4);
  --surface-rgb: 26, 31, 42;
  --bg-rgb: 16, 21, 34;
  --header-glass-start: rgba(16, 21, 34, 0.98);
  --header-glass-mid: rgba(16, 21, 34, 0.86);
  --panel-glass: rgba(26, 31, 42, 0.94);
  --panel-shadow: 0 18px 38px rgba(2, 6, 23, 0.32);
  --history-menu-bg: rgba(26, 31, 42, 0.98);
  --history-menu-shadow: 0 20px 40px rgba(2, 6, 23, 0.48);
  --status-success-bg: rgba(22, 163, 74, 0.16);
  --status-success-ink: #86efac;
  --danger-soft-bg: rgba(255, 140, 171, 0.12);
  --danger-soft-border: rgba(255, 140, 171, 0.26);
  --tile-muted-bg: #232936;
  --app-backdrop-a: rgba(247, 229, 136, 0.05);
  --app-backdrop-b: rgba(255, 255, 255, 0.03);
  --app-backdrop-c: #0d1220;
  --app-backdrop-d: #151b2b;
  --blue: #f7e588;
  --blue-dark: #e7ce63;
}

html[data-theme="dark"] .site-shell {
  padding: 0;
}

html[data-theme="dark"] .site-header {
  background: linear-gradient(180deg, rgba(13, 18, 32, 0.98) 0%, rgba(13, 18, 32, 0.82) 80%, rgba(13, 18, 32, 0) 100%);
}

html[data-theme="dark"] .header-shell,
html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] .panel-surface,
html[data-theme="dark"] .brief-panel,
html[data-theme="dark"] .preview-panel,
html[data-theme="dark"] .drawer-panel,
html[data-theme="dark"] .modal-panel,
html[data-theme="dark"] .account-dropdown {
  background: linear-gradient(180deg, rgba(26, 31, 42, 0.98), rgba(19, 24, 34, 0.96));
  border-color: var(--line);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .nav-link,
html[data-theme="dark"] .account-trigger,
html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .nav-button,
html[data-theme="dark"] .menu-link,
html[data-theme="dark"] .segment-button,
html[data-theme="dark"] .tab-button,
html[data-theme="dark"] .pill-button,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .mini-button,
html[data-theme="dark"] .choice-chip {
  background: #262c39;
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active,
html[data-theme="dark"] .tab-button.active,
html[data-theme="dark"] .workflow-card {
  background: #222734;
}

html[data-theme="dark"] .secondary-button {
  background: #2c2c2c;
  border-color: #404040;
  color: #f5f5f5;
}

html[data-theme="dark"] .primary-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a1a;
}

html[data-theme="dark"] .villain-section h2,
html[data-theme="dark"] .villain-section p {
  color: var(--bg);
}

html[data-theme="dark"] .villain-section p {
  opacity: 0.88;
}

html[data-theme="dark"] .final-cta {
  background: var(--bg);
  color: var(--ink);
}

html[data-theme="dark"] .final-cta h2 {
  color: var(--ink);
}

html[data-theme="dark"] .landing-final-cta-button {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, var(--app-backdrop-a), transparent 34%),
    radial-gradient(circle at top right, var(--app-backdrop-b), transparent 28%),
    linear-gradient(180deg, var(--app-backdrop-c) 0%, var(--app-backdrop-d) 100%);
}

body.overlay-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  font-family: var(--font-body);
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
.brand-lockup strong,
.account-subscription {
  font-family: var(--font-display);
}

.site-shell {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 36px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-bottom: 14px;
  background: linear-gradient(180deg, var(--header-glass-start) 0%, var(--header-glass-mid) 80%, rgba(var(--bg-rgb), 0) 100%);
}

.header-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-glass);
  backdrop-filter: blur(14px);
  box-shadow: var(--panel-shadow);
}

.brand-lockup,
.public-nav,
.header-tools,
.page-identity,
.view-header,
.view-actions,
.selection-summary,
.inline-actions,
.sidebar-section-heading,
.section-heading,
.brief-actions,
.panel-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-lockup strong {
  display: block;
  font-size: 1rem;
  font-family: 'Nunito', 'Avenir Next', 'Segoe UI', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
}

.brand-tagline {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent;
  font-weight: 800;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, 0.24));
}

.page-identity {
  align-items: center;
  flex: 1 1 320px;
}

.app-brand-lockup {
  flex: 1 1 auto;
  min-width: 0;
}

.header-workspace-field {
  min-width: min(420px, 100%);
  width: min(420px, 100%);
}

.header-tools,
.public-nav {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.app-header-shell {
  flex-wrap: wrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 420px;
  flex-wrap: wrap;
  min-width: 0;
}

.app-frame {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding: 0 16px;
}

.site-main,
.view-shell,
.landing-studio,
.create-workbench,
.brief-panel,
.preview-panel,
.field {
  min-width: 0;
}

body.public-mode .app-frame {
  grid-template-columns: 1fr;
}

.app-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: none;
}

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

.sidebar-card,
.panel-surface,
.brief-panel,
.preview-panel,
.drawer-panel,
.modal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(var(--surface-rgb), 0.98), rgba(var(--surface-rgb), 0.94));
  box-shadow: var(--shadow);
}

.sidebar-card {
  padding: 8px;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
}

.sidebar-divider {
  height: 1px;
  margin: 6px 8px;
  background: var(--line);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(var(--surface-rgb), 0.72);
  border: 1px solid var(--line);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.18);
}

.nav-badge {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 800;
}

.nav-link.active .nav-badge {
  color: #fff;
  background: var(--blue);
}

.nav-text strong,
.nav-text span {
  display: block;
}

.nav-text strong {
  font-size: 0.84rem;
}

.nav-text span { display: none; }

.primary-button,
.secondary-button,
.ghost-button,
.pill-button,
.icon-button,
.nav-button,
.menu-link,
.segment-button,
.tab-button,
.mini-button,
.choice-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

button,
.primary-button,
.secondary-button,
.ghost-button,
.pill-button,
.icon-button,
.nav-button,
.menu-link,
.segment-button,
.tab-button,
.mini-button,
.choice-chip {
  border-radius: var(--radius-pill);
  border: none;
}

.primary-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

.secondary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.ghost-button,
.nav-button,
.menu-link,
.segment-button,
.tab-button,
.choice-chip,
.pill-button,
.icon-button,
.mini-button {
  border: 1px solid var(--line);
  background: var(--surface);
}

.theme-toggle-button {
  min-width: 42px;
  width: 42px;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
}

.mobile-theme-toggle-button {
  width: 100%;
  min-width: 0;
  font-size: 1.2rem;
}

.pill-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.pill-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.pill-button.danger {
  border-color: var(--danger-soft-border);
  background: var(--danger-soft-bg);
  color: var(--danger);
}

button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover,
.nav-button:hover,
.menu-link:hover,
.segment-button:hover,
.tab-button:hover,
.mini-button:hover,
.choice-chip:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.pill-icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
}

.pill-icon-button.danger {
  border-color: var(--danger-soft-border);
  background: var(--danger-soft-bg);
  color: var(--danger);
}

.logo-slot {
  display: grid;
  gap: 10px;
}

.logo-slot-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.logo-slot-summary {
  min-width: 0;
}

.logo-slot-toggle {
  display: grid;
  gap: 2px;
  justify-items: start;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
}

.logo-slot-toggle strong {
  font-size: 0.98rem;
}

.logo-slot-toggle span {
  color: var(--muted);
  font-size: 0.82rem;
}

.logo-slot-body {
  display: grid;
  gap: 10px;
  padding: 0 10px 10px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.logo-slot.collapsed .logo-slot-body {
  display: none;
}

.logo-slot.collapsed {
  background: var(--surface-soft);
}

.logo-slot.collapsed .logo-slot-head {
  opacity: 0.92;
}

.logo-slot.excluded {
  opacity: 0.68;
  background: var(--tile-muted-bg);
}

.logo-slot.excluded .asset-thumb {
  filter: grayscale(0.2);
}

.brief-history-dropdown {
  position: relative;
}

.brief-history-input-shell {
  position: relative;
  min-width: 0;
}

.brief-history-menu {
  position: absolute;
  z-index: 12;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--history-menu-bg);
  box-shadow: var(--history-menu-shadow);
}

.brief-history-menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.brief-history-menu-use {
  min-width: 0;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 9px 11px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brief-history-menu-arrow {
  color: var(--muted);
  font-size: 0.72rem;
}

.brief-history-menu-item.selected .brief-history-menu-use {
  border-color: var(--line-strong);
  background: var(--surface-blue);
}

.brief-history-menu-delete {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--danger);
}

.brief-history-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.compact-pill {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.78rem;
}

.ghost-button:hover,
.icon-button:hover,
.nav-button:hover,
.menu-link:hover,
.tab-button:hover,
.choice-chip:hover {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.danger-outline,
.danger-link {
  color: var(--danger);
}

.mobile-only {
  display: none;
}

.overline,
.choice-tag,
.metric-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--blue);
}

.muted,
.tab-helper,
.selection-meta {
  color: var(--muted);
}

.muted-inline {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: var(--radius);
  background: var(--status-success-bg);
  color: var(--status-success-ink);
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.account-menu {
  position: relative;
}

.account-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px 5px 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(var(--surface-rgb), 0.98), rgba(var(--surface-rgb), 0.9));
  color: var(--ink);
}

.account-avatar {
  width: 36px;
  height: 36px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.account-copy strong,
.account-copy span {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-name {
  font-weight: 600;
}

.account-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.account-subscription {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: none;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 40;
}

.account-dropdown.open {
  display: grid;
  gap: 4px;
}

.mobile-account-panel {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  min-width: 0;
}

.mobile-account-panel span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-account-panel > span:last-child {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.mobile-workspace-field {
  width: 100%;
}

.menu-link {
  width: 100%;
  justify-content: flex-start;
}

.view-shell {
  display: grid;
  gap: 14px;
}

.view-header {
  justify-content: space-between;
  align-items: flex-start;
}

.view-header h2,
.compact-heading h2 {
  font-size: 1.35rem;
}

.create-workbench {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(360px, 1.18fr);
  gap: 14px;
  align-items: start;
}

.redesign-workbench {
  grid-template-columns: minmax(460px, 1.2fr) minmax(300px, 0.8fr);
  gap: 14px;
}

.brief-panel,
.preview-panel {
  padding: 14px;
}

.brief-panel {
  display: grid;
  gap: 12px;
}

.redesign-brief-panel {
  gap: 14px;
  background: rgba(var(--surface-rgb), 0.94);
}

.redesign-preview-panel {
  gap: 12px;
  background: rgba(var(--surface-rgb), 0.9);
  padding-inline: 12px;
  max-width: 100%;
  position: sticky;
  top: calc(var(--header-height) + 18px);
  max-height: calc(100vh - var(--header-height) - 34px);
  overflow: auto;
}

.brief-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 2px;
}

.brief-intro h2 {
  font-size: 1.55rem;
  line-height: 1.05;
}

.brief-reset-button {
  min-height: 36px;
  padding-inline: 12px;
  margin-left: auto;
  align-self: flex-start;
}

.workflow-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.8), rgba(255, 255, 255, 0.96));
}

.accordion-card {
  padding: 0;
}

.workflow-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  list-style: none;
  cursor: pointer;
}

.workflow-summary-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.workflow-summary-button:hover,
.workflow-summary-button:focus-visible {
  transform: none;
  box-shadow: none;
  background: transparent;
}

.workflow-summary-split {
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr) auto;
  align-items: center;
}

.workflow-summary-split .step-card-head {
  padding-right: 0;
  width: 100%;
}

.workflow-summary-split .step-title-single-line {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.workflow-summary-split .workflow-summary-copy {
  justify-self: end;
  text-align: right;
}

.workflow-summary-split .workflow-summary-template-mini,
.workflow-summary-split .workflow-summary-row,
.workflow-summary-split .workflow-summary-summary-group {
  justify-items: end;
  text-align: right;
}

.workflow-summary-split .summary-palette,
.workflow-summary-split .summary-logo-row,
.workflow-summary-split .summary-thumb-strip {
  justify-content: flex-end;
}

.workflow-summary::-webkit-details-marker {
  display: none;
}

.workflow-summary-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  justify-self: end;
  text-align: right;
}

.workflow-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.workflow-summary-row-tight {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.workflow-summary-template-mini {
  display: grid;
  gap: 8px;
  min-width: 0;
  justify-items: end;
}

.workflow-summary-thumbs-single {
  justify-content: flex-end;
}

.workflow-summary-row-assets {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.workflow-summary-thumbs,
.summary-logo-row,
.summary-thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.summary-upload {
  width: 38px;
  min-height: 38px;
  padding: 0;
}

.summary-upload .template-upload-plus {
  width: 28px;
  height: 28px;
  font-size: 0.95rem;
}

.summary-logo-thumb .asset-thumb {
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.summary-logo-thumb {
  width: 40px;
  height: 40px;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
}

.summary-template-thumb {
  width: 52px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
}

.summary-template-thumb .asset-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

.summary-template-thumb .asset-thumb img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.18);
}

.summary-thumb-empty {
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.8);
}

.summary-thumb-empty::after {
  content: '+';
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.workflow-summary-summary-group {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.workflow-summary-mini-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.summary-palette .palette-strip-swatch {
  width: 12px;
  height: 12px;
}

.summary-palette,
.summary-logo-row,
.summary-thumb-strip {
  justify-content: flex-end;
}

.workflow-summary-text strong {
  font-size: 0.95rem;
}

.workflow-summary-text-mini {
  gap: 4px;
}

.workflow-summary-style,
.workflow-summary-note {
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-summary-style {
  font-weight: 700;
}

.workflow-summary-note {
  max-width: 100%;
}

.workflow-panel-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.flyer-details-accordion {
  display: grid;
  gap: 12px;
}

.workflow-card:has(.flyer-details-accordion) {
  position: relative;
}

.brief-collapsed-summary {
  position: absolute;
  top: 18px;
  right: 18px;
  max-width: min(42%, 420px);
  pointer-events: none;
}

.brief-collapsed-summary .workflow-summary-summary-group {
  justify-items: end;
  text-align: right;
}

.brief-collapsed-summary .workflow-summary-note {
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}

.flyer-details-accordion > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  list-style: none;
  min-height: 42px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.flyer-details-accordion > summary::-webkit-details-marker {
  display: none;
}

.flyer-details-accordion[open] > summary {
  color: var(--ink);
}

.flyer-details-accordion[open] + .brief-collapsed-summary {
  display: none;
}

.flyer-details-accordion[open] .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.flyer-details-accordion .brief-fields {
  padding-top: 2px;
}

.brief-summary-grid {
  display: grid;
  gap: 12px;
}

.brief-summary-row {
  align-items: start;
}

.brief-summary-field input {
  font-size: 1.12rem;
  font-weight: 800;
}

.brief-advanced-row {
  margin-top: 2px;
}

.step-card-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding-right: min(46%, 440px);
}

.step-card-head h3,
.preview-panel-head h3 {
  font-size: 1rem;
}

.step-title-single-line {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.02;
}

.step-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.compact-chip-row {
  gap: 10px;
}

.template-carousel-shell {
  display: grid;
  gap: 12px;
}

.template-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 154px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.template-card,
.template-upload-tile {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-elevated);
  box-shadow: 0 8px 18px rgba(90, 55, 156, 0.06);
  text-align: left;
  scroll-snap-align: start;
}

html[data-theme="light"] .template-card,
html[data-theme="light"] .template-upload-tile {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
}

html[data-theme="dark"] .template-card,
html[data-theme="dark"] .template-upload-tile {
  background: linear-gradient(180deg, rgba(33, 37, 58, 0.96), rgba(22, 25, 40, 0.98));
}

.template-card.selected {
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(111, 73, 216, 0.15);
}

.template-card .asset-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
}

.template-card-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.template-card-body strong,
.template-card-body .muted {
  overflow-wrap: anywhere;
}

.template-card-body strong {
  font-size: 0.9rem;
  line-height: 1.1;
}

.template-card-body .muted {
  font-size: 0.8rem;
  line-height: 1.15;
}

.template-card-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.template-upload-tile {
  align-content: start;
  justify-items: start;
  min-height: 100%;
  border-style: dashed;
  background:
    radial-gradient(circle at top left, rgba(111, 73, 216, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 244, 252, 0.98));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text);
}

html[data-theme="dark"] .template-upload-tile {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(31, 35, 53, 0.98), rgba(20, 23, 38, 0.98));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f5f7ff;
}

.template-upload-plus {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe28e, #c595ff);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(197, 149, 255, 0.25);
}

.template-carousel-empty {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 140px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: rgba(18, 22, 35, 0.72);
  color: var(--text-muted);
}

.template-upload-tile:hover,
.template-upload-tile:focus-visible {
  border-color: rgba(197, 149, 255, 0.75);
  transform: translateY(-1px);
}

.template-upload-tile .template-card-body strong {
  color: #f8faff;
}

.template-upload-tile .template-card-body .muted {
  color: rgba(240, 244, 255, 0.68);
}

.style-tag-stack {
  display: grid;
  gap: 8px;
}

.template-upload-tile .template-card-body strong {
  font-size: 1rem;
}

.compact-note-field textarea {
  min-height: 76px;
}

.compact-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.selection-card-wide {
  grid-column: 1 / -1;
}

.brand-quick-preview {
  display: grid;
  gap: 10px;
}

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

.logo-quick-thumb {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 16px rgba(90, 55, 156, 0.07);
}

.logo-quick-thumb .asset-thumb {
  width: 100%;
  height: 100%;
  border-radius: 999px;
}

.logo-quick-thumb.selected {
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(111, 73, 216, 0.18);
}

.preview-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 0;
}

.preview-panel-head,
.redesign-preview-panel .flyer-preview-card {
  max-width: 100%;
}

.redesign-preview-panel::-webkit-scrollbar {
  width: 8px;
}

.redesign-preview-panel::-webkit-scrollbar-thumb {
  background: rgba(111, 73, 216, 0.24);
  border-radius: 999px;
}

.redesign-preview-panel .flyer-canvas {
  min-height: 420px;
}

.redesign-preview-panel .preview-size-controls {
  width: min(176px, calc(100% - 20px));
}

.preview-panel-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ghost-icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  box-shadow: none;
}

.ghost-icon-button:hover {
  background: #fff;
}

.generate-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.generate-footer .generate-orbit-button {
  min-width: 180px;
}

.compact-heading {
  justify-content: space-between;
  align-items: flex-start;
}

.brief-fields,
.stack-form {
  display: grid;
  gap: 11px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.compact-field {
  min-width: 190px;
}

.field span {
  font-size: 0.82rem;
  font-weight: 800;
  color: #374151;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.hero-field input {
  min-height: 48px;
  font-size: 1.1rem;
  font-weight: 800;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 73, 216, 0.14);
}

.brief-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.menu-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(250, 252, 249, 0.9);
  padding: 0;
}

.menu-section summary {
  min-height: 40px;
  padding: 9px 11px;
  font-weight: 800;
  cursor: pointer;
}

.menu-section > *:not(summary) {
  margin: 0 10px 10px;
}

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

.choice-chip.selected {
  border-color: var(--accent);
  background: var(--surface-blue);
  color: var(--accent);
}

.choice-chip {
  background: rgba(255, 255, 255, 0.96);
}

.choice-chip:hover {
  box-shadow: 0 8px 16px rgba(90, 55, 156, 0.08);
}

.preview-panel {
  display: grid;
  gap: 14px;
}

.flyer-preview-card {
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: #131426;
}

.dynamic-preview-card {
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  transition: transform 220ms ease;
  position: relative;
}

.mock-toolbar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #111827;
}

.mock-toolbar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0.55;
}

.flyer-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #6f8aff, #cb69d5 58%, #ff9e52);
}

.preview-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(var(--preview-guide-width, 320px), calc(100% - 84px));
  height: min(var(--preview-guide-height, 320px), calc(100% - 84px));
  transform: translate(-50%, -50%);
  border: 2px dotted rgba(255, 255, 255, 0.58);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.07)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12),
    0 18px 40px rgba(15, 23, 42, 0.08);
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.preview-guide::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.18) 18%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  opacity: 0.85;
  pointer-events: none;
}

.preview-guide::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.42), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.18), transparent 24%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.flyer-photo {
  position: absolute;
  inset: 0;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  opacity: 0.88;
  z-index: 0;
}

.flyer-photo.empty-photo {
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.28), transparent 28%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0.16) 10px, transparent 10px, transparent 22px);
}

.flyer-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 6px;
  padding: 18px;
  color: #fff;
}

.flyer-copy h3 {
  max-width: 12ch;
  font-size: 1.15rem;
  line-height: 1.02;
}

.flyer-copy p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
}

.preview-size-controls {
  width: min(180px, calc(100% - 24px));
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 247, 239, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(26, 46, 34, 0.1);
  pointer-events: auto;
}

.redesign-preview-panel .preview-size-controls-overlay,
.preview-size-controls-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 20;
}

.preview-size-meta {
  margin-bottom: 6px;
  color: rgba(17, 17, 17, 0.58);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-size-grid {
  display: grid;
  gap: 2px;
}

.size-quick-select {
  display: grid;
  gap: 0;
}

.size-quick-select-value {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 28px;
}

.preview-size-controls select {
  width: 100%;
  min-height: 24px;
  padding: 1px 20px 1px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  appearance: none;
  color: #111111;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: none;
}

.size-quick-select-arrow {
  position: absolute;
  right: 0;
  color: #6b6b6b;
  font-size: 0.72rem;
  line-height: 1;
}

.flyer-pill {
  justify-self: start;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.64rem;
  font-weight: 900;
}

.asset-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.asset-menu-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.redesign-preview-panel .generate-orbit,
.generate-orbit {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.generate-anchor {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 12;
}

.redesign-preview-panel .generate-orbit-button,
.generate-orbit-button {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  min-width: 132px;
  min-height: 60px;
  padding: 10px 16px;
  justify-content: center;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: center;
  line-height: 1;
}

.generate-button-label {
  font-size: 1rem;
  font-weight: 800;
}

.generate-button-cost {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.82;
}

.redesign-preview-panel .orbit-thumb,
.orbit-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--radius)) rotate(calc(var(--angle) * -1));
  animation: orbit 11s linear infinite;
  animation-delay: var(--delay);
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.24));
}

.orbit-thumb.orbit-chip {
  display: inline-grid;
  place-items: center;
  width: auto;
  min-width: 42px;
  max-width: 132px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.88);
  color: #172033;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.generate-orbit .preview-size-controls-overlay {
  z-index: 20;
}

.generate-orbit.generating .orbit-thumb {
  animation-duration: var(--spin-duration, 1.05s);
  animation-direction: normal;
}

.orbit-thumb .mini-thumb {
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.78);
}

@keyframes orbit {
  to {
    transform: translate(-50%, -50%) rotate(calc(var(--angle) + 360deg)) translateX(var(--radius)) rotate(calc((var(--angle) + 360deg) * -1));
  }
}

.selection-card {
  display: grid;
  gap: 10px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(243, 245, 250, 0.92);
}

.selection-summary {
  justify-content: space-between;
  align-items: stretch;
  gap: 10px;
}

.selection-summary h3 {
  margin-top: 2px;
  font-size: 1.02rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.selection-meta {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.selection-summary .ghost-button {
  align-self: flex-start;
  border-radius: 14px;
  min-height: 36px;
  padding: 8px 12px;
}

html[data-theme="dark"] .selection-card {
  background: linear-gradient(180deg, rgba(31, 36, 50, 0.98), rgba(24, 28, 40, 0.98));
  border-color: rgba(97, 111, 145, 0.28);
}

html[data-theme="dark"] .selection-summary .ghost-button {
  border: 1px solid rgba(65, 72, 89, 0.95);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(44, 49, 67, 0.98), rgba(34, 38, 53, 0.98));
  color: #f5f7ff;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .selection-summary .ghost-button:hover,
html[data-theme="dark"] .selection-summary .ghost-button:focus-visible {
  border-color: rgba(197, 149, 255, 0.7);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(48, 54, 73, 0.98), rgba(39, 43, 59, 0.98));
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.mini-thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-thumb,
.mini-thumb-more {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
}

.mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-thumb span {
  display: none;
}

.mini-thumb.thumb-fallback img {
  display: none;
}

.mini-thumb.thumb-fallback span {
  display: block;
}

.landing-studio {
  display: grid;
  gap: 18px;
}

.landing-copy {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.landing-copy h2 {
  font-size: 3rem;
  line-height: 0.98;
}

.landing-copy .muted {
  font-size: 1.08rem;
}

.public-workbench {
  grid-template-columns: minmax(320px, 0.8fr) minmax(360px, 1.2fr);
}

.public-header-shell {
  gap: 18px;
}

.public-nav-button {
  background: transparent;
  color: var(--muted);
  min-height: 40px;
  padding-inline: 14px;
}

.landing-page {
  display: grid;
  gap: 28px;
}

.landing-hero,
.landing-section,
.landing-cta {
  border: 1px solid rgba(202, 185, 234, 0.72);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 60px rgba(90, 55, 156, 0.08);
  backdrop-filter: blur(16px);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 24px;
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.landing-hero::before,
.landing-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.75;
  pointer-events: none;
}

.landing-hero::before {
  width: 220px;
  height: 220px;
  right: -40px;
  top: -40px;
  background: radial-gradient(circle, rgba(111, 73, 216, 0.22), rgba(111, 73, 216, 0));
}

.landing-hero::after {
  width: 280px;
  height: 280px;
  left: -80px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(196, 74, 196, 0.18), rgba(196, 74, 196, 0));
}

.hero-copy,
.section-heading-block,
.poster-copy,
.quote-panel,
.faq-item {
  display: grid;
  gap: 12px;
}

.hero-copy {
  align-content: center;
  padding: 6px 0;
}

.hero-kicker {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-copy h1 {
  font-size: clamp(2.9rem, 6vw, 5.1rem);
  line-height: 0.93;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

.hero-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-primary-button,
.hero-secondary-button {
  min-height: 50px;
  padding-inline: 22px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(202, 185, 234, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-visual {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 420px;
  transform: none;
}

.landing-hero-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: inherit;
  box-shadow: none;
}

.poster-stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 0.92;
}

.poster-card {
  position: absolute;
  inset: auto;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 26px 70px rgba(64, 42, 128, 0.18);
}

.poster-card-back {
  inset: 7% 14% 8% 4%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 240, 255, 0.8)),
    linear-gradient(135deg, rgba(111, 73, 216, 0.16), rgba(196, 74, 196, 0.14));
  transform: rotate(-8deg);
  padding: 22px;
}

.poster-card-front {
  inset: 0 0 0 13%;
  background:
    linear-gradient(160deg, rgba(243, 238, 255, 0.98) 0%, rgba(255, 244, 251, 0.94) 56%, rgba(255, 255, 255, 0.98) 100%);
  overflow: hidden;
}

.poster-card-front::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 22%, rgba(115, 156, 255, 0.4), transparent 22%),
    radial-gradient(circle at 86% 18%, rgba(243, 114, 168, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(111, 73, 216, 0.12), rgba(255, 153, 84, 0.12));
}

.poster-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(111, 73, 216, 0.12);
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.poster-lines {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.poster-lines span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(111, 73, 216, 0.18), rgba(196, 74, 196, 0.08));
}

.poster-lines span:nth-child(1) { width: 72%; }
.poster-lines span:nth-child(2) { width: 54%; }
.poster-lines span:nth-child(3) { width: 66%; }

.poster-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  right: -30px;
  bottom: -20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb36b, #ff7f9c 58%, #8f74ff);
  opacity: 0.9;
  filter: blur(1px);
}

.poster-avatar {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.poster-avatar-main {
  top: 48px;
  left: 42px;
  width: 132px;
  height: 150px;
  background: linear-gradient(160deg, #7a67ff, #cf5bb7 68%, #ff9a62);
  transform: rotate(-10deg);
}

.poster-avatar-accent {
  top: 124px;
  right: 58px;
  width: 96px;
  height: 110px;
  background: linear-gradient(160deg, #1f1836, #44347d);
  transform: rotate(10deg);
}

.poster-copy {
  position: absolute;
  left: 38px;
  right: 36px;
  bottom: 34px;
  z-index: 1;
}

.poster-copy strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.95;
}

.poster-copy p {
  max-width: 22ch;
  color: rgba(35, 22, 55, 0.72);
  line-height: 1.5;
}

.landing-section,
.landing-cta {
  padding: 24px;
}

.landing-section-alt {
  background: linear-gradient(180deg, rgba(249, 246, 255, 0.96), rgba(255, 255, 255, 0.88));
}

.section-heading-block {
  max-width: 760px;
}

.section-heading-block h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-heading-block .muted {
  font-size: 1rem;
  line-height: 1.7;
}

.benefit-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.benefit-card,
.step-card,
.quote-panel,
.faq-item {
  border: 1px solid rgba(202, 185, 234, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(90, 55, 156, 0.05);
}

.benefit-card,
.step-card {
  padding: 20px;
}

.benefit-card h3,
.step-card h3,
.faq-item summary {
  font-size: 1.1rem;
  line-height: 1.15;
}

.benefit-card p,
.step-card p,
.faq-item p,
.use-case-item p {
  color: var(--muted);
  line-height: 1.65;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(111, 73, 216, 0.12), rgba(196, 74, 196, 0.14));
  color: var(--accent-dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
}

.use-cases-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  margin-top: 18px;
}

.use-cases-list {
  display: grid;
  gap: 10px;
}

.use-case-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 18px 18px 16px;
  border: 1px solid rgba(202, 185, 234, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.use-case-dot {
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f49d8, #ff9a62);
}

.quote-panel {
  align-content: center;
  padding: 24px;
  background: linear-gradient(145deg, rgba(111, 73, 216, 0.09), rgba(255, 154, 98, 0.11));
}

.quote-copy {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.faq-item {
  padding: 18px 20px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 10px;
}

.landing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at left center, rgba(111, 73, 216, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(249, 241, 255, 0.88));
}

.landing-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.landing-cta-actions {
  justify-content: flex-end;
}

.release-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  background: #fff1f2;
  color: #991b1b;
}

.release-alert a {
  font-weight: 900;
  color: var(--danger);
}

.setup-panel {
  display: grid;
  gap: 12px;
}

.setup-panel h2 {
  font-size: 1.65rem;
}

.setup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.setup-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: #374151;
  font-size: 0.86rem;
  font-weight: 800;
}

.panel-surface {
  padding: 16px;
}

.section-heading {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tab-button.active {
  border-color: var(--accent);
  background: var(--surface-blue);
  color: var(--accent);
}

.asset-grid,
.history-grid,
.choice-grid,
.metric-grid,
.stat-grid,
.billing-stat-grid,
.action-grid,
.value-grid,
.process-grid {
  display: grid;
  gap: 12px;
}

.asset-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 10px;
  align-items: start;
  margin: 12px 0;
}

.folder-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.folder-chip {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.folder-chip.drop-hover {
  border-color: var(--accent);
  background: var(--surface-blue);
}

.folder-chip button {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 7px 9px;
}

.folder-chip > button:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}

.folder-chip > button:first-child span {
  color: var(--muted);
  font-size: 0.75rem;
}

.folder-chip.active {
  border-color: var(--accent);
  background: var(--surface-blue);
}

.folder-delete {
  width: 28px;
  color: var(--danger) !important;
}

.folder-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.folder-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
}

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.history-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.choice-grid,
.stat-grid,
.billing-stat-grid,
.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.billing-summary-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.billing-summary-item {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  padding: 0;
}

.billing-summary-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 110px;
}

.billing-summary-item strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.asset-card,
.history-card,
.choice-card,
.stat-card,
.metric-card,
.action-card,
.value-card,
.process-card,
.logo-slot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.asset-card[draggable="true"] {
  cursor: grab;
}

.asset-card[draggable="true"]:active {
  cursor: grabbing;
}

.asset-card.selected,
.history-card.selected,
.choice-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.asset-card {
  border-radius: 18px 18px 12px 12px;
}

.asset-thumb,
.history-thumb {
  border-radius: 16px 16px 0 0;
}

.asset-toggle,
.history-select,
.choice-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
}

.asset-thumb,
.history-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-soft);
  overflow: hidden;
}

.asset-thumb img,
.history-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-filetype {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, #f9fafb 0, #f9fafb 10px, #eef2ff 10px, #eef2ff 20px);
}

.asset-thumb.thumb-fallback img {
  display: none;
}

.asset-thumb.thumb-fallback .thumb-filetype {
  display: grid;
}

.asset-body,
.history-body,
.choice-body {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 0 0 12px 12px;
  background: var(--surface);
}

.folder-tag {
  justify-self: start;
  padding: 4px 7px;
  border-radius: var(--radius);
  background: var(--surface-blue);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.history-actions {
  padding: 0 10px 10px;
}

.palette-editor {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.inline-heading {
  margin-bottom: 0;
}

.palette-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}

.palette-swatch-field {
  display: grid;
  grid-template-columns: 34px 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.palette-swatch {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.palette-swatch-field input[type="color"] {
  width: 42px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.palette-swatch-field input[type="text"] {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
}

.palette-set-list {
  display: grid;
  gap: 12px;
}

.brand-info-panel {
  padding: 0;
  overflow: hidden;
}

.brand-info-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
  list-style: none;
  cursor: pointer;
}

.brand-info-summary::-webkit-details-marker {
  display: none;
}

.brand-info-chev {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.brand-info-panel[open] .brand-info-chev {
  transform: rotate(180deg);
}

.brand-info-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.brand-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-palette-actions {
  padding: 0 2px;
}

.brand-drawer-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.brief-history-field {
  display: grid;
  gap: 8px;
}

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

.history-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  overflow: hidden;
}

.history-chip.selected {
  border-color: var(--accent);
  background: var(--surface-blue);
}

.history-chip-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.history-chip-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--muted);
  font: inherit;
  line-height: 1;
}

.history-chip-delete:hover {
  background: rgba(220, 38, 38, 0.12);
  color: var(--danger);
}

.brief-history-note {
  display: flex;
  justify-content: flex-end;
}

.section-heading-spaced {
  margin-top: 6px;
}

.palette-help-row {
  margin-top: -4px;
}

.palette-set-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
}

.palette-set-card.active {
  border-color: var(--accent);
  background: var(--surface-blue);
}

.palette-set-head {
  display: grid;
  gap: 10px;
}

.palette-name-field {
  margin: 0;
}

.palette-set-actions {
  flex-wrap: wrap;
}

.palette-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.palette-strip-swatch {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 999px;
}

.picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.picker-folder-toolbar {
  margin: 0;
}

.logo-slot-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.logo-slot-head .asset-thumb {
  width: 72px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.history-body strong,
.asset-body strong {
  font-size: 0.95rem;
}

.preview-frame {
  min-height: 240px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111827;
  overflow: hidden;
}

.preview-frame img {
  max-height: 44vh;
  width: auto;
}

.preview-placeholder {
  color: #fff;
  padding: 24px;
  text-align: center;
}

.history-layout,
.billing-summary-grid,
.billing-layout,
.dashboard-grid,
.admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.history-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.history-layout > .panel-surface:nth-child(3) {
  grid-column: 1 / -1;
}

.history-layout > .panel-surface:nth-child(1),
.history-layout > .panel-surface:nth-child(2) {
  min-width: 0;
}

.admin-columns > .panel-surface {
  width: 100%;
}

.admin-subscription-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1fr) minmax(110px, 0.7fr) auto auto;
  gap: 10px;
  align-items: end;
}

.data-table {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
}

.empty-state {
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.large-empty-state {
  min-height: 360px;
}

.drawer-panel,
.modal-panel,
.preview-panel,
.panel-surface,
.sidebar-card,
.brief-panel {
  border-radius: var(--radius);
  border: 4px solid rgba(var(--surface-rgb), 0.92);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.drawer-panel,
.modal-panel {
  position: fixed;
  z-index: 60;
  background: var(--surface);
}

.modal-panel {
  left: 50%;
  top: 50%;
  width: min(560px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  transform: translate(-50%, -50%);
  padding: 16px;
}

.drawer-panel {
  right: 16px;
  top: 16px;
  bottom: 16px;
  width: min(520px, calc(100% - 32px));
  overflow: auto;
}

.side-drawer {
  left: 16px;
  right: auto;
}

.drawer-header,
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-header .icon-button,
.modal-header .icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
}

.drawer-content,
.drawer-stack,
.auth-panels {
  display: grid;
  gap: 12px;
}

.drawer-content {
  padding: 16px;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px 0;
}

.segment-button.active {
  border-color: var(--accent);
  background: var(--surface-blue);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.auth-form,
.auth-provider-panel,
.stack-list {
  display: grid;
  gap: 12px;
}

.auth-panels {
  padding: 16px;
}

.auth-fallback-message {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.95rem;
}

.overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100% - 36px));
}

.toast {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  box-shadow: var(--shadow);
}

.toast.error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.marketing-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.clerk-pricing-shell,
.clerk-pricing-table {
  width: 100%;
}

.clerk-pricing-table > * {
  width: 100%;
}

.paypal-buttons {
  min-height: 48px;
}

.loading-orb {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 1s linear infinite;
}

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

@media (max-width: 1120px) {
  .landing-hero,
  .benefit-grid,
  .steps-grid,
  .use-cases-shell,
  .landing-cta {
    grid-template-columns: 1fr;
  }

  .landing-cta {
    display: grid;
  }

  .create-workbench,
  .public-workbench,
  .history-layout,
  .billing-summary-grid,
  .billing-layout,
  .admin-columns {
    grid-template-columns: 1fr;
  }

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

  .library-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .history-layout {
    grid-template-columns: 1fr;
  }

  .history-layout > .panel-surface:nth-child(3) {
    grid-column: auto;
  }

  .site-shell {
    width: 100%;
    padding-top: 10px;
  }

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

  .app-sidebar {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .desktop-only,
  .workspace-select-field,
  .status-pill,
  .account-copy {
    display: none;
  }

  .header-shell {
    min-height: 60px;
  }

  .page-identity h1 {
    font-size: 1.22rem;
  }

  .landing-copy h2 {
    font-size: 2.2rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 340px;
  }

  .hero-visual,
  .landing-hero-image {
    border-radius: 22px !important;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .site-shell {
    width: 100%;
    padding: 10px 0 32px;
  }

  .app-frame {
    padding: 0 12px;
  }

  .header-shell {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand-lockup {
    min-width: 0;
    gap: 8px;
  }

  .app-brand-lockup {
    max-width: 100%;
  }

  .page-identity {
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    flex: 1 1 108px;
    min-width: 0;
  }

  .header-tools {
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
  }

  .desktop-theme-toggle-button {
    display: none;
  }

  .header-workspace-field {
    min-width: 0;
    width: 100%;
  }

  .top-nav {
    display: none !important;
  }

  .app-header-shell .account-menu {
    display: block !important;
    order: 1;
    flex: 0 1 min(154px, 39vw);
    max-width: min(154px, 39vw);
    min-width: 0;
  }

  .app-header-shell .account-trigger {
    max-width: 100%;
    min-height: 38px;
    padding: 4px 8px;
    gap: 0;
    border-radius: 18px;
  }

  .app-header-shell .account-avatar {
    display: none;
  }

  .app-header-shell .account-copy {
    display: grid;
    max-width: 100%;
  }

  .app-header-shell .account-copy strong,
  .app-header-shell .account-copy span {
    max-width: 100%;
  }

  .app-header-shell .account-subscription {
    font-size: 0.68rem;
  }

  .app-header-shell .account-dropdown {
    min-width: min(230px, calc(100vw - 24px));
  }

  .public-header-shell {
    min-height: 66px;
  }

  .public-header-shell .brand-lockup {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 54px);
  }

  .public-header-shell .brand-lockup strong,
  .public-header-shell .brand-tagline {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .public-header-shell .brand-tagline {
    max-width: 100%;
  }

  .public-header-shell .mobile-nav-trigger {
    margin-left: 0;
    margin-right: 2px;
  }

  .public-nav {
    display: none !important;
  }

  .mobile-nav-trigger {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
  }

  .mobile-nav-right-trigger {
    order: 2;
    margin-left: 0;
  }

  .app-header-shell .page-identity {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  .app-header-shell .header-tools {
    width: auto;
    flex: 0 0 auto;
  }

  .app-header-shell .workspace-select-field {
    display: none;
  }

  .app-header-shell .app-brand-lockup strong,
  .app-header-shell .app-brand-lockup .brand-tagline {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-header-shell .brand-mark {
    width: 34px;
    height: 34px;
  }

  .app-header-shell .app-brand-lockup {
    gap: 7px;
  }

  .app-header-shell .app-brand-lockup strong {
    font-size: 0.92rem;
  }

  .app-header-shell .app-brand-lockup .brand-tagline {
    display: none;
  }

  .workspace-select-field {
    display: none;
  }

  .drawer-button,
  .drawer-link,
  .mobile-sidebar-nav .nav-button {
    min-height: 44px;
    border-radius: 18px;
    font-size: 0.98rem;
  }

  .mobile-sidebar-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .mobile-sidebar-nav .nav-button {
    width: 100%;
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .brand-tagline {
    font-size: 0.72rem;
  }

  .landing-copy h2 {
    font-size: 2rem;
    line-height: 1.05;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .landing-copy .muted {
    font-size: 1rem;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .two-up,
  .asset-menu-grid {
    grid-template-columns: 1fr;
  }

  .palette-list {
    grid-template-columns: 1fr;
  }

  .palette-swatch-field {
    grid-template-columns: 30px 38px minmax(0, 1fr);
  }

  .palette-swatch-field .mini-button {
    grid-column: 1 / -1;
  }

  .brief-panel,
  .preview-panel,
  .panel-surface {
    padding: 12px;
  }

  .dynamic-preview-card {
    aspect-ratio: auto;
    min-height: 560px;
  }

  .flyer-canvas {
    min-height: 560px;
    padding-bottom: 112px;
  }

  .preview-guide {
    width: min(var(--preview-guide-width, 320px), calc(100vw - 168px), calc(100% - 84px));
    height: auto;
    aspect-ratio: var(--preview-guide-ratio, 1 / 1);
    max-height: calc(100% - 220px);
  }

  .preview-size-controls-overlay {
    top: auto;
    right: 14px;
    bottom: 14px;
    width: min(190px, calc(100% - 28px));
    transform: none;
  }

  .preview-size-meta {
    margin-bottom: 8px;
    text-align: left;
  }

  .preview-size-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .preview-size-controls select {
    min-height: 28px;
    padding: 2px 24px 2px 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .size-quick-select-arrow {
    right: 0;
  }

  .generate-anchor {
    top: 50%;
  }

  .flyer-copy {
    padding: 20px;
  }

  .flyer-copy h3 {
    font-size: 1.9rem;
  }

  .brief-actions {
    justify-content: stretch;
  }

  .brief-actions > * {
    flex: 1 1 140px;
  }

  .brief-collapsed-summary {
    position: static;
    max-width: none;
    margin-top: 6px;
  }

  .brief-collapsed-summary .workflow-summary-summary-group {
    justify-items: start;
    text-align: left;
  }

  .step-card-head {
    padding-right: 0;
  }

  .landing-page {
    gap: 18px;
  }

  .landing-hero,
  .landing-section,
  .landing-cta {
    padding: 18px;
    border-radius: 26px;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-lead {
    font-size: 0.98rem;
  }

  .hero-proof {
    gap: 8px;
  }

  .hero-proof span {
    width: 100%;
    justify-content: center;
  }

  .poster-stage {
    aspect-ratio: 1 / 1.02;
  }

  .poster-card-front {
    inset: 2% 0 0 6%;
  }

  .poster-card-back {
    inset: 9% 12% 10% 0;
  }

  .poster-avatar-main {
    top: 34px;
    left: 24px;
    width: 108px;
    height: 126px;
  }

  .poster-avatar-accent {
    top: 112px;
    right: 28px;
    width: 82px;
    height: 92px;
  }

  .poster-copy {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .poster-copy strong {
    font-size: 1.56rem;
  }
}
