/* Final visual system
   Calm Apple-like hierarchy and spacing meet Stripe-like product surfaces.
   This file loads after every page-specific stylesheet so one coherent system
   governs the complete public site and authenticated workspace. */

:root {
  --ink: #101114;
  --muted: #62646b;
  --line: #e4e4e9;
  --paper: #fff;
  --soft: #f5f5f7;
  --violet: #635bff;
  --violet-dark: #4539c6;
  --mint: #dff7ee;
  --radius: 20px;
  --shell: min(calc(100% - 48px), 1200px);
  --pn-wide: min(calc(100% - 48px), 1280px);
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
}

html { background: #fff; }

body {
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #dcd9ff; color: #111216; }

.shell,
.wp-shell,
.pricing-shell,
.pn-wide-section,
.pn-security-inner {
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
}

a { text-underline-offset: 4px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(99, 91, 255, .24);
  outline-offset: 3px;
}

/* Navigation */
.site-header {
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(17, 18, 22, .07);
  backdrop-filter: saturate(180%) blur(22px);
}

.header-inner {
  width: min(calc(100% - 48px), 1280px);
  height: 72px;
  gap: 24px;
}

.header-inner .header-logo {
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: 11px;
  background: #f1f2f4;
}

.brand { font-size: 18px; }
.brand .brand-wordmark,
.dashboard-brand .brand-wordmark,
.dashboard-mobile-brand .brand-wordmark {
  display: inline-flex;
  width: max-content;
  min-width: 0;
  flex: 0 0 auto;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0;
  white-space: nowrap;
}
.brand-wordmark .brand-tld {
  display: inline;
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}
.desktop-nav { gap: clamp(18px, 2vw, 30px); }

.desktop-nav > a,
.nav-trigger,
.text-action {
  color: #282a30;
  font-size: 14px;
  font-weight: 650;
}

.nav-menu {
  top: 38px;
  width: 310px;
  padding: 8px;
  border-color: #e4e4e9;
  border-radius: 15px;
  box-shadow: 0 18px 50px rgba(18, 24, 40, .12);
}

.nav-menu a { padding: 10px 11px; border-radius: 9px; font-size: 14px; }
.nav-menu a:hover { background: #f5f5f7; }
.nav-menu span { font-size: 12px; }

#menu-close {
  display: grid;
  padding: 0;
  place-items: center;
  line-height: 0;
}

#menu-close svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: square;
}

.header-actions .button,
.button,
.pricing-primary,
.plan-button {
  min-height: 44px;
  padding: 9px 18px;
  border-color: #111216;
  border-radius: 999px;
  background: #111216;
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  box-shadow: none;
}

.button:hover,
.pricing-primary:hover,
.plan-button:hover {
  border-color: #303137;
  background: #303137;
}

.button-secondary,
.pn-button-outline {
  border-color: #d4d4da;
  background: #fff;
  color: #24252a;
}

.button-secondary:hover,
.pn-button-outline:hover {
  border-color: #a9aab2;
  background: #f7f7f9;
  color: #111216;
}

/* Core type and rhythm */
.hero h1,
.page-hero h1,
.magazine-hero h1,
.article-page h1,
.wp-hero > h1,
.pricing-hero h1,
.auth-page-title,
.pn-hero-title {
  max-width: 1050px;
  margin: 0;
  color: #0b1b2b;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: wrap;
}

.lead,
.answer-first,
.page-hero-copy > .lead,
.wp-hero-copy > p,
.pricing-hero-copy > p {
  max-width: 820px;
  color: #5e6169;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
}

.section,
.pn-intro,
.pn-evaluation,
.pn-trust-section,
.pn-connect,
.pn-security,
.pn-editorial,
.pn-resource-index,
.wp-editorial-intro,
.wp-standards,
.wp-use-cases,
.wp-compatibility,
.wp-failure,
.wp-faq,
.wp-architecture,
.wp-feature-story,
.pricing-plans,
.pricing-comparison-wrap,
.pricing-estimator-wrap,
.pricing-capabilities,
.pricing-rules-wrap,
.pricing-examples {
  min-height: 0;
  padding-top: clamp(68px, 7vw, 96px);
  padding-bottom: clamp(68px, 7vw, 96px);
}

.section-heading,
.pn-section-heading,
.pn-connect-heading,
.pn-editorial-heading,
.wp-section-heading,
.pricing-section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-heading h2,
.split-copy h2,
.cta-band h2,
.pn-intro h2,
.pn-connect h2,
.pn-security h2,
.pn-editorial h2,
.pn-section-heading h2,
.pn-trust-heading h2,
.wp-editorial-intro h2,
.wp-section-heading h2,
.wp-feature-copy h2,
.wp-sources h2,
.wp-cta h2,
.pricing-section-heading h2,
.estimator-copy h2,
.rules-copy h2,
.allowance-planner-heading h2,
.pricing-close h2 {
  margin: 0 0 14px;
  color: #101114;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.section-heading p,
.split-copy > p,
.pn-section-heading > p,
.pn-connect-heading p,
.wp-section-heading > p,
.pricing-section-heading p {
  max-width: 760px;
  color: #666870;
  font-size: 17px;
  line-height: 1.55;
}

.soft-section { background: #f5f5f7; }

/* Reusable content surfaces */
.feature-grid,
.article-grid,
.policy-grid,
.guide-hub-grid,
.article-related-grid {
  gap: 14px;
}

.feature-card,
.article-card,
.policy-grid article,
.resource-panel,
.guide-hub-card,
.article-related-grid article,
.guide-output-map,
.guide-start-note {
  min-height: 0;
  padding: 24px;
  border: 1px solid #e3e4e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.feature-card h3,
.article-card h3,
.article-card h2,
.policy-grid h3,
.resource-panel h3 {
  margin: 0 0 9px;
  color: #17181c;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.feature-card p,
.article-card p,
.policy-grid p,
.resource-panel > p {
  margin: 0;
  color: #666870;
  font-size: 15px;
  line-height: 1.55;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  border-radius: 11px;
  background: #eeecff;
  color: #5247cf;
}

.cta-band,
.subpage-cta {
  margin-top: 68px;
  margin-bottom: 68px;
  padding: 34px 38px;
  border: 1px solid #e2e2e7;
  border-radius: 22px;
  background: #f5f5f7;
}

.faq-list,
.pn-faq-list,
.wp-faq-list { max-width: 900px; gap: 9px; }

.faq-list details,
.pn-faq-list details,
.wp-faq-list details,
.designer-faq details {
  border: 1px solid #e3e4e8;
  border-radius: 14px;
  background: #fff;
}

.faq-list summary,
.pn-faq-list summary,
.wp-faq-list summary,
.designer-faq summary {
  padding: 17px 19px;
  font-size: 16px;
  font-weight: 700;
}

/* Homepage */
.pn-hero {
  min-height: 0;
  color: #fff;
  background: #0d1224;
}

.pn-hero::before { display: none; }

.pn-hero-grid {
  width: min(calc(100% - 48px), 1280px);
  min-height: 0;
  padding-top: 68px;
  padding-bottom: 72px;
  grid-template-columns: minmax(300px, .78fr) minmax(480px, 1.22fr);
  gap: 40px 70px;
}

.pn-hero-title {
  grid-column: 1 / -1;
  max-width: 1120px;
  color: #fff;
}

.pn-hero-copy > p { color: #c7cbd5; }
.pn-hero-notes { color: #aeb5c4; font-size: 13px; }
.pn-button-row { margin-top: 28px; }

.pn-button-row .button {
  min-height: 46px;
  padding: 10px 19px;
  border-radius: 999px;
  font-size: 14px;
}

.pn-hero .pn-button-light {
  border-color: #57d6b0;
  background: #57d6b0;
  color: #111216;
  box-shadow: 0 12px 30px rgba(87, 214, 176, .28);
}

.pn-hero .pn-button-light:hover {
  border-color: #35c89c;
  background: #35c89c;
  color: #071510;
}
.pn-hero-visual { border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .28); }

.pn-capability-band {
  padding: 18px max(24px, var(--site-gutter));
  background: #fff;
  color: #16171b;
  border-bottom: 1px solid #e8e8ec;
}

.pn-capability {
  min-height: 0;
  padding: 15px;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #e2e3e8;
  border-radius: 16px;
  background: #f5f5f7;
}

.pn-capability-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
}

.pn-capability-icon svg { width: 29px; height: 29px; }
.pn-capability h2 { color: #16171b; font-size: 17px; }
.pn-capability p { color: #6b6d74; font-size: 12px; }

.pn-intro,
.pn-evaluation,
.pn-trust-section,
.pn-connect,
.pn-security,
.pn-editorial,
.pn-resource-index {
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
}

.pn-trust-section,
.pn-security {
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
  padding-inline: 24px;
}

.pn-security-inner { width: 100%; }

.pn-fit-card,
.pn-principle-grid article,
.pn-connect-steps article,
.pn-control-list article {
  min-height: 0;
  padding: 24px;
  border: 1px solid #e2e4e9;
  border-radius: 17px;
  background: #fff;
}

.pn-stage,
.pn-stack-showcase,
.pn-security-visual {
  min-height: 0;
  border-radius: 22px;
}

.pn-editorial-heading { max-width: none; }

.pn-article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pn-article-grid article {
  min-height: 0;
  padding: 25px;
  border: 1px solid #e2e3e7;
  border-radius: 18px;
  background: #fff;
}

.pn-article-grid h3 {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.pn-article-grid h3 a { color: #15161a; text-decoration: none; }
.pn-article-grid h3 a:hover { color: #5146cb; }
.pn-article-grid p { margin: 0; color: #676970; font-size: 15px; }

.pn-editorial-action { justify-content: flex-start; margin-top: 24px; }
.pn-outline-link { min-height: 44px; padding: 9px 17px; border: 1px solid #d7d7dc; border-radius: 999px; color: #25262b; text-decoration: none; }
.pn-outline-link:hover { background: #f5f5f7; }

/* Public page heroes, documentation and editorial */
.page-hero,
.page-hero.compact,
.magazine-hero {
  min-height: 0;
  padding-top: 62px;
  padding-bottom: 58px;
  gap: 36px;
}

.has-breadcrumb .page-hero,
.has-breadcrumb .magazine-hero,
.has-breadcrumb .article-page { padding-top: 34px; }

.breadcrumb-bar { background: #fff; }
.breadcrumb { min-height: 46px; font-size: 13px; }

.magazine-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 14px;
}

.featured-story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 330px;
  padding: 34px;
  border-radius: 22px;
  background: #111827;
}

.featured-story::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(17, 24, 39, .02) 18%, rgba(17, 24, 39, .45) 56%, rgba(17, 24, 39, .96) 100%);
}

.featured-story-image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.featured-story-copy { position: relative; z-index: 1; }

.featured-story h2 { font-size: clamp(28px, 3vw, 38px); }
.featured-story p { color: #c6cad4; }
.featured-story .text-link { color: #fff; }

.topic-list {
  padding: 27px;
  border-color: #e2e3e8;
  border-radius: 22px;
}

.topic-list h2 { font-size: 20px; }
.topic-list a { padding: 13px 0; font-size: 15px; }

.docs-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 54px; }
.docs-content { max-width: 820px; }
.docs-content h2 { margin-top: 44px; font-size: 30px; }

.code-card,
.integration-method pre,
.site-install-card pre {
  border-radius: 14px;
  background: #151925;
  box-shadow: none;
}

/* Guide directories, hubs and articles */
.guide-hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.guide-hub-card {
  min-height: 0;
  padding: 25px;
  border-radius: 18px;
}

.guide-hub-card h3 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.guide-hub-card p { margin-bottom: 22px; font-size: 15px; }
.guide-hub-card > strong { font-size: 13px; color: #5247ce; }

.guide-output-map {
  margin-top: 34px;
  padding: 28px;
  background: #f5f5f7;
}

.guide-output-map dl { gap: 10px; background: transparent; }
.guide-output-map dl > div { padding: 18px; border-radius: 12px; background: #fff; }
.guide-start-note { border-left: 0; background: #f5f5f7; }

.guide-hub-page .magazine-hero { padding: 52px 0 44px; border-bottom: 0; }

.hub-guide-layout,
.public-guide-layout {
  width: min(calc(100% - 48px), 1280px);
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  padding-top: 34px;
  padding-bottom: 84px;
}

.hub-toc-inner {
  padding: 18px;
  border: 1px solid #e3e4e8;
  border-radius: 15px;
  background: #f7f7f9;
}

.hub-toc h2 { font-size: 15px; }
.hub-toc nav a { padding: 8px 9px; border-left: 0; border-radius: 8px; font-size: 13px; }
.hub-toc nav a:hover,
.hub-toc nav a:focus-visible,
.hub-toc nav a[aria-current="location"] { border-left: 0; background: #ececf2; color: #342bb0; }

.hub-guide-main,
.public-guide-main {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hub-body,
.article-body { color: #303238; font-size: 17px; line-height: 1.68; }

.hub-body h2,
.article-body h2 {
  margin-top: 48px;
  padding-top: 0;
  border-top: 0;
  color: #15161a;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.article-page { width: min(calc(100% - 48px), 980px); padding-top: 52px; padding-bottom: 84px; }
.article-page > header { max-width: 900px; }
.article-body { max-width: 760px; margin-top: 42px; }
.article-featured-image { margin-top: 38px; border-radius: 20px; }

.article-related {
  margin-top: 54px;
  padding: 28px;
  border: 0;
  border-radius: 20px;
  background: #f5f5f7;
}

.article-related-grid article { background: #fff; }
.article-next { margin-top: 48px; padding: 27px; border-radius: 18px; background: #eef0ff; }

/* Product explanation pages and working tools */
.public-guide-main .section,
.draft-review-shell,
.ai-stop-cases,
.ai-failure-strip,
.notification-lab-shell,
.designer-scenarios,
.designer-faq {
  padding-top: 64px;
  padding-bottom: 64px;
}

.how-stage {
  padding: 26px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.how-stage + .how-stage { border-top: 0; }

.how-stage-heading {
  display: block;
  margin-bottom: 16px;
}

.how-stage-heading h2 {
  width: 100%;
  max-width: 860px;
  font-size: clamp(26px, 3vw, 36px);
}

.notification-lab-workspace,
.draft-review-columns,
.generation-contract,
.request-boundary {
  border-color: #e0e2e8;
  border-radius: 20px;
  box-shadow: 0 20px 55px rgba(27, 34, 55, .07);
}

.notification-lab-shell,
.designer-scenarios,
.designer-faq,
.ai-stop-cases,
.ai-failure-strip { background: #f5f5f7; }

/* Web Push product page */
.wp-page { background: #fff; }

.wp-hero {
  width: min(calc(100% - 48px), 1280px);
  min-height: 0;
  padding-top: 54px;
  padding-bottom: 58px;
  gap: 30px;
}

.wp-page .wp-proof-band {
  width: min(calc(100% - 48px), 1280px);
  min-height: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #e2e3e8;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  color: #17181c;
}

.wp-proof-band div { padding: 20px; }
.wp-proof-band div + div { border-left: 1px solid #e6e7eb; }
.wp-proof-band strong { margin-bottom: 5px; color: #17181c; font-size: 17px; }
.wp-proof-band span { max-width: none; color: #6b6d74; font-size: 12px; }

.wp-editorial-intro,
.wp-standards,
.wp-use-cases,
.wp-compatibility,
.wp-failure,
.wp-faq,
.wp-architecture,
.wp-feature-story { width: min(calc(100% - 48px), 1280px); margin-inline: auto; }

.wp-source-grid article,
.wp-flow article,
.wp-use-case-grid article,
.wp-compat-grid article,
.wp-failure-grid article {
  min-height: 0;
  padding: 24px;
  border: 1px solid #e2e3e8;
  border-radius: 17px;
  background: #fff;
}

.wp-sources { margin-bottom: 68px; padding: 30px; border-radius: 18px; background: #f5f5f7; }

.wp-cta {
  padding: 74px 24px;
  background: #f5f5f7;
}

.wp-cta > div {
  min-height: 0;
  padding: 48px;
  border: 1px solid #e2e2e7;
  border-radius: 26px;
  background: #fff;
  color: #111216;
}

.wp-cta p { color: #666870; }

/* Pricing */
.pricing-page { background: #fff; }
.pricing-shell { width: min(calc(100% - 48px), 1280px); }

.pricing-hero {
  color: #111216;
  background: #f5f5f7;
}

.pricing-hero::after { display: none; }

.pricing-hero-grid {
  min-height: 0;
  padding-top: 62px;
  padding-bottom: 68px;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 38px 70px;
}

.pricing-hero h1 { color: #111216; }
.pricing-hero-copy > p { color: #5f6168; }
.pricing-text-link { color: #292a30; }

.pricing-hero-facts { gap: 10px; }
.pricing-fact {
  min-height: 0;
  padding: 18px;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid #e1e2e6;
  border-radius: 15px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

.pricing-fact::after { display: none; }
.pricing-fact:hover { transform: none; border-color: #c6c7cd; background: #fff; }
.pricing-fact-icon { width: 48px; height: 48px; border-radius: 12px; }
.pricing-fact-icon svg { width: 28px; height: 28px; }
.pricing-fact-copy strong { color: #17181c; font-size: 18px; }
.pricing-fact-copy p { margin-top: 4px; color: #6a6c73; font-size: 13px; }

.plan-grid { gap: 14px; }
.plan-card { position: relative; isolation: isolate; padding: 28px; border: 1px solid #e1e2e7; border-radius: 20px; }
.plan-growth,
.plan-scale { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.plan-growth:hover,
.plan-scale:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(22, 27, 43, .12); }
.plan-card-link { position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.plan-card-link:focus-visible { outline: 3px solid #635bff; outline-offset: -5px; }
.plan-scale .plan-card-link:focus-visible { outline-color: #25cad1; }
.plan-card .plan-button { position: relative; z-index: 2; }
.plan-free { background: #fff; }
.plan-growth { border-color: #b9b4ff; }
.plan-scale { background: #151925; }
.plan-icon { width: 54px; height: 54px; flex-basis: 54px; border-radius: 14px; background: #efeeff; }
.plan-icon svg { width: 34px; height: 34px; }
.plan-card h3 { font-size: 24px; }

@media (prefers-reduced-motion: reduce) {
  .plan-growth,
  .plan-scale { transition: none; }
  .plan-growth:hover,
  .plan-scale:hover { transform: none; }
}

.pricing-close { padding: 72px 0; background: #f5f5f7; }
.pricing-close-card { padding: 38px; border: 1px solid #e2e2e7; border-radius: 22px; box-shadow: none; }

/* Authentication */
.auth-page { background: #f5f5f7; }

.auth-shell {
  width: min(calc(100% - 48px), 1180px);
  min-height: 0;
  padding: 52px 0 76px;
}

.auth-page-title {
  margin-bottom: 30px;
  font-size: clamp(40px, 4.6vw, 62px);
}

.auth-layout {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr);
  border-color: #dedfe4;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(22, 29, 48, .08);
}

.auth-showcase {
  padding: clamp(34px, 4vw, 58px);
  background: #151925;
}

.auth-showcase::after { display: none; }
.auth-showcase h1 { font-size: clamp(36px, 3.8vw, 52px); }
.auth-showcase-copy > p { color: #c6cad4; font-size: 17px; }
.auth-benefits { gap: 13px; margin-top: 34px; }
.auth-benefits article { grid-template-columns: 42px minmax(0, 1fr); gap: 13px; }
.auth-benefit-icon { width: 42px; height: 42px; border-radius: 11px; }
.auth-benefit-icon svg { width: 23px; height: 23px; }
.auth-benefits strong { font-size: 15px; }
.auth-benefits article div span { font-size: 13px; }
.auth-product-preview { margin-top: 38px; border-radius: 15px; }
.auth-form-panel { padding: clamp(34px, 4vw, 58px); }
.auth-card h2 { font-size: clamp(30px, 3vw, 40px); }

/* Dashboard */
.dashboard-page { background: #f7f7f9; }

.dashboard-page .dashboard-nav {
  border-right: 1px solid #e1e2e7;
  background: #fff;
  color: #191b21;
}

.dashboard-page .dashboard-nav .dashboard-brand,
.dashboard-page .dashboard-nav .dashboard-brand:hover { color: #17181c; }
.dashboard-brand small { color: #858893; }
.dashboard-page .dashboard-nav nav a { color: #5d6270; }
.dashboard-page .dashboard-nav nav a:hover,
.dashboard-page .dashboard-nav nav a.active { background: #f0efff; color: #342bb0; }
.dashboard-page .dashboard-nav nav a.active { box-shadow: inset 3px 0 #635bff; }
.dashboard-account { border-top-color: #e7e7eb; }
.dashboard-account strong { color: #17181c; }
.dashboard-account small { color: #858893; }
.dashboard-account button { color: #5a50c8; }
.dashboard-account-avatar { background: #efeeff; color: #463bc0; }

.dashboard-appbar { background: rgba(255, 255, 255, .9); }
.dashboard-page .dashboard-heading h1 { font-size: clamp(28px, 3vw, 38px); }
.dashboard-page .dashboard-panel,
.dashboard-metrics article,
.campaign-row,
.dashboard-empty-illustrated { border-color: #e1e2e7; box-shadow: none; }
.next-send-card { background: #151925; }
.live-preview .preview-stage,
.notification-preview-board { background: #202536; }

.usage-program-link {
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e6e7eb;
  color: #62646b;
  font-size: 13px;
}

.usage-program-link a { color: #4539c6; font-weight: 750; }

.program-summary {
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, .9fr);
  gap: 40px;
  align-items: end;
  overflow: hidden;
  background: #f5f5f7;
}

.program-summary-active { border-color: #cce8df; background: #f0f9f6; }
.program-status-copy h2 { margin: 14px 0 10px; font-size: clamp(28px, 3vw, 42px); }
.program-status-copy p { max-width: 680px; margin: 0; color: #62646b; }

.program-limit-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #dddfe5;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
}

.program-limit-grid div { min-width: 0; padding: 18px; }
.program-limit-grid div + div { border-left: 1px solid #e3e4e8; }
.program-limit-grid dt { color: #6b6d74; font-size: 11px; line-height: 1.35; }
.program-limit-grid dd { margin: 8px 0 0; font-size: 24px; font-weight: 780; letter-spacing: -.04em; }
.program-limit-grid dd span { display: block; color: #6b6d74; font-size: 10px; font-weight: 600; letter-spacing: 0; }

.program-layout {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 20px;
  align-items: start;
}

.program-decision,
.program-rules { padding: 28px; }
.program-decision h2,
.program-rules h2 { margin: 0 0 10px; font-size: 23px; }
.program-decision > p,
.program-rules > p { color: #62646b; }

.program-enrollment-form { margin-top: 24px; display: grid; gap: 13px; }
.program-enrollment-form label {
  padding: 17px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #dddfe5;
  border-radius: 13px;
  cursor: pointer;
}

.program-enrollment-form label:has(input:checked) { border-color: #8b83ff; background: #f7f6ff; }
.program-enrollment-form input { margin-top: 4px; accent-color: #635bff; }
.program-enrollment-form label span { color: #5f6168; font-size: 13px; }
.program-enrollment-form label strong { display: block; margin-bottom: 3px; color: #17181c; font-size: 14px; }
.program-enrollment-form .button { justify-self: start; margin-top: 8px; }

.program-revoke-form { margin-top: 22px; }
.program-consequence { margin-top: 16px; font-size: 12px; }
.program-rules ul { margin: 20px 0; padding: 0; display: grid; gap: 0; list-style: none; }
.program-rules li { padding: 14px 0; color: #62646b; font-size: 13px; }
.program-rules li + li { border-top: 1px solid #e6e7eb; }
.program-rules li strong { color: #222329; }

/* Legal pages keep the compact hero and the opening terms in one visual unit. */
.public-page-terms .page-hero.compact,
.public-page-privacy .page-hero.compact { padding-bottom: 28px; }

.public-page-terms .legal-body,
.public-page-privacy .legal-body {
  margin-top: 0;
  padding-top: 28px;
}

/* Footer */
.site-footer {
  margin-top: 0;
  padding-top: 58px;
  border-top: 1px solid #e5e5ea;
  background: #f5f5f7;
  color: #292a30;
}

.footer-grid { width: min(calc(100% - 48px), 1280px); gap: 34px; }
.footer-brand p { color: #73757c; }
.footer-grid h2 { color: #27282d; font-size: 12px; }
.footer-grid a { color: #5f6168; font-size: 13px; }
.footer-grid a:hover { color: #111216; }
.footer-bottom { margin-top: 46px; border-top-color: #dedee3; color: #7a7c83; font-size: 12px; }

/* Responsive system */
@media (max-width: 1100px) {
  .pn-hero-grid,
  .pricing-hero-grid { grid-template-columns: minmax(0, 1fr); }

  .pn-hero-title { grid-column: auto; }
  .pn-hero-visual { width: min(100%, 900px); }
  .guide-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-summary { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .magazine-layout,
  .docs-layout,
  .hub-guide-layout,
  .public-guide-layout,
  .auth-layout { grid-template-columns: minmax(0, 1fr); }

  .hub-toc-inner { position: static; }
  .hub-toc summary { margin-bottom: 0; }
  .hub-toc nav { margin-top: 12px; }
  .auth-showcase { min-height: 0; }
  .auth-product-preview { display: none; }
  .program-layout { grid-template-columns: minmax(0, 1fr); }
  .wp-page .wp-proof-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .wp-proof-band div:nth-child(3) {
    border-top: 1px solid #e6e7eb;
    border-left: 0;
  }

  .wp-proof-band div:nth-child(4) { border-top: 1px solid #e6e7eb; }
}

@media (max-width: 720px) {
  :root {
    --shell: min(calc(100% - 32px), 1200px);
    --pn-wide: min(calc(100% - 32px), 1280px);
  }

  .shell,
  .wp-shell,
  .pricing-shell,
  .pn-wide-section,
  .pn-security-inner,
  .header-inner,
  .pn-intro,
  .pn-evaluation,
  .pn-connect,
  .pn-editorial,
  .pn-resource-index,
  .wp-hero,
  .wp-editorial-intro,
  .wp-standards,
  .wp-use-cases,
  .wp-compatibility,
  .wp-failure,
  .wp-faq,
  .wp-architecture,
  .wp-feature-story,
  .article-page,
  .auth-shell {
    width: min(calc(100% - 32px), 1280px);
  }

  .header-inner { height: 64px; }
  .header-inner .header-logo { width: 34px; height: 34px; }

  .hero h1,
  .page-hero h1,
  .magazine-hero h1,
  .article-page h1,
  .wp-hero > h1,
  .pricing-hero h1,
  .auth-page-title,
  .pn-hero-title { font-size: clamp(36px, 10vw, 48px); }

  .page-hero,
  .page-hero.compact,
  .magazine-hero { padding-top: 42px; padding-bottom: 42px; }

  .section,
  .pn-intro,
  .pn-evaluation,
  .pn-trust-section,
  .pn-connect,
  .pn-security,
  .pn-editorial,
  .pn-resource-index,
  .wp-editorial-intro,
  .wp-standards,
  .wp-use-cases,
  .wp-compatibility,
  .wp-failure,
  .wp-faq,
  .wp-architecture,
  .wp-feature-story,
  .pricing-plans,
  .pricing-comparison-wrap,
  .pricing-estimator-wrap,
  .pricing-capabilities,
  .pricing-rules-wrap,
  .pricing-examples { padding-top: 54px; padding-bottom: 54px; }

  .pn-hero-grid { width: min(calc(100% - 32px), 1280px); padding-top: 44px; padding-bottom: 52px; }
  .pn-trust-section,
  .pn-security { padding-inline: 16px; }

  .pn-article-grid,
  .guide-hub-grid,
  .feature-grid,
  .article-grid,
  .policy-grid { grid-template-columns: minmax(0, 1fr); }

  .featured-story { min-height: 280px; padding: 26px; }
  .guide-output-map dl { grid-template-columns: minmax(0, 1fr); }
  .wp-cta { padding-inline: 16px; }
  .wp-cta > div { padding: 30px 24px; }
  .wp-page .wp-proof-band { width: min(calc(100% - 32px), 1280px); grid-template-columns: minmax(0, 1fr); }
  .wp-proof-band div + div { border-top: 1px solid #e6e7eb; border-left: 0; }
  .pricing-close-card { display: grid; padding: 30px 24px; }
  .auth-shell { padding-top: 36px; }
  .auth-page-title { margin-bottom: 22px; }
  .auth-showcase,
  .auth-form-panel { padding: 30px 24px; }
  .footer-grid { width: min(calc(100% - 32px), 1280px); }
  .program-summary,
  .program-decision,
  .program-rules { padding: 22px; }
  .program-limit-grid { grid-template-columns: minmax(0, 1fr); }
  .program-limit-grid div + div { border-top: 1px solid #e3e4e8; border-left: 0; }
  .usage-program-link { display: grid; gap: 7px; }
}

/* Final layout contract: introductions use their full shell, FAQ controls have
   one border system, and action labels stay on one line. Decorative eyebrow
   labels are intentionally absent from the templates. */
.button,
.how-inline-action,
.pn-outline-link,
.wp-outline-link {
  flex-shrink: 0;
  white-space: nowrap;
}

.public-page .page-hero > h1,
.public-page .page-hero > .page-hero-copy,
.public-page .page-hero .lead,
.magazine-hero > h1,
.magazine-hero > .lead,
.section-heading,
.section-heading > p,
.pn-section-heading,
.pn-section-heading > p,
.pricing-section-heading,
.pricing-section-heading > p {
  width: 100%;
  max-width: none;
}

.public-page-how-it-works .how-hero {
  grid-template-columns: minmax(0, 1fr);
}

.public-page-how-it-works .how-stage-heading {
  display: block;
}

.public-page-how-it-works .how-stage-heading h2,
.public-page-how-it-works .how-stage > p,
.public-page-how-it-works .how-faq details p {
  width: 100%;
  max-width: none;
}

.how-next-step > div { min-width: 0; }
.how-next-step .button { flex: 0 0 auto; }

.pn-faq .pn-section-heading { margin-bottom: 30px; }

.pn-faq-list {
  width: 100%;
  max-width: none;
  display: grid;
  gap: 10px;
  border-top: 0;
}

.pn-faq-list details {
  overflow: hidden;
  border: 1px solid #e1e2e7;
  border-radius: 15px;
  background: #fff;
}

.pn-faq-list summary {
  min-height: 68px;
  padding: 20px 64px 20px 22px;
  display: flex;
  align-items: center;
  font-size: 17px;
}

.pn-faq-list summary::after {
  top: 50%;
  right: 22px;
  width: 18px;
  height: 18px;
  content: "";
  background:
    linear-gradient(#635bff, #635bff) center / 18px 2px no-repeat,
    linear-gradient(#635bff, #635bff) center / 2px 18px no-repeat;
  transform: translateY(-50%);
}

.pn-faq-list details[open] summary::after {
  content: "";
  background: linear-gradient(#635bff, #635bff) center / 18px 2px no-repeat;
}

.pn-faq-list details > p {
  width: auto;
  max-width: none;
  margin: -2px 22px 22px;
  font-size: 15px;
}

/* Pricing is a comparison interface, so its plans and key facts use columns
   on desktop while all headings and explanations retain the full shell. */
.pricing-page .pricing-hero-grid {
  grid-template-columns: minmax(0, 1fr);
  column-gap: 0;
}

.pricing-page .pricing-hero-heading,
.pricing-page .pricing-hero-copy,
.pricing-page .pricing-hero-copy > p,
.pricing-page .pricing-hero-facts {
  width: 100%;
  max-width: none;
  grid-column: auto;
}

.pricing-page .pricing-hero-facts,
.pricing-page .plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-page .pricing-fact {
  grid-template-columns: 48px minmax(0, 1fr);
}

.pricing-page .allowance-planner-heading {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
}

.pricing-page .allowance-planner-grid {
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}

.pricing-page .allowance-assumptions {
  grid-template-columns: minmax(260px, .55fr) minmax(0, 1.45fr);
}

.pricing-page .allowance-assumptions ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-page .allowance-plan h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.pricing-page .allowance-plan h3 strong { color: #25cad1; }
.dashboard-nav nav { gap: 5px; }
.dashboard-appbar-context strong { font-size: 14px; }

@media (max-width: 1050px) {
  .pricing-page .plan-grid,
  .pricing-page .allowance-planner-heading,
  .pricing-page .allowance-planner-grid,
  .pricing-page .allowance-assumptions {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-page .allowance-inputs {
    border-right: 0;
    border-bottom: 1px solid var(--pricing-line);
  }
}

@media (max-width: 900px) {
  .pricing-page .pricing-hero-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .how-next-step { display: grid; }
  .how-next-step .button { justify-self: start; }
}

@media (max-width: 640px) {
  .pricing-page .allowance-assumptions ul {
    grid-template-columns: minmax(0, 1fr);
  }

  .button,
  .how-inline-action,
  .pn-outline-link,
  .wp-outline-link {
    max-width: 100%;
    font-size: 13px;
  }

  .pn-faq-list summary {
    min-height: 62px;
    padding: 17px 54px 17px 18px;
    font-size: 15px;
  }

  .pn-faq-list summary::after { right: 18px; }
  .pn-faq-list details > p { margin-right: 18px; margin-left: 18px; }
}

/* Sitewide section-introduction contract: a heading and the copy that explains
   it always share one vertical reading path. Functional content grids below
   the introduction remain unchanged. */
.section-heading,
.pn-section-heading,
.pn-connect-heading,
.pn-editorial-heading,
.wp-section-heading,
.pricing-section-heading,
.pricing-heading-split,
.allowance-planner-heading,
.notification-lab-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.section-heading > *,
.pn-section-heading > *,
.pn-connect-heading > *,
.pn-editorial-heading > *,
.wp-section-heading > *,
.pricing-section-heading > *,
.pricing-heading-split > *,
.allowance-planner-heading > *,
.notification-lab-heading > * {
  grid-column: 1;
}

/* Sitewide section rhythm: outer vertical spacing is intentionally half of
   the previous scale. Component interiors retain their original padding so
   cards, tables, forms, and controls do not become cramped. */
.section,
.pn-intro,
.pn-evaluation,
.pn-trust-section,
.pn-connect,
.pn-security,
.pn-editorial,
.pn-resource-index,
.wp-editorial-intro,
.wp-standards,
.wp-use-cases,
.wp-compatibility,
.wp-failure,
.wp-faq,
.wp-architecture,
.wp-feature-story,
.pricing-plans,
.pricing-comparison-wrap,
.pricing-estimator-wrap,
.pricing-capabilities,
.pricing-rules-wrap,
.pricing-examples {
  padding-top: clamp(34px, 3.5vw, 48px);
  padding-bottom: clamp(34px, 3.5vw, 48px);
}

.pn-hero-grid { padding-top: 34px; padding-bottom: 36px; }

.page-hero,
.page-hero.compact,
.magazine-hero { padding-top: 31px; padding-bottom: 29px; }

.has-breadcrumb .page-hero,
.has-breadcrumb .magazine-hero,
.has-breadcrumb .article-page { padding-top: 17px; }

.guide-hub-page .magazine-hero { padding-top: 26px; padding-bottom: 22px; }

.hub-guide-layout,
.public-guide-layout { padding-top: 17px; padding-bottom: 42px; }

.article-page { padding-top: 26px; padding-bottom: 42px; }
.article-body { margin-top: 21px; }
.article-featured-image { margin-top: 19px; }
.article-related { margin-top: 27px; }
.article-next { margin-top: 24px; }

.public-guide-main .section,
.draft-review-shell,
.ai-stop-cases,
.ai-failure-strip,
.notification-lab-shell,
.designer-scenarios,
.designer-faq { padding-top: 32px; padding-bottom: 32px; }

.how-stage { padding-top: 13px; padding-bottom: 13px; }

.hub-opening { margin-bottom: 22px; }
.hub-reading-path { margin-top: 31px; padding-top: 21px; }

.cta-band,
.subpage-cta { margin-top: 34px; margin-bottom: 34px; }

.wp-hero { padding-top: 27px; padding-bottom: 29px; }
.wp-sources { margin-bottom: 34px; }
.wp-cta { padding-top: 37px; padding-bottom: 37px; }

.pricing-page .pricing-hero-compact .pricing-shell { width: min(calc(100% - 48px), 1280px); max-width: none; }
.pricing-page .pricing-hero-compact .pricing-hero-grid { padding-top: 24px; padding-bottom: 5px; }
.pricing-page .pricing-hero-compact h1,
.pricing-page .pricing-hero-compact .answer-first { width: 100%; max-width: none; }
.pricing-page .pricing-hero-compact .answer-first { margin: 0; font-size: 16px; }
.pricing-page .pricing-hero-compact + .pricing-plans { padding-top: 10px; }
.pricing-faq { padding-top: 15px; padding-bottom: 39px; }
.pricing-close { padding-top: 36px; padding-bottom: 36px; }

.pn-platform { padding-top: 70px; padding-bottom: 70px; }
.pn-faq { padding-top: 65px; padding-bottom: 65px; }
.pn-final-cta { padding-top: clamp(34px, 4vw, 59px); padding-bottom: clamp(34px, 4vw, 59px); }
.sitemap-usage { margin-top: 22px; }

.auth-shell { padding-top: 26px; padding-bottom: 38px; }
.site-footer { padding-top: 29px; }

.public-page-terms .page-hero.compact,
.public-page-privacy .page-hero.compact { padding-bottom: 14px; }

.public-page-terms .legal-body,
.public-page-privacy .legal-body { padding-top: 14px; }

@media (max-width: 720px) {
  .pricing-page .pricing-hero-compact .pricing-shell { width: min(calc(100% - 32px), 1280px); }

  .section,
  .pn-intro,
  .pn-evaluation,
  .pn-trust-section,
  .pn-connect,
  .pn-security,
  .pn-editorial,
  .pn-resource-index,
  .wp-editorial-intro,
  .wp-standards,
  .wp-use-cases,
  .wp-compatibility,
  .wp-failure,
  .wp-faq,
  .wp-architecture,
  .wp-feature-story,
  .pricing-plans,
  .pricing-comparison-wrap,
  .pricing-estimator-wrap,
  .pricing-capabilities,
  .pricing-rules-wrap,
  .pricing-examples { padding-top: 27px; padding-bottom: 27px; }

  .page-hero,
  .page-hero.compact,
  .magazine-hero { padding-top: 21px; padding-bottom: 21px; }

  .has-breadcrumb .page-hero,
  .has-breadcrumb .magazine-hero,
  .has-breadcrumb .article-page { padding-top: 17px; }

  .pn-hero-grid { padding-top: 22px; padding-bottom: 26px; }
  .pn-platform { padding-top: 35px; padding-bottom: 35px; }
  .pn-faq { padding-top: 32.5px; padding-bottom: 32.5px; }
}

/* Authenticated onboarding and audience reporting */
.dashboard-page .dashboard-shell {
  display: grid;
  width: 100%;
  min-height: 100vh;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.dashboard-page .dashboard-nav {
  position: sticky;
  z-index: 105;
  top: 0;
  display: flex;
  width: 252px;
  height: 100vh;
  min-height: 0;
  flex-direction: column;
  align-self: start;
  padding: 20px 14px 14px;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid #e1e2e7;
  border-radius: 0;
  transform: none;
}

.dashboard-onboarding-card {
  margin-bottom: 16px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 18px;
  background: #17182c;
  color: #fff;
}

.dashboard-onboarding-card > div { display: flex; align-items: center; gap: 16px; }
.dashboard-onboarding-card h2 { margin: 0; color: #fff; font-size: 19px; }
.dashboard-onboarding-card p { margin: 3px 0 0; color: #c8cad5; font-size: 13px; }

.onboarding-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.onboarding-progress a {
  min-width: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 0 9px;
  border: 1px solid #e0e2e8;
  border-radius: 14px;
  background: #fff;
  color: #686d7b;
  text-decoration: none;
}

.onboarding-progress a > span { grid-row: 1 / 3; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #eff0f4; color: #6a6e7a; font-size: 13px; font-weight: 900; }
.onboarding-progress strong { overflow: hidden; color: #31333b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.onboarding-progress small { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.onboarding-progress a.current { border-color: #8c84f7; box-shadow: 0 0 0 3px rgba(99, 91, 255, .09); }
.onboarding-progress a.current > span { background: #635bff; color: #fff; }
.onboarding-progress a.complete > span { background: #dff7ee; color: #17654d; }

.onboarding-site-switcher {
  margin-bottom: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: end;
  gap: 10px;
  border: 1px solid #e0e2e8;
  border-radius: 13px;
  background: #fff;
}

.onboarding-site-switcher label { display: grid; flex: 1; gap: 4px; color: #656a78; font-size: 11px; font-weight: 750; }
.onboarding-site-switcher select { height: 40px; padding: 7px 10px; border: 1px solid #d8dae1; border-radius: 9px; background: #fff; }
.onboarding-site-switcher button { height: 40px; padding: 8px 14px; border: 0; border-radius: 9px; background: #17182c; color: #fff; font-weight: 750; }
.onboarding-site-switcher > .button { min-height: 40px; white-space: nowrap; }

.onboarding-site-gate { overflow: hidden; }
.onboarding-site-gate > header { display: flex; align-items: center; gap: 18px; padding: 26px 28px; background: linear-gradient(135deg, #f6f4ff 0%, #f4fbfa 100%); }
.onboarding-site-gate > header h2,
.onboarding-site-gate > header p,
.onboarding-site-gate-empty h3,
.onboarding-site-gate-empty p { margin: 0; }
.onboarding-site-gate > header h2 { color: #17182c; font-size: clamp(22px, 2.6vw, 34px); }
.onboarding-site-gate > header p { max-width: 850px; margin-top: 6px; color: #656b79; line-height: 1.55; }
.onboarding-site-gate-icon { display: grid; width: 54px; height: 54px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: #e8e6ff; color: #4d42c3; }
.onboarding-site-gate-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.onboarding-site-gate-form { display: grid; gap: 9px; padding: 28px; }
.onboarding-site-gate-form label { color: #343743; font-size: 13px; font-weight: 800; }
.onboarding-site-gate-form > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.onboarding-site-gate-form select { width: 100%; min-height: 52px; padding: 10px 42px 10px 14px; border: 1px solid #cfd3dc; border-radius: 12px; background: #fff; color: #222532; font: inherit; }
.onboarding-site-gate-form .button { min-height: 52px; }
.onboarding-site-gate > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px 28px; color: #737886; font-size: 13px; }
.onboarding-site-gate-empty { display: grid; gap: 7px; padding: 26px 28px 0; }
.onboarding-site-gate-empty p { color: #6b707d; }
.onboarding-first-site-form { padding-top: 20px; }

.dashboard-page .onboarding-step { margin-top: 12px; padding: 0; overflow: hidden; overflow: clip; }
.onboarding-step > header { padding: 20px 22px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; border-bottom: 1px solid #e7e8ed; }
.onboarding-step > header h2 { margin: 0; font-size: 19px; }
.onboarding-step > header p { margin: 3px 0 0; }
.onboarding-step-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #efeeff; color: #4d42c3; }
.onboarding-step-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-page .onboarding-step.is-complete { border-color: #b9dfcc; background: #f0faf5; box-shadow: 0 10px 28px rgba(36, 129, 90, .06); }
.onboarding-step.is-complete > header { background: #e8f7ef; border-bottom-color: #c9e7d8; }
.onboarding-step.is-complete .onboarding-step-icon { background: #dff7ee; color: #17654d; }
.onboarding-step.is-complete > header .status-chip { background: #d5f0e2; color: #17654d; }
.onboarding-step.is-complete .onboarding-instructions > div,
.onboarding-step.is-complete .installation-files article,
.onboarding-step.is-complete .installation-status { border-color: #c9e7d8; background: #e8f7ef; }
.onboarding-step.is-current { border-color: #aaa4fb; box-shadow: 0 12px 34px rgba(65, 54, 168, .08); }
.onboarding-step.is-locked { background: #fafafd; }
.onboarding-step.is-locked > header { border-bottom: 0; }
.onboarding-step.is-locked .onboarding-step-icon { background: #eff0f3; color: #8a8e99; }
.onboarding-locked-copy { margin: 0; padding: 0 22px 22px; color: #7a7e89; }

.onboarding-inline-form { margin: 0; padding: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; }
.onboarding-inline-form .button { min-height: 44px; }
.onboarding-site-record { padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.onboarding-site-record > div { display: grid; }
.onboarding-site-record span { color: #707481; font-size: 13px; }
.onboarding-site-record a,
.site-card-actions > a { color: #4f43c4; font-size: 13px; font-weight: 750; }

.onboarding-instructions { padding: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.onboarding-instructions > div { min-width: 0; padding: 17px; border-radius: 13px; background: #f6f6f8; }
.onboarding-instructions p { margin: 4px 0 12px; }
.onboarding-instructions code { display: block; margin: 8px 0; overflow-wrap: anywhere; color: #343641; font-size: 12px; }
.copy-action { padding: 5px 0; border: 0; background: transparent; color: #5145c5; font-size: 12px; font-weight: 750; cursor: pointer; }
.onboarding-combined-copy { padding: 0 22px 22px; }
.onboarding-combined-copy .button { min-height: 42px; }
.onboarding-check-form { padding: 0 22px 22px; display: flex; align-items: center; gap: 14px; }
.onboarding-check-form span { color: #737784; font-size: 12px; }

.installation-files { padding: 22px; display: grid; grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr); gap: 12px; }
.installation-files article { min-width: 0; padding: 19px; border: 1px solid #e3e4e9; border-radius: 14px; }
.installation-files p { margin: 5px 0 14px; }
.installation-files pre { max-height: 270px; margin: 14px 0 5px; padding: 16px; overflow: auto; border-radius: 11px; background: #17182c; color: #f3f2fa; font-size: 11px; line-height: 1.55; }
.installation-status { margin: 0 22px 22px; padding: 14px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; border-radius: 13px; background: #f5f5f8; }
.installation-status p { margin: 2px 0 0; }
.installation-pulse { width: 11px; height: 11px; border-radius: 50%; background: #b5b7c0; box-shadow: 0 0 0 5px rgba(181, 183, 192, .18); }
.installation-pulse.online { background: #32af83; box-shadow: 0 0 0 5px rgba(50, 175, 131, .14); }

.widget-permission-flow { padding: 18px 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 16px; border-bottom: 1px solid #e7e8ed; background: #fff; }
.widget-permission-flow > div { min-height: 74px; padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-content: center; border: 1px solid #e0e2e8; border-radius: 14px; background: #fafafd; }
.widget-permission-flow > div > span { width: 28px; height: 28px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 50%; background: #635bff; color: #fff; font-size: 12px; font-weight: 800; }
.widget-permission-flow p { margin: 0; color: #6b6f7b; font-size: 11px; }
.widget-brand-assistant { padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; border-bottom: 1px solid #e7e8ed; background: linear-gradient(135deg, #f6f4ff, #edf9f6); }
.widget-brand-assistant p { margin: 4px 0 0; color: #656975; font-size: 12px; }
.widget-brand-assistant > div:first-child { display: grid; gap: 3px; }
.widget-analysis-status { grid-column: 1 / -1; min-height: 18px; }
.widget-suggestion-grid { grid-column: 1 / -1; margin-top: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 10px; }
.widget-suggestion-grid[hidden] { display: none; }
.widget-suggestion-grid article { padding: 15px; display: grid; align-content: start; gap: 8px; border: 1px solid #dbdce5; border-radius: 13px; background: rgba(255, 255, 255, .92); }
.widget-suggestion-grid article p { min-height: 34px; margin: 0; }
.widget-suggestion-grid .button { justify-self: start; margin-top: 2px; }
.widget-suggestion-palette { display: flex; gap: 6px; }
.widget-suggestion-palette span { width: 25px; height: 25px; border: 1px solid rgba(20, 22, 30, .12); border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.widget-suggestion-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.widget-suggestion-meta span { padding: 4px 7px; border-radius: 999px; background: #f1f1f6; color: #666a76; font-size: 9px; font-weight: 800; text-transform: capitalize; }

.widget-designer { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); }
.widget-controls { padding: 16px; display: grid; gap: 10px; border-right: 1px solid #e7e8ed; background: #fafafd; }
.widget-controls fieldset { margin: 0; padding: 0; border: 0; }
.widget-controls legend,
.widget-controls > label,
.widget-control-row label { display: grid; gap: 5px; color: #4e5260; font-size: 12px; font-weight: 750; }
.widget-editor-section { padding: 14px; display: grid; gap: 11px; border: 1px solid #e1e2e8; border-radius: 13px; background: #fff; }
.widget-editor-heading { display: flex; align-items: center; gap: 10px; }
.widget-editor-heading > span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #eeeefe; color: #5148db; font-size: 11px; font-weight: 850; }
.widget-editor-heading > div { display: grid; gap: 2px; }
.widget-editor-heading strong { color: #24252c; font-size: 13px; }
.widget-editor-heading small { color: #747884; font-size: 10px; font-weight: 500; }
.widget-editor-section > label { display: grid; gap: 5px; color: #4e5260; font-size: 12px; font-weight: 750; }
.widget-editor-publish { border-color: #d9d5ff; background: #f7f6ff; }
.widget-template-grid { margin-top: 2px; display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 7px; }
.widget-template-grid label { cursor: pointer; }
.widget-template-grid input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.widget-template-grid span { min-height: 82px; padding: 11px; display: grid; align-content: start; gap: 4px; border: 1px solid #dedfe5; border-radius: 10px; background: #fff; }
.widget-template-grid input:checked + span { border-color: #756df0; background: #f5f4ff; box-shadow: 0 0 0 2px rgba(99, 91, 255, .1); }
.widget-template-grid strong { font-size: 12px; line-height: 1.2; }
.widget-template-grid small { color: #777b87; font-size: 9px; line-height: 1.35; }
.widget-editor-placement { grid-template-columns: minmax(0, 1fr) minmax(180px, .45fr); align-items: end; }
.widget-editor-message { grid-template-columns: minmax(0, 1fr) minmax(180px, .45fr); }
.widget-editor-message .widget-editor-heading { grid-column: 1 / -1; }
.widget-editor-message > label:nth-of-type(1) { grid-column: 1; grid-row: 2; }
.widget-editor-message > label:nth-of-type(2) { grid-column: 1 / -1; grid-row: 3; }
.widget-editor-message > label:nth-of-type(3) { grid-column: 2; grid-row: 2; }
.widget-controls input,
.widget-controls textarea,
.widget-controls select { width: 100%; padding: 10px 11px; border: 1px solid #d8dae1; border-radius: 9px; background: #fff; color: #25262d; }
.widget-controls .widget-template-grid input { width: 1px; padding: 0; border: 0; }
.widget-controls textarea { min-height: 88px; resize: vertical; }
.widget-control-row { display: grid; grid-template-columns: 1fr 170px; gap: 10px; }
.widget-brand-fields { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.widget-brand-fields > label:first-child { display: grid; gap: 5px; }
.widget-logo-toggle { min-height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid #d8dae1; border-radius: 9px; background: #fff; }
.widget-controls .widget-logo-toggle input { width: auto; }
.widget-color-fields { margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.widget-color-fields label { display: grid; gap: 5px; }
.widget-attribution-fields { padding-top: 13px !important; border-top: 1px solid #e5e6eb !important; }
.widget-attribution-fields > p { margin: 5px 0 10px; color: #717581; font-size: 10px; }
.widget-attribution-fields > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.widget-attribution-fields label { display: grid; gap: 5px; color: #4e5260; font-size: 11px; font-weight: 750; }
.widget-attribution-fields > small { display: block; margin-top: 9px; color: #5148db; font-size: 9px; font-weight: 800; }
.widget-controls .widget-color-fields input[type="color"] { height: 42px; padding: 4px; cursor: pointer; }
.widget-controls .button { justify-self: start; }

.widget-preview-panel {
  position: sticky;
  top: 74px;
  min-width: 0;
  max-height: calc(100vh - 86px);
  max-height: calc(100dvh - 86px);
  padding: 22px;
  align-self: start;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #f5f6f9;
}
.widget-preview-header { display: grid; gap: 12px; }
.widget-preview-header > div:first-child { display: grid; gap: 3px; }
.widget-preview-header strong { font-size: 13px; }
.widget-preview-header small { color: #717581; font-size: 10px; }
.widget-preview-device-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.widget-preview-device-tabs button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #d7d9e1; border-radius: 9px; background: #fff; color: #656a77; font-size: 10px; font-weight: 800; cursor: pointer; }
.widget-preview-device-tabs button.is-active { border-color: #756bf0; background: #f0efff; color: #3930a3; box-shadow: 0 0 0 2px rgba(99, 91, 255, .08); }
.widget-preview-device-tabs svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.widget-preview-tabs { padding: 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 10px; background: #e7e8ee; }
.widget-preview-tabs button { padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: #676b76; font: 750 10px inherit; cursor: pointer; }
.widget-preview-tabs button.is-active { background: #fff; color: #302a9e; box-shadow: 0 2px 8px rgba(25, 28, 44, .08); }
.widget-preview-note { margin-top: 13px; padding: 12px 13px; display: grid; gap: 3px; border-radius: 10px; background: #fff; font-size: 10px; }
.widget-preview-note[hidden] { display: none; }
.widget-preview-note span { color: #727681; line-height: 1.45; }
.widget-preview-browser { margin-top: 10px; overflow: hidden; border: 1px solid #dfe1e7; border-radius: 14px; background: #fff; box-shadow: 0 18px 44px rgba(24, 28, 45, .08); }
.widget-preview-browser[data-widget-preview-device="mobile"] { width: min(100%, 342px); margin: 14px auto 0; border-radius: 27px; box-shadow: 0 20px 48px rgba(24, 28, 45, .16); }
.widget-preview-browser[data-widget-preview-device="mobile"] .widget-preview-bar { min-height: 48px; justify-content: center; padding: 7px 38px; }
.widget-preview-browser[data-widget-preview-device="mobile"] .widget-preview-bar > span:not(.widget-preview-security) { display: none; }
.widget-preview-browser[data-widget-preview-device="mobile"] .widget-preview-bar small { max-width: 100%; margin: 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.widget-preview-browser[data-widget-preview-device="mobile"] .widget-preview-security { position: absolute; right: 14px; }
.widget-preview-browser[data-widget-preview-device="mobile"] .widget-preview-stage { min-height: 520px; padding: 12px; }
.widget-preview-browser[data-widget-preview-device="mobile"] .widget-preview-card { max-width: 100%; }
.widget-preview-browser[data-widget-preview-device="mobile"] .widget-preview-card.banner { display: block; }
.widget-preview-browser[data-widget-preview-device="mobile"] .widget-preview-card.banner p { margin-bottom: 12px; }
.widget-preview-browser[data-widget-preview-device="mobile"] .widget-preview-card.banner button { grid-column: auto; grid-row: auto; }
.widget-preview-browser[data-widget-preview-device="mobile"] .widget-native-prompt { width: 100%; padding: 14px; }
.widget-preview-browser[data-widget-preview-device="mobile"] .widget-native-actions { grid-column: 1 / -1; }
.widget-preview-bar { position: relative; min-height: 38px; padding: 0 12px; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid #e7e8ed; background: #fbfbfc; }
.widget-preview-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #c8cad1; }
.widget-preview-bar small { margin-left: 8px; color: #767a85; }
.widget-preview-security { width: 15px !important; height: 15px !important; margin-left: auto; border: 1px solid #c8cad2; border-radius: 50%; background: transparent !important; }
.widget-preview-stage { min-height: 330px; padding: 18px; display: flex; align-items: end; background: linear-gradient(145deg, #f3f2ff, #e8f7f4); }
.widget-preview-stage[data-widget-preview-position="bottom-right"] { justify-content: flex-end; }
.widget-preview-stage[data-widget-preview-position="bottom-left"] { justify-content: flex-start; }
.widget-preview-stage[data-widget-preview-position="top-right"] { align-items: flex-start; justify-content: flex-end; }
.widget-preview-stage[data-widget-preview-position="top-left"] { align-items: flex-start; justify-content: flex-start; }
.widget-preview-stage[data-widget-preview-position="top"] { align-items: flex-start; }
.widget-preview-stage[data-widget-preview-position="center"] { align-items: center; justify-content: center; }
.widget-preview-stage[data-widget-preview-position="bottom"] .widget-preview-card,
.widget-preview-stage[data-widget-preview-position="top"] .widget-preview-card { width: 100%; max-width: none; }
.widget-preview-stage[data-widget-preview-view="browser"] { align-items: flex-start; justify-content: center; background: linear-gradient(#f4f5f8, #ebedf2); }
.widget-preview-card { width: min(100%, 300px); padding: 17px; border: 1px solid #e0e1e6; border-radius: 15px; background: #fff; box-shadow: 0 16px 36px rgba(25, 30, 50, .15); }
.widget-preview-card[hidden] { display: none !important; }
.widget-preview-card.minimal { width: min(100%, 250px); padding: 14px; }
.widget-preview-card.banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; }
.widget-preview-card.compact { width: min(100%, 225px); padding: 12px; border-radius: 11px; }
.widget-preview-card.compact .widget-preview-site-brand { margin-bottom: 7px; }
.widget-preview-card.compact h3 { font-size: 14px; }
.widget-preview-card.compact p { margin-bottom: 9px; }
.widget-preview-card.modal { width: min(100%, 330px); padding: 24px; text-align: center; }
.widget-preview-card.modal .widget-preview-site-brand,
.widget-preview-card.modal .widget-preview-brand { justify-content: center; }
.widget-preview-copy { min-width: 0; display: flex; flex-direction: column; }
.widget-preview-site-brand { margin-bottom: 10px; display: flex; align-items: center; gap: 7px; color: inherit; font-size: 11px; font-weight: 800; }
.widget-preview-site-brand[hidden] { display: none; }
.widget-preview-site-brand img { width: 28px; height: 28px; object-fit: contain; border-radius: 7px; background: rgba(255,255,255,.82); }
.widget-preview-card.banner p { margin-bottom: 0; }
.widget-preview-card.banner button { grid-column: 2; grid-row: 1; }
.widget-preview-brand { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: #3d376f; font-size: 10px; font-weight: 800; line-height: 1.2; text-decoration: none; }
.widget-preview-brand[hidden] { display: none; }
.widget-preview-brand.attribution-above-left,
.widget-preview-brand.attribution-above-right { order: -1; margin: 0 0 10px; }
.widget-preview-brand.attribution-below-right,
.widget-preview-brand.attribution-above-right { align-self: flex-end; text-align: right; }
.widget-preview-brand img { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 6px; }
.widget-preview-brand:focus-visible { outline: 2px solid #635bff; outline-offset: 2px; border-radius: 5px; }
.widget-preview-card h3 { margin: 0; color: #17181c; font-size: 16px; }
.widget-preview-card p { margin: 5px 0 12px; color: #676a73; font-size: 11px; line-height: 1.45; }
.widget-preview-card button { padding: 8px 12px; border: 0; border-radius: 999px; background: #635bff; color: #fff; font-size: 11px; font-weight: 750; }
.widget-native-prompt { width: min(100%, 355px); padding: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 11px; border: 1px solid #d7d9df; border-radius: 10px; background: #fff; box-shadow: 0 14px 35px rgba(22, 25, 39, .2); }
.widget-native-prompt[hidden] { display: none; }
.widget-native-icon { width: 31px; height: 31px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 8px; background: #f1f2f5; font-size: 15px; }
.widget-native-prompt strong { font-size: 11px; }
.widget-native-prompt p { margin: 3px 0 0; color: #555965; font-size: 11px; }
.widget-native-actions { grid-column: 2; display: flex; justify-content: flex-end; gap: 7px; }
.widget-native-actions button { padding: 7px 13px; border: 1px solid #d6d8df; border-radius: 7px; background: #fff; color: #3e4350; font-size: 10px; font-weight: 750; }
.widget-native-actions button:last-child { border-color: #4f46d8; background: #4f46d8; color: #fff; }
.widget-attribution-plan { border-color: #d9d5ff; background: #f8f7ff; }
.widget-attribution-plan p { margin: 5px 0 10px; color: #6e7280; font-size: 10px; }

.launch-check-grid { padding: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.launch-check-grid article { padding: 18px; border-radius: 13px; background: #f6f6f8; }
.launch-check-grid p { margin: 5px 0 0; }
.onboarding-final-actions { padding: 0 22px 22px; display: flex; flex-wrap: wrap; gap: 9px; }

.site-status-row,
.site-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.site-card-actions { justify-content: flex-end; }
.site-card-actions form { margin: 0; }

.audience-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.subscriber-migration { margin-bottom: 16px; overflow: hidden; }
.subscriber-migration-intro { padding: 19px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.subscriber-migration-intro h2 { margin: 0; font-size: 16px; }
.subscriber-migration-intro p { max-width: 760px; margin: 4px 0 0; color: #6c7180; font-size: 11px; }
.subscriber-migration details { border-top: 1px solid #e4e6ec; }
.subscriber-migration summary { padding: 14px 19px; color: #4239b9; font-size: 11px; font-weight: 800; cursor: pointer; }
.subscriber-import-form { padding: 4px 19px 19px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.subscriber-import-form > label { display: grid; align-content: start; gap: 5px; color: #4f5360; font-size: 11px; font-weight: 750; }
.subscriber-import-form input,
.subscriber-import-form select { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid #d8dae2; border-radius: 9px; background: #fff; color: #25262d; }
.subscriber-import-form input[type="file"] { padding: 7px; }
.subscriber-import-form small { color: #777c88; font-size: 9px; font-weight: 500; }
.subscriber-import-form fieldset { grid-column: 1 / -1; margin: 0; padding: 13px; display: grid; gap: 8px; border: 1px solid #e1e3e9; border-radius: 11px; }
.subscriber-import-form legend { padding: 0 5px; color: #34363f; font-size: 11px; font-weight: 800; }
.subscriber-import-form fieldset label { display: flex; align-items: flex-start; gap: 8px; color: #5f6471; font-size: 10px; }
.subscriber-import-form fieldset input { width: auto; min-height: auto; margin-top: 2px; }
.subscriber-import-form .button { justify-self: start; }
.subscriber-migration-note { margin: 0; padding: 13px 19px; border-top: 1px solid #e8e9ee; background: #f7f7fa; color: #686d79; font-size: 10px; }
.subscriber-import-link { margin-bottom: 16px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; color: #171922; text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.subscriber-import-link:hover { border-color: #aaa6ff; background: #faf9ff; transform: translateY(-1px); }
.subscriber-import-link > span { width: 34px; height: 34px; border-radius: 10px; background: #eeecff; color: #4d43d6; display: grid; place-items: center; font-size: 18px; font-weight: 900; }
.subscriber-import-link > strong { font-size: 14px; }
.subscriber-import-link > b { color: #443bc4; font-size: 11px; }
.import-workspace { display: grid; gap: 22px; }
.import-safety-hero { padding: 24px; border: 1px solid #cbd7cf; border-radius: 22px; background: linear-gradient(110deg, #f0fbf4, #f8f8ff 64%, #eef9f7); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.import-safety-hero > div { display: flex; align-items: center; gap: 16px; }
.import-lock { width: 52px; height: 52px; border-radius: 50%; background: #178c5b; color: #fff; display: grid; place-items: center; flex: 0 0 auto; font-size: 22px; font-weight: 900; }
.import-safety-hero h2 { margin: 0; font-size: 20px; }
.import-safety-hero p { max-width: 750px; margin: 5px 0 0; color: #566171; font-size: 12px; line-height: 1.6; }
.import-safety-hero ol { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.import-safety-hero li { min-width: 120px; padding: 12px; border: 1px solid rgba(23, 140, 91, .18); border-radius: 13px; background: rgba(255,255,255,.78); display: flex; align-items: center; gap: 8px; color: #435263; font-size: 10px; font-weight: 800; }
.import-safety-hero li strong { width: 22px; height: 22px; border-radius: 50%; background: #dff5e9; color: #087444; display: grid; place-items: center; }
.import-verification-guide { padding: 22px; }
.import-verification-guide > header { margin-bottom: 15px; }
.import-verification-guide > header h2 { margin: 0; font-size: 18px; }
.import-verification-guide > header p { margin: 4px 0 0; color: #737887; font-size: 11px; line-height: 1.55; }
.import-verification-guide > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.import-verification-guide article { min-width: 0; padding: 15px; border: 1px solid #dce5df; border-radius: 14px; background: #f7fcf9; display: flex; align-items: flex-start; gap: 11px; }
.import-verification-guide article > span { width: 28px; height: 28px; border-radius: 9px; background: #dff5e9; color: #087444; display: grid; place-items: center; flex: 0 0 auto; font-weight: 900; }
.import-verification-guide article.owner-attested { border-color: #e5dfcf; background: #fffcf5; }
.import-verification-guide article.owner-attested > span { background: #f7edcf; color: #805f00; }
.import-verification-guide h3 { margin: 1px 0 5px; font-size: 13px; }
.import-verification-guide article p { margin: 0; color: #626977; font-size: 10px; line-height: 1.55; }
.import-provenance-form { display: grid; gap: 16px; }
.import-form-section { padding: 22px; }
.import-form-section > header { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; }
.import-form-section > header > span { width: 34px; height: 34px; border-radius: 50%; background: #eeecff; color: #4b43d2; display: grid; place-items: center; flex: 0 0 auto; font-size: 12px; font-weight: 900; }
.import-form-section > header h2 { margin: 1px 0 0; font-size: 18px; }
.import-form-section > header p { max-width: 900px; margin: 4px 0 0; color: #737887; font-size: 11px; line-height: 1.55; }
.import-form-section > header .import-add-site { margin-left: auto; flex: 0 0 auto; }
.import-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: start; }
.import-form-grid label { min-width: 0; display: grid; grid-template-rows: auto 48px minmax(14px, auto); gap: 7px; color: #303443; font-size: 11px; font-weight: 800; }
.import-form-grid input, .import-form-grid select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #d5d8e1; border-radius: 12px; background: #fff; color: #1d2029; font: inherit; }
.import-form-grid input[type="file"] { height: 48px; padding: 10px 14px; }
.import-form-grid small { align-self: start; color: #737887; font-size: 9px; font-weight: 600; line-height: 1.45; }
.import-required-columns { margin-top: 14px; padding: 13px; border-radius: 12px; background: #f7f7fa; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: #555b6a; font-size: 10px; }
.import-required-columns strong { margin-right: 4px; color: #20232d; }
.import-required-columns span { padding: 6px 9px; border: 1px solid #dddfe6; border-radius: 8px; background: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.import-attestation fieldset { margin: 18px 0; padding: 0; border: 0; display: grid; gap: 9px; }
.import-attestation legend { margin-bottom: 9px; color: #20232d; font-size: 12px; font-weight: 900; }
.import-attestation fieldset label { padding: 12px 14px; border: 1px solid #e0e2e8; border-radius: 12px; background: #fafafb; display: flex; gap: 11px; align-items: flex-start; color: #424755; font-size: 10px; font-weight: 700; line-height: 1.5; }
.import-attestation fieldset input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: #178c5b; }
.import-attestation > footer { padding-top: 17px; border-top: 1px solid #e5e6eb; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.import-attestation > footer div { display: grid; gap: 4px; }
.import-attestation > footer strong { color: #178c5b; font-size: 11px; }
.import-attestation > footer small { color: #747987; font-size: 9px; }
.import-history > header { margin-bottom: 12px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.import-history > header h2 { margin: 0; font-size: 20px; }
.import-history > header p { margin: 4px 0 0; color: #737887; font-size: 11px; }
.import-history > header > span { color: #737887; font-size: 10px; font-weight: 800; }
.import-batch-list { display: grid; gap: 13px; }
.import-batch-card { padding: 20px; border: 1px solid #dfe1e7; border-radius: 18px; background: #fff; }
.import-batch-card.highlighted { border-color: #aca8ff; box-shadow: 0 0 0 3px rgba(99,91,255,.08); }
.import-batch-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.import-batch-card > header > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; }
.import-batch-card > header h3 { margin: 0; font-size: 17px; }
.import-batch-card > header p { grid-column: 1 / -1; margin: 2px 0 0; color: #737887; font-size: 10px; }
.import-batch-card > header > strong { color: #14283a; font-size: 22px; text-align: right; }
.import-batch-card > header > strong small { display: block; color: #747987; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.import-review-summary { margin-top: 15px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.import-review-summary span { padding: 11px; border-radius: 11px; background: #f7f7fa; color: #686d79; font-size: 9px; line-height: 1.45; }
.import-review-summary strong { display: block; color: #20232d; font-size: 11px; }
.import-review-locked { display: grid; gap: 4px; }
.import-review-locked strong { color: #805f00; font-size: 11px; }
.import-review-locked small { max-width: 600px; color: #747987; font-size: 9px; line-height: 1.5; }
.import-review-queue { display: grid; gap: 16px; }
.import-review-case { padding: 22px; }
.import-review-case > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.import-review-case > header h2 { margin: 9px 0 2px; font-size: 19px; }
.import-review-case > header p { margin: 0; color: #737887; font-size: 10px; }
.import-review-case > header > strong { font-size: 24px; text-align: right; }
.import-review-case > header > strong small { display: block; color: #7a7f8b; font-size: 9px; text-transform: uppercase; }
.import-review-case dl { margin: 17px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid #e4e5ea; border-radius: 12px; overflow: hidden; background: #e4e5ea; }
.import-review-case dl div { min-width: 0; padding: 12px; background: #fff; }
.import-review-case dt { color: #737887; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.import-review-case dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 10px; font-weight: 700; }
.import-review-case > section { padding: 14px; border-radius: 12px; background: #fff9eb; }
.import-review-case > section h3 { margin: 0 0 7px; font-size: 12px; }
.import-review-case > section ul { margin: 0; padding-left: 18px; color: #625d50; font-size: 10px; line-height: 1.6; }
.import-review-decision { margin-top: 16px; display: grid; gap: 12px; }
.import-review-decision label { display: grid; gap: 7px; color: #303443; font-size: 11px; font-weight: 800; }
.import-review-decision textarea { min-height: 100px; padding: 12px 14px; border: 1px solid #d5d8e1; border-radius: 12px; resize: vertical; font: inherit; }
.import-review-decision > div { display: flex; gap: 10px; }
.import-status-quarantined { background: #fff4d8; color: #7c5800; }
.import-status-activated { background: #e5f7ec; color: #087444; }
.import-status-rejected { background: #f8e8e5; color: #9b3327; }
.import-batch-card dl { margin: 17px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #e4e5ea; border-radius: 12px; background: #e4e5ea; }
.import-batch-card dl div { min-width: 0; padding: 11px; background: #fafafb; display: grid; gap: 4px; }
.import-batch-card dt { color: #777c89; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.import-batch-card dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #2a2e39; font-size: 10px; font-weight: 700; }
.import-batch-card dd code { font-size: 9px; }
.import-batch-card > footer { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.import-batch-card > footer form:first-child { flex: 1; padding: 12px; border-radius: 12px; background: #f0f8f3; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.import-batch-card > footer label { display: flex; align-items: center; gap: 9px; color: #34443b; font-size: 10px; font-weight: 750; }
.import-batch-card > footer input { width: 17px; height: 17px; accent-color: #178c5b; }
.import-batch-outcome { margin: 15px 0 0; padding: 11px 13px; border-radius: 11px; background: #f5f6f8; color: #606674; font-size: 10px; }
.import-empty { padding: 24px; }
.import-empty h3 { margin: 0; }
.import-empty p { margin: 5px 0 0; color: #747987; font-size: 11px; }
.audience-stat-grid article { padding: 19px; display: grid; border: 1px solid #e1e3eb; border-radius: 16px; background: #fff; }
.audience-stat-grid span { color: #666c7a; font-size: 11px; font-weight: 750; }
.audience-stat-grid strong { margin: 7px 0 5px; color: #17182c; font-size: clamp(23px, 2.5vw, 34px); line-height: 1; }
.audience-stat-grid small { color: #7a7f8c; font-size: 10px; }
.audience-chart { margin-top: 17px; padding: 14px 14px 8px; border: 1px solid #e7e8ed; border-radius: 13px; background: #fbfbfc; }
.audience-chart svg { width: 100%; height: 230px; overflow: visible; }
.audience-chart line { stroke: #d7d9df; stroke-width: 1; }
.audience-chart .optin { fill: #35ad83; }
.audience-chart .optout { fill: #ed7564; }
.audience-chart > div { display: flex; justify-content: space-between; color: #7a7e89; font-size: 10px; }
.audience-methodology { margin: 13px 0 0; padding: 12px 14px; border-radius: 10px; background: #f4f3ff; font-size: 11px !important; }

@media (max-width: 1100px) {
  .dashboard-page .dashboard-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .dashboard-page .dashboard-nav { width: 220px; }
  .onboarding-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding-progress a:last-child { grid-column: 1 / -1; }
  .onboarding-instructions,
  .audience-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widget-designer { grid-template-columns: minmax(0, 1fr); }
  .widget-controls { border-right: 0; border-bottom: 1px solid #e7e8ed; }
  .widget-preview-panel { position: static; max-height: none; overflow: visible; scrollbar-gutter: auto; }
}

@media (max-width: 820px) {
  .dashboard-page .dashboard-shell { display: block; padding: 0; }
  .dashboard-page .dashboard-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: min(320px, 86vw);
    height: 100dvh;
    padding: 18px 14px 14px;
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  .dashboard-page .dashboard-nav.open { transform: none; }
  .dashboard-workspace { min-height: 100vh; }
}

@media (max-width: 760px) {
  .dashboard-onboarding-card,
  .dashboard-onboarding-card > div,
  .onboarding-check-form { align-items: flex-start; }
  .dashboard-onboarding-card,
  .onboarding-check-form { display: grid; }
  .dashboard-onboarding-card .button { width: 100%; }
  .onboarding-progress { grid-template-columns: minmax(0, 1fr); }
  .onboarding-progress a:last-child { grid-column: auto; }
  .onboarding-inline-form,
  .onboarding-instructions,
  .installation-files,
  .launch-check-grid,
  .audience-stat-grid { grid-template-columns: minmax(0, 1fr); }
  .onboarding-step > header { grid-template-columns: 42px minmax(0, 1fr); }
  .onboarding-step > header .status-chip { grid-column: 2; }
  .installation-status { grid-template-columns: auto minmax(0, 1fr); }
  .installation-status .button { grid-column: 1 / -1; width: 100%; }
  .widget-template-grid { grid-template-columns: minmax(0, 1fr); }
  .widget-brand-assistant { grid-template-columns: minmax(0, 1fr); }
  .widget-permission-flow { grid-template-columns: minmax(0, 1fr); }
  .widget-analysis-status,
  .widget-suggestion-grid { grid-column: auto; }
  .widget-suggestion-grid { grid-template-columns: minmax(0, 1fr); }
  .widget-template-grid span { min-height: 0; }
  .widget-control-row,
  .widget-brand-fields,
  .widget-attribution-fields > div { grid-template-columns: minmax(0, 1fr); }
  .widget-editor-placement,
  .widget-editor-message { grid-template-columns: minmax(0, 1fr); }
  .widget-editor-message .widget-editor-heading,
  .widget-editor-message > label:nth-of-type(1),
  .widget-editor-message > label:nth-of-type(2),
  .widget-editor-message > label:nth-of-type(3) { grid-column: 1; grid-row: auto; }
  .widget-preview-card.banner { display: block; }
  .widget-preview-card.banner p { margin-bottom: 12px; }
  .onboarding-final-actions { display: grid; }
  .onboarding-final-actions .button { width: 100%; }
  .onboarding-site-switcher { align-items: stretch; flex-direction: column; }
  .onboarding-site-switcher > .button { width: 100%; }
  .onboarding-site-gate > header { align-items: flex-start; padding: 22px; }
  .onboarding-site-gate-form { padding: 22px; }
  .onboarding-site-gate-form > div { grid-template-columns: 1fr; }
  .onboarding-site-gate > footer { align-items: stretch; flex-direction: column; padding: 0 22px 22px; }
  .onboarding-site-gate > footer .button { width: 100%; }
  .onboarding-site-gate-empty { padding: 22px 22px 0; }
  .audience-chart svg { height: 170px; }
  .subscriber-migration-intro { align-items: flex-start; display: grid; }
  .subscriber-migration-intro .button { width: 100%; }
  .subscriber-import-form { grid-template-columns: minmax(0, 1fr); }
  .subscriber-import-form fieldset { grid-column: auto; }
  .subscriber-import-link { grid-template-columns: auto 1fr; }
  .subscriber-import-link > b { grid-column: 2; }
  .import-safety-hero { grid-template-columns: 1fr; }
  .import-safety-hero ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .import-safety-hero li { min-width: 0; }
  .import-verification-guide > div { grid-template-columns: 1fr; }
  .import-form-grid,
  .import-batch-card dl,
  .import-review-case dl { grid-template-columns: 1fr; }
  .import-review-summary { grid-template-columns: 1fr; }
  .import-attestation > footer,
  .import-batch-card > footer,
  .import-batch-card > footer form:first-child { align-items: stretch; display: grid; }
  .import-attestation > footer .button,
  .import-batch-card > footer .button { width: 100%; }
  .import-form-section > header { flex-wrap: wrap; }
  .import-form-section > header .import-add-site { width: 100%; margin-left: 47px; }
}

@media (max-width: 520px) {
  .import-safety-hero ol { grid-template-columns: 1fr; }
  .import-safety-hero > div { align-items: flex-start; }
  .import-form-section > header .import-add-site { margin-left: 0; }
  .import-batch-card > header { display: grid; }
  .import-batch-card > header > strong { text-align: left; }
  .import-review-case > header { display: grid; }
  .import-review-case > header > strong { text-align: left; }
  .import-review-decision > div { display: grid; }
  .import-review-decision .button { width: 100%; }

  /* The lifecycle demos used to inherit full-width desktop sizing plus their
     own padding, which made the homepage wider than narrow phone viewports. */
  .pn-lifecycle {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding-inline: 14px;
  }

  .pn-stage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .pn-stage-copy,
  .pn-stage-media,
  .pn-stage-demo,
  .pn-browser-bar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pn-stage-copy { padding-inline: 18px; }
  .pn-stage-copy h2,
  .pn-stage-copy h3,
  .pn-stage-copy p { max-width: 100%; overflow-wrap: anywhere; }
  .pn-stage-copy .pn-outline-link { width: 100%; white-space: normal; }

  /* Turn the wide comparison table into readable stacked records on phones;
     users should never need to pan the entire page to inspect it. */
  .pn-scope-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .pn-scope-table,
  .pn-scope-table tbody,
  .pn-scope-table tr,
  .pn-scope-table th,
  .pn-scope-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .pn-scope-table { table-layout: fixed; }
  .pn-scope-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .pn-scope-table tbody { display: grid; gap: 12px; }
  .pn-scope-table tr {
    overflow: hidden;
    border: 1px solid #d5dce2;
    border-radius: 16px;
    background: #fff;
  }

  .pn-scope-table th,
  .pn-scope-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #e6e9ec;
    overflow-wrap: anywhere;
  }

  .pn-scope-table tbody th { width: 100%; font-size: 16px; }
  .pn-scope-table td:nth-child(2) { width: 100%; }
  .pn-scope-table td::before {
    display: block;
    margin-bottom: 4px;
    color: #717982;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .pn-scope-table td:nth-child(2)::before { content: "Current answer"; }
  .pn-scope-table td:nth-child(3)::before { content: "Evidence"; }

  .pn-trust-section {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    min-width: 0;
    margin-inline: auto;
    padding: 40px 18px;
  }

  .pn-trust-layout,
  .pn-trust-heading,
  .pn-window-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pn-trust-heading h2,
  .pn-trust-heading p,
  .pn-window-card * { overflow-wrap: anywhere; }

  .pn-setup-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .pn-setup-panel > div,
  .pn-setup-panel ol,
  .pn-setup-panel li,
  .pn-setup-panel li > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pn-setup-panel .pn-outline-link {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .pn-stack-showcase,
  .pn-quickstart,
  .pn-quickstart pre,
  .pn-quickstart code {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .pn-quickstart pre,
  .pn-quickstart code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
/* Keep responsive layouts inside the visual viewport. Individual code, table,
   and record regions retain their own deliberate scroll containers. */
html, body { max-width: 100%; overflow-x: clip; }
main { max-width: 100%; min-width: 0; overflow-x: clip; }
.site-header, .site-footer, .shell { min-width: 0; }
img, svg, video, canvas { max-width: 100%; }
.mobile-menu { display: none; transform: none; }
.mobile-menu.open { display: flex; }
@supports not (overflow: clip) { html, body, main { overflow-x: hidden; } }

