:root {
  --cream: #fff3d8;
  --ink: #1d0f0a;
  --muted: #60483a;
  --red: #c92a1c;
  --orange: #ff7a1a;
  --yellow: #ffd51f;
  --turquoise: #087f8c;
  --pink: #e82e8a;
  --green: #2f6f45;
  --purple: #4a2f84;
  --blue: #1456e8;
  --white: #fffaf0;
  --shadow: 0 28px 78px rgba(75, 33, 18, 0.2);
  --small-shadow: 0 16px 34px rgba(75, 33, 18, 0.12);
  --hairline: rgba(29, 15, 10, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fff8e8 0%, #fff0d0 48%, #fffaf0 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.landing,
.builder-page {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.landing::before,
.builder-page::before {
  background-image:
    linear-gradient(45deg, rgba(201, 42, 28, 0.055) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(8, 127, 140, 0.055) 25%, transparent 25%);
  background-size: 30px 30px, 30px 30px, 18px 18px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 72%);
  opacity: 0.38;
  pointer-events: none;
  position: fixed;
}

.top-nav,
.builder-header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1220px;
  padding: 24px;
  position: relative;
  z-index: 3;
}

.top-nav {
  backdrop-filter: blur(18px);
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.92), rgba(255, 241, 199, 0.86)),
    rgba(255, 250, 242, 0.88);
  border: 2px solid rgba(29, 15, 10, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(103, 31, 13, 0.16);
  margin-top: 18px;
  padding: 10px 14px;
  position: sticky;
  top: 14px;
}

.top-nav::after {
  background: linear-gradient(90deg, var(--red), var(--green), var(--turquoise));
  border-radius: 999px;
  bottom: -8px;
  content: "";
  height: 6px;
  left: 34px;
  position: absolute;
  right: 34px;
}

@media (min-width: 701px) {
  .landing {
    padding-top: 112px;
  }

  .landing .top-nav {
    left: 50%;
    margin-top: 0;
    position: fixed;
    top: 18px;
    transform: translateX(-50%);
    width: min(1220px, calc(100% - 48px));
    z-index: 20;
  }
}

.brand-mark {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  gap: 12px;
  letter-spacing: 0;
  padding: 0;
}

.brand-label {
  font-weight: 950;
}

.logo-mark {
  background: #fff4dc;
  border: 4px solid #fff;
  border-radius: 16px;
  box-shadow: var(--small-shadow);
  display: block;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.access-status-badge {
  align-items: flex-start;
  background:
    linear-gradient(135deg, rgba(255, 214, 77, 0.18), rgba(15, 163, 168, 0.12)),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(37, 23, 17, 0.1);
  border-left: 6px solid var(--green);
  border-radius: 18px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}

.access-status-badge strong {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.access-status-badge span {
  color: #60483a;
  font-size: 0.86rem;
  font-weight: 820;
  line-height: 1.35;
}

.access-status-badge.compact {
  border-radius: 14px;
  margin-top: 10px;
  padding: 9px 10px;
}

.access-status-badge.compact strong {
  font-size: 0.72rem;
}

.access-status-badge.compact span {
  font-size: 0.76rem;
}

.access-status-badge.needed {
  border-left-color: var(--red);
}

.access-status-badge.available {
  border-left-color: var(--turquoise);
}

.access-status-badge.locked {
  border-left-color: #8b2f76;
}

.access-status-badge.paid,
.access-status-badge.admin {
  border-left-color: var(--green);
}

.project-access-callout {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.project-access-callout p {
  color: #60483a;
  font-weight: 820;
  line-height: 1.45;
  margin: 0;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 800;
  justify-content: flex-end;
}

.mobile-menu-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  display: none;
  font-size: 0.8rem;
  font-weight: 950;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
}

.mobile-menu-button span {
  display: none;
}

.mobile-menu-button::before {
  content: "☰";
  font-size: 1.1rem;
  line-height: 1;
}

.account-controls,
.builder-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.language-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid var(--hairline);
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.language-toggle button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #60483a;
  font-size: 0.78rem;
  font-weight: 950;
  min-height: 34px;
  padding: 0 10px;
}

.language-toggle button.active {
  background: var(--ink);
  color: #fff;
}

.nav-links a {
  color: #4f281c;
}

.nav-links a:hover,
.nav-ghost:hover {
  color: var(--red);
}

.nav-ghost {
  align-items: center;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 999px;
  color: #4f281c;
  display: inline-flex;
  gap: 7px;
  font-weight: 900;
  min-height: 40px;
  padding: 0 13px;
}

.nav-projects-button {
  background: #fff;
  box-shadow: 0 8px 18px rgba(89, 37, 21, 0.1);
}

.nav-icon {
  align-items: center;
  background: rgba(217, 32, 22, 0.1);
  border-radius: 999px;
  color: var(--red);
  display: inline-flex;
  font-size: 0.72rem;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.nav-cta,
.primary-button,
.secondary-button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border 180ms ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--red) 0%, #8f1f17 100%);
  box-shadow: 0 16px 34px rgba(201, 42, 28, 0.24), inset 0 1px rgba(255, 255, 255, 0.28);
  color: #fff;
}

.secondary-button,
.nav-cta {
  background: rgba(255, 250, 240, 0.9);
  border: 2px solid rgba(29, 15, 10, 0.16);
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.nav-cta:hover {
  box-shadow: 0 18px 42px rgba(89, 37, 21, 0.2);
  transform: translateY(-2px);
}

.primary-button:active,
.secondary-button:active,
.nav-cta:active,
.small-button:active {
  transform: translateY(0) scale(0.98);
}

.large {
  min-height: 58px;
  padding: 0 30px;
}

.small-button {
  min-height: 42px;
  padding: 0 16px;
}

.full {
  width: 100%;
}

.section-band,
.access-code-strip,
.feature-section,
.seo-intent-section,
.how-section,
.sample-section,
.physical-shop-section,
.review-section,
.final-cta,
.site-footer,
.builder-shell {
  margin: 0 auto;
  max-width: 1360px;
  padding: 86px 32px;
  position: relative;
  z-index: 2;
}

.access-code-strip {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(29, 15, 10, 0.92), rgba(79, 40, 28, 0.88)),
    var(--ink);
  border-radius: 28px;
  box-shadow: var(--small-shadow);
  color: #fffaf0;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-top: 24px;
  padding-bottom: 26px;
  padding-top: 26px;
}

.access-code-strip h2 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2.35rem);
  line-height: 1;
  margin-bottom: 8px;
}

.access-code-strip p {
  color: rgba(255, 250, 240, 0.84);
  line-height: 1.45;
  margin: 0;
  max-width: 760px;
}

.access-code-strip .eyebrow {
  color: var(--yellow);
  margin-bottom: 8px;
}

.access-code-strip .secondary-button {
  background: #fffaf0;
  flex: 0 0 auto;
}

.feature-section {
  background: rgba(255, 250, 240, 0.78);
  border: 1px solid rgba(29, 15, 10, 0.08);
  border-radius: 30px;
  box-shadow: var(--small-shadow);
  padding-top: 58px;
}

.seo-intent-section {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(201, 42, 28, 0.08), rgba(47, 111, 69, 0.1)),
    rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(29, 15, 10, 0.08);
  border-radius: 34px;
  box-shadow: var(--small-shadow);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  margin-top: 28px;
  padding-bottom: 44px;
  padding-top: 44px;
}

.seo-intent-section h2 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  line-height: 1;
  margin-bottom: 14px;
}

.seo-intent-section p {
  color: #5b3526;
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.65;
  margin: 0;
  max-width: 740px;
}

.seo-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.seo-chip-grid span {
  background: #fffaf0;
  border: 1px solid rgba(29, 15, 10, 0.1);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(89, 37, 21, 0.08);
  color: #4f281c;
  font-size: 0.86rem;
  font-weight: 950;
  padding: 10px 14px;
}

.hero {
  background:
    radial-gradient(circle at 96% 48%, rgba(232, 79, 61, 0.16), transparent 8rem),
    radial-gradient(circle at 88% 64%, rgba(15, 163, 168, 0.16), transparent 7rem),
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(255, 243, 216, 0.82)),
    #fff3d8;
  border: 1px solid rgba(29, 15, 10, 0.08);
  border-radius: 34px;
  box-shadow: var(--shadow);
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr);
  margin-left: auto;
  margin-right: auto;
  min-height: clamp(610px, calc(100vh - 112px), 780px);
  overflow: hidden;
  padding: clamp(34px, 5vw, 62px);
  position: relative;
  width: min(100% - 48px, 1540px);
}

.hero::before {
  display: none;
}

.hero::after {
  background: linear-gradient(90deg, var(--red), var(--green), var(--turquoise));
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 12px 26px rgba(89, 37, 21, 0.12);
  content: "";
  height: 10px;
  left: 24px;
  position: absolute;
  width: min(420px, calc(100% - 48px));
  z-index: 3;
}

.hero-copy {
  max-width: 610px;
  min-width: 0;
  position: relative;
  width: 100%;
  z-index: 2;
  align-self: center;
}

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

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

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

.hero h1,
.builder-intro h1 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(3.3rem, 6.5vw, 7.4rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin-bottom: 24px;
  max-width: 620px;
  text-wrap: balance;
}

.hero-title-lockup {
  display: grid;
  gap: 0;
}

.hero-title-lockup > span:first-child {
  color: var(--ink);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 8.2vw, 9.5rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.78;
}

.maker-word {
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 6.7vw, 7.7rem);
  font-weight: 950;
  line-height: 0.78;
}

.maker-word i {
  font-style: normal;
}

.maker-word i:nth-child(1) {
  color: var(--red);
}

.maker-word i:nth-child(2) {
  color: var(--green);
}

.maker-word i:nth-child(3) {
  color: #de6d93;
}

.maker-word i:nth-child(4) {
  color: var(--turquoise);
}

.maker-word i:nth-child(5) {
  color: var(--purple);
}

.hero-sub {
  color: #4f281c;
  font-size: 1.18rem;
  line-height: 1.55;
  max-width: 535px;
}

.hero-slogan {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 22px;
}

.hero-slogan span {
  background: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(103, 31, 13, 0.16);
  color: #fffaf0;
  font-size: 0.92rem;
  font-weight: 950;
  padding: 9px 12px;
  transform-origin: center;
  animation: wordPulse 4.8s ease-in-out infinite;
}

.hero-slogan span:nth-child(2) {
  animation-delay: 0.25s;
  background: var(--red);
}

.hero-slogan span:nth-child(3) {
  animation-delay: 0.5s;
  background: var(--green);
}

.hero-slogan span:nth-child(4) {
  animation-delay: 0.75s;
  background: var(--purple);
}

@keyframes wordPulse {
  0%,
  74%,
  100% {
    transform: translateY(0) scale(1);
  }
  82% {
    transform: translateY(-4px) scale(1.04);
  }
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.trust-strip span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(29, 15, 10, 0.08);
  border-radius: 999px;
  color: #4f281c;
  font-weight: 950;
  padding: 10px 14px;
}

.hero-artwork {
  inset: 0;
  overflow: hidden;
  position: absolute;
  z-index: 0;
}

.hero-artwork img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

.hero-artwork::after {
  background:
    linear-gradient(90deg, rgba(255, 243, 199, 0.98) 0%, rgba(255, 243, 199, 0.95) 34%, rgba(255, 243, 199, 0.72) 48%, rgba(255, 243, 199, 0.08) 72%),
    linear-gradient(180deg, rgba(255, 243, 199, 0.05), rgba(255, 243, 199, 0.18));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-artwork-card {
  background: rgba(255, 250, 240, 0.88);
  border: 2px solid rgba(29, 15, 10, 0.15);
  border-radius: 22px;
  bottom: 34px;
  box-shadow: var(--small-shadow);
  display: grid;
  gap: 4px;
  max-width: 230px;
  padding: 16px 18px;
  position: absolute;
  right: 34px;
  z-index: 2;
}

.hero-artwork-card strong {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.2rem;
  line-height: 1;
}

.hero-artwork-card span {
  color: #5b3526;
  font-weight: 900;
}

.hero-showcase {
  align-self: center;
  height: min(660px, 64vw);
  min-height: 500px;
  pointer-events: none;
  position: relative;
  right: auto;
  top: auto;
  width: min(100%, 820px);
  z-index: 1;
}

.hero-image-showcase {
  align-items: center;
  display: flex;
  justify-content: center;
}

.hero-replacement-image {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  max-height: 660px;
  overflow: hidden;
  position: relative;
  width: min(100%, 820px);
}

.hero-image-showcase.is-loading .hero-replacement-image {
  animation: imageLoadingSweep 1.4s ease-in-out infinite;
}

.hero-replacement-image img {
  display: block;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  filter: drop-shadow(0 24px 34px rgba(29, 15, 10, 0.18));
  transition: opacity 320ms ease;
  width: auto;
}

.hero-image-showcase.is-ready .hero-replacement-image img {
  opacity: 1;
}

@keyframes imageLoadingSweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

.hero-replacement-image span {
  color: rgba(201, 42, 28, 0.22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 950;
  left: 50%;
  letter-spacing: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.realistic-board {
  aspect-ratio: 5 / 7;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 213, 31, 0.18), transparent 14rem),
    #ffecc5;
  border: 2px solid rgba(29, 15, 10, 0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  height: min(100%, 760px);
  margin-left: auto;
  max-height: 100%;
  width: min(78%, 600px);
  overflow: hidden;
  padding: 22px 24px 16px;
  position: relative;
  transform: rotate(3deg);
}

.hero-deck-stack {
  bottom: 29%;
  filter: drop-shadow(0 20px 26px rgba(29, 15, 10, 0.24));
  height: 210px;
  left: 3%;
  position: absolute;
  transform: rotate(-7deg);
  width: 152px;
  z-index: 4;
}

.hero-deck-stack > span {
  background: #f8f7f0;
  border: 2px solid rgba(29, 15, 10, 0.12);
  border-radius: 14px;
  box-shadow: 0 10px 18px rgba(29, 15, 10, 0.12);
  inset: 14px -9px -12px 9px;
  position: absolute;
}

.hero-deck-stack > span:nth-child(2) {
  inset: 7px -4px -6px 5px;
}

.hero-deck-card {
  background: #fff8e5;
  border: 3px solid #ffffff;
  border-radius: 15px;
  box-shadow: inset 0 0 0 2px rgba(8, 127, 140, 0.7);
  display: grid;
  gap: 5px;
  grid-template-rows: 1fr auto auto;
  height: 100%;
  overflow: hidden;
  padding: 12px;
  position: relative;
  text-align: center;
}

.hero-deck-photo {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 214, 77, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 26% 56%, rgba(239, 93, 168, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 76% 64%, rgba(255, 250, 240, 0.95) 0 2px, transparent 3px),
    linear-gradient(135deg, #087f8c, #0b6d78);
  background-position: center;
  background-size: cover;
  border-radius: 9px;
  min-height: 0;
  position: relative;
}

.hero-deck-photo::after {
  background:
    radial-gradient(circle at 22% 20%, #ffd64d 0 3px, transparent 4px),
    radial-gradient(circle at 62% 30%, #ef5da8 0 3px, transparent 4px),
    radial-gradient(circle at 42% 66%, #fff3d8 0 2px, transparent 3px);
  content: "";
  inset: 0;
  opacity: 0.82;
  position: absolute;
}

.hero-deck-card strong {
  color: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  margin-top: -48px;
  position: relative;
  text-shadow: 0 2px 4px rgba(29, 15, 10, 0.36);
  transform: rotate(-9deg);
  z-index: 2;
}

.hero-deck-card small {
  color: #fffaf0;
  font-size: 0.56rem;
  font-weight: 950;
  margin-top: -20px;
  position: relative;
  text-transform: uppercase;
  z-index: 2;
}

.realistic-board::before,
.realistic-board::after {
  background:
    radial-gradient(circle, var(--green) 0 3px, transparent 4px),
    radial-gradient(circle, var(--pink) 0 3px, transparent 4px),
    radial-gradient(circle, var(--turquoise) 0 3px, transparent 4px);
  background-position: 0 18px, 0 52px, 0 86px;
  background-repeat: repeat-y;
  background-size: 20px 68px;
  content: "";
  opacity: 0.75;
  position: absolute;
  top: 94px;
  bottom: 54px;
  width: 20px;
}

.realistic-board::before {
  left: 6px;
}

.realistic-board::after {
  right: 6px;
}

.realistic-board-heading {
  display: grid;
  line-height: 1;
  text-align: center;
  z-index: 1;
}

.realistic-board-heading strong {
  color: var(--red);
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 3.25rem);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.realistic-board-heading span {
  color: var(--green);
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(0.78rem, 1.2vw, 1.1rem);
  font-style: italic;
  font-weight: 950;
  margin-top: -2px;
}

.realistic-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 0;
  padding: 0 12px;
  z-index: 1;
}

.realistic-card,
.floating-style-card {
  aspect-ratio: 2.5 / 3.5;
  background: #fff4d7;
  border: 2px solid rgba(29, 15, 10, 0.88);
  border-radius: 7px;
  box-shadow: 0 8px 16px rgba(29, 15, 10, 0.12);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.realistic-photo {
  background-color: #d8b68c;
  background-repeat: no-repeat;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.realistic-photo::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.18));
  content: "";
  inset: 0;
  position: absolute;
}

.realistic-photo span {
  color: #111;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(0.5rem, 0.8vw, 0.78rem);
  font-weight: 950;
  left: 6px;
  line-height: 1;
  position: absolute;
  text-shadow:
    -1px -1px 0 rgba(255,255,255,0.85),
    1px -1px 0 rgba(255,255,255,0.85),
    -1px 1px 0 rgba(255,255,255,0.85),
    1px 1px 0 rgba(255,255,255,0.85);
  top: 6px;
  z-index: 2;
}

.shadow-label .realistic-photo strong {
  background: rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  bottom: 7px;
  color: #0d0906;
  display: block;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(0.46rem, 0.72vw, 0.72rem);
  font-weight: 950;
  left: 7px;
  line-height: 0.94;
  max-height: 2.05em;
  overflow: hidden;
  padding: 3px 5px;
  position: absolute;
  right: 7px;
  text-align: center;
  text-transform: uppercase;
  z-index: 2;
  -webkit-text-stroke: 2px rgba(255,255,255,0.88);
  paint-order: stroke fill;
}

.caption-band .realistic-photo {
  border-bottom: 2px solid rgba(29, 15, 10, 0.88);
  height: 77%;
}

.caption-band > strong {
  align-items: center;
  color: #1d0f0a;
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.52rem, 0.8vw, 0.78rem);
  font-weight: 900;
  height: 23%;
  justify-content: center;
  line-height: 1;
  padding: 2px 4px;
  text-align: center;
}

.realistic-board-footer {
  align-items: center;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding: 0 10px;
  z-index: 1;
}

.realistic-board-footer span {
  background: rgba(255, 250, 240, 0.86);
  border-radius: 999px;
  font-size: clamp(0.48rem, 0.8vw, 0.75rem);
  font-weight: 900;
  justify-self: start;
  padding: 5px 8px;
}

.realistic-board-footer strong {
  color: var(--red);
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.6rem);
  grid-column: 2;
}

.hero-floating-cards {
  bottom: 2%;
  display: contents;
  left: 0;
  position: absolute;
  z-index: 5;
}

.floating-style-card {
  border-width: 3px;
  height: 190px;
  position: absolute;
  width: 136px;
  z-index: 5;
}

.floating-one {
  bottom: 8%;
  left: 0;
  transform: rotate(-10deg);
}

.floating-two {
  bottom: 11%;
  left: 150px;
  transform: rotate(8deg);
}

.mockup-stage {
  aspect-ratio: 1 / 0.92;
  bottom: 18px;
  height: min(610px, 92%);
  max-width: 100%;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 18px;
  width: min(620px, 48vw);
  z-index: 1;
  animation: stageFloat 8s ease-in-out infinite;
}

.floating-sun {
  background: repeating-conic-gradient(from 0deg, var(--yellow) 0 12deg, var(--orange) 12deg 24deg);
  border: 10px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  filter: drop-shadow(0 16px 25px rgba(255, 143, 61, 0.22));
  height: 150px;
  position: absolute;
  right: 5%;
  top: 2%;
  width: 150px;
  animation: slowSpin 22s linear infinite;
}

.mock-board {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 213, 31, 0.36), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.72), rgba(255, 250, 240, 0.34)),
    #fff4dc;
  border: 10px solid #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  height: 78%;
  padding: 28px;
  position: absolute;
  right: 0;
  top: 12%;
  transform: rotate(2deg);
  width: 68%;
}

.mock-board::before {
  background: linear-gradient(90deg, var(--turquoise), var(--yellow), var(--pink), var(--green), var(--red));
  border-radius: 999px;
  content: "";
  height: 12px;
  left: 34px;
  position: absolute;
  right: 34px;
  top: 18px;
}

.mock-board-title {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(1.3rem, 2vw, 2.2rem);
  font-weight: 950;
  margin: 24px 0 18px;
  text-align: center;
}

.mock-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.mock-cell {
  align-items: end;
  aspect-ratio: 2.5 / 3.5;
  background:
    radial-gradient(circle at 28% 25%, rgba(255,255,255,0.55), transparent 22%),
    linear-gradient(135deg, rgba(232, 46, 138, 0.94), rgba(0, 168, 184, 0.9));
  border: 2px solid rgba(29, 15, 10, 0.72);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  padding: 6px;
}

.mock-cell span {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  color: var(--ink);
  display: block;
  font-size: 0.55rem;
  font-weight: 950;
  max-width: 100%;
  overflow: hidden;
  padding: 4px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-card-stack {
  height: 300px;
  left: 0;
  position: absolute;
  top: 19%;
  width: 230px;
  z-index: 2;
}

.mock-card {
  background: #fff;
  border: 8px solid #fff;
  border-radius: 18px;
  box-shadow: var(--small-shadow);
  height: 245px;
  padding: 10px;
  position: absolute;
  transform-origin: bottom center;
  width: 175px;
}

.mock-card-1 {
  left: 16px;
  top: 28px;
  animation: floatCard 5.8s ease-in-out infinite;
  transform: rotate(-10deg);
}

.mock-card-2 {
  left: 62px;
  top: 0;
  animation: floatCard 6.4s ease-in-out infinite 0.4s;
  transform: rotate(8deg);
}

.mock-card-3 {
  left: 112px;
  top: 54px;
  animation: floatCard 7s ease-in-out infinite 0.8s;
  transform: rotate(18deg);
}

@keyframes floatCard {
  0%,
  100% {
    margin-top: 0;
  }
  50% {
    margin-top: -10px;
  }
}

.mock-photo {
  align-items: flex-start;
  background:
    radial-gradient(circle at 24% 24%, rgba(255,255,255,0.55), transparent 18%),
    linear-gradient(135deg, var(--orange), var(--pink), var(--turquoise));
  border: 2px solid rgba(29, 15, 10, 0.74);
  border-radius: 12px;
  display: flex;
  height: 172px;
  padding: 10px;
}

.mock-photo span {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 950;
  padding: 6px 8px;
}

.mock-card strong {
  display: block;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1rem;
  margin-top: 10px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes stageFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(1turn);
  }
}

.loteria-marquee {
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
  border-top: 3px solid var(--ink);
  box-shadow: 0 14px 34px rgba(103, 31, 13, 0.14);
  margin: 16px 0 34px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.loteria-marquee div {
  animation: marqueeSlide 28s linear infinite;
  display: flex;
  gap: 34px;
  min-width: max-content;
  padding: 16px 0;
}

.loteria-marquee span {
  color: var(--ink);
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.loteria-marquee span::after {
  color: var(--red);
  content: " *";
  margin-left: 34px;
}

.manifesto-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 213, 31, 0.26), transparent 24rem),
    radial-gradient(circle at 86% 74%, rgba(0, 168, 184, 0.22), transparent 22rem),
    var(--red);
  border: 3px solid rgba(29, 15, 10, 0.16);
  border-radius: 46px;
  box-shadow: var(--shadow);
  color: #fffaf0;
  margin: 0 auto 34px;
  max-width: 1220px;
  min-height: 520px;
  overflow: hidden;
  padding: clamp(38px, 7vw, 86px) 24px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.manifesto-section::before,
.manifesto-section::after {
  background:
    linear-gradient(135deg, var(--turquoise) 0 18%, transparent 18% 30%, var(--yellow) 30% 50%, transparent 50% 62%, var(--pink) 62% 82%, var(--green) 82%),
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.8) 0 5px, transparent 6px);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 88% 100%, 76% 70%, 64% 100%, 52% 70%, 40% 100%, 28% 70%, 16% 100%, 4% 70%, 0 100%);
  content: "";
  height: 72px;
  left: 0;
  position: absolute;
  right: 0;
}

.manifesto-section::before {
  top: 0;
}

.manifesto-section::after {
  bottom: 0;
  transform: rotate(180deg);
}

.manifesto-section .eyebrow {
  color: var(--yellow);
  margin-top: 56px;
}

.manifesto-section h2 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(2.6rem, 7vw, 7.6rem);
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0 auto;
  max-width: 980px;
  text-wrap: balance;
}

.scroll-reveal-text {
  display: inline;
}

.scroll-word {
  display: inline-block;
  margin-right: 0.18em;
  transform: translateY(0);
  transition: opacity 120ms linear, transform 120ms linear, filter 120ms linear;
  will-change: opacity, transform, filter;
}

.statement-section {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1220px;
  padding: 30px 24px 70px;
  position: relative;
  z-index: 2;
}

.statement-line {
  align-items: end;
  background: rgba(255, 250, 240, 0.86);
  border: 1px solid rgba(29, 15, 10, 0.09);
  border-radius: 30px;
  box-shadow: var(--small-shadow);
  display: grid;
  gap: 24px;
  grid-template-areas:
    "title media"
    "copy media";
  grid-template-columns: minmax(0, 1.14fr) minmax(240px, 0.66fr);
  min-height: 250px;
  overflow: hidden;
  padding: clamp(26px, 5vw, 58px);
  position: relative;
}

.statement-media {
  align-self: stretch;
  background:
    linear-gradient(135deg, rgba(255, 213, 31, 0.46), rgba(232, 46, 138, 0.26)),
    #fff4dc;
  background-position: center;
  background-size: cover;
  border: 3px solid rgba(29, 15, 10, 0.78);
  border-radius: 24px;
  grid-area: media;
  min-height: 190px;
  overflow: hidden;
}

.statement-line::after {
  display: none;
}

.statement-line:nth-child(2) {
  background: linear-gradient(135deg, var(--red), #8f1f17);
  color: #fffaf0;
}

.statement-line:nth-child(2) p {
  color: rgba(255, 250, 240, 0.9);
}

.statement-line:nth-child(3) {
  background: linear-gradient(135deg, var(--green), var(--turquoise));
  color: #fffaf0;
}

.statement-line:nth-child(3) p {
  color: rgba(255, 250, 240, 0.92);
}

.statement-line h2 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(3rem, 7vw, 7.4rem);
  grid-area: title;
  letter-spacing: 0;
  line-height: 0.86;
  margin: 0;
  max-width: 840px;
  text-wrap: balance;
}

.statement-line p {
  color: #5b3526;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 850;
  grid-area: copy;
  line-height: 1.35;
  margin: 0;
}

.manifesto-art span {
  align-items: center;
  background: #fffaf0;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(29, 15, 10, 0.18);
  color: var(--ink);
  display: inline-flex;
  font-weight: 950;
  height: 58px;
  justify-content: center;
  position: absolute;
  width: 44px;
}

.manifesto-art span:nth-child(1) {
  left: 7%;
  top: 24%;
  transform: rotate(-12deg);
}

.manifesto-art span:nth-child(2) {
  right: 8%;
  top: 22%;
  transform: rotate(10deg);
}

.manifesto-art span:nth-child(3) {
  bottom: 20%;
  left: 13%;
  transform: rotate(7deg);
}

@keyframes marqueeSlide {
  to {
    transform: translateX(-50%);
  }
}

.section-heading {
  margin: 0 auto 32px;
  max-width: 760px;
  text-align: center;
}

.section-heading h2,
.final-cta h2,
.builder-panel h2 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(2.1rem, 4vw, 4.1rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 14px;
}

.section-heading p {
  color: #5b3526;
  font-size: 1.08rem;
  line-height: 1.6;
}

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

.feature-card,
.flow-step,
.download-card,
.generator-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.94), rgba(255, 246, 225, 0.72)),
    rgba(255, 250, 240, 0.78);
  border: 2px solid rgba(29, 15, 10, 0.1);
  border-radius: 24px;
  box-shadow: var(--small-shadow);
  padding: 26px;
}

.feature-card {
  min-height: 230px;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card::after {
  background: linear-gradient(90deg, var(--red), var(--green), var(--turquoise));
  bottom: 0;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  right: 0;
}

.feature-card:hover,
.flow-step:hover {
  box-shadow: 0 20px 48px rgba(89, 37, 21, 0.16);
  transform: translateY(-3px);
}

.feature-card h3,
.flow-step h3,
.download-card h3,
.generator-card h3 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.35rem;
  line-height: 1.05;
  margin-bottom: 12px;
}

.feature-card p,
.flow-step p,
.download-card p,
.soft-copy {
  color: #5b3526;
  line-height: 1.55;
}

.feature-icon,
.marketing-icon {
  border: 5px solid #fff;
  border-radius: 16px;
  height: 66px;
  margin-bottom: 20px;
  position: relative;
  width: 66px;
}

.feature-icon::after {
  background: rgba(255,255,255,0.75);
  border-radius: 999px;
  content: "";
  height: 16px;
  left: 15px;
  position: absolute;
  top: 15px;
  width: 16px;
}

.marketing-icon {
  align-items: center;
  color: #fffaf0;
  display: inline-flex;
  justify-content: center;
}

.marketing-icon svg {
  height: 38px;
  width: 38px;
}

.marketing-icon.photos {
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.marketing-icon.labels {
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.marketing-icon.boards {
  background: linear-gradient(135deg, var(--turquoise), var(--green));
}

.marketing-icon.print {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--ink);
}

.marketing-icon.ship {
  background: linear-gradient(135deg, var(--blue), var(--turquoise));
}

.marketing-icon.party {
  background: linear-gradient(135deg, var(--green), var(--yellow));
  color: var(--ink);
}

.icon-1 {
  background: linear-gradient(135deg, var(--red), var(--orange));
}
.icon-2 {
  background: linear-gradient(135deg, var(--turquoise), var(--green));
}
.icon-3 {
  background: linear-gradient(135deg, var(--yellow), var(--pink));
}
.icon-4 {
  background: linear-gradient(135deg, var(--purple), var(--pink));
}
.icon-5 {
  background: linear-gradient(135deg, var(--green), var(--yellow));
}
.icon-6 {
  background: linear-gradient(135deg, var(--orange), var(--turquoise));
}

.how-section {
  background:
    linear-gradient(135deg, rgba(0, 168, 184, 0.12), rgba(232, 46, 138, 0.1)),
    rgba(255, 250, 240, 0.5);
  border-radius: 42px;
}

.flow-step {
  position: relative;
  padding-top: 44px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.flow-step::before {
  background:
    linear-gradient(135deg, var(--turquoise) 0 18%, transparent 18% 32%, var(--yellow) 32% 52%, transparent 52% 66%, var(--pink) 66%),
    rgba(255,255,255,0.3);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 86% 100%, 72% 62%, 58% 100%, 44% 62%, 30% 100%, 16% 62%, 0 100%);
  content: "";
  height: 30px;
  left: 18px;
  position: absolute;
  right: 18px;
  top: 0;
}

.flow-step span {
  align-items: center;
  background: linear-gradient(135deg, var(--ink), #66321f);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  margin-bottom: 22px;
  width: 42px;
}

.final-cta {
  align-items: center;
  background:
    radial-gradient(circle at 82% 20%, rgba(255, 213, 31, 0.45), transparent 18rem),
    linear-gradient(135deg, rgba(0, 168, 184, 0.96), rgba(17, 136, 77, 0.88)),
    var(--turquoise);
  border: 3px solid rgba(29, 15, 10, 0.14);
  border-radius: 38px;
  box-shadow: var(--shadow);
  color: #fffaf0;
  display: flex;
  justify-content: space-between;
  margin-bottom: 70px;
  overflow: hidden;
  position: relative;
}

.final-cta::before {
  background:
    linear-gradient(135deg, var(--red) 0 18%, transparent 18% 32%, var(--yellow) 32% 52%, transparent 52% 66%, var(--pink) 66%),
    rgba(255,255,255,0.2);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 88% 100%, 76% 66%, 64% 100%, 52% 66%, 40% 100%, 28% 66%, 16% 100%, 4% 66%, 0 100%);
  content: "";
  height: 42px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.final-cta h2 {
  margin: 0;
}

.sample-section,
.physical-shop-section,
.review-section {
  padding-top: 50px;
}

.sample-section {
  background: rgba(255, 250, 240, 0.62);
  border-radius: 30px;
}

.sample-grid,
.review-grid,
.project-action-grid,
.project-card-grid {
  display: grid;
  gap: 18px;
}

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

.sample-card,
.review-card,
.project-action-card,
.saved-project-card,
.signin-project-callout,
.account-routing-card,
.admin-detail-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.64)),
    rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  box-shadow: var(--small-shadow);
}

.sample-card {
  display: grid;
  gap: 16px;
  min-height: 360px;
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.sample-card:hover,
.project-action-card:hover,
.saved-project-card:hover {
  box-shadow: 0 18px 46px rgba(93, 48, 28, 0.16);
  transform: translateY(-4px);
}

.sample-board-mini {
  aspect-ratio: 5 / 7;
  background-position: center;
  background-size: cover;
  border: 3px solid rgba(29, 15, 10, 0.72);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.sample-board-mini.has-custom-image {
  align-content: end;
  border-color: rgba(29, 15, 10, 0.2);
  box-shadow: inset 0 -90px 70px rgba(29, 15, 10, 0.5);
  min-height: 0;
}

.sample-board-mini.has-custom-image strong {
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(29, 15, 10, 0.12);
  border-radius: 999px;
  color: var(--ink);
  justify-self: center;
  padding: 10px 14px;
}

.sample-board-mini::before {
  display: none;
}

.sample-1 .sample-board-mini {
  background: linear-gradient(135deg, #fff0f8, #dff4ff);
}

.sample-2 .sample-board-mini {
  background: linear-gradient(135deg, #fff7ea, #f0d8c0);
}

.sample-3 .sample-board-mini {
  background: linear-gradient(135deg, #fffbd7, #d8fff1);
}

.sample-4 .sample-board-mini {
  background: linear-gradient(135deg, #ffe5cf, #e7dcff);
}

.sample-board-mini strong {
  align-self: end;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  z-index: 1;
}

.sample-board-mini div {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(4, 1fr);
  z-index: 1;
}

.sample-board-mini span {
  align-items: end;
  aspect-ratio: 2.5 / 3.5;
  background-color: #fff4dc;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(29, 15, 10, 0.78);
  border-radius: 5px;
  color: #fff;
  display: flex;
  font-size: 0.62rem;
  font-weight: 950;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

.sample-board-mini span i {
  background: rgba(29, 15, 10, 0.78);
  display: block;
  font-style: normal;
  line-height: 1;
  padding: 4px 3px;
  text-align: center;
  width: 100%;
}

.sample-card h3,
.review-card strong,
.project-action-card h2,
.saved-project-card h3,
.signin-project-callout h3,
.empty-projects h3,
.admin-detail-card h3 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  line-height: 1;
  margin: 0;
}

.sample-card p,
.review-card p,
.project-action-card p,
.signin-project-callout p,
.empty-projects p,
.account-routing-card p,
.admin-detail-card p {
  color: #654d3f;
  line-height: 1.5;
  margin: 0;
}

.physical-shop-section {
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 216, 79, 0.28), transparent 24%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.82), rgba(255, 255, 255, 0.58)),
    rgba(255, 250, 240, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 34px;
  box-shadow: var(--small-shadow);
  scroll-margin-top: 130px;
}

.physical-product-showcase {
  overflow: hidden;
}

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

.compact-carousel .product-carousel-track {
  animation: productCarousel 24s linear infinite;
  display: flex;
  width: max-content;
}

.compact-carousel:hover .product-carousel-track {
  animation-play-state: paused;
}

@keyframes productCarousel {
  to {
    transform: translateX(-50%);
  }
}

.physical-product-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 246, 225, 0.72)),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 26px;
  box-shadow: var(--small-shadow);
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.compact-carousel .physical-product-card {
  width: min(310px, 74vw);
}

.physical-product-photo {
  align-items: end;
  aspect-ratio: 1;
  background:
    linear-gradient(135deg, rgba(255, 213, 31, 0.32), rgba(232, 46, 138, 0.2)),
    #fff4dc;
  background-position: center;
  background-size: cover;
  border: 8px solid #fff;
  border-radius: 22px;
  box-shadow: 0 16px 30px rgba(89, 37, 21, 0.14);
  display: flex;
  overflow: hidden;
  padding: 10px;
}

.physical-product-photo span {
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid rgba(37, 23, 17, 0.1);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  padding: 7px 10px;
}

.physical-product-card strong {
  display: block;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.22rem;
  line-height: 1.05;
}

.physical-product-card p {
  color: #60483a;
  font-size: 0.94rem;
  font-weight: 820;
  line-height: 1.45;
  margin: 7px 0;
}

.physical-product-card small {
  color: var(--green);
  display: block;
  font-weight: 950;
}

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

.review-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.review-photo {
  aspect-ratio: 1 / 1;
  background-color: #fff4dc;
  background-position: center;
  background-size: cover;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(75, 33, 18, 0.14);
  min-height: 0;
  margin-bottom: 4px;
}

.review-card strong {
  font-size: 1.28rem;
}

.site-footer {
  align-items: center;
  border-top: 1px solid rgba(37, 23, 17, 0.1);
  display: flex;
  justify-content: space-between;
  padding-bottom: 46px;
  padding-top: 32px;
}

.site-footer p {
  color: #6b5345;
  margin: 12px 0 0 60px;
}

.site-footer .brand-mark {
  align-items: center;
}

.site-footer .logo-mark {
  height: 56px;
  width: 56px;
}

.site-footer .brand-label {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.site-footer a,
.site-footer button {
  background: none;
  border: 0;
  color: #5e4638;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
}

.reveal-pending {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 720ms ease var(--reveal-delay, 0ms),
    transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms);
}

.reveal-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.builder-status-strip {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.builder-status-strip span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 999px;
  color: #594337;
  font-size: 0.9rem;
  font-weight: 850;
  padding: 10px 14px;
}

.project-hub-hero {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  margin-bottom: 22px;
}

.project-hub-hero h1 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(2.6rem, 5.4vw, 5.8rem);
  line-height: 0.93;
  margin-bottom: 16px;
}

.project-hub-hero p {
  color: #60483a;
  font-size: 1.08rem;
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}

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

.project-hub-stats article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  box-shadow: var(--small-shadow);
  padding: 16px;
}

.project-hub-stats span,
.project-action-card span {
  color: #60483a;
  display: block;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-hub-stats strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 6px;
}

.project-action-grid {
  grid-template-columns: minmax(0, 460px);
  margin-bottom: 22px;
}

.project-action-grid.single-action {
  justify-content: start;
}

.project-action-card {
  display: grid;
  gap: 12px;
  min-height: 0;
  padding: 20px;
}

.project-action-card h2 {
  font-size: 1.45rem;
}

.new-project-card {
  background:
    linear-gradient(135deg, rgba(232, 79, 61, 0.18), rgba(239, 93, 168, 0.14)),
    rgba(255, 255, 255, 0.78);
}

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

.project-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.saved-project-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.danger-button {
  align-items: center;
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: 999px;
  color: #9c241b;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 950;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
}

.danger-button:hover {
  background: rgba(180, 35, 24, 0.14);
}

.danger-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.saved-project-art {
  background: linear-gradient(135deg, #fff1cf, #ffe3f1);
  border-radius: 22px;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px;
}

.saved-project-art span {
  aspect-ratio: 2.5 / 3.5;
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--turquoise));
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 8px;
}

.saved-project-board-preview {
  background: #fff1cf;
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(4, 1fr);
  padding: 12px;
}

.saved-project-board-preview span {
  aspect-ratio: 2.5 / 3.5;
  background:
    linear-gradient(135deg, rgba(255, 213, 31, 0.56), rgba(232, 46, 138, 0.4)),
    #fff;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(0, 0, 0, 0.78);
  border-radius: 7px;
  display: flex;
  overflow: hidden;
  position: relative;
}

.saved-project-board-preview b {
  align-self: end;
  background: rgba(255, 244, 220, 0.92);
  border-top: 1px solid rgba(0, 0, 0, 0.8);
  display: block;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(0.34rem, 1.45vw, 0.5rem);
  font-weight: 1000;
  line-height: 0.95;
  overflow: hidden;
  padding: 3px 2px;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  width: 100%;
}

.saved-project-card p {
  color: #60483a;
  margin-bottom: 4px;
}

.saved-project-card small {
  color: #806758;
  font-weight: 850;
}

.signin-project-callout,
.account-routing-card {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px;
}

.signin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.empty-projects {
  background: rgba(255, 255, 255, 0.58);
  border: 1px dashed rgba(37, 23, 17, 0.16);
  border-radius: 24px;
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 24px;
}

.account-routing-card strong {
  display: block;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.admin-workspace {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.7fr) minmax(280px, 0.78fr) minmax(380px, 1.18fr);
}

.admin-list-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  box-shadow: var(--small-shadow);
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
}

.admin-nested-list {
  display: grid;
  gap: 10px;
  max-height: 660px;
  overflow: auto;
  padding-right: 3px;
}

.admin-user-card,
.admin-deck-card {
  background: rgba(255, 250, 242, 0.8);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 20px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border 160ms ease, background 160ms ease;
}

.admin-user-card {
  align-items: center;
  grid-template-columns: 44px minmax(0, 1fr) auto;
}

.admin-user-card b,
.admin-deck-card b {
  color: #715648;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.admin-user-card b {
  grid-column: 2 / -1;
}

.admin-user-card em {
  background: rgba(7, 174, 182, 0.12);
  border-radius: 999px;
  color: #075e64;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  padding: 6px 8px;
  text-transform: uppercase;
}

.admin-user-card strong,
.admin-deck-card strong {
  display: block;
  font-size: 0.96rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-project-cover-preview {
  background:
    linear-gradient(135deg, rgba(255, 213, 31, 0.3), rgba(15, 163, 168, 0.16)),
    #fff1cf;
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  min-height: 190px;
  overflow: hidden;
  padding: 12px;
}

.saved-project-cover-preview span {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255, 213, 31, 0.38), rgba(232, 46, 138, 0.24)),
    #fff4dc;
  background-position: center;
  background-size: cover;
  border: 2px solid rgba(29, 15, 10, 0.78);
  border-radius: 14px;
  display: flex;
  height: 100%;
  min-height: 166px;
  overflow: hidden;
}

.saved-project-cover-preview.empty-cover span {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 244, 220, 0.95), rgba(255, 241, 199, 0.72)),
    #fff4dc;
  justify-content: center;
  padding: 18px;
  text-align: center;
}

.saved-project-cover-preview b {
  background: rgba(255, 244, 220, 0.92);
  border-top: 1px solid rgba(0, 0, 0, 0.7);
  display: block;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 1000;
  line-height: 1;
  overflow: hidden;
  padding: 8px 7px;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  width: 100%;
}

.admin-user-card small,
.admin-deck-card small,
.admin-list-panel .section-minihead small {
  color: #7c6456;
  font-size: 0.78rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.admin-avatar {
  align-items: center;
  background: conic-gradient(from 210deg, var(--pink), var(--orange), var(--yellow), var(--turquoise), var(--pink));
  border: 3px solid #fff;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(89, 37, 21, 0.12);
  color: #fff;
  display: inline-flex;
  font-weight: 950;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.admin-deck-card {
  grid-template-columns: 74px minmax(0, 1fr);
}

.admin-deck-mini {
  background: linear-gradient(135deg, #fff0cf, #ffe1ef);
  border: 1px solid rgba(37, 23, 17, 0.1);
  border-radius: 16px;
  display: grid;
  gap: 4px;
  grid-row: span 3;
  grid-template-columns: repeat(2, 1fr);
  padding: 8px;
}

.admin-deck-mini i {
  aspect-ratio: 2.5 / 3.5;
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--turquoise));
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 5px;
  display: block;
}

.admin-user-card:hover,
.admin-deck-card:hover {
  box-shadow: 0 16px 36px rgba(89, 37, 21, 0.15);
  transform: translateY(-2px);
}

.admin-user-card.selected,
.admin-deck-card.selected,
.admin-row.selected {
  background: linear-gradient(135deg, rgba(255, 216, 79, 0.26), rgba(242, 79, 155, 0.16)), #fff;
  border-color: rgba(242, 79, 155, 0.34);
  outline: 3px solid rgba(242, 79, 155, 0.18);
}

.admin-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-detail-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 20px;
}

.admin-detail-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.admin-detail-head span {
  color: #60483a;
  font-size: 0.82rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-detail-head h3 {
  font-size: 1.55rem;
  margin-top: 5px;
}

.admin-detail-head > strong {
  background: linear-gradient(135deg, var(--ink), #69321e);
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  padding: 9px 12px;
}

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

.admin-detail-metrics article {
  background: linear-gradient(135deg, rgba(7, 174, 182, 0.09), rgba(255, 216, 79, 0.12));
  border-radius: 16px;
  padding: 12px;
}

.admin-detail-metrics span {
  color: #60483a;
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-detail-metrics strong {
  display: block;
  margin-top: 4px;
}

.admin-image-status {
  background: rgba(7, 174, 182, 0.1);
  border: 1px solid rgba(7, 174, 182, 0.18);
  border-radius: 999px;
  color: #075e64 !important;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 900;
  justify-self: start;
  padding: 9px 12px;
}

.admin-card-preview-grid {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.admin-card-thumb {
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 8px;
  padding: 10px;
  min-width: 0;
}

.admin-card-thumb .card-preview-canvas.compact {
  border-radius: 14px;
  border-width: 6px;
  min-width: 0;
  width: 100%;
}

.admin-card-thumb strong {
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-card-thumb small {
  color: #755b4e;
  font-weight: 900;
}

.admin-board-inspector {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.admin-board-inspector .board-preview {
  box-shadow: 0 18px 44px rgba(89, 37, 21, 0.16);
  max-height: 700px;
}

.admin-board-picker,
.admin-board-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-board-list {
  margin-top: 12px;
  max-height: 180px;
  overflow: auto;
  padding-right: 4px;
}

.admin-board-picker button,
.admin-board-list button {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(37, 23, 17, 0.12);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 950;
  min-height: 38px;
  padding: 0 12px;
}

.admin-board-list button {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.admin-board-list span {
  color: #6e5548;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-board-picker button.selected,
.admin-board-list button.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.admin-board-list button.selected span {
  color: rgba(255, 255, 255, 0.76);
}

.builder-header {
  padding-bottom: 8px;
}

.save-status,
.success-badge,
.warning-badge,
.upload-count,
.busy-banner {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 999px;
  color: #594337;
  font-size: 0.9rem;
  font-weight: 850;
  padding: 10px 14px;
}

.builder-shell {
  padding-top: 24px;
}

.builder-intro {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  margin-bottom: 24px;
}

.builder-intro h1 {
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  margin-bottom: 0;
}

.builder-intro p:last-child {
  color: #654d3f;
  font-size: 1.06rem;
  line-height: 1.6;
}

.stepper {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 28px;
  box-shadow: var(--small-shadow);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 22px;
  padding: 10px;
}

.step-pill {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 20px;
  color: #665045;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 58px;
  padding: 8px;
}

.step-pill span {
  align-items: center;
  background: rgba(37, 23, 17, 0.08);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.step-pill small {
  font-weight: 900;
}

.step-pill.active {
  background: #fff;
  box-shadow: 0 10px 24px rgba(93, 48, 28, 0.1);
  color: var(--ink);
}

.step-pill.active span,
.step-pill.complete span {
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: #fff;
}

.step-pill:disabled,
.step-pill.locked {
  cursor: not-allowed;
  opacity: 0.48;
}

.step-pill.locked span {
  background: rgba(37, 23, 17, 0.06);
  color: #8a7467;
}

.builder-panel {
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 38px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.two-column {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
}

.form-grid,
.advanced-grid,
.control-pair,
.download-settings {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-title-grid {
  grid-template-columns: 1fr;
  margin-bottom: 22px;
}

.project-setup-panel {
  max-width: 780px;
}

.project-setup-card {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: #594337;
  font-size: 0.9rem;
  font-weight: 900;
}

input,
select,
textarea {
  background: #fff;
  border: 2px solid rgba(37, 23, 17, 0.1);
  border-radius: 18px;
  color: var(--ink);
  min-height: 52px;
  outline: none;
  padding: 0 15px;
  transition: border 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

input[type="color"] {
  min-height: 58px;
  padding: 8px;
}

input[type="range"] {
  accent-color: var(--pink);
  padding: 0;
}

input:focus,
select:focus {
  border-color: rgba(239, 93, 168, 0.75);
  box-shadow: 0 0 0 4px rgba(239, 93, 168, 0.12);
}

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

.preset-grid button {
  align-items: center;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 18px;
  display: flex;
  font-weight: 900;
  gap: 10px;
  min-height: 56px;
  padding: 10px;
}

.preset-grid span {
  border-radius: 12px;
  display: inline-block;
  height: 30px;
  overflow: hidden;
  position: relative;
  width: 30px;
}

.preset-grid b {
  font-size: 0.9rem;
  line-height: 1.05;
  text-align: left;
}

.preset-swatch::before {
  background:
    linear-gradient(90deg, var(--board-ribbon), var(--yellow), var(--board-accent)),
    radial-gradient(circle at 30% 35%, rgba(255,255,255,0.8), transparent 18px);
  content: "";
  inset: 4px;
  position: absolute;
}

.preset-swatch.theme-classic::before,
.preset-swatch.theme-fiesta::before {
  background:
    linear-gradient(135deg, var(--board-ribbon) 0 18%, transparent 18% 28%, var(--board-accent) 28% 46%, transparent 46% 58%, var(--yellow) 58% 76%, var(--pink) 76%),
    radial-gradient(circle at 32% 34%, rgba(255,255,255,0.8) 0 5px, transparent 6px),
    radial-gradient(circle at 68% 62%, rgba(255,255,255,0.72) 0 5px, transparent 6px);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 84% 100%, 68% 72%, 52% 100%, 36% 72%, 20% 100%, 0 72%);
}

.preset-swatch.theme-birthday::before {
  background:
    radial-gradient(circle at 20% 36%, var(--board-accent) 0 13px, transparent 14px),
    radial-gradient(circle at 72% 32%, var(--board-ribbon) 0 12px, transparent 13px),
    radial-gradient(circle at 48% 72%, var(--pink) 0 7px, transparent 8px),
    repeating-linear-gradient(35deg, var(--yellow) 0 5px, transparent 5px 13px);
}

.preset-swatch.theme-wedding::before {
  background:
    radial-gradient(circle at 24% 28%, rgba(255,255,255,0.95) 0 8px, transparent 9px),
    radial-gradient(circle at 43% 43%, rgba(255,255,255,0.9) 0 7px, transparent 8px),
    radial-gradient(circle at 66% 62%, var(--board-accent) 0 4px, transparent 5px),
    linear-gradient(135deg, rgba(255,255,255,0.85), color-mix(in srgb, var(--board-ribbon) 28%, white));
}

.preset-swatch.theme-bold::before {
  background:
    repeating-linear-gradient(-35deg, var(--board-accent) 0 7px, transparent 7px 13px),
    var(--board-ribbon);
}

.preset-swatch.theme-baby::before,
.preset-swatch.theme-pastel::before {
  background:
    radial-gradient(circle at 24% 40%, rgba(255,255,255,0.95) 0 13px, transparent 14px),
    radial-gradient(circle at 44% 32%, rgba(255,255,255,0.88) 0 16px, transparent 17px),
    radial-gradient(circle at 70% 64%, var(--board-ribbon) 0 6px, transparent 7px),
    radial-gradient(circle at 34% 70%, var(--board-accent) 0 5px, transparent 6px),
    rgba(255,255,255,0.45);
}

.preset-swatch.theme-family::before {
  background:
    linear-gradient(135deg, transparent 0 18%, var(--board-accent) 18% 24%, transparent 24% 76%, var(--board-ribbon) 76% 82%, transparent 82%),
    radial-gradient(circle at 28% 36%, var(--pink) 0 7px, transparent 8px),
    radial-gradient(circle at 70% 66%, var(--yellow) 0 8px, transparent 9px);
}

.preset-swatch.theme-classroom::before {
  background:
    repeating-linear-gradient(0deg, rgba(47, 128, 237, 0.28) 0 2px, transparent 2px 12px),
    radial-gradient(circle at 26% 32%, var(--yellow) 0 7px, transparent 8px),
    radial-gradient(circle at 70% 66%, var(--board-accent) 0 6px, transparent 7px),
    white;
}

.preset-swatch.theme-holiday::before {
  background:
    radial-gradient(circle at 20% 25%, var(--board-accent) 0 6px, transparent 7px),
    radial-gradient(circle at 42% 36%, var(--yellow) 0 6px, transparent 7px),
    radial-gradient(circle at 64% 28%, var(--board-ribbon) 0 6px, transparent 7px),
    radial-gradient(circle at 82% 42%, var(--pink) 0 6px, transparent 7px),
    linear-gradient(135deg, rgba(255,255,255,0.55), rgba(67,182,111,0.16));
}

.preset-grid button.selected {
  border-color: var(--pink);
  box-shadow: 0 10px 24px rgba(239, 93, 168, 0.16);
}

.project-preview-card {
  aspect-ratio: 5 / 7;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.32)),
    #ffedc2;
  border: 9px solid #fff;
  border-radius: 34px;
  box-shadow: var(--small-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.preview-title {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 950;
  line-height: 0.95;
  text-align: center;
}

.preview-subtitle {
  color: #6a5345;
  font-weight: 800;
  margin: 10px auto 24px;
  text-align: center;
}

.preview-mini-grid,
.empty-board-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, 1fr);
}

.preview-mini-grid div,
.empty-board-grid span {
  aspect-ratio: 2.5 / 3.5;
  background: linear-gradient(135deg, var(--pink), var(--turquoise));
  border: 3px solid #fff;
  border-radius: 10px;
}

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

.drop-zone {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.5)),
    repeating-linear-gradient(45deg, rgba(15, 163, 168, 0.08) 0 8px, transparent 8px 18px);
  border: 3px dashed rgba(239, 93, 168, 0.45);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
  min-height: 280px;
  padding: 30px;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease;
}

.drop-zone.dragging {
  border-color: var(--turquoise);
  transform: scale(1.01);
}

.upload-progress-card {
  background:
    linear-gradient(135deg, rgba(15, 163, 168, 0.14), rgba(239, 93, 168, 0.12)),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  box-shadow: var(--small-shadow);
  display: grid;
  gap: 12px;
  margin: -6px 0 24px;
  padding: 16px;
}

.upload-progress-card div:first-child {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.upload-progress-card strong {
  overflow-wrap: anywhere;
}

.upload-progress-card span {
  color: #60483a;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.upload-progress-track {
  background: rgba(37, 23, 17, 0.1);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.upload-progress-track i {
  background: linear-gradient(90deg, var(--turquoise), var(--yellow), var(--pink));
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 180ms ease;
}

.cards-workspace {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(280px, 0.35fr) minmax(0, 1fr);
}

.cards-sidebar {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 112px;
}

.cards-sidebar .drop-zone {
  margin-bottom: 0;
  min-height: 250px;
  padding: 24px;
}

.cards-sidebar .label-style-panel {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.cards-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.cards-main-head {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 214, 77, 0.24), rgba(15, 163, 168, 0.12)),
    rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px;
}

.cards-main-head strong {
  display: block;
  font-size: 1.12rem;
}

.cards-main-head p {
  color: #60483a;
  font-weight: 820;
  margin: 4px 0 0;
}

.cards-main-head span {
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  padding: 8px 12px;
  white-space: nowrap;
}

.drop-zone input,
.hidden-input {
  display: none;
}

.drop-art {
  background: linear-gradient(135deg, var(--yellow), var(--orange), var(--pink));
  border: 7px solid #fff;
  border-radius: 30px;
  box-shadow: var(--small-shadow);
  height: 92px;
  margin-bottom: 20px;
  position: relative;
  width: 120px;
}

.drop-art::before,
.drop-art::after {
  background: #fff;
  border-radius: 999px;
  content: "";
  height: 20px;
  position: absolute;
  width: 20px;
}

.drop-art::before {
  left: 22px;
  top: 22px;
}

.drop-art::after {
  bottom: 24px;
  right: 24px;
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.card-editor {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 26px;
  box-shadow: var(--small-shadow);
  padding: 14px;
}

.card-preview,
.card-preview-canvas {
  aspect-ratio: 2.5 / 3.5;
  background: #fff;
  border: 12px solid #fff;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(42, 23, 16, 0.14);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.card-preview-canvas canvas {
  display: block;
  height: 100%;
  width: 100%;
}

.card-preview.compact,
.card-preview-canvas.compact {
  border-radius: 16px;
  border-width: 7px;
  min-width: 94px;
  width: 94px;
}

.card-preview.board-card,
.card-preview-canvas.board-card {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.72);
  box-shadow: none;
}

.card-preview.caption-band-card {
  background: #fff;
}

.card-image {
  background: linear-gradient(135deg, var(--orange), var(--pink), var(--turquoise));
  height: 100%;
  width: 100%;
}

.caption-band-card .card-image {
  height: 82%;
}

.caption-band-card .card-image,
.caption-band-card .card-image img {
  border-radius: 0;
}

.card-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, object-position 180ms ease;
  width: 100%;
}

.mode-contain img {
  background: #fff8ec;
  object-fit: contain;
}

.card-number {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(37, 23, 17, 0.1);
  display: flex;
  font-size: 0.85rem;
  font-weight: 950;
  height: 34px;
  justify-content: center;
  left: 10px;
  min-width: 34px;
  padding: 0 10px;
  position: absolute;
  top: 10px;
  width: max-content;
  z-index: 2;
}

.caption-band-card .card-number {
  background: transparent !important;
  border: 0;
  box-shadow: none;
  color: #111 !important;
  display: block;
  font-family: Arial, sans-serif !important;
  font-size: 0.82rem;
  font-weight: 950;
  height: auto;
  left: 10px;
  min-width: 0;
  padding: 0;
  top: 9px;
}

.card-label {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(37, 23, 17, 0.12);
  bottom: 18px;
  color: #16100d;
  display: -webkit-box;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-weight: 1000;
  left: 50%;
  line-height: 1;
  max-height: 54px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 9px 10px;
  position: absolute;
  text-align: center;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  width: fit-content;
  word-break: break-word;
  z-index: 2;
}

.caption-band-card .card-label {
  border-top: 1px solid rgba(0, 0, 0, 0.92);
  border-radius: 0;
  bottom: 0;
  box-shadow: none;
  display: flex;
  height: 18%;
  justify-content: center;
  left: 0;
  line-height: 0.95;
  max-height: none;
  max-width: none;
  padding: 5px 7px;
  transform: none;
  width: 100%;
}

.card-tools,
.crop-toggle,
.card-name-field,
.secondary-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.card-name-field {
  display: grid;
}

.card-tools button,
.crop-toggle button,
.secondary-downloads button {
  background: #fff;
  border: 1px solid rgba(37, 23, 17, 0.1);
  border-radius: 999px;
  color: #594337;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 34px;
  padding: 0 10px;
}

.crop-toggle {
  background: rgba(37, 23, 17, 0.06);
  border-radius: 999px;
  padding: 4px;
}

.crop-toggle button {
  border: 0;
  flex: 1;
}

.crop-toggle button.active {
  background: var(--ink);
  color: #fff;
}

.photo-edit {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  margin-top: 12px;
  padding: 12px;
}

.photo-edit summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 950;
}

.photo-edit label {
  margin-top: 10px;
}

.danger-link {
  color: #bd2e22 !important;
}

.step-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 24px;
}

.success-text {
  color: #217244;
  font-weight: 900;
}

.warning-text {
  color: #ad4c20;
  font-weight: 900;
}

.success-badge {
  color: #217244;
}

.warning-badge {
  color: #ad4c20;
}

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

.label-style-panel {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 26px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 22px;
  padding: 18px;
}

.label-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 24px;
  display: flex;
  gap: 16px;
  padding: 14px;
}

.label-fields {
  display: grid;
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.generator-layout,
.designer-layout,
.download-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(290px, 0.42fr) minmax(0, 0.8fr);
}

.designer-layout {
  grid-template-columns: minmax(330px, 0.56fr) minmax(360px, 0.9fr);
}

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

.download-instructions-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.download-instructions-grid article {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 244, 220, 0.68)),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  box-shadow: var(--small-shadow);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.download-instructions-grid span {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  width: max-content;
  min-width: 36px;
  padding: 0 10px;
}

.download-instructions-grid h3 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.04rem;
  margin: 0;
}

.download-instructions-grid p {
  color: #60483a;
  font-size: 0.92rem;
  font-weight: 820;
  line-height: 1.45;
  margin: 0;
}

.print-promo-card {
  background:
    radial-gradient(circle at 86% 16%, rgba(255, 213, 31, 0.42), transparent 28%),
    linear-gradient(135deg, rgba(217, 32, 22, 0.18), rgba(0, 168, 184, 0.14)),
    rgba(255, 255, 255, 0.86) !important;
}

.print-promo-card .primary-button {
  margin-top: 4px;
  min-height: 40px;
  width: max-content;
}

.download-shop-upgrade {
  background:
    linear-gradient(135deg, rgba(31, 122, 77, 0.12), rgba(255, 216, 79, 0.18)),
    rgba(255, 250, 242, 0.84);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 28px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
  margin-bottom: 24px;
  overflow: hidden;
  padding: 18px;
}

.download-shop-upgrade h3 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  margin: 0 0 8px;
}

.download-shop-upgrade p {
  color: #60483a;
  font-weight: 820;
  line-height: 1.45;
  margin: 0;
}

.download-locked {
  background:
    linear-gradient(135deg, rgba(180, 35, 24, 0.12), rgba(31, 122, 77, 0.08)),
    rgba(255, 255, 255, 0.74);
  border-color: rgba(180, 35, 24, 0.22);
  grid-column: 1 / -1;
}

.generator-card {
  height: max-content;
}

.generator-guidance {
  background:
    linear-gradient(135deg, rgba(31, 122, 77, 0.11), rgba(255, 214, 77, 0.16)),
    rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
}

.generator-guidance strong {
  color: var(--green);
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1rem;
}

.generator-guidance p {
  color: #5b3526;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.generator-sidebar,
.board-style-controls {
  display: grid;
  gap: 16px;
}

.board-style-controls {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  box-shadow: var(--small-shadow);
  padding: 22px;
}

.redesigned-controls {
  align-content: start;
  position: sticky;
  top: 112px;
}

.board-style-head p:not(.eyebrow) {
  color: #6a5345;
  line-height: 1.45;
  margin: 8px 0 0;
}

.board-style-controls h3 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.45rem;
  margin: 0;
}

.design-control-card {
  background: rgba(255, 250, 242, 0.74);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.template-choice-button {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 214, 77, 0.18), rgba(15, 163, 168, 0.1)),
    #fff;
  border: 2px solid rgba(37, 23, 17, 0.08);
  border-radius: 24px;
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  padding: 12px;
  text-align: left;
}

.template-choice-button .preset-swatch {
  border: 1px solid rgba(37, 23, 17, 0.1);
  border-radius: 18px;
  display: block;
  height: 74px;
  overflow: hidden;
  position: relative;
  width: 82px;
}

.template-choice-button small,
.template-choice-button em {
  color: #72594b;
  display: block;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.template-choice-button strong {
  display: block;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.1rem;
  margin: 2px 0;
}

.template-choice-button > b {
  background: var(--ink);
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  padding: 8px 10px;
}

.background-control-card {
  gap: 14px;
}

.background-mini-controls {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
}

.background-mini-controls input[type="color"] {
  min-height: 48px;
}

.template-section-card {
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  display: grid;
  gap: 14px;
  overflow: visible;
  padding: 14px;
}

.controls-locked input,
.controls-locked select,
.controls-locked button {
  cursor: not-allowed;
}

.template-section-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  list-style: none;
}

.template-section-card summary::-webkit-details-marker {
  display: none;
}

.template-section-card summary strong {
  display: block;
  font-size: 1rem;
}

.template-section-card summary small {
  color: #806758;
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  margin-top: 2px;
}

.design-control-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  list-style: none;
}

.design-control-card summary::-webkit-details-marker {
  display: none;
}

.design-control-card summary strong {
  display: block;
  font-size: 1rem;
}

.design-control-card summary small {
  color: #806758;
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  margin-top: 2px;
}

.accordion-card summary {
  min-width: 0;
  position: relative;
}

.accordion-card summary > span:nth-child(2) {
  min-width: 0;
}

.accordion-chevron {
  border-bottom: 2px solid #6a5345;
  border-right: 2px solid #6a5345;
  display: block;
  flex: 0 0 10px;
  height: 10px;
  margin-left: auto;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  width: 10px;
}

.accordion-card[open] .accordion-chevron {
  transform: rotate(225deg);
}

.template-select-label {
  display: grid;
  gap: 7px;
}

.template-select-label select {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    #fff;
  border: 1px solid rgba(37, 23, 17, 0.13);
  border-radius: 16px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
  min-height: 52px;
  padding: 0 14px;
  width: 100%;
}

.template-current-preview {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 244, 220, 0.62)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: 74px minmax(0, 1fr);
  padding: 10px;
}

.template-current-preview .preset-swatch {
  border: 1px solid rgba(37, 23, 17, 0.1);
  border-radius: 15px;
  display: block;
  height: 68px;
  overflow: hidden;
  position: relative;
  width: 74px;
}

.template-current-preview strong {
  display: block;
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1rem;
}

.template-current-preview small {
  color: #72594b;
  display: block;
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.25;
  margin-top: 3px;
}

.border-control-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
}

.border-control-grid input[type="color"] {
  min-height: 50px;
}

.template-carousel {
  display: flex;
  gap: 12px;
  margin: 2px -6px 0;
  overflow-x: auto;
  padding: 2px 6px 12px;
  scroll-padding-left: 6px;
  scroll-snap-type: x proximity;
}

.template-carousel::-webkit-scrollbar {
  height: 10px;
}

.template-carousel::-webkit-scrollbar-track {
  background: rgba(37, 23, 17, 0.06);
  border-radius: 999px;
}

.template-carousel::-webkit-scrollbar-thumb {
  background: rgba(37, 23, 17, 0.22);
  border-radius: 999px;
}

.template-carousel button {
  align-content: start;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(37, 23, 17, 0.08);
  border-radius: 20px;
  color: var(--ink);
  display: grid;
  flex: 0 0 168px;
  gap: 8px;
  min-height: 184px;
  padding: 10px;
  scroll-snap-align: start;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border 180ms ease;
}

.template-carousel button:hover {
  box-shadow: var(--small-shadow);
  transform: translateY(-2px);
}

.template-carousel button.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 32, 22, 0.1);
}

.template-carousel .preset-swatch,
.template-carousel .plain-template-swatch,
.template-carousel .upload-template-swatch,
.highlighted-template-card > span {
  border-radius: 15px;
  display: block;
  height: 86px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.template-carousel b {
  font-size: 0.92rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.template-carousel small {
  color: #72594b;
  font-size: 0.74rem;
  font-weight: 820;
  line-height: 1.22;
}

.highlighted-template-card > span {
  background-color: #fff4dc;
  background-position: center;
  background-size: cover;
}

.conditional-background-controls {
  animation: fadeIn 160ms ease;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.54)),
    rgba(255, 246, 231, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.plain-background-controls input[type="color"] {
  border-radius: 14px;
  min-height: 52px;
  padding: 6px;
  width: 100%;
}

.background-mode-note {
  color: #60483a;
  font-size: 0.84rem;
  font-weight: 820;
  margin: 0;
}

.text-style-card {
  background: rgba(255, 250, 242, 0.78);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 14px;
}

.text-style-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  list-style: none;
}

.text-style-card summary::-webkit-details-marker {
  display: none;
}

.text-style-icon {
  align-items: center;
  background: linear-gradient(135deg, var(--purple), var(--turquoise));
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 34px;
  font-weight: 1000;
  height: 34px;
  justify-content: center;
}

.text-style-card summary strong {
  display: block;
  font-size: 1rem;
}

.text-style-card summary small {
  color: #806758;
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  margin-top: 2px;
}

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

.control-label {
  color: #60483a;
  display: block;
  font-size: 0.82rem;
  font-weight: 950;
  margin-bottom: 6px;
}

.weight-picker,
.alignment-picker {
  background: #fff;
  border: 1px solid rgba(37, 23, 17, 0.1);
  border-radius: 14px;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 52px;
  padding: 4px;
}

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

.weight-picker button,
.alignment-picker button {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #665348;
  font-size: 1.08rem;
}

.weight-picker button.active,
.alignment-picker button.active {
  background: rgba(37, 23, 17, 0.08);
  color: var(--ink);
}

.color-inline {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(37, 23, 17, 0.1);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 52px;
  padding: 5px 10px 5px 5px;
}

.color-inline input[type="color"] {
  border: 1px solid rgba(37, 23, 17, 0.12);
  border-radius: 9px;
  min-height: 34px;
  padding: 2px;
}

.color-inline input:not([type="color"]) {
  border: 0;
  min-height: 34px;
  padding: 0 8px;
}

.align-icon {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin: 0 auto;
  width: 28px;
}

.align-icon i {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 22px;
}

.align-left {
  justify-items: start;
}

.align-center {
  justify-items: center;
}

.align-right {
  justify-items: end;
}

.align-icon i:nth-child(2) {
  width: 14px;
}

.font-live-preview {
  background:
    repeating-linear-gradient(135deg, rgba(37, 23, 17, 0.035) 0 2px, transparent 2px 12px),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 16px;
  font-size: 1.35rem;
  line-height: 1.05;
  min-height: 58px;
  overflow: hidden;
  padding: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-modal-backdrop {
  align-items: center;
  animation: fadeIn 160ms ease;
  background: rgba(29, 15, 10, 0.38);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 60;
}

.template-modal {
  animation: modalRise 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 213, 31, 0.22), transparent 28%),
    linear-gradient(180deg, #fffaf0, #fff0d3);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(29, 15, 10, 0.34);
  display: grid;
  gap: 18px;
  max-height: min(780px, calc(100vh - 44px));
  max-width: 980px;
  overflow: auto;
  padding: 24px;
  width: min(100%, 980px);
}

.template-modal-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.template-modal h3 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.65rem;
  margin: 0;
}

.template-picker-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.template-picker-grid button {
  align-content: start;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  color: var(--ink);
  display: grid;
  gap: 9px;
  min-height: 196px;
  padding: 12px;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border 180ms ease;
}

.template-picker-grid button:hover {
  box-shadow: var(--small-shadow);
  transform: translateY(-2px);
}

.template-picker-grid button.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 32, 22, 0.1);
}

.template-picker-grid .preset-swatch,
.plain-template-swatch,
.upload-template-swatch {
  border-radius: 16px;
  display: block;
  height: 96px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.plain-template-swatch {
  border: 1px solid rgba(37, 23, 17, 0.1);
  background-image: repeating-linear-gradient(135deg, rgba(37, 23, 17, 0.05) 0 2px, transparent 2px 12px);
}

.upload-template-swatch {
  background:
    linear-gradient(135deg, rgba(15, 163, 168, 0.18), rgba(239, 93, 168, 0.18)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.8) 0 8px, transparent 8px 18px);
  border: 2px dashed rgba(239, 93, 168, 0.42);
}

.template-picker-grid b {
  font-size: 0.98rem;
}

.template-picker-grid small {
  color: #72594b;
  font-size: 0.8rem;
  font-weight: 820;
  line-height: 1.25;
}

.template-library-head {
  margin-top: 4px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.builder-panel,
.project-action-card,
.saved-project-card,
.admin-list-panel,
.admin-detail-card,
.download-card,
.template-section-card,
.text-style-card {
  animation: softRise 360ms ease both;
}

@media (prefers-reduced-motion: reduce) {
  .builder-panel,
  .project-action-card,
  .saved-project-card,
  .admin-list-panel,
  .admin-detail-card,
  .download-card,
  .template-section-card,
  .text-style-card {
    animation: none;
  }
}

.segmented-control {
  background: rgba(37, 23, 17, 0.06);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  padding: 6px;
}

.segmented-control button {
  background: transparent;
  border: 0;
  border-radius: 13px;
  color: #60483a;
  font-size: 0.82rem;
  font-weight: 950;
  min-height: 40px;
  padding: 8px;
}

.segmented-control button.active {
  background: #fff;
  box-shadow: 0 8px 18px rgba(89, 37, 21, 0.12);
  color: var(--ink);
}

.layout-control button {
  min-height: 46px;
}

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

.color-control-grid label {
  gap: 6px;
}

.color-control-grid input[type="color"] {
  border-radius: 16px;
  min-height: 48px;
  padding: 6px;
}

.board-theme-grid {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  margin: 0;
}

.board-theme-grid button {
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.66)),
    #fff;
  border-color: rgba(37, 23, 17, 0.08);
  display: grid;
  gap: 8px;
  min-height: 172px;
  padding: 12px;
  text-align: left;
}

.board-theme-grid .preset-swatch {
  border: 1px solid rgba(37, 23, 17, 0.1);
  border-radius: 16px;
  height: 78px;
  width: 100%;
}

.board-theme-grid .preset-swatch::before {
  inset: 8px;
}

.board-theme-grid small {
  color: #72594b;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
}

.background-option-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
}

.background-option-grid button {
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7)),
    #fff;
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 7px;
  min-height: 142px;
  padding: 10px;
  text-align: left;
}

.background-option-grid button.selected {
  border-color: var(--turquoise);
  box-shadow: 0 10px 22px rgba(15, 163, 168, 0.16);
}

.background-option-grid b {
  font-size: 0.82rem;
  line-height: 1.05;
}

.background-option-grid small {
  color: #72594b;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.background-option-swatch {
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 14px;
  display: block;
  height: 58px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.background-option-swatch::before,
.background-option-swatch::after {
  content: "";
  inset: 0;
  position: absolute;
}

.background-option-swatch::before {
  background:
    radial-gradient(circle at 16% 28%, color-mix(in srgb, var(--board-accent) 72%, transparent) 0 7px, transparent 8px),
    radial-gradient(circle at 75% 34%, color-mix(in srgb, var(--board-ribbon) 72%, transparent) 0 8px, transparent 9px),
    linear-gradient(135deg, rgba(255,255,255,0.34), transparent);
}

.background-option-swatch.pattern-theme::before,
.background-option-swatch.pattern-fiestaPapel::before {
  background:
    linear-gradient(135deg, var(--board-ribbon) 0 18%, transparent 18% 28%, var(--board-accent) 28% 48%, transparent 48% 60%, var(--yellow) 60% 78%, var(--pink) 78%),
    radial-gradient(circle at 35% 44%, rgba(255,255,255,0.82) 0 4px, transparent 5px);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 84% 100%, 68% 72%, 52% 100%, 36% 72%, 20% 100%, 0 72%);
}

.background-option-swatch.pattern-none::before {
  background:
    radial-gradient(circle at 24% 24%, rgba(255,255,255,0.48), transparent 22px),
    repeating-linear-gradient(135deg, rgba(42,23,16,0.04) 0 2px, transparent 2px 12px);
}

.background-option-swatch.pattern-birthdayConfetti::before {
  background:
    radial-gradient(circle at 20% 38%, var(--board-accent) 0 12px, transparent 13px),
    radial-gradient(circle at 70% 34%, var(--board-ribbon) 0 11px, transparent 12px),
    repeating-linear-gradient(35deg, var(--yellow) 0 4px, transparent 4px 12px),
    radial-gradient(circle at 50% 74%, var(--pink) 0 5px, transparent 6px);
}

.background-option-swatch.pattern-weddingBotanical::before {
  background:
    radial-gradient(circle at 18% 42%, #fff 0 12px, transparent 13px),
    radial-gradient(circle at 35% 35%, #fff 0 10px, transparent 11px),
    radial-gradient(circle at 62% 62%, var(--board-accent) 0 4px, transparent 5px),
    linear-gradient(135deg, rgba(255,255,255,0.78), color-mix(in srgb, var(--board-ribbon) 22%, white));
}

.background-option-swatch.pattern-babyShowerClouds::before {
  background:
    radial-gradient(circle at 24% 46%, rgba(255,255,255,0.96) 0 15px, transparent 16px),
    radial-gradient(circle at 46% 36%, rgba(255,255,255,0.88) 0 18px, transparent 19px),
    radial-gradient(circle at 78% 68%, var(--board-accent) 0 5px, transparent 6px),
    radial-gradient(circle at 62% 28%, var(--yellow) 0 4px, transparent 5px);
}

.background-option-swatch.pattern-classroomStars::before {
  background:
    repeating-linear-gradient(0deg, rgba(47, 128, 237, 0.22) 0 2px, transparent 2px 12px),
    radial-gradient(circle at 25% 32%, var(--yellow) 0 7px, transparent 8px),
    radial-gradient(circle at 72% 64%, var(--board-accent) 0 6px, transparent 7px);
}

.background-option-swatch.pattern-familyMemory::before {
  background:
    linear-gradient(135deg, transparent 0 18%, var(--board-accent) 18% 24%, transparent 24% 76%, var(--board-ribbon) 76% 82%, transparent 82%),
    radial-gradient(circle at 32% 38%, var(--pink) 0 6px, transparent 7px),
    radial-gradient(circle at 72% 64%, var(--yellow) 0 7px, transparent 8px);
}

.background-option-swatch.pattern-holidayLights::before {
  background:
    radial-gradient(circle at 16% 30%, var(--board-accent) 0 5px, transparent 6px),
    radial-gradient(circle at 38% 42%, var(--yellow) 0 5px, transparent 6px),
    radial-gradient(circle at 60% 28%, var(--board-ribbon) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 44%, var(--pink) 0 5px, transparent 6px);
}

.background-option-swatch.pattern-cleanWarm::before {
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.54), transparent 20px),
    repeating-linear-gradient(135deg, rgba(42,23,16,0.04) 0 2px, transparent 2px 11px);
}

.background-preview-card {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 10px;
}

.background-preview-card div {
  aspect-ratio: 5 / 3.4;
  background-position: center;
  background-size: cover;
  border-radius: 14px;
}

.background-preview-card span {
  color: #60483a;
  font-size: 0.85rem;
  font-weight: 900;
}

.compact-minihead {
  margin-top: 8px;
}

.highlighted-background-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.highlighted-background-grid button {
  background: #fff;
  border: 2px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  padding: 8px;
  text-align: left;
}

.highlighted-background-grid button.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 32, 22, 0.1);
}

.highlighted-background-grid span {
  aspect-ratio: 5 / 3.5;
  background-color: #fff4dc;
  background-position: center;
  background-size: cover;
  border-radius: 12px;
  display: block;
}

.highlighted-background-grid b {
  font-size: 0.82rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.admin-background-upload {
  background:
    linear-gradient(135deg, rgba(217, 32, 22, 0.1), rgba(0, 168, 184, 0.1)),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(37, 23, 17, 0.1);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-background-upload p {
  color: #60483a;
  font-size: 0.84rem;
  font-weight: 820;
  margin: 4px 0 0;
}

.admin-background-list {
  display: grid;
  gap: 8px;
}

.admin-background-list div {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px 10px;
}

.admin-background-list span {
  font-size: 0.84rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-background-list button {
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: 999px;
  color: #9c241b;
  font-size: 0.75rem;
  font-weight: 950;
  min-height: 32px;
  padding: 0 10px;
}

.background-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.tiny-copy {
  font-size: 0.86rem;
  margin: -4px 0 0;
}

.watermark-note {
  align-items: center;
  background: rgba(37, 23, 17, 0.06);
  border-radius: 18px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.watermark-note img {
  border-radius: 12px;
  box-shadow: var(--small-shadow);
  flex: 0 0 38px;
  height: 38px;
  object-fit: cover;
  width: 38px;
}

.watermark-note strong {
  color: #594337;
  font-size: 0.86rem;
}

.finalize-panel {
  align-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 216, 79, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 220, 0.76));
  border: 1px solid rgba(37, 23, 17, 0.1);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(89, 37, 21, 0.12);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 16px;
  padding: 16px;
}

.attempt-notice {
  background:
    linear-gradient(135deg, rgba(201, 42, 28, 0.1), rgba(47, 111, 69, 0.08)),
    rgba(255, 250, 240, 0.84);
  border: 1px solid rgba(201, 42, 28, 0.18);
  border-radius: 22px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 16px 18px;
}

.attempt-notice strong {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.attempt-notice p {
  color: #60483a;
  font-weight: 820;
  margin: 0;
}

.finalize-panel span {
  color: #b42318;
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finalize-panel strong {
  display: block;
  font-size: 1.12rem;
  margin-top: 3px;
}

.finalize-panel p {
  color: #60483a;
  font-size: 0.88rem;
  font-weight: 780;
  margin: 3px 0 0;
}

.mixing-bar {
  background: rgba(37, 23, 17, 0.08);
  border-radius: 999px;
  height: 10px;
  margin-top: 18px;
  overflow: hidden;
}

.mixing-bar span {
  animation: slide 1.1s infinite ease-in-out;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--turquoise));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 38%;
}

@keyframes slide {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(270%);
  }
}

.advanced-box {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  margin-top: 18px;
  padding: 16px;
}

.advanced-box summary {
  cursor: pointer;
  font-weight: 950;
}

.advanced-grid {
  margin-top: 16px;
}

.stats-panel {
  background: #fff;
  border-radius: 18px;
  color: #5e4638;
  margin-top: 16px;
  padding: 14px;
}

.stats-panel p {
  margin: 8px 0 0;
}

.frequency-mini-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  margin-top: 14px;
}

.frequency-mini {
  background: rgba(37, 23, 17, 0.05);
  border-radius: 12px;
  display: grid;
  gap: 5px;
  padding: 8px;
}

.frequency-mini span,
.frequency-mini b {
  font-size: 0.72rem;
  font-weight: 950;
}

.frequency-mini div {
  background: rgba(37, 23, 17, 0.12);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.frequency-mini i {
  background: linear-gradient(90deg, var(--turquoise), var(--pink));
  border-radius: inherit;
  display: block;
  height: 100%;
}

.board-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.single-board-preview-panel {
  align-content: start;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.single-preview-head {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 999px;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  padding: 9px 14px;
}

.single-preview-head span {
  color: #806758;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.single-preview-head strong {
  font-size: 0.92rem;
}

.single-board-preview-panel > .board-preview {
  max-height: 760px;
  max-width: 540px;
  width: min(100%, 540px);
}

.board-thumb {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
}

.board-thumb.selected .board-preview {
  outline: 4px solid var(--pink);
}

.board-thumb > span {
  display: block;
  font-size: 0.85rem;
  font-weight: 950;
  margin-top: 8px;
  text-align: center;
}

.board-preview {
  aspect-ratio: 5 / 7;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 20px;
  box-shadow: 0 16px 38px rgba(89, 37, 21, 0.14);
  container-type: inline-size;
  display: block;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.board-preview > *,
.board-preview canvas {
  position: relative;
  z-index: 1;
}

.board-preview canvas {
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 100%;
}

.canvas-board-preview.loading canvas {
  opacity: 0.28;
}

.canvas-board-preview.loading > span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 999px;
  color: #60483a;
  font-size: 0.82rem;
  font-weight: 950;
  left: 50%;
  padding: 9px 12px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 2;
}

.board-preview::before,
.board-preview::after {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.board-preview::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.48), transparent 22%),
    radial-gradient(circle at 80% 86%, color-mix(in srgb, var(--board-accent) 28%, transparent), transparent 22%);
  inset: 0;
}

.board-preview.theme-fiesta::after,
.board-preview.theme-holiday::after {
  background: repeating-linear-gradient(
    90deg,
    var(--board-ribbon) 0 16px,
    var(--yellow) 16px 32px,
    var(--board-accent) 32px 48px,
    var(--green) 48px 64px
  );
  clip-path: polygon(0 0, 100% 0, 100% 8%, 92% 15%, 84% 8%, 76% 15%, 68% 8%, 60% 15%, 52% 8%, 44% 15%, 36% 8%, 28% 15%, 20% 8%, 12% 15%, 4% 8%, 0 15%);
  height: 54px;
  left: 0;
  opacity: 0.45;
  right: 0;
  top: 0;
}

.board-preview.theme-wedding::after {
  border: 2px solid color-mix(in srgb, var(--board-accent) 48%, transparent);
  border-radius: 999px;
  height: 70px;
  opacity: 0.34;
  right: -24px;
  top: 82px;
  width: 120px;
}

.board-preview.theme-bold::after {
  background: repeating-linear-gradient(-35deg, var(--board-accent) 0 10px, transparent 10px 23px);
  inset: 0;
  opacity: 0.15;
}

.board-preview.theme-baby::after,
.board-preview.theme-pastel::after {
  background:
    radial-gradient(circle at 16% 30%, var(--board-accent) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 42%, var(--board-ribbon) 0 5px, transparent 6px),
    radial-gradient(circle at 55% 86%, var(--yellow) 0 4px, transparent 5px);
  inset: 0;
  opacity: 0.45;
}

.board-ribbon {
  background: linear-gradient(90deg, var(--board-ribbon, var(--turquoise)), var(--yellow), var(--pink), var(--board-accent, var(--green)));
  border-radius: 999px;
  flex: 0 0 7px;
  margin-bottom: 7px;
}

.board-preview h3 {
  font-family: var(--board-title-font), "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(0.88rem, 7.2cqw, 1.9rem);
  line-height: 1;
  margin: 0 0 4px;
  min-height: 1.05em;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-preview p {
  font-size: clamp(0.52rem, 3.25cqw, 0.82rem);
  font-weight: 800;
  margin: 0 0 6px;
  min-height: 1rem;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-preview-grid {
  display: grid;
  flex: 1;
  gap: clamp(3px, 1.7cqw, 10px);
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  min-height: 0;
}

.board-preview-card {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.board-preview-card .card-preview,
.board-preview-card .card-preview-canvas {
  aspect-ratio: 2.5 / 3.5;
  border: 1px solid rgba(0, 0, 0, 0.78);
  border-radius: inherit;
  box-shadow: none;
  height: 100%;
  min-width: 0;
  width: auto;
}

.board-preview-card .card-number {
  border-width: 0;
  box-shadow: 0 2px 5px rgba(37, 23, 17, 0.08);
  font-size: 0.5rem;
  height: 17px;
  left: 4px;
  min-width: 17px;
  padding: 0 5px;
  top: 4px;
}

.board-preview-card .caption-band-card .card-number {
  font-size: 0.46rem;
  left: 4px;
  top: 4px;
}

.board-preview-card .card-label {
  border-radius: 6px;
  bottom: 6px;
  font-size: 0.54rem !important;
  font-weight: 1000;
  line-height: 0.95;
  max-height: 27px;
  max-width: calc(100% - 8px);
  padding: 4px;
}

.board-preview-card .caption-band-card .card-label {
  bottom: 0;
  border-radius: 0;
  font-size: 0.48rem !important;
  height: 19%;
  line-height: 0.9;
  max-height: none;
  max-width: none;
  padding: 2px;
  width: 100%;
}

.board-preview strong {
  bottom: 16px;
  display: block;
  font-size: 0.8rem;
  font-weight: 1000;
  left: 50%;
  margin-top: 0;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  z-index: 2;
}

.board-watermark {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  bottom: 10px;
  left: 12px;
  max-width: 42%;
  padding: 4px 9px 4px 5px;
  position: absolute;
  z-index: 2;
}

.board-watermark span {
  align-items: center;
  background: linear-gradient(135deg, var(--board-accent, var(--red)), var(--board-ribbon, var(--turquoise)));
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 0.48rem;
  font-weight: 950;
  height: 20px;
  justify-content: center;
  width: 28px;
}

.board-watermark b {
  color: currentColor;
  font-size: 0.54rem;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-gallery {
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  padding: 30px;
  text-align: center;
}

.empty-board-grid {
  max-width: 230px;
  width: 70%;
}

.designer-layout {
  align-items: start;
  grid-template-columns: minmax(340px, 0.52fr) minmax(420px, 0.92fr);
}

.design-controls,
.designer-preview {
  display: grid;
  gap: 16px;
}

.designer-preview > .board-preview {
  justify-self: center;
  max-height: 760px;
  max-width: 540px;
  width: min(100%, 540px);
}

.designer-preview .compact-empty {
  min-height: 0;
}

.switch-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  display: flex;
  gap: 10px;
  min-height: 52px;
  padding: 12px;
}

.switch-row input {
  accent-color: var(--pink);
  min-height: auto;
  width: auto;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.primary-download {
  background:
    linear-gradient(135deg, rgba(255, 214, 77, 0.24), rgba(239, 93, 168, 0.16)),
    rgba(255, 255, 255, 0.8);
}

.secondary-downloads button {
  flex: 1 1 170px;
}

.busy-banner {
  border-radius: 22px;
  margin-top: 18px;
  text-align: center;
}

.download-time-note {
  background: rgba(255, 214, 77, 0.18);
  border: 1px solid rgba(180, 105, 20, 0.18);
  border-radius: 16px;
  color: #5b3526;
  font-weight: 850;
  padding: 12px;
}

.toast {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  bottom: 24px;
  box-shadow: var(--shadow);
  color: #fff;
  font-weight: 900;
  left: 50%;
  max-width: calc(100vw - 40px);
  padding: 14px 20px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 30;
}

.modal-backdrop {
  align-items: center;
  background: rgba(37, 23, 17, 0.32);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 50;
}

.auth-card {
  background: rgba(255, 250, 242, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-width: 480px;
  padding: 28px;
  position: relative;
  width: min(100%, 480px);
}

.auth-card h2,
.dashboard-panel h2 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  margin-bottom: 0;
}

.auth-mode-tabs {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 999px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-right: 64px;
  padding: 6px;
}

.auth-mode-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #60483a;
  cursor: pointer;
  font-weight: 950;
  min-height: 38px;
}

.auth-mode-tabs button.active {
  background: var(--ink);
  color: #fffaf2;
}

.auth-benefit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-benefit-strip span {
  background: rgba(47, 111, 69, 0.11);
  border: 1px solid rgba(47, 111, 69, 0.15);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  padding: 7px 10px;
}

.modal-close {
  background: rgba(37, 23, 17, 0.08);
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 34px;
  padding: 0 12px;
  position: absolute;
  right: 18px;
  top: 18px;
}

.auth-message {
  background: rgba(255, 214, 77, 0.24);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 16px;
  color: #60483a;
  font-weight: 850;
  padding: 12px 14px;
}

.auth-code-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 12px 14px;
}

.auth-code-toggle input {
  min-height: auto;
  width: auto;
}

.auth-code-toggle span {
  font-size: 0.94rem;
  font-weight: 900;
}

.dashboard-panel {
  display: grid;
  gap: 18px;
}

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

.account-summary-grid article,
.admin-summary-grid article,
.billing-options article,
.admin-row {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 14px;
}

.account-summary-grid span,
.admin-summary-grid span,
.billing-options span,
.admin-row span {
  color: #60483a;
  font-size: 0.86rem;
  font-weight: 850;
}

.account-summary-grid strong,
.admin-summary-grid strong,
.billing-options strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 4px;
}

.billing-options,
.access-code-panel,
.profile-form,
.admin-code-card,
.project-list {
  display: grid;
  gap: 12px;
}

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

.dashboard-tabs {
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 999px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
}

.dashboard-tabs button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #60483a;
  cursor: pointer;
  font-weight: 950;
  padding: 10px 16px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.dashboard-tabs button:hover,
.dashboard-tabs button.active {
  background: var(--ink);
  color: #fffaf2;
  transform: translateY(-1px);
}

.account-tab-panel,
.admin-tab-panel {
  animation: panelLift 260ms ease both;
  display: grid;
  gap: 14px;
}

@keyframes panelLift {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-code-card {
  align-items: end;
  background:
    radial-gradient(circle at 8% 12%, rgba(242, 79, 155, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 216, 79, 0.24), rgba(7, 174, 182, 0.15)),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  grid-template-columns: minmax(230px, 1.4fr) repeat(auto-fit, minmax(140px, 0.7fr));
  padding: 16px;
}

.admin-code-card > div:first-child {
  align-self: center;
}

.admin-background-manager {
  margin-top: 12px;
}

.admin-tab-panel .admin-background-manager,
.admin-tab-panel .landing-content-manager {
  margin-top: 0;
}

.admin-manager-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 242, 0.72)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 24px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.admin-manager-card h3 {
  margin: 0;
}

.admin-profile-form {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-profile-form button {
  min-height: 46px;
}

.codes-admin-panel {
  gap: 18px;
}

.landing-content-manager {
  align-items: stretch;
  grid-template-columns: minmax(220px, 0.56fr) minmax(0, 1.44fr);
  margin-top: 12px;
}

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

.landing-editor-loading {
  background: rgba(255, 250, 240, 0.74);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 20px;
  display: grid;
  gap: 6px;
  padding: 18px;
}

.landing-editor-loading strong {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.1rem;
}

.landing-editor-loading p {
  color: #60483a;
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
}

.landing-editor-loading.error {
  background: rgba(255, 238, 232, 0.82);
  border-color: rgba(184, 42, 31, 0.2);
}

.landing-editor-loading.error strong {
  color: #a52a1f;
}

.landing-editor-section {
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 20px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.landing-editor-section.wide {
  grid-column: 1 / -1;
}

.file-pill {
  cursor: pointer;
  position: relative;
}

.file-pill input,
.statement-image-slot input {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.landing-asset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-copy-fields,
.statement-copy-editor {
  display: grid;
  gap: 8px;
}

.landing-copy-fields textarea,
.statement-copy-row textarea {
  min-height: 68px;
  resize: vertical;
}

.statement-copy-row {
  align-items: start;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  grid-template-columns: 28px minmax(0, 0.8fr) minmax(0, 1fr);
  padding: 8px;
}

.statement-copy-row span {
  align-items: center;
  background: var(--ink);
  border-radius: 999px;
  color: #fffaf0;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 950;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.landing-asset-thumb,
.landing-row-image,
.statement-image-slot i {
  background:
    linear-gradient(135deg, rgba(255, 213, 31, 0.44), rgba(15, 163, 168, 0.22)),
    #fff4dc;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(29, 15, 10, 0.22);
}

.landing-asset-thumb {
  aspect-ratio: 1;
  border-radius: 14px;
  cursor: pointer;
  min-width: 54px;
  width: 54px;
}

.landing-asset-thumb:hover {
  outline: 3px solid rgba(201, 42, 28, 0.26);
}

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

.statement-image-slot {
  background: #fffaf0;
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 16px;
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 8px;
  position: relative;
}

.statement-image-slot span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
}

.statement-image-slot i {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  display: block;
}

.statement-image-slot b,
.statement-image-slot button {
  font-size: 0.74rem;
}

.statement-image-slot button {
  background: transparent;
  border: 0;
  color: var(--red);
  cursor: pointer;
  font-weight: 900;
  padding: 0;
  text-align: left;
}

.landing-list-editor {
  display: grid;
  gap: 10px;
}

.landing-edit-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 16px;
  display: grid;
  gap: 8px;
  grid-template-columns: 72px repeat(2, minmax(120px, 1fr)) minmax(170px, 1.2fr) auto auto;
  padding: 8px;
}

.landing-row-image {
  aspect-ratio: 1;
  border-radius: 14px;
}

.landing-edit-row textarea {
  min-height: 48px;
  resize: vertical;
}

.shop-product-edit-row {
  grid-template-columns: 72px repeat(2, minmax(110px, 0.7fr)) minmax(170px, 1fr) minmax(100px, 0.55fr) minmax(180px, 1fr) auto auto;
}

.landing-editor-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  grid-column: 1 / -1;
}

.admin-code-card h3 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: 1.35rem;
  margin: 0 0 6px;
}

.admin-code-card .eyebrow,
.admin-code-card .soft-copy {
  margin-bottom: 0;
}

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

.billing-options article {
  display: grid;
  gap: 12px;
}

.access-code-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 163, 168, 0.16), rgba(239, 93, 168, 0.12)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.7fr) auto;
  padding: 14px;
}

.access-code-panel.compact {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(211, 47, 47, 0.1), rgba(15, 163, 168, 0.13)),
    rgba(255, 250, 242, 0.82);
  grid-template-columns: 1fr;
}

.access-code-panel div {
  display: grid;
  gap: 4px;
}

.access-code-panel p {
  color: #72594b;
  font-size: 0.84rem;
  font-weight: 800;
  margin: 0;
}

.access-code-panel span {
  color: #60483a;
  font-size: 0.86rem;
  font-weight: 850;
}

.access-code-panel strong {
  font-size: 1.2rem;
}

.access-code-panel input {
  text-transform: uppercase;
}

.access-code-message {
  color: #60483a;
  font-size: 0.86rem;
  font-weight: 900;
  margin: 0;
}

.profile-form {
  align-items: end;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 22px;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  padding: 14px;
}

.profile-form div {
  display: grid;
  gap: 4px;
}

.profile-form div span,
.profile-form label span {
  color: #60483a;
  font-size: 0.86rem;
  font-weight: 850;
}

.profile-form strong {
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.billing-note {
  background: rgba(255, 214, 77, 0.22);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  color: #60483a;
  font-weight: 850;
  padding: 14px;
}

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

.legal-panel h1 {
  font-family: "Trebuchet MS", Inter, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  margin: 0;
}

.legal-lead {
  font-size: 1.05rem;
  max-width: 720px;
}

.policy-card {
  background:
    radial-gradient(circle at 90% 0%, rgba(15, 163, 168, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 26px;
  display: grid;
  gap: 12px;
  padding: clamp(18px, 4vw, 32px);
}

.policy-card p {
  color: #4f382c;
  font-size: 1rem;
  font-weight: 780;
  line-height: 1.7;
  margin: 0;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.section-minihead > span {
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(37, 23, 17, 0.08);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(86px, 0.4fr)) auto;
  padding: 14px;
}

.project-row div {
  display: grid;
  gap: 3px;
}

.project-row strong {
  font-size: 1rem;
}

.project-row span {
  color: #60483a;
  font-size: 0.88rem;
  font-weight: 850;
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 1.4fr) repeat(5, minmax(86px, 0.8fr));
}

.admin-head {
  background: rgba(37, 23, 17, 0.08);
  font-weight: 950;
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .builder-intro,
  .project-hub-hero,
  .seo-intent-section,
  .download-shop-upgrade,
  .admin-workspace,
  .cards-workspace,
  .generator-layout,
  .designer-layout,
  .download-layout {
    grid-template-columns: 1fr;
  }

  .admin-profile-form,
  .landing-content-manager {
    grid-template-columns: 1fr;
  }

  .cards-sidebar {
    position: static;
  }

  .redesigned-controls {
    position: static;
  }

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

  .hero {
    min-height: auto;
  }

  .manifesto-section {
    min-height: 420px;
  }

  .hero-copy {
    width: 100%;
  }

  .mockup-stage {
    height: auto;
    min-height: 460px;
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
  }

  .feature-grid,
  .flow-grid,
  .sample-grid,
  .review-grid,
  .project-action-grid,
  .label-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 700px) {
  .builder-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .top-nav {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 14px;
  }

  .builder-header-actions,
  .account-controls {
    justify-content: flex-start;
  }

	  .nav-links {
	    background: rgba(255, 250, 240, 0.98);
	    border: 1px solid rgba(37, 23, 17, 0.08);
	    border-radius: 22px;
	    box-shadow: var(--small-shadow);
	    display: none;
	    gap: 8px;
	    grid-column: 1 / -1;
	    grid-template-columns: 1fr;
	    justify-content: stretch;
	    padding: 10px;
	    width: 100%;
	  }

  .top-nav.menu-open .nav-links {
    display: grid;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .nav-ghost,
  .nav-cta,
  .secondary-button.small-button {
    min-height: 38px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav-links > a,
  .nav-links > button,
  .nav-links > .language-toggle {
    justify-content: center;
    width: 100%;
  }

  .nav-icon {
    display: none;
  }

  .top-nav {
    border-radius: 0 0 28px 28px;
    margin-top: 0;
    top: 0;
    width: 100%;
  }

  .top-nav::after {
    bottom: -5px;
    left: 16px;
    right: 16px;
  }

  .section-band,
  .access-code-strip,
  .feature-section,
  .seo-intent-section,
  .how-section,
  .statement-section,
  .sample-section,
  .physical-shop-section,
  .review-section,
  .final-cta,
  .site-footer,
  .builder-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .seo-chip-grid {
    justify-content: flex-start;
  }

	  .hero {
	    border-radius: 28px;
	    min-height: auto;
	    padding: 42px 18px 30px;
	  }

  .hero-copy::before {
    height: 44px;
    right: 10px;
    top: -12px;
    width: 34px;
  }

  .loteria-marquee {
    margin: 10px 0 22px;
  }

  .loteria-marquee div {
    gap: 22px;
    padding: 12px 0;
  }

  .loteria-marquee span::after {
    margin-left: 22px;
  }

  .manifesto-section {
    border-radius: 28px;
    margin-bottom: 22px;
    min-height: auto;
    padding: 92px 16px;
  }

  .manifesto-section::before,
  .manifesto-section::after {
    height: 52px;
  }

  .manifesto-section .eyebrow {
    margin-top: 0;
  }

  .manifesto-section h2 {
    font-size: clamp(2.05rem, 11vw, 3.3rem);
  }

  .manifesto-art span {
    display: none;
  }

  .hero-artwork img {
    object-position: 68% bottom;
  }

  .hero-artwork::after {
    background:
      linear-gradient(180deg, rgba(255, 243, 199, 0.98) 0%, rgba(255, 243, 199, 0.88) 48%, rgba(255, 243, 199, 0.22) 78%),
      linear-gradient(90deg, rgba(255, 243, 199, 0.92), rgba(255, 243, 199, 0.18));
  }

  .hero-artwork-card {
    bottom: 28px;
    left: 18px;
    max-width: calc(100% - 36px);
    right: 18px;
  }

	  .hero-showcase {
		    height: 560px;
		    left: auto;
		    right: auto;
		    width: 100%;
		  }

  .hero-deck-stack {
    bottom: 34%;
    height: 148px;
    left: 2%;
    width: 108px;
  }

  .hero-deck-card strong {
    font-size: 0.86rem;
    margin-top: -35px;
  }

  .hero-deck-card small {
    font-size: 0.42rem;
    margin-top: -16px;
  }

  .floating-style-card {
    height: 128px;
    width: 92px;
  }

  .floating-two {
    left: 104px;
  }

  .realistic-board {
    width: min(84%, 410px);
  }

  .realistic-board {
    border-radius: 20px;
    gap: 8px;
    margin: 0 auto;
    padding: 15px 14px 10px;
    transform: rotate(0.6deg);
  }

  .realistic-board::before,
  .realistic-board::after {
    display: none;
  }

  .realistic-board-heading strong {
    font-size: 1.55rem;
  }

  .realistic-board-heading span {
    font-size: 0.72rem;
  }

  .realistic-grid {
    gap: 4px;
    padding: 0;
  }

  .realistic-card {
    border-width: 1.5px;
    border-radius: 5px;
  }

  .shadow-label .realistic-photo strong {
    bottom: 4px;
    font-size: 0.44rem;
    left: 4px;
    padding: 2px 3px;
    right: 4px;
    -webkit-text-stroke: 1.4px rgba(255,255,255,0.88);
  }

  .caption-band > strong {
    font-size: 0.46rem;
  }

  .realistic-board-footer {
    padding: 0;
  }

  .realistic-board-footer span {
    font-size: 0.46rem;
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .floating-style-card {
    display: none;
  }

  .hero-slogan {
    gap: 6px;
  }

  .hero-slogan span {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .statement-section {
    gap: 14px;
    padding-top: 8px;
  }

  .statement-line {
    border-radius: 26px;
    grid-template-areas:
      "title"
      "media"
      "copy";
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 20px 26px;
  }

  .statement-media {
    min-height: 160px;
  }

  .statement-line h2 {
    font-size: clamp(2.55rem, 15vw, 4.4rem);
  }

  .hero h1,
  .builder-intro h1 {
    font-size: 2.95rem;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .mockup-stage {
    aspect-ratio: auto;
    height: 160px;
    margin-left: -16px;
    margin-right: -16px;
    min-height: 160px;
    width: calc(100% + 32px);
  }

  .mock-board {
    border-radius: 24px;
    right: 8px;
    padding: 20px;
    width: 78%;
  }

  .mock-card-stack {
    transform: scale(0.58);
    transform-origin: left top;
  }

  .feature-grid,
  .flow-grid,
  .sample-grid,
  .review-grid,
  .project-action-grid,
	  .project-card-grid,
	  .project-hub-stats,
	  .label-grid,
	  .label-style-panel,
  .account-summary-grid,
  .admin-summary-grid,
  .billing-options,
  .access-code-panel,
	  .admin-code-card,
	  .landing-content-manager,
	  .landing-editor-grid,
	  .statement-image-slots,
	  .profile-form,
	  .project-row,
	  .admin-row,
	  .finalize-panel,
	  .form-grid,
  .advanced-grid,
  .control-pair,
  .color-control-grid,
  .background-option-grid,
  .highlighted-background-grid,
  .background-mini-controls,
  .text-style-grid,
  .download-instructions-grid,
  .product-carousel-track,
  .border-control-grid,
  .download-settings,
  .preset-grid,
	  .use-case-grid {
	    grid-template-columns: 1fr;
	  }

  .landing-edit-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .landing-edit-row textarea,
  .shop-product-edit-row input,
  .landing-edit-row .file-pill,
  .landing-edit-row .danger-button {
    grid-column: 1 / -1;
  }

  .cards-main-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .template-choice-button {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .template-choice-button > b {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .template-modal {
    border-radius: 24px;
    padding: 18px;
  }

  .template-modal-head {
    align-items: stretch;
    flex-direction: column;
  }

	  .final-cta,
    .access-code-strip,
	  .site-footer,
	  .panel-header,
	  .signin-project-callout,
	  .account-routing-card,
	  .project-card-actions,
	  .admin-detail-head,
	  .builder-status-strip,
	  .step-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer nav,
  .nav-links {
    justify-content: flex-start;
  }

  .builder-panel {
    border-radius: 28px;
    padding: 20px;
  }

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

  .step-pill {
    justify-content: flex-start;
  }

  .label-row {
    align-items: stretch;
    flex-direction: column;
  }

  .card-preview.compact {
    width: 150px;
  }

  .hero-actions .large {
    flex: 1 1 100%;
    width: 100%;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .trust-strip {
    margin-top: 22px;
  }

  .trust-strip span {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }
}

@media (max-width: 430px) {
  .hero h1,
  .builder-intro h1 {
    font-size: 2.55rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .brand-mark {
    font-size: 0.92rem;
  }

  .brand-mark .logo-mark {
    border-radius: 14px;
    height: 42px;
    width: 42px;
  }
}
