:root {
  --ink: #111827;
  --charcoal: #090a0c;
  --panel: #121417;
  --plum: #5b1b83;
  --violet: #a43a12;
  --magenta: #ff6a00;
  --teal: #ff9d18;
  --gold: #f8c74b;
  --cream: #fff8ef;
  --white: #ffffff;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.1);
  --soft: #f8fafc;
  --shadow: 0 22px 52px rgba(15, 23, 42, 0.08);
  --brand: #ed1688;
  --accent: #00a8bb;
  --font-heading: "Poppins", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  background: #f7f9fc;
}

body.app-booting .app-shell {
  visibility: hidden;
}

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

button,
a {
  cursor: pointer;
}

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

.app-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  min-height: 100vh;
}

.side-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100vh;
  padding: 32px 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 106, 0, 0.18), transparent 26%),
    linear-gradient(180deg, #111d2d 0%, #07101a 58%, #05080d 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.rail-spacer {
  flex: 1;
}

.rail-powered {
  display: grid;
  gap: 7px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.rail-powered:hover,
.rail-powered:focus-visible {
  border-color: rgba(255, 106, 0, 0.42);
  background: rgba(255, 255, 255, 0.085);
  transform: translateY(-1px);
}

.rail-powered small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.rail-powered strong {
  display: inline-flex;
  gap: 7px;
  align-items: baseline;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.rail-powered b {
  color: var(--magenta);
  font: inherit;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-lockup img {
  display: block;
  width: min(178px, 100%);
  height: auto;
}

.rail-nav {
  display: grid;
  gap: 8px;
}

.rail-nav a {
  position: relative;
  padding: 15px 16px 15px 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 850;
}

.rail-nav a::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: translateY(-50%);
  opacity: 0.82;
}

.rail-nav a.is-active {
  border-color: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--magenta);
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.rail-nav {
  grid-template-columns: 1fr;
}

.workspace {
  min-width: 0;
  padding: 34px clamp(24px, 3vw, 48px);
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--magenta);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  margin-bottom: 0;
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.status-pill {
  min-width: 154px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.status-pill.is-online {
  color: #106a4d;
}

.status-pill.is-offline {
  color: #9e3a16;
}

.app-shell.is-home-route {
  display: block;
  min-height: 100vh;
  background: #000;
}

.app-shell.is-home-route .side-rail {
  display: none;
}

.app-shell.is-auth-route {
  display: block;
  min-height: 100vh;
}

.app-shell.is-auth-route .side-rail {
  display: none;
}

.app-shell.is-auth-route .workspace {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
}

.app-shell.is-home-route .workspace {
  display: grid;
  place-items: start center;
  min-height: 100vh;
  padding: 0;
  background: #000;
}

.home-view {
  width: 100%;
  min-height: 100vh;
  background: #000;
}

.app-shell:not(.is-home-route) .home-view {
  min-height: auto;
  background: transparent;
}

.account-home {
  display: grid;
  gap: 24px;
  width: min(100%, 1480px);
  min-height: auto;
  background: transparent;
}

.campaign-home-panel,
.empty-campaigns {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  padding: 8px 0 2px;
}

.dashboard-header h2 {
  margin-bottom: 12px;
  color: #101828;
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 0.98;
}

.dashboard-header p:not(.kicker) {
  max-width: 660px;
  margin: 0;
  color: #556070;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 8px;
}

.account-actions > * {
  min-width: 160px;
}

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

.dashboard-stats article {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.dashboard-stats span,
.campaign-home-meta span {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-stats strong {
  color: #101828;
  font-size: 2.55rem;
  line-height: 0.95;
}

.dashboard-stats small {
  color: #667085;
  font-weight: 750;
}

.campaign-home-panel {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.campaign-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.campaign-panel-head h2 {
  color: #101828;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.text-link {
  color: var(--magenta);
  font-weight: 900;
}

.text-link:hover {
  text-decoration: underline;
}

.campaign-card-list {
  display: grid;
  gap: 0;
}

.campaign-home-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 140px minmax(360px, auto);
  gap: 22px;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
}

.campaign-home-card:last-child {
  border-bottom: 0;
}

.campaign-home-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.campaign-home-logo {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border: 1px solid rgba(33, 17, 38, 0.14);
  border-radius: 16px;
  background: #fff8f1;
  color: var(--magenta);
  font-weight: 950;
}

.campaign-home-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center;
}

.campaign-status {
  display: inline-grid;
  margin-bottom: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff4ec;
  color: var(--magenta);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.campaign-status.is-live {
  background: #e8fff5;
  color: #067647;
}

.campaign-status.is-scheduled {
  background: #fff1d6;
  color: #a15c00;
}

.campaign-status.is-ended {
  background: #f2f4f7;
  color: #475467;
}

.campaign-home-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.32rem;
  line-height: 1.1;
}

.campaign-home-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 760;
}

.campaign-home-meta {
  display: grid;
  gap: 6px;
}

.campaign-home-meta strong {
  color: #101828;
  font-size: 1.02rem;
}

.campaign-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.campaign-card-actions .primary-link,
.campaign-card-actions .secondary-button {
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.82rem;
  text-align: center;
}

.empty-campaigns {
  display: grid;
  gap: 6px;
  padding: 22px;
  color: var(--muted);
}

.empty-campaigns strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.empty-campaigns p {
  margin: 0;
  font-weight: 760;
}

.splash-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(520px, 1fr);
  width: min(100%, 1540px);
  min-height: min(100vh, 860px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(13, 20, 33, 0.08);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(16, 24, 40, 0.12);
}

.splash-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  padding: clamp(32px, 4.4vw, 58px);
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 38%, rgba(255, 106, 0, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.splash-logo {
  width: min(320px, 76vw);
  height: auto;
  margin-bottom: 10px;
}

.splash-tagline {
  margin-bottom: clamp(28px, 3.3vw, 42px);
  color: #4a5367 !important;
  font-size: clamp(1rem, 1.3vw, 1.22rem) !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
}

.splash-copy h2 {
  max-width: 610px;
  margin-bottom: 22px;
  color: #0d1421;
  font-size: clamp(3.7rem, 5.45vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.splash-copy h2 span {
  display: block;
  color: #ff6a00;
}

.splash-copy > p:not(.kicker):not(.splash-tagline):not(.splash-powered) {
  max-width: 560px;
  color: #475467;
  font-size: clamp(1.08rem, 1.34vw, 1.28rem);
  font-weight: 760;
  line-height: 1.38;
}

.splash-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 28px);
  margin: clamp(24px, 3vw, 34px) 0 24px;
}

.splash-steps article {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}

.splash-steps article:not(:last-child)::after {
  content: ">";
  position: absolute;
  top: 38px;
  right: calc(-1 * clamp(18px, 2vw, 28px));
  color: #ff6a00;
  font-size: 2rem;
  font-weight: 900;
}

.splash-step-icon {
  display: grid;
  place-items: center;
  width: clamp(70px, 6vw, 96px);
  aspect-ratio: 1;
  margin-bottom: 18px;
  border: 1px solid rgba(13, 20, 33, 0.14);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.08);
}

.splash-step-icon span {
  width: 42%;
  aspect-ratio: 1.22;
  border: 5px solid #ff6a00;
  border-top-width: 9px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff 45%, rgba(255, 106, 0, 0.14));
}

.splash-step-icon.print span {
  width: 48%;
  border-width: 8px 6px 12px;
  border-color: #2d3340;
  background:
    linear-gradient(#ffffff 0 0) center 68% / 62% 28% no-repeat,
    linear-gradient(180deg, #cfd3dc, #6b7280);
}

.splash-step-icon.connect span {
  width: 37%;
  aspect-ratio: 0.58;
  border-width: 8px 5px;
  border-color: #0d1421;
  border-radius: 12px;
  background:
    radial-gradient(circle at 76% 80%, #47b65c 0 8px, transparent 9px),
    linear-gradient(180deg, #ffffff, #eef2f7);
}

.splash-steps strong {
  color: #090f1c;
  font-size: clamp(1.04rem, 1.35vw, 1.35rem);
  font-weight: 900;
}

.splash-steps small {
  max-width: 150px;
  margin-top: 7px;
  color: #4a5367;
  font-size: clamp(0.86rem, 1vw, 1rem);
  font-weight: 600;
  line-height: 1.35;
}

.splash-actions {
  display: grid;
  gap: 14px;
  width: min(100%, 520px);
  margin-top: 8px;
}

.splash-actions .primary-link,
.splash-actions .secondary-link {
  display: flex;
  min-height: 58px;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  border-radius: 9px;
  font-size: clamp(1.02rem, 1.25vw, 1.25rem);
  font-weight: 850;
  white-space: nowrap;
}

.splash-actions .primary-link::after,
.splash-actions .secondary-link::after {
  content: "->";
  font-size: 1.25em;
  line-height: 1;
}

.secondary-link {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(13, 20, 33, 0.18);
  padding: 0 18px;
  background: #ffffff;
  color: #374151;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

.splash-art {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 26%),
    url("assets/reference/leadspark-bubbles-booth-hero.png");
  background-position: center, center;
  background-repeat: no-repeat;
  background-size: 100% 100%, cover;
}

.splash-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 20, 33, 0) 58%, rgba(13, 20, 33, 0.2)),
    radial-gradient(circle at 56% 48%, rgba(255, 106, 0, 0.08), transparent 34%);
  pointer-events: none;
}

.splash-powered {
  position: relative;
  margin-top: 22px;
  padding-left: 30px;
  color: #667085;
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
}

.splash-powered::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.08em;
  width: 16px;
  height: 20px;
  border: 2px solid #667085;
  border-radius: 10px 10px 12px 12px;
}

.splash-demo-card {
  position: absolute;
  right: clamp(28px, 4vw, 58px);
  bottom: clamp(28px, 5vw, 64px);
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(430px, calc(100% - 44px));
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 80px rgba(13, 20, 33, 0.22);
}

.splash-demo-card strong {
  display: block;
  color: #0d1421;
  font-size: clamp(1.1rem, 1.65vw, 1.52rem);
  font-weight: 900;
  line-height: 1.05;
}

.splash-demo-card span {
  display: block;
  margin-top: 5px;
  color: #475467;
  font-size: 0.98rem;
  font-weight: 650;
}

.demo-phone {
  width: 52px;
  height: 82px;
  border: 5px solid #0d1421;
  border-radius: 13px;
  background:
    linear-gradient(90deg, #0d1421 42%, transparent 42% 58%, #0d1421 58%) center 16px / 20px 20px no-repeat,
    linear-gradient(#0d1421 0 0) center 46px / 22px 5px no-repeat,
    #ffffff;
}

.demo-qr {
  width: 86px;
  aspect-ratio: 1;
  border: 4px solid var(--brand);
  border-radius: 9px;
  background:
    linear-gradient(90deg, #0d1421 12px, transparent 12px 18px, #0d1421 18px 24px, transparent 24px 30px, #0d1421 30px 42px, transparent 42px),
    linear-gradient(#0d1421 12px, transparent 12px 18px, #0d1421 18px 24px, transparent 24px 30px, #0d1421 30px 42px, transparent 42px),
    repeating-linear-gradient(90deg, #0d1421 0 6px, transparent 6px 12px),
    repeating-linear-gradient(0deg, #0d1421 0 6px, transparent 6px 12px),
    #ffffff;
  background-blend-mode: normal;
}

.view-dashboard {
  display: grid;
  grid-template-columns: minmax(520px, 1.08fr) minmax(360px, 0.64fr) minmax(270px, 0.42fr);
  gap: clamp(18px, 1.8vw, 28px);
  align-items: start;
  width: 100%;
  max-width: 1660px;
  margin: 0 auto;
}

.campaign-work-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  min-width: 0;
}

.campaign-work-header h2 {
  color: #101828;
  font-size: clamp(2rem, 3.2vw, 3.05rem);
  letter-spacing: -0.035em;
}

.campaign-work-header p {
  margin: 8px 0 0;
  color: #667085;
  font-size: 1.08rem;
  font-weight: 720;
}

.campaign-work-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
  min-width: min(520px, 100%);
}

.save-indicator {
  color: #3a7c4d;
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
}

.save-indicator::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: #34a853;
}

.save-indicator.is-dirty {
  color: #a65f00;
}

.save-indicator.is-dirty::before {
  background: #f4a000;
}

.auth-view {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 160px);
}

.auth-panel {
  width: min(100%, 520px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.auth-logo {
  display: block;
  width: min(220px, 70%);
  height: auto;
  margin: 0 0 26px;
}

.auth-panel h2 {
  margin-bottom: 22px;
}

.pass-panel > p {
  margin: -10px 0 18px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.pass-code-card {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 106, 0, 0.24);
  border-radius: 8px;
  background: #fff7f1;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 800;
}

.auth-form {
  display: grid;
}

.auth-switch {
  display: inline-block;
  margin-top: 14px;
  color: var(--magenta);
  font-weight: 900;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 14px;
}

.auth-links .auth-switch {
  margin-top: 0;
}

.settings-panel,
.preview-panel,
.asset-panel,
.content-panel,
.summary-card,
.table-wrap,
.metric-row article {
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.settings-panel,
.preview-panel,
.asset-panel,
.summary-card {
  padding: 24px;
  min-width: 0;
}

.setup-welcome {
  display: grid;
  gap: 14px;
  margin: -4px -4px 20px;
  padding: 22px;
  border: 1px solid rgba(255, 106, 0, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 18%, rgba(255, 106, 0, 0.2), transparent 20%),
    linear-gradient(140deg, #0a0a0d, #1b100c);
  color: #fff;
}

.setup-welcome h2 {
  max-width: 540px;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.setup-welcome p:not(.kicker) {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 760;
  line-height: 1.45;
}

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

.welcome-steps span,
.step-intro {
  border: 1px solid rgba(255, 106, 0, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.welcome-steps span {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 46px;
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 900;
}

.welcome-steps strong {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
}

.step-helper {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.4;
}

.step-intro {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #fff7f1;
}

.step-intro strong {
  color: var(--magenta);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.step-intro p {
  margin: 0;
  color: #514757;
  font-weight: 760;
  line-height: 1.4;
}

.launch-ready {
  background: linear-gradient(135deg, #fff8f1, #ffffff);
}

.setup-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(33, 17, 38, 0.12);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}

.step-tab {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 60px;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: #574d5d;
  text-align: left;
}

.step-tab:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  width: 18px;
  height: 1px;
  background: rgba(15, 23, 42, 0.18);
}

.step-tab span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #f2edf6;
  color: #574d5d;
  font-weight: 950;
}

.step-tab strong {
  font-size: 0.9rem;
}

.step-tab.is-active {
  background: #fff6f0;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.18);
}

.step-tab.is-active span {
  background: var(--magenta);
  color: #fff;
}

.step-tab.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.step-pane {
  display: none;
}

.step-pane.is-active {
  display: block;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  color: #101828;
  letter-spacing: -0.025em;
}

.wide-heading {
  max-width: 780px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

label span,
legend,
.panel-label {
  color: #504958;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(33, 17, 38, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--white);
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

input:focus,
textarea:focus {
  border-color: rgba(255, 106, 0, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.11);
  outline: 0;
}

input[type="color"] {
  height: 48px;
  padding: 5px;
}

textarea {
  resize: vertical;
  line-height: 1.4;
}

fieldset {
  border: 1px solid rgba(33, 17, 38, 0.14);
  border-radius: 12px;
  padding: 16px;
}

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

.choice {
  grid-template-columns: 18px 1fr;
  align-items: center;
  margin: 0;
}

.choice input {
  min-height: auto;
}

.mode-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(33, 17, 38, 0.14);
  border-radius: 10px;
  background: #fff;
}

.mode-card:has(input:checked) {
  border-color: var(--magenta);
  background: #fff7f2;
  box-shadow: inset 0 0 0 1px rgba(255, 106, 0, 0.28), 0 12px 28px rgba(255, 106, 0, 0.08);
}

.mode-card strong {
  display: block;
  color: #101828;
  font-size: 0.9rem;
  line-height: 1.2;
  text-transform: none;
}

.mode-card small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.35;
}

.field-row,
.form-actions,
.inline-actions,
.metric-row {
  display: grid;
  gap: 12px;
}

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

.form-actions,
.inline-actions {
  grid-template-columns: 1fr 1fr;
}

.span-row {
  grid-column: 1 / -1;
}

.form-actions {
  grid-template-columns: 1fr 1fr 1.45fr;
  align-items: center;
}

.primary-button,
.secondary-button,
.primary-link {
  display: inline-grid;
  place-items: center;
  min-height: 52px;
  border-radius: 10px;
  padding: 0 20px;
  font-weight: 950;
}

.primary-button,
.primary-link {
  border: 0;
  background: linear-gradient(180deg, #ff6a30, #f04413);
  color: #fff;
  box-shadow: 0 10px 22px rgba(240, 68, 19, 0.22);
}

.secondary-button {
  border: 1px solid rgba(33, 17, 38, 0.16);
  background: var(--white);
  color: var(--ink);
}

.preview-panel .section-heading {
  display: grid;
  gap: 4px;
}

.preview-panel .section-heading::before {
  display: none;
}

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

.poster-preview-frame {
  display: grid;
  place-items: center;
  min-height: clamp(620px, 70vh, 850px);
  padding: 24px;
  border: 1px solid rgba(33, 17, 38, 0.08);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}

.poster-preview-card {
  display: grid;
  align-content: start;
  gap: 18px;
  justify-items: center;
  width: min(100%, 410px);
  aspect-ratio: 8.5 / 11;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  text-align: center;
  box-shadow: 0 26px 58px rgba(16, 24, 40, 0.16);
}

.poster-preview-card h2 {
  margin: 0;
  color: #101828;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.poster-preview-card .poster-qr {
  width: min(72%, 260px);
  border: 12px solid #101828;
  border-radius: 10px;
  background: #fff;
}

.poster-preview-card p:not(.kicker) {
  margin: 0;
  color: #344054;
  font-weight: 820;
  line-height: 1.35;
}

.poster-preview-card .kicker {
  margin: 0;
  color: var(--magenta);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.summary-panel {
  display: grid;
  gap: 20px;
}

.summary-card {
  background: #fff;
}

.summary-card:not(.quick-card) {
  padding-top: 26px;
}

.summary-card .section-heading h2 {
  font-size: 1.4rem;
}

.summary-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.summary-list div {
  display: grid;
  grid-template-columns: minmax(112px, 0.8fr) minmax(120px, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(33, 17, 38, 0.09);
}

.summary-list dt {
  color: #344054;
  font-size: 0.82rem;
  font-weight: 900;
}

.summary-list dd {
  margin: 0;
  color: #344054;
  font-size: 0.84rem;
  font-weight: 760;
}

.summary-pill {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff1d6;
  color: #a15c00;
  font-size: 0.74rem;
  font-weight: 950;
}

.summary-pill.is-live {
  background: #dff6e6;
  color: #167344;
}

.summary-pill.is-scheduled {
  background: #fff1d6;
  color: #a15c00;
}

.summary-pill.is-ended {
  background: #eeeef2;
  color: #667085;
}

.quick-card {
  display: grid;
  gap: 8px;
}

.quick-card strong {
  color: #101828;
  font-size: 2rem;
  line-height: 1;
}

.quick-card p,
.summary-note {
  margin: 0;
  color: #667085;
  font-weight: 720;
  line-height: 1.45;
}

.campaign-page {
  min-height: 100%;
  color: var(--ink);
  background: #fff;
}

.campaign-hero {
  padding: 28px 20px 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.24), transparent 12%),
    linear-gradient(150deg, color-mix(in srgb, var(--brand) 76%, #090a0c), color-mix(in srgb, var(--accent) 52%, #090a0c));
}

.campaign-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.68);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 950;
}

.campaign-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
  transform-origin: center;
}

.campaign-hero h2 {
  margin-bottom: 12px;
  font-size: 2.7rem;
  text-transform: uppercase;
}

.campaign-hero p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 760;
  line-height: 1.45;
}

.prize-band {
  display: grid;
  gap: 3px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(9, 10, 12, 0.34);
}

.prize-band span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prize-band strong {
  color: #fff;
  font-size: clamp(1rem, 5.2vw, 1.28rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

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

.lead-form label {
  margin: 0;
}

.consent {
  grid-template-columns: 22px 1fr;
  align-items: start;
  color: #5e5568;
  font-size: 0.9rem;
  font-weight: 680;
  line-height: 1.4;
}

.consent input {
  min-height: auto;
  margin-top: 3px;
}

.form-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
}

.asset-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 0.7fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.launch-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(210px, 0.75fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(33, 17, 38, 0.12);
  border-radius: 8px;
  background: #fffaf6;
}

.poster-email-field {
  margin: 12px 0;
}

.status-note {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--magenta);
  font-size: 0.82rem;
  font-weight: 850;
}

.launch-success {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(37, 181, 116, 0.3);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 181, 116, 0.12), rgba(255, 106, 0, 0.08));
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.launch-success[hidden] {
  display: none;
}

.launch-success h3 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: 0;
}

.launch-success p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #087a4a;
  background: rgba(37, 181, 116, 0.14);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.launch-success-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, auto));
  gap: 10px;
}

.primary-button:disabled,
.primary-button.is-disabled {
  cursor: not-allowed;
  color: #667085;
  background: #e4e7ec;
  box-shadow: none;
  transform: none;
}

.mini-poster {
  min-width: 0;
}

.poster-preview-card.is-mini {
  gap: 8px;
  width: 100%;
  aspect-ratio: auto;
  min-height: 360px;
  padding: 16px;
}

.poster-preview-card.is-mini .poster-brand {
  width: 54px;
  height: 54px;
  border-radius: 0;
  font-size: 0.9rem;
}

.poster-preview-card.is-mini h2 {
  font-size: 1.8rem;
}

.poster-preview-card.is-mini .poster-qr {
  width: min(100%, 132px);
  border: 8px solid #101828;
  border-radius: 4px;
}

.poster-preview-card.is-mini p:not(.kicker) {
  font-size: 0.72rem;
}

.poster-preview-card.is-mini .kicker {
  font-size: 0.58rem;
}

.poster-prize {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px;
  border: 2px solid #101828;
  border-radius: 8px;
  background: #f8fafc;
}

.poster-prize span {
  color: var(--magenta);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.poster-prize strong {
  color: #101828;
  font-size: 1.05rem;
  line-height: 1;
  text-transform: uppercase;
}

.promo-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(300px, 420px);
  gap: 18px;
  align-items: start;
}

.promo-image-panel {
  overflow: hidden;
  border: 1px solid rgba(33, 17, 38, 0.12);
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.content-view {
  display: grid;
  gap: 22px;
  max-width: 1180px;
}

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

.content-panel {
  padding: 22px;
}

.content-panel h3,
.content-panel h4 {
  margin: 0 0 10px;
  color: #101828;
}

.content-panel h3 {
  font-size: 1.18rem;
}

.content-panel h4 {
  margin-top: 20px;
  font-size: 1rem;
}

.content-panel p {
  margin: 0;
  color: #475467;
  font-weight: 650;
  line-height: 1.6;
}

.legal-panel {
  max-width: 920px;
}

.legal-panel p + p {
  margin-top: 12px;
}

.promo-image-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.cue-list {
  display: grid;
  gap: 12px;
  margin: 10px 0 20px;
  padding-left: 18px;
  color: #443948;
  font-weight: 760;
  line-height: 1.45;
}

.reference-note {
  padding: 14px;
  border-left: 4px solid var(--magenta);
  border-radius: 0 8px 8px 0;
  background: #fff4ec;
}

.reference-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--magenta);
  text-transform: uppercase;
}

.reference-note p {
  margin: 0;
  color: #5b4e60;
  font-weight: 720;
  line-height: 1.4;
}

.url-box {
  overflow-wrap: anywhere;
  min-height: 54px;
  margin: 8px 0 14px;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
  color: #473c50;
  font-weight: 760;
}

.qr-panel img,
.poster .poster-qr {
  width: 100%;
  max-width: 260px;
  background: #fff;
}

.qr-panel {
  display: grid;
  justify-items: center;
  text-align: center;
}

.qr-panel small {
  color: var(--muted);
  font-weight: 720;
  line-height: 1.4;
}

.poster {
  display: grid;
  gap: 18px;
  justify-items: center;
  min-height: 600px;
  padding: 28px;
  border: 1px solid rgba(33, 17, 38, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  color: #101828;
}

.poster-brand {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand);
  font-size: 1.6rem;
  font-weight: 950;
}

.poster-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  transform-origin: center;
}

.poster h2 {
  color: #101828;
  font-size: clamp(3.7rem, 6vw, 5.8rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.poster p:not(.kicker) {
  color: #344054;
  font-weight: 760;
  line-height: 1.45;
}

.poster > strong,
.poster-prize-large strong {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 106, 0, 0.14);
  color: var(--magenta);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.poster-prize-large {
  padding: 16px;
  background: rgba(255, 106, 0, 0.16);
}

.poster-prize-large span {
  font-size: 0.82rem;
}

.poster-prize-large strong {
  padding: 0;
  background: transparent;
}

.poster .poster-qr {
  border: 12px solid #101828;
  border-radius: 6px;
}

.metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.lead-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) auto auto auto;
  gap: 12px;
  align-items: end;
  margin: 20px 0 18px;
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
}

.lead-actions label {
  margin: 0;
}

.lead-report-toggle {
  display: flex;
  grid-column: span 2;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.lead-report-toggle input {
  width: auto;
}

.winner-result,
.lead-actions .status-note {
  grid-column: 1 / -1;
  margin: 0;
}

.winner-result {
  color: #101828;
  font-weight: 800;
}

.metric-row article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.metric-row span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-row strong {
  font-size: 2.1rem;
}

.table-wrap {
  overflow: auto;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.support-panel h3 {
  margin-top: 0;
}

.support-form {
  display: grid;
  gap: 15px;
}

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

.support-ticket-list {
  display: grid;
  gap: 12px;
}

.support-ticket,
.empty-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
}

.support-ticket strong,
.empty-support strong {
  display: block;
  color: var(--ink);
}

.support-ticket span,
.support-ticket small,
.empty-support p {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}

.ticket-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 10px;
  color: #067647;
  background: #dcfae6;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

td {
  color: #413746;
  font-weight: 720;
}

.sync-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
  margin-bottom: 18px;
}

pre {
  overflow: auto;
  max-height: 320px;
  margin: 10px 0 0;
  padding: 14px;
  border-radius: 8px;
  background: #16091d;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.5;
}

.campaign-shell {
  min-height: 100vh;
  background: #fff;
}

.campaign-shell .campaign-page {
  min-height: 100vh;
}

.campaign-shell .campaign-hero {
  min-height: 44vh;
  padding: max(28px, env(safe-area-inset-top)) 22px 30px;
}

.campaign-shell .lead-form {
  max-width: 620px;
  margin: 0 auto;
}

.brand-preview-logo {
  display: inline-grid;
  gap: 2px;
  margin-bottom: 18px;
  color: #fff;
}

.brand-preview-logo strong {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-preview-logo strong::after {
  content: "*";
  margin-left: 7px;
  color: var(--brand);
}

.brand-preview-logo span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
}

.campaign-page.is-preview-only .campaign-hero {
  min-height: 48vh;
}

.preview-only-panel {
  max-width: 620px;
  margin: 0 auto;
  padding: 26px 22px 32px;
  background: #fff;
}

.preview-only-panel h3 {
  margin: 8px 0;
  color: #101828;
  font-size: 1.62rem;
  line-height: 1.08;
}

.preview-only-panel p:not(.kicker) {
  margin: 0;
  color: #475467;
  font-weight: 600;
  line-height: 1.5;
}

.thank-you,
.ended {
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(145deg, var(--brand), var(--accent));
}

.thank-you-inner,
.ended-inner {
  max-width: 620px;
}

.thank-you h1,
.ended h1 {
  margin-bottom: 14px;
  font-size: clamp(3rem, 12vw, 6.5rem);
  text-transform: uppercase;
}

.thank-you p,
.ended p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  font-weight: 760;
  line-height: 1.5;
}

.toast {
  margin-top: 8px;
  color: var(--brand);
  font-weight: 860;
}

.print-poster-mount {
  display: none;
}

@media (max-width: 1480px) {
  .view-dashboard {
    grid-template-columns: minmax(440px, 1fr) minmax(320px, 0.72fr);
  }

  .summary-panel {
    grid-column: 1 / -1;
    grid-template-columns: minmax(320px, 1.2fr) minmax(220px, 0.45fr) minmax(260px, 0.55fr);
  }
}

@media (max-width: 1180px) {
  .view-dashboard,
  .asset-grid,
  .promo-layout,
  .sync-layout,
  .summary-panel {
    grid-template-columns: 1fr;
  }

  .campaign-work-header,
  .campaign-work-actions {
    display: grid;
    min-width: 0;
  }

  .campaign-work-actions {
    grid-template-columns: 1fr 1fr;
  }

  .save-indicator {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .side-rail {
    position: static;
    height: auto;
  }

  .rail-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .rail-nav a {
    min-width: 92px;
    text-align: center;
  }

  .splash-screen {
    grid-template-columns: 1fr;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    align-content: stretch;
  }

  .splash-copy {
    min-height: auto;
    padding: 28px 24px 22px;
  }

  .splash-logo {
    width: min(310px, 82vw);
  }

  .splash-tagline {
    margin-bottom: 28px;
  }

  .splash-copy h2 {
    font-size: clamp(3.2rem, 13.5vw, 5rem);
  }

  .splash-copy > p:not(.kicker):not(.splash-tagline):not(.splash-powered) {
    font-size: 1.06rem;
  }

  .splash-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 26px 0 24px;
  }

  .splash-steps article:not(:last-child)::after {
    top: 28px;
    right: -10px;
    font-size: 1.5rem;
  }

  .splash-step-icon {
    width: clamp(58px, 18vw, 80px);
    margin-bottom: 10px;
  }

  .splash-steps strong {
    font-size: 0.96rem;
  }

  .splash-steps small {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .splash-actions {
    width: 100%;
  }

  .splash-actions .primary-link,
  .splash-actions .secondary-link {
    min-height: 58px;
    font-size: 1rem;
  }

  .splash-art {
    min-height: 62vh;
    background-position: center, 58% center;
  }

  .splash-demo-card {
    right: 16px;
    bottom: 16px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    width: calc(100% - 32px);
    padding: 14px;
    border-radius: 16px;
  }

  .demo-phone {
    width: 40px;
    height: 64px;
    border-width: 4px;
  }

  .demo-qr {
    width: 66px;
  }

  .workspace {
    padding: 18px;
  }

  .top-strip {
    display: grid;
  }

  .dashboard-header,
  .campaign-panel-head {
    display: grid;
  }

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

  .account-actions > * {
    min-width: 0;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .field-row,
  .form-actions,
  .inline-actions,
  .metric-row,
  .lead-actions,
  .launch-preview,
  .campaign-home-card,
  .campaign-home-main,
  .campaign-card-actions,
  .step-pane fieldset,
  .campaign-work-actions {
    grid-template-columns: 1fr;
  }

  .lead-actions {
    grid-template-columns: 1fr;
  }

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

  .launch-success {
    grid-template-columns: 1fr;
  }

  .launch-success-actions {
    grid-template-columns: 1fr;
  }

  .setup-steps {
    grid-template-columns: 1fr;
  }

  .welcome-steps {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.6rem;
  }

  .poster-preview-frame {
    min-height: auto;
    padding: 14px;
  }

  .poster-preview-card.is-large {
    width: min(100%, 330px);
  }

  .campaign-hero h2 {
    font-size: 2.15rem;
  }

  .poster {
    min-height: 560px;
    padding: 20px;
  }

  .poster h2 {
    font-size: 3.4rem;
  }
}

@media print {
  @page {
    size: letter portrait;
    margin: 0;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    width: 8.5in;
    height: 11in;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  body > :not(.print-poster-mount) {
    display: none !important;
  }

  .print-poster-mount {
    display: grid !important;
    place-items: stretch;
    width: 8.5in;
    height: 11in;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .print-poster-mount .poster-preview-card {
    display: grid !important;
    width: 8.5in !important;
    height: 11in !important;
    aspect-ratio: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0.45in !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #101828 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .print-poster-mount .poster-brand {
    width: 1.35in;
    height: 1.05in;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .print-poster-mount .poster-brand img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    object-fit: contain !important;
  }

  .print-poster-mount .poster-preview-card h2 {
    max-width: 6.8in;
    color: #101828 !important;
    font-size: 0.72in !important;
    line-height: 0.9;
  }

  .print-poster-mount .poster-prize {
    width: 6.65in;
    max-width: 100%;
    padding: 0.18in !important;
    border-color: #101828 !important;
    background: #f8fafc !important;
  }

  .print-poster-mount .poster-prize strong {
    color: #101828 !important;
    font-size: 0.24in !important;
    line-height: 1.05;
  }

  .print-poster-mount .poster-preview-card .poster-qr {
    width: 3.25in !important;
    max-width: none !important;
    border: 0.14in solid #101828 !important;
  }

  .print-poster-mount .poster-preview-card p {
    max-width: 6.5in;
    color: #344054 !important;
    font-size: 0.16in !important;
  }

  .print-poster-mount .poster-preview-card .kicker {
    font-size: 0.13in !important;
  }
}

/* v40 premium SaaS shell */
body {
  background: #f6f8fb;
  color: #101828;
}

.app-shell {
  grid-template-columns: 264px minmax(0, 1fr);
}

.side-rail {
  gap: 22px;
  padding: 28px 20px;
  background:
    radial-gradient(circle at 92% 3%, rgba(255, 106, 0, 0.2), transparent 18%),
    linear-gradient(180deg, #0d1826 0%, #07111b 52%, #04080d 100%);
}

.brand-lockup {
  min-height: 64px;
  padding: 0 10px 18px;
}

.rail-nav {
  gap: 10px;
}

.rail-nav a {
  min-height: 48px;
  padding: 14px 16px 14px 52px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.rail-nav a::before {
  left: 19px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.rail-nav a.is-active {
  border-left-width: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.rail-powered {
  background: rgba(255, 255, 255, 0.08);
}

.workspace {
  padding: 32px clamp(28px, 4vw, 64px);
}

.view-dashboard {
  grid-template-columns: minmax(520px, 1.08fr) minmax(380px, 0.66fr) minmax(288px, 0.42fr);
  gap: 22px;
  max-width: 1720px;
}

.campaign-work-header {
  align-items: flex-start;
  margin-bottom: 4px;
}

.campaign-work-header h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.campaign-work-header p {
  max-width: 760px;
  margin-top: 10px;
  color: #667085;
  font-size: 1.04rem;
  font-weight: 560;
}

.campaign-work-actions {
  display: grid;
  grid-template-columns: auto 150px 190px;
  gap: 14px;
  min-width: 0;
}

.save-indicator {
  align-self: center;
  color: #27864f;
  font-weight: 700;
}

.settings-panel,
.preview-panel,
.summary-card {
  border-color: #dfe5ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.07);
}

.settings-panel {
  padding: 0;
  overflow: hidden;
}

.settings-panel > .section-heading {
  padding: 28px 30px 12px;
  margin: 0;
}

.settings-panel > .section-heading h2 {
  font-size: clamp(1.55rem, 2vw, 2.05rem);
}

.step-helper {
  max-width: 720px;
  color: #667085;
  font-weight: 560;
}

.setup-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 10px 30px 0;
  padding: 0;
  overflow: visible;
  border: 1px solid #dfe5ef;
  border-radius: 8px;
  background: #fff;
}

.step-tab {
  grid-template-columns: 48px 1fr;
  min-height: 86px;
  border-radius: 0;
  padding: 18px 22px;
  border-right: 1px solid #e6ebf2;
}

.step-tab:last-child {
  border-right: 0;
}

.step-tab:not(:last-child)::after {
  right: -18px;
  z-index: 1;
  width: 72px;
  background: #cfd7e4;
}

.step-tab span {
  width: 42px;
  height: 42px;
  color: #667085;
  background: #eef2f7;
}

.step-tab strong {
  display: grid;
  gap: 4px;
  color: #101828;
  font-size: 0.95rem;
}

.step-tab small {
  color: #667085;
  font-size: 0.76rem;
  font-weight: 620;
}

.step-tab.is-active {
  background: #fff7f2;
  box-shadow: inset 0 -3px 0 #ff4b22;
}

.step-tab.is-active span {
  background: linear-gradient(180deg, #ff6a30, #f04413);
}

.step-tab.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.step-tab.is-disabled span {
  background: #f4f6fa;
  color: #98a2b3;
}

.step-pane {
  padding: 28px 30px 8px;
}

.step-intro {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-color: #ffd7c4;
  background: #fff8f4;
}

label span,
legend,
.panel-label {
  color: #344054;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

input,
textarea {
  min-height: 50px;
  border-color: #d9e0ea;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  font-weight: 560;
}

textarea {
  min-height: 96px;
}

fieldset {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 0;
  padding: 0;
}

fieldset legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-weight: 800;
}

.mode-card {
  position: relative;
  grid-template-columns: 22px 44px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 118px;
  padding: 18px;
  border-color: #dfe5ef;
  border-radius: 8px;
}

.mode-card input {
  width: 18px;
  height: 18px;
}

.mode-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f4f7fb;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 900;
  font-style: normal;
}

.mode-card:has(input:checked) {
  border-color: #ff4b22;
  background: #fff8f4;
  box-shadow: 0 18px 34px rgba(240, 68, 19, 0.08);
}

.mode-card:has(input:checked) .mode-icon {
  background: #fff0e9;
  color: #f04413;
}

.mode-card strong {
  font-size: 0.96rem;
}

.mode-card small {
  color: #667085;
  font-weight: 560;
}

.form-actions {
  grid-template-columns: minmax(0, 140px) minmax(0, 160px) minmax(0, 190px);
  justify-content: end;
  padding: 18px 30px 30px;
  border-top: 1px solid #edf1f6;
}

.primary-button,
.secondary-button,
.primary-link {
  min-height: 48px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 820;
}

.primary-button,
.primary-link {
  background: linear-gradient(180deg, #ff4f2a, #ef3514);
  box-shadow: 0 14px 28px rgba(240, 68, 19, 0.22);
}

.secondary-button {
  border-color: #d6dde8;
  background: #fff;
}

.poster-preview-panel {
  position: sticky;
  top: 24px;
  padding: 24px;
}

.poster-preview-frame {
  min-height: 720px;
  padding: 20px;
  border-color: #e6ebf2;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfe, #ffffff);
}

.poster-preview-card {
  width: min(100%, 390px);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(16, 24, 40, 0.16);
}

.poster-preview-card h2 {
  font-size: clamp(2.7rem, 4vw, 4.15rem);
}

.summary-panel {
  position: sticky;
  top: 24px;
}

.summary-card {
  padding: 22px;
}

.summary-card .section-heading {
  margin-bottom: 10px;
}

.summary-list div {
  grid-template-columns: 118px minmax(0, 1fr);
  padding: 15px 0;
}

.summary-list dt {
  color: #667085;
  font-weight: 760;
}

.summary-list dd {
  color: #101828;
  font-weight: 680;
}

.quick-card strong {
  font-size: 2.4rem;
}

.launch-preview {
  grid-template-columns: minmax(0, 1fr) 220px;
  border-color: #dfe5ef;
  border-radius: 8px;
  background: #fbfcfe;
}

.mini-poster .poster-preview-card.is-mini {
  min-height: 330px;
  border-radius: 12px;
}

.account-home {
  width: min(100%, 1500px);
}

.dashboard-header {
  padding: 4px 0 2px;
}

.dashboard-header h2 {
  font-size: clamp(2rem, 3.2vw, 3.45rem);
}

.dashboard-stats article,
.campaign-home-panel {
  border-color: #dfe5ef;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.07);
}

.campaign-home-card {
  grid-template-columns: minmax(0, 1.2fr) 130px minmax(350px, auto);
}

@media (max-width: 1480px) {
  .view-dashboard {
    grid-template-columns: minmax(480px, 1fr) minmax(360px, 0.78fr);
  }

  .summary-panel {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .campaign-work-actions {
    grid-template-columns: 1fr 1fr;
  }

  .poster-preview-panel {
    position: static;
  }

  .summary-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .app-shell {
    display: block;
    width: 100%;
    overflow-x: hidden;
  }

  .side-rail,
  .workspace,
  .view-dashboard,
  .settings-panel,
  .preview-panel,
  .support-layout,
  .field-grid,
  .summary-panel {
    max-width: 100%;
  }

  .side-rail {
    position: static;
    height: auto;
  }

  .rail-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: visible;
  }

  .rail-nav a {
    min-width: 0;
    text-align: left;
  }

  .workspace {
    padding: 16px;
  }

  .view-dashboard {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .support-layout,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .lead-report-toggle {
    grid-column: auto;
  }

  .campaign-work-header {
    display: grid;
    gap: 18px;
  }

  .campaign-work-actions {
    grid-template-columns: 1fr;
  }

  .campaign-work-header h2,
  .dashboard-header h2 {
    font-size: 2.35rem;
  }

  .settings-panel > .section-heading,
  .step-pane {
    padding-left: 18px;
    padding-right: 18px;
  }

  .setup-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: 18px;
    margin-right: 18px;
    overflow: hidden;
  }

  .step-tab {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 62px;
    padding: 10px 8px;
    border-right: 1px solid #e6ebf2;
    border-bottom: 0;
    text-align: center;
  }

  .step-tab:not(:last-child)::after {
    display: none;
  }

  .step-tab:last-child {
    border-right: 0;
  }

  .step-tab span {
    width: 32px;
    height: 32px;
  }

  .step-tab strong {
    font-size: 0.82rem;
  }

  .step-tab small {
    display: none;
  }

  fieldset,
  .step-pane fieldset,
  .field-row,
  .launch-preview,
  .campaign-home-card,
  .campaign-card-actions {
    grid-template-columns: 1fr;
  }

  .form-actions {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .poster-preview-frame {
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .side-rail {
    position: sticky;
    top: 0;
    z-index: 30;
    gap: 8px;
    padding: 10px 14px 8px;
    min-height: 0;
    height: auto;
    box-shadow: 0 10px 22px rgba(10, 18, 30, 0.18);
  }

  .brand-lockup {
    min-height: 34px;
    padding: 0;
    border-bottom: 0;
  }

  .brand-lockup img {
    width: 136px;
  }

  .rail-spacer,
  .rail-powered {
    display: none;
  }

  .rail-nav {
    display: flex;
    gap: 8px;
    margin: 0 -14px;
    padding: 0 14px 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .rail-nav::-webkit-scrollbar {
    display: none;
  }

  .rail-nav a {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .rail-nav a::before {
    display: none;
  }

  .rail-nav a.is-active {
    border-left-width: 1px;
    border-color: rgba(255, 106, 0, 0.45);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
  }
}

/* v52 typography refinement */
body,
button,
input,
textarea,
select {
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: 0;
}

* {
  letter-spacing: 0;
}

h1,
h2,
h3,
.dashboard-header h2,
.campaign-work-header h2,
.section-heading h2,
.campaign-panel-head h2,
.auth-panel h2,
.setup-welcome h2,
.splash-copy h2,
.content-panel h3,
.launch-success h3,
.campaign-home-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0;
  color: #101828;
}

h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  line-height: 1.02;
}

h2,
.dashboard-header h2,
.campaign-work-header h2 {
  line-height: 1.08;
}

.dashboard-header h2 {
  font-size: clamp(2.25rem, 3.6vw, 3.7rem);
}

.campaign-work-header h2 {
  font-size: clamp(2rem, 2.8vw, 3rem);
}

.section-heading h2,
.campaign-panel-head h2 {
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
}

p,
.dashboard-header p:not(.kicker),
.campaign-work-header p,
.step-helper,
.content-panel p,
.campaign-home-card p,
.summary-list dd,
.url-box,
.qr-panel small {
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

.kicker,
.panel-label,
label span,
legend,
.choice small,
.summary-list dt,
.metric-row span,
.campaign-home-meta span,
.status-note,
.table-wrap th {
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0;
}

.primary-button,
.secondary-button,
.primary-link,
.secondary-link,
.text-link,
.rail-nav a,
.campaign-card-actions .primary-link,
.campaign-card-actions .secondary-button {
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0;
}

.rail-powered small,
.campaign-home-meta strong {
  font-weight: 400;
}

.rail-powered strong,
.campaign-home-card h3,
.table-wrap td,
input,
textarea,
select {
  font-weight: 500;
}

.dashboard-stats strong,
.metric-row strong,
.quick-card strong,
.poster-preview-card h2,
.poster h2,
.campaign-hero h2,
.thank-you h1,
.ended h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0;
}

.splash-actions .primary-link,
.splash-actions .secondary-link,
.splash-steps strong,
.splash-demo-card strong {
  font-weight: 850;
}

.splash-actions .primary-link {
  background: linear-gradient(180deg, #ff6a00, #f04b12);
  box-shadow: 0 16px 34px rgba(255, 106, 0, 0.22);
}

.splash-actions .secondary-link {
  background: #ffffff;
  color: #3c4354;
  border-color: #cfd6e2;
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.07);
}

.pricing-view {
  display: grid;
  gap: 24px;
  max-width: 1400px;
}

.pricing-header {
  align-items: flex-start;
}

.pricing-status {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #157347;
  font-weight: 800;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

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

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.plan-card.is-featured {
  border-color: rgba(255, 106, 0, 0.45);
  box-shadow: 0 28px 60px rgba(255, 106, 0, 0.14);
}

.plan-eyebrow {
  color: var(--magenta);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1;
}

.plan-card h3 span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 1rem;
}

.plan-card ul {
  margin: 0;
  padding-left: 18px;
  color: #475467;
  line-height: 1.8;
}

.plan-card .primary-button,
.plan-card .secondary-button {
  justify-content: center;
  margin-top: auto;
}

.pass-credit-panel {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.pass-credit-panel h3 {
  margin: 0 0 8px;
}

.pass-credit-panel p {
  margin: 0;
  color: var(--muted);
}

.pass-redeem-form {
  display: grid;
  gap: 12px;
  min-width: min(100%, 320px);
}

.pass-redeem-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.pass-redeem-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-header,
  .pass-credit-panel {
    flex-direction: column;
    align-items: stretch;
  }
}
