/* Shared public media sizing. Diagram SVGs retain their own viewBox/layout. */
@media screen {
  :is(.public-marketing-shell main, main.home-rebuild) img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  :is(.public-marketing-shell main, main.home-rebuild) svg.lucide {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: none;
    flex: 0 0 auto;
    vertical-align: middle;
  }
  :is(.public-marketing-shell main, main.home-rebuild) :is(h2, h3, .content-icon, .plan-icon) svg.lucide {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }
  :is(.public-marketing-shell main, main.home-rebuild) :is(.button, .text-link, button, .eyebrow, .kicker, .demo-eyebrow) svg.lucide {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }
  .public-marketing-shell main .content-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  :is(.public-marketing-shell main, main.home-rebuild) :is(
    .workflow-preview, .preview-window, .preview-canvas, .demo-product-preview,
    .intelligence-demo, .home-hero-product
  ) { min-width: 0; max-width: 100%; box-sizing: border-box; }

  main.home-rebuild .home-hero-product .lifecycle {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
    transform: none;
  }
  main.home-rebuild .home-conversation { width: 100%; max-width: 100%; transform: none; }
  main.home-rebuild .home-product-view > .workflow-preview {
    width: 100%;
    margin-inline: 0;
    padding: clamp(12px, 3vw, 36px);
  }
  main.home-rebuild .home-product-view > .workflow-preview > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    transform: none;
  }
  main.home-rebuild .preview-shell { grid-template-columns: 44px minmax(0, 1fr); }
  main.home-rebuild .preview-canvas { min-width: 0; padding: clamp(12px, 2vw, 28px); }
  main.home-rebuild .preview-heading { gap: 12px; flex-wrap: wrap; align-items: center; }
  main.home-rebuild .preview-heading > div { min-width: 0; }
  @media (max-width: 600px) {
    main.home-rebuild .preview-shell { grid-template-columns: 32px minmax(0, 1fr); }
    main.home-rebuild .preview-list > div { min-width: 0; }
    main.home-rebuild .preview-list p { overflow-wrap: anywhere; }
  }
}
